| @@ 14-43 (lines=30) @@ | ||
| 11 | */ |
|
| 12 | define( 'EE_THEME_FUNCTIONS_LOADED', TRUE ); |
|
| 13 | ||
| 14 | if ( ! function_exists( 'espresso_pagination' ) ) { |
|
| 15 | /** |
|
| 16 | * espresso_pagination |
|
| 17 | * |
|
| 18 | * @access public |
|
| 19 | * @return void |
|
| 20 | */ |
|
| 21 | function espresso_pagination() { |
|
| 22 | global $wp_query; |
|
| 23 | $big = 999999999; // need an unlikely integer |
|
| 24 | $pagination = paginate_links( |
|
| 25 | array( |
|
| 26 | 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), |
|
| 27 | 'format' => '?paged=%#%', |
|
| 28 | 'current' => max( 1, get_query_var( 'paged' ) ), |
|
| 29 | 'total' => $wp_query->max_num_pages, |
|
| 30 | 'show_all' => true, |
|
| 31 | 'end_size' => 10, |
|
| 32 | 'mid_size' => 6, |
|
| 33 | 'prev_next' => true, |
|
| 34 | 'prev_text' => __( '‹ PREV', 'event_espresso' ), |
|
| 35 | 'next_text' => __( 'NEXT ›', 'event_espresso' ), |
|
| 36 | 'type' => 'plain', |
|
| 37 | 'add_args' => false, |
|
| 38 | 'add_fragment' => '' |
|
| 39 | ) |
|
| 40 | ); |
|
| 41 | echo ! empty( $pagination ) ? '<div class="ee-pagination-dv clear">' . $pagination . '</div>' : ''; |
|
| 42 | } |
|
| 43 | } |
|
| @@ 891-920 (lines=30) @@ | ||
| 888 | //add_filter( 'FHEE__EEH_Template__format_currency__amount', 'convert_zero_to_free', 10, 2 ); |
|
| 889 | ||
| 890 | ||
| 891 | if ( ! function_exists( 'espresso_pagination' ) ) { |
|
| 892 | /** |
|
| 893 | * espresso_pagination |
|
| 894 | * |
|
| 895 | * @access public |
|
| 896 | * @return void |
|
| 897 | */ |
|
| 898 | function espresso_pagination() { |
|
| 899 | global $wp_query; |
|
| 900 | $big = 999999999; // need an unlikely integer |
|
| 901 | $pagination = paginate_links( |
|
| 902 | array( |
|
| 903 | 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), |
|
| 904 | 'format' => '?paged=%#%', |
|
| 905 | 'current' => max( 1, get_query_var( 'paged' ) ), |
|
| 906 | 'total' => $wp_query->max_num_pages, |
|
| 907 | 'show_all' => true, |
|
| 908 | 'end_size' => 10, |
|
| 909 | 'mid_size' => 6, |
|
| 910 | 'prev_next' => true, |
|
| 911 | 'prev_text' => __( '‹ PREV', 'event_espresso' ), |
|
| 912 | 'next_text' => __( 'NEXT ›', 'event_espresso' ), |
|
| 913 | 'type' => 'plain', |
|
| 914 | 'add_args' => false, |
|
| 915 | 'add_fragment' => '' |
|
| 916 | ) |
|
| 917 | ); |
|
| 918 | echo ! empty( $pagination ) ? '<div class="ee-pagination-dv clear">' . $pagination . '</div>' : ''; |
|
| 919 | } |
|
| 920 | } |
|