Origin commit
This commit is contained in:
23
templates/parts/pagination.php
Executable file
23
templates/parts/pagination.php
Executable file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
global $wp_query;
|
||||
|
||||
if ( $wp_query->max_num_pages <= 1 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$args = apply_filters( 'opalestate_pagination_args', [
|
||||
'prev_text' => __( '«' ),
|
||||
'next_text' => __( '»' ),
|
||||
'type' => 'list',
|
||||
] );
|
||||
|
||||
?>
|
||||
|
||||
<nav class="opalestate-pagination">
|
||||
<?php print paginate_links( $args ); // WPCS: xss ok. ?>
|
||||
</nav>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user