Make WordPress Core


Ignore:
Timestamp:
02/14/2013 10:58:04 PM (14 years ago)
Author:
markjaquith
Message:

Refactor the Customizer accordion so that it can be used in other locations.

fixes #23449. props lessbloat, aaroncampbell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/customize.php

    r22948 r23417  
    3636wp_enqueue_script( 'customize-controls' );
    3737wp_enqueue_style( 'customize-controls' );
     38
     39wp_enqueue_script( 'accordion' );
    3840
    3941do_action( 'customize_controls_enqueue_scripts' );
     
    9092
    9193                <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">
     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">
    9496                                        <span class="preview-notice"><?php
    9597                                                /* translators: %s is the theme name in the Customize/Live Preview pane */
     
    98100                                </div>
    99101                                <?php if ( ! $cannot_expand ) : ?>
    100                                 <div class="customize-section-content">
     102                                <div class="accordion-section-content">
    101103                                        <?php if ( $screenshot ) : ?>
    102104                                                <img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" />
     
    110112                        </div>
    111113
    112                         <div id="customize-theme-controls"><ul>
     114                        <div id="customize-theme-controls" class="accordion-container"><ul>
    113115                                <?php
    114116                                foreach ( $wp_customize->sections() as $section )
Note: See TracChangeset for help on using the changeset viewer.