PluginProbe
Property Hive / 2.2.2
Property Hive v2.2.2
2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 All 261 releases
propertyhive / templates / search / pagination.php

pagination.php in Property Hive 2.2.2, at templates/search/pagination.php

34 lines 824 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Pagination - Show numbered pagination for search results pages.
4 *
5 * @author PropertyHive
6 * @package PropertyHive/Templates
7 * @version 1.0.0
8 */
9
10 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
12 ?>
13 <div class="propertyhive-pagination">
14 <?php
15 if ( $max_num_pages > 1 )
16 {
17 echo paginate_links( apply_filters( 'propertyhive_pagination_args', array(
18 'base' => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ),
19 'format' => '',
20 'current' => max( 1, get_query_var( 'paged' ) ),
21 'total' => $max_num_pages,
22 'prev_text' => '&larr;',
23 'next_text' => '&rarr;',
24 'type' => 'list',
25 'end_size' => 3,
26 'mid_size' => 3
27 ) ) );
28 }
29 else
30 {
31 echo '&nbsp;';
32 }
33 ?>
34 </div>