button_text; $manager->register_control_type( 'amyra_Control_Upg' ); parent::__construct( $manager, $id, $args ); } /** * Json conversion */ public function to_json() { parent::to_json(); $this->json['button_text'] = $this->button_text; $this->json['button_url'] = $this->button_url; $this->json['options'] = $this->options; $this->json['explained_features'] = $this->explained_features; } /** * Control content */ public function content_template() { ?>
<# if ( data.options ) { #> <# } #> <# if ( data.button_text && data.button_url ) { #> {{ data.button_text }} <# } #> <# if ( data.explained_features.length > 0 ) { #>
<# } #>