WP_Customize_Manager::render_control_templates PHP Method

render_control_templates() public method

Render JS templates for all registered control types.
Since: 4.1.0
    public function render_control_templates()
    {
        foreach ($this->registered_control_types as $control_type) {
            $control = new $control_type($this, 'temp', array('settings' => array()));
            $control->print_template();
        }
        ?>
		<script type="text/html" id="tmpl-customize-control-notifications">
			<ul>
				<# _.each( data.notifications, function( notification ) { #>
					<li class="notice notice-{{ notification.type || 'info' }} {{ data.altNotice ? 'notice-alt' : '' }}" data-code="{{ notification.code }}" data-type="{{ notification.type }}">{{{ notification.message || notification.code }}}</li>
				<# } ); #>
			</ul>
		</script>
		<?php 
    }
WP_Customize_Manager