pro_text;
$json['pro_url'] = esc_url( $this->pro_url );
return $json;
}
/**
* Outputs the Underscore.js template.
*
* @since 1.0.0
* @access public
* @return void
*/
protected function render_template() { ?>
{{ data.title }}
<# if ( data.pro_text && data.pro_url ) { #>
{{ data.pro_text }}
<# } #>
register_section_type( 'Advance_Blog_Customize_Section_Upsell' );
// Register sections.
$wp_customize->add_section(new Advance_Blog_Customize_Section_Upsell(
$wp_customize,
'theme_upsell',
array(
'title' => esc_html__( 'Advance Blog Pro', 'advance-blog' ),
'pro_text' => esc_html__( 'Upgrade To Pro', 'advance-blog' ),
'pro_url' => 'https://wpinterface.com/themes/advance-blog-pro/',
'priority' => 1,
)
)
);