/** * Render a JS template for the content of the media control. * * @since 3.4.19 * @package Customizr * * @Override * @see WP_Customize_Control::content_template() */ public function content_template() { ?> <# if ( data.title ) { #> <h3 class="czr-customizr-title">{{{ data.title }}}</h3> <# } #> <?php parent::content_template(); ?> <# if ( data.notice ) { #> <span class="czr-notice">{{{ data.notice }}}</span> <# } #> <?php }
/** * Constructor. * * @since 4.3.0 * @access public * * @param WP_Customize_Manager $manager Customizer bootstrap instance. * @param string $id Control ID. * @param array $args Optional. Arguments to override class property defaults. */ public function __construct($manager, $id, $args = array()) { parent::__construct($manager, $id, $args); add_action('customize_controls_print_styles', 'wp_site_icon', 99); }