PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.3.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.3.9
4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 4.2.1 All 138 releases
learnpress / templates / shared / pagination.php

pagination.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.3.9, at templates/shared/pagination.php

41 lines 784 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The template for displaying archive pagination.
4 *
5 * @version 1.0.0
6 * @since 4.2.3
7 */
8
9 defined( 'ABSPATH' ) || exit;
10
11 if ( ! isset( $total ) || ! isset( $base )
12 || ! isset( $format ) || ! isset( $current ) ) {
13 return;
14 }
15
16 if ( $total <= 1 ) {
17 return;
18 }
19 ?>
20 <nav class="learn-press-pagination">
21 <?php
22 echo paginate_links(
23 apply_filters(
24 'learn-press/pagination_args',
25 array(
26 'base' => $base,
27 'format' => $format,
28 'add_args' => false,
29 'current' => max( 1, $current ),
30 'total' => $total,
31 'prev_text' => is_rtl() ? '&rarr;' : '&larr;',
32 'next_text' => is_rtl() ? '&larr;' : '&rarr;',
33 'type' => 'list',
34 'end_size' => 3,
35 'mid_size' => 3,
36 )
37 )
38 );
39 ?>
40 </nav>
41