~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-admin/customize.php

  • Committer: Jacek Nykis
  • Date: 2013-08-22 11:13:48 UTC
  • Revision ID: jacek.nykis@canonical.com-20130822111348-c4rttn5cynk5tl3o
Import wordpress 3.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
wp_enqueue_script( 'customize-controls' );
37
37
wp_enqueue_style( 'customize-controls' );
38
38
 
 
39
wp_enqueue_script( 'accordion' );
 
40
 
39
41
do_action( 'customize_controls_enqueue_scripts' );
40
42
 
41
43
// Let's roll.
44
46
wp_user_settings();
45
47
_wp_admin_html_begin();
46
48
 
47
 
$body_class = 'wp-core-ui';
 
49
$body_class = 'wp-core-ui js';
48
50
 
49
51
if ( wp_is_mobile() ) :
50
52
        $body_class .= ' mobile';
88
90
                        $cannot_expand = ! ( $screenshot || $wp_customize->theme()->get('Description') );
89
91
                ?>
90
92
 
91
 
                <div class="wp-full-overlay-sidebar-content" tabindex="-1">
92
 
                        <div id="customize-info" class="customize-section<?php if ( $cannot_expand ) echo ' cannot-expand'; ?>">
93
 
                                <div class="customize-section-title" aria-label="<?php esc_attr_e( 'Theme Customizer Options' ); ?>" tabindex="0">
 
93
                <div class="wp-full-overlay-sidebar-content accordion-container" tabindex="-1">
 
94
                        <div id="customize-info" class="accordion-section <?php if ( $cannot_expand ) echo ' cannot-expand'; ?>">
 
95
                                <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Theme Customizer Options' ); ?>" tabindex="0">
94
96
                                        <span class="preview-notice"><?php
95
97
                                                /* translators: %s is the theme name in the Customize/Live Preview pane */
96
98
                                                echo sprintf( __( 'You are previewing %s' ), '<strong class="theme-name">' . $wp_customize->theme()->display('Name') . '</strong>' );
97
99
                                        ?></span>
98
100
                                </div>
99
101
                                <?php if ( ! $cannot_expand ) : ?>
100
 
                                <div class="customize-section-content">
 
102
                                <div class="accordion-section-content">
101
103
                                        <?php if ( $screenshot ) : ?>
102
104
                                                <img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" />
103
105
                                        <?php endif; ?>