wp/wp-includes/class-wp-customize-section.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
   353 	 * @see WP_Customize_Section::print_template()
   353 	 * @see WP_Customize_Section::print_template()
   354 	 */
   354 	 */
   355 	protected function render_template() {
   355 	protected function render_template() {
   356 		?>
   356 		?>
   357 		<li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }}">
   357 		<li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }}">
   358 			<h3 class="accordion-section-title" tabindex="0">
   358 			<h3 class="accordion-section-title">
   359 				{{ data.title }}
   359 				<button type="button" class="accordion-trigger" aria-expanded="false" aria-controls="{{ data.id }}-content">
   360 				<span class="screen-reader-text">
   360 					{{ data.title }}
   361 					<?php
   361 				</button>
   362 					/* translators: Hidden accessibility text. */
       
   363 					_e( 'Press return or enter to open this section' );
       
   364 					?>
       
   365 				</span>
       
   366 			</h3>
   362 			</h3>
   367 			<ul class="accordion-section-content">
   363 			<ul class="accordion-section-content" id="{{ data.id }}-content">
   368 				<li class="customize-section-description-container section-meta <# if ( data.description_hidden ) { #>customize-info<# } #>">
   364 				<li class="customize-section-description-container section-meta <# if ( data.description_hidden ) { #>customize-info<# } #>">
   369 					<div class="customize-section-title">
   365 					<div class="customize-section-title">
   370 						<button class="customize-section-back" tabindex="-1">
   366 						<button class="customize-section-back" tabindex="-1">
   371 							<span class="screen-reader-text">
   367 							<span class="screen-reader-text">
   372 								<?php
   368 								<?php