PluginProbe
WP Ultimate Post Grid / 4.0.1
WP Ultimate Post Grid v4.0.1
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / includes / public / class-wpupg-pagination.php

class-wpupg-pagination.php in WP Ultimate Post Grid 4.0.1, at includes/public/class-wpupg-pagination.php

41 lines 900 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Responsible for grid pagination.
4 *
5 * @link https://bootstrapped.ventures
6 * @since 3.0.0
7 *
8 * @package WP_Ultimate_Post_Grid
9 * @subpackage WP_Ultimate_Post_Grid/includes/public
10 */
11
12 /**
13 * Responsible for grid pagination.
14 *
15 * @since 3.0.0
16 * @package WP_Ultimate_Post_Grid
17 * @subpackage WP_Ultimate_Post_Grid/includes/public
18 * @author Brecht Vandersmissen <[email protected]>
19 */
20 class WPUPG_Pagination {
21 /**
22 * Get pagination defaults.
23 *
24 * @since 3.0.0
25 * @param mixed $type Optional pagination type to get the defaults for.
26 */
27 public static function get_defaults( $type = false ) {
28 $defaults = apply_filters( 'wpupg_pagination_defaults', array() );
29
30 if ( false === $type ) {
31 return $defaults;
32 } else {
33 if ( isset( $defaults[ $type ] ) ) {
34 return $defaults[ $type ];
35 } else {
36 return false;
37 }
38 }
39 }
40 }
41