<?php 
$wp_customize->add_setting( 'open_mart_disable_banner_sec', array(
                'default'               => false,
                'sanitize_callback'     => 'open_mart_sanitize_checkbox',
            ) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'open_mart_disable_banner_sec', array(
                'label'                 => esc_html__('Disable Section', 'open-mart'),
                'type'                  => 'checkbox',
                'section'               => 'open_mart_banner',
                'settings'              => 'open_mart_disable_banner_sec',
            ) ) );
// choose col layout
if(class_exists('open_mart_WP_Customize_Control_Radio_Image')){
        $wp_customize->add_setting(
            'open_mart_banner_layout', array(
                'default'           => 'bnr-one',
                'sanitize_callback' => 'open_mart_sanitize_radio',
            )
        );
$wp_customize->add_control(
            new open_mart_WP_Customize_Control_Radio_Image(
                $wp_customize, 'open_mart_banner_layout', array(
                    'label'    => esc_html__( 'Layout', 'open-mart' ),
                    'section'  => 'open_mart_banner',
                    'choices'  => array(
                        'bnr-one'   => array(
                            'url'  => open_mart_BANNER_IMG_LAYOUT_1,
                        ),
                        'bnr-three' => array(
                            'url'   => open_mart_BANNER_IMG_LAYOUT_3,
                        ),
                        'bnr-two'   => array(
                            'url'   => open_mart_BANNER_IMG_LAYOUT_2,
                        ),
                        'bnr-four' => array(
                            'url'  => open_mart_BANNER_IMG_LAYOUT_4,
                        ),
                        'bnr-five' => array(
                            'url'  => open_mart_BANNER_IMG_LAYOUT_5,
                        ),
                         'bnr-six' => array(
                            'url'  => open_mart_BANNER_IMG_LAYOUT_6,
                        ),
                         'bnr-seven' => array(
                            'url'  => open_mart_BANNER_IMG_LAYOUT_7,
                        ),
                        
                    ),
                )
            )
        );
    } 

// first image
$wp_customize->add_setting('open_mart_bnr_1_img', array(
        'default'       => '',
        'capability'    => 'edit_theme_options',
        'sanitize_callback' => 'open_mart_sanitize_upload',
    ));
$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'open_mart_bnr_1_img', array(
        'label'          => __('Image 1', 'open-mart'),
        'section'        => 'open_mart_banner',
        'settings'       => 'open_mart_bnr_1_img',
 )));

// first url
$wp_customize->add_setting('open_mart_bnr_1_url', array(
	    'default' =>'',
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'open_mart_sanitize_text',
));
$wp_customize->add_control( 'open_mart_bnr_1_url', array(
        'label'    => __('url', 'open-mart'),
        'section'  => 'open_mart_banner',
         'type'    => 'text',
));
// second image
$wp_customize->add_setting('open_mart_bnr_2_img', array(
        'default'       => '',
        'capability'    => 'edit_theme_options',
        'sanitize_callback' => 'open_mart_sanitize_upload',
    ));
$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'open_mart_bnr_2_img', array(
        'label'          => __('Image 2', 'open-mart'),
        'section'        => 'open_mart_banner',
        'settings'       => 'open_mart_bnr_2_img',
 )));

// second url
$wp_customize->add_setting('open_mart_bnr_2_url', array(
	    'default' =>'',
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'open_mart_sanitize_text',
));
$wp_customize->add_control( 'open_mart_bnr_2_url', array(
        'label'    => __('url', 'open-mart'),
        'section'  => 'open_mart_banner',
         'type'    => 'text',
));

// third image
$wp_customize->add_setting('open_mart_bnr_3_img', array(
        'default'       => '',
        'capability'    => 'edit_theme_options',
        'sanitize_callback' => 'open_mart_sanitize_upload',
    ));
$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'open_mart_bnr_3_img', array(
        'label'          => __('Image 3', 'open-mart'),
        'section'        => 'open_mart_banner',
        'settings'       => 'open_mart_bnr_3_img',
 )));

// third url
$wp_customize->add_setting('open_mart_bnr_3_url', array(
	    'default' =>'',
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'open_mart_sanitize_text',
));
$wp_customize->add_control( 'open_mart_bnr_3_url', array(
        'label'    => __('url', 'open-mart'),
        'section'  => 'open_mart_banner',
         'type'    => 'text',
));


// fourth image
$wp_customize->add_setting('open_mart_bnr_4_img', array(
        'default'       => '',
        'capability'    => 'edit_theme_options',
        'sanitize_callback' => 'open_mart_sanitize_upload',
    ));
$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'open_mart_bnr_4_img', array(
        'label'          => __('Image 4', 'open-mart'),
        'section'        => 'open_mart_banner',
        'settings'       => 'open_mart_bnr_4_img',
 )));
$wp_customize->add_setting('open_mart_bnr_4_url', array(
        'default' =>'',
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'open_mart_sanitize_text',
));
$wp_customize->add_control( 'open_mart_bnr_4_url', array(
        'label'    => __('url', 'open-mart'),
        'section'  => 'open_mart_banner',
         'type'    => 'text',
));

// fifth image
$wp_customize->add_setting('open_mart_bnr_5_img', array(
        'default'       => '',
        'capability'    => 'edit_theme_options',
        'sanitize_callback' => 'open_mart_sanitize_upload',
    ));
$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'open_mart_bnr_5_img', array(
        'label'          => __('Image 5', 'open-mart'),
        'section'        => 'open_mart_banner',
        'settings'       => 'open_mart_bnr_5_img',
 )));
$wp_customize->add_setting('open_mart_bnr_5_url', array(
        'default' =>'',
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'open_mart_sanitize_text',
));
$wp_customize->add_control( 'open_mart_bnr_5_url', array(
        'label'    => __('url', 'open-mart'),
        'section'  => 'open_mart_banner',
         'type'    => 'text',
));

$wp_customize->add_setting('open_mart_bnr_doc', array(
    'sanitize_callback' => 'open_mart_sanitize_text',
    ));
$wp_customize->add_control(new open_mart_Misc_Control( $wp_customize, 'open_mart_bnr_doc',
            array(
        'section'     => 'open_mart_banner',
        'type'        => 'doc-link',
        'url'         => 'https://themehunk.com/docs/open-mart/#banner-section',
        'description' => esc_html__( 'To know more go with this', 'open-mart' ),
        'priority'   =>100,
    )));