<?php

 /*************************Vide0 Section*********************/
 $wp_customize->add_section('swiftpress_video_section', array(
    'priority'      => 6,
    'title'         =>__('video Section', 'swiftpress'),
    'panel'         => 'swiftpress_home_options'
    ));

$wp_customize->add_setting( 'video_enable', array(
                'capability'        => 'edit_theme_options',
                'default'           => '1',
                'sanitize_callback' => 'swiftpress_theme_sanitize_text'
    ) );

    $wp_customize->add_control( 'video_enable', array(
                'settings' => 'video_enable',
                'label'    =>  __( 'Enable/Disable video Section', 'swiftpress' ),
                'section'  => 'swiftpress_video_section',
                'type'     => 'radio',
                'choices'  => array(
                    '1' => __( 'Enable', 'swiftpress' ),
                    '2' => __( 'Disable', 'swiftpress' ),
                   
                    ),
                'priority'              => 20
    ) );

$wp_customize->add_setting('video_title',array(
    'sanitize_callback' => 'swiftpress_theme_sanitize_text',
    'capability' => 'edit_theme_options',
    'default' => __('Our video','swiftpress')
    ));

$wp_customize->add_control('video_title',array(
    'label'     =>__('video Title', 'swiftpress'),
    'section'   => 'swiftpress_video_section',
    'type'      => 'text',
    'capability' => 'edit_theme_options',
    'priority'              => 20
    ));

$wp_customize->add_setting('video_content',array(
    'sanitize_callback' => 'swiftpress_theme_sanitize_text',
    'capability' => 'edit_theme_options',
    'default' => __('video to Swift Plus , Simple yet complete theme for business','swiftpress')
    ));

$wp_customize->add_control('video_content',array(
    'label'     =>__('video Description', 'swiftpress'),
    'section'   => 'swiftpress_video_section',
    'type'      => 'textarea',
    'capability' => 'edit_theme_options',
    'priority'              => 20
    ));
$wp_customize->add_setting('video_link',array(
    'sanitize_callback' => 'swiftpress_theme_sanitize_text',
    'capability' => 'edit_theme_options',
    'default' => __('','swiftpress')
    ));

$wp_customize->add_control('video_link',array(
    'label'     =>__('Youtube video Code(Iframe)', 'swiftpress'),
    'section'   => 'swiftpress_video_section',
    'type'      => 'textarea',
    'capability' => 'edit_theme_options',
    'priority'              => 20
    ));

$wp_customize->add_setting('video_background', array(
    'default' => '',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'swiftpress_theme_sanitize_text'
    ));

 $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'video_background', array(
    'label' => __('Upload Background Image For Video Section', 'swiftpress'),
    'section' => 'swiftpress_video_section',
    'setting' => 'video_background',
    'priority'              => 20
    )));

