allowed = apply_filters( 'epsilon_upsell_section_display', true ); $manager->register_section_type( 'Epsilon_Section_Pro' ); parent::__construct( $manager, $id, $args ); } /** * Add custom parameters to pass to the JS via JSON. * * @since 1.0.0 * @access public */ public function json() { $json = parent::json(); $json['button_url'] = $this->button_url; $json['button_text'] = esc_html( $this->button_text ); $json['allowed'] = $this->allowed; return $json; } /** * Outputs the Underscore.js template. * * @since 1.0.0 * @access public * @return void */ protected function render_template() { ?> allowed ) : //@formatter:off ?>
  • {{ data.title }} <# if ( data.button_url ) { #> {{ data.button_text }} <# } #>