Current Path : /storage/v11800/alliedessence/public_html/wp-content/plugins/wp-job-manager/templates/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/alliedessence/public_html/wp-content/plugins/wp-job-manager/templates/pagination.php |
<?php
/**
* Pagination - Show numbered pagination for catalog pages.
*
* This template can be overridden by copying it to yourtheme/job_manager/pagination.php.
*
* @see https://wpjobmanager.com/document/template-overrides/
* @author Automattic
* @package wp-job-manager
* @category Template
* @version 1.20.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if ( $max_num_pages <= 1 ) {
return;
}
?>
<nav class="job-manager-pagination">
<?php
/**
* Filter the paginated link for WP Job Manager catalog pages.
*
* @see https://codex.wordpress.org/Function_Reference/paginate_links
*
* @since 1.4.0
*
* @param array $args The pagination arguments.
*/
echo paginate_links( apply_filters( 'job_manager_pagination_args', [
'base' => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ),
'format' => '',
'current' => max( 1, get_query_var('paged') ),
'total' => $max_num_pages,
'prev_text' => '←',
'next_text' => '→',
'type' => 'list',
'end_size' => 3,
'mid_size' => 3
] ) );
?>
</nav>