equal
deleted
inserted
replaced
4 * |
4 * |
5 * @package WordPress |
5 * @package WordPress |
6 * @subpackage Customize |
6 * @subpackage Customize |
7 * @since 4.0.0 |
7 * @since 4.0.0 |
8 */ |
8 */ |
|
9 |
|
10 // Don't load directly. |
|
11 if ( ! defined( 'ABSPATH' ) ) { |
|
12 die( '-1' ); |
|
13 } |
9 |
14 |
10 /** |
15 /** |
11 * Customize Panel class. |
16 * Customize Panel class. |
12 * |
17 * |
13 * A UI container for sections, managed by the WP_Customize_Manager. |
18 * A UI container for sections, managed by the WP_Customize_Manager. |
344 * @since 4.3.0 |
349 * @since 4.3.0 |
345 */ |
350 */ |
346 protected function render_template() { |
351 protected function render_template() { |
347 ?> |
352 ?> |
348 <li id="accordion-panel-{{ data.id }}" class="accordion-section control-section control-panel control-panel-{{ data.type }}"> |
353 <li id="accordion-panel-{{ data.id }}" class="accordion-section control-section control-panel control-panel-{{ data.type }}"> |
349 <h3 class="accordion-section-title" tabindex="0"> |
354 <h3 class="accordion-section-title"> |
350 {{ data.title }} |
355 <button type="button" class="accordion-trigger" aria-expanded="false" aria-controls="{{ data.id }}-content"> |
351 <span class="screen-reader-text"> |
356 {{ data.title }} |
352 <?php |
357 </button> |
353 /* translators: Hidden accessibility text. */ |
|
354 _e( 'Press return or enter to open this panel' ); |
|
355 ?> |
|
356 </span> |
|
357 </h3> |
358 </h3> |
358 <ul class="accordion-sub-container control-panel-content"></ul> |
359 <ul class="accordion-sub-container control-panel-content" id="{{ data.id }}-content"></ul> |
359 </li> |
360 </li> |
360 <?php |
361 <?php |
361 } |
362 } |
362 |
363 |
363 /** |
364 /** |