add_section('social_share', array( 'title' => esc_html__('Social Share Settings', 'avenews'), 'capability' => 'edit_theme_options', 'panel' => 'avenews_option_panel', ) ); $wp_customize->add_setting( 'avenews_options[enable_facebook]', array( 'default' => $default_options['enable_facebook'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_facebook]', array( 'label' => esc_html__('Enable Facebook', 'avenews'), 'section' => 'social_share', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[enable_twitter]', array( 'default' => $default_options['enable_twitter'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_twitter]', array( 'label' => esc_html__('Enable Twitter', 'avenews'), 'section' => 'social_share', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[enable_pinterest]', array( 'default' => $default_options['enable_pinterest'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_pinterest]', array( 'label' => esc_html__('Enable Pinterest', 'avenews'), 'section' => 'social_share', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[enable_linkedin]', array( 'default' => $default_options['enable_linkedin'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_linkedin]', array( 'label' => esc_html__('Enable LinkedIn', 'avenews'), 'section' => 'social_share', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[enable_telegram]', array( 'default' => $default_options['enable_telegram'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_telegram]', array( 'label' => esc_html__('Enable Telegram', 'avenews'), 'section' => 'social_share', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[enable_reddit]', array( 'default' => $default_options['enable_reddit'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_reddit]', array( 'label' => esc_html__('Enable Reddit', 'avenews'), 'section' => 'social_share', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[enable_stumbleupon]', array( 'default' => $default_options['enable_stumbleupon'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_stumbleupon]', array( 'label' => esc_html__('Enable Stumbleupon', 'avenews'), 'section' => 'social_share', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[enable_whatsapp]', array( 'default' => $default_options['enable_whatsapp'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_whatsapp]', array( 'label' => esc_html__('Enable Whatsapp', 'avenews'), 'section' => 'social_share', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'avenews_options[enable_email]', array( 'default' => $default_options['enable_email'], 'sanitize_callback' => 'avenews_sanitize_checkbox', ) ); $wp_customize->add_control( 'avenews_options[enable_email]', array( 'label' => esc_html__('Enable Email', 'avenews'), 'section' => 'social_share', 'type' => 'checkbox', ) );