json['default'] = $this->setting->default; if ( isset( $this->default ) ) { $this->json['default'] = $this->default; } $this->json['id'] = $this->id; $this->json['link'] = $this->get_link(); $this->json['value'] = maybe_unserialize( $this->value() ); $this->json['choices'] = $this->choices; } /** * 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 customize-control-' . $this->type; $d_controller = $d_condition = $d_value = ''; $dependency = $this->dependency; if( !empty( $dependency ) ) { $d_controller = "data-controller='" . esc_attr( $dependency[0] )."'"; $d_condition = "data-condition='" . esc_attr( $dependency[1] )."'"; $d_value = "data-value='". esc_attr( $dependency[2] )."'"; } printf( '
  • ', esc_attr( $id ), esc_attr( $class ), $d_controller, $d_condition, $d_value ); $this->render_content(); echo '
  • '; } /** * Render a JS template for the content of the dt-sortable control * Format : Underscore JS */ protected function content_template() { ?>