<?php
    /* Footer Sections */
    $wp_customize->add_section('vw_book_store_pro_social_icons',array(
        'title' => __('Social Icons','vw-book-store-pro'),
        'description'   => __('Add social Icons details Here','vw-book-store-pro'),
        'panel' => 'vw_book_store_pro_panel_id',
    ));

    $wp_customize->add_setting('vw_book_store_pro_headertwitter',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    
    $wp_customize->add_control('vw_book_store_pro_headertwitter',array(
        'label' => __('Add twitter link','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'setting'   => 'vw_book_store_pro_headertwitter',
        'type'      => 'text'
    ));
    $wp_customize->add_setting('vw_book_store_pro_headerpinterest',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    
    $wp_customize->add_control('vw_book_store_pro_headerpinterest',array(
        'label' => __('Add pinterest link','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'setting'   => 'vw_book_store_pro_headerpinterest',
        'type'  => 'text'
    ));
    $wp_customize->add_setting('vw_book_store_pro_headerfacebook',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    
    $wp_customize->add_control('vw_book_store_pro_headerfacebook',array(
        'label' => __('Add facebook link','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'setting'   => 'vw_book_store_pro_headerfacebook',
        'type'  => 'text'
    ));
    $wp_customize->add_setting('vw_book_store_pro_headeryoutube',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    
    $wp_customize->add_control('vw_book_store_pro_headeryoutube',array(
        'label' => __('Add Youtube link','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'setting'   => 'vw_book_store_pro_headeryoutube',
        'type'  => 'text'
    ));
    $wp_customize->add_setting('vw_book_store_pro_headerinstagram',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    
    $wp_customize->add_control('vw_book_store_pro_headerinstagram',array(
        'label' => __('Add Instagram link','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'setting'   => 'vw_book_store_pro_headerinstagram',
        'type'  => 'text'
    ));
    $wp_customize->add_setting('vw_book_store_pro_headerlinkedin',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    
    $wp_customize->add_control('vw_book_store_pro_headerlinkedin',array(
        'label' => __('Add Linkedin link','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'setting'   => 'vw_book_store_pro_headerlinkedin',
        'type'  => 'text'
    ));
    $wp_customize->add_setting('vw_book_store_pro_headertumblric',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    
    $wp_customize->add_control('vw_book_store_pro_headertumblric',array(
        'label' => __('Add Tumblr link','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'setting'   => 'vw_book_store_pro_headertumblric',
        'type'  => 'text'
    ));
    $wp_customize->add_setting('vw_book_store_pro_headerflickr',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    
    $wp_customize->add_control('vw_book_store_pro_headerflickr',array(
        'label' => __('Add Flickr link','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'setting'   => 'vw_book_store_pro_headerflickr',
        'type'  => 'text'
    ));
    $wp_customize->add_setting('vw_book_store_pro_headervk',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    
    $wp_customize->add_control('vw_book_store_pro_headervk',array(
        'label' => __('Add VK link','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'setting'   => 'vw_book_store_pro_headervk',
        'type'  => 'text'
    ));

      // ----------- Social Icon Setting -------------

    $wp_customize->add_setting( 'vw_book_store_pro_social_icon_setting',array(
        'default' => '',
        'transport' => 'postMessage',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control( new VW_Themes_Seperator_custom_Control( $wp_customize, 'vw_book_store_pro_social_icon_setting',
        array(
        'label' => __('Social Icon Settings','vw-book-store-pro'),
        'section' => 'vw_book_store_pro_social_icons'
    )));

    $wp_customize->add_setting('vw_book_store_pro_social_icon_font_size',array(
        'default'   => '',
        'sanitize_callback' => 'sanitize_textarea_field',
    ));
    $wp_customize->add_control('vw_book_store_pro_social_icon_font_size',array(
        'label' => __('Social Icon Font Size','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'type'      => 'number'
    ));

    $wp_customize->add_setting('vw_book_store_pro_social_icon_border_radius',array(
        'default'   => '',
        'sanitize_callback' => 'sanitize_textarea_field',
    ));
    $wp_customize->add_control('vw_book_store_pro_social_icon_border_radius',array(
        'label' => __('Social Icon Border Radius','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'type'      => 'number'
    ));
    $wp_customize->add_setting('vw_book_store_pro_social_icon_width',array(
        'default'   => '',
        'sanitize_callback' => 'sanitize_textarea_field',
    ));
    $wp_customize->add_control('vw_book_store_pro_social_icon_width',array(
        'label' => __('Social Icon Width','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'type'      => 'number'
    ));

    $wp_customize->add_setting('vw_book_store_pro_social_icon_height',array(
        'default'   => '',
        'sanitize_callback' => 'sanitize_textarea_field',
    ));
    $wp_customize->add_control('vw_book_store_pro_social_icon_height',array(
        'label' => __('Social Icon Height','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'type'      => 'number'
    ));
    $wp_customize->add_setting('vw_book_store_pro_social_icon_padding',array(
        'default'   => '',
        'sanitize_callback' => 'sanitize_textarea_field',
    ));
    $wp_customize->add_control('vw_book_store_pro_social_icon_padding',array(
        'label' => __('Social Icon Padding','vw-book-store-pro'),
        'section'   => 'vw_book_store_pro_social_icons',
        'type'      => 'number'
    ));
    $wp_customize->add_setting( 'vw_book_store_pro_social_icon_color', array(
        'default' => '',
        'sanitize_callback' => 'sanitize_hex_color'
    ));
    $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_social_icon_color', array(
        'label' => __('Social Icon Color', 'vw-book-store-pro'),
        'section' => 'vw_book_store_pro_social_icons',
        'settings' => 'vw_book_store_pro_social_icon_color',
    )));

    $wp_customize->add_setting( 'vw_book_store_pro_social_icon_bgcolor', array(
        'default' => '',
        'sanitize_callback' => 'sanitize_hex_color'
    ));
    $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'vw_book_store_pro_social_icon_bgcolor', array(
        'label' => __('Social Icon Background Color', 'vw-book-store-pro'),
        'section' => 'vw_book_store_pro_social_icons',
        'settings' => 'vw_book_store_pro_social_icon_bgcolor',
    )));