| Server IP : 103.82.32.14 / Your IP : 216.73.217.121 Web Server : Apache/2.2.32 (Unix) mod_ssl/2.2.32 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 System : Linux cloud.lonmanhoabinh.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : lonmakmf ( 524) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/lonmakmf/public_html/wp-content/themes/origamiez/ |
Upload File : |
<?php
if (!is_singular() && current_theme_supports('loop-pagination')) {
global $wp_query, $wp_rewrite;
$total = $wp_query->max_num_pages;
if ($total > 1) {
$current = (intval(get_query_var('paged'))) ? intval(get_query_var('paged')) : 1;
$pagination_args = array(
'base' => @add_query_arg('paged', '%#%'),
'format' => '',
'current' => $current,
'total' => $total,
'end_size' => 2,
'mid_size' => 1,
'type' => 'list',
'prev_next' => TRUE,
'prev_text' => __('Previous', 'origamiez'),
'next_text' => __('Next', 'origamiez')
);
if ($wp_rewrite->using_permalinks())
$pagination_args['base'] = user_trailingslashit(trailingslashit(remove_query_arg('s', get_pagenum_link(1))) . 'page/%#%/', 'paged');
if (!empty($wp_query->query_vars['s']))
$pagination_args['add_args'] = array('s' => urlencode(get_query_var('s')));
echo paginate_links($pagination_args);
}
}