choices as $value => $args ) $this->choices[ $value ]['color'] = esc_attr( $args['color'] ); $this->json['choices'] = $this->choices; $this->json['link'] = $this->get_link(); $this->json['value'] = $this->value(); $this->json['id'] = $this->id; } /** * Don't render the content via PHP. This control is handled with a JS template. * * @since 4.0.0 * @access public * @return bool */ protected function render_content() {} /** * Underscore JS template to handle the control's output. * * @since 3.0.0 * @access public * @return void */ public function content_template() { ?> <# if ( ! data.choices ) { return; } #> <# if ( data.label ) { #> {{ data.label }} <# } #> <# if ( data.description ) { #> {{{ data.description }}} <# } #> <# _.each( data.choices, function( args, choice ) { #> <# } ) #> register_control_type( 'Adore_Business_Customize_Control_Radio_Color'); /** * Multi input custom control * * @version 1.0.0 * @since 1.0.0 */ class Adore_Business_Multi_Input_Custom_Control extends WP_Customize_Control { /** * Control type * * @var string */ public $type = 'multi-input'; /** * Control button text. * * @var string */ public $button_text; /** * Control method * * @since 1.0.0 */ public function render_content() { ?>