| @@ -1,5 +1,5 @@ | ||
| 1 | -<?php if (!defined('WPO_VERSION')) die('No direct access.'); ?> | |
| 1 | +<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?> | |
| 2 | 2 | <div style="<?php echo esc_attr($smush_info_display); ?>"> |
| 3 | 3 | <p><?php echo esc_html($smush_info); ?></p> |
| 4 | 4 | <?php echo $smush_details; // phpcs:ignore WordPress.Security.EscapeOutput -- Output is already escaped ?> |
| 5 | 5 | </div> |
| @@ -7,20 +7,20 @@ | ||
| 7 | 7 | <?php if ($compressed_by_another_plugin && !$smush_marked) { ?> |
| 8 | 8 | <p><b><?php esc_html_e('Note: This image is already compressed by another plugin', 'wp-optimize'); ?></b></p> |
| 9 | 9 | <?php } ?> |
| 10 | 10 | |
| 11 | - <a class="wpo-smush-compress-popup-btn" href="#" data-blog="<?php echo esc_attr($blog_id); ?>" data-id="<?php echo esc_attr($post_id); ?>" id="smush_compress_<?php echo esc_attr($post_id); ?>" style="<?php echo esc_attr($smush_display); ?>"><?php esc_html_e('Compress', 'wp-optimize'); ?></a> | |
| 12 | - | |
| 13 | - <div class='wpo_restore_single_image restore_possible wpo-fieldgroup' style="<?php echo esc_attr($restore_action); ?>"> | |
| 14 | - <a href="#" 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); ?>"><?php esc_html_e('Restore original image', 'wp-optimize');?></a> | |
| 15 | - <span tabindex="0" data-tooltip="<?php echo esc_attr($restore_tooltip);?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 16 | - </div> | |
| 11 | +<a class="wpo-smush-compress-popup-btn" href="#" data-blog="<?php echo esc_attr($blog_id); ?>" data-id="<?php echo esc_attr($post_id); ?>" id="smush_compress_<?php echo esc_attr($post_id); ?>" style="<?php echo esc_attr($smush_display); ?>"><?php esc_html_e('Compress', 'wp-optimize'); ?></a> | |
| 17 | 12 | |
| 18 | - <?php echo $before_smush_sep; // phpcs:ignore WordPress.Security.EscapeOutput -- Output is already escaped ?> | |
| 13 | +<div class='wpo_restore_single_image restore_possible wpo-fieldgroup' style="<?php echo esc_attr($restore_action); ?>"> | |
| 14 | + <a href="#" 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); ?>"><?php esc_html_e('Restore original image', 'wp-optimize');?></a> | |
| 15 | + <span tabindex="0" title="<?php echo esc_attr($restore_tooltip);?>"><span class="dashicons dashicons-editor-help"></span> </span> | |
| 16 | +</div> | |
| 19 | 17 | |
| 20 | - <div class="wpo_smush_mark_single_image action_button" style="<?php echo esc_attr($smush_mark); ?>"> | |
| 21 | - <a href="#" 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); ?>"><?php esc_html_e('Mark as already compressed', 'wp-optimize'); ?></a> | |
| 22 | - </div> | |
| 18 | +<?php echo $before_smush_sep; // phpcs:ignore WordPress.Security.EscapeOutput -- Output is already escaped ?> | |
| 23 | 19 | |
| 24 | - <div class="wpo_smush_unmark_single_image action_button" style="<?php echo esc_attr($smush_unmark); ?>" > | |
| 25 | - <a href="#" 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); ?>"><?php esc_html_e('Mark as uncompressed', 'wp-optimize'); ?></a> | |
| 26 | - </div> | |
| 20 | +<div class="wpo_smush_mark_single_image action_button" style="<?php echo esc_attr($smush_mark); ?>"> | |
| 21 | + <a href="#" 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); ?>"><?php esc_html_e('Mark as already compressed', 'wp-optimize'); ?></a> | |
| 22 | +</div> | |
| 23 | + | |
| 24 | +<div class="wpo_smush_unmark_single_image action_button" style="<?php echo esc_attr($smush_unmark); ?>" > | |
| 25 | + <a href="#" 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); ?>"><?php esc_html_e('Mark as uncompressed', 'wp-optimize'); ?></a> | |
| 26 | +</div> | |