PluginProbe
QuickWebP – WebP & AVIF Image Optimizer, Compression & SEO for WordPress / 2.1.0
QuickWebP – WebP & AVIF Image Optimizer, Compression & SEO for WordPress v2.1.0
4.1.2 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 2.1.0, at admin/templates/page-settings.php

150 lines 5.8 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 <form action="" method="post">
9
10 <table class="form-table">
11
12 <?php $this->render_component( array(
13 'type' => 'toggle',
14 'name' => 'quickwebp_settings_conversion',
15 'label' => __( "Enable/disable image conversion to WEBP format", QUICKWEBP_TEXT_DOMAIN ),
16 'default' => quickwebp_settings_default('quickwebp_settings_conversion'),
17 'classes' => 'toggle-with-children',
18 )); ?>
19
20 <tbody class="form-table children">
21
22 <?php $this->render_component( array(
23 'type' => 'number',
24 'name' => 'quickwebp_settings_conversion_max_width',
25 'label' => __( 'Max width', QUICKWEBP_TEXT_DOMAIN ),
26 'default' => quickwebp_settings_default('quickwebp_settings_conversion_max_width')
27 )); ?>
28
29 <?php $this->render_component( array(
30 'type' => 'number',
31 'name' => 'quickwebp_settings_conversion_max_height',
32 'label' => __( 'Max height', QUICKWEBP_TEXT_DOMAIN ),
33 'default' => quickwebp_settings_default('quickwebp_settings_conversion_max_height')
34 )); ?>
35
36 <?php $this->render_component( array(
37 'type' => 'number',
38 'name' => 'quickwebp_settings_conversion_quality',
39 'label' => __( 'Quality', QUICKWEBP_TEXT_DOMAIN ),
40 'default' => quickwebp_settings_default('quickwebp_settings_conversion_quality')
41 )); ?>
42
43 <?php $this->render_component( array(
44 'type' => 'number',
45 'name' => 'quickwebp_settings_conversion_sharpen',
46 'label' => __( 'Sharpen', QUICKWEBP_TEXT_DOMAIN ),
47 'default' => quickwebp_settings_default('quickwebp_settings_conversion_sharpen')
48 )); ?>
49
50 </tbody>
51
52 </table>
53
54 <hr>
55
56 <table class="form-table">
57
58 <?php $this->render_component( array(
59 'type' => 'toggle',
60 'name' => 'quickwebp_settings_completion',
61 'label' => __( "Enable/disable smart media completion for SEO", QUICKWEBP_TEXT_DOMAIN ),
62 'default' => quickwebp_settings_default('quickwebp_settings_completion'),
63 'classes' => 'toggle-with-children',
64 'description' => __( "This feature will automatically complete the media information (title, caption, alt text, description) from the image name.", QUICKWEBP_TEXT_DOMAIN ),
65 )); ?>
66
67 <tbody class="form-table children">
68
69 <?php $this->render_component( array(
70 'type' => 'checkbox',
71 'name' => 'quickwebp_settings_completion_options',
72 'default' => quickwebp_settings_default('quickwebp_settings_completion_options'),
73 'options' => array(
74 array(
75 'label' => __( 'Title completion from image name', QUICKWEBP_TEXT_DOMAIN ),
76 'value' => 'title',
77 ),
78 array(
79 'label' => __( 'Caption completion from image name.', QUICKWEBP_TEXT_DOMAIN ),
80 'value' => 'caption',
81 ),
82 array(
83 'label' => __( 'Alt text completion from image name.', QUICKWEBP_TEXT_DOMAIN ),
84 'value' => 'alt',
85 ),
86 array(
87 'label' => __( 'Description completion from image name.', QUICKWEBP_TEXT_DOMAIN ),
88 'value' => 'description',
89 )
90 )
91 )); ?>
92
93 </tbody>
94
95 </table>
96
97 <hr>
98
99 <table class="form-table">
100
101 <?php $this->render_component( array(
102 'type' => 'toggle',
103 'name' => 'quickwebp_settings_cleanup',
104 'label' => __( "Enable/disable file name cleanup", QUICKWEBP_TEXT_DOMAIN ),
105 'default' => quickwebp_settings_default('quickwebp_settings_cleanup'),
106 'description' => __( "Remove special characters from file names.", QUICKWEBP_TEXT_DOMAIN ),
107 )); ?>
108
109 </table>
110
111 <hr>
112
113 <table class="form-table">
114
115 <?php $this->render_component( array(
116 'type' => 'toggle',
117 'name' => 'quickwebp_settings_paste_image',
118 'label' => __( "Enable/disable paste picture directly (beta)", QUICKWEBP_TEXT_DOMAIN ),
119 'default' => quickwebp_settings_default('quickwebp_settings_paste_image'),
120 'description' => __( "With this feature you can paste directly your picture in WordPress media.", QUICKWEBP_TEXT_DOMAIN ),
121 )); ?>
122
123 </table>
124
125 <hr>
126
127 <table class="form-table">
128
129 <?php $this->render_component( array(
130 'type' => 'select',
131 'options' => array(
132 array(
133 'value' => 'gd',
134 'label' => 'GD'
135 ),
136 array(
137 'value' => 'imagick',
138 'label' => 'Imagick'
139 )
140 ),
141 'name' => 'quickwebp_settings_library',
142 'label' => __( "Library to use", QUICKWEBP_TEXT_DOMAIN ),
143 'default' => quickwebp_settings_default('quickwebp_settings_library'),
144 '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 )
145 )); ?>
146
147 </table>
148
149 <?php submit_button(); ?>
150 </form>