| @@ -141,9 +141,9 @@ | ||
| 141 | 141 | <p> |
| 142 | 142 | <?php esc_html_e('List of files that can\'t or shouldn\'t be minified or merged.', 'wp-optimize'); ?> |
| 143 | 143 | <?php esc_html_e('Do not edit this if you are not sure what it is.', 'wp-optimize'); ?> |
| 144 | 144 | <br><?php esc_html_e('Tick the checkbox to merge / minify the corresponding file anyways.', 'wp-optimize'); ?> |
| 145 | - <span tabindex="0" data-tooltip="<?php esc_attr_e('Files that have been consistently reported by other users to cause trouble when merged', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 145 | + <span tabindex="0" class="wpo-tooltip" data-tooltip="<?php esc_attr_e('Files that have been consistently reported by other users to cause trouble when merged', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 146 | 146 | </p> |
| 147 | 147 | <?php |
| 148 | 148 | $user_excluded_ignorelist_items = is_array($wpo_minify_options['ignore_list']) ? $wpo_minify_options['ignore_list'] : array(); |
| 149 | 149 | if (empty($default_ignore)) { |
| @@ -183,8 +183,9 @@ | ||
| 183 | 183 | |
| 184 | 184 | <?php if (WP_OPTIMIZE_SHOW_MINIFY_ADVANCED) : ?> |
| 185 | 185 | <div class="wpo-fieldgroup"> |
| 186 | 186 | <fieldset> |
| 187 | + <div class="wpo-fieldgroup__subgroup"> | |
| 187 | 188 | <br> |
| 188 | 189 | <label for="enabled_css_preload"> |
| 189 | 190 | <input |
| 190 | 191 | name="enabled_css_preload" |
| @@ -193,11 +194,12 @@ | ||
| 193 | 194 | value="1" |
| 194 | 195 | <?php echo checked($wpo_minify_options['enabled_css_preload']); ?> |
| 195 | 196 | > |
| 196 | 197 | <?php esc_html_e('Enable WP-O Minify CSS files preloading', 'wp-optimize'); ?> |
| 197 | - <span tabindex="0" data-tooltip="<?php esc_attr_e('Automatically create HTTP headers for WP-O Minify-generated CSS files (when not inlined)', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 198 | 198 | </label> |
| 199 | - <br> | |
| 199 | + <span tabindex="0" class="wpo-tooltip" data-tooltip="<?php esc_attr_e('Automatically create HTTP headers for WP-O Minify-generated CSS files (when not inlined)', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 200 | + </div> | |
| 201 | + <div class="wpo-fieldgroup__subgroup"> | |
| 200 | 202 | <label for="enabled_js_preload"> |
| 201 | 203 | <input |
| 202 | 204 | name="enabled_js_preload" |
| 203 | 205 | type="checkbox" |
| @@ -205,12 +207,13 @@ | ||
| 205 | 207 | value="1" |
| 206 | 208 | <?php echo checked($wpo_minify_options['enabled_js_preload']); ?> |
| 207 | 209 | > |
| 208 | 210 | <?php esc_html_e('Enable WP-O Minify JavaScript files Preload', 'wp-optimize'); ?> |
| 209 | - <span tabindex="0" data-tooltip="<?php esc_attr_e('Automatically create HTTP headers for WP-O Minify-generated JS files', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 210 | 211 | </label> |
| 211 | - </fieldset> | |
| 212 | - </div> | |
| 212 | + <span tabindex="0" class="wpo-tooltip" data-tooltip="<?php esc_attr_e('Automatically create HTTP headers for WP-O Minify-generated JS files', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 213 | + </div> | |
| 214 | + </fieldset> | |
| 215 | + </div> | |
| 213 | 216 | <h3 class="title"> |
| 214 | 217 | <?php esc_html_e('HTTP Headers', 'wp-optimize'); ?> |
| 215 | 218 | </h3> |
| 216 | 219 | <p class="wpo_min-bold-green"> |
| @@ -259,20 +262,22 @@ | ||
| 259 | 262 | |
| 260 | 263 | <h3><?php esc_html_e('External URLs to merge', 'wp-optimize'); ?></h3> |
| 261 | 264 | <div class="wpo-fieldgroup"> |
| 262 | 265 | <fieldset> |
| 263 | - <label for="merge_allowed_urls"> | |
| 264 | - <?php esc_html_e('List of external domains that can be fetched and merged:', 'wp-optimize'); ?> | |
| 265 | - <span tabindex="0" data-tooltip="<?php esc_attr_e('Add any external "domain" for JavaScript or CSS files that can be fetched and merged by WP-Optimize, e.g.: cdnjs.cloudflare.com', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 266 | - </label> | |
| 267 | - <textarea | |
| 268 | - name="merge_allowed_urls" | |
| 269 | - rows="7" | |
| 270 | - cols="50" | |
| 271 | - id="merge_allowed_urls" | |
| 272 | - class="large-text code" | |
| 273 | - placeholder="<?php esc_attr_e('e.g.: example.com', 'wp-optimize'); ?>" | |
| 274 | - ><?php echo esc_textarea($wpo_minify_options['merge_allowed_urls']); ?></textarea> | |
| 266 | + <div class="wpo-fieldgroup__subgroup"> | |
| 267 | + <label for="merge_allowed_urls"> | |
| 268 | + <?php esc_html_e('List of external domains that can be fetched and merged:', 'wp-optimize'); ?> | |
| 269 | + </label> | |
| 270 | + <span tabindex="0" class="wpo-tooltip" data-tooltip="<?php esc_attr_e('Add any external "domain" for JavaScript or CSS files that can be fetched and merged by WP-Optimize, e.g.: cdnjs.cloudflare.com', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 271 | + <textarea | |
| 272 | + name="merge_allowed_urls" | |
| 273 | + rows="7" | |
| 274 | + cols="50" | |
| 275 | + id="merge_allowed_urls" | |
| 276 | + class="large-text code" | |
| 277 | + placeholder="<?php esc_attr_e('e.g.: example.com', 'wp-optimize'); ?>" | |
| 278 | + ><?php echo esc_textarea($wpo_minify_options['merge_allowed_urls']); ?></textarea> | |
| 279 | + </div> | |
| 275 | 280 | </fieldset> |
| 276 | 281 | </div> |
| 277 | 282 | |
| 278 | 283 | <h1><?php esc_html_e('CDN Options', 'wp-optimize'); ?></h1> |
| @@ -314,31 +319,29 @@ | ||
| 314 | 319 | <p class="wpo_min-bold-green wpo_min-rowintro"> |
| 315 | 320 | <?php esc_html_e('If you force this, your JS files may not load for certain slow internet users on Google Chrome.', 'wp-optimize'); ?> |
| 316 | 321 | </p> |
| 317 | 322 | <fieldset> |
| 318 | - <label for="cdn_force"> | |
| 319 | - <input | |
| 320 | - name="cdn_force" | |
| 321 | - type="checkbox" | |
| 322 | - id="cdn_force" | |
| 323 | - value="1" | |
| 324 | - <?php echo checked($wpo_minify_options['cdn_force']); ?> | |
| 325 | - > | |
| 326 | - <?php esc_html_e('I know what I\'m doing...', 'wp-optimize'); ?> | |
| 327 | - <span tabindex="0" data-tooltip="<?php esc_attr_e('Load my JS files from the CDN, even when "defer for Pagespeed Insights" is enabled', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 328 | - </label> | |
| 323 | + <div class="wpo-fieldgroup__subgroup"> | |
| 324 | + <label for="cdn_force"> | |
| 325 | + <input | |
| 326 | + name="cdn_force" | |
| 327 | + type="checkbox" | |
| 328 | + id="cdn_force" | |
| 329 | + value="1" | |
| 330 | + <?php echo checked($wpo_minify_options['cdn_force']); ?> | |
| 331 | + > | |
| 332 | + <?php esc_html_e('I know what I\'m doing...', 'wp-optimize'); ?> | |
| 333 | + </label> | |
| 334 | + <span tabindex="0" class="wpo-tooltip" data-tooltip="<?php esc_attr_e('Load my JS files from the CDN, even when "defer for Pagespeed Insights" is enabled', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 335 | + </div> | |
| 329 | 336 | </fieldset> |
| 330 | 337 | </div> |
| 331 | 338 | <?php endif; ?> |
| 332 | 339 | |
| 333 | - <p class="submit"> | |
| 334 | - <input | |
| 335 | - class="wp-optimize-save-minify-settings button button-primary" | |
| 336 | - type="submit" | |
| 337 | - value="<?php esc_attr_e('Save settings', 'wp-optimize'); ?>" | |
| 338 | - > | |
| 340 | + <div class="wpo-save-btn-container"> | |
| 341 | + <input class="wp-optimize-save-minify-settings button button-primary" type="submit" value="<?php esc_attr_e('Save settings', 'wp-optimize'); ?>"> | |
| 339 | 342 | <img class="wpo_spinner" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage -- N/A ?>" alt="..."> |
| 340 | 343 | <span class="save-done dashicons dashicons-yes display-none"></span> |
| 341 | - </p> | |
| 344 | + </div> | |
| 342 | 345 | <input type="hidden" name="minify_advanced_tab" value="1"> |
| 343 | 346 | </form> |
| 344 | 347 | </div> |