$wp_customize->add_setting(
'et_divi[slide_nav_font_spacing]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_int_number',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[slide_nav_font_spacing]',
'label' => esc_html__( 'Letter Spacing', 'Divi' ),
'section' => 'et_divi_header_slide',
$wp_customize->add_setting(
'et_divi[slide_nav_font]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_font_choices',
$wp_customize->add_control(
new ET_Divi_Select_Option(
'et_divi[slide_nav_font]',
'label' => esc_html__( 'Font', 'Divi' ),
'section' => 'et_divi_header_slide',
'settings' => 'et_divi[slide_nav_font]',
'choices' => $font_choices,
$wp_customize->add_setting(
'et_divi[slide_nav_font_style]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_font_style',
$wp_customize->add_control(
new ET_Divi_Font_Style_Option(
'et_divi[slide_nav_font_style]',
'label' => esc_html__( 'Font Style', 'Divi' ),
'section' => 'et_divi_header_slide',
'choices' => et_divi_font_style_choices(),
$wp_customize->add_setting(
'default' => et_get_option( 'accent_color', '#2ea3f2' ),
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'label' => esc_html__( 'Background Color', 'Divi' ),
'section' => 'et_divi_header_slide',
'settings' => 'et_divi[slide_nav_bg]',
$wp_customize->add_setting(
'et_divi[slide_nav_links_color]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[slide_nav_links_color]',
'label' => esc_html__( 'Menu Link Color', 'Divi' ),
'section' => 'et_divi_header_slide',
'settings' => 'et_divi[slide_nav_links_color]',
$wp_customize->add_setting(
'et_divi[slide_nav_links_color_active]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[slide_nav_links_color_active]',
'label' => esc_html__( 'Active Link Color', 'Divi' ),
'section' => 'et_divi_header_slide',
'settings' => 'et_divi[slide_nav_links_color_active]',
$wp_customize->add_setting(
'et_divi[slide_nav_top_color]',
'default' => 'rgba(255,255,255,0.6)',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[slide_nav_top_color]',
'label' => esc_html__( 'Top Bar Text Color', 'Divi' ),
'section' => 'et_divi_header_slide',
'settings' => 'et_divi[slide_nav_top_color]',
$wp_customize->add_setting(
'et_divi[slide_nav_search]',
'default' => 'rgba(255,255,255,0.6)',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[slide_nav_search]',
'label' => esc_html__( 'Search Bar Text Color', 'Divi' ),
'section' => 'et_divi_header_slide',
'settings' => 'et_divi[slide_nav_search]',
$wp_customize->add_setting(
'et_divi[slide_nav_search_bg]',
'default' => 'rgba(0,0,0,0.2)',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[slide_nav_search_bg]',
'label' => esc_html__( 'Search Bar Background Color', 'Divi' ),
'section' => 'et_divi_header_slide',
'settings' => 'et_divi[slide_nav_search_bg]',
$wp_customize->add_setting(
'et_divi[nav_fullwidth]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'wp_validate_boolean',
$wp_customize->add_control(
'et_divi[nav_fullwidth]',
'label' => esc_html__( 'Make Full Width', 'Divi' ),
'section' => 'et_divi_header_primary',
$wp_customize->add_setting(
'et_divi[hide_primary_logo]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'wp_validate_boolean',
$wp_customize->add_control(
'et_divi[hide_primary_logo]',
'label' => esc_html__( 'Hide Logo Image', 'Divi' ),
'section' => 'et_divi_header_primary',
$wp_customize->add_setting(
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'label' => esc_html__( 'Menu Height', 'Divi' ),
'section' => 'et_divi_header_primary',
$wp_customize->add_setting(
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'label' => esc_html__( 'Logo Max Height', 'Divi' ),
'section' => 'et_divi_header_primary',
$wp_customize->add_setting(
'et_divi[menu_margin_top]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[menu_margin_top]',
'label' => esc_html__( 'Menu Top Margin', 'Divi' ),
'section' => 'et_divi_header_primary',
$wp_customize->add_setting(
'et_divi[primary_nav_font_size]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[primary_nav_font_size]',
'label' => esc_html__( 'Text Size', 'Divi' ),
'section' => 'et_divi_header_primary',
$wp_customize->add_setting(
'et_divi[primary_nav_font_spacing]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_int_number',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[primary_nav_font_spacing]',
'label' => esc_html__( 'Letter Spacing', 'Divi' ),
'section' => 'et_divi_header_primary',
$wp_customize->add_setting(
'et_divi[primary_nav_font]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_font_choices',
$wp_customize->add_control(
new ET_Divi_Select_Option(
'et_divi[primary_nav_font]',
'label' => esc_html__( 'Font', 'Divi' ),
'section' => 'et_divi_header_primary',
'settings' => 'et_divi[primary_nav_font]',
'choices' => $font_choices,
$wp_customize->add_setting(
'et_divi[primary_nav_font_style]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_font_style',
$wp_customize->add_control(
new ET_Divi_Font_Style_Option(
'et_divi[primary_nav_font_style]',
'label' => esc_html__( 'Font Style', 'Divi' ),
'section' => 'et_divi_header_primary',
'choices' => et_divi_font_style_choices(),
$wp_customize->add_setting(
'et_divi[secondary_nav_font_size]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
$wp_customize->add_setting(
'et_divi[secondary_nav_fullwidth]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'wp_validate_boolean',
$wp_customize->add_control(
'et_divi[secondary_nav_fullwidth]',
'label' => esc_html__( 'Make Full Width', 'Divi' ),
'section' => 'et_divi_header_secondary',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[secondary_nav_font_size]',
'label' => esc_html__( 'Text Size', 'Divi' ),
'section' => 'et_divi_header_secondary',
$wp_customize->add_setting(
'et_divi[secondary_nav_font_spacing]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_int_number',