title; $json['description'] = $this->description; $json['features_list'] = $this->features_list; $json['is_upsell_feature'] = $this->is_upsell_feature; $json['upsell_link'] = $this->upsell_link; $json['upsell_text'] = __( 'Upgrade Now', 'blogbyte' ); $json['button_link'] = $this->button_link; $json['button_text'] = $this->button_text; $json['class'] = $this->class; return $json; } /** * Outputs the Underscore.js template. * * @since 1.0.0 * @access public * @return void */ protected function render_template() { ?>
  • <# if ( data.title ) { #>

    {{ data.title }}

    <# } #> <# if ( data.description ) { #> {{{ data.description }}} <# } #> <# if ( !_.isEmpty(data.features_list) ) { #> <# } #> <# if ( data.is_upsell_feature ) { #> {{ data.upsell_text }} <# } else { #> <# if ( data.button_text && data.button_link ) { #> {{ data.button_text }} <# } #> <# } #>