| Server IP : 129.28.31.108 / Your IP : 216.73.216.52 Web Server : nginx/1.16.1 System : Linux VM-0-14-centos 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64 User : www ( 1000) PHP Version : 8.3.31 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.sceycy.com/wp-content/themes/Zing-Pro/ |
Upload File : |
<?php
/**
* @Author: 大胡子
* @Email: dahuzi@xintheme.com
* @Link: www.dahuzi.me
* @Date: 2020-10-17 22:19:20
* @Last Modified by: dahuzi
* @Last Modified time: 2021-06-20 00:41:07
*/
$dahuzi_page = get_post_meta( get_the_ID(), 'post_type_dahuzi_page', true );
$dahuzi_page_modular = isset($dahuzi_page['index_modular']) ? $dahuzi_page['index_modular'] : '';
$page_banner = isset($dahuzi_page['page_banner']) ? $dahuzi_page['page_banner'] : '';
$banner_img = isset($page_banner['banner_img']['url']) ? $page_banner['banner_img']['url'] : '';
get_header(); ?>
<?php if( $banner_img ){?>
<div class="module-default">
<div class="responsive-carousel carousel clearfix">
<div class="carousel-item">
<img src="<?php echo $banner_img; ?>" alt="<?php the_title(); ?>">
</div>
</div>
</div>
<?php }?>
<?php
//$index_modular = xintheme('index_modular');
if(is_array($dahuzi_page_modular)){
foreach($dahuzi_page_modular as $id):
$modular_type = $id['modular_type'];
get_template_part( 'template-parts/modular/'.$modular_type.'' );
endforeach;
}else{
echo "<div style='text-align:center;line-height:80vh;font-size:22px;font-weight:600'>抱歉,当前页面没有添加任何模块!</div>";
}
get_footer();