PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.6.1
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.6.1
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 / admin-metabox-smush.php

admin-metabox-smush.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 4.6.1, at templates/admin-metabox-smush.php

67 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>
2 <div id='smush-metabox-inside-wrapper'>
3 <div class='wpo_restore_single_image' style="<?php echo esc_attr($restore_display); ?>">
4 <div class='restore_possible' style="<?php echo esc_attr($restore_action); ?>">
5 <div class="alignleft restore-icon">
6 <label>
7 <span> <?php esc_html_e('Restore original', 'wp-optimize'); ?></span>
8
9 <span tabindex="0" class="wpo-tooltip" data-tooltip="<?php echo esc_attr($restore_tooltip);?>"><span class="dashicons dashicons-editor-help"></span> </span>
10 </label>
11 </div>
12
13 <div class='alignright'>
14 <input type='button' id='wpo_restore_single_image_<?php echo esc_attr($post_id); ?>' data-blog='<?php echo esc_attr(get_current_blog_id()); ?>' data-id="<?php echo esc_attr($post_id); ?>" class='button-primary button' value="<?php esc_attr_e('Restore', 'wp-optimize');?>">
15 </div>
16 </div>
17 <p id='smush_info'><?php echo esc_html($smush_info); ?></p>
18 <div id="wpo_smush_details"><?php echo $smush_details; // phpcs:ignore WordPress.Security.EscapeOutput -- Output is already escaped ?></div>
19 </div>
20
21 <?php echo $smush_settings_form; // phpcs:ignore WordPress.Security.EscapeOutput -- Output is already escaped ?>
22
23 <?php if ($compressed_by_another_plugin && !$smush_marked) { ?>
24 <p><b><?php esc_html_e('Note: This image is already compressed by another plugin', 'wp-optimize'); ?></b></p>
25 <?php } ?>
26
27 <div class='wpo_smush_single_image action_button' style="<?php echo esc_attr($smush_display); ?>" >
28 <input type='button' data-blog='<?php echo esc_attr(get_current_blog_id()); ?>' data-id="<?php echo esc_attr($post_id); ?>" id='smush_compress_<?php echo esc_attr($post_id); ?>' class='button-primary button' value='<?php esc_attr_e('Compress', 'wp-optimize'); ?>'/>
29 </div>
30
31 <div class='wpo_smush_mark_single_image action_button' style="<?php echo esc_attr($smush_mark); ?>" >
32 <input type='button' data-blog='<?php echo esc_attr(get_current_blog_id()); ?>' data-id="<?php echo esc_attr($post_id); ?>" id='smush_mark_<?php echo esc_attr($post_id); ?>' class='button' value='<?php esc_attr_e('Mark as already compressed', 'wp-optimize'); ?>'/>
33 </div>
34
35 <div class='wpo_smush_unmark_single_image action_button' style="<?php echo esc_attr($smush_unmark); ?>" >
36 <input type='button' data-blog='<?php echo esc_attr(get_current_blog_id()); ?>' data-id="<?php echo esc_attr($post_id); ?>" id='smush_unmark_<?php echo esc_attr($post_id); ?>' class='button' value='<?php esc_attr_e('Mark as uncompressed', 'wp-optimize'); ?>'/>
37 </div>
38
39 <?php
40
41 $menu_page_url = menu_page_url('wpo_images', false);
42
43 if ('' === $menu_page_url && !is_multisite()) {
44 $menu_page_url = admin_url('admin.php?page=wpo_images');
45 }
46
47 if (is_multisite()) {
48 $menu_page_url = network_admin_url('admin.php?page=wpo_images');
49 }
50 ?>
51 <div class="smush-metabox-dashboard-link">
52 <a href="<?php echo esc_url($menu_page_url); ?>"><?php esc_html_e('WP-Optimize image settings', 'wp-optimize'); ?></a>
53 </div>
54 </div>
55
56 <div id="smush-information-modal" class="wp-core-ui" style="display:none;">
57 <div class="smush-information"></div>
58 <input type="button" class="wpo_primary_small button-primary information-modal-close" value="<?php esc_attr_e('Close', 'wp-optimize'); ?>" />
59 </div>
60
61 <div id="smush-information-modal-cancel-btn" style="display:none;">
62 <div class="smush-information"></div>
63 <input type="button" class="wpo_primary_small button-primary" value="<?php esc_attr_e('Cancel', 'wp-optimize'); ?>" />
64 </div>
65
66 <script type="text/javascript">jQuery(document).trigger('admin-metabox-smush-loaded');</script>
67