Make WordPress Core


Ignore:
Timestamp:
02/14/2013 10:58:04 PM (12 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-includes/class-wp-customize-section.php

    r22798 r23417  
    8080    protected function render() {
    8181        ?>
    82         <li id="customize-section-<?php echo esc_attr( $this->id ); ?>" class="control-section customize-section">
    83             <h3 class="customize-section-title" tabindex="0" title="<?php echo esc_attr( $this->description ); ?>"><?php echo esc_html( $this->title ); ?></h3>
    84             <ul class="customize-section-content">
     82        <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="control-section accordion-section">
     83            <h3 class="accordion-section-title" tabindex="0" title="<?php echo esc_attr( $this->description ); ?>"><?php echo esc_html( $this->title ); ?></h3>
     84            <ul class="accordion-section-content">
    8585                <?php
    8686                foreach ( $this->controls as $control )
Note: See TracChangeset for help on using the changeset viewer.