PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 3.6.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v3.6.0
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-settings.php

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

51 lines 3.6 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.'); ?>
2 <div class='wpo_smush_single_image compression_level' style="<?php echo esc_attr($smush_display); ?>">
3 <label for="enable_lossy_compression">
4 <input type="radio" id="enable_lossy_compression" name="compression_level" class="smush-options compression_level" <?php checked($smush_options['image_quality'], 60); ?>>
5 <?php esc_html_e('Prioritize maximum compression', 'wp-optimize');?>
6 <span tabindex="0" data-tooltip="<?php esc_attr_e('Potentially uses lossy compression to ensure maximum savings per image, the resulting images are of a slightly lower quality', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
7 </label>
8 <label for="enable_lossless_compression">
9 <input type="radio" id="enable_lossless_compression" name="compression_level" class="smush-options compression_level" <?php checked($smush_options['image_quality'], 92); ?>>
10 <?php esc_html_e('Prioritize retention of detail', 'wp-optimize');?>
11 <span tabindex="0" data-tooltip="<?php esc_attr_e('Uses lossless compression, which results in much better image quality but lower filesize savings per image', 'wp-optimize');?>"><span class="dashicons dashicons-editor-help"></span> </span>
12 </label>
13 <label for="enable_custom_compression">
14 <input id="enable_custom_compression" type="radio" name="compression_level" class="smush-options compression_level" <?php checked($custom); ?>>
15 <?php esc_html_e('Custom', 'wp-optimize');?>
16 </label>
17 <div class="smush-options custom_compression" <?php if (!$custom) echo 'style="display:none;"';?>>
18 <span class="alignleft"><?php esc_html_e('Maximum compression', 'wp-optimize');?></span>
19 <input id="custom_compression_slider" class="compression_level" data-max="<?php esc_attr_e('Maximum Compression', 'wp-optimize'); ?>" type="range" step="5" value="<?php echo intval($smush_options['image_quality']); ?>" min="65" max="90" list="number" />
20 <datalist id="number">
21 <option value="65"/>
22 <option value="70"/>
23 <option value="75"/>
24 <option value="80"/>
25 <option value="85"/>
26 <option value="90"/>
27 </datalist>
28 <span class="alignright"><?php esc_html_e('Best image quality', 'wp-optimize');?></span>
29 </div>
30 </div>
31 <a href="#" class="wpo-toggle-advanced-options wpo_smush_single_image" style="<?php echo esc_attr($smush_display); ?>"><?php esc_html_e('Show advanced options', 'wp-optimize');?></a>
32 <div class='smush-advanced wpo-advanced-options'>
33 <h4><?php esc_html_e('Service provider', 'wp-optimize');?></h4>
34 <fieldset class="compression_server">
35 <label for="resmushit">
36 <input type="radio" id="resmushit" name="compression_server_<?php echo esc_attr($post_id); ?>" value="resmushit" <?php checked($smush_options['compression_server'], 'resmushit'); ?>>
37 <a href="http://resmush.it" target="_blank"><?php esc_html_e('reSmush.it', 'wp-optimize');?></a>
38 </label>
39 </fieldset>
40 <h4><?php esc_html_e('Other options', 'wp-optimize');?></h4>
41 <fieldset class="other_options">
42 <label for='smush_backup_<?php echo esc_attr($post_id); ?>'>
43 <input type='checkbox' name='smush_backup_<?php echo esc_attr($post_id); ?>' id='smush_backup_<?php echo esc_attr($post_id); ?>' <?php checked($smush_options['back_up_original']); ?>>
44 <span><?php esc_html_e('Backup original', 'wp-optimize'); ?></span>
45 </label>
46 <label for='smush_exif_<?php echo esc_attr($post_id); ?>'>
47 <input type='checkbox' name='smush_exif_<?php echo esc_attr($post_id); ?>' id='smush_exif_<?php echo esc_attr($post_id); ?>' class="preserve_exif" <?php checked($smush_options['preserve_exif']); ?>>
48 <span><?php esc_html_e('Keep EXIF data', 'wp-optimize'); ?></span>
49 </label>
50 </fieldset>
51 </div>