<?php

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
/**
 * Customize Heading control class.
 *
 * @package pawfect
 *
 * @see     WP_Customize_Control
 * @access  public
 */

/**
 * Class pawfect_Customize_Heading_Control
 */
class pawfect_Customize_Heading_Control extends pawfect_Customize_Base_Control {

	/**
	 * Customize control type.
	 *
	 * @access public
	 * @var    string
	 */
	public $type = 'pawfect-heading';

	/**
	 * Renders the JavaScript template for this control (following Formula pattern)
	 */
	protected function content_template() {
		?>
		<h4>
			<# if ( data.label ) { #><span class="customize-control-title">{{{ data.label }}}</span><# } #>
		</h4>
		<# if ( data.description ) { #>
			<span class="description customize-control-description">{{{ data.description }}}</span>
		<# } #>
		<?php
	}

	/**
	 * Empty render_content() - using JavaScript template instead
	 */
	protected function render_content() {
		// Empty - using content_template() instead
	}
}
