Actually display customizer section descriptions in a meaningful way. props obenland, helen. fixes #24392.

git-svn-id: https://develop.svn.wordpress.org/trunk@25102 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2013-08-23 16:17:48 +00:00
parent d6ea70e296
commit 08cf55b76a
1 changed files with 4 additions and 1 deletions

View File

@ -80,8 +80,11 @@ class WP_Customize_Section {
protected function render() {
?>
<li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="control-section accordion-section">
<h3 class="accordion-section-title" tabindex="0" title="<?php echo esc_attr( $this->description ); ?>"><?php echo esc_html( $this->title ); ?></h3>
<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();