json['button_type'] = $this->button_type;
}
/**
* Underscore JS template to handle the control's output.
*
* @access public
* @return void
*/
public function content_template() { ?>
<# const resetData = data.default; #>
<# const responsive_class = Object.keys( data.responsive ).length > 1 ? ' has-responsive-switcher' : '';
const switcher_class = Object.keys( data.responsive ).length > 1 ? 'responsive-devices d-flex align-items-center' : 'd-flex align-items-center';
#>
{{{ data.label }}}
<# if ( Object.keys( data.responsive ).length > 1 ) { #>
<# Object.keys( data.responsive ).forEach( function( key ) {
let active_class = ( (data.responsive)[key] === 'desktop' ) ? ' active' : ''; #>
-
<# }); #>
<# } #>
<# if ( data.description ) { #>
<# let reset = ( resetData[(data.responsive)[key]] !== undefined ) ? resetData[(data.responsive)[key]] : ''; #>
<# _.each( data.choices, function( choiceLabel, choiceID ) { let radio_val = ( data.button_type === 'icon' ) ? choiceLabel : choiceID; #>
<# }); #>
<# }); #>
register_control_type( 'Business_Aarambha_Customize_Buttonset_Control' );