Opal-Estate-Pro/templates/parts/pagination.php
Chung Pham 8851716ddc update
2020-08-20 17:31:10 +07:00

24 lines
411 B
PHP
Executable File

<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $wp_query;
if ( $wp_query->max_num_pages <= 1 ) {
return;
}
$args = apply_filters( 'opalestate_pagination_args', [
'prev_text' => __( '&laquo;', 'opalestate-pro' ),
'next_text' => __( '&raquo;', 'opalestate-pro' ),
'type' => 'list',
] );
?>
<nav class="opalestate-pagination">
<?php print paginate_links( $args ); // WPCS: xss ok. ?>
</nav>