add_section( 'header_global_options', array( 'title' => __( 'Header Social Icons', 'blogmarks' ), 'panel' => 'header_options_panel', ) ); // Social Links Brand Color. $wp_customize->add_setting( 'header_social_links_color_as', array( 'default' => $theme_options_defaults['header_social_links_color_as'], 'sanitize_callback' => 'blogmarks_sanitize_select', ) ); $wp_customize->add_control( 'header_social_links_color_as', array( 'label' => __( 'Social Menu Brand Color', 'blogmarks' ), 'section' => 'header_global_options', 'type' => 'select', 'choices' => array( 'theme_color' => __( 'Use Theme Color', 'blogmarks' ), 'brand_color' => __( 'Use Brand Color', 'blogmarks' ), ), 'priority' => 10, ) ); // Social Links Display Style. $wp_customize->add_setting( 'header_social_links_display_style', array( 'default' => $theme_options_defaults['header_social_links_display_style'], 'sanitize_callback' => 'blogmarks_sanitize_select', ) ); $wp_customize->add_control( 'header_social_links_display_style', array( 'label' => __( 'Social Menu Display Style', 'blogmarks' ), 'section' => 'header_global_options', 'type' => 'select', 'choices' => blogmarks_get_social_links_styles(), 'priority' => 40, ) ); /*Enable Social menu label*/ $wp_customize->add_setting( 'enable_header_social_links_label', array( 'default' => $theme_options_defaults['enable_header_social_links_label'], 'sanitize_callback' => 'blogmarks_sanitize_checkbox', ) ); $wp_customize->add_control( new Blogmarks_Toggle_Control( $wp_customize, 'enable_header_social_links_label', array( 'label' => __( 'Enable Social Menu Label', 'blogmarks' ), 'section' => 'header_global_options', 'priority' => 50, ) ) ); // Social Menu Label Text. $wp_customize->add_setting( 'header_social_links_label_text', array( 'default' => $theme_options_defaults['header_social_links_label_text'], 'sanitize_callback' => 'wp_filter_nohtml_kses', ) ); $wp_customize->add_control( 'header_social_links_label_text', array( 'label' => __( 'Social Menu Label Text', 'blogmarks' ), 'description' => __( 'Leave empty if you want to use the default text "Follow Us:".', 'blogmarks' ), 'section' => 'header_global_options', 'type' => 'text', 'priority' => 60, ) );