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', 'blogarc' );
$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) ) { #>
<# _.each( data.features_list, function(key, value) { #>
- {{{ key }}}
<# }) #>
<# } #>
<# 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', 'blogarc' ),
'priority' => 1,
)
);
$wp_customize->add_setting(
'theme_pro_features',
array(
'sanitize_callback' => '__return_true',
)
);
$wp_customize->add_control(
new Blogarc_Upsell(
$wp_customize,
'theme_pro_features',
array(
'section' => 'theme_upsell',
'type' => 'upsell',
)
)
);
$wp_customize->add_section(
new Blogarc_Section_Features_List(
$wp_customize,
'theme_header_features',
array(
'title' => esc_html__( 'More Options on BlogBerry Pro!', 'blogarc' ),
'features_list' => array(
esc_html__( 'Dark mode options', 'blogarc' ),
esc_html__( 'Menu badge options', 'blogarc' ),
esc_html__( '17+ Preloader options', 'blogarc' ),
esc_html__( 'More color options', 'blogarc' ),
esc_html__( '404 page options', 'blogarc' ),
esc_html__( '... and many other premium features', 'blogarc' ),
),
'panel' => 'header_options_panel',
'priority' => 999,
)
)
);