emails
2 years ago
form-fields
4 weeks ago
access-denied-browse-job_listings.php
4 years ago
access-denied-single-job_listing.php
3 years ago
account-signin.php
4 years ago
content-job_listing.php
2 months ago
content-no-jobs-found.php
7 years ago
content-single-job_listing-company.php
3 years ago
content-single-job_listing-meta.php
4 years ago
content-single-job_listing.php
4 years ago
content-summary-job_listing.php
2 months ago
content-widget-job_listing.php
2 months ago
content-widget-no-jobs-found.php
7 years ago
job-application-email.php
4 years ago
job-application-url.php
7 years ago
job-application.php
7 years ago
job-dashboard-login.php
7 years ago
job-dashboard-overlay.php
2 years ago
job-dashboard.php
2 years ago
job-filter-job-types.php
2 years ago
job-filters.php
2 years ago
job-listings-end.php
7 years ago
job-listings-start.php
7 years ago
job-pagination.php
7 years ago
job-preview.php
2 years ago
job-stats.php
2 months ago
job-submit.php
2 years ago
job-submitted.php
2 years ago
notice.php
2 years ago
pagination.php
6 years ago
pagination.php
46 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Pagination - Show numbered pagination for catalog pages. |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/job_manager/pagination.php. |
| 6 | * |
| 7 | * @see https://wpjobmanager.com/document/template-overrides/ |
| 8 | * @author Automattic |
| 9 | * @package wp-job-manager |
| 10 | * @category Template |
| 11 | * @version 1.20.0 |
| 12 | */ |
| 13 | |
| 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | exit; // Exit if accessed directly. |
| 16 | } |
| 17 | |
| 18 | if ( $max_num_pages <= 1 ) { |
| 19 | return; |
| 20 | } |
| 21 | ?> |
| 22 | <nav class="job-manager-pagination"> |
| 23 | <?php |
| 24 | /** |
| 25 | * Filter the paginated link for WP Job Manager catalog pages. |
| 26 | * |
| 27 | * @see https://codex.wordpress.org/Function_Reference/paginate_links |
| 28 | * |
| 29 | * @since 1.4.0 |
| 30 | * |
| 31 | * @param array $args The pagination arguments. |
| 32 | */ |
| 33 | echo paginate_links( apply_filters( 'job_manager_pagination_args', [ |
| 34 | 'base' => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ), |
| 35 | 'format' => '', |
| 36 | 'current' => max( 1, get_query_var('paged') ), |
| 37 | 'total' => $max_num_pages, |
| 38 | 'prev_text' => '←', |
| 39 | 'next_text' => '→', |
| 40 | 'type' => 'list', |
| 41 | 'end_size' => 3, |
| 42 | 'mid_size' => 3 |
| 43 | ] ) ); |
| 44 | ?> |
| 45 | </nav> |
| 46 |