json['min'] = $this->min; $this->json['max'] = $this->max; $this->json['step'] = $this->step; $this->json['unit'] = $this->unit; $this->json['value'] = $this->value(); } /** * Don't render any content for this control from PHP. * * @see Barter_A13_Customize_Button_Set_Control::content_template() */ public function render_content() {} /** * Render a JS template for the content of the button_set control. * */ public function content_template() { ?> <# var id = data.settings.default, using_unit = data.unit.length > 0; #> <# if ( data.label ) { #> <# } #> <# if ( data.description ) { #> {{{ data.description }}} <# } #>
<# if( using_unit ){ #>{{ data.unit }}<# } #>