Example #1
0
 function et_divi_customizer_theme_settings($wp_customize)
 {
     $site_domain = get_locale();
     $google_fonts = et_builder_get_fonts(array('prepend_standard_fonts' => false));
     $et_domain_fonts = array('ru_RU' => 'cyrillic', 'uk' => 'cyrillic', 'bg_BG' => 'cyrillic', 'vi' => 'vietnamese', 'el' => 'greek');
     $et_one_font_languages = et_get_one_font_languages();
     $font_choices = array();
     $font_choices['none'] = array('label' => 'Default Theme Font');
     foreach ($google_fonts as $google_font_name => $google_font_properties) {
         if ('' !== $site_domain && isset($et_domain_fonts[$site_domain]) && false === strpos($google_font_properties['character_set'], $et_domain_fonts[$site_domain])) {
             continue;
         }
         $font_choices[$google_font_name] = array('label' => $google_font_name, 'data' => array('parent_font' => isset($google_font_properties['parent_font']) ? $google_font_properties['parent_font'] : '', 'parent_styles' => isset($google_font_properties['parent_font']) && isset($google_fonts[$google_font_properties['parent_font']]['styles']) ? $google_fonts[$google_font_properties['parent_font']]['styles'] : $google_font_properties['styles'], 'current_styles' => isset($google_font_properties['parent_font']) && isset($google_fonts[$google_font_properties['parent_font']]['styles']) && isset($google_font_properties['styles']) ? $google_font_properties['styles'] : '', 'parent_subset' => isset($google_font_properties['parent_font']) && isset($google_fonts[$google_font_properties['parent_font']]['character_set']) ? $google_fonts[$google_font_properties['parent_font']]['character_set'] : '', 'standard' => isset($google_font_properties['standard']) && $google_font_properties['standard'] ? 'on' : 'off'));
     }
     $wp_customize->add_panel('et_divi_general_settings', array('title' => esc_html__('General Settings', 'Divi'), 'priority' => 1));
     $wp_customize->add_section('title_tagline', array('title' => esc_html__('Site Identity', 'Divi'), 'panel' => 'et_divi_general_settings'));
     $wp_customize->add_section('et_divi_general_layout', array('title' => esc_html__('Layout Settings', 'Divi'), 'panel' => 'et_divi_general_settings'));
     $wp_customize->add_section('et_divi_general_typography', array('title' => esc_html__('Typography', 'Divi'), 'panel' => 'et_divi_general_settings'));
     $wp_customize->add_panel('et_divi_mobile', array('title' => esc_html__('Mobile Styles', 'Divi'), 'priority' => 6));
     $wp_customize->add_section('et_divi_mobile_tablet', array('title' => esc_html__('Tablet', 'Divi'), 'panel' => 'et_divi_mobile'));
     $wp_customize->add_section('et_divi_mobile_phone', array('title' => esc_html__('Phone', 'Divi'), 'panel' => 'et_divi_mobile'));
     $wp_customize->add_section('et_divi_mobile_menu', array('title' => esc_html__('Mobile Menu', 'Divi'), 'panel' => 'et_divi_mobile'));
     $wp_customize->add_section('et_divi_general_background', array('title' => esc_html__('Background', 'Divi'), 'panel' => 'et_divi_general_settings'));
     $wp_customize->add_panel('et_divi_header_panel', array('title' => esc_html__('Header & Navigation', 'Divi'), 'priority' => 2));
     $wp_customize->add_section('et_divi_header_layout', array('title' => esc_html__('Header Format', 'Divi'), 'panel' => 'et_divi_header_panel'));
     $wp_customize->add_section('et_divi_header_primary', array('title' => esc_html__('Primary Menu Bar', 'Divi'), 'panel' => 'et_divi_header_panel'));
     $wp_customize->add_section('et_divi_header_secondary', array('title' => esc_html__('Secondary Menu Bar', 'Divi'), 'panel' => 'et_divi_header_panel'));
     $wp_customize->add_section('et_divi_header_slide', array('title' => esc_html__('Slide In & Fullscreen Header Settings', 'Divi'), 'panel' => 'et_divi_header_panel'));
     $wp_customize->add_section('et_divi_header_fixed', array('title' => esc_html__('Fixed Navigation Settings', 'Divi'), 'panel' => 'et_divi_header_panel'));
     $wp_customize->add_section('et_divi_header_information', array('title' => esc_html__('Header Elements', 'Divi'), 'panel' => 'et_divi_header_panel'));
     $wp_customize->add_panel('et_divi_footer_panel', array('title' => esc_html__('Footer', 'Divi'), 'priority' => 3));
     $wp_customize->add_section('et_divi_footer_layout', array('title' => esc_html__('Layout', 'Divi'), 'panel' => 'et_divi_footer_panel'));
     $wp_customize->add_section('et_divi_footer_widgets', array('title' => esc_html__('Widgets', 'Divi'), 'panel' => 'et_divi_footer_panel'));
     $wp_customize->add_section('et_divi_footer_elements', array('title' => esc_html__('Footer Elements', 'Divi'), 'panel' => 'et_divi_footer_panel'));
     $wp_customize->add_section('et_divi_footer_menu', array('title' => esc_html__('Footer Menu', 'Divi'), 'panel' => 'et_divi_footer_panel'));
     $wp_customize->add_section('et_divi_bottom_bar', array('title' => esc_html__('Bottom Bar', 'Divi'), 'panel' => 'et_divi_footer_panel'));
     $wp_customize->add_section('et_color_schemes', array('title' => esc_html__('Color Schemes', 'Divi'), 'priority' => 7, 'description' => esc_html__('Note: Color settings set above should be applied to the Default color scheme.', 'Divi')));
     $wp_customize->add_panel('et_divi_buttons_settings', array('title' => esc_html__('Buttons', 'Divi'), 'priority' => 4));
     $wp_customize->add_section('et_divi_buttons', array('title' => esc_html__('Buttons Style', 'Divi'), 'panel' => 'et_divi_buttons_settings'));
     $wp_customize->add_section('et_divi_buttons_hover', array('title' => esc_html__('Buttons Hover Style', 'Divi'), 'panel' => 'et_divi_buttons_settings'));
     $wp_customize->add_panel('et_divi_blog_settings', array('title' => esc_html__('Blog', 'Divi'), 'priority' => 5));
     $wp_customize->add_section('et_divi_blog_post', array('title' => esc_html__('Post', 'Divi'), 'panel' => 'et_divi_blog_settings'));
     $wp_customize->add_setting('et_divi[post_meta_font_size]', array('default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->get_setting('blogname')->transport = 'postMessage';
     $wp_customize->get_setting('blogdescription')->transport = 'postMessage';
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[post_meta_font_size]', array('label' => esc_html__('Meta Text Size', 'Divi'), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1))));
     $wp_customize->add_setting('et_divi[post_meta_height]', array('default' => '1', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_float_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[post_meta_height]', array('label' => esc_html__('Meta Line Height', 'Divi'), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array('min' => 0.8, 'max' => 3, 'step' => 0.1))));
     $wp_customize->add_setting('et_divi[post_meta_spacing]', array('default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[post_meta_spacing]', array('label' => esc_html__('Meta Letter Spacing', 'Divi'), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array('min' => -2, 'max' => 10, 'step' => 1))));
     $wp_customize->add_setting('et_divi[post_meta_style]', array('default' => '', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style'));
     $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[post_meta_style]', array('label' => esc_html__('Meta Font Style', 'Divi'), 'section' => 'et_divi_blog_post', 'type' => 'font_style', 'choices' => et_divi_font_style_choices())));
     $wp_customize->add_setting('et_divi[post_header_font_size]', array('default' => '30', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[post_header_font_size]', array('label' => esc_html__('Header Text Size', 'Divi'), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1))));
     $wp_customize->add_setting('et_divi[post_header_height]', array('default' => '1', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_float_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[post_header_height]', array('label' => esc_html__('Header Line Height', 'Divi'), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array('min' => 0.8, 'max' => 3, 'step' => 0.1))));
     $wp_customize->add_setting('et_divi[post_header_spacing]', array('default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[post_header_spacing]', array('label' => esc_html__('Header Letter Spacing', 'Divi'), 'section' => 'et_divi_blog_post', 'type' => 'range', 'input_attrs' => array('min' => -2, 'max' => 10, 'step' => 1))));
     $wp_customize->add_setting('et_divi[post_header_style]', array('default' => '', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style'));
     $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[post_header_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_divi_blog_post', 'type' => 'font_style', 'choices' => et_divi_font_style_choices())));
     $wp_customize->add_setting('et_divi[boxed_layout]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[boxed_layout]', array('label' => esc_html__('Enable Boxed Layout', 'Divi'), 'section' => 'et_divi_general_layout', 'type' => 'checkbox'));
     $wp_customize->add_setting('et_divi[content_width]', array('default' => '1080', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[content_width]', array('label' => esc_html__('Website Content Width', 'Divi'), 'section' => 'et_divi_general_layout', 'type' => 'range', 'input_attrs' => array('min' => 960, 'max' => 1920, 'step' => 1))));
     $wp_customize->add_setting('et_divi[gutter_width]', array('default' => '3', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[gutter_width]', array('label' => esc_html__('Website Gutter Width', 'Divi'), 'section' => 'et_divi_general_layout', 'type' => 'range', 'input_attrs' => array('min' => 1, 'max' => 4, 'step' => 1))));
     $wp_customize->add_setting('et_divi[use_sidebar_width]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[use_sidebar_width]', array('label' => esc_html__('Use Custom Sidebar Width', 'Divi'), 'section' => 'et_divi_general_layout', 'type' => 'checkbox'));
     $wp_customize->add_setting('et_divi[sidebar_width]', array('default' => '21', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[sidebar_width]', array('label' => esc_html__('Sidebar Width', 'Divi'), 'section' => 'et_divi_general_layout', 'type' => 'range', 'input_attrs' => array('min' => 19, 'max' => 33, 'step' => 1))));
     $wp_customize->add_setting('et_divi[section_padding]', array('default' => '4', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[section_padding]', array('label' => esc_html__('Section Height', 'Divi'), 'section' => 'et_divi_general_layout', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 10, 'step' => 1))));
     $wp_customize->add_setting('et_divi[phone_section_height]', array('default' => et_get_option('tablet_section_height', '50'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[phone_section_height]', array('label' => esc_html__('Section Height', 'Divi'), 'section' => 'et_divi_mobile_phone', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))));
     $wp_customize->add_setting('et_divi[tablet_section_height]', array('default' => '50', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[tablet_section_height]', array('label' => esc_html__('Section Height', 'Divi'), 'section' => 'et_divi_mobile_tablet', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))));
     $wp_customize->add_setting('et_divi[row_padding]', array('default' => '2', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[row_padding]', array('label' => esc_html__('Row Height', 'Divi'), 'section' => 'et_divi_general_layout', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 10, 'step' => 1))));
     $wp_customize->add_setting('et_divi[phone_row_height]', array('default' => et_get_option('tablet_row_height', '30'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[phone_row_height]', array('label' => esc_html__('Row Height', 'Divi'), 'section' => 'et_divi_mobile_phone', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))));
     $wp_customize->add_setting('et_divi[tablet_row_height]', array('default' => '30', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[tablet_row_height]', array('label' => esc_html__('Row Height', 'Divi'), 'section' => 'et_divi_mobile_tablet', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 150, 'step' => 1))));
     $wp_customize->add_setting('et_divi[cover_background]', array('default' => 'on', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[cover_background]', array('label' => esc_html__('Stretch Background Image', 'Divi'), 'section' => 'et_divi_general_background', 'type' => 'checkbox'));
     if (!is_null($wp_customize->get_setting('background_color'))) {
         $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'background_color', array('label' => esc_html__('Background Color', 'Divi'), 'section' => 'et_divi_general_background')));
     }
     if (!is_null($wp_customize->get_setting('background_image'))) {
         $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'background_image', array('label' => esc_html__('Background Image', 'Divi'), 'section' => 'et_divi_general_background')));
     }
     $wp_customize->add_control('background_repeat', array('label' => esc_html__('Background Repeat', 'Divi'), 'section' => 'et_divi_general_background', 'type' => 'radio', 'choices' => array('no-repeat' => esc_html__('No Repeat', 'Divi'), 'repeat' => esc_html__('Tile', 'Divi'), 'repeat-x' => esc_html__('Tile Horizontally', 'Divi'), 'repeat-y' => esc_html__('Tile Vertically', 'Divi'))));
     $wp_customize->add_control('background_position_x', array('label' => esc_html__('Background Position', 'Divi'), 'section' => 'et_divi_general_background', 'type' => 'radio', 'choices' => array('left' => esc_html__('Left', 'Divi'), 'center' => esc_html__('Center', 'Divi'), 'right' => esc_html__('Right', 'Divi'))));
     $wp_customize->add_control('background_attachment', array('label' => esc_html__('Background Position', 'Divi'), 'section' => 'et_divi_general_background', 'type' => 'radio', 'choices' => array('scroll' => esc_html__('Scroll', 'Divi'), 'fixed' => esc_html__('Fixed', 'Divi'))));
     $wp_customize->add_setting('et_divi[body_font_size]', array('default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[body_font_size]', array('label' => esc_html__('Body Text Size', 'Divi'), 'section' => 'et_divi_general_typography', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1))));
     $wp_customize->add_setting('et_divi[body_font_height]', array('default' => '1.7', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_float_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[body_font_height]', array('label' => esc_html__('Body Line Height', 'Divi'), 'section' => 'et_divi_general_typography', 'type' => 'range', 'input_attrs' => array('min' => 0.8, 'max' => 3, 'step' => 0.1))));
     $wp_customize->add_setting('et_divi[phone_body_font_size]', array('default' => et_get_option('tablet_body_font_size', '14'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[phone_body_font_size]', array('label' => esc_html__('Body Text Size', 'Divi'), 'section' => 'et_divi_mobile_phone', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1))));
     $wp_customize->add_setting('et_divi[tablet_body_font_size]', array('default' => et_get_option('body_font_size', '14'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[tablet_body_font_size]', array('label' => esc_html__('Body Text Size', 'Divi'), 'section' => 'et_divi_mobile_tablet', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1))));
     $wp_customize->add_setting('et_divi[body_header_size]', array('default' => '30', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[body_header_size]', array('label' => esc_html__('Header Text Size', 'Divi'), 'section' => 'et_divi_general_typography', 'type' => 'range', 'input_attrs' => array('min' => 22, 'max' => 72, 'step' => 1))));
     $wp_customize->add_setting('et_divi[body_header_spacing]', array('default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[body_header_spacing]', array('label' => esc_html__('Header Letter Spacing', 'Divi'), 'section' => 'et_divi_general_typography', 'type' => 'range', 'input_attrs' => array('min' => -2, 'max' => 10, 'step' => 1))));
     $wp_customize->add_setting('et_divi[body_header_height]', array('default' => '1', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_float_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[body_header_height]', array('label' => esc_html__('Header Line Height', 'Divi'), 'section' => 'et_divi_general_typography', 'type' => 'range', 'input_attrs' => array('min' => 0.8, 'max' => 3, 'step' => 0.1))));
     $wp_customize->add_setting('et_divi[body_header_style]', array('default' => '', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style'));
     $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[body_header_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_divi_general_typography', 'type' => 'font_style', 'choices' => et_divi_font_style_choices())));
     $wp_customize->add_setting('et_divi[phone_header_font_size]', array('default' => et_get_option('tablet_header_font_size', '30'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[phone_header_font_size]', array('label' => esc_html__('Header Text Size', 'Divi'), 'section' => 'et_divi_mobile_phone', 'type' => 'range', 'input_attrs' => array('min' => 22, 'max' => 72, 'step' => 1))));
     $wp_customize->add_setting('et_divi[tablet_header_font_size]', array('default' => et_get_option('body_header_size', '30'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[tablet_header_font_size]', array('label' => esc_html__('Header Text Size', 'Divi'), 'section' => 'et_divi_mobile_tablet', 'type' => 'range', 'input_attrs' => array('min' => 22, 'max' => 72, 'step' => 1))));
     if (!isset($et_one_font_languages[$site_domain])) {
         $wp_customize->add_setting('et_divi[heading_font]', array('default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices'));
         $wp_customize->add_control(new ET_Divi_Select_Option($wp_customize, 'et_divi[heading_font]', array('label' => esc_html__('Header Font', 'Divi'), 'section' => 'et_divi_general_typography', 'settings' => 'et_divi[heading_font]', 'type' => 'select', 'choices' => $font_choices)));
         $wp_customize->add_setting('et_divi[body_font]', array('default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices'));
         $wp_customize->add_control(new ET_Divi_Select_Option($wp_customize, 'et_divi[body_font]', array('label' => esc_html__('Body Font', 'Divi'), 'section' => 'et_divi_general_typography', 'settings' => 'et_divi[body_font]', 'type' => 'select', 'choices' => $font_choices)));
     }
     $wp_customize->add_setting('et_divi[link_color]', array('default' => et_get_option('accent_color', '#2ea3f2'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color'));
     $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[link_color]', array('label' => esc_html__('Body Link Color', 'Divi'), 'section' => 'et_divi_general_typography', 'settings' => 'et_divi[link_color]')));
     $wp_customize->add_setting('et_divi[font_color]', array('default' => '#666666', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color'));
     $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[font_color]', array('label' => esc_html__('Body Text Color', 'Divi'), 'section' => 'et_divi_general_typography', 'settings' => 'et_divi[font_color]')));
     $wp_customize->add_setting('et_divi[header_color]', array('default' => '#666666', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color'));
     $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[header_color]', array('label' => esc_html__('Header Text Color', 'Divi'), 'section' => 'et_divi_general_typography', 'settings' => 'et_divi[header_color]')));
     $wp_customize->add_setting('et_divi[accent_color]', array('default' => '#2ea3f2', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color'));
     $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[accent_color]', array('label' => esc_html__('Theme Accent Color', 'Divi'), 'section' => 'et_divi_general_layout', 'settings' => 'et_divi[accent_color]')));
     $wp_customize->add_setting('et_divi[color_schemes]', array('default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_color_scheme'));
     $wp_customize->add_control('et_divi[color_schemes]', array('label' => esc_html__('Color Schemes', 'Divi'), 'section' => 'et_color_schemes', 'settings' => 'et_divi[color_schemes]', 'type' => 'select', 'choices' => et_divi_color_scheme_choices()));
     $wp_customize->add_setting('et_divi[header_style]', array('default' => 'left', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_header_style'));
     $wp_customize->add_control('et_divi[header_style]', array('label' => esc_html__('Header Style', 'Divi'), 'section' => 'et_divi_header_layout', 'type' => 'select', 'choices' => et_divi_header_style_choices()));
     $wp_customize->add_setting('et_divi[vertical_nav]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[vertical_nav]', array('label' => esc_html__('Enable Vertical Navigation', 'Divi'), 'section' => 'et_divi_header_layout', 'type' => 'checkbox'));
     $wp_customize->add_setting('et_divi[vertical_nav_orientation]', array('default' => 'left', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_left_right'));
     $wp_customize->add_control('et_divi[vertical_nav_orientation]', array('label' => esc_html__('Vertical Menu Orientation', 'Divi'), 'section' => 'et_divi_header_layout', 'type' => 'select', 'choices' => et_divi_left_right_choices()));
     if ('on' === et_get_option('divi_fixed_nav', 'on')) {
         $wp_customize->add_setting('et_divi[hide_nav]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
         $wp_customize->add_control('et_divi[hide_nav]', array('label' => esc_html__('Hide Navigation Until Scroll', 'Divi'), 'section' => 'et_divi_header_layout', 'type' => 'checkbox'));
     }
     // 'on' === et_get_option( 'divi_fixed_nav', 'on' )
     $wp_customize->add_setting('et_divi[show_header_social_icons]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[show_header_social_icons]', array('label' => esc_html__('Show Social Icons', 'Divi'), 'section' => 'et_divi_header_information', 'type' => 'checkbox'));
     $wp_customize->add_setting('et_divi[show_search_icon]', array('default' => 'on', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[show_search_icon]', array('label' => esc_html__('Show Search Icon', 'Divi'), 'section' => 'et_divi_header_information', 'type' => 'checkbox'));
     $wp_customize->add_setting('et_divi[slide_nav_show_top_bar]', array('default' => 'on', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[slide_nav_show_top_bar]', array('label' => esc_html__('Show Top Bar', 'Divi'), 'section' => 'et_divi_header_slide', 'type' => 'checkbox'));
     $wp_customize->add_setting('et_divi[slide_nav_width]', array('default' => '320', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[slide_nav_width]', array('label' => esc_html__('Menu Width', 'Divi'), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array('min' => 280, 'max' => 600, 'step' => 1))));
     $wp_customize->add_setting('et_divi[slide_nav_font_size]', array('default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[slide_nav_font_size]', array('label' => esc_html__('Menu Text Size', 'Divi'), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array('min' => 12, 'max' => 24, 'step' => 1))));
     $wp_customize->add_setting('et_divi[slide_nav_top_font_size]', array('default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[slide_nav_top_font_size]', array('label' => esc_html__('Top Bar Text Size', 'Divi'), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array('min' => 12, 'max' => 24, 'step' => 1))));
     $wp_customize->add_setting('et_divi[fullscreen_nav_font_size]', array('default' => '30', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[fullscreen_nav_font_size]', array('label' => esc_html__('Menu Text Size', 'Divi'), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array('min' => 12, 'max' => 50, 'step' => 1))));
     $wp_customize->add_setting('et_divi[fullscreen_nav_top_font_size]', array('default' => '18', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[fullscreen_nav_top_font_size]', array('label' => esc_html__('Top Bar Text Size', 'Divi'), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array('min' => 12, 'max' => 40, 'step' => 1))));
     $wp_customize->add_setting('et_divi[slide_nav_font_spacing]', array('default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[slide_nav_font_spacing]', array('label' => esc_html__('Letter Spacing', 'Divi'), 'section' => 'et_divi_header_slide', 'type' => 'range', 'input_attrs' => array('min' => -1, 'max' => 8, 'step' => 1))));
     if (!isset($et_one_font_languages[$site_domain])) {
         $wp_customize->add_setting('et_divi[slide_nav_font]', array('default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices'));
         $wp_customize->add_control(new ET_Divi_Select_Option($wp_customize, 'et_divi[slide_nav_font]', array('label' => esc_html__('Font', 'Divi'), 'section' => 'et_divi_header_slide', 'settings' => 'et_divi[slide_nav_font]', 'type' => 'select', 'choices' => $font_choices)));
     }
     $wp_customize->add_setting('et_divi[slide_nav_font_style]', array('default' => '', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style'));
     $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[slide_nav_font_style]', array('label' => esc_html__('Font Style', 'Divi'), 'section' => 'et_divi_header_slide', 'type' => 'font_style', 'choices' => et_divi_font_style_choices())));
     $wp_customize->add_setting('et_divi[slide_nav_bg]', array('default' => et_get_option('accent_color', '#2ea3f2'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[slide_nav_bg]', array('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]', array('default' => '#ffffff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[slide_nav_links_color]', array('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]', array('default' => '#ffffff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[slide_nav_links_color_active]', array('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]', array('default' => 'rgba(255,255,255,0.6)', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[slide_nav_top_color]', array('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]', array('default' => 'rgba(255,255,255,0.6)', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[slide_nav_search]', array('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]', array('default' => 'rgba(0,0,0,0.2)', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[slide_nav_search_bg]', array('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]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[nav_fullwidth]', array('label' => esc_html__('Make Full Width', 'Divi'), 'section' => 'et_divi_header_primary', 'type' => 'checkbox'));
     $wp_customize->add_setting('et_divi[hide_primary_logo]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[hide_primary_logo]', array('label' => esc_html__('Hide Logo Image', 'Divi'), 'section' => 'et_divi_header_primary', 'type' => 'checkbox'));
     $wp_customize->add_setting('et_divi[menu_height]', array('default' => '66', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[menu_height]', array('label' => esc_html__('Menu Height', 'Divi'), 'section' => 'et_divi_header_primary', 'type' => 'range', 'input_attrs' => array('min' => 30, 'max' => 300, 'step' => 1))));
     $wp_customize->add_setting('et_divi[logo_height]', array('default' => '54', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[logo_height]', array('label' => esc_html__('Logo Max Height', 'Divi'), 'section' => 'et_divi_header_primary', 'type' => 'range', 'input_attrs' => array('min' => 30, 'max' => 100, 'step' => 1))));
     $wp_customize->add_setting('et_divi[primary_nav_font_size]', array('default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[primary_nav_font_size]', array('label' => esc_html__('Text Size', 'Divi'), 'section' => 'et_divi_header_primary', 'type' => 'range', 'input_attrs' => array('min' => 12, 'max' => 24, 'step' => 1))));
     $wp_customize->add_setting('et_divi[primary_nav_font_spacing]', array('default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[primary_nav_font_spacing]', array('label' => esc_html__('Letter Spacing', 'Divi'), 'section' => 'et_divi_header_primary', 'type' => 'range', 'input_attrs' => array('min' => -1, 'max' => 8, 'step' => 1))));
     if (!isset($et_one_font_languages[$site_domain])) {
         $wp_customize->add_setting('et_divi[primary_nav_font]', array('default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices'));
         $wp_customize->add_control(new ET_Divi_Select_Option($wp_customize, 'et_divi[primary_nav_font]', array('label' => esc_html__('Font', 'Divi'), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[primary_nav_font]', 'type' => 'select', 'choices' => $font_choices)));
     }
     $wp_customize->add_setting('et_divi[primary_nav_font_style]', array('default' => '', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style'));
     $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[primary_nav_font_style]', array('label' => esc_html__('Font Style', 'Divi'), 'section' => 'et_divi_header_primary', 'type' => 'font_style', 'choices' => et_divi_font_style_choices())));
     $wp_customize->add_setting('et_divi[secondary_nav_font_size]', array('default' => '12', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_setting('et_divi[secondary_nav_fullwidth]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[secondary_nav_fullwidth]', array('label' => esc_html__('Make Full Width', 'Divi'), 'section' => 'et_divi_header_secondary', 'type' => 'checkbox'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[secondary_nav_font_size]', array('label' => esc_html__('Text Size', 'Divi'), 'section' => 'et_divi_header_secondary', 'type' => 'range', 'input_attrs' => array('min' => 12, 'max' => 20, 'step' => 1))));
     $wp_customize->add_setting('et_divi[secondary_nav_font_spacing]', array('default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[secondary_nav_font_spacing]', array('label' => esc_html__('Letter Spacing', 'Divi'), 'section' => 'et_divi_header_secondary', 'type' => 'range', 'input_attrs' => array('min' => -1, 'max' => 8, 'step' => 1))));
     if (!isset($et_one_font_languages[$site_domain])) {
         $wp_customize->add_setting('et_divi[secondary_nav_font]', array('default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices'));
         $wp_customize->add_control(new ET_Divi_Select_Option($wp_customize, 'et_divi[secondary_nav_font]', array('label' => esc_html__('Font', 'Divi'), 'section' => 'et_divi_header_secondary', 'settings' => 'et_divi[secondary_nav_font]', 'type' => 'select', 'choices' => $font_choices)));
     }
     $wp_customize->add_setting('et_divi[secondary_nav_font_style]', array('default' => '', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style'));
     $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[secondary_nav_font_style]', array('label' => esc_html__('Font Style', 'Divi'), 'section' => 'et_divi_header_secondary', 'type' => 'font_style', 'choices' => et_divi_font_style_choices())));
     $wp_customize->add_setting('et_divi[menu_link]', array('default' => 'rgba(0,0,0,0.6)', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[menu_link]', array('label' => esc_html__('Text Color', 'Divi'), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[menu_link]')));
     $wp_customize->add_setting('et_divi[hide_mobile_logo]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[hide_mobile_logo]', array('label' => esc_html__('Hide Logo Image', 'Divi'), 'section' => 'et_divi_mobile_menu', 'type' => 'checkbox'));
     $wp_customize->add_setting('et_divi[mobile_menu_link]', array('default' => et_get_option('menu_link', 'rgba(0,0,0,0.6)'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[mobile_menu_link]', array('label' => esc_html__('Text Color', 'Divi'), 'section' => 'et_divi_mobile_menu', 'settings' => 'et_divi[mobile_menu_link]')));
     $wp_customize->add_setting('et_divi[menu_link_active]', array('default' => et_get_option('accent_color', '#2ea3f2'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[menu_link_active]', array('label' => esc_html__('Active Link Color', 'Divi'), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[menu_link_active]')));
     $wp_customize->add_setting('et_divi[primary_nav_bg]', array('default' => '#ffffff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[primary_nav_bg]', array('label' => esc_html__('Background Color', 'Divi'), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[primary_nav_bg]')));
     $wp_customize->add_setting('et_divi[primary_nav_dropdown_bg]', array('default' => et_get_option('primary_nav_bg', '#ffffff'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[primary_nav_dropdown_bg]', array('label' => esc_html__('Dropdown Menu Background Color', 'Divi'), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[primary_nav_dropdown_bg]')));
     $wp_customize->add_setting('et_divi[primary_nav_dropdown_line_color]', array('default' => et_get_option('accent_color', '#2ea3f2'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[primary_nav_dropdown_line_color]', array('label' => esc_html__('Dropdown Menu Line Color', 'Divi'), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[primary_nav_dropdown_line_color]')));
     $wp_customize->add_setting('et_divi[primary_nav_dropdown_link_color]', array('default' => et_get_option('menu_link', 'rgba(0,0,0,0.7)'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[primary_nav_dropdown_link_color]', array('label' => esc_html__('Dropdown Menu Text Color', 'Divi'), 'section' => 'et_divi_header_primary', 'settings' => 'et_divi[primary_nav_dropdown_link_color]')));
     $wp_customize->add_setting('et_divi[primary_nav_dropdown_animation]', array('default' => 'fade', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_dropdown_animation'));
     $wp_customize->add_control('et_divi[primary_nav_dropdown_animation]', array('label' => esc_html__('Dropdown Menu Animation', 'Divi'), 'section' => 'et_divi_header_primary', 'type' => 'select', 'choices' => et_divi_dropdown_animation_choices()));
     $wp_customize->add_setting('et_divi[mobile_primary_nav_bg]', array('default' => et_get_option('primary_nav_bg', '#ffffff'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[mobile_primary_nav_bg]', array('label' => esc_html__('Background Color', 'Divi'), 'section' => 'et_divi_mobile_menu', 'settings' => 'et_divi[mobile_primary_nav_bg]')));
     $wp_customize->add_setting('et_divi[secondary_nav_bg]', array('default' => et_get_option('accent_color', '#2ea3f2'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[secondary_nav_bg]', array('label' => esc_html__('Background Color', 'Divi'), 'section' => 'et_divi_header_secondary', 'settings' => 'et_divi[secondary_nav_bg]')));
     $wp_customize->add_setting('et_divi[secondary_nav_text_color_new]', array('default' => '#ffffff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[secondary_nav_text_color_new]', array('label' => esc_html__('Text Color', 'Divi'), 'section' => 'et_divi_header_secondary', 'settings' => 'et_divi[secondary_nav_text_color_new]')));
     $wp_customize->add_setting('et_divi[secondary_nav_dropdown_bg]', array('default' => et_get_option('secondary_nav_bg', et_get_option('accent_color', '#2ea3f2')), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[secondary_nav_dropdown_bg]', array('label' => esc_html__('Dropdown Menu Background Color', 'Divi'), 'section' => 'et_divi_header_secondary', 'settings' => 'et_divi[secondary_nav_dropdown_bg]')));
     $wp_customize->add_setting('et_divi[secondary_nav_dropdown_link_color]', array('default' => et_get_option('secondary_nav_text_color_new', '#ffffff'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[secondary_nav_dropdown_link_color]', array('label' => esc_html__('Dropdown Menu Text Color', 'Divi'), 'section' => 'et_divi_header_secondary', 'settings' => 'et_divi[secondary_nav_dropdown_link_color]')));
     $wp_customize->add_setting('et_divi[secondary_nav_dropdown_animation]', array('default' => 'fade', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_dropdown_animation'));
     $wp_customize->add_control('et_divi[secondary_nav_dropdown_animation]', array('label' => esc_html__('Dropdown Menu Animation', 'Divi'), 'section' => 'et_divi_header_secondary', 'type' => 'select', 'choices' => et_divi_dropdown_animation_choices()));
     // Setting with no control kept for backwards compatbility
     $wp_customize->add_setting('et_divi[primary_nav_text_color]', array('default' => 'dark', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color'));
     // Setting with no control kept for backwards compatbility
     $wp_customize->add_setting('et_divi[secondary_nav_text_color]', array('default' => 'light', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color'));
     if ('on' === et_get_option('divi_fixed_nav', 'on')) {
         $wp_customize->add_setting('et_divi[hide_fixed_logo]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
         $wp_customize->add_control('et_divi[hide_fixed_logo]', array('label' => esc_html__('Hide Logo Image', 'Divi'), 'section' => 'et_divi_header_fixed', 'type' => 'checkbox'));
         $wp_customize->add_setting('et_divi[minimized_menu_height]', array('default' => '40', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
         $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[minimized_menu_height]', array('label' => esc_html__('Fixed Menu Height', 'Divi'), 'section' => 'et_divi_header_fixed', 'type' => 'range', 'input_attrs' => array('min' => 30, 'max' => 300, 'step' => 1))));
         $wp_customize->add_setting('et_divi[fixed_primary_nav_font_size]', array('default' => et_get_option('primary_nav_font_size', '14'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
         $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[fixed_primary_nav_font_size]', array('label' => esc_html__('Text Size', 'Divi'), 'section' => 'et_divi_header_fixed', 'type' => 'range', 'input_attrs' => array('min' => 12, 'max' => 24, 'step' => 1))));
         $wp_customize->add_setting('et_divi[fixed_primary_nav_bg]', array('default' => et_get_option('primary_nav_bg', '#ffffff'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
         $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[fixed_primary_nav_bg]', array('label' => esc_html__('Primary Menu Background Color', 'Divi'), 'section' => 'et_divi_header_fixed', 'settings' => 'et_divi[fixed_primary_nav_bg]')));
         $wp_customize->add_setting('et_divi[fixed_secondary_nav_bg]', array('default' => et_get_option('secondary_nav_bg', '#2ea3f2'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
         $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[fixed_secondary_nav_bg]', array('label' => esc_html__('Secondary Menu Background Color', 'Divi'), 'section' => 'et_divi_header_fixed', 'settings' => 'et_divi[fixed_secondary_nav_bg]')));
         $wp_customize->add_setting('et_divi[fixed_menu_link]', array('default' => et_get_option('menu_link', 'rgba(0,0,0,0.6)'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
         $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[fixed_menu_link]', array('label' => esc_html__('Primary Menu Link Color', 'Divi'), 'section' => 'et_divi_header_fixed', 'settings' => 'et_divi[fixed_menu_link]')));
         $wp_customize->add_setting('et_divi[fixed_secondary_menu_link]', array('default' => et_get_option('secondary_nav_text_color_new', '#ffffff'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
         $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[fixed_secondary_menu_link]', array('label' => esc_html__('Secondary Menu Link Color', 'Divi'), 'section' => 'et_divi_header_fixed', 'settings' => 'et_divi[fixed_secondary_menu_link]')));
         $wp_customize->add_setting('et_divi[fixed_menu_link_active]', array('default' => et_get_option('menu_link_active', '#2ea3f2'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
         $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[fixed_menu_link_active]', array('label' => esc_html__('Active Primary Menu Link Color', 'Divi'), 'section' => 'et_divi_header_fixed', 'settings' => 'et_divi[fixed_menu_link_active]')));
     }
     $wp_customize->add_setting('et_divi[phone_number]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_html_input_text'));
     $wp_customize->add_control('et_divi[phone_number]', array('label' => esc_html__('Phone Number', 'Divi'), 'section' => 'et_divi_header_information', 'type' => 'text'));
     $wp_customize->add_setting('et_divi[header_email]', array('type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_email'));
     $wp_customize->add_control('et_divi[header_email]', array('label' => esc_html__('Email', 'Divi'), 'section' => 'et_divi_header_information', 'type' => 'text'));
     $wp_customize->add_setting('et_divi[show_footer_social_icons]', array('default' => 'on', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_validate_boolean'));
     $wp_customize->add_control('et_divi[show_footer_social_icons]', array('label' => esc_html__('Show Social Icons', 'Divi'), 'section' => 'et_divi_footer_elements', 'type' => 'checkbox'));
     $wp_customize->add_setting('et_divi[footer_columns]', array('default' => '4', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_footer_column'));
     $wp_customize->add_control('et_divi[footer_columns]', array('label' => esc_html__('Column Layout', 'Divi'), 'section' => 'et_divi_footer_layout', 'settings' => 'et_divi[footer_columns]', 'type' => 'select', 'choices' => et_divi_footer_column_choices()));
     $wp_customize->add_setting('et_divi[footer_bg]', array('default' => '#222222', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color'));
     $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[footer_bg]', array('label' => esc_html__('Footer Background Color', 'Divi'), 'section' => 'et_divi_footer_layout', 'settings' => 'et_divi[footer_bg]')));
     $wp_customize->add_setting('et_divi[widget_header_font_size]', array('default' => et_get_option('body_header_size' * 0.6, '18'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[widget_header_font_size]', array('label' => esc_html__('Header Text Size', 'Divi'), 'section' => 'et_divi_footer_widgets', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 72, 'step' => 1))));
     $wp_customize->add_setting('et_divi[widget_header_font_style]', array('default' => et_get_option('widget_header_font_style', ''), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style'));
     $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[widget_header_font_style]', array('label' => esc_html__('Header Font Style', 'Divi'), 'section' => 'et_divi_footer_widgets', 'type' => 'font_style', 'choices' => et_divi_font_style_choices())));
     $wp_customize->add_setting('et_divi[widget_body_font_size]', array('default' => et_get_option('body_font_size', '14'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[widget_body_font_size]', array('label' => esc_html__('Body/Link Text Size', 'Divi'), 'section' => 'et_divi_footer_widgets', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1))));
     $wp_customize->add_setting('et_divi[widget_body_line_height]', array('default' => '1.7', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_float_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[widget_body_line_height]', array('label' => esc_html__('Body/Link Line Height', 'Divi'), 'section' => 'et_divi_footer_widgets', 'type' => 'range', 'input_attrs' => array('min' => 0.8, 'max' => 3, 'step' => 0.1))));
     $wp_customize->add_setting('et_divi[widget_body_font_style]', array('default' => et_get_option('footer_widget_body_font_style', ''), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style'));
     $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[widget_body_font_style]', array('label' => esc_html__('Body Font Style', 'Divi'), 'section' => 'et_divi_footer_widgets', 'type' => 'font_style', 'choices' => et_divi_font_style_choices())));
     $wp_customize->add_setting('et_divi[footer_widget_text_color]', array('default' => '#fff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color'));
     $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[footer_widget_text_color]', array('label' => esc_html__('Widget Text Color', 'Divi'), 'section' => 'et_divi_footer_widgets', 'settings' => 'et_divi[footer_widget_text_color]')));
     $wp_customize->add_setting('et_divi[footer_widget_link_color]', array('default' => '#fff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color'));
     $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[footer_widget_link_color]', array('label' => esc_html__('Widget Link Color', 'Divi'), 'section' => 'et_divi_footer_widgets', 'settings' => 'et_divi[footer_widget_link_color]')));
     $wp_customize->add_setting('et_divi[footer_widget_header_color]', array('default' => et_get_option('accent_color', '#2ea3f2'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color'));
     $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[footer_widget_header_color]', array('label' => esc_html__('Widget Header Color', 'Divi'), 'section' => 'et_divi_footer_widgets', 'settings' => 'et_divi[footer_widget_header_color]')));
     $wp_customize->add_setting('et_divi[footer_widget_bullet_color]', array('default' => et_get_option('accent_color', '#2ea3f2'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color'));
     $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'et_divi[footer_widget_bullet_color]', array('label' => esc_html__('Widget Bullet Color', 'Divi'), 'section' => 'et_divi_footer_widgets', 'settings' => 'et_divi[footer_widget_bullet_color]')));
     /* Footer Menu */
     $wp_customize->add_setting('et_divi[footer_menu_background_color]', array('default' => 'rgba(255,255,255,0.05)', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[footer_menu_background_color]', array('label' => esc_html__('Footer Menu Background Color', 'Divi'), 'section' => 'et_divi_footer_menu', 'settings' => 'et_divi[footer_menu_background_color]')));
     $wp_customize->add_setting('et_divi[footer_menu_text_color]', array('default' => '#bbbbbb', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[footer_menu_text_color]', array('label' => esc_html__('Footer Menu Text Color', 'Divi'), 'section' => 'et_divi_footer_menu', 'settings' => 'et_divi[footer_menu_text_color]')));
     $wp_customize->add_setting('et_divi[footer_menu_active_link_color]', array('default' => et_get_option('accent_color', '#2ea3f2'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[footer_menu_active_link_color]', array('label' => esc_html__('Footer Menu Active Link Color', 'Divi'), 'section' => 'et_divi_footer_menu', 'settings' => 'et_divi[footer_menu_active_link_color]')));
     $wp_customize->add_setting('et_divi[footer_menu_letter_spacing]', array('default' => '0', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[footer_menu_letter_spacing]', array('label' => esc_html__('Letter Spacing', 'Divi'), 'section' => 'et_divi_footer_menu', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 20, 'step' => 1))));
     $wp_customize->add_setting('et_divi[footer_menu_font_style]', array('default' => et_get_option('footer_footer_menu_font_style', ''), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style'));
     $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[footer_menu_font_style]', array('label' => esc_html__('Font Style', 'Divi'), 'section' => 'et_divi_footer_menu', 'type' => 'font_style', 'choices' => et_divi_font_style_choices())));
     $wp_customize->add_setting('et_divi[footer_menu_font_size]', array('default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[footer_menu_font_size]', array('label' => esc_html__('Font Size', 'Divi'), 'section' => 'et_divi_footer_menu', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1))));
     /* Bottom Bar */
     $wp_customize->add_setting('et_divi[bottom_bar_background_color]', array('default' => 'rgba(0,0,0,0.32)', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[bottom_bar_background_color]', array('label' => esc_html__('Background Color', 'Divi'), 'section' => 'et_divi_bottom_bar', 'settings' => 'et_divi[bottom_bar_background_color]')));
     $wp_customize->add_setting('et_divi[bottom_bar_text_color]', array('default' => '#666666', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[bottom_bar_text_color]', array('label' => esc_html__('Text Color', 'Divi'), 'section' => 'et_divi_bottom_bar', 'settings' => 'et_divi[bottom_bar_text_color]')));
     $wp_customize->add_setting('et_divi[bottom_bar_font_style]', array('default' => et_get_option('footer_bottom_bar_font_style', ''), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style'));
     $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[bottom_bar_font_style]', array('label' => esc_html__('Font Style', 'Divi'), 'section' => 'et_divi_bottom_bar', 'type' => 'font_style', 'choices' => et_divi_font_style_choices())));
     $wp_customize->add_setting('et_divi[bottom_bar_font_size]', array('default' => '14', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[bottom_bar_font_size]', array('label' => esc_html__('Font Size', 'Divi'), 'section' => 'et_divi_bottom_bar', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1))));
     $wp_customize->add_setting('et_divi[bottom_bar_social_icon_size]', array('default' => '24', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[bottom_bar_social_icon_size]', array('label' => esc_html__('Social Icon Size', 'Divi'), 'section' => 'et_divi_bottom_bar', 'type' => 'range', 'input_attrs' => array('min' => 10, 'max' => 32, 'step' => 1))));
     $wp_customize->add_setting('et_divi[bottom_bar_social_icon_color]', array('default' => '#666666', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[bottom_bar_social_icon_color]', array('label' => esc_html__('Social Icon Color', 'Divi'), 'section' => 'et_divi_bottom_bar', 'settings' => 'et_divi[bottom_bar_social_icon_color]')));
     $wp_customize->add_setting('et_divi[all_buttons_font_size]', array('default' => ET_Global_Settings::get_value('all_buttons_font_size', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[all_buttons_font_size]', array('label' => esc_html__('Text Size', 'Divi'), 'section' => 'et_divi_buttons', 'type' => 'range', 'input_attrs' => array('min' => 12, 'max' => 30, 'step' => 1))));
     $wp_customize->add_setting('et_divi[all_buttons_text_color]', array('default' => '#ffffff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[all_buttons_text_color]', array('label' => esc_html__('Text Color', 'Divi'), 'section' => 'et_divi_buttons', 'settings' => 'et_divi[all_buttons_text_color]')));
     $wp_customize->add_setting('et_divi[all_buttons_bg_color]', array('default' => 'rgba(0,0,0,0)', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[all_buttons_bg_color]', array('label' => esc_html__('Background Color', 'Divi'), 'section' => 'et_divi_buttons', 'settings' => 'et_divi[all_buttons_bg_color]')));
     $wp_customize->add_setting('et_divi[all_buttons_border_width]', array('default' => ET_Global_Settings::get_value('all_buttons_border_width', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[all_buttons_border_width]', array('label' => esc_html__('Border Width', 'Divi'), 'section' => 'et_divi_buttons', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 10, 'step' => 1))));
     $wp_customize->add_setting('et_divi[all_buttons_border_color]', array('default' => '#ffffff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[all_buttons_border_color]', array('label' => esc_html__('Border Color', 'Divi'), 'section' => 'et_divi_buttons', 'settings' => 'et_divi[all_buttons_border_color]')));
     $wp_customize->add_setting('et_divi[all_buttons_border_radius]', array('default' => ET_Global_Settings::get_value('all_buttons_border_radius', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[all_buttons_border_radius]', array('label' => esc_html__('Border Radius', 'Divi'), 'section' => 'et_divi_buttons', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 50, 'step' => 1))));
     $wp_customize->add_setting('et_divi[all_buttons_spacing]', array('default' => ET_Global_Settings::get_value('all_buttons_spacing', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[all_buttons_spacing]', array('label' => esc_html__('Letter Spacing', 'Divi'), 'section' => 'et_divi_buttons', 'type' => 'range', 'input_attrs' => array('min' => -2, 'max' => 10, 'step' => 1))));
     $wp_customize->add_setting('et_divi[all_buttons_font_style]', array('default' => '', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_style'));
     $wp_customize->add_control(new ET_Divi_Font_Style_Option($wp_customize, 'et_divi[all_buttons_font_style]', array('label' => esc_html__('Button Font Style', 'Divi'), 'section' => 'et_divi_buttons', 'type' => 'font_style', 'choices' => et_divi_font_style_choices())));
     if (!isset($et_one_font_languages[$site_domain])) {
         $wp_customize->add_setting('et_divi[all_buttons_font]', array('default' => 'none', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_choices'));
         $wp_customize->add_control(new ET_Divi_Select_Option($wp_customize, 'et_divi[all_buttons_font]', array('label' => esc_html__('Buttons Font', 'Divi'), 'section' => 'et_divi_buttons', 'settings' => 'et_divi[all_buttons_font]', 'type' => 'select', 'choices' => $font_choices)));
     }
     $wp_customize->add_setting('et_divi[all_buttons_icon]', array('default' => 'yes', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_yes_no'));
     $wp_customize->add_control('et_divi[all_buttons_icon]', array('label' => esc_html__('Add Button Icon', 'Divi'), 'section' => 'et_divi_buttons', 'type' => 'select', 'choices' => et_divi_yes_no_choices()));
     $wp_customize->add_setting('et_divi[all_buttons_selected_icon]', array('default' => '5', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_font_icon'));
     $wp_customize->add_control(new ET_Divi_Icon_Picker_Option($wp_customize, 'et_divi[all_buttons_selected_icon]', array('label' => esc_html__('Select Icon', 'Divi'), 'section' => 'et_divi_buttons', 'type' => 'icon_picker')));
     $wp_customize->add_setting('et_divi[all_buttons_icon_color]', array('default' => '#ffffff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[all_buttons_icon_color]', array('label' => esc_html__('Icon Color', 'Divi'), 'section' => 'et_divi_buttons', 'settings' => 'et_divi[all_buttons_icon_color]')));
     $wp_customize->add_setting('et_divi[all_buttons_icon_placement]', array('default' => 'right', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_left_right'));
     $wp_customize->add_control('et_divi[all_buttons_icon_placement]', array('label' => esc_html__('Icon Placement', 'Divi'), 'section' => 'et_divi_buttons', 'type' => 'select', 'choices' => et_divi_left_right_choices()));
     $wp_customize->add_setting('et_divi[all_buttons_icon_hover]', array('default' => 'yes', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_yes_no'));
     $wp_customize->add_control('et_divi[all_buttons_icon_hover]', array('label' => esc_html__('Only Show Icon on Hover', 'Divi'), 'section' => 'et_divi_buttons', 'type' => 'select', 'choices' => et_divi_yes_no_choices()));
     $wp_customize->add_setting('et_divi[all_buttons_text_color_hover]', array('default' => '#ffffff', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[all_buttons_text_color_hover]', array('label' => esc_html__('Text Color', 'Divi'), 'section' => 'et_divi_buttons_hover', 'settings' => 'et_divi[all_buttons_text_color_hover]')));
     $wp_customize->add_setting('et_divi[all_buttons_bg_color_hover]', array('default' => 'rgba(255,255,255,0.2)', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[all_buttons_bg_color_hover]', array('label' => esc_html__('Background Color', 'Divi'), 'section' => 'et_divi_buttons_hover', 'settings' => 'et_divi[all_buttons_bg_color_hover]')));
     $wp_customize->add_setting('et_divi[all_buttons_border_color_hover]', array('default' => 'rgba(0,0,0,0)', 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_alpha_color'));
     $wp_customize->add_control(new ET_Divi_Customize_Color_Alpha_Control($wp_customize, 'et_divi[all_buttons_border_color_hover]', array('label' => esc_html__('Border Color', 'Divi'), 'section' => 'et_divi_buttons_hover', 'settings' => 'et_divi[all_buttons_border_color_hover]')));
     $wp_customize->add_setting('et_divi[all_buttons_border_radius_hover]', array('default' => ET_Global_Settings::get_value('all_buttons_border_radius_hover', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'absint'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[all_buttons_border_radius_hover]', array('label' => esc_html__('Border Radius', 'Divi'), 'section' => 'et_divi_buttons_hover', 'type' => 'range', 'input_attrs' => array('min' => 0, 'max' => 50, 'step' => 1))));
     $wp_customize->add_setting('et_divi[all_buttons_spacing_hover]', array('default' => ET_Global_Settings::get_value('all_buttons_spacing_hover', 'default'), 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'et_sanitize_int_number'));
     $wp_customize->add_control(new ET_Divi_Range_Option($wp_customize, 'et_divi[all_buttons_spacing_hover]', array('label' => esc_html__('Letter Spacing', 'Divi'), 'section' => 'et_divi_buttons_hover', 'type' => 'range', 'input_attrs' => array('min' => -2, 'max' => 10, 'step' => 1))));
 }
/**
 * Sanitize color scheme
 * @param string
 * @return string|bool
 */
function et_sanitize_color_scheme($choosen)
{
    return et_sanitize_key_based_option($choosen, et_divi_color_scheme_choices());
}