WP_Customize_Panel::render_template() – An Underscore (JS) template for rendering this panel’s container.

You appear to be a bot. Output may be restricted

Description

An Underscore (JS) template for rendering this panel's container.

Class variables for this panel class are available in the data JS object; export custom variables by overriding WP_Customize_Panel::json().

Usage

WP_Customize_Panel::render_template();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/class-wp-customize-panel.php


Lines:

1 to 17 of 17
  protected function render_template() {
    ?>
		<li id="accordion-panel-{{ data.id }}" class="accordion-section control-section control-panel control-panel-{{ data.type }}">
			<h3 class="accordion-section-title" tabindex="0">
				{{ data.title }}
				<span class="screen-reader-text">
					<?php
          /* translators: Hidden accessibility text. */
          _e( 'Press return or enter to open this panel' );
          ?>
				</span>
			</h3>
			<ul class="accordion-sub-container control-panel-content"></ul>
		</li>
		<?php
  }
 

 View on GitHub View on Trac