PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 3.3.2
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v3.3.2
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / templates / images / unused.php

unused.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 3.3.2, at templates/images/unused.php

66 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>
2
3 <div class="wpo-unused-images-section">
4 <h3 class="wpo-first-child"><?php esc_html_e('Unused images', 'wp-optimize');?></h3>
5 <div id="wpo_unused_images">
6 <?php for ($i=0; $i < 10; $i++) : ?>
7 <div class="wpo_unused_image">
8 <label class="wpo_unused_image_thumb_label">
9 <div class="thumbnail">
10 <span class="dashicons dashicons-format-image"></span>
11 </div>
12 </label>
13 </div>
14 <?php endfor; ?>
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>
17 </div>
18 </div>
19 </div>
20
21 <div class="wpo-image-sizes-section">
22 <h3><?php esc_html_e('Image sizes', 'wp-optimize'); ?></h3>
23 <div class="wpo-fieldgroup premium-only">
24 <h3><?php esc_html_e('Registered image sizes', 'wp-optimize'); ?></h3>
25 <?php
26 $message = __('This feature is for experienced users.', 'wp-optimize');
27 $message .= ' ';
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');
29 ?>
30 <p class="red"><?php echo esc_html($message); ?></p>
31 <div id="registered_image_sizes">
32 <label class="unused-image-sizes__label">
33 <input type="checkbox" class="unused-image-sizes">registered-image-size (42.2 KB - Total: 3)<br>
34 </label>
35 <label class="unused-image-sizes__label">
36 <input type="checkbox" class="unused-image-sizes">registered-image-size (42.2 KB - Total: 3)<br>
37 </label>
38 <label class="unused-image-sizes__label">
39 <input type="checkbox" class="unused-image-sizes">registered-image-size (42.2 KB - Total: 3)<br>
40 </label>
41 </div>
42 <h3><?php esc_html_e('Unused image sizes', 'wp-optimize');?></h3>
43 <p class="hide_on_empty">
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 <?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 </p>
47 <div id="unused_image_sizes">
48 <label class="unused-image-sizes__label">
49 <input type="checkbox" class="unused-image-sizes">unused-image-size (42.2 KB - Total: 3)<br>
50 </label>
51 <label class="unused-image-sizes__label">
52 <input type="checkbox" class="unused-image-sizes">unused-image-size (42.2 KB - Total: 3)<br>
53 </label>
54 <label class="unused-image-sizes__label">
55 <input type="checkbox" class="unused-image-sizes">unused-image-size (42.2 KB - Total: 3)<br>
56 </label>
57 </div>
58 <div class="wpo_remove_selected_sizes_btn__container">
59 <button type="button" class="button button-primary" disabled="disabled"><?php esc_html_e('Remove selected sizes', 'wp-optimize'); ?></button>
60 </div>
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>
63 </div>
64 </div>
65 </div>
66