args_to_props($args); } /** * Range Enqueue. * * @return void */ public function enqueue() { $css_path = DIVI_TORQUE_LITE_URL . '/includes/deprecated/customizer/controls/css/'; $js_path = DIVI_TORQUE_LITE_URL . '/includes/deprecated/customizer/controls/js/'; $file_prefix = (defined('DTQ_DEBUG') && true === constant('DTQ_DEBUG')) ? '' : '.min'; wp_enqueue_script( 'brainaddons-range-control', $js_path . 'range-control' . $file_prefix . '.js', array('customize-controls'), DIVI_TORQUE_LITE_VERSION, true ); wp_enqueue_style( 'brainaddons-range', $css_path . 'range' . $file_prefix . '.css', false, DIVI_TORQUE_LITE_VERSION ); } /** * Handles input value. * * @return array */ public function json() { $json = parent::json(); $json['value'] = json_decode($this->value(), true); $json['link'] = $this->get_link(); $json['media_query'] = $this->media_query; $json['step'] = $this->step; $json['sum_type'] = $this->sum_type; $json['inputAttr'] = $this->input_attr; return $json; } /** * Render the title for the control. */ private function render_title() { ?> <# if ( data.label ) { #> {{{ data.label }}} <# if ( data.description ) { #> <# } #> <# if( data.media_query===true ) { #> render_responsive_switches(); ?> <# } #> <# } #>