| @@ -4,12 +4,21 @@ | ||
| 4 | 4 | |
| 5 | 5 | <div class="wpo-fieldgroup cache-options"> |
| 6 | 6 | <div class="wpo-fieldgroup__subgroup"> |
| 7 | 7 | <label for="wpo-show-avatars"> |
| 8 | - <input type="checkbox" value="true" disabled <?php checked(get_option('show_avatars'), 1); ?>> | |
| 9 | - <?php esc_html_e('Show avatars.', 'wp-optimize'); ?> | |
| 8 | + <input type="checkbox" value="true" disabled <?php checked($show_avatars, 1); ?>> | |
| 9 | + <?php esc_html_e('Show avatars (WordPress core setting).', 'wp-optimize'); ?> | |
| 10 | 10 | </label> |
| 11 | - <span tabindex="0" data-tooltip="<?php esc_attr_e('Disable or enable avatars for users.', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 11 | + <span tabindex="0" class="wpo-tooltip" data-tooltip="<?php esc_attr_e('This option controls the WordPress core avatar display setting.', 'wp-optimize'); ?> <?php esc_attr_e('WP-Optimize does not manage avatars directly.', 'wp-optimize'); ?> <?php esc_attr_e('You can also change this setting in Settings → Discussion.', 'wp-optimize'); ?> <?php esc_attr_e('When disabled, locally hosted gravatars will also be disabled.', 'wp-optimize'); ?>"> | |
| 12 | + <span class="dashicons dashicons-editor-help"></span> | |
| 13 | + </span> | |
| 14 | + <p class="description"> | |
| 15 | + <?php esc_html_e('This is a WordPress core setting.', 'wp-optimize'); ?> | |
| 16 | + <?php | |
| 17 | + /* translators: %s: Link to WordPress Discussion Settings page */ | |
| 18 | + printf(esc_html__('For more avatar options, visit %s.', 'wp-optimize'), '<a href="' . esc_url(admin_url('options-discussion.php')) . '" target="_blank">' . esc_html__('Settings → Discussion', 'wp-optimize') . '</a>'); | |
| 19 | + ?> | |
| 20 | + </p> | |
| 12 | 21 | </div> |
| 13 | 22 | <div class="wpo-fieldgroup__subgroup" id="wpo-host-gravatars-locally-container"> |
| 14 | 23 | <label for="wpo-host-gravatars-locally"> |
| 15 | 24 | <input type="checkbox" value="true" disabled> |
| @@ -14,9 +23,9 @@ | ||
| 14 | 23 | <label for="wpo-host-gravatars-locally"> |
| 15 | 24 | <input type="checkbox" value="true" disabled> |
| 16 | 25 | <?php esc_html_e('Host gravatars locally.', 'wp-optimize'); ?> |
| 17 | 26 | </label> |
| 18 | - <span tabindex="0" data-tooltip="<?php esc_attr_e('Host gravatars locally to reduce http requests and enhanced privacy.', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 27 | + <span tabindex="0" class="wpo-tooltip" data-tooltip="<?php esc_attr_e('Host gravatars locally to reduce http requests and enhanced privacy.', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 19 | 28 | </div> |
| 20 | 29 | <p><a href="<?php echo esc_url(WP_Optimize()->premium_version_link); ?>&utm_content=host-gravatars-locally" target="_blank"><?php esc_html_e('Upgrade to WP-Optimize Premium to unlock this feature.', 'wp-optimize'); ?></a></p> |
| 21 | 30 | </div> |
| 22 | 31 | |
| @@ -27,9 +36,9 @@ | ||
| 27 | 36 | <label for="cache_specific_urls_only"> |
| 28 | 37 | <input name="cache_specific_urls_only" id="cache_specific_urls_only" class="cache-settings" type="checkbox" value="true" disabled> |
| 29 | 38 | <?php esc_html_e('Cache Specific URLs Only', 'wp-optimize'); ?> |
| 30 | 39 | </label> |
| 31 | - <span tabindex="0" data-tooltip="<?php esc_attr_e('Enable or disable caching for specific URLs only.', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 40 | + <span tabindex="0" class="wpo-tooltip" data-tooltip="<?php esc_attr_e('Enable or disable caching for specific URLs only.', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 32 | 41 | </div> |
| 33 | 42 | <p><a href="<?php echo esc_url(WP_Optimize()->premium_version_link); ?>&utm_content=cache_ignore_query_variables" target="_blank"><?php esc_html_e('Upgrade to WP-Optimize Premium to unlock this feature.', 'wp-optimize'); ?></a></p> |
| 34 | 43 | <p> |
| 35 | 44 | <?php // Translators: %s is an example path. ?> |
| @@ -138,9 +147,11 @@ | ||
| 138 | 147 | </div> |
| 139 | 148 | |
| 140 | 149 | <?php do_action('wpo_page_cache_advanced_settings', $wpo_cache_options); ?> |
| 141 | 150 | |
| 142 | -<input id="wp-optimize-save-cache-advanced-rules" class="button button-primary" type="submit" name="wp-optimize-save-cache-advanced-rules" value="Save changes"> | |
| 151 | +<div class="wpo-save-btn-container"> | |
| 152 | + <input id="wp-optimize-save-cache-advanced-rules" class="button button-primary" type="submit" name="wp-optimize-save-cache-advanced-rules" value="Save changes"> | |
| 143 | 153 | |
| 144 | -<img class="wpo_spinner" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage -- N/A ?>" alt="..."> | |
| 154 | + <img class="wpo_spinner" src="<?php echo esc_url(admin_url('images/spinner-2x.gif')); // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage -- N/A ?>" alt="..."> | |
| 145 | 155 | |
| 146 | -<span class="save-done dashicons dashicons-yes display-none"></span> | |
| 156 | + <span class="save-done dashicons dashicons-yes display-none"></span> | |
| 157 | +</div> | |