PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
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
← All changes | views/page-settings.php +14 -0 2.2.8 → trunk View file →
@@ -16,8 +16,20 @@
16 16 $wrapper_class = isset( $notices[ $notice ] ) || isset( $plugins_list['wp-rocket/wp-rocket.php'] ) ? 'imagify-have-rocket' : 'imagify-dont-have-rocket';
17 17 ?>
18 18 <div class="wrap imagify-settings <?php echo esc_attr( $wrapper_class ); ?> imagify-clearfix">
19 19
20 + <?php
21 + /**
22 + * Core only requires `options-head.php` (which calls `settings_errors()`) when the page
23 + * parent is `options-general.php`. That is the case when Imagify is registered with
24 + * `add_options_page()`, but not when it is network-activated and registered with
25 + * `add_menu_page()`/`add_submenu_page()`. Print the notices ourselves in that case.
26 + */
27 + if ( 'options-general.php' !== ( isset( $GLOBALS['parent_file'] ) ? $GLOBALS['parent_file'] : '' ) ) {
28 + settings_errors();
29 + }
30 + ?>
31 +
20 32 <div class="imagify-col imagify-main">
21 33
22 34 <?php $this->print_template( 'part-settings-header' ); ?>
23 35 <div class="imagify-main-content">
@@ -84,8 +96,9 @@
84 96 ]
85 97 );
86 98 ?>
87 99 </p>
100 + <?php do_action( 'imagify_settings_after_lossless' ); ?>
88 101 </div>
89 102 </div>
90 103
91 104 <?php if ( Imagify_Requirements::is_api_key_valid() ) { ?>
@@ -187,8 +200,9 @@
187 200 </div>
188 201 <?php endif; ?>
189 202 <?php
190 203 if ( Imagify_Requirements::is_api_key_valid() ) {
204 + $this->print_template( 'part-settings-tools' );
191 205 $this->print_template( 'part-settings-footer' );
192 206 }
193 207 ?>
194 208 </div>