add_section( 'theme_info', array( 'title' => esc_html__( 'Video Documentation & Demo' , 'bulk' ), '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', 'bulk' ), '' . esc_html__( 'demos', 'bulk' ) . '' ); $theme_info .= '

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

'; $wp_customize->add_control( new bulk_Info_Text( $wp_customize, 'theme_info_theme', array( 'section' => 'theme_info', 'description' => $theme_info ) ) ); } add_action( 'customize_register', 'bulk_customizer_theme_info' ); if ( class_exists( 'WP_Customize_control' ) ) { class bulk_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( 'bulk_Customize_Section_Pro' ); // Register sections. $manager->add_section( new bulk_Customize_Section_Pro( $manager, 'bulk_page_view_pro', array( 'title' => esc_html__( 'PRO version', 'bulk' ), 'priority' => 5, 'pro_text' => esc_html__( 'View PRO version', 'bulk' ), 'pro_url' => 'https://themes4wp.com/product/bulk-pro/' ) ) ); }