PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / trunk
Pods – Custom Content Types and Fields vtrunk
trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / ui / front / pagination / paginate.php
pods / ui / front / pagination Last commit date
advanced.php 4 months ago list.php 4 months ago paginate.php 4 months ago simple.php 4 months ago
paginate.php
36 lines
1 <?php
2
3 // Don't load directly.
4 if ( ! defined( 'ABSPATH' ) ) {
5 die( '-1' );
6 }
7
8 // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
9 ?>
10
11 <?php if ( $wrap_pagination ) : ?>
12 <p class="pods-pagination">
13 <?php endif; ?>
14
15 <span class="pods-pagination-paginate <?php echo esc_attr( $params->class ); ?>">
16 <?php
17 $args = [
18 'base' => $params->base,
19 'format' => $params->format,
20 'total' => $params->total,
21 'current' => $params->page,
22 'end_size' => $params->end_size,
23 'mid_size' => $params->mid_size,
24 'prev_next' => $params->prev_next,
25 'prev_text' => $params->prev_text,
26 'next_text' => $params->next_text,
27 ];
28
29 echo paginate_links( $args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
30 ?>
31 </span>
32
33 <?php if ( $wrap_pagination ) : ?>
34 </p>
35 <?php endif; ?>
36