PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
wp-job-manager
/
templates
<?php /** * Pagination - Show numbered pagination for the `[jobs]` shortcode. * * This template can be overridden by copying it to yourtheme/job_manager/job-pagination.php. * * @see https://wpjobmanager.com/document/template-overrides/ * @author Automattic * @package WP Job Manager * @category Template * @version 1.31.1 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( $max_num_pages <= 1 ) { return; } // Calculate pages to output. $end_size = 3; $mid_size = 3; $start_pages = range( 1, $end_size ); $end_pages = range( $max_num_pages - $end_size + 1, $max_num_pages ); $mid_pages = range( $current_page - $mid_size, $current_page + $mid_size ); $pages = array_intersect( range( 1, $max_num_pages ), array_merge( $start_pages, $end_pages, $mid_pages ) ); $prev_page = 0; ?> <nav class="job-manager-pagination"> <ul> <?php if ( $current_page && $current_page > 1 ) : ?> <li><a href="#" data-page="<?php echo esc_attr( $current_page - 1 ); ?>">←</a></li> <?php endif; ?> <?php foreach ( $pages as $page ) { if ( $prev_page != $page - 1 ) { echo '<li><span class="gap">...</span></li>'; } if ( $current_page == $page ) { echo '<li><span class="current" data-page="' . esc_attr( $page ) . '">' . esc_html( $page ) . '</span></li>'; } else { echo '<li><a href="#" data-page="' . esc_attr( $page ) . '">' . esc_html( $page ) . '</a></li>'; } $prev_page = $page; } ?> <?php if ( $current_page && $current_page < $max_num_pages ) : ?> <li><a href="#" data-page="<?php echo esc_attr( $current_page + 1 ); ?>">→</a></li> <?php endif; ?> </ul> </nav>
[+]
..
[-] job-preview.php
[edit]
[-] job-application-email.php
[edit]
[-] job-dashboard-login.php
[edit]
[-] content-widget-no-jobs-found.php
[edit]
[-] content-widget-job_listing.php
[edit]
[-] job-submit.php
[edit]
[-] job-pagination.php
[edit]
[-] job-submitted.php
[edit]
[-] content-no-jobs-found.php
[edit]
[-] job-filters.php
[edit]
[-] account-signin.php
[edit]
[-] content-job_listing.php
[edit]
[+]
form-fields
[-] job-listings-start.php
[edit]
[-] content-single-job_listing.php
[edit]
[-] job-filter-job-types.php
[edit]
[-] content-summary-job_listing.php
[edit]
[-] content-single-job_listing-company.php
[edit]
[-] job-listings-end.php
[edit]
[-] content-single-job_listing-meta.php
[edit]
[-] job-application.php
[edit]
[-] pagination.php
[edit]
[-] job-dashboard.php
[edit]
[+]
emails
[-] job-application-url.php
[edit]