<?php
/**
 * Customize Heading control class.
 *
 * @package paws-and-care
 *
 * @see     WP_Customize_Control
 * @access  public
 */

/**
 * Class Paws_And_Care_Customize_Heading_Control
 */
class Paws_And_Care_Customize_Heading_Control extends Paws_And_Care_Customize_Base_Control {

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

	/**
	 * Render the control content.
	 *
	 * @access protected
	 * @return void
	 */
	protected function render_content() {
		?>
		<h4>
			<?php if ( ! empty( $this->label ) ) : ?>
				<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
			<?php endif; ?>
			<?php if ( ! empty( $this->description ) ) : ?>
				<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
			<?php endif; ?>
		</h4>
		<?php
	}

}
