<?php
/**
- * Customize Section Class
+ * Customize Section Class.
*
* @package WordPress
* @subpackage Customize
* @since 3.4.0
*/
-
class WP_Customize_Section {
public $manager;
public $id;
*
* @since 3.4.0
*
+ * @param WP_Customize_Manager $manager
* @param string $id An specific ID of the section.
* @param array $args Section arguments.
*/
$this->render();
}
-
/**
* Render the section.
*
*/
protected function render() {
?>
- <li id="customize-section-<?php echo esc_attr( $this->id ); ?>" class="control-section customize-section">
- <h3 class="customize-section-title" title="<?php echo esc_attr( $this->description ); ?>"><?php echo esc_html( $this->title ); ?></h3>
- <ul class="customize-section-content">
+ <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="control-section accordion-section">
+ <h3 class="accordion-section-title" tabindex="0"><?php echo esc_html( $this->title ); ?></h3>
+ <ul class="accordion-section-content">
+ <?php if ( ! empty( $this->description ) ) : ?>
+ <li><p class="description"><?php echo $this->description; ?></p></li>
+ <?php endif; ?>
<?php
foreach ( $this->controls as $control )
$control->maybe_render();