group-compat.php
8 years ago
group-extra.php
8 years ago
group-fields.php
8 years ago
group-form.php
8 years ago
group-query.php
8 years ago
group-slideshow.php
7 years ago
group-style.php
8 years ago
option-background.php
8 years ago
option-boilerplate.php
9 years ago
option-category.php
8 years ago
option-classes.php
8 years ago
option-client-section.php
7 years ago
option-color.php
8 years ago
option-content.php
7 years ago
option-divi.php
8 years ago
option-form-ajax.php
9 years ago
option-form-category.php
8 years ago
option-id.php
8 years ago
option-layout.php
8 years ago
option-limit.php
8 years ago
option-order.php
8 years ago
option-pagination.php
8 years ago
option-read-more-page.php
8 years ago
option-select.php
8 years ago
option-slideshow-behavior.php
8 years ago
option-slideshow-breakpoints.php
7 years ago
option-slideshow-navigation.php
7 years ago
option-slideshow-num.php
7 years ago
option-slideshow-transition.php
7 years ago
option-slideshow-type.php
7 years ago
option-template-list.php
8 years ago
option-thumbnail.php
8 years ago
option-title.php
8 years ago
template-input.php
8 years ago
template-not-found.php
8 years ago
template-options.php
8 years ago
view-mode.php
8 years ago
view-name.php
9 years ago
view-shortcode.php
8 years ago
option-pagination.php
168 lines
| 1 | <?php |
| 2 | $links = '<span class="help-links">'; |
| 3 | $links .= '<a href="#tab-panel-wpmtst-help-pagination" class="open-help-tab">' . __( 'Help' ) . '</a>'; |
| 4 | $links .= ' | '; |
| 5 | $links .= '<a href="https://strongplugins.com/document/strong-testimonials/pagination-methods/" target="_blank">' . __( 'Compare methods', 'strong-testimonials' ) . '</a>'; |
| 6 | $links .= '</span>'; |
| 7 | ?> |
| 8 | <?php /* translators: On the Views admin screen. */ ?> |
| 9 | <th> |
| 10 | <input class="if toggle checkbox" id="view-pagination" name="view[data][pagination]" |
| 11 | type="checkbox" value="1" <?php checked( $view['pagination'] ); ?>/> |
| 12 | <label for="view-pagination"> |
| 13 | <?php _e( 'Pagination', 'strong-testimonials' ); ?> |
| 14 | </label> |
| 15 | </th> |
| 16 | <td> |
| 17 | <div class="row then then_pagination" style="display: none;"> |
| 18 | <div class="row-inner"> |
| 19 | <div class="inline"> |
| 20 | <label for="view-pagination_type"> |
| 21 | <select class="if selectper" id="view-pagination_type" name="view[data][pagination_settings][type]"> |
| 22 | <option value="simple" <?php selected( 'simple', $view['pagination_settings']['type'] ); ?>> |
| 23 | <?php _e( 'simple', 'strong-testimonials' ); ?> |
| 24 | </option> |
| 25 | <option value="standard" <?php selected( 'standard', $view['pagination_settings']['type'] ); ?>> |
| 26 | <?php _e( 'WordPress standard', 'strong-testimonials' ); ?> |
| 27 | </option> |
| 28 | </select> |
| 29 | </label> |
| 30 | </div> |
| 31 | <div class="inline then fast then_simple then_not_standard" style="display: none;"> |
| 32 | <p class="description"> |
| 33 | <?php _e( 'Using JavaScript. Intended for small scale.', 'strong-testimonials' ); ?> |
| 34 | <?php echo $links; ?> |
| 35 | </p> |
| 36 | </div> |
| 37 | <div class="inline then fast then_not_simple then_standard" style="display: none;"> |
| 38 | <p class="description"> |
| 39 | <?php _e( 'Using paged URLs: /page/2, /page/3, etc. Best for large scale.', 'strong-testimonials' ); ?> |
| 40 | <?php echo $links; ?> |
| 41 | </p> |
| 42 | </div> |
| 43 | </div> |
| 44 | </div> |
| 45 | |
| 46 | <div class="row then then_pagination" style="display: none;"> |
| 47 | <div class="row-inner"> |
| 48 | <div class="inline"> |
| 49 | <label for="view-per_page"> |
| 50 | <?php _ex( 'Per page', 'quantity', 'strong-testimonials' ); ?> |
| 51 | </label> |
| 52 | <input class="input-incremental" id="view-per_page" |
| 53 | name="view[data][pagination_settings][per_page]" |
| 54 | type="number" min="1" step="1" |
| 55 | value="<?php echo $view['pagination_settings']['per_page']; ?>"/> |
| 56 | </div> |
| 57 | |
| 58 | <div class="inline"> |
| 59 | <label for="view-nav"> |
| 60 | <?php _e( 'Navigation', 'strong-testimonials' ); ?> |
| 61 | </label> |
| 62 | <select id="view-nav" name="view[data][pagination_settings][nav]"> |
| 63 | <option value="before" <?php selected( $view['pagination_settings']['nav'], 'before' ); ?>> |
| 64 | <?php _e( 'before', 'strong-testimonials' ); ?> |
| 65 | </option> |
| 66 | <option value="after" <?php selected( $view['pagination_settings']['nav'], 'after' ); ?>> |
| 67 | <?php _e( 'after', 'strong-testimonials' ); ?> |
| 68 | </option> |
| 69 | <option value="before,after" <?php selected( $view['pagination_settings']['nav'], 'before,after' ); ?>> |
| 70 | <?php _e( 'before & after', 'strong-testimonials' ); ?> |
| 71 | </option> |
| 72 | </select> |
| 73 | </div> |
| 74 | </div> |
| 75 | |
| 76 | <div class="row then then_not_simple then_standard" style="display: none;"> |
| 77 | <div class="row-inner"> |
| 78 | <div class="inline"> |
| 79 | <label for="view-pagination-show_all"> |
| 80 | <select class="if select" id="view-pagination-show_all" |
| 81 | name="view[data][pagination_settings][show_all]"> |
| 82 | <option value="on" <?php selected( $view['pagination_settings']['show_all'] ); ?>> |
| 83 | <?php _e( 'Show all page numbers', 'strong-testimonials' ); ?> |
| 84 | </option> |
| 85 | <option value="off" <?php selected( ! $view['pagination_settings']['show_all'] ); ?> |
| 86 | class="trip"> |
| 87 | <?php _e( 'Show condensed page numbers', 'strong-testimonials' ); ?> |
| 88 | </option> |
| 89 | </select> |
| 90 | </label> |
| 91 | </div> |
| 92 | <div class="inline then then_show_all" style="display: none;"> |
| 93 | <div class="inline"> |
| 94 | <label for="view-pagination-end_size"> |
| 95 | <?php _ex( 'End size', 'quantity', 'strong-testimonials' ); ?> |
| 96 | </label> |
| 97 | <input class="input-incremental" id="view-pagination-end_size" |
| 98 | name="view[data][pagination_settings][end_size]" |
| 99 | type="number" min="1" step="1" |
| 100 | value="<?php echo $view['pagination_settings']['end_size']; ?>"/> |
| 101 | </div> |
| 102 | <div class="inline"> |
| 103 | <label for="view-pagination-mid_size"> |
| 104 | <?php _ex( 'Middle size', 'quantity', 'strong-testimonials' ); ?> |
| 105 | </label> |
| 106 | <input class="input-incremental" id="view-pagination-mid_size" |
| 107 | name="view[data][pagination_settings][mid_size]" |
| 108 | type="number" min="1" step="1" |
| 109 | value="<?php echo $view['pagination_settings']['mid_size']; ?>"/> |
| 110 | </div> |
| 111 | </div> |
| 112 | </div> |
| 113 | </div> |
| 114 | |
| 115 | <div class="row then then_not_simple then_standard" style="display: none;"> |
| 116 | <div class="row-inner"> |
| 117 | <div class="inline inline-middle"> |
| 118 | <input class="if toggle checkbox" id="view-pagination-prev_next" |
| 119 | name="view[data][pagination_settings][prev_next]" |
| 120 | type="checkbox" value="1" <?php checked( $view['pagination_settings']['prev_next'] ); ?>> |
| 121 | <label for="view-pagination-prev_next"> |
| 122 | <?php _e( 'Show previous/next links', 'strong-testimonials' ); ?> |
| 123 | </label> |
| 124 | </div> |
| 125 | <div class="then then_prev_next inline inline-middle"> |
| 126 | <label for="view-pagination-prev_text"> |
| 127 | <?php _e( 'Previous text', 'strong-testimonials' ); ?> |
| 128 | </label> |
| 129 | <input class="code" id="view-pagination-prev_text" |
| 130 | name="view[data][pagination_settings][prev_text]" |
| 131 | type="text" value="<?php echo htmlentities( $view['pagination_settings']['prev_text'] ); ?>"> |
| 132 | </div> |
| 133 | <div class="then then_prev_next inline inline-middle"> |
| 134 | <label for="view-pagination-next_text"> |
| 135 | <?php _e( 'Next text', 'strong-testimonials' ); ?> |
| 136 | </label> |
| 137 | <input class="code" id="view-pagination-next_text" |
| 138 | name="view[data][pagination_settings][next_text]" |
| 139 | type="text" value="<?php echo htmlentities( $view['pagination_settings']['next_text'] ); ?>"> |
| 140 | </div> |
| 141 | </div> |
| 142 | </div> |
| 143 | |
| 144 | <div class="row then then_not_simple then_standard" style="display: none;"> |
| 145 | <div class="row-inner"> |
| 146 | <div class="inline"> |
| 147 | <label for="view-pagination-before_page_number"> |
| 148 | <?php _e( 'Before page number', 'strong-testimonials' ); ?> |
| 149 | </label> |
| 150 | <input class="small-text" id="view-pagination-before_page_number" |
| 151 | name="view[data][pagination_settings][before_page_number]" |
| 152 | type="text" value="<?php echo $view['pagination_settings']['before_page_number']; ?>"> |
| 153 | </div> |
| 154 | <div class="inline"> |
| 155 | <label for="view-pagination-after_page_number"> |
| 156 | <?php _e( 'After page number', 'strong-testimonials' ); ?> |
| 157 | </label> |
| 158 | <input class="small-text" id="view-pagination-after_page_number" |
| 159 | name="view[data][pagination_settings][after_page_number]" |
| 160 | type="text" value="<?php echo $view['pagination_settings']['after_page_number']; ?>"> |
| 161 | </div> |
| 162 | </div> |
| 163 | </div> |
| 164 | </div> |
| 165 | |
| 166 | <?php do_action( 'wpmtst_view_editor_pagination_row_end' ); ?> |
| 167 | </td> |
| 168 |