<?php
/**
 * Smallbiz Startup Theme Customizer
 *
 * @package Smallbiz Startup
 */

/**
 * Add postMessage support for site title and description for the Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
function smallbiz_startup_customize_register( $wp_customize ) {

	function smallbiz_startup_sanitize_dropdown_pages( $page_id, $setting ) {
  		$page_id = absint( $page_id );
  		return ( 'publish' == get_post_status( $page_id ) ? $page_id : $setting->default );
	}

	function smallbiz_startup_sanitize_checkbox( $checked ) {
		// Boolean check.
		return ( ( isset( $checked ) && true == $checked ) ? true : false );
	}

	wp_enqueue_style('smallbiz-startup-customize-controls', trailingslashit(esc_url(get_template_directory_uri())).'/css/customize-controls.css');

	$wp_customize->get_setting( 'blogname' )->transport         = 'postMessage';
	$wp_customize->get_setting( 'blogdescription' )->transport  = 'postMessage';

	//Logo
    $wp_customize->add_setting('smallbiz_startup_logo_width',array(
		'default'=> '',
		'transport' => 'refresh',
		'sanitize_callback' => 'smallbiz_startup_sanitize_integer'
	));
	$wp_customize->add_control(new Smallbiz_Startup_Slider_Custom_Control( $wp_customize, 'smallbiz_startup_logo_width',array(
		'label'	=> esc_html__('Logo Width','smallbiz-startup'),
		'section'=> 'title_tagline',
		'settings'=>'smallbiz_startup_logo_width',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 300,
        ),
	)));

	$wp_customize->add_setting('smallbiz_startup_title_enable',array(
		'default' => false,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control( 'smallbiz_startup_title_enable', array(
	   'settings' => 'smallbiz_startup_title_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Title','smallbiz-startup'),
	   'type'      => 'checkbox'
	)); 

	// site title color
	$wp_customize->add_setting('smallbiz_startup_sitetitle_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_sitetitle_color', array(
	   'settings' => 'smallbiz_startup_sitetitle_color',
	   'section'   => 'title_tagline',
	   'label' => __('Site Title Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('smallbiz_startup_tagline_enable',array(
		'default' => true,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control( 'smallbiz_startup_tagline_enable', array(
	   'settings' => 'smallbiz_startup_tagline_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Tagline','smallbiz-startup'),
	   'type'      => 'checkbox'
	));

	// site tagline color
	$wp_customize->add_setting('smallbiz_startup_sitetagline_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_sitetagline_color', array(
	   'settings' => 'smallbiz_startup_sitetagline_color',
	   'section'   => 'title_tagline',
	   'label' => __('Site Tagline Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// woocommerce section
	$wp_customize->add_section('smallbiz_startup_woocommerce_page_settings', array(
		'title'    => __('WooCommerce Page Settings', 'smallbiz-startup'),
		'priority' => null,
		'panel'    => 'woocommerce',
	));

	$wp_customize->add_setting('smallbiz_startup_shop_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_checkbox'
	));
	$wp_customize->add_control('smallbiz_startup_shop_page_sidebar',array(
		'type' => 'checkbox',
		'label' => __(' Check To Enable Shop page sidebar','smallbiz-startup'),
		'section' => 'smallbiz_startup_woocommerce_page_settings',
	));

    // shop page sidebar alignment
    $wp_customize->add_setting('smallbiz_startup_shop_page_sidebar_position', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'smallbiz_startup_sanitize_choices',
	));
	$wp_customize->add_control('smallbiz_startup_shop_page_sidebar_position',array(
		'type'           => 'radio',
		'label'          => __('Shop Page Sidebar', 'smallbiz-startup'),
		'section'        => 'smallbiz_startup_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'smallbiz-startup'),
			'Right Sidebar' => __('Right Sidebar', 'smallbiz-startup'),
		),
	));	 

	$wp_customize->add_setting('smallbiz_startup_wooproducts_nav',array(
		'default' => 'Yes',
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_choices'
	));
	$wp_customize->add_control('smallbiz_startup_wooproducts_nav',array(
		'type' => 'select',
		'label' => __('Shop Page Products Navigation','smallbiz-startup'),
		'choices' => array(
			 'Yes' => __('Yes','smallbiz-startup'),
			 'No' => __('No','smallbiz-startup'),
		 ),
		'section' => 'smallbiz_startup_woocommerce_page_settings',
	));

	$wp_customize->add_setting( 'smallbiz_startup_single_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_checkbox'
    ) );
    $wp_customize->add_control('smallbiz_startup_single_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Check To Enable Single Product Page Sidebar','smallbiz-startup'),
		'section' => 'smallbiz_startup_woocommerce_page_settings'
    ));

	// single product page sidebar alignment
    $wp_customize->add_setting('smallbiz_startup_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'smallbiz_startup_sanitize_choices',
	));
	$wp_customize->add_control('smallbiz_startup_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single product Page Sidebar', 'smallbiz-startup'),
		'section'        => 'smallbiz_startup_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'smallbiz-startup'),
			'Right Sidebar' => __('Right Sidebar', 'smallbiz-startup'),
		),
	));

	$wp_customize->add_setting('smallbiz_startup_related_product_enable',array(
		'default' => true,
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_checkbox'
	));
	$wp_customize->add_control('smallbiz_startup_related_product_enable',array(
		'type' => 'checkbox',
		'label' => __('Check To Enable Related product','smallbiz-startup'),
		'section' => 'smallbiz_startup_woocommerce_page_settings',
	));

	$wp_customize->add_setting( 'smallbiz_startup_woo_product_img_border_radius', array(
        'default'              => '0',
        'transport'            => 'refresh',
        'sanitize_callback'    => 'smallbiz_startup_sanitize_integer'
    ) );
    $wp_customize->add_control(new Smallbiz_Startup_Slider_Custom_Control( $wp_customize, 'smallbiz_startup_woo_product_img_border_radius',array(
		'label'	=> esc_html__('Woo Product Img Border Radius','smallbiz-startup'),
		'section'=> 'smallbiz_startup_woocommerce_page_settings',
		'settings'=>'smallbiz_startup_woo_product_img_border_radius',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 100,
        ),
	)));

    // Add a setting for number of products per row
    $wp_customize->add_setting('smallbiz_startup_products_per_row', array(
	  'default'   => '4',
	  'transport' => 'refresh',
	  'sanitize_callback' => 'smallbiz_startup_sanitize_integer'
    ));
    $wp_customize->add_control('smallbiz_startup_products_per_row', array(
	  'label'    => __('Woo Products Per Row', 'smallbiz-startup'),
	  'section'  => 'smallbiz_startup_woocommerce_page_settings',
	  'settings' => 'smallbiz_startup_products_per_row',
	  'type'     => 'select',
	  'choices'  => array(
		  '2' => '2',
		  '3' => '3',
		  '4' => '4',
	  ),
    ));

    // Add a setting for the number of products per page
    $wp_customize->add_setting('smallbiz_startup_products_per_page', array(
	  'default'   => '9',
	  'transport' => 'refresh',
	  'sanitize_callback' => 'smallbiz_startup_sanitize_integer'
    ));
    $wp_customize->add_control('smallbiz_startup_products_per_page', array(
	  'label'    => __('Woo Products Per Page', 'smallbiz-startup'),
	  'section'  => 'smallbiz_startup_woocommerce_page_settings',
	  'settings' => 'smallbiz_startup_products_per_page',
	  'type'     => 'number',
	  'input_attrs' => array(
		 'min'  => 1,
		 'step' => 1,
	  ),
    ));

    $wp_customize->add_setting('smallbiz_startup_product_sale_position',array(
        'default' => 'Left',
        'sanitize_callback' => 'smallbiz_startup_sanitize_choices'
	));
	$wp_customize->add_control('smallbiz_startup_product_sale_position',array(
        'type' => 'radio',
        'label' => __('Product Sale Position','smallbiz-startup'),
        'section' => 'smallbiz_startup_woocommerce_page_settings',
        'choices' => array(
            'Left' => __('Left','smallbiz-startup'),
            'Right' => __('Right','smallbiz-startup'),
        ),
	) ); 	
	
	//Theme Options
	$wp_customize->add_panel( 'smallbiz_startup_panel_area', array(
		'priority' => 10,
		'capability' => 'edit_theme_options',
		'title' => __( 'Theme Options Panel', 'smallbiz-startup' ),
	) );
	
	//Site Layout Section
	$wp_customize->add_section('smallbiz_startup_site_layoutsec',array(
		'title'	=> __('Manage Site Layout Section ','smallbiz-startup'),
		'description' => __('<p class="sec-title">Manage Site Layout Section</p>','smallbiz-startup'),
		'priority'	=> 1,
		'panel' => 'smallbiz_startup_panel_area',
	));		

 	$wp_customize->add_setting('smallbiz_startup_preloader',array(
		'default' => false,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control( 'smallbiz_startup_preloader', array(
	   'section'   => 'smallbiz_startup_site_layoutsec',
	   'label'	=> __('Check to Show preloader','smallbiz-startup'),
	   'type'      => 'checkbox'
 	));

	$wp_customize->add_setting('smallbiz_startup_box_layout',array(
		'default' => false,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));	
	$wp_customize->add_control( 'smallbiz_startup_box_layout', array(
	   'section'   => 'smallbiz_startup_site_layoutsec',
	   'label'	=> __('Check to Box Layout','smallbiz-startup'),
	   'type'      => 'checkbox'
 	));	

    // Add Settings and Controls for Page Layout
    $wp_customize->add_setting('smallbiz_startup_sidebar_page_layout',array(
	  'default' => 'full',
	  'sanitize_callback' => 'smallbiz_startup_sanitize_choices'
	));
	$wp_customize->add_control('smallbiz_startup_sidebar_page_layout',array(
		'type' => 'radio',
		'label'     => __('Theme Page Sidebar Position', 'smallbiz-startup'),
		'section' => 'smallbiz_startup_site_layoutsec',
		'choices' => array(
			'left' => __('Left','smallbiz-startup'),
			'right' => __('Right','smallbiz-startup'),
			'full' => __('No Sidebar','smallbiz-startup')
	),
	) );		

	$wp_customize->add_setting( 'smallbiz_startup_layout_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_layout_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			<a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/startup-company-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'smallbiz_startup_site_layoutsec'
	));	

	//Global Color
	$wp_customize->add_section('smallbiz_startup_global_color', array(
		'title'    => __('Manage Global Color Section', 'smallbiz-startup'),
		'panel'    => 'smallbiz_startup_panel_area',
	));	

	$wp_customize->add_setting('smallbiz_startup_color_scheme_gradiant1',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control( 
	    new WP_Customize_Color_Control( 
	    $wp_customize, 
	    'smallbiz_startup_color_scheme_gradiant1', 
	    array(
	        'label'      => __( 'Gradiant Color Scheme1', 'smallbiz-startup' ),
	        'section'    => 'smallbiz_startup_global_color',
	        'settings'   => 'smallbiz_startup_color_scheme_gradiant1',
	    ) ) 
	);

	$wp_customize->add_setting('smallbiz_startup_color_scheme_gradiant2',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
    $wp_customize->add_control( 
	    new WP_Customize_Color_Control( 
	    $wp_customize, 
	    'smallbiz_startup_color_scheme_gradiant2', 
	    array(
	        'label'      => __( 'Gradiant Color Scheme', 'smallbiz-startup' ),
	        'section'    => 'smallbiz_startup_global_color',
	        'settings'   => 'smallbiz_startup_color_scheme_gradiant2',
	    ) ) 
	);	

	$wp_customize->add_setting( 'smallbiz_startup_global_color_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_global_color_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			<a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/startup-company-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'smallbiz_startup_global_color'
	));	

 	// Header Section
	$wp_customize->add_section('smallbiz_startup_header_section', array(
        'title' => __('Manage Header Section', 'smallbiz-startup'),
		'description' => __('<p class="sec-title">Manage Header Section</p>','smallbiz-startup'),
        'priority' => null,
		'panel' => 'smallbiz_startup_panel_area',
 	));

 	$wp_customize->add_setting('smallbiz_startup_stickyheader',array(
		'default' => false,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control( 'smallbiz_startup_stickyheader', array(
	   'section'   => 'smallbiz_startup_header_section',
	   'label'	=> __('Check To Show Sticky Header','smallbiz-startup'),
	   'type'      => 'checkbox'
 	));

	// logobg color
	$wp_customize->add_setting('smallbiz_startup_logobg_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_logobg_color', array(
	   'settings' => 'smallbiz_startup_logobg_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Logo BG Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// logoborder1 color
	$wp_customize->add_setting('smallbiz_startup_logoborder1_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_logoborder1_color', array(
	   'settings' => 'smallbiz_startup_logoborder1_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Logo Border Color 1', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// logoborder2 color
	$wp_customize->add_setting('smallbiz_startup_logoborder2_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_logoborder2_color', array(
	   'settings' => 'smallbiz_startup_logoborder2_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Logo Border Color 2', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// bg1 color
	$wp_customize->add_setting('smallbiz_startup_bg1_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bg1_color', array(
	   'settings' => 'smallbiz_startup_bg1_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' BG Color 1', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// bg2 color
	$wp_customize->add_setting('smallbiz_startup_bg2_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bg2_color', array(
	   'settings' => 'smallbiz_startup_bg2_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' BG Color 2', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('smallbiz_startup_email_address',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_email',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_email_address', array(
	   'settings' => 'smallbiz_startup_email_address',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __('Add Email Address', 'smallbiz-startup'),
	   'type'      => 'text'
	));

	// email color
	$wp_customize->add_setting('smallbiz_startup_email_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_email_color', array(
	   'settings' => 'smallbiz_startup_email_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Email Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// socialicons color
	$wp_customize->add_setting('smallbiz_startup_socialicons_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_socialicons_color', array(
	   'settings' => 'smallbiz_startup_socialicons_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Social Icons Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// socialiconshover color
	$wp_customize->add_setting('smallbiz_startup_socialiconshover_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_socialiconshover_color', array(
	   'settings' => 'smallbiz_startup_socialiconshover_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Social Icons Hover Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('smallbiz_startup_contact_us_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_contact_us_text', array(
	   'settings' => 'smallbiz_startup_contact_us_text',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __('Add Button Text', 'smallbiz-startup'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('smallbiz_startup_contact_us_url',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_contact_us_url', array(
	   'settings' => 'smallbiz_startup_contact_us_url',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __('Add Button URL', 'smallbiz-startup'),
	   'type'      => 'url'
	));

	// buttontext color
	$wp_customize->add_setting('smallbiz_startup_buttontext_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_buttontext_color', array(
	   'settings' => 'smallbiz_startup_buttontext_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Button Text Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// buttonbg1 color
	$wp_customize->add_setting('smallbiz_startup_buttonbg1_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_buttonbg1_color', array(
	   'settings' => 'smallbiz_startup_buttonbg1_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Button BG Color 1', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// buttonbg2 color
	$wp_customize->add_setting('smallbiz_startup_buttonbg2_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_buttonbg2_color', array(
	   'settings' => 'smallbiz_startup_buttonbg2_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Button BG Color 2', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// buttonhover color
	$wp_customize->add_setting('smallbiz_startup_buttonhover_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_buttonhover_color', array(
	   'settings' => 'smallbiz_startup_buttonhover_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Button Hover Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// meuns color
	$wp_customize->add_setting('smallbiz_startup_meuns_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_meuns_color', array(
	   'settings' => 'smallbiz_startup_meuns_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Menus Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// meunshover color
	$wp_customize->add_setting('smallbiz_startup_meunshover_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_meunshover_color', array(
	   'settings' => 'smallbiz_startup_meunshover_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' Menus Hover Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// submeuns color
	$wp_customize->add_setting('smallbiz_startup_submeuns_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_submeuns_color', array(
	   'settings' => 'smallbiz_startup_submeuns_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' SubMenus Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// submeunshover color
	$wp_customize->add_setting('smallbiz_startup_submeunshover_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_submeunshover_color', array(
	   'settings' => 'smallbiz_startup_submeunshover_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' SubMenus Hover Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// submeunsbg color
	$wp_customize->add_setting('smallbiz_startup_submeunsbg_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_submeunsbg_color', array(
	   'settings' => 'smallbiz_startup_submeunsbg_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' SubMenus BG Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// submeunsborder color
	$wp_customize->add_setting('smallbiz_startup_submeunsborder_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_submeunsborder_color', array(
	   'settings' => 'smallbiz_startup_submeunsborder_color',
	   'section'   => 'smallbiz_startup_header_section',
	   'label' => __(' SubMenus Border Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'smallbiz_startup_header_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_header_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			<a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/startup-company-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'smallbiz_startup_header_section'
	));	

	// Social media Section
	$wp_customize->add_section('smallbiz_startup_social_media_section', array(
        'title' => __('Manage Social Media Section', 'smallbiz-startup'),
		'description' => __('<p class="sec-title">Manage Social Media Section</p>','smallbiz-startup'),
        'priority' => null,
		'panel' => 'smallbiz_startup_panel_area',
 	));

	$wp_customize->add_setting('smallbiz_startup_fb_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_fb_link', array(
	   'settings' => 'smallbiz_startup_fb_link',
	   'section'   => 'smallbiz_startup_social_media_section',
	   'label' => __('Facebook Link', 'smallbiz-startup'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('smallbiz_startup_twitt_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_twitt_link', array(
	   'settings' => 'smallbiz_startup_twitt_link',
	   'section'   => 'smallbiz_startup_social_media_section',
	   'label' => __('Twitter Link', 'smallbiz-startup'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('smallbiz_startup_linked_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_linked_link', array(
	   'settings' => 'smallbiz_startup_linked_link',
	   'section'   => 'smallbiz_startup_social_media_section',
	   'label' => __('Linkdin Link', 'smallbiz-startup'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('smallbiz_startup_insta_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_insta_link', array(
	   'settings' => 'smallbiz_startup_insta_link',
	   'section'   => 'smallbiz_startup_social_media_section',
	   'label' => __('Instagram Link', 'smallbiz-startup'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('smallbiz_startup_youtube_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_youtube_link', array(
	   'settings' => 'smallbiz_startup_youtube_link',
	   'section'   => 'smallbiz_startup_social_media_section',
	   'label' => __('Youtube Link', 'smallbiz-startup'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting( 'smallbiz_startup_social_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_social_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			<a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/startup-company-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'smallbiz_startup_social_media_section'
	));		

	// Home Category Dropdown Section
	$wp_customize->add_section('smallbiz_startup_one_cols_section',array(
		'title'	=> __('Manage Banner Section','smallbiz-startup'),
		'description'	=> __('<p class="sec-title">Manage Banner Section</p> Select Page from the Dropdown for banner, Also use the given image dimension (500 x 500).','smallbiz-startup'),
		'priority'	=> null,
		'panel' => 'smallbiz_startup_panel_area'
	));

	//Hide Section
	$wp_customize->add_setting('smallbiz_startup_disabled_pgboxes_1',array(
		'default' => false,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));	 
	$wp_customize->add_control( 'smallbiz_startup_disabled_pgboxes_1', array(
	   'settings' => 'smallbiz_startup_disabled_pgboxes_1',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label'     => __('Check To Enable This Section','smallbiz-startup'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting('smallbiz_startup_pgboxes_title',array(
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'smallbiz_startup_pgboxes_title', array(
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label'	=> __('Section Title','smallbiz-startup'),
	   'type'      => 'text',
	   'priority' => null,
    ));
	
	$wp_customize->add_setting('smallbiz_startup_pageboxes',array(
		'default'	=> '0',
		'capability' => 'edit_theme_options',
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_dropdown_pages'
	));
	$wp_customize->add_control(	'smallbiz_startup_pageboxes',array(
		'type' => 'dropdown-pages',
		'section' => 'smallbiz_startup_one_cols_section',
	  'label' => __( 'Select Page to display Banner','smallbiz-startup'),
	));

	$wp_customize->add_setting( 'smallbiz_startup_banner_excerpt_number', array(
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'smallbiz_startup_sanitize_number_absint',
	  'default' => 40,
	) );
	$wp_customize->add_control( 'smallbiz_startup_banner_excerpt_number', array(
	  'settings' => 'smallbiz_startup_banner_excerpt_number',
	  'type' => 'number',
	  'section' => 'smallbiz_startup_one_cols_section',
	  'label' => __( 'Number Of Words To Show','smallbiz-startup'),
	) );
	
	$wp_customize->add_setting('smallbiz_startup_button_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_button_text', array(
	   'settings' => 'smallbiz_startup_button_text',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __('Add Button Text', 'smallbiz-startup'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('smallbiz_startup_button_link_slider',array(
        'default'=> '',
        'sanitize_callback' => 'esc_url_raw'
    ));
    $wp_customize->add_control('smallbiz_startup_button_link_slider',array(
        'label' => esc_html__('Add Button Link','smallbiz-startup'),
        'section'=> 'smallbiz_startup_one_cols_section',
        'type'=> 'url'
    ));

    //Slider height
    $wp_customize->add_setting('smallbiz_startup_slider_img_height',array(
        'default'=> '',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('smallbiz_startup_slider_img_height',array(
        'label' => __('Banner Image Height','smallbiz-startup'),
        'description'   => __('Add the banner image height here (eg. 600px)','smallbiz-startup'),
        'input_attrs' => array(
            'placeholder' => __( '500px', 'smallbiz-startup' ),
        ),
        'section'=> 'smallbiz_startup_one_cols_section',
        'type'=> 'text'
    ));
 
	// banner title color
	$wp_customize->add_setting('smallbiz_startup_bannertitle_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannertitle_color', array(
	   'settings' => 'smallbiz_startup_bannertitle_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __(' Section Title Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// banner subtitle color
	$wp_customize->add_setting('smallbiz_startup_bannersubtitle_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannersubtitle_color', array(
	   'settings' => 'smallbiz_startup_bannersubtitle_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __(' SubTitle Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// banner description color
	$wp_customize->add_setting('smallbiz_startup_bannerdescription_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannerdescription_color', array(
	   'settings' => 'smallbiz_startup_bannerdescription_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __(' Description Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// banner btnbg1 color
	$wp_customize->add_setting('smallbiz_startup_bannerbtnbg1_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannerbtnbg1_color', array(
	   'settings' => 'smallbiz_startup_bannerbtnbg1_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __(' Button BG Color 1', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// banner btnbg2 color
	$wp_customize->add_setting('smallbiz_startup_bannerbtnbg2_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannerbtnbg2_color', array(
	   'settings' => 'smallbiz_startup_bannerbtnbg2_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __(' Button BG Color 2', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// banner btntext color
	$wp_customize->add_setting('smallbiz_startup_bannerbtntext_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannerbtntext_color', array(
	   'settings' => 'smallbiz_startup_bannerbtntext_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __(' Button Text Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// banner btnhover color
	$wp_customize->add_setting('smallbiz_startup_bannerbtnhover_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannerbtnhover_color', array(
	   'settings' => 'smallbiz_startup_bannerbtnhover_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __(' Button BG Hover Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// banner rightboxbg1 color
	$wp_customize->add_setting('smallbiz_startup_bannerrightboxbg1_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannerrightboxbg1_color', array(
	   'settings' => 'smallbiz_startup_bannerrightboxbg1_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __(' Right Box BG Color 1', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// banner rightboxbg2 color
	$wp_customize->add_setting('smallbiz_startup_bannerrightboxbg2_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannerrightboxbg2_color', array(
	   'settings' => 'smallbiz_startup_bannerrightboxbg2_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __(' Right Box BG Color 2', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// banner imgborder color
	$wp_customize->add_setting('smallbiz_startup_bannerimgborder_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannerimgborder_color', array(
	   'settings' => 'smallbiz_startup_bannerimgborder_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __('Image Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// banner box1 color
	$wp_customize->add_setting('smallbiz_startup_bannerbox1_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannerbox1_color', array(
	   'settings' => 'smallbiz_startup_bannerbox1_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __('Box Color 1', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// banner box2 color
	$wp_customize->add_setting('smallbiz_startup_bannerbox2_color',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_bannerbox2_color', array(
	   'settings' => 'smallbiz_startup_bannerbox2_color',
	   'section'   => 'smallbiz_startup_one_cols_section',
	   'label' => __('Box Color 2', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting( 'smallbiz_startup_slider_settings_upgraded_features',array(
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_slider_settings_upgraded_features', array(
	    'type'=> 'hidden',
	    'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
	        <a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/startup-company-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	    'section' => 'smallbiz_startup_one_cols_section'
	));

	// Home Three Boxes Section 
	$wp_customize->add_section('smallbiz_startup_below_banner_section', array(
		'title'	=> __('Manage Services Section','smallbiz-startup'),
		'description'	=> __('<p class="sec-title">Manage Services Section</p> Select Pages from the dropdown for Services, Also use the given image dimension (500 x 500).','smallbiz-startup'),
		'priority'	=> null,
		'panel' => 'smallbiz_startup_panel_area',
	));

	$wp_customize->add_setting('smallbiz_startup_hidepageboxes',array(
		'default' => false,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_hidepageboxes', array(
	   'settings' => 'smallbiz_startup_hidepageboxes',
	   'section'   => 'smallbiz_startup_below_banner_section',
	   'label'     => __('Check To Enable This Section','smallbiz-startup'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting('smallbiz_startup_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_text', array(
	   'settings' => 'smallbiz_startup_text',
	   'section'   => 'smallbiz_startup_below_banner_section',
	   'label'     => __('Add Text','smallbiz-startup'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('smallbiz_startup_title',array(
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'smallbiz_startup_title', array(
	   'section'   => 'smallbiz_startup_below_banner_section',
	   'label'	=> __('Section Title','smallbiz-startup'),
	   'type'      => 'text',
	   'priority' => null,
    ));
	
	$wp_customize->add_setting('smallbiz_startup_pageboxes1',array(
		'default'	=> '0',
		'capability' => 'edit_theme_options',
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_dropdown_pages'
	));
	$wp_customize->add_control(	'smallbiz_startup_pageboxes1',array(
		'type' => 'dropdown-pages',
	   'label'     => __('Select Page to display Service','smallbiz-startup'),
		'section' => 'smallbiz_startup_below_banner_section',
	));	

	$wp_customize->add_setting('smallbiz_startup_pageboxes2',array(
		'default'	=> '0',
		'capability' => 'edit_theme_options',
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_dropdown_pages'
	)); 
	$wp_customize->add_control(	'smallbiz_startup_pageboxes2',array(
		'type' => 'dropdown-pages',
	   'label'     => __('Select Page to display Service','smallbiz-startup'),
		'section' => 'smallbiz_startup_below_banner_section',
	));
	
	$wp_customize->add_setting('smallbiz_startup_pageboxes3',array(
		'default'	=> '0',
		'capability' => 'edit_theme_options',
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_dropdown_pages'
	));
	$wp_customize->add_control(	'smallbiz_startup_pageboxes3',array(
		'type' => 'dropdown-pages',
	   'label'     => __('Select Page to display Service','smallbiz-startup'),
		'section' => 'smallbiz_startup_below_banner_section',
	));

	$wp_customize->add_setting( 'smallbiz_startup_secondsec_settings_upgraded_features',array(
  		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_secondsec_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		  <a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/startup-company-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'smallbiz_startup_below_banner_section'
	));

	//Blog post
	$wp_customize->add_section('smallbiz_startup_blog_post_settings',array(
        'title' => __('Manage Post Section', 'smallbiz-startup'),
        'priority' => null,
        'panel' => 'smallbiz_startup_panel_area'
    ) );

	$wp_customize->add_setting('smallbiz_startup_metafields_date', array(
	    'default' => true,
	    'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control('smallbiz_startup_metafields_date', array(
	    'settings' => 'smallbiz_startup_metafields_date', 
	    'section'   => 'smallbiz_startup_blog_post_settings',
	    'label'     => __('Check to Enable Date', 'smallbiz-startup'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('smallbiz_startup_metafields_comments', array(
		'default' => true,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));	
	$wp_customize->add_control('smallbiz_startup_metafields_comments', array(
		'settings' => 'smallbiz_startup_metafields_comments',
		'section'  => 'smallbiz_startup_blog_post_settings',
		'label'    => __('Check to Enable Comments', 'smallbiz-startup'),
		'type'     => 'checkbox',
	));

	$wp_customize->add_setting('smallbiz_startup_metafields_author', array(
		'default' => true,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control('smallbiz_startup_metafields_author', array(
		'settings' => 'smallbiz_startup_metafields_author',
		'section'  => 'smallbiz_startup_blog_post_settings',
		'label'    => __('Check to Enable Author', 'smallbiz-startup'),
		'type'     => 'checkbox',
	));		

	$wp_customize->add_setting('smallbiz_startup_metafields_time', array(
		'default' => true,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control('smallbiz_startup_metafields_time', array(
		'settings' => 'smallbiz_startup_metafields_time',
		'section'  => 'smallbiz_startup_blog_post_settings',
		'label'    => __('Check to Enable Time', 'smallbiz-startup'),
		'type'     => 'checkbox',
	));	

	$wp_customize->add_setting('smallbiz_startup_metabox_seperator',array(
		'default' => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_metabox_seperator',array(
		'type' => 'text',
		'label' => __('Metabox Seperator','smallbiz-startup'),
		'description' => __('Ex: "/", "|", "-", ...','smallbiz-startup'),
		'section' => 'smallbiz_startup_blog_post_settings'
	)); 

   // Add Settings and Controls for Post Layout
	$wp_customize->add_setting('smallbiz_startup_sidebar_post_layout',array(
		'default' => 'right',
		'sanitize_callback' => 'smallbiz_startup_sanitize_choices'
	));
	$wp_customize->add_control('smallbiz_startup_sidebar_post_layout',array(
		'type' => 'radio',
		'label'     => __('Theme Post Sidebar Position', 'smallbiz-startup'),
		'description'   => __('This option work for blog page, archive page and search page.', 'smallbiz-startup'),
		'section' => 'smallbiz_startup_blog_post_settings',
		'choices' => array(
			'left' => __('Left','smallbiz-startup'),
			'right' => __('Right','smallbiz-startup'),
			'three-column' => __('Three Columns','smallbiz-startup'),
			'four-column' => __('Four Columns','smallbiz-startup'),
			'grid' => __('Grid Layout','smallbiz-startup'),
			'full' => __('No Sidebar','smallbiz-startup')
     ),
	) );

	$wp_customize->add_setting('smallbiz_startup_blog_post_description_option',array(
    	'default'   => 'Full Content', 
        'sanitize_callback' => 'smallbiz_startup_sanitize_choices'
	));
	$wp_customize->add_control('smallbiz_startup_blog_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','smallbiz-startup'),
        'section' => 'smallbiz_startup_blog_post_settings',
        'choices' => array(
            'No Content' => __('No Content','smallbiz-startup'),
            'Excerpt Content' => __('Excerpt Content','smallbiz-startup'),
            'Full Content' => __('Full Content','smallbiz-startup'),
        ),
	) );

	$wp_customize->add_setting('smallbiz_startup_blog_post_thumb',array(
        'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
        'default'           => 1,
    ));
    $wp_customize->add_control('smallbiz_startup_blog_post_thumb',array(
        'type'        => 'checkbox',
        'label'       => esc_html__('Show / Hide Blog Post Thumbnail', 'smallbiz-startup'),
        'section'     => 'smallbiz_startup_blog_post_settings',
    ));

    $wp_customize->add_setting( 'smallbiz_startup_blog_post_page_image_box_shadow', array(
        'default'              => '0',
        'transport'            => 'refresh',
        'sanitize_callback'    => 'smallbiz_startup_sanitize_integer'
    ) );
    $wp_customize->add_control(new Smallbiz_Startup_Slider_Custom_Control( $wp_customize, 'smallbiz_startup_blog_post_page_image_box_shadow',array(
		'label'	=> esc_html__('Blog Page Image Box Shadow','smallbiz-startup'),
		'section'=> 'smallbiz_startup_blog_post_settings',
		'settings'=>'smallbiz_startup_blog_post_page_image_box_shadow',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 100,
        ),
	)));

	$wp_customize->add_setting( 'smallbiz_startup_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_post_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			<a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/startup-company-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'smallbiz_startup_blog_post_settings'
	));	
	
	//Single Post Settings
	$wp_customize->add_section('smallbiz_startup_single_post_settings',array(
		'title' => __('Manage Single Post Section', 'smallbiz-startup'),
		'priority' => null,
		'panel' => 'smallbiz_startup_panel_area'
	));

	$wp_customize->add_setting( 'smallbiz_startup_single_page_breadcrumb',array(
		'default' => true,
        'sanitize_callback'	=> 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control('smallbiz_startup_single_page_breadcrumb',array(
       'section' => 'smallbiz_startup_single_post_settings',
	   'label' => __( 'Check To Enable Breadcrumb','smallbiz-startup' ),
	   'type' => 'checkbox'
    ));	

	$wp_customize->add_setting('smallbiz_startup_single_post_date',array(
		'default' => true,
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_checkbox'
	));
	$wp_customize->add_control('smallbiz_startup_single_post_date',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Date ','smallbiz-startup'),
		'section' => 'smallbiz_startup_single_post_settings'
	));	

	$wp_customize->add_setting('smallbiz_startup_single_post_author',array(
		'default' => true,
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_checkbox'
	));
	$wp_customize->add_control('smallbiz_startup_single_post_author',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Author','smallbiz-startup'),
		'section' => 'smallbiz_startup_single_post_settings'
	));

	$wp_customize->add_setting('smallbiz_startup_single_post_comment',array(
		'default' => true,
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_checkbox'
	));
	$wp_customize->add_control('smallbiz_startup_single_post_comment',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Comments','smallbiz-startup'),
		'section' => 'smallbiz_startup_single_post_settings'
	));	

	$wp_customize->add_setting('smallbiz_startup_single_post_time',array(
		'default' => true,
		'sanitize_callback'	=> 'smallbiz_startup_sanitize_checkbox'
	));
	$wp_customize->add_control('smallbiz_startup_single_post_time',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Time','smallbiz-startup'),
		'section' => 'smallbiz_startup_single_post_settings'
	));	

	$wp_customize->add_setting('smallbiz_startup_single_post_metabox_seperator',array(
		'default' => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_single_post_metabox_seperator',array(
		'type' => 'text',
		'label' => __('Metabox Seperator','smallbiz-startup'),
		'description' => __('Ex: "/", "|", "-", ...','smallbiz-startup'),
		'section' => 'smallbiz_startup_single_post_settings'
	)); 

	$wp_customize->add_setting('smallbiz_startup_sidebar_single_post_layout',array(
    	'default' => 'right',
    	 'sanitize_callback' => 'smallbiz_startup_sanitize_choices'
	));
	$wp_customize->add_control('smallbiz_startup_sidebar_single_post_layout',array(
   		'type' => 'radio',
    	'label'     => __('Single post sidebar layout', 'smallbiz-startup'),
     	'section' => 'smallbiz_startup_single_post_settings',
     	'choices' => array(
			'left' => __('Left','smallbiz-startup'),
			'right' => __('Right','smallbiz-startup'),
			'full' => __('No Sidebar','smallbiz-startup')
     ),
	));

	$wp_customize->add_setting( 'smallbiz_startup_single_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_single_post_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			<a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/startup-company-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'smallbiz_startup_single_post_settings'
	));	

	//Page Settings
	$wp_customize->add_section('smallbiz_startup_page_settings',array(
		'title' => __('Manage Page Section', 'smallbiz-startup'),
		'priority' => null,
		'panel' => 'smallbiz_startup_panel_area'
	));

	// Add Settings and Controls for Page Layout
	$wp_customize->add_setting('smallbiz_startup_sidebar_page_layout',array(
		'default' => 'full',
			'sanitize_callback' => 'smallbiz_startup_sanitize_choices'
	));
	$wp_customize->add_control('smallbiz_startup_sidebar_page_layout',array(
		'type' => 'radio',
		'label'     => __('Theme Page Sidebar Position', 'smallbiz-startup'),
		'section' => 'smallbiz_startup_page_settings',
		'choices' => array(
			'left' => __('Left','smallbiz-startup'),
			'right' => __('Right','smallbiz-startup'),
			'full' => __('No Sidebar','smallbiz-startup')
		),
	));	

	// 404 Page Settings
	$wp_customize->add_section('smallbiz_startup_page_not_found', array(
		'title'	=> __('Manage 404 Page Section','smallbiz-startup'),
		'priority'	=> null,
		'panel' => 'smallbiz_startup_panel_area',
	));
	
	$wp_customize->add_setting('smallbiz_startup_page_not_found_heading',array(
		'default'=> __('404 Not Found','smallbiz-startup'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_page_not_found_heading',array(
		'label'	=> __('404 Heading','smallbiz-startup'),
		'section'=> 'smallbiz_startup_page_not_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('smallbiz_startup_page_not_found_content',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));

	$wp_customize->add_control('smallbiz_startup_page_not_found_content',array(
		'label'	=> __('404 Text','smallbiz-startup'),
		'input_attrs' => array(
			'placeholder' => __( 'Looks like you have taken a wrong turn.....Don\'t worry... it happens to the best of us.', 'smallbiz-startup' ),
		),
		'section'=> 'smallbiz_startup_page_not_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'smallbiz_startup_page_not_found_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_page_not_found_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			<a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/startup-company-wordpress-theme') ." '>Upgrade to Pro</a></span>",
		'section' => 'smallbiz_startup_page_not_found'
	));

	// Footer Section 
	$wp_customize->add_section('smallbiz_startup_footer', array(
		'title'	=> __('Manage Footer Section','smallbiz-startup'),
		'description'	=> __('<p class="sec-title">Manage Footer Section</p>','smallbiz-startup'),
		'priority'	=> null,
		'panel' => 'smallbiz_startup_panel_area',
	));

	$wp_customize->add_setting('smallbiz_startup_footer_widget', array(
	    'default' => true,
	    'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control('smallbiz_startup_footer_widget', array(
	    'settings' => 'smallbiz_startup_footer_widget', // Corrected setting name
	    'section'   => 'smallbiz_startup_footer',
	    'label'     => __('Check to Enable Footer Widget', 'smallbiz-startup'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('smallbiz_startup_footer_bg_image',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw',
    ));
    $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'smallbiz_startup_footer_bg_image',array(
        'label' => __('Footer Background Image','smallbiz-startup'),
        'section' => 'smallbiz_startup_footer',
    )));

	$wp_customize->add_setting('smallbiz_startup_copyright_line',array(
		'sanitize_callback' => 'sanitize_text_field',
	));	
	$wp_customize->add_control( 'smallbiz_startup_copyright_line', array(
	   'section' 	=> 'smallbiz_startup_footer',
	   'label'	 	=> __('Copyright Line','smallbiz-startup'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

	$wp_customize->add_setting('smallbiz_startup_copyright_link',array(
    	'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'smallbiz_startup_copyright_link', array(
	   'section' 	=> 'smallbiz_startup_footer',
	   'label'	 	=> __('Copyright Link','smallbiz-startup'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

	// footer bg color
	$wp_customize->add_setting('smallbiz_startup_footer_bg_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_footer_bg_col', array(
		'settings' => 'smallbiz_startup_footer_bg_col',
		'section'   => 'smallbiz_startup_footer',
		'label' => __('BG Color', 'smallbiz-startup'),
		'type'      => 'color'
	));

    // footer coypright col
	$wp_customize->add_setting('smallbiz_startup_footer_coypright_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_footer_coypright_col', array(
	   'settings' => 'smallbiz_startup_footer_coypright_col',
	   'section'   => 'smallbiz_startup_footer',
	   'label' => __('Copyright Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// footer coyprighthover col
	$wp_customize->add_setting('smallbiz_startup_footer_coyprighthover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_footer_coyprighthover_col', array(
	   'settings' => 'smallbiz_startup_footer_coyprighthover_col',
	   'section'   => 'smallbiz_startup_footer',
	   'label' => __('Copyright Hover Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// footer coyprightbg col
	$wp_customize->add_setting('smallbiz_startup_footer_coyprightbg_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_footer_coyprightbg_col', array(
	   'settings' => 'smallbiz_startup_footer_coyprightbg_col',
	   'section'   => 'smallbiz_startup_footer',
	   'label' => __('Copyright BG Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// footer heading col
	$wp_customize->add_setting('smallbiz_startup_footer_heading_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_footer_heading_col', array(
	   'settings' => 'smallbiz_startup_footer_heading_col',
	   'section'   => 'smallbiz_startup_footer',
	   'label' => __('Heading Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// footer text col
	$wp_customize->add_setting('smallbiz_startup_footer_text_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_footer_text_col', array(
	   'settings' => 'smallbiz_startup_footer_text_col',
	   'section'   => 'smallbiz_startup_footer',
	   'label' => __('Text Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// footer list col
	$wp_customize->add_setting('smallbiz_startup_footer_list_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_footer_list_col', array(
	   'settings' => 'smallbiz_startup_footer_list_col',
	   'section'   => 'smallbiz_startup_footer',
	   'label' => __('List Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

	// footer listhover col
	$wp_customize->add_setting('smallbiz_startup_footer_listhover_col',array(
		'default' => '',
		'sanitize_callback' => 'esc_html',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'smallbiz_startup_footer_listhover_col', array(
	   'settings' => 'smallbiz_startup_footer_listhover_col',
	   'section'   => 'smallbiz_startup_footer',
	   'label' => __('List Hover Color', 'smallbiz-startup'),
	   'type'      => 'color'
	));

    $wp_customize->add_setting('smallbiz_startup_scroll_hide', array(
        'default' => true,
        'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox'
    ));
    $wp_customize->add_control( new WP_Customize_Control($wp_customize,'smallbiz_startup_scroll_hide',array(
        'label'          => __( 'Check To Show Scroll To Top', 'smallbiz-startup' ),
        'section'        => 'smallbiz_startup_footer',
        'settings'       => 'smallbiz_startup_scroll_hide',
        'type'           => 'checkbox',
    )));

    $wp_customize->add_setting('smallbiz_startup_scroll_position',array(
        'default' => 'Right',
        'sanitize_callback' => 'smallbiz_startup_sanitize_choices'
    ));
    $wp_customize->add_control('smallbiz_startup_scroll_position',array(
        'type' => 'radio',
        'section' => 'smallbiz_startup_footer',
        'label'	 	=> __('Scroll To Top Positions','smallbiz-startup'),
        'choices' => array(
            'Right' => __('Right','smallbiz-startup'),
            'Left' => __('Left','smallbiz-startup'),
            'Center' => __('Center','smallbiz-startup')
        ),
    ) );

	$wp_customize->add_setting('smallbiz_startup_scroll_text',array(
		'default'	=> __('TOP','smallbiz-startup'),
		'sanitize_callback'	=> 'sanitize_text_field',
	));	
	$wp_customize->add_control('smallbiz_startup_scroll_text',array(
		'label'	=> __('Scroll To Top Button Text','smallbiz-startup'),
		'section'	=> 'smallbiz_startup_footer',
		'type'		=> 'text'
	));

	$wp_customize->add_setting( 'smallbiz_startup_scroll_top_shape', array(
		'default'           => 'circle',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'smallbiz_startup_scroll_top_shape', array(
		'label'    => __( 'Scroll to Top Button Shape', 'smallbiz-startup' ),
		'section'  => 'smallbiz_startup_footer',
		'settings' => 'smallbiz_startup_scroll_top_shape',
		'type'     => 'radio',
		'choices'  => array(
			'box'        => __( 'Box', 'smallbiz-startup' ),
			'curved' => __( 'Curved', 'smallbiz-startup'),
			'circle'     => __( 'Circle', 'smallbiz-startup' ),
		),
	));

	$wp_customize->add_setting('smallbiz_startup_footer_widget_areas',array(
		'default'           => 4,
		'sanitize_callback' => 'smallbiz_startup_sanitize_choices',
	));
	$wp_customize->add_control('smallbiz_startup_footer_widget_areas',array(
		'type'        => 'radio',
		'section' => 'smallbiz_startup_footer',
		'label'       => __('Footer widget area', 'smallbiz-startup'),
		'choices' => array(
		   '1'     => __('One', 'smallbiz-startup'),
		   '2'     => __('Two', 'smallbiz-startup'),
		   '3'     => __('Three', 'smallbiz-startup'),
		   '4'     => __('Four', 'smallbiz-startup')
		),
	));
	// Progress Bar
	$wp_customize->add_setting('smallbiz_startup_progress_bar', array(
		'default' => false,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));

	$wp_customize->add_control(
		new WP_Customize_Control(
			$wp_customize,
			'smallbiz_startup_progress_bar',
			array(
				'label' => __('Check To Show Progress Bar', 'smallbiz-startup'),
				'section' => 'smallbiz_startup_footer',
				'settings' => 'smallbiz_startup_progress_bar',
				'type' => 'checkbox',
			)
		)
	);
    // Sticky Copyright Enable / Disable
	$wp_customize->add_setting('smallbiz_startup_sticky_copyright_enable',array(
		'default' => false,
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control( 'smallbiz_startup_sticky_copyright_enable', array(
	   'section'   => 'smallbiz_startup_footer',
	   'label'	=> __('Check To Show Sticky Copyright','smallbiz-startup'),
	   'type'      => 'checkbox'
 	));
 	$wp_customize->add_setting( 'smallbiz_startup_footer_settings_upgraded_features',array(
	  'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('smallbiz_startup_footer_settings_upgraded_features', array(
	    'type'=> 'hidden',
	    'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
	        <a target='_blank' href='". esc_url('https://www.theclassictemplates.com/products/startup-company-wordpress-theme') ." '>Upgrade to Pro</a></span>",
	    'section' => 'smallbiz_startup_footer'
	));

	$wp_customize->add_setting('smallbiz_startup_woocommerce_sidebar_shop',array(
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control( 'smallbiz_startup_woocommerce_sidebar_shop', array(
	   'section'   => 'woocommerce_product_catalog',
	   'description'  => __('Click on the check box to remove sidebar from shop page.','smallbiz-startup'),
	   'label'	=> __('Shop Page Sidebar layout','smallbiz-startup'),
	   'type'      => 'checkbox'
 	));

	$wp_customize->add_setting('smallbiz_startup_woocommerce_sidebar_product',array(
		'sanitize_callback' => 'smallbiz_startup_sanitize_checkbox',
	));
	$wp_customize->add_control( 'smallbiz_startup_woocommerce_sidebar_product', array(
	   'section'   => 'woocommerce_product_catalog',
	   'description'  => __('Click on the check box to remove sidebar from product page.','smallbiz-startup'),
	   'label'	=> __('Product Page Sidebar layout','smallbiz-startup'),
	   'type'      => 'checkbox'
 	));

 	// Google Fonts
    $wp_customize->add_section( 'smallbiz_startup_google_fonts_section', array(
		'title'       => __( 'Google Fonts', 'smallbiz-startup' ),
		'priority'       => 24,
	) );

	$font_choices = array(
		'' => 'No Fonts',
		'Kaushan Script:' => 'Kaushan Script',
		'Emilys Candy:' => 'Emilys Candy',
		'Poppins:0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900' => 'Poppins',
		'Source Sans Pro:400,700,400italic,700italic' => 'Source Sans Pro',
		'Open Sans:400italic,700italic,400,700' => 'Open Sans',
		'Oswald:400,700' => 'Oswald',
		'Playfair Display:400,700,400italic' => 'Playfair Display',
		'Montserrat:400,700' => 'Montserrat',
		'Raleway:400,700' => 'Raleway',
		'Droid Sans:400,700' => 'Droid Sans',
		'Lato:400,700,400italic,700italic' => 'Lato',
		'Arvo:400,700,400italic,700italic' => 'Arvo',
		'Lora:400,700,400italic,700italic' => 'Lora',
		'Merriweather:400,300italic,300,400italic,700,700italic' => 'Merriweather',
		'Oxygen:400,300,700' => 'Oxygen',
		'PT Serif:400,700' => 'PT Serif',
		'PT Sans:400,700,400italic,700italic' => 'PT Sans',
		'PT Sans Narrow:400,700' => 'PT Sans Narrow',
		'Cabin:400,700,400italic' => 'Cabin',
		'Fjalla One:400' => 'Fjalla One',
		'Francois One:400' => 'Francois One',
		'Josefin Sans:400,300,600,700' => 'Josefin Sans',
		'Libre Baskerville:400,400italic,700' => 'Libre Baskerville',
		'Arimo:400,700,400italic,700italic' => 'Arimo',
		'Ubuntu:400,700,400italic,700italic' => 'Ubuntu',
		'Bitter:400,700,400italic' => 'Bitter',
		'Droid Serif:400,700,400italic,700italic' => 'Droid Serif',
		'Roboto:400,400italic,700,700italic' => 'Roboto',
		'Open Sans Condensed:700,300italic,300' => 'Open Sans Condensed',
		'Roboto Condensed:400italic,700italic,400,700' => 'Roboto Condensed',
		'Roboto Slab:400,700' => 'Roboto Slab',
		'Yanone Kaffeesatz:400,700' => 'Yanone Kaffeesatz',
		'Rokkitt:400' => 'Rokkitt',
	);

	$wp_customize->add_setting( 'smallbiz_startup_headings_fonts', array(
		'sanitize_callback' => 'smallbiz_startup_sanitize_fonts',
	));
	$wp_customize->add_control( 'smallbiz_startup_headings_fonts', array(
		'type' => 'select',
		'description' => __('Select your desired font for the headings.', 'smallbiz-startup'),
		'section' => 'smallbiz_startup_google_fonts_section',
		'choices' => $font_choices
	));

	$wp_customize->add_setting( 'smallbiz_startup_body_fonts', array(
		'sanitize_callback' => 'smallbiz_startup_sanitize_fonts'
	));
	$wp_customize->add_control( 'smallbiz_startup_body_fonts', array(
		'type' => 'select',
		'description' => __( 'Select your desired font for the body.', 'smallbiz-startup' ),
		'section' => 'smallbiz_startup_google_fonts_section',
		'choices' => $font_choices
	));
}
add_action( 'customize_register', 'smallbiz_startup_customize_register' );

/**
 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
 */
function smallbiz_startup_customize_preview_js() {
	wp_enqueue_script( 'smallbiz_startup_customizer', esc_url(get_template_directory_uri()) . '/js/customize-preview.js', array( 'customize-preview' ), '20161510', true );
}
add_action( 'customize_preview_init', 'smallbiz_startup_customize_preview_js' );