add-to-cart-edd.php
6 years ago
add-to-cart-woocommerce.php
6 years ago
course-author.php
6 years ago
course-price-edd.php
6 years ago
course-price-woocommerce.php
6 years ago
course-price.php
6 years ago
course.php
6 years ago
end_content_wrap.php
6 years ago
footer.php
6 years ago
header.php
6 years ago
loop-after-content.php
6 years ago
loop-before-content.php
6 years ago
loop-end.php
6 years ago
loop-start.php
6 years ago
meta.php
6 years ago
rating.php
6 years ago
start_content_wrap.php
6 years ago
thumbnail.php
6 years ago
title.php
6 years ago
tutor-pagination.php
6 years ago
tutor-pagination.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * A single course loop pagination |
| 4 | * |
| 5 | * @since v.1.0.0 |
| 6 | * @author themeum |
| 7 | * @url https://themeum.com |
| 8 | * |
| 9 | * @package TutorLMS/Templates |
| 10 | * @version 1.4.3 |
| 11 | */ |
| 12 | |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; |
| 15 | } |
| 16 | |
| 17 | ?> |
| 18 | |
| 19 | <?php do_action('tutor_course/archive/pagination/before'); ?> |
| 20 | |
| 21 | <div class="tutor-pagination-wrap"> |
| 22 | <?php |
| 23 | global $wp_query; |
| 24 | $big = 999999999; // need an unlikely integer |
| 25 | |
| 26 | echo paginate_links( array( |
| 27 | 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), |
| 28 | 'format' => '?paged=%#%', |
| 29 | 'current' => max( 1, get_query_var('paged') ), |
| 30 | 'total' => $wp_query->max_num_pages |
| 31 | ) ); |
| 32 | ?> |
| 33 | </div> |
| 34 | |
| 35 | <?php do_action('tutor_course/archive/pagination/after'); ?> |
| 36 |