PluginProbe
QuickWebP – WebP & AVIF Image Optimizer, Compression & SEO for WordPress / 3.0.0
QuickWebP – WebP & AVIF Image Optimizer, Compression & SEO for WordPress v3.0.0
4.1.1 4.1.0 4.0.1 4.0.0 3.3.1 3.3.0 trunk 1.0.0 2.0.0 2.1.0 3.0.0 3.1.0 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8
quickwebp / admin / templates / page-settings.php

page-settings.php in QuickWebP – WebP & AVIF Image Optimizer, Compression & SEO for WordPress 3.0.0, at admin/templates/page-settings.php

216 lines 8.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The admin settings of the plugin.
4 * @since 1.0.0
5 */
6 ?>
7 <h1><?php _e( "QuickWebp Settings", QUICKWEBP_TEXT_DOMAIN ); ?></h1>
8
9 <form action="" method="post">
10
11 <table class="form-table">
12
13 <?php $this->render_component( array(
14 'type' => 'toggle',
15 'name' => 'quickwebp_settings_conversion',
16 'label' => __( "Enable/disable image conversion to WEBP format", QUICKWEBP_TEXT_DOMAIN ),
17 'default' => quickwebp_settings_default('quickwebp_settings_conversion'),
18 'classes' => 'toggle-with-children',
19 )); ?>
20
21 <tbody class="form-table children">
22
23 <?php $this->render_component( array(
24 'type' => 'range-slider',
25 'min' => 0,
26 'max' => 100,
27 'step' => 1,
28 'unit' => '%',
29 'name' => 'quickwebp_settings_conversion_quality',
30 'label' => __( 'Quality', QUICKWEBP_TEXT_DOMAIN ),
31 'default' => quickwebp_settings_default('quickwebp_settings_conversion_quality')
32 )); ?>
33
34 <?php $this->render_component( array(
35 'type' => 'range-slider',
36 'min' => 0,
37 'max' => 100,
38 'step' => 1,
39 'unit' => '%',
40 'name' => 'quickwebp_settings_conversion_sharpen',
41 'label' => __( 'Sharpen', QUICKWEBP_TEXT_DOMAIN ),
42 'default' => quickwebp_settings_default('quickwebp_settings_conversion_sharpen')
43 )); ?>
44
45 <?php $this->render_component( array(
46 'type' => 'checkbox',
47 'name' => 'quickwebp_settings_conversion_ignore_webp',
48 'label' => __( "Do not compress images already in WebP", QUICKWEBP_TEXT_DOMAIN ),
49 'default' => quickwebp_settings_default('quickwebp_settings_conversion_ignore_webp'),
50 'options' => array(
51 array(
52 'label' => '',
53 'value' => 'checked'
54 )
55 )
56 )); ?>
57
58 <tr>
59 <th>
60 <label><?php _e( 'Before saving, test your configuration with preview mode.', QUICKWEBP_TEXT_DOMAIN ); ?></label>
61 </th>
62 <td>
63 <?php include QUICKWEBP_PLUGIN_PATH . 'admin/templates/popup-settings-preview.php'; ?>
64 </td>
65 </tr>
66
67 <?php $this->render_component( array(
68 'type' => 'checkbox',
69 'name' => 'quickwebp_settings_conversion_display_webp',
70 'label' => __( "Display images in WebP format on the site", QUICKWEBP_TEXT_DOMAIN ),
71 'description' => __( "If activated, this option allows to deliver optimized images in bulk via QuickWebP in WebP format (useless for images converted to import)", QUICKWEBP_TEXT_DOMAIN ),
72 'default' => quickwebp_settings_default('quickwebp_settings_conversion_display_webp'),
73 'options' => array(
74 array(
75 'label' => '',
76 'value' => 'checked'
77 )
78 )
79 )); ?>
80
81 <tr>
82 <th>
83 <label><?php _e( 'Bulk optimization', QUICKWEBP_TEXT_DOMAIN ); ?></label>
84 </th>
85 <td>
86 <?php include QUICKWEBP_PLUGIN_PATH . 'admin/templates/bulk-optimization.php'; ?>
87 </td>
88 </tr>
89
90 </tbody>
91
92 </table>
93
94 <hr>
95
96 <table class="form-table">
97
98 <?php $this->render_component( array(
99 'type' => 'toggle',
100 'name' => 'quickwebp_settings_resize',
101 'label' => __( "Enable/disable image resizing", QUICKWEBP_TEXT_DOMAIN ),
102 'default' => quickwebp_settings_default('quickwebp_settings_resize'),
103 'classes' => 'toggle-with-children',
104 'description' => __( "By default, WordPress limits the maximum width of uploaded images to 2560 pixels.", QUICKWEBP_TEXT_DOMAIN ),
105 )); ?>
106
107 <tbody class="form-table children">
108
109 <?php $this->render_component( array(
110 'type' => 'number',
111 'name' => 'quickwebp_settings_resize_value',
112 'label' => __( 'Max size', QUICKWEBP_TEXT_DOMAIN ),
113 'default' => quickwebp_settings_default('quickwebp_settings_resize_value')
114 )); ?>
115
116 </tbody>
117
118 </table>
119
120 <hr>
121
122 <table class="form-table">
123
124 <?php $this->render_component( array(
125 'type' => 'toggle',
126 'name' => 'quickwebp_settings_completion',
127 'label' => __( "Enable/disable smart media completion for SEO", QUICKWEBP_TEXT_DOMAIN ),
128 'default' => quickwebp_settings_default('quickwebp_settings_completion'),
129 'classes' => 'toggle-with-children',
130 'description' => __( "This feature will automatically complete the media information (title, caption, alt text, description) from the image name.", QUICKWEBP_TEXT_DOMAIN ),
131 )); ?>
132
133 <tbody class="form-table children">
134
135 <?php $this->render_component( array(
136 'type' => 'checkbox',
137 'name' => 'quickwebp_settings_completion_options',
138 'default' => quickwebp_settings_default('quickwebp_settings_completion_options'),
139 'options' => array(
140 array(
141 'label' => __( 'Title completion from image name', QUICKWEBP_TEXT_DOMAIN ),
142 'value' => 'title',
143 ),
144 array(
145 'label' => __( 'Caption completion from image name.', QUICKWEBP_TEXT_DOMAIN ),
146 'value' => 'caption',
147 ),
148 array(
149 'label' => __( 'Alt text completion from image name.', QUICKWEBP_TEXT_DOMAIN ),
150 'value' => 'alt',
151 ),
152 array(
153 'label' => __( 'Description completion from image name.', QUICKWEBP_TEXT_DOMAIN ),
154 'value' => 'description',
155 )
156 )
157 )); ?>
158
159 </tbody>
160
161 </table>
162
163 <hr>
164
165 <table class="form-table">
166
167 <?php $this->render_component( array(
168 'type' => 'toggle',
169 'name' => 'quickwebp_settings_cleanup',
170 'label' => __( "Enable/disable file name cleanup", QUICKWEBP_TEXT_DOMAIN ),
171 'default' => quickwebp_settings_default('quickwebp_settings_cleanup'),
172 'description' => __( "Remove special characters from file names.", QUICKWEBP_TEXT_DOMAIN ),
173 )); ?>
174
175 </table>
176
177 <hr>
178
179 <table class="form-table">
180
181 <?php $this->render_component( array(
182 'type' => 'toggle',
183 'name' => 'quickwebp_settings_paste_image',
184 'label' => __( "Enable/disable paste picture directly (beta)", QUICKWEBP_TEXT_DOMAIN ),
185 'default' => quickwebp_settings_default('quickwebp_settings_paste_image'),
186 'description' => __( "With this feature you can paste directly your picture in WordPress media.", QUICKWEBP_TEXT_DOMAIN ),
187 )); ?>
188
189 </table>
190
191 <hr>
192
193 <table class="form-table">
194
195 <?php $this->render_component( array(
196 'type' => 'select',
197 'options' => array(
198 array(
199 'value' => 'gd',
200 'label' => 'GD'
201 ),
202 array(
203 'value' => 'imagick',
204 'label' => 'Imagick'
205 )
206 ),
207 'name' => 'quickwebp_settings_library',
208 'label' => __( "Library to use", QUICKWEBP_TEXT_DOMAIN ),
209 'default' => quickwebp_settings_default('quickwebp_settings_library'),
210 'description' => __( "We use the GD library as the default option. However, if the GD library is not available, we will use Imagick instead.", QUICKWEBP_TEXT_DOMAIN )
211 )); ?>
212
213 </table>
214
215 <?php submit_button(); ?>
216 </form>