pro_label = esc_html__( 'PRO', 'hestia' ); $this->active_callback = true; } /** * Add custom parameters to pass to the JS via JSON. * * @since 1.0.0 * @access public */ public function json() { $json = parent::json(); $json['button_text'] = esc_html( $this->button_text ); $json['button_url'] = esc_url( $this->button_url ); $json['options'] = $this->options; $json['explained_features'] = $this->explained_features; $json['pro_label'] = esc_html( $this->pro_label ); return $json; } /** * Outputs the Underscore.js template. * * @since 1.0.0 * @access public * @return void */ protected function render_template() { ?>
<# if ( data.options.length > 0 ) { #> <# } #> <# if ( data.button_text && data.button_url ) { #> {{ data.button_text }} <# } #> <# if ( data.explained_features.length > 0 ) { #>
<# } #>