Wordpress 3.6
[autoinstalls/wordpress.git] / wp-admin / customize.php
index 093f9987b34104fbd9c08ed72771033b5537a7d2..a9e05c2fd5a41f6fd05ea30fcac2a06452130f92 100644 (file)
@@ -36,6 +36,8 @@ do_action( 'customize_controls_init' );
 wp_enqueue_script( 'customize-controls' );
 wp_enqueue_style( 'customize-controls' );
 
+wp_enqueue_script( 'accordion' );
+
 do_action( 'customize_controls_enqueue_scripts' );
 
 // Let's roll.
@@ -44,7 +46,7 @@ do_action( 'customize_controls_enqueue_scripts' );
 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';
@@ -88,16 +90,16 @@ do_action( 'customize_controls_print_scripts' );
                        $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; ?>