<?php
/**
* Social Options.
*
* @package Solar Energy Engine
*/

$solar_energy_engine_default = solar_energy_engine_get_default_theme_options();

// Social Media Section.
$wp_customize->add_section( 'solar_energy_engine_Social_header_setting',
	array(
	'title'      => esc_html__( 'Social Media Settings', 'solar-energy-engine' ),
	'priority'   => 10,
	'capability' => 'edit_theme_options',
	'panel'      => 'solar_energy_engine_theme_option_panel',
	)
);

$wp_customize->add_setting('solar_energy_engine_header_social_ed',
    array(
        'default' => $solar_energy_engine_default['solar_energy_engine_header_social_ed'],
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'solar_energy_engine_sanitize_checkbox',
    )
);
$wp_customize->add_control('solar_energy_engine_header_social_ed',
    array(
        'label' => esc_html__('Enable Social Media', 'solar-energy-engine'),
        'section' => 'solar_energy_engine_Social_header_setting',
        'type' => 'checkbox',
    )
);

$wp_customize->add_setting( 'solar_energy_engine_header_center_facebook',
    array(
    'default'           => $solar_energy_engine_default['solar_energy_engine_header_center_facebook'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'esc_url_raw',
    )
);
$wp_customize->add_control( 'solar_energy_engine_header_center_facebook',
    array(
    'label'    => esc_html__( 'Facebook Link', 'solar-energy-engine' ),
    'section'  => 'solar_energy_engine_Social_header_setting',
    'type'     => 'url',
    )
);

$wp_customize->add_setting( 'solar_energy_engine_header_center_twitter',
    array(
    'default'           => $solar_energy_engine_default['solar_energy_engine_header_center_twitter'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'esc_url_raw',
    )
);
$wp_customize->add_control( 'solar_energy_engine_header_center_twitter',
    array(
    'label'    => esc_html__( 'Twitter Link', 'solar-energy-engine' ),
    'section'  => 'solar_energy_engine_Social_header_setting',
    'type'     => 'url',
    )
);

$wp_customize->add_setting( 'solar_energy_engine_header_center_linkedin',
    array(
    'default'           => $solar_energy_engine_default['solar_energy_engine_header_center_linkedin'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'esc_url_raw',
    )
);
$wp_customize->add_control( 'solar_energy_engine_header_center_linkedin',
    array(
    'label'    => esc_html__( 'Linkdin Link', 'solar-energy-engine' ),
    'section'  => 'solar_energy_engine_Social_header_setting',
    'type'     => 'url',
    )
);

$wp_customize->add_setting( 'solar_energy_engine_header_center_instagram',
    array(
    'default'           => $solar_energy_engine_default['solar_energy_engine_header_center_instagram'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'esc_url_raw',
    )
);
$wp_customize->add_control( 'solar_energy_engine_header_center_instagram',
    array(
    'label'    => esc_html__( 'Instagram Link', 'solar-energy-engine' ),
    'section'  => 'solar_energy_engine_Social_header_setting',
    'type'     => 'url',
    )
);

$wp_customize->add_setting( 'solar_energy_engine_header_center_youtube',
    array(
    'default'           => $solar_energy_engine_default['solar_energy_engine_header_center_youtube'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'esc_url_raw',
    )
);
$wp_customize->add_control( 'solar_energy_engine_header_center_youtube',
    array(
    'label'    => esc_html__( 'Youtube Link', 'solar-energy-engine' ),
    'section'  => 'solar_energy_engine_Social_header_setting',
    'type'     => 'url',
    )
);