$header_title = __('Results for', 'snpshpwp') . ' <span>' . get_search_query() . '</span> / ' . $number_of_posts . __(' post/s found', 'snpshpwp'); printf('<h1 class="snpshpwp_page_title">%1$s</h1>', $header_title); ?> <div class="snpshpwp_blog anivia_row fbuilder_row"> <div> <?php while (have_posts()) { the_post(); get_template_part('snpshpwp_content'); } ?> </div> </div> <div class="clearfix"></div> <?php echo snpshpwp_pagination($wp_query->max_num_pages, $paged, 2, 'no'); ?> </div> <?php } else { ?> <div id="snpshpwp_inner_content" class="<?php echo snpshpwp_get_class('content', 'sidebar-blog', $snpshpwp_data['sidebar-size'], $snpshpwp_data['sidebar-blog-position']); ?> "> <?php printf('<h1 class="snpshpwp_page_title">%1$s</h1><h3>%2$s</h3>', __('NO POSTS FOUND', 'snpshpwp'), __('There are no posts within the search criteria.', 'snpshpwp')); ?> <div class="clearfix"></div> </div> <?php
<?php /** * Pagination - Show numbered pagination for catalog pages. * * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly global $wp_query; if ($wp_query->max_num_pages <= 1) { return; } echo snpshpwp_pagination($wp_query->max_num_pages, max(1, get_query_var('paged')), 2, 'no');