| @@ -1,5 +1,5 @@ | ||
| 1 | -<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?> | |
| 1 | +<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?> | |
| 2 | 2 | |
| 3 | 3 | <div class="wpo-unused-images-section"> |
| 4 | 4 | <h3 class="wpo-first-child"><?php esc_html_e('Unused images', 'wp-optimize');?></h3> |
| 5 | 5 | <div id="wpo_unused_images"> |
| @@ -12,9 +12,9 @@ | ||
| 12 | 12 | </label> |
| 13 | 13 | </div> |
| 14 | 14 | <?php endfor; ?> |
| 15 | 15 | <div class="wpo-unused-images__premium-mask"> |
| 16 | - <a class="wpo-unused-images__premium-link" href="<?php echo esc_url($wp_optimize->premium_version_link); ?>" target="_blank"><?php esc_html_e('Manage unused images with WP-Optimize Premium.', 'wp-optimize'); ?></a> | |
| 16 | + <a class="wpo-unused-images__premium-link" href="<?php echo esc_url($wp_optimize->premium_version_link);?>&utm_content=manage-unused-images" target="_blank"><?php esc_html_e('Manage unused images with WP-Optimize Premium.', 'wp-optimize'); ?></a> | |
| 17 | 17 | </div> |
| 18 | 18 | </div> |
| 19 | 19 | </div> |
| 20 | 20 | |
| @@ -20,9 +20,9 @@ | ||
| 20 | 20 | |
| 21 | 21 | <div class="wpo-image-sizes-section"> |
| 22 | 22 | <h3><?php esc_html_e('Image sizes', 'wp-optimize'); ?></h3> |
| 23 | 23 | <div class="wpo-fieldgroup premium-only"> |
| 24 | - <h3><?php _e('Registered image sizes', 'wp-optimize'); ?></h3> | |
| 24 | + <h3><?php esc_html_e('Registered image sizes', 'wp-optimize'); ?></h3> | |
| 25 | 25 | <?php |
| 26 | 26 | $message = __('This feature is for experienced users.', 'wp-optimize'); |
| 27 | 27 | $message .= ' '; |
| 28 | 28 | $message .= __("Don't remove registered image sizes if you are not sure that images with selected sizes are not used on your site.", 'wp-optimize'); |
| @@ -41,9 +41,9 @@ | ||
| 41 | 41 | </div> |
| 42 | 42 | <h3><?php esc_html_e('Unused image sizes', 'wp-optimize');?></h3> |
| 43 | 43 | <p class="hide_on_empty"> |
| 44 | 44 | <?php esc_html_e('These image sizes were used by some of the themes or plugins installed previously and they remain within your database.', 'wp-optimize'); ?> |
| 45 | - <a href="https://codex.wordpress.org/Post_Thumbnails#Add_New_Post_Thumbnail_Sizes" target="_blank"><?php esc_html_e('Read more about custom image sizes here.', 'wp-optimize'); ?></a> | |
| 45 | + <?php $wp_optimize->wp_optimize_url('https://codex.wordpress.org/Post_Thumbnails#Add_New_Post_Thumbnail_Sizes', __('Read more about custom image sizes here.', 'wp-optimize')); ?> | |
| 46 | 46 | </p> |
| 47 | 47 | <div id="unused_image_sizes"> |
| 48 | 48 | <label class="unused-image-sizes__label"> |
| 49 | 49 | <input type="checkbox" class="unused-image-sizes">unused-image-size (42.2 KB - Total: 3)<br> |
| @@ -58,8 +58,8 @@ | ||
| 58 | 58 | <div class="wpo_remove_selected_sizes_btn__container"> |
| 59 | 59 | <button type="button" class="button button-primary" disabled="disabled"><?php esc_html_e('Remove selected sizes', 'wp-optimize'); ?></button> |
| 60 | 60 | </div> |
| 61 | 61 | <div class="wpo-unused-image-sizes__premium-mask"> |
| 62 | - <a class="wpo-unused-images__premium-link" href="<?php echo esc_url($wp_optimize->premium_version_link); ?>" target="_blank"><?php esc_html_e('Take control of WordPress image sizes with WP-Optimize Premium.', 'wp-optimize'); ?></a> | |
| 62 | + <a class="wpo-unused-images__premium-link" href="<?php echo esc_url($wp_optimize->premium_version_link);?>&utm_content=take-control-image-sizes" target="_blank"><?php esc_html_e('Take control of WordPress image sizes with WP-Optimize Premium.', 'wp-optimize'); ?></a> | |
| 63 | 63 | </div> |
| 64 | 64 | </div> |
| 65 | 65 | </div> |