2019-09-10 06:27:33 +02:00
|
|
|
<?php
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
global $wp_query;
|
|
|
|
|
|
|
|
if ( $wp_query->max_num_pages <= 1 ) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
$args = apply_filters( 'opalestate_pagination_args', [
|
2020-08-20 12:31:10 +02:00
|
|
|
'prev_text' => __( '«', 'opalestate-pro' ),
|
|
|
|
'next_text' => __( '»', 'opalestate-pro' ),
|
2019-09-10 06:27:33 +02:00
|
|
|
'type' => 'list',
|
|
|
|
] );
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<nav class="opalestate-pagination">
|
|
|
|
<?php print paginate_links( $args ); // WPCS: xss ok. ?>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|