PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 1.7
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v1.7
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / views / part-settings-library.php

part-settings-library.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 1.7, at views/part-settings-library.php

87 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );
3
4 $settings = Imagify_Settings::get_instance();
5 $options = Imagify_Options::get_instance();
6 $option_name = $options->get_option_name();
7 ?>
8 <div class="<?php echo imagify_can_optimize_custom_folders() ? 'imagify-col' : ''; ?>">
9 <h3 class="imagify-options-subtitle"><?php _e( 'Media Library', 'imagify' ); ?></h3>
10
11 <p class="imagify-setting-line">
12 <?php
13 $settings->field_checkbox( array(
14 'option_name' => 'resize_larger',
15 'label' => __( 'Resize larger images', 'imagify' ),
16 'attributes' => array(
17 'aria-describedby' => 'describe-resize_larger',
18 ),
19 ) );
20 ?>
21
22 <span class="imagify-options-line">
23 <label for="imagify_resize_larger_w">
24 <?php
25 $max_sizes = get_imagify_max_intermediate_image_size();
26 $resize_larger_w = $options->get( 'resize_larger_w' );
27 printf(
28 /* translators: 1 is a text input for a number of pixels (don't use %d). */
29 __( 'to maximum %s pixels width', 'imagify' ),
30 '<input type="number" id="imagify_resize_larger_w" min="' . $max_sizes['width'] . '" name="' . $option_name . '[resize_larger_w]" value="' . ( $resize_larger_w ? $resize_larger_w : '' ) . '" size="5">'
31 );
32 ?>
33 </label>
34 </span>
35
36 <span id="describe-resize_larger" class="imagify-info">
37 <span class="dashicons dashicons-info"></span>
38 <?php
39 printf(
40 /* translators: 1 is a number of pixels. */
41 __( 'This option is recommended to reduce larger images. You can save up to 80%% after resizing. The new width should not be less than your largest thumbnail width, which is actually %dpx.', 'imagify' ),
42 $max_sizes['width']
43 );
44 ?>
45 </span>
46 </p>
47
48 <?php if ( ! imagify_is_active_for_network() ) : ?>
49
50 <div class="imagify-divider"></div>
51
52 <h4 class="imagify-h4-like"><?php _e( 'Files optimization', 'imagify' ); ?></h4>
53
54 <p>
55 <?php _e( 'You can choose to optimize different image sizes created by WordPress here.', 'imagify' ); ?>
56 </p>
57
58 <p>
59 <?php
60 printf(
61 /* translators: 1 is a "bold" tag start, 2 is the "bold" tag end. */
62 __( 'The %1$soriginal size%2$s is %1$sautomatically optimized%2$s by Imagify.', 'imagify' ),
63 '<strong>', '</strong>'
64 );
65 ?>
66 <br>
67 <span class="imagify-success">
68 <?php _e( 'Remember each additional image size will affect your Imagify monthly usage!', 'imagify' ); ?>
69 </span>
70 </p>
71
72 <?php
73 /**
74 * Disallowed thumbnail sizes.
75 */
76 $settings->field_checkbox_list( array(
77 'option_name' => 'disallowed-sizes',
78 'legend' => __( 'Choose the sizes to optimize', 'imagify' ),
79 'values' => Imagify_Settings::get_thumbnail_sizes(),
80 'reverse_check' => true,
81 ) );
82 ?>
83
84 <?php endif; ?>
85 </div>
86 <?php
87