add_section( 'theme_info', array( 'title' => esc_html__( 'Video Documentation & Demo' , 'balanced-blog' ), 'priority' => 6, ) ); /** Important Links */ $wp_customize->add_setting( 'theme_info_theme', array( 'default' => '', 'sanitize_callback' => 'wp_kses_post', ) ); $theme_info = '

'; /* translators: %s: "demos here" string */ $theme_info .= sprintf( __( 'You can use this theme to create a website like these %1$s', 'balanced-blog' ), '' . esc_html__( 'demos', 'balanced-blog' ) . '' ); $theme_info .= '

'; /* translators: %s: "documentation" string */ $theme_info .= sprintf( __( 'For step-by-step videos and text tutorials, see %1$s', 'balanced-blog' ), '' . esc_html__( 'documentation', 'balanced-blog' ) . '' ); $theme_info .= '

'; $wp_customize->add_control( new balanced_blog_Info_Text( $wp_customize, 'theme_info_theme', array( 'section' => 'theme_info', 'description' => $theme_info ) ) ); } add_action( 'customize_register', 'balanced_blog_customizer_theme_info' ); if ( class_exists( 'WP_Customize_control' ) ) { class balanced_blog_Info_Text extends Wp_Customize_Control { public function render_content(){ ?> label ); ?> description ){ ?> description); ?> 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( 'balanced_blog_Customize_Section_Pro' ); // Register sections. $manager->add_section( new balanced_blog_Customize_Section_Pro( $manager, 'balanced_blog_page_view_pro', array( 'title' => esc_html__( 'Upgrade to', 'balanced-blog' ), 'priority' => 5, 'pro_text' => 'Head Plus', // plugin name, not translatable 'pro_url' => 'https://headthemes.com/head-plus/' ) ) ); }