get_section( 'header_image' )->panel = "bootstrap_fitness_homepage_panel"; $wp_customize->get_section( 'header_image' )->title = esc_html__( "Banner Section", 'bootstrap-fitness' ); $wp_customize->get_section( 'header_image' )->priority = 7; $wp_customize->add_setting( 'banner_section_display_option', array( 'sanitize_callback' => 'bootstrap_fitness_sanitize_checkbox', 'default' => true, ) ); $wp_customize->add_control( new Bootstrap_Fitness_Toggle_Control($wp_customize, 'banner_section_display_option', array( 'label' => esc_html__( 'Hide / Show', 'bootstrap-fitness' ), 'section' => 'header_image', 'type' => 'bootstrap-fitness-toggle', 'priority' => 1, )) ); $wp_customize->add_setting( 'banner_section_title', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', 'default' => '', ) ); $wp_customize->add_control( 'banner_section_title', array( 'label' => esc_html__( 'Banner Main Title', 'bootstrap-fitness' ), 'section' => 'header_image', 'type' => 'text', 'priority' => 3, ) ); $wp_customize->selective_refresh->add_partial( 'banner_section_title', array( 'selector' => '.banner .caption .banner-title', 'render_callback' => 'bootstrap_fitness_get_banner_sec_title', ) ); $wp_customize->add_setting( 'banner_section_description', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', 'default' => '', ) ); $wp_customize->add_control( 'banner_section_description', array( 'label' => esc_html__( 'Description', 'bootstrap-fitness' ), 'section' => 'header_image', 'settings' => 'banner_section_description', 'type' => 'textarea', 'priority' => 4, ) ); $wp_customize->selective_refresh->add_partial( 'banner_section_description', array( 'selector' => '.banner .caption p', 'render_callback' => 'bootstrap_fitness_get_banner_desc', ) ); $wp_customize->add_setting( 'banner_section_cta_label', array( 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', 'default' => '', ) ); $wp_customize->add_control( 'banner_section_cta_label', array( 'label' => esc_html__( 'CTA Label', 'bootstrap-fitness' ), 'section' => 'header_image', 'settings' => 'banner_section_cta_label', 'type' => 'text', 'priority' => 5, ) ); $wp_customize->selective_refresh->add_partial( 'banner_section_cta_label', array( 'selector' => '.banner .caption .btn', 'render_callback' => 'bootstrap_fitness_get_banner_cta', ) ); $wp_customize->add_setting( 'banner_section_cta_link', array( 'sanitize_callback' => 'esc_url_raw', 'default' => '', ) ); $wp_customize->add_control( 'banner_section_cta_link', array( 'label' => esc_html__( 'CTA Link', 'bootstrap-fitness' ), 'section' => 'header_image', 'settings' => 'banner_section_cta_link', 'type' => 'url', 'priority' => 6, ) ); if ( fs_bootstrap_fitness()->is_free_plan() ) { $wp_customize->add_setting( 'bootstrap_fitness_header_upgrade_to_pro', array( 'sanitize_callback' => null, ) ); $wp_customize->add_control( new Bootstrap_Fitness_Control_Upgrade_To_Pro($wp_customize, 'bootstrap_fitness_header_upgrade_to_pro', array( 'section' => 'header_image', 'settings' => 'bootstrap_fitness_header_upgrade_to_pro', 'title' => __( 'Customize your banner section', 'bootstrap-fitness' ), 'items' => array( 'one' => array( 'title' => __( 'Show dynamic video in the banner section.', 'bootstrap-fitness' ), ), ), 'button_url' => esc_url( 'https://thebootstrapthemes.com/fitness-gym/#free-vs-pro' ), 'button_text' => __( 'Upgrade Now', 'bootstrap-fitness' ), )) ); } }