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

/**
 * Class Paws_And_Care_Customize_Upgrade_Control
 */
class Paws_And_Care_Customize_Upgrade_Control extends Paws_And_Care_Customize_Base_Control {

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

	/**
	 * Renders the Underscore template for this control.
	 *
	 * @see    WP_Customize_Control::print_template()
	 * @access protected
	 * @return void
	 */
	protected function content_template() {
		$upgrade_to_pro_link = 'https://wpfrank.com/wordpress-themes/paws-and-care-premium/';
		?>

		<div class="paws-and-care-upgrade-pro-message" style="display:none;";>
			<# if ( data.label ) { #><h4 class="customize-control-title"><?php echo wp_kses_post( 'Upgrade to <a href="'.$upgrade_to_pro_link.'" target="_blank" > Paws And Care Pro </a> to add more', 'paws-and-care'); ?> {{{ data.label }}} <?php esc_html_e( 'and get the other premium features.', 'paws-and-care') ?></h4><# } #>
		</div>

		<?php
	}

	/**
	 * Render content is still called, so be sure to override it with an empty function in your subclass as well.
	 */
	protected function render_content() {

	}

}