wp_enqueue_script( 'customize-controls' );
wp_enqueue_style( 'customize-controls' );
+wp_enqueue_script( 'accordion' );
+
do_action( 'customize_controls_enqueue_scripts' );
// Let's roll.
wp_user_settings();
_wp_admin_html_begin();
-$body_class = 'wp-core-ui';
+$body_class = 'wp-core-ui js';
if ( wp_is_mobile() ) :
$body_class .= ' mobile';
$cannot_expand = ! ( $screenshot || $wp_customize->theme()->get('Description') );
?>
- <div class="wp-full-overlay-sidebar-content" tabindex="-1">
- <div id="customize-info" class="customize-section<?php if ( $cannot_expand ) echo ' cannot-expand'; ?>">
- <div class="customize-section-title" aria-label="<?php esc_attr_e( 'Theme Customizer Options' ); ?>" tabindex="0">
+ <div class="wp-full-overlay-sidebar-content accordion-container" tabindex="-1">
+ <div id="customize-info" class="accordion-section <?php if ( $cannot_expand ) echo ' cannot-expand'; ?>">
+ <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Theme Customizer Options' ); ?>" tabindex="0">
<span class="preview-notice"><?php
/* translators: %s is the theme name in the Customize/Live Preview pane */
echo sprintf( __( 'You are previewing %s' ), '<strong class="theme-name">' . $wp_customize->theme()->display('Name') . '</strong>' );
?></span>
</div>
<?php if ( ! $cannot_expand ) : ?>
- <div class="customize-section-content">
+ <div class="accordion-section-content">
<?php if ( $screenshot ) : ?>
<img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" />
<?php endif; ?>