mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Refactor the Customizer accordion so that it can be used in other locations.
fixes #23449. props lessbloat, aaroncampbell git-svn-id: https://develop.svn.wordpress.org/trunk@23417 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -79,9 +79,9 @@ class WP_Customize_Section {
|
||||
*/
|
||||
protected function render() {
|
||||
?>
|
||||
<li id="customize-section-<?php echo esc_attr( $this->id ); ?>" class="control-section customize-section">
|
||||
<h3 class="customize-section-title" tabindex="0" 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" title="<?php echo esc_attr( $this->description ); ?>"><?php echo esc_html( $this->title ); ?></h3>
|
||||
<ul class="accordion-section-content">
|
||||
<?php
|
||||
foreach ( $this->controls as $control )
|
||||
$control->maybe_render();
|
||||
|
||||
Reference in New Issue
Block a user