visible = ! get_theme_mod( $args['hiding_control'] ); } } /** * Add custom parameters to pass to the JS via JSON. * * @since 1.0 * @access public */ public function json() { $json = parent::json(); $json['visible'] = $this->visible; $json['hiding_control'] = $this->hiding_control; return $json; } /** * Enqueue function. * * @since 1.0 * @access public * @return void */ public function enqueue() { wp_enqueue_script( 'allo-hiding-section', TL_ALLO_TEMPLATE_DIR_URL . '/customizer/customizer-hiding-section/js/script.js', array( 'jquery' ), '1.0', true ); wp_enqueue_style( 'allo-hiding-section-style', TL_ALLO_TEMPLATE_DIR_URL . '/customizer/customizer-hiding-section/css/style.css', array(), '1.0' ); } /** * Outputs the Underscore.js template. * * @since 1.0 * @access public * @return void */ protected function render_template() { ?>