hide = get_theme_mod($args['hiding_control'], 'enable'); } add_action('customize_controls_init', array($this, 'enqueue')); } /** * Add custom parameters to pass to the JS via JSON. * * @access public */ public function json() { $json = parent::json(); $json['hide'] = $this->hide; $json['hiding_control'] = $this->hiding_control; return $json; } /** * Enqueue function. * * @access public * @return void */ public function enqueue() { wp_enqueue_style('appzend-customizer-toggle-section', get_template_directory_uri() . '/inc/custom-controller/toggle-section/toggle-section.css', array()); wp_enqueue_script('appzend-customizer-toggle-section', get_template_directory_uri() . '/inc/custom-controller/toggle-section/toggle-section.js', array('jquery'), '1.0', true); } /** * Outputs the Underscore.js template. * * @access public * @return void */ protected function render_template() { ?>