186 <form id="customize-controls" class="wrap wp-full-overlay-sidebar"> |
186 <form id="customize-controls" class="wrap wp-full-overlay-sidebar"> |
187 <div id="customize-header-actions" class="wp-full-overlay-header"> |
187 <div id="customize-header-actions" class="wp-full-overlay-header"> |
188 <?php |
188 <?php |
189 $compatible_wp = is_wp_version_compatible( $wp_customize->theme()->get( 'RequiresWP' ) ); |
189 $compatible_wp = is_wp_version_compatible( $wp_customize->theme()->get( 'RequiresWP' ) ); |
190 $compatible_php = is_php_version_compatible( $wp_customize->theme()->get( 'RequiresPHP' ) ); |
190 $compatible_php = is_php_version_compatible( $wp_customize->theme()->get( 'RequiresPHP' ) ); |
191 $fse_safe = true; |
|
192 |
|
193 // Check if the theme requires the Gutenberg plugin to work correctly. |
|
194 $theme_tags = $wp_customize->theme()->get( 'Tags' ); |
|
195 |
|
196 if ( ! empty( $theme_tags ) && in_array( 'full-site-editing', $theme_tags, true ) && ! function_exists( 'gutenberg_is_fse_theme' ) ) { |
|
197 $fse_safe = false; |
|
198 } |
|
199 ?> |
191 ?> |
200 <?php if ( $compatible_wp && $compatible_php && $fse_safe ) : ?> |
192 <?php if ( $compatible_wp && $compatible_php ) : ?> |
201 <?php $save_text = $wp_customize->is_theme_active() ? __( 'Publish' ) : __( 'Activate & Publish' ); ?> |
193 <?php $save_text = $wp_customize->is_theme_active() ? __( 'Publish' ) : __( 'Activate & Publish' ); ?> |
202 <div id="customize-save-button-wrapper" class="customize-save-button-wrapper" > |
194 <div id="customize-save-button-wrapper" class="customize-save-button-wrapper" > |
203 <?php submit_button( $save_text, 'primary save', 'save', false ); ?> |
195 <?php submit_button( $save_text, 'primary save', 'save', false ); ?> |
204 <button id="publish-settings" class="publish-settings button-primary button dashicons dashicons-admin-generic" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled></button> |
196 <button id="publish-settings" class="publish-settings button-primary button dashicons dashicons-admin-generic" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled></button> |
205 </div> |
197 </div> |
228 <div id="widgets-right" class="wp-clearfix"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the Customizer for compat --> |
220 <div id="widgets-right" class="wp-clearfix"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the Customizer for compat --> |
229 <div id="customize-notifications-area" class="customize-control-notifications-container"> |
221 <div id="customize-notifications-area" class="customize-control-notifications-container"> |
230 <ul></ul> |
222 <ul></ul> |
231 </div> |
223 </div> |
232 <div class="wp-full-overlay-sidebar-content" tabindex="-1"> |
224 <div class="wp-full-overlay-sidebar-content" tabindex="-1"> |
233 <div id="customize-info" class="accordion-section customize-info"> |
225 <div id="customize-info" class="accordion-section customize-info" data-block-theme="<?php echo (int) wp_is_block_theme(); ?>"> |
234 <div class="accordion-section-title"> |
226 <div class="accordion-section-title"> |
235 <span class="preview-notice"> |
227 <span class="preview-notice"> |
236 <?php |
228 <?php |
237 /* translators: %s: The site/panel title in the Customizer. */ |
229 /* translators: %s: The site/panel title in the Customizer. */ |
238 printf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name', 'display' ) . '</strong>' ); |
230 printf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name', 'display' ) . '</strong>' ); |
239 ?> |
231 ?> |
240 </span> |
232 </span> |
241 <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> |
233 <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> |
242 </div> |
234 </div> |
243 <div class="customize-panel-description"> |
235 <div class="customize-panel-description"> |
244 <?php |
236 <p> |
245 _e( 'The Customizer allows you to preview changes to your site before publishing them. You can navigate to different pages on your site within the preview. Edit shortcuts are shown for some editable elements.' ); |
237 <?php |
246 ?> |
238 _e( 'The Customizer allows you to preview changes to your site before publishing them. You can navigate to different pages on your site within the preview. Edit shortcuts are shown for some editable elements. The Customizer is intended for use with non-block themes.' ); |
|
239 ?> |
|
240 </p> |
|
241 <p> |
|
242 <?php |
|
243 _e( '<a href="https://wordpress.org/support/article/appearance-customize-screen/">Documentation on Customizer</a>' ); |
|
244 ?> |
|
245 </p> |
247 </div> |
246 </div> |
248 </div> |
247 </div> |
249 |
248 |
250 <div id="customize-theme-controls"> |
249 <div id="customize-theme-controls"> |
251 <ul class="customize-pane-parent"><?php // Panels and sections are managed here via JavaScript ?></ul> |
250 <ul class="customize-pane-parent"><?php // Panels and sections are managed here via JavaScript ?></ul> |