pro_text; $json['pro_url'] = esc_url( $this->pro_url ); $json['bundle_text'] = $this->bundle_text; $json['bundle_url'] = esc_url( $this->bundle_url ); // New JSON fields $json['demo_text'] = $this->demo_text; $json['demo_url'] = esc_url( $this->demo_url ); $json['support_text'] = $this->support_text; $json['support_url'] = esc_url( $this->support_url ); $json['lite_doc_text'] = $this->lite_doc_text; $json['lite_doc_url'] = esc_url( $this->lite_doc_url ); $json['review_text'] = $this->review_text; $json['review_url'] = esc_url( $this->review_url ); return $json; } /** * Outputs the Underscore.js template. * * @since 1.0.0 * @access public * @return void */ protected function render_template() { ?>
  • {{ data.title }} {{ data.description }}
    <# if ( data.demo_text && data.demo_url ) { #> {{ data.demo_text }} <# } #> <# if ( data.pro_text && data.pro_url ) { #> {{ data.pro_text }} <# } #> <# if ( data.lite_doc_text && data.lite_doc_url ) { #> {{ data.lite_doc_text }} <# } #> <# if ( data.support_text && data.support_url ) { #> {{ data.support_text }} <# } #> <# if ( data.bundle_text && data.bundle_url ) { #> {{ data.bundle_text }} <# } #> <# if ( data.review_text && data.review_url ) { #> {{ data.review_text }} <# } #>