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', 'blogbend' ); $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 }} <# } #> <# } #>
  • add_section( 'theme_upsell', array( 'title' => esc_html__( 'Unlock More Features', 'blogbend' ), 'priority' => 1, ) ); $wp_customize->add_setting( 'theme_pro_features', array( 'sanitize_callback' => '__return_true', ) ); $wp_customize->add_control( new Blogbend_Upsell( $wp_customize, 'theme_pro_features', array( 'section' => 'theme_upsell', 'type' => 'upsell', ) ) ); $wp_customize->add_section( new Blogbend_Section_Features_List( $wp_customize, 'theme_header_features', array( 'title' => esc_html__( 'More Options on BlogBend Pro!', 'blogbend' ), 'features_list' => array( esc_html__( 'Dark mode options', 'blogbend' ), esc_html__( 'Menu badge options', 'blogbend' ), esc_html__( '17+ Preloader options', 'blogbend' ), esc_html__( 'More color options', 'blogbend' ), esc_html__( '404 page options', 'blogbend' ), esc_html__( '... and many other premium features', 'blogbend' ), ), 'panel' => 'header_options_panel', 'priority' => 999, ) ) );