Origin commit

This commit is contained in:
Hoang Huu
2019-09-10 11:27:33 +07:00
commit 499e068e4f
844 changed files with 188705 additions and 0 deletions

23
templates/parts/pagination.php Executable file
View 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' => __( '&laquo;' ),
'next_text' => __( '&raquo;' ),
'type' => 'list',
] );
?>
<nav class="opalestate-pagination">
<?php print paginate_links( $args ); // WPCS: xss ok. ?>
</nav>