| 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() ? '→' : '←', |
| 32 |
'next_text' => is_rtl() ? '←' : '→', |
| 33 |
'type' => 'list', |
| 34 |
'end_size' => 3, |
| 35 |
'mid_size' => 3, |
| 36 |
) |
| 37 |
) |
| 38 |
); |
| 39 |
?> |
| 40 |
</nav> |
| 41 |
|