$wp_customize->add_panel(
'title' => esc_html__( 'Header & Navigation', 'Divi' ),
$wp_customize->add_section(
'title' => esc_html__( 'Header Format', 'Divi' ),
'panel' => 'et_divi_header_panel',
$wp_customize->add_section(
'et_divi_header_primary',
'title' => esc_html__( 'Primary Menu Bar', 'Divi' ),
'panel' => 'et_divi_header_panel',
$wp_customize->add_section(
'et_divi_header_secondary',
'title' => esc_html__( 'Secondary Menu Bar', 'Divi' ),
'panel' => 'et_divi_header_panel',
$wp_customize->add_section(
'title' => esc_html__( 'Slide In & Fullscreen Header Settings', 'Divi' ),
'panel' => 'et_divi_header_panel',
$wp_customize->add_section(
'title' => esc_html__( 'Fixed Navigation Settings', 'Divi' ),
'panel' => 'et_divi_header_panel',
$wp_customize->add_section(
'et_divi_header_information',
'title' => esc_html__( 'Header Elements', 'Divi' ),
'panel' => 'et_divi_header_panel',
$wp_customize->add_panel(
'title' => esc_html__( 'Footer', 'Divi' ),
$wp_customize->add_section(
'title' => esc_html__( 'Layout', 'Divi' ),
'panel' => 'et_divi_footer_panel',
$wp_customize->add_section(
'et_divi_footer_widgets',
'title' => esc_html__( 'Widgets', 'Divi' ),
'panel' => 'et_divi_footer_panel',
$wp_customize->add_section(
'et_divi_footer_elements',
'title' => esc_html__( 'Footer Elements', 'Divi' ),
'panel' => 'et_divi_footer_panel',
$wp_customize->add_section(
'title' => esc_html__( 'Footer Menu', 'Divi' ),
'panel' => 'et_divi_footer_panel',
$wp_customize->add_section(
'title' => esc_html__( 'Bottom Bar', 'Divi' ),
'panel' => 'et_divi_footer_panel',
$wp_customize->add_section(
'title' => esc_html__( 'Color Schemes', 'Divi' ),
'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',
'title' => esc_html__( 'Buttons', 'Divi' ),
$wp_customize->add_section(
'title' => esc_html__( 'Buttons Style', 'Divi' ),
'panel' => 'et_divi_buttons_settings',
$wp_customize->add_section(
'title' => esc_html__( 'Buttons Hover Style', 'Divi' ),
'panel' => 'et_divi_buttons_settings',
$wp_customize->add_panel(
'title' => esc_html__( 'Blog', 'Divi' ),
$wp_customize->add_section(
'title' => esc_html__( 'Post', 'Divi' ),
'panel' => 'et_divi_blog_settings',
$wp_customize->add_setting(
'et_divi[post_meta_font_size]',
'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(
'et_divi[post_meta_font_size]',
'label' => esc_html__( 'Meta Text Size', 'Divi' ),
'section' => 'et_divi_blog_post',
$wp_customize->add_setting(
'et_divi[post_meta_height]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_float_number',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[post_meta_height]',
'label' => esc_html__( 'Meta Line Height', 'Divi' ),
'section' => 'et_divi_blog_post',
$wp_customize->add_setting(
'et_divi[post_meta_spacing]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[post_meta_spacing]',
'label' => esc_html__( 'Meta Letter Spacing', 'Divi' ),
'section' => 'et_divi_blog_post',
$wp_customize->add_setting(
'et_divi[post_meta_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[post_meta_style]',
'label' => esc_html__( 'Meta Font Style', 'Divi' ),
'section' => 'et_divi_blog_post',
'choices' => et_divi_font_style_choices(),
$wp_customize->add_setting(
'et_divi[post_header_font_size]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[post_header_font_size]',
'label' => esc_html__( 'Header Text Size', 'Divi' ),
'section' => 'et_divi_blog_post',
$wp_customize->add_setting(
'et_divi[post_header_height]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_float_number',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[post_header_height]',
'label' => esc_html__( 'Header Line Height', 'Divi' ),
'section' => 'et_divi_blog_post',
$wp_customize->add_setting(
'et_divi[post_header_spacing]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_int_number',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[post_header_spacing]',
'label' => esc_html__( 'Header Letter Spacing', 'Divi' ),
'section' => 'et_divi_blog_post',
$wp_customize->add_setting(
'et_divi[post_header_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[post_header_style]',
'label' => esc_html__( 'Header Font Style', 'Divi' ),
'section' => 'et_divi_blog_post',
'choices' => et_divi_font_style_choices(),
$wp_customize->add_setting(
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'wp_validate_boolean',
$wp_customize->add_control(
'label' => esc_html__( 'Enable Boxed Layout', 'Divi' ),
'section' => 'et_divi_general_layout',
$wp_customize->add_setting(
'et_divi[content_width]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[content_width]',
'label' => esc_html__( 'Website Content Width', 'Divi' ),
'section' => 'et_divi_general_layout',
$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__( 'Website Gutter Width', 'Divi' ),
'section' => 'et_divi_general_layout',
$wp_customize->add_setting(
'et_divi[use_sidebar_width]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'wp_validate_boolean',
$wp_customize->add_control(
'et_divi[use_sidebar_width]',
'label' => esc_html__( 'Use Custom Sidebar Width', 'Divi' ),
'section' => 'et_divi_general_layout',
$wp_customize->add_setting(
'et_divi[sidebar_width]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[sidebar_width]',
'label' => esc_html__( 'Sidebar Width', 'Divi' ),
'section' => 'et_divi_general_layout',
$wp_customize->add_setting(
'et_divi[section_padding]',