advanced-settings.php
1 year ago
email-from.php
1 year ago
email-to.php
1 year ago
email.php
1 year ago
form.php
1 year ago
general.php
1 year ago
recipient.php
1 year ago
general.php
314 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Settings |
| 4 | * |
| 5 | * @since 1.13 |
| 6 | */ |
| 7 | |
| 8 | $options = get_option( 'wpmtst_options' ); |
| 9 | ?> |
| 10 | <h2><?php esc_html_e( 'Admin', 'strong-testimonials' ); ?></h2> |
| 11 | |
| 12 | <table class="form-table" cellpadding="0" cellspacing="0"> |
| 13 | |
| 14 | <tr valign="top"> |
| 15 | <th scope="row"> |
| 16 | <?php esc_html_e( 'Pending Indicator', 'strong-testimonials' ); ?> |
| 17 | </th> |
| 18 | <td> |
| 19 | <fieldset> |
| 20 | <label> |
| 21 | <input type="checkbox" name="wpmtst_options[pending_indicator]" <?php checked( $options['pending_indicator'] ); ?>> |
| 22 | <?php esc_html_e( 'Show indicator bubble when new submissions are awaiting moderation.', 'strong-testimonials' ); ?> |
| 23 | <?php esc_html_e( 'On by default.', 'strong-testimonials' ); ?> |
| 24 | </label> |
| 25 | </fieldset> |
| 26 | </td> |
| 27 | </tr> |
| 28 | |
| 29 | <!-- @todo : delete commented line. For the moment let it be --> |
| 30 | <!--<tr valign="top"> |
| 31 | <th scope="row"> |
| 32 | <?php /*_e( 'Reordering', 'strong-testimonials' ); */ ?> |
| 33 | </th> |
| 34 | <td> |
| 35 | <fieldset> |
| 36 | <label> |
| 37 | <input type="checkbox" name="wpmtst_options[reorder]" <?php /*checked( $options['reorder'] ); */ ?>> |
| 38 | <?php /*_e( 'Enable drag-and-drop reordering in the testimonial list.', 'strong-testimonials' ); */ ?> |
| 39 | <?php /*_e( 'Off by default.', 'strong-testimonials' ); */ ?> |
| 40 | </label> |
| 41 | <p class="description"><?php /*_e( 'Then set <b>Order</b> to "menu order" in the View.', 'strong-testimonials' ); */ ?></p> |
| 42 | </fieldset> |
| 43 | </td> |
| 44 | </tr>--> |
| 45 | |
| 46 | <tr valign="top"> |
| 47 | <th scope="row"> |
| 48 | <?php esc_html_e( 'Custom Fields Meta Box', 'strong-testimonials' ); ?> |
| 49 | </th> |
| 50 | <td> |
| 51 | <fieldset> |
| 52 | <label> |
| 53 | <input type="checkbox" name="wpmtst_options[support_custom_fields]" <?php checked( $options['support_custom_fields'] ); ?>> |
| 54 | <?php echo wp_kses_post( __( 'Show the <strong>Custom Fields</strong> meta box in the testimonial post editor. This does not affect the <strong>Client Details</strong> meta box.', 'strong-testimonials' ) ); ?> |
| 55 | <?php esc_html_e( 'Off by default.', 'strong-testimonials' ); ?> |
| 56 | </label> |
| 57 | <p class="description"><?php esc_html_e( 'For advanced users.', 'strong-testimonials' ); ?></p> |
| 58 | </fieldset> |
| 59 | </td> |
| 60 | </tr> |
| 61 | <tr valign="top"> |
| 62 | <th scope="row"> |
| 63 | <?php esc_html_e( 'Permalinks', 'strong-testimonials' ); ?> |
| 64 | </th> |
| 65 | <td> |
| 66 | <fieldset> |
| 67 | <label> |
| 68 | <input type="checkbox" |
| 69 | name="wpmtst_options[disable_rewrite]" <?php isset( $options['disable_rewrite'] ) ? checked( $options['disable_rewrite'] ) : ''; ?>> |
| 70 | <?php esc_html_e( 'Disable permalinks for testimonials.', 'strong-testimonials' ); ?> |
| 71 | <?php esc_html_e( 'Off by default.', 'strong-testimonials' ); ?> |
| 72 | </label> |
| 73 | <p class="description"> |
| 74 | <?php esc_html_e( 'Prevent indexing of testimonials. This will overwrite the "Link to testimonial" settings from the "Views" section', 'strong-testimonials' ); ?> |
| 75 | </p> |
| 76 | </fieldset> |
| 77 | </td> |
| 78 | </tr> |
| 79 | <tr valign="top" <?php echo ( ! isset( $options['disable_rewrite'] ) || $options['disable_rewrite'] ) ? '' : 'style="display:none;"'; ?> data-setting="single_testimonial_slug" > |
| 80 | <th scope="row"> |
| 81 | <?php esc_html_e( 'Single Testimonial Slug', 'strong-testimonials' ); ?> |
| 82 | </th> |
| 83 | <td> |
| 84 | <label> |
| 85 | <input type="text" name="wpmtst_options[single_testimonial_slug]" |
| 86 | value="<?php echo esc_attr( $options['single_testimonial_slug'] ); ?>"/> |
| 87 | </label> |
| 88 | <p class="description"><?php esc_html_e( 'Change the permalink slug for a single entry testimonial. After changing this field, reset permalinks by going to Settings > Permalinks and clicking Save Changes.', 'strong-testimonials' ); ?></p> |
| 89 | </td> |
| 90 | </tr> |
| 91 | |
| 92 | </table> |
| 93 | |
| 94 | <hr/> |
| 95 | <h2><?php esc_html_e( 'Output', 'strong-testimonials' ); ?></h2> |
| 96 | |
| 97 | <table class="form-table" cellpadding="0" cellspacing="0"> |
| 98 | |
| 99 | <tr valign="top"> |
| 100 | <th scope="row"> |
| 101 | <?php esc_html_e( 'Enable Touch', 'strong-testimonials' ); ?> |
| 102 | </th> |
| 103 | <td> |
| 104 | <fieldset> |
| 105 | <label> |
| 106 | <input type="checkbox" name="wpmtst_options[touch_enabled]" <?php checked( $options['touch_enabled'] ); ?>> |
| 107 | <?php esc_html_e( 'Enable touch swipe navigation in slideshows.', 'strong-testimonials' ); ?> |
| 108 | <?php esc_html_e( 'On by default.', 'strong-testimonials' ); ?> |
| 109 | </label> |
| 110 | <p class="description"><?php esc_html_e( 'If you are having trouble scrolling long testimonials on a small screen, try disabling this.', 'strong-testimonials' ); ?></p> |
| 111 | </fieldset> |
| 112 | </td> |
| 113 | </tr> |
| 114 | |
| 115 | <tr valign="top"> |
| 116 | <th scope="row"> |
| 117 | <?php esc_html_e( 'Scroll Top', 'strong-testimonials' ); ?> |
| 118 | </th> |
| 119 | <td> |
| 120 | <fieldset> |
| 121 | <label> |
| 122 | <input type="checkbox" name="wpmtst_options[scrolltop]" <?php checked( $options['scrolltop'] ); ?>> |
| 123 | <?php |
| 124 | printf( |
| 125 | // translators: %s is an HTML input element for the scrolltop offset value |
| 126 | esc_html__( |
| 127 | 'When a new page is selected in paginated Views, scroll to the top of the container minus %s pixels.', |
| 128 | 'strong-testimonials' |
| 129 | ), |
| 130 | '<input type="text" name="wpmtst_options[scrolltop_offset]" value="' . esc_attr( $options['scrolltop_offset'] ) . '" size="3">' |
| 131 | ); |
| 132 | ?> |
| 133 | <?php esc_html_e( 'On by default.', 'strong-testimonials' ); ?> |
| 134 | </label> |
| 135 | </fieldset> |
| 136 | </td> |
| 137 | </tr> |
| 138 | |
| 139 | <tr valign="top"> |
| 140 | <th scope="row"> |
| 141 | <?php esc_html_e( 'Remove Whitespace', 'strong-testimonials' ); ?> |
| 142 | </th> |
| 143 | <td> |
| 144 | <fieldset> |
| 145 | <label> |
| 146 | <input type="checkbox" name="wpmtst_options[remove_whitespace]" <?php checked( $options['remove_whitespace'] ); ?>> |
| 147 | <?php echo wp_kses_post( __( 'Remove space between HTML tags in View output to prevent double paragraphs <em>(wpautop)</em>.', 'strong-testimonials' ) ); ?> |
| 148 | <?php esc_html_e( 'On by default.', 'strong-testimonials' ); ?> |
| 149 | </label> |
| 150 | </fieldset> |
| 151 | </td> |
| 152 | </tr> |
| 153 | |
| 154 | <tr valign="top"> |
| 155 | <th scope="row"> |
| 156 | <?php esc_html_e( 'Comments', 'strong-testimonials' ); ?> |
| 157 | </th> |
| 158 | <td> |
| 159 | <fieldset> |
| 160 | <label> |
| 161 | <input type="checkbox" name="wpmtst_options[support_comments]" <?php checked( $options['support_comments'] ); ?>> |
| 162 | <?php esc_html_e( 'Allow comments on testimonials. Requires using your theme\'s single post template.', 'strong-testimonials' ); ?> |
| 163 | <?php esc_html_e( 'Off by default.', 'strong-testimonials' ); ?> |
| 164 | </label> |
| 165 | </fieldset> |
| 166 | <p class="description"><?php esc_html_e( 'To enable comments:', 'strong-testimonials' ); ?></p> |
| 167 | <ul class="description"> |
| 168 | <li><?php echo wp_kses_post( __( 'For individual testimonials, use the <strong>Discussion</strong> meta box in the post editor or <strong>Quick Edit</strong> in the testimonial list.', 'strong-testimonials' ) ); ?></li> |
| 169 | <li><?php echo wp_kses_post( __( 'For multiple testimonials, use <strong>Bulk Edit</strong> in the testimonial list.', 'strong-testimonials' ) ); ?></li> |
| 170 | </ul> |
| 171 | </td> |
| 172 | </tr> |
| 173 | |
| 174 | <tr valign="top"> |
| 175 | <th scope="row"> |
| 176 | <?php esc_html_e( 'Embed Width', 'strong-testimonials' ); ?> |
| 177 | </th> |
| 178 | <td> |
| 179 | <fieldset> |
| 180 | <?php |
| 181 | printf( |
| 182 | /* Translators: %s is an input field. */ |
| 183 | esc_html__( 'For embedded links (YouTube, Twitter, etc.) set the frame width to %s pixels.', 'strong-testimonials' ), |
| 184 | '<input type="text" name="wpmtst_options[embed_width]" value="' . esc_attr( $options['embed_width'] ) . '" size="3">' |
| 185 | ); |
| 186 | ?> |
| 187 | <p class="description"><?php esc_html_e( 'Leave empty for default width (usually 100% for videos). Height will be calculated automatically. This setting only applies to Views.', 'strong-testimonials' ); ?></p> |
| 188 | <p class="description"> |
| 189 | <?php |
| 190 | printf( |
| 191 | '<a href="%s" target="_blank">%s</a>', |
| 192 | esc_url( 'https://codex.wordpress.org/Embeds' ), |
| 193 | esc_html__( 'More on embeds', 'strong-testimonials' ) |
| 194 | ); |
| 195 | ?> |
| 196 | </p> |
| 197 | </fieldset> |
| 198 | </td> |
| 199 | </tr> |
| 200 | |
| 201 | <tr valign="top"> |
| 202 | <th scope="row"> |
| 203 | <?php esc_html_e( 'Nofollow Links', 'strong-testimonials' ); ?> |
| 204 | </th> |
| 205 | <td> |
| 206 | <fieldset> |
| 207 | <label> |
| 208 | <input type="checkbox" name="wpmtst_options[nofollow]" <?php checked( $options['nofollow'] ); ?>> |
| 209 | <?php echo wp_kses_post( __( 'Add <code>rel="nofollow"</code> to URL custom fields.', 'strong-testimonials' ) ); ?> |
| 210 | <?php esc_html_e( 'On by default.', 'strong-testimonials' ); ?> |
| 211 | </label> |
| 212 | <p class="description"> |
| 213 | <?php |
| 214 | printf( |
| 215 | 'To edit this value on your existing testimonials in bulk, try <a href="%s" target="_blank">%s</a> and set <code>nofollow</code> to <b>default</b>, <b>yes</b> or <b>no</b>.', |
| 216 | esc_url( 'https://wordpress.org/plugins/custom-field-bulk-editor/' ), |
| 217 | esc_html__( 'Custom Field Bulk Editor', 'strong-testimonials' ) |
| 218 | ); |
| 219 | ?> |
| 220 | </p> |
| 221 | </fieldset> |
| 222 | </td> |
| 223 | </tr> |
| 224 | <tr valign="top"> |
| 225 | <th scope="row"> |
| 226 | <?php esc_html_e( 'Noopener Links', 'strong-testimonials' ); ?> |
| 227 | </th> |
| 228 | <td> |
| 229 | <fieldset> |
| 230 | <label> |
| 231 | <input type="checkbox" name="wpmtst_options[noopener]" <?php checked( $options['noopener'] ); ?>> |
| 232 | <?php echo wp_kses_post( __( 'Add <code>rel="noopener"</code> to URL custom fields.', 'strong-testimonials' ) ); ?> |
| 233 | <?php esc_html_e( 'On by default.', 'strong-testimonials' ); ?> |
| 234 | </label> |
| 235 | </fieldset> |
| 236 | </td> |
| 237 | </tr> |
| 238 | |
| 239 | <tr valign="top"> |
| 240 | <th scope="row"> |
| 241 | <?php esc_html_e( 'Noreferrer Links', 'strong-testimonials' ); ?> |
| 242 | </th> |
| 243 | <td> |
| 244 | <fieldset> |
| 245 | <label> |
| 246 | <input type="checkbox" name="wpmtst_options[noreferrer]" <?php checked( $options['noreferrer'] ); ?>> |
| 247 | <?php echo wp_kses_post( __( 'Add <code>rel="noreferrer"</code> to URL custom fields.', 'strong-testimonials' ) ); ?> |
| 248 | <?php esc_html_e( 'On by default.', 'strong-testimonials' ); ?> |
| 249 | </label> |
| 250 | </fieldset> |
| 251 | </td> |
| 252 | </tr> |
| 253 | |
| 254 | <?php if ( ! function_exists( 'wp_lazy_loading_enabled' ) || ! apply_filters( 'wp_lazy_loading_enabled', true, 'img', 'strong_testimonials_has_lazyload' ) ) : ?> |
| 255 | <tr valign="top"> |
| 256 | <th scope="row"> |
| 257 | <?php esc_html_e( 'Lazy Loading', 'strong-testimonials' ); ?> |
| 258 | </th> |
| 259 | <td> |
| 260 | <fieldset> |
| 261 | <label> |
| 262 | <input type="checkbox" name="wpmtst_options[lazyload]" <?php checked( $options['lazyload'] ); ?>> |
| 263 | <?php printf( esc_html__( 'Enable the Lazy Loading functionality.', 'strong-testimonials' ) ); ?> |
| 264 | <?php esc_html_e( 'Off by default.', 'strong-testimonials' ); ?> |
| 265 | </label> |
| 266 | </fieldset> |
| 267 | </td> |
| 268 | </tr> |
| 269 | <?php endif; ?> |
| 270 | |
| 271 | <?php if ( wpmtst_is_plugin_active( 'lazy-loading-responsive-images' ) ) : ?> |
| 272 | <tr valign="top"> |
| 273 | <th scope="row"> |
| 274 | <?php esc_html_e( 'No Lazy Loading Plugin', 'strong-testimonials' ); ?> |
| 275 | </th> |
| 276 | <td> |
| 277 | <fieldset> |
| 278 | <label> |
| 279 | <input type="checkbox" name="wpmtst_options[no_lazyload_plugin]" <?php checked( $options['no_lazyload_plugin'] ); ?>> |
| 280 | <?php |
| 281 | printf( |
| 282 | wp_kses_post( |
| 283 | // translators: %s is a URL link to the Lazy Loading Responsive Images plugin |
| 284 | __( 'Exclude from <a href="%s" target="_blank">Lazy Loading Responsive Images</a> plugin.', 'strong-testimonials' ) |
| 285 | ), |
| 286 | esc_url( 'https://wordpress.org/plugins/lazy-loading-responsive-images/' ) |
| 287 | ); |
| 288 | ?> |
| 289 | <?php esc_html_e( 'On by default.', 'strong-testimonials' ); ?> |
| 290 | </label> |
| 291 | </fieldset> |
| 292 | </td> |
| 293 | </tr> |
| 294 | <?php else : ?> |
| 295 | <input type="hidden" name="wpmtst_options[no_lazyload_plugin]" value="<?php echo esc_attr( $options['no_lazyload_plugin'] ); ?>"> |
| 296 | <?php endif; ?> |
| 297 | |
| 298 | <tr valign="top"> |
| 299 | <th scope="row"> |
| 300 | <?php esc_html_e( 'Upsells', 'strong-testimonials' ); ?> |
| 301 | </th> |
| 302 | <td> |
| 303 | <fieldset> |
| 304 | <label> |
| 305 | <input type="checkbox" name="wpmtst_options[disable_upsells]" <?php checked( $options['disable_upsells'] ); ?>> |
| 306 | <?php printf( esc_html__( 'Disable all upsells.', 'strong-testimonials' ) ); ?> |
| 307 | <?php esc_html_e( 'Off by default.', 'strong-testimonials' ); ?> |
| 308 | </label> |
| 309 | </fieldset> |
| 310 | </td> |
| 311 | </tr> |
| 312 | |
| 313 | </table> |
| 314 |