<?php
function onlineflowershop_blog_setting( $wp_customize ) {
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
	$wp_customize->add_panel(
		'onlineflowershop_frontpage_sections', array(
			'priority' => 32,
			'title' => esc_html__( 'Frontpage Sections', 'online-flower-shop' ),
		) 
	); 
	


	/*=========================================
	Slider Section
	=========================================*/
	$wp_customize->add_section(
		'slider_setting', array(
			'title' => esc_html__( 'Slider Section', 'online-flower-shop' ),
			'description'=> __('<a>Note :</a> Image Size Should Be 1500*600','online-flower-shop'),
			'priority' => 1,
			'panel' => 'onlineflowershop_frontpage_sections',
		)
	);


	$wp_customize->add_setting('onlineflowershop_slider_tabs', array(
	   'sanitize_callback' => 'wp_kses_post',
	));

	$wp_customize->add_control(new onlineflowershop_Tab_Control($wp_customize, 'onlineflowershop_slider_tabs', array(
	   'section' => 'slider_setting',
	   'priority' => 2,
	   'buttons' => array(
	      array(
         	'name' => esc_html__('General', 'online-flower-shop'),
            'icon' => 'dashicons dashicons-welcome-write-blog',
            'fields' => array(
            	'slider1',
            	'slider2',
            	'slider3',
            	'slider4',
            	'slider5',
            	'slider6',
				'slider_btntext',
				'slider_btnlink',
				'slider_fblink',
				'slider_twitterlink',
				'slider_instagramlink'
            ),
            'active' => true,
         ), 
	      array(
            'name' => esc_html__('Style', 'online-flower-shop'),
        	'icon' => 'dashicons dashicons-art',
            'fields' => array(
                'slider_titlecolor',
                'slider_descriptioncolor',
                'slider_btntxt1color',
				'slider_btnbgcolor',
				'slider_btnbrdcolor',
				'slider_btntxthovercolor',
				'slider_socialiconscolor',
				'slider_socialiconshovercolor',
				'slider_socialiconsbgcolor',
				'slider_prevnextnumberscolor',
				'slider_prevnexticoncolor',
				'slider_prevnextnumbersbgcolor',
				'slider_prevnextnumbersboxbrdcolor'

            ),
     	),
		 array(
            'name' => esc_html__('Layout', 'online-flower-shop'),
            'icon' => 'dashicons dashicons-layout',
            'fields' => array(
                'onlineflowershop_slider_section_width',
                'onlineflowershop_slider_padding',
                'onlineflowershop_slider_top_padding',
                'onlineflowershop_slider_bottom_padding'

            ),
         )
	    
    	),
	))); 


	

	// General Tab

	// Slider 1
	$wp_customize->add_setting( 
    	'slider1',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider1',
		array(
		    'label'   		=> __('Slider 1','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);		



	// Slider 2
	$wp_customize->add_setting(
    	'slider2',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 4,
		)
	);	

	$wp_customize->add_control( 
		'slider2',
		array(
		    'label'   		=> __('Slider 2','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);	


	// Slider 3
	$wp_customize->add_setting(
    	'slider3',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 5,
		)
	);	

	$wp_customize->add_control( 
		'slider3',
		array(
		    'label'   		=> __('Slider 3','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);	


	// Slider 4
	$wp_customize->add_setting(
    	'slider4',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 6,
		)
	);	

	$wp_customize->add_control( 
		'slider4',
		array(
		    'label'   		=> __('Slider 4','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);



	// Slider 5
	$wp_customize->add_setting(
    	'slider5',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'slider5',
		array(
		    'label'   		=> __('Slider 5','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);

	// Slider 6
	$wp_customize->add_setting(
    	'slider6',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'slider6',
		array(
		    'label'   		=> __('Slider 6','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);

	// slider btntext
	$sliderbtntext = esc_html__('PICK A REQUEST', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_btntext',
    	array(
			'default' => $sliderbtntext,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'slider_btntext',
		array(
		    'label'   		=> __('Button Text','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);

	// slider btnlink
	$sliderbtnlink = esc_html__('', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_btnlink',
    	array(
			'default' => $sliderbtnlink,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'slider_btnlink',
		array(
		    'label'   		=> __('Button Link','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);

	// slider fb link
	$sliderfblink = esc_html__('', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_fblink',
    	array(
			'default' => $sliderfblink,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'slider_fblink',
		array(
		    'label'   		=> __('Facebook Link','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);

	// slider twitter link
	$slidertwitterlink = esc_html__('', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_twitterlink',
    	array(
			'default' => $slidertwitterlink,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'slider_twitterlink',
		array(
		    'label'   		=> __('Twitter Link','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);

	// slider instagram link
	$sliderinstagramlink = esc_html__('', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_instagramlink',
    	array(
			'default' => $sliderinstagramlink,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'slider_instagramlink',
		array(
		    'label'   		=> __('Instagram Link','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);



	// Style setting

	// slider title Color
	$slidertitlecolor = esc_html__('#000', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_titlecolor',
    	array(
			'default' => $slidertitlecolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_titlecolor',
		array(
		    'label'   		=> __('Title Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// slider description Color
	$sliderdescriptioncolor = esc_html__('#000', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_descriptioncolor',
    	array(
			'default' => $sliderdescriptioncolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_descriptioncolor',
		array(
		    'label'   		=> __('Description Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	

	// slider btntxt1 Color
	$sliderbtntxt1color = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_btntxt1color',
    	array(
			'default' => $sliderbtntxt1color,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_btntxt1color',
		array(
		    'label'   		=> __('Button Text Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// slider btnbg Color
	$sliderbtnbgcolor = esc_html__('#ea8198', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_btnbgcolor',
    	array(
			'default' => $sliderbtnbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_btnbgcolor',
		array(
		    'label'   		=> __('Button BG Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// slider btnbrd Color
	$sliderbtnbrdcolor = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_btnbrdcolor',
    	array(
			'default' => $sliderbtnbrdcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_btnbrdcolor',
		array(
		    'label'   		=> __('Button Border Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// slider btntxthover Color
	$sliderbtntxthovercolor = esc_html__('#000', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_btntxthovercolor',
    	array(
			'default' => $sliderbtntxthovercolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_btntxthovercolor',
		array(
		    'label'   		=> __('Button Text Hover Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// slider socialicons Color
	$slidersocialiconscolor = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_socialiconscolor',
    	array(
			'default' => $slidersocialiconscolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_socialiconscolor',
		array(
		    'label'   		=> __('Social Icons Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// slider socialiconshover Color
	$slidersocialiconshovercolor = esc_html__('#648cc0', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_socialiconshovercolor',
    	array(
			'default' => $slidersocialiconshovercolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_socialiconshovercolor',
		array(
		    'label'   		=> __('Social Icons Hover Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// slider socialiconsbg Color
	$slidersocialiconsbgcolor = esc_html__('#f3cec9', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_socialiconsbgcolor',
    	array(
			'default' => $slidersocialiconsbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_socialiconsbgcolor',
		array(
		    'label'   		=> __('Social Icons BG Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// slider prevnextnumbers Color
	$sliderprevnextnumberscolor = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_prevnextnumberscolor',
    	array(
			'default' => $sliderprevnextnumberscolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_prevnextnumberscolor',
		array(
		    'label'   		=> __('Prev/Next Numbers Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);


		// slider prevnext icon Color
	$sliderprevnexticoncolor = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_prevnexticoncolor',
    	array(
			'default' => $sliderprevnexticoncolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_prevnexticoncolor',
		array(
		    'label'   		=> __('Prev/Next Icon Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);


	// slider prevnextnumbersbg Color
	$sliderprevnextnumbersbgcolor = esc_html__('#648cc0', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_prevnextnumbersbgcolor',
    	array(
			'default' => $sliderprevnextnumbersbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_prevnextnumbersbgcolor',
		array(
		    'label'   		=> __('Prev/Next BG Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// slider prevnextnumbersboxbrd Color
	$sliderprevnextnumbersboxbrdcolor = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'slider_prevnextnumbersboxbrdcolor',
    	array(
			'default' => $sliderprevnextnumbersboxbrdcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'slider_prevnextnumbersboxbrdcolor',
		array(
		    'label'   		=> __('Prev/Next Box Border Color','online-flower-shop'),
		    'section'		=> 'slider_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	
	// layout setting

	$wp_customize->add_setting('onlineflowershop_slider_section_width',array(
        'default' => 'Full Width',
        'sanitize_callback' => 'onlineflowershop_sanitize_choices',
    ));
    $wp_customize->add_control('onlineflowershop_slider_section_width',array(
        'type' => 'select',
        'label' => __('Section Width','online-flower-shop'),
        'choices' => array (
            'Box Width' => __('Box Width','online-flower-shop'),
            'Full Width' => __('Full Width','online-flower-shop')
        ),
        'section' => 'slider_setting',
    ));


    // banner section padding 
	$wp_customize->add_setting('onlineflowershop_slider_padding',array(
		'sanitize_callback'   => 'esc_html'
	));
	$wp_customize->add_control('onlineflowershop_slider_padding',array(
		'label' => __('Section Padding','online-flower-shop'),
		'section' => 'slider_setting'
	));

	$wp_customize->add_setting('onlineflowershop_slider_top_padding',array(
		'default' => '0',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('onlineflowershop_slider_top_padding',array(
		'type' => 'number',
		'label' => __('Top','online-flower-shop'),
		'section' => 'slider_setting',
	));

	$wp_customize->add_setting('onlineflowershop_slider_bottom_padding',array(
		'default' => '0',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('onlineflowershop_slider_bottom_padding',array(
		'type' => 'number',
		'label' => __('Bottom','online-flower-shop'),
		'section' => 'slider_setting',
	));


	/*=========================================
	banner Section
	=========================================*/
	$wp_customize->add_section(
		'banner_setting', array(
			'title' => esc_html__( 'Banner Section', 'online-flower-shop' ),
			'priority' => 2,
			'panel' => 'onlineflowershop_frontpage_sections',
		)
	);

	$wp_customize->add_setting('onlineflowershop_banner_tabs', array(
		'sanitize_callback' => 'wp_kses_post',
	 ));
 
	 $wp_customize->add_control(new onlineflowershop_Tab_Control($wp_customize, 'onlineflowershop_banner_tabs', array(
		'section' => 'banner_setting',
		'priority' => 2,
		'buttons' => array(
		   array(
			  'name' => esc_html__('General', 'online-flower-shop'),
			 'icon' => 'dashicons dashicons-welcome-write-blog',
			 'fields' => array(
				 'banner_disable_section',
				 'banner1_image',
				 'banner1_offertext',
				 'banner1_title',
				 'banner1_description',
				 'banner1_btntext',
				 'banner1_btnlink',
				 'banner2_image',
				 'banner2_offertext',
				 'banner2_title',
				 'banner2_btntext',
				 'banner2_btnlink'
			 ),
			 'active' => true,
		  ),
		   array(
			 'name' => esc_html__('Style', 'online-flower-shop'),
			 'icon' => 'dashicons dashicons-art',
			 'fields' => array(
				 'banner_offertext1color',
				 'banner_offertext1bgcolor',
				 'banner_offertext1brdcolor',
				 'banner_offertext2color',
				 'banner_offertext2bgcolor',
				 'banner_titlecolor',
				 'banner_descriptioncolor',
				 'banner_buttntextcolor',
				 'banner_buttonbgcolor',
				 'banner_buttonbrdcolor',
				 'banner_buttonbghovercolor',
				 'banner_buttonTexthovercolor',
				 'banner_buttonborderhovercolor'
			 ),
		  ),
		  array(
			 'name' => esc_html__('Layout', 'online-flower-shop'),
			 'icon' => 'dashicons dashicons-layout',
			 'fields' => array(
				 'onlineflowershop_banner_section_width',
				 'onlineflowershop_banner_padding',
				 'onlineflowershop_banner_top_padding',
				 'onlineflowershop_banner_bottom_padding'
 
			 ),
		  )
		 
		 ),
	 ))); 


	// General

	// hide show banner section
	$wp_customize->add_setting(
        'banner_disable_section',
        array(
            'sanitize_callback' => 'wp_kses_post',
        )
    ); 
    $wp_customize->add_control(
        new onlineflowershop_Toggle_Switch_Custom_Control(
            $wp_customize,
            'banner_disable_section',
            array(
                'settings'      => 'banner_disable_section',
                'section'       => 'banner_setting',
                'label'         => __( 'Disable Section', 'online-flower-shop' ),
                'on_off_label'  => array(
                    'on' => __( 'Yes', 'online-flower-shop' ),
                    'off' => __( 'No', 'online-flower-shop' )
                ),
            )
        )
    );

	// banner1image
	$wp_customize->add_setting(
    	'banner1_image',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'banner1_image',
	        array(
			    'label'   		=> __('Banner 1 Image','online-flower-shop'),
	            'section' => 'banner_setting',
	            'settings' => 'banner1_image'
	        )
	    )
	);

	// banner1offertext 
	$banner1offertext = esc_html__('Get Upto 50% OFF', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner1_offertext',
    	array(
			'default' => $banner1offertext,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner1_offertext',
		array(
		    'label'   		=> __('Banner 1 Offer Text','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// banner1title 
	$banner1title = esc_html__('Home sake Lamps', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner1_title',
    	array(
			'default' => $banner1title,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner1_title',
		array(
		    'label'   		=> __('Banner 1 Title','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// banner1description 
	$banner1description = esc_html__('Beauty in Every Bouque', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner1_description',
    	array(
			'default' => $banner1description,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner1_description',
		array(
		    'label'   		=> __('Banner 1 Description','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// banner 1 btn text
	$banner1btntext = esc_html__('Shop Now', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner1_btntext',
    	array(
			'default' => $banner1btntext,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'banner1_btntext',
		array(
		    'label'   		=> __('Banner Button 1 Text','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);

	// banner 1 btn link
	$banner1btnlink = esc_html__('', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner1_btnlink',
    	array(
			'default' => $banner1btnlink,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'banner1_btnlink',
		array(
		    'label'   		=> __('Banner Button 1 Link','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);


	// banner2image
	$wp_customize->add_setting(
    	'banner2_image',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'banner2_image',
	        array(
			    'label'   		=> __('Banner 2 Image','online-flower-shop'),
	            'section' => 'banner_setting',
	            'settings' => 'banner2_image'
	        )
	    )
	);

	// banner2offertext 
	$banner2offertext = esc_html__('Get Upto 50% OFF', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner2_offertext',
    	array(
			'default' => $banner2offertext,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner2_offertext',
		array(
		    'label'   		=> __('Banner 2 Offer Text','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// banner2title 
	$banner2title = esc_html__('Home sake Lamps', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner2_title',
    	array(
			'default' => $banner2title,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner2_title',
		array(
		    'label'   		=> __('Banner 2 Title','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// banner 2 btn text
	$banner2btntext = esc_html__('Shop Now', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner2_btntext',
    	array(
			'default' => $banner2btntext,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'banner2_btntext',
		array(
		    'label'   		=> __('Banner Button 1 Text','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);

	// banner 2 btn link
	$banner2btnlink = esc_html__('', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner2_btnlink',
    	array(
			'default' => $banner2btnlink,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'banner2_btnlink',
		array(
		    'label'   		=> __('Banner Button 2 Link','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);

	

	//style

	// banner offertext1 Color
	$banneroffertext1color = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_offertext1color',
    	array(
			'default' => $banneroffertext1color,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_offertext1color',
		array(
		    'label'   		=> __('Banner 1 Offer Text Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner offertext1bg Color
	$banneroffertext1bgcolor = esc_html__('#ded9d999', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_offertext1bgcolor',
    	array(
			'default' => $banneroffertext1bgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_offertext1bgcolor',
		array(
		    'label'   		=> __('Banner 1 Offer Text BG Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner offertext1brd Color
	$banneroffertext1brdcolor = esc_html__('#000', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_offertext1brdcolor',
    	array(
			'default' => $banneroffertext1brdcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_offertext1brdcolor',
		array(
		    'label'   		=> __('Banner 1 Offer Text Border Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner offertext2 Color
	$banneroffertext2color = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_offertext2color',
    	array(
			'default' => $banneroffertext2color,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_offertext2color',
		array(
		    'label'   		=> __('Banner 2 Offer Text Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner offertext2bg Color
	$banneroffertext2bgcolor = esc_html__('#b8c8e9', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_offertext2bgcolor',
    	array(
			'default' => $banneroffertext2bgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_offertext2bgcolor',
		array(
		    'label'   		=> __('Banner 2 Offer Text BG Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner title Color
	$bannertitlecolor = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_titlecolor',
    	array(
			'default' => $bannertitlecolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_titlecolor',
		array(
		    'label'   		=> __('Title Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner description Color
	$bannerdescriptioncolor = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_descriptioncolor',
    	array(
			'default' => $bannerdescriptioncolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_descriptioncolor',
		array(
		    'label'   		=> __('Description Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner buttntext Color
	$bannerbuttntextcolor = esc_html__('#969291', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_buttntextcolor',
    	array(
			'default' => $bannerbuttntextcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_buttntextcolor',
		array(
		    'label'   		=> __('Button Text Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner buttonbg Color
	$bannerbuttonbgcolor = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_buttonbgcolor',
    	array(
			'default' => $bannerbuttonbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_buttonbgcolor',
		array(
		    'label'   		=> __('Button BG Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner buttonbrd Color
	$bannerbuttonbrdcolor = esc_html__('#000', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_buttonbrdcolor',
    	array(
			'default' => $bannerbuttonbrdcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_buttonbrdcolor',
		array(
		    'label'   		=> __('Button Border Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner buttonbghover Color
	$bannerbuttonbghovercolor = esc_html__('#df8d9c', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_buttonbghovercolor',
    	array(
			'default' => $bannerbuttonbghovercolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_buttonbghovercolor',
		array(
		    'label'   		=> __('Button BG Hover Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner button text hover Color
	$bannerbuttonTexthovercolor = esc_html__('#fff', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_buttonTexthovercolor',
    	array(
			'default' => $bannerbuttonTexthovercolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_buttonTexthovercolor',
		array(
		    'label'   		=> __('Button Text Hover Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);


	// banner button Border hover Color
	$bannerbuttonborderhovercolor = esc_html__('#000', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'banner_buttonborderhovercolor',
    	array(
			'default' => $bannerbuttonborderhovercolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_buttonborderhovercolor',
		array(
		    'label'   		=> __('Button Border Hover Color','online-flower-shop'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);
	

	
	// layout setting
	$wp_customize->add_setting('onlineflowershop_banner_section_width',array(
        'default' => 'Full Width',
        'sanitize_callback' => 'onlineflowershop_sanitize_choices',
    ));
    $wp_customize->add_control('onlineflowershop_banner_section_width',array(
        'type' => 'select',
        'label' => __('Section Width','online-flower-shop'),
        'choices' => array (
            'Box Width' => __('Box Width','online-flower-shop'),
            'Full Width' => __('Full Width','online-flower-shop')
        ),
        'section' => 'banner_setting',
    ));

	// banner section padding 
	$wp_customize->add_setting('onlineflowershop_banner_padding',array(
		'sanitize_callback'   => 'esc_html'
	));
	$wp_customize->add_control('onlineflowershop_banner_padding',array(
		'label' => __('Section Padding','online-flower-shop'),
		'section' => 'banner_setting'
	));

	$wp_customize->add_setting('onlineflowershop_banner_top_padding',array(
		'default' => '5',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('onlineflowershop_banner_top_padding',array(
		'type' => 'number',
		'label' => __('Top','online-flower-shop'),
		'section' => 'banner_setting',
	));

	$wp_customize->add_setting('onlineflowershop_banner_bottom_padding',array(
		'default' => '2',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('onlineflowershop_banner_bottom_padding',array(
		'type' => 'number',
		'label' => __('Bottom','online-flower-shop'),
		'section' => 'banner_setting',
	));

	/*=========================================
	featuredproduct Section
	=========================================*/
	$wp_customize->add_section(
		'featuredproduct_setting', array(
			'title' => esc_html__( 'Featured Product Section', 'online-flower-shop' ),
			'priority' => 2,
			'panel' => 'onlineflowershop_frontpage_sections',
		)
	);

	$wp_customize->add_setting('onlineflowershop_featuredproduct_tabs', array(
		'sanitize_callback' => 'wp_kses_post',
	 ));
 
	 $wp_customize->add_control(new onlineflowershop_Tab_Control($wp_customize, 'onlineflowershop_featuredproduct_tabs', array(
		'section' => 'featuredproduct_setting',
		'priority' => 2,
		'buttons' => array(
		   array(
			  'name' => esc_html__('General', 'online-flower-shop'),
			 'icon' => 'dashicons dashicons-welcome-write-blog',
			 'fields' => array(
				'featuredproduct_disable_section',
				'featuredproduct_heading',
			 ),
			 'active' => true,
		  ),
		   array(
			 'name' => esc_html__('Style', 'online-flower-shop'),
			 'icon' => 'dashicons dashicons-art',
			 'fields' => array(
				 'featuredproduct_headingcolor',
				 'featuredproduct_titlecolor',
				 'featuredproduct_regularpricecolor',
				 'featuredproduct_salepricecolor',
				 'featuredproduct_saleiconcolor',
				 'featuredproduct_saleiconbgcolor',
				 'featuredproduct_saleiconbghovercolor'
			 ),
		  ),
		  array(
			 'name' => esc_html__('Layout', 'online-flower-shop'),
			 'icon' => 'dashicons dashicons-layout',
			 'fields' => array(
				 'onlineflowershop_featuredproduct_section_width',
				 'onlineflowershop_featuredproduct_padding',
				 'onlineflowershop_featuredproduct_top_padding',
				 'onlineflowershop_featuredproduct_bottom_padding'
			 ),
		  )
		 
		 ),
	 ))); 

	//  Genral Settings

	// hide show featuredproduct section
	$wp_customize->add_setting(
        'featuredproduct_disable_section',
        array(
            'sanitize_callback' => 'wp_kses_post',
        )
    ); 
    $wp_customize->add_control(
        new onlineflowershop_Toggle_Switch_Custom_Control(
            $wp_customize,
            'featuredproduct_disable_section',
            array(
                'settings'      => 'featuredproduct_disable_section',
                'section'       => 'featuredproduct_setting',
                'label'         => __( 'Disable Section', 'online-flower-shop' ),
                'on_off_label'  => array(
                    'on' => __( 'Yes', 'online-flower-shop' ),
                    'off' => __( 'No', 'online-flower-shop' )
                ),
            )
        )
    );


	// featuredproduct title
	$featuredproductheading = esc_html__('Featured Products', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'featuredproduct_heading',
    	array(
			'default' => $featuredproductheading,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'featuredproduct_heading',
		array(
		    'label'   		=> __('Heading','online-flower-shop'),
		    'section'		=> 'featuredproduct_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	
	

	// Style setting

	// featuredproduct heading Color
	$featuredproductheadingcolor = esc_html__('#000', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'featuredproduct_headingcolor',
    	array(
			'default' => $featuredproductheadingcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'featuredproduct_headingcolor',
		array(
		    'label'   		=> __('Heading Color','online-flower-shop'),
		    'section'		=> 'featuredproduct_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);


	// featuredproduct title Color
	$featuredproducttitlecolor = esc_html__('#000', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'featuredproduct_titlecolor',
    	array(
			'default' => $featuredproducttitlecolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'featuredproduct_titlecolor',
		array(
		    'label'   		=> __('Title Color','online-flower-shop'),
		    'section'		=> 'featuredproduct_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// featuredproduct price Color
	$featuredproductpricecolor = esc_html__('#000', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'featuredproduct_regularpricecolor',
    	array(
			'default' => $featuredproductpricecolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'featuredproduct_regularpricecolor',
		array(
		    'label'   		=> __('Regular Price Color','online-flower-shop'),
		    'section'		=> 'featuredproduct_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// featuredproduct price Color
	$featuredproductpricecolor = esc_html__('#df8d9c', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'featuredproduct_salepricecolor',
    	array(
			'default' => $featuredproductpricecolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'featuredproduct_salepricecolor',
		array(
		    'label'   		=> __('Sale Price Color','online-flower-shop'),
		    'section'		=> 'featuredproduct_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// featuredproduct icon Color
	$featuredproducticoncolor = esc_html__('#000', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'featuredproduct_saleiconcolor',
    	array(
			'default' => $featuredproducticoncolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'featuredproduct_saleiconcolor',
		array(
		    'label'   		=> __('Icon Color','online-flower-shop'),
		    'section'		=> 'featuredproduct_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// featuredproduct iconbg Color
	$featuredproducticonbgcolor = esc_html__('#efefef', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'featuredproduct_saleiconbgcolor',
    	array(
			'default' => $featuredproducticonbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'featuredproduct_saleiconbgcolor',
		array(
		    'label'   		=> __('Icon BG Color','online-flower-shop'),
		    'section'		=> 'featuredproduct_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// featuredproduct iconbghover Color
	$featuredproducticonbghovercolor = esc_html__('#df8d9c', 'online-flower-shop' );
	$wp_customize->add_setting(
    	'featuredproduct_saleiconbghovercolor',
    	array(
			'default' => $featuredproducticonbghovercolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'featuredproduct_saleiconbghovercolor',
		array(
		    'label'   		=> __('Icon BG Hover Color','online-flower-shop'),
		    'section'		=> 'featuredproduct_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);



	// layout setting

	$wp_customize->add_setting('onlineflowershop_featuredproduct_section_width',array(
		'default' => 'Box Width',
		'sanitize_callback' => 'onlineflowershop_sanitize_choices',
	));
	$wp_customize->add_control('onlineflowershop_featuredproduct_section_width',array(
		'type' => 'select',
		'label' => __('Section Width','online-flower-shop'),
		'choices' => array (
			'Box Width' => __('Box Width','online-flower-shop'),
			'Full Width' => __('Full Width','online-flower-shop')
		),
		'section' => 'featuredproduct_setting',
	));

	// featuredproduct section padding 
	$wp_customize->add_setting('onlineflowershop_featuredproduct_padding',array(
		'sanitize_callback'   => 'esc_html'
	));
	$wp_customize->add_control('onlineflowershop_featuredproduct_padding',array(
		'label' => __('Section Padding','online-flower-shop'),
		'section' => 'featuredproduct_setting'
	));

	$wp_customize->add_setting('onlineflowershop_featuredproduct_top_padding',array(
		'default' => '5',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('onlineflowershop_featuredproduct_top_padding',array(
		'type' => 'number',
		'label' => __('Top','online-flower-shop'),
		'section' => 'featuredproduct_setting',
	));

	$wp_customize->add_setting('onlineflowershop_featuredproduct_bottom_padding',array(
		'default' => '2',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('onlineflowershop_featuredproduct_bottom_padding',array(
		'type' => 'number',
		'label' => __('Bottom','online-flower-shop'),
		'section' => 'featuredproduct_setting',
	));


	$wp_customize->register_control_type('onlineflowershop_Tab_Control');

}

add_action( 'customize_register', 'onlineflowershop_blog_setting' );

// service selective refresh
function onlineflowershop_blog_section_partials( $wp_customize ){	
	// blog_title
	$wp_customize->selective_refresh->add_partial( 'blog_title', array(
		'selector'            => '.home-blog .title h6',
		'settings'            => 'blog_title',
		'render_callback'  => 'onlineflowershop_blog_title_render_callback',
	
	) );
	
	// blog_subtitle
	$wp_customize->selective_refresh->add_partial( 'blog_subtitle', array(
		'selector'            => '.home-blog .title h2',
		'settings'            => 'blog_subtitle',
		'render_callback'  => 'onlineflowershop_blog_subtitle_render_callback',
	
	) );
	
	// blog_description
	$wp_customize->selective_refresh->add_partial( 'blog_description', array(
		'selector'            => '.home-blog .title p',
		'settings'            => 'blog_description',
		'render_callback'  => 'onlineflowershop_blog_description_render_callback',
	
	) );	
	}

add_action( 'customize_register', 'onlineflowershop_blog_section_partials' );

// blog_title
function onlineflowershop_blog_title_render_callback() {
	return get_theme_mod( 'blog_title' );
}

// blog_subtitle
function onlineflowershop_blog_subtitle_render_callback() {
	return get_theme_mod( 'blog_subtitle' );
}

// service description
function onlineflowershop_blog_description_render_callback() {
	return get_theme_mod( 'blog_description' );
}


