email-from.php
7 years ago
email-to.php
7 years ago
email.php
7 years ago
form.php
7 years ago
general.php
7 years ago
recipient.php
7 years ago
general.php
237 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Settings |
| 4 | * |
| 5 | * @since 1.13 |
| 6 | */ |
| 7 | |
| 8 | $options = get_option( 'wpmtst_options' ); |
| 9 | ?> |
| 10 | <h2><?php _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 _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 _e( 'Show indicator bubble when new submissions are awaiting moderation.', 'strong-testimonials' ); ?> |
| 23 | <?php _e( 'On by default.', 'strong-testimonials' ); ?> |
| 24 | </label> |
| 25 | </fieldset> |
| 26 | </td> |
| 27 | </tr> |
| 28 | |
| 29 | <tr valign="top"> |
| 30 | <th scope="row"> |
| 31 | <?php _e( 'Reordering', 'strong-testimonials' ); ?> |
| 32 | </th> |
| 33 | <td> |
| 34 | <fieldset> |
| 35 | <label> |
| 36 | <input type="checkbox" name="wpmtst_options[reorder]" <?php checked( $options['reorder'] ); ?>> |
| 37 | <?php _e( 'Enable drag-and-drop reordering in the testimonial list.', 'strong-testimonials' ); ?> |
| 38 | <?php _e( 'Off by default.', 'strong-testimonials' ); ?> |
| 39 | </label> |
| 40 | <p class="description"><?php _e( 'Then set <b>Order</b> to "menu order" in the View.', 'strong-testimonials' ); ?></p> |
| 41 | </fieldset> |
| 42 | </td> |
| 43 | </tr> |
| 44 | |
| 45 | <tr valign="top"> |
| 46 | <th scope="row"> |
| 47 | <?php _e( 'Custom Fields Meta Box', 'strong-testimonials' ); ?> |
| 48 | </th> |
| 49 | <td> |
| 50 | <fieldset> |
| 51 | <label> |
| 52 | <input type="checkbox" name="wpmtst_options[support_custom_fields]" <?php checked( $options['support_custom_fields'] ); ?>> |
| 53 | <?php _e( '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' ); ?> |
| 54 | <?php _e( 'Off by default.', 'strong-testimonials' ); ?> |
| 55 | </label> |
| 56 | <p class="description"><?php _e( 'For advanced users.', 'strong-testimonials' ); ?></p> |
| 57 | </fieldset> |
| 58 | </td> |
| 59 | </tr> |
| 60 | |
| 61 | <tr valign="top"> |
| 62 | <th scope="row"> |
| 63 | <?php esc_html_e( 'Single Testimonial Slug', 'strong-testimonials' ); ?> |
| 64 | </th> |
| 65 | <td> |
| 66 | <label> |
| 67 | <input type="text" name="wpmtst_options[single_testimonial_slug]" value="<?php echo esc_attr( $options['single_testimonial_slug'] ); ?>"/> |
| 68 | </label> |
| 69 | <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> |
| 70 | </td> |
| 71 | </tr> |
| 72 | |
| 73 | </table> |
| 74 | |
| 75 | <hr/> |
| 76 | <h2><?php _e( 'Output', 'strong-testimonials' ); ?></h2> |
| 77 | |
| 78 | <table class="form-table" cellpadding="0" cellspacing="0"> |
| 79 | |
| 80 | <tr valign="top"> |
| 81 | <th scope="row"> |
| 82 | <?php _e( 'Enable Touch', 'strong-testimonials' ); ?> |
| 83 | </th> |
| 84 | <td> |
| 85 | <fieldset> |
| 86 | <label> |
| 87 | <input type="checkbox" name="wpmtst_options[touch_enabled]" <?php checked( $options['touch_enabled'] ); ?>> |
| 88 | <?php _e( 'Enable touch swipe navigation in slideshows.', 'strong-testimonials' ); ?> |
| 89 | <?php _e( 'On by default.', 'strong-testimonials' ); ?> |
| 90 | </label> |
| 91 | <p class="description"><?php _e( 'If you are having trouble scrolling long testimonials on a small screen, try disabling this.', 'strong-testimonials' ); ?></p> |
| 92 | </fieldset> |
| 93 | </td> |
| 94 | </tr> |
| 95 | |
| 96 | <tr valign="top"> |
| 97 | <th scope="row"> |
| 98 | <?php _e( 'Scroll Top', 'strong-testimonials' ); ?> |
| 99 | </th> |
| 100 | <td> |
| 101 | <fieldset> |
| 102 | <label> |
| 103 | <input type="checkbox" name="wpmtst_options[scrolltop]" <?php checked( $options['scrolltop'] ); ?>> |
| 104 | <?php printf( __( 'When a new page is selected in paginated Views, scroll to the top of the container minus %s pixels.', 'strong-testimonials' ), '<input type="text" name="wpmtst_options[scrolltop_offset]" value="' . $options['scrolltop_offset'] . '" size="3">' ); ?> |
| 105 | <?php _e( 'On by default.', 'strong-testimonials' ); ?> |
| 106 | </label> |
| 107 | </fieldset> |
| 108 | </td> |
| 109 | </tr> |
| 110 | |
| 111 | <tr valign="top"> |
| 112 | <th scope="row"> |
| 113 | <?php _e( 'Remove Whitespace', 'strong-testimonials' ); ?> |
| 114 | </th> |
| 115 | <td> |
| 116 | <fieldset> |
| 117 | <label> |
| 118 | <input type="checkbox" name="wpmtst_options[remove_whitespace]" <?php checked( $options['remove_whitespace'] ); ?>> |
| 119 | <?php _e( 'Remove space between HTML tags in View output to prevent double paragraphs <em>(wpautop)</em>.', 'strong-testimonials' ); ?> |
| 120 | <?php _e( 'On by default.', 'strong-testimonials' ); ?> |
| 121 | </label> |
| 122 | </fieldset> |
| 123 | </td> |
| 124 | </tr> |
| 125 | |
| 126 | <tr valign="top"> |
| 127 | <th scope="row"> |
| 128 | <?php _e( 'Comments', 'strong-testimonials' ); ?> |
| 129 | </th> |
| 130 | <td> |
| 131 | <fieldset> |
| 132 | <label> |
| 133 | <input type="checkbox" name="wpmtst_options[support_comments]" <?php checked( $options['support_comments'] ); ?>> |
| 134 | <?php _e( 'Allow comments on testimonials. Requires using your theme\'s single post template.', 'strong-testimonials' ); ?> |
| 135 | <?php _e( 'Off by default.', 'strong-testimonials' ); ?> |
| 136 | </label> |
| 137 | </fieldset> |
| 138 | <p class="description"><?php _e( 'To enable comments:', 'strong-testimonials' ); ?></p> |
| 139 | <ul class="description"> |
| 140 | <li><?php _e( '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> |
| 141 | <li><?php _e( 'For multiple testimonials, use <strong>Bulk Edit</strong> in the testimonial list.', 'strong-testimonials' ); ?></li> |
| 142 | </ul> |
| 143 | </td> |
| 144 | </tr> |
| 145 | |
| 146 | <tr valign="top"> |
| 147 | <th scope="row"> |
| 148 | <?php _e( 'Embed Width', 'strong-testimonials' ); ?> |
| 149 | </th> |
| 150 | <td> |
| 151 | <fieldset> |
| 152 | <?php printf( |
| 153 | /* Translators: %s is an input field. */ |
| 154 | __( 'For embedded links (YouTube, Twitter, etc.) set the frame width to %s pixels.', 'strong-testimonials' ), |
| 155 | '<input type="text" name="wpmtst_options[embed_width]" value="' . $options['embed_width'] . '" size="3">' ); ?> |
| 156 | <p class="description"><?php _e( 'Leave empty for default width (usually 100% for videos). Height will be calculated automatically. This setting only applies to Views.', 'strong-testimonials' ); ?></p> |
| 157 | <p class="description"> |
| 158 | <?php printf( '<a href="%s" target="_blank">%s</a>', |
| 159 | esc_url( 'https://codex.wordpress.org/Embeds' ), |
| 160 | __( 'More on embeds', 'strong-testimonials' ) ); ?> |
| 161 | </p> |
| 162 | </fieldset> |
| 163 | </td> |
| 164 | </tr> |
| 165 | |
| 166 | <tr valign="top"> |
| 167 | <th scope="row"> |
| 168 | <?php _e( 'Load Font Awesome', 'strong-testimonials' ); ?> |
| 169 | </th> |
| 170 | <td> |
| 171 | <fieldset> |
| 172 | <label> |
| 173 | <input type="checkbox" name="wpmtst_options[load_font_awesome]" <?php checked( $options['load_font_awesome'] ); ?>> |
| 174 | <?php printf( __( 'Load the icon font necessary for star ratings %s, slideshow controls %s, and some template quotation marks %s. ','strong-testimonials' ), |
| 175 | '<i class="fa fa-star example" aria-hidden="true"></i>', |
| 176 | '<i class="fa fa-play example" aria-hidden="true"></i>', |
| 177 | '<i class="fa fa-quote-left example" aria-hidden="true"></i>' ); ?> |
| 178 | <?php _e( 'On by default.', 'strong-testimonials' ); ?> |
| 179 | </label> |
| 180 | <p class="description"> |
| 181 | <?php _e( 'Some reasons to disable this:', 'strong-testimonials' ); ?> |
| 182 | </p> |
| 183 | <ul class="description"> |
| 184 | <li> |
| 185 | <?php _e( 'Your theme or another plugin also loads Font Awesome and you want to make your site more efficient by only loading one copy.', 'strong-testimonials' ); ?> |
| 186 | <?php printf( 'Try <a href="%s" target="_blank">%s</a> for even more control.', |
| 187 | esc_url( 'https://wordpress.org/plugins/better-font-awesome/' ), |
| 188 | __( 'Better Font Awesome', 'strong-testimonials' ) ); ?></li> |
| 189 | <li><?php _e( 'You are overriding the icon CSS with images or another icon font.', 'strong-testimonials' ); ?></li> |
| 190 | <li><?php _e( 'You have no need for stars, slideshow controls, or quotation mark icons.', 'strong-testimonials' ); ?></li> |
| 191 | <li><?php _e( 'You know what you\'re doing.', 'strong-testimonials' ); ?></li> |
| 192 | </ul> |
| 193 | </fieldset> |
| 194 | </td> |
| 195 | </tr> |
| 196 | |
| 197 | <tr valign="top"> |
| 198 | <th scope="row"> |
| 199 | <?php _e( 'Nofollow Links', 'strong-testimonials' ); ?> |
| 200 | </th> |
| 201 | <td> |
| 202 | <fieldset> |
| 203 | <label> |
| 204 | <input type="checkbox" name="wpmtst_options[nofollow]" <?php checked( $options['nofollow'] ); ?>> |
| 205 | <?php _e( 'Add <code>rel="nofollow"</code> to URL custom fields.', 'strong-testimonials' ); ?> |
| 206 | <?php _e( 'Off by default.', 'strong-testimonials' ); ?> |
| 207 | </label> |
| 208 | <p class="description"> |
| 209 | <?php printf( '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>.', |
| 210 | esc_url( 'https://wordpress.org/plugins/custom-field-bulk-editor/' ), |
| 211 | __( 'Custom Field Bulk Editor', 'strong-testimonials' ) ); ?> |
| 212 | </p> |
| 213 | </fieldset> |
| 214 | </td> |
| 215 | </tr> |
| 216 | |
| 217 | <?php if ( wpmtst_is_plugin_active( 'lazy-loading-responsive-images' ) ) : ?> |
| 218 | <tr valign="top"> |
| 219 | <th scope="row"> |
| 220 | <?php _e( 'No Lazy Loading', 'strong-testimonials' ); ?> |
| 221 | </th> |
| 222 | <td> |
| 223 | <fieldset> |
| 224 | <label> |
| 225 | <input type="checkbox" name="wpmtst_options[no_lazyload]" <?php checked( $options['no_lazyload'] ); ?>> |
| 226 | <?php printf( __( 'Exclude from <a href="%s" target="_blank">Lazy Loading Responsive Images</a> plugin.', 'strong-testimonials' ), esc_url( 'https://wordpress.org/plugins/lazy-loading-responsive-images/' ) ); ?> |
| 227 | <?php _e( 'On by default.', 'strong-testimonials' ); ?> |
| 228 | </label> |
| 229 | </fieldset> |
| 230 | </td> |
| 231 | </tr> |
| 232 | <?php else : ?> |
| 233 | <input type="hidden" name="wpmtst_options[no_lazyload]" value="<?php echo $options['no_lazyload']; ?>"> |
| 234 | <?php endif; ?> |
| 235 | |
| 236 | </table> |
| 237 |