json['id'] = $this->id; $this->json['desktop'] = array(); $this->json['tablet'] = array(); $this->json['mobile'] = array(); foreach ( $this->settings as $key => $setting ) { $this->json[ $key ] = array( 'id' => $setting->id, 'default' => $setting->default, 'link' => $this->get_link( $key ), 'value' => $this->value( $key ) ); } } /** * Renders the control wrapper and calls $this->render_content() for the internals. */ protected function render() { $id = 'customize-control-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id ); $class = 'customize-control th-has-switches customize-control-' . $this->type; printf( '
  • ', esc_attr( $id ), esc_attr( $class ) ); $this->render_content(); echo '
  • '; } /** * Render a JS template for the content. */ public function content_template() { ?>