args_to_props( $args ); } /** * 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(); ?> <# } #> <# } #>