'Normal' ); /** * array of Settings for inherits values * * @access public * @var array */ public $inherits = array(); /** * Refresh the parameters passed to the JavaScript via JSON. * * @access public * @see WP_Customize_Control::to_json() * @return void */ public function to_json() { // Get the basics from the parent class. parent::to_json(); // Default value. $this->json['default'] = $this->setting->default; if ( isset( $this->default ) ) { $this->json['default'] = $this->default; } // Value. $this->json['value'] = $this->value(); // The link. $this->json['link'] = $this->get_link(); // The ID. $this->json['id'] = $this->id; // Translation strings. $this->json['l10n'] = $this->l10n; // Input attributes. $this->json['inputAttrs'] = ''; foreach ( $this->input_attrs as $attr => $value ) { $this->json['inputAttrs'] .= $attr . '="' . esc_attr( $value ) . '" '; } // Choices. $this->json['choices'] = $this->choices; // style class $this->json['css_class'] = $this->css_class; // Units Choices $this->json['units'] = $this->units; // Off Sides $this->json['off_sides'] = $this->off_sides; // Colors $this->json['colors'] = $this->colors; // Inherits $this->json['inherits'] = $this->inherits; // Responsive Devices $this->json['responsive'] = $this->responsive; } /** * Renders the control wrapper and calls $this->render_content() for the internals. * * @see WP_Customize_Control::render() */ protected function render() { $id = 'customize-control-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id ); $class = array( 'customize-control customize-control' ); $class[] = 'customize-control-'.$this->type; if ( count( $this->responsive ) > 1 ) { $class[] = 'has-responsive-switcher'; } ?>