PluginProbe
Property Hive / 2.3.1
Property Hive v2.3.1
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.3.1, at templates/search/pagination.php

36 lines 993 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 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- WordPress builds and escapes pagination links; preserve the PHP pagination customization filter.
18 echo paginate_links( apply_filters( 'propertyhive_pagination_args', array(
19 'base' => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ),
20 'format' => '',
21 'current' => max( 1, get_query_var( 'paged' ) ),
22 'total' => $max_num_pages,
23 'prev_text' => '&larr;',
24 'next_text' => '&rarr;',
25 'type' => 'list',
26 'end_size' => 3,
27 'mid_size' => 3
28 ) ) );
29 }
30 else
31 {
32 echo '&nbsp;';
33 }
34 ?>
35 </div>
36