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( 'best_shop_Customize_Section_Pro' ); // Register sections. $manager->add_section( new best_shop_Customize_Section_Pro( $manager, 'best_shop_view_pro', array( 'title' => esc_html__( 'Upgrade to Pro', 'best-shop' ), 'priority' => 5, 'pro_text' => esc_html__( 'PRO Features...', 'best-shop' ), 'pro_url' => 'https://www.gradientthemes.com/product/wordpress-shopping-cart-theme/' ) ) ); } endif; add_action( 'customize_register', 'best_shop_sections_pro' );