<?php
/**
 * Jungle Safari Theme Customizer
 * @package Jungle Safari
 */

load_template( trailingslashit( get_template_directory() ) . '/inc/logo-sizer.php' );
/**
 * Add postMessage support for site title and description for the Theme Customizer.
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
function jungle_safari_customize_register( $wp_customize ) {

	load_template( trailingslashit( get_template_directory() ) . 'inc/custom-control.php' );
	load_template( trailingslashit( get_template_directory() ) . '/inc/icon-changer.php' );

	$wp_customize->add_setting( 'jungle_safari_logo_sizer',array(
		'default' => '',
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_logo_sizer',array(
		'label' => esc_html__( 'Logo Sizer','jungle-safari' ),
		'section' => 'title_tagline',
		'priority'    => 9,
		'input_attrs' => array(
			'min' => 0,
			'max' => 100,
			'step' => 1,
		),
	))); 

	$wp_customize->add_setting('jungle_safari_site_title_enable',array(
		'default' => true,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_site_title_enable',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Site Title','jungle-safari'),
		'section' => 'title_tagline'
	));

 	$wp_customize->add_setting('jungle_safari_site_title_font_size',array(
		'default'=> 25,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_site_title_font_size',array(
		'label' => esc_html__( 'Site Title Font Size (px)','jungle-safari' ),
		'section'=> 'title_tagline',
		'input_attrs' => array(
         'step' => 1,
			'min'  => 0,
			'max'  => 50,
      ),
	))); 

	// site title color
   $wp_customize->add_setting('jungle_safari_site_title_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_site_title_color', array(
		'label'    => __('Site Title Color', 'jungle-safari'),
		'section'  => 'title_tagline',
		'settings' => 'jungle_safari_site_title_color',
	)));

   $wp_customize->add_setting('jungle_safari_site_tagline_enable',array(
      'default' => false,
      'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
   $wp_customize->add_control('jungle_safari_site_tagline_enable',array(
      'type' => 'checkbox',
      'label' => __('Enable / Disable Site Tagline','jungle-safari'),
      'section' => 'title_tagline'
   ));

   $wp_customize->add_setting('jungle_safari_site_tagline_font_size',array(
		'default'=> 13,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_site_tagline_font_size',array(
		'label' => esc_html__( 'Site Tagline Font Size (px)','jungle-safari' ),
		'section'=> 'title_tagline',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
	)));

	// site tagline color
	$wp_customize->add_setting('jungle_safari_site_tagline_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_site_tagline_color', array(
		'label'    => __('Site Tagline Color', 'jungle-safari'),
		'section'  => 'title_tagline',
		'settings' => 'jungle_safari_site_tagline_color',
	)));

    $wp_customize->add_setting('jungle_safari_site_logo_inline',array(
       'default' => false,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_site_logo_inline',array(
       'type' => 'checkbox',
       'label' => __('Site logo inline with site title','jungle-safari'),
       'section' => 'title_tagline',
    ));

    $wp_customize->add_setting('jungle_safari_background_skin',array(
        'default' => 'Without Background',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_background_skin',array(
        'type' => 'radio',
        'label' => __('Background Skin','jungle-safari'),
        'description' => __('Here you can add the background skin along with the background image.','jungle-safari'),
        'section' => 'background_image',
        'choices' => array(
            'With Background' => __('With Background Skin','jungle-safari'),
            'Without Background' => __('Without Background Skin','jungle-safari'),
        ),
	) );
	
	//Important Links
	$wp_customize->add_section( 'jungle_safari_important_links' , array(
    	'title' => esc_html__( 'Important Links', 'jungle-safari' ),
    	'priority' => 10,
	) );

	$wp_customize->add_setting('jungle_safari_doc_link',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_doc_link',array(
		'type'=> 'hidden',
		'description' => "<a target='_blank' href='". esc_url(JUNGLE_SAFARI_FREE_DOC) ." '>". esc_html__('Documentation','jungle-safari') ."</a>",
		'section'=> 'jungle_safari_important_links'
	));

	$wp_customize->add_setting('jungle_safari_demo_links',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_demo_links',array(
		'type'=> 'hidden',
		'description' => "<a target='_blank' href='". esc_url(JUNGLE_SAFARI_LIVE_DEMO) ." '>". esc_html__('Demo','jungle-safari') ."</a>",
		'section'=> 'jungle_safari_important_links'
	));

	$wp_customize->add_setting('jungle_safari_forum_links',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_forum_links',array(
		'type'=> 'hidden',
		'description' => "<a target='_blank' href='". esc_url(JUNGLE_SAFARI_FREE_SUPPORT) ." '>". esc_html__('Support Forum','jungle-safari') ."</a>",
		'section'=> 'jungle_safari_important_links'
	));
	$wp_customize->add_setting('jungle_safari_review_links',array(
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_review_links',array(
		'type'=> 'hidden',
		'description' => "<a target='_blank' href='". esc_url(JUNGLE_SAFARI_REVIEW) ." '>". esc_html__('Review','jungle-safari') ."</a>",
		'section'=> 'jungle_safari_important_links'
	));

	//add home page setting pannel
	$wp_customize->add_panel( 'jungle_safari_panel_id', array(
	   'priority' => 11,
	   'capability' => 'edit_theme_options',
	   'theme_supports' => '',
	   'title' => __( 'Theme Settings', 'jungle-safari' ),
	   'description' => __( 'Description of what this panel does.', 'jungle-safari' ),
	) );

	$jungle_safari_font_array = array(
		''                       => 'No Fonts',
		'Abril Fatface'          => 'Abril Fatface',
		'Acme'                   => 'Acme',
		'Anton'                  => 'Anton',
		'Architects Daughter'    => 'Architects Daughter',
		'Arimo'                  => 'Arimo',
		'Arsenal'                => 'Arsenal',
		'Arvo'                   => 'Arvo',
		'Alegreya'               => 'Alegreya',
		'Alfa Slab One'          => 'Alfa Slab One',
		'Averia Serif Libre'     => 'Averia Serif Libre',
		'Bangers'                => 'Bangers',
		'Boogaloo'               => 'Boogaloo',
		'Bad Script'             => 'Bad Script',
		'Bitter'                 => 'Bitter',
		'Bree Serif'             => 'Bree Serif',
		'BenchNine'              => 'BenchNine',
		'Cabin'                  => 'Cabin',
		'Cardo'                  => 'Cardo',
		'Courgette'              => 'Courgette',
		'Cherry Swash'           => 'Cherry Swash',
		'Cormorant Garamond'     => 'Cormorant Garamond',
		'Crimson Text'           => 'Crimson Text',
		'Cuprum'                 => 'Cuprum',
		'Cookie'                 => 'Cookie',
		'Chewy'                  => 'Chewy',
		'Days One'               => 'Days One',
		'Dosis'                  => 'Dosis',
		'Droid Sans'             => 'Droid Sans',
		'Economica'              => 'Economica',
		'Fredoka One'            => 'Fredoka One',
		'Fjalla One'             => 'Fjalla One',
		'Francois One'           => 'Francois One',
		'Frank Ruhl Libre'       => 'Frank Ruhl Libre',
		'Gloria Hallelujah'      => 'Gloria Hallelujah',
		'Great Vibes'            => 'Great Vibes',
		'Handlee'                => 'Handlee',
		'Hammersmith One'        => 'Hammersmith One',
		'Inconsolata'            => 'Inconsolata',
		'Indie Flower'           => 'Indie Flower',
		'IM Fell English SC'     => 'IM Fell English SC',
		'Julius Sans One'        => 'Julius Sans One',
		'Josefin Slab'           => 'Josefin Slab',
		'Josefin Sans'           => 'Josefin Sans',
		'Kanit'                  => 'Kanit',
		'Lobster'                => 'Lobster',
		'Lato'                   => 'Lato',
		'Lora'                   => 'Lora',
		'Libre Baskerville'      => 'Libre Baskerville',
		'Lobster Two'            => 'Lobster Two',
		'Merriweather'           => 'Merriweather',
		'Monda'                  => 'Monda',
		'Montserrat'             => 'Montserrat',
		'Muli'                   => 'Muli',
		'Marck Script'           => 'Marck Script',
		'Noto Serif'             => 'Noto Serif',
		'Open Sans'              => 'Open Sans',
		'Overpass'               => 'Overpass',
		'Overpass Mono'          => 'Overpass Mono',
		'Oxygen'                 => 'Oxygen',
		'Orbitron'               => 'Orbitron',
		'Patua One'              => 'Patua One',
		'Pacifico'               => 'Pacifico',
		'Padauk'                 => 'Padauk',
		'Playball'               => 'Playball',
		'Playfair Display'       => 'Playfair Display',
		'PT Sans'                => 'PT Sans',
		'Philosopher'            => 'Philosopher',
		'Permanent Marker'       => 'Permanent Marker',
		'Poiret One'             => 'Poiret One',
		'Quicksand'              => 'Quicksand',
		'Quattrocento Sans'      => 'Quattrocento Sans',
		'Raleway'                => 'Raleway',
		'Rubik'                  => 'Rubik',
		'Rokkitt'                => 'Rokkitt',
		'Russo One'              => 'Russo One',
		'Righteous'              => 'Righteous',
		'Slabo'                  => 'Slabo',
		'Source Sans Pro'        => 'Source Sans Pro',
		'Shadows Into Light Two' => 'Shadows Into Light Two',
		'Shadows Into Light'     => 'Shadows Into Light',
		'Sacramento'             => 'Sacramento',
		'Shrikhand'              => 'Shrikhand',
		'Tangerine'              => 'Tangerine',
		'Ubuntu'                 => 'Ubuntu',
		'VT323'                  => 'VT323',
		'Varela Round'           => 'Varela Round',
		'Vampiro One'            => 'Vampiro One',
		'Vollkorn'               => 'Vollkorn',
		'Volkhov'                => 'Volkhov',
		'Yanone Kaffeesatz'      => 'Yanone Kaffeesatz'
	);

	//Typography
	$wp_customize->add_section('jungle_safari_typography', array(
		'title'    => __('Typography', 'jungle-safari'),
		'panel'    => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_typography_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_typography_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_typography'
 	));

	//This is body FontFamily picker setting
	$wp_customize->add_setting('jungle_safari_body_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_body_color', array(
		'label'    => __('Body Color', 'jungle-safari'),
		'section'  => 'jungle_safari_typography',
		'settings' => 'jungle_safari_body_color',
	)));

	$wp_customize->add_setting('jungle_safari_body_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control(	'jungle_safari_body_font_family', array(
		'section' => 'jungle_safari_typography',
		'label'   => __('Body Fonts', 'jungle-safari'),
		'type'    => 'select',
		'choices' => $jungle_safari_font_array,
	));

	$wp_customize->add_setting('jungle_safari_body_font_size', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control('jungle_safari_body_font_size', array(
		'label'   => __('Body Font Size', 'jungle-safari'),
		'section' => 'jungle_safari_typography',
		'setting' => 'jungle_safari_body_font_size',
		'type'    => 'text',
	));

	$wp_customize->add_setting('jungle_safari_body_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_body_font_weight',array(
		'type' => 'select',
		'label' => __('Body Font Weight','jungle-safari'),
		'section' => 'jungle_safari_typography',
		'choices' => array(
		   '100' => __('100','jungle-safari'),
         '200' => __('200','jungle-safari'),
         '300' => __('300','jungle-safari'),
         '400' => __('400','jungle-safari'),
         '500' => __('500','jungle-safari'),
         '600' => __('600','jungle-safari'),
         '700' => __('700','jungle-safari'),
         '800' => __('800','jungle-safari'),
         '900' => __('900','jungle-safari'),
		),
	) );	

	// This is Paragraph Color picker setting
	$wp_customize->add_setting('jungle_safari_paragraph_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_paragraph_color', array(
		'label'    => __('Paragraph Color', 'jungle-safari'),
		'section'  => 'jungle_safari_typography',
		'settings' => 'jungle_safari_paragraph_color',
	)));

	//This is Paragraph FontFamily picker setting
	$wp_customize->add_setting('jungle_safari_paragraph_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control(	'jungle_safari_paragraph_font_family', array(
		'section' => 'jungle_safari_typography',
		'label'   => __('Paragraph Fonts', 'jungle-safari'),
		'type'    => 'select',
		'choices' => $jungle_safari_font_array,
	));

	$wp_customize->add_setting('jungle_safari_paragraph_font_size', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control('jungle_safari_paragraph_font_size', array(
		'label'   => __('Paragraph Font Size', 'jungle-safari'),
		'section' => 'jungle_safari_typography',
		'setting' => 'jungle_safari_paragraph_font_size',
		'type'    => 'text',
	));

	$wp_customize->add_setting('jungle_safari_paragraph_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_paragraph_font_weight',array(
		'type' => 'select',
		'label' => __('Paragraph Font Weight','jungle-safari'),
		'section' => 'jungle_safari_typography',
		'choices' => array(
		   '100' => __('100','jungle-safari'),
         '200' => __('200','jungle-safari'),
         '300' => __('300','jungle-safari'),
         '400' => __('400','jungle-safari'),
         '500' => __('500','jungle-safari'),
         '600' => __('600','jungle-safari'),
         '700' => __('700','jungle-safari'),
         '800' => __('800','jungle-safari'),
         '900' => __('900','jungle-safari'),
		),
	) );		

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting('jungle_safari_atag_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_atag_color', array(
		'label'    => __('"a" Tag Color', 'jungle-safari'),
		'section'  => 'jungle_safari_typography',
		'settings' => 'jungle_safari_atag_color',
	)));

	//This is "a" Tag FontFamily picker setting
	$wp_customize->add_setting('jungle_safari_atag_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control(	'jungle_safari_atag_font_family', array(
		'section' => 'jungle_safari_typography',
		'label'   => __('"a" Tag Fonts', 'jungle-safari'),
		'type'    => 'select',
		'choices' => $jungle_safari_font_array,
	));

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting('jungle_safari_li_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_li_color', array(
		'label'    => __('"li" Tag Color', 'jungle-safari'),
		'section'  => 'jungle_safari_typography',
		'settings' => 'jungle_safari_li_color',
	)));

	//This is "li" Tag FontFamily picker setting
	$wp_customize->add_setting('jungle_safari_li_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control(	'jungle_safari_li_font_family', array(
		'section' => 'jungle_safari_typography',
		'label'   => __('"li" Tag Fonts', 'jungle-safari'),
		'type'    => 'select',
		'choices' => $jungle_safari_font_array,
	));

	// This is H1 Color picker setting
	$wp_customize->add_setting('jungle_safari_h1_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_h1_color', array(
		'label'    => __('H1 Color', 'jungle-safari'),
		'section'  => 'jungle_safari_typography',
		'settings' => 'jungle_safari_h1_color',
	)));

	//This is H1 FontFamily picker setting
	$wp_customize->add_setting('jungle_safari_h1_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control('jungle_safari_h1_font_family', array(
		'section' => 'jungle_safari_typography',
		'label'   => __('H1 Fonts', 'jungle-safari'),
		'type'    => 'select',
		'choices' => $jungle_safari_font_array,
	));

	//This is H1 FontSize setting
	$wp_customize->add_setting('jungle_safari_h1_font_size', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control('jungle_safari_h1_font_size', array(
		'label'   => __('H1 Font Size', 'jungle-safari'),
		'section' => 'jungle_safari_typography',
		'setting' => 'jungle_safari_h1_font_size',
		'type'    => 'text',
	));

	//This is H1 FontWeight setting	
	$wp_customize->add_setting('jungle_safari_h1_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_h1_font_weight',array(
		'type' => 'select',
		'label' => __('H1 Font Weight','jungle-safari'),
		'section' => 'jungle_safari_typography',
		'choices' => array(
		   '100' => __('100','jungle-safari'),
         '200' => __('200','jungle-safari'),
         '300' => __('300','jungle-safari'),
         '400' => __('400','jungle-safari'),
         '500' => __('500','jungle-safari'),
         '600' => __('600','jungle-safari'),
         '700' => __('700','jungle-safari'),
         '800' => __('800','jungle-safari'),
         '900' => __('900','jungle-safari'),
		),
	) );		

	// This is H2 Color picker setting
	$wp_customize->add_setting('jungle_safari_h2_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_h2_color', array(
		'label'    => __('H2 Color', 'jungle-safari'),
		'section'  => 'jungle_safari_typography',
		'settings' => 'jungle_safari_h2_color',
	)));

	//This is H2 FontFamily picker setting
	$wp_customize->add_setting('jungle_safari_h2_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control(
	'jungle_safari_h2_font_family', array(
		'section' => 'jungle_safari_typography',
		'label'   => __('H2 Fonts', 'jungle-safari'),
		'type'    => 'select',
		'choices' => $jungle_safari_font_array,
	));

	//This is H2 FontSize setting
	$wp_customize->add_setting('jungle_safari_h2_font_size', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control('jungle_safari_h2_font_size', array(
		'label'   => __('H2 Font Size', 'jungle-safari'),
		'section' => 'jungle_safari_typography',
		'setting' => 'jungle_safari_h2_font_size',
		'type'    => 'text',
	));

	//This is H2 FontWeight setting	
	$wp_customize->add_setting('jungle_safari_h2_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_h2_font_weight',array(
		'type' => 'select',
		'label' => __('H2 Font Weight','jungle-safari'),
		'section' => 'jungle_safari_typography',
		'choices' => array(
		   '100' => __('100','jungle-safari'),
         '200' => __('200','jungle-safari'),
         '300' => __('300','jungle-safari'),
         '400' => __('400','jungle-safari'),
         '500' => __('500','jungle-safari'),
         '600' => __('600','jungle-safari'),
         '700' => __('700','jungle-safari'),
         '800' => __('800','jungle-safari'),
         '900' => __('900','jungle-safari'),
		),
	) );

	// This is H3 Color picker setting
	$wp_customize->add_setting('jungle_safari_h3_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_h3_color', array(
		'label'    => __('H3 Color', 'jungle-safari'),
		'section'  => 'jungle_safari_typography',
		'settings' => 'jungle_safari_h3_color',
	)));

	//This is H3 FontFamily picker setting
	$wp_customize->add_setting('jungle_safari_h3_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control(
	'jungle_safari_h3_font_family', array(
		'section' => 'jungle_safari_typography',
		'label'   => __('H3 Fonts', 'jungle-safari'),
		'type'    => 'select',
		'choices' => $jungle_safari_font_array,
	));

	//This is H3 FontSize setting
	$wp_customize->add_setting('jungle_safari_h3_font_size', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control('jungle_safari_h3_font_size', array(
		'label'   => __('H3 Font Size', 'jungle-safari'),
		'section' => 'jungle_safari_typography',
		'setting' => 'jungle_safari_h3_font_size',
		'type'    => 'text',
	));

	//This is H3 FontWeight setting	
	$wp_customize->add_setting('jungle_safari_h3_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_h3_font_weight',array(
		'type' => 'select',
		'label' => __('H3 Font Weight','jungle-safari'),
		'section' => 'jungle_safari_typography',
		'choices' => array(
		   '100' => __('100','jungle-safari'),
         '200' => __('200','jungle-safari'),
         '300' => __('300','jungle-safari'),
         '400' => __('400','jungle-safari'),
         '500' => __('500','jungle-safari'),
         '600' => __('600','jungle-safari'),
         '700' => __('700','jungle-safari'),
         '800' => __('800','jungle-safari'),
         '900' => __('900','jungle-safari'),
		),
	) );	

	// This is H4 Color picker setting
	$wp_customize->add_setting('jungle_safari_h4_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_h4_color', array(
		'label'    => __('H4 Color', 'jungle-safari'),
		'section'  => 'jungle_safari_typography',
		'settings' => 'jungle_safari_h4_color',
	)));

	//This is H4 FontFamily picker setting
	$wp_customize->add_setting('jungle_safari_h4_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control('jungle_safari_h4_font_family', array(
		'section' => 'jungle_safari_typography',
		'label'   => __('H4 Fonts', 'jungle-safari'),
		'type'    => 'select',
		'choices' => $jungle_safari_font_array,
	));

	//This is H4 FontSize setting
	$wp_customize->add_setting('jungle_safari_h4_font_size', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control('jungle_safari_h4_font_size', array(
		'label'   => __('H4 Font Size', 'jungle-safari'),
		'section' => 'jungle_safari_typography',
		'setting' => 'jungle_safari_h4_font_size',
		'type'    => 'text',
	));

	//This is H4 FontWeight setting	
	$wp_customize->add_setting('jungle_safari_h4_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_h4_font_weight',array(
		'type' => 'select',
		'label' => __('H4 Font Weight','jungle-safari'),
		'section' => 'jungle_safari_typography',
		'choices' => array(
		   '100' => __('100','jungle-safari'),
         '200' => __('200','jungle-safari'),
         '300' => __('300','jungle-safari'),
         '400' => __('400','jungle-safari'),
         '500' => __('500','jungle-safari'),
         '600' => __('600','jungle-safari'),
         '700' => __('700','jungle-safari'),
         '800' => __('800','jungle-safari'),
         '900' => __('900','jungle-safari'),
		),
	) );	

	// This is H5 Color picker setting
	$wp_customize->add_setting('jungle_safari_h5_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_h5_color', array(
		'label'    => __('H5 Color', 'jungle-safari'),
		'section'  => 'jungle_safari_typography',
		'settings' => 'jungle_safari_h5_color',
	)));

	//This is H5 FontFamily picker setting
	$wp_customize->add_setting('jungle_safari_h5_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control('jungle_safari_h5_font_family', array(
		'section' => 'jungle_safari_typography',
		'label'   => __('H5 Fonts', 'jungle-safari'),
		'type'    => 'select',
		'choices' => $jungle_safari_font_array,
	));

	//This is H5 FontSize setting
	$wp_customize->add_setting('jungle_safari_h5_font_size', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control('jungle_safari_h5_font_size', array(
		'label'   => __('H5 Font Size', 'jungle-safari'),
		'section' => 'jungle_safari_typography',
		'setting' => 'jungle_safari_h5_font_size',
		'type'    => 'text',
	));

	//This is H5 FontWeight setting	
	$wp_customize->add_setting('jungle_safari_h5_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_h5_font_weight',array(
		'type' => 'select',
		'label' => __('H5 Font Weight','jungle-safari'),
		'section' => 'jungle_safari_typography',
		'choices' => array(
		   '100' => __('100','jungle-safari'),
         '200' => __('200','jungle-safari'),
         '300' => __('300','jungle-safari'),
         '400' => __('400','jungle-safari'),
         '500' => __('500','jungle-safari'),
         '600' => __('600','jungle-safari'),
         '700' => __('700','jungle-safari'),
         '800' => __('800','jungle-safari'),
         '900' => __('900','jungle-safari'),
		),
	) );	

	// This is H6 Color picker setting
	$wp_customize->add_setting('jungle_safari_h6_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_h6_color', array(
		'label'    => __('H6 Color', 'jungle-safari'),
		'section'  => 'jungle_safari_typography',
		'settings' => 'jungle_safari_h6_color',
	)));

	//This is H6 FontFamily picker setting
	$wp_customize->add_setting('jungle_safari_h6_font_family', array(
		'default'           => '',
		'capability'        => 'edit_theme_options',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control('jungle_safari_h6_font_family', array(
		'section' => 'jungle_safari_typography',
		'label'   => __('H6 Fonts', 'jungle-safari'),
		'type'    => 'select',
		'choices' => $jungle_safari_font_array,
	));

	//This is H6 FontSize setting
	$wp_customize->add_setting('jungle_safari_h6_font_size', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control('jungle_safari_h6_font_size', array(
		'label'   => __('H6 Font Size', 'jungle-safari'),
		'section' => 'jungle_safari_typography',
		'setting' => 'jungle_safari_h6_font_size',
		'type'    => 'text',
	));

	//This is H6 FontWeight setting	
	$wp_customize->add_setting('jungle_safari_h6_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_h6_font_weight',array(
		'type' => 'select',
		'label' => __('H6 Font Weight','jungle-safari'),
		'section' => 'jungle_safari_typography',
		'choices' => array(
		   '100' => __('100','jungle-safari'),
         '200' => __('200','jungle-safari'),
         '300' => __('300','jungle-safari'),
         '400' => __('400','jungle-safari'),
         '500' => __('500','jungle-safari'),
         '600' => __('600','jungle-safari'),
         '700' => __('700','jungle-safari'),
         '800' => __('800','jungle-safari'),
         '900' => __('900','jungle-safari'),
		),
	) );	

 	//Header Section
	$wp_customize->add_section('jungle_safari_header_section',array(
		'title'	=> __('Header','jungle-safari'),
		'description'	=> __('Add Header here','jungle-safari'),
		'priority'	=> null,
		'panel' => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_header_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_header_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_header_section'
 	));
	
	$wp_customize->add_setting('jungle_safari_header_btn_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_header_btn_text',array(
		'type' => 'text',
		'label' => __('Add Button Text','jungle-safari'),
		'input_attrs' => array(
        'placeholder' => __( 'Book Now', 'jungle-safari' ),
      ),
		'section' => 'jungle_safari_header_section',
	) );

	$wp_customize->add_setting('jungle_safari_header_btn_url',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
 	));
 	$wp_customize->add_control('jungle_safari_header_btn_url',array(
		'type' => 'text',
		'label' => __('Add Button URL','jungle-safari'),
		'input_attrs' => array(
        'placeholder' => __( 'www.example-info.com', 'jungle-safari' ),
      ),
		'section' => 'jungle_safari_header_section',
	) );

 	//Menu Section
	$wp_customize->add_section('jungle_safari_menu_section',array(
		'title'	=> __('Menu Settings','jungle-safari'),
		'priority'	=> null,
		'panel' => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_menu_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_menu_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_menu_section'
 	));

	$wp_customize->add_setting('jungle_safari_menu_font_size_option',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize,'jungle_safari_menu_font_size_option',array(
		'label'	=> __('Menu Font Size','jungle-safari'),
		'section'=> 'jungle_safari_menu_section',
		'input_attrs' => array(
         'step' => 1,
			'min'  => 0,
			'max'  => 50,
     	),
	)));

	$wp_customize->add_setting('jungle_safari_menu_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize,'jungle_safari_menu_padding',array(
		'label'	=> __('Main Menu Padding','jungle-safari'),
		'section'=> 'jungle_safari_menu_section',
		'input_attrs' => array(
         'step' => 1,
			'min'  => 0,
			'max'  => 50,
      ),
	)));

	$wp_customize->add_setting('jungle_safari_font_weight_option_menu',array(
		'default' => '600',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_font_weight_option_menu',array(
		'type' => 'select',
		'label' => __('Menu Font Weight','jungle-safari'),
		'section' => 'jungle_safari_menu_section',
		'choices' => array(
		   '100' => __('100','jungle-safari'),
         '200' => __('200','jungle-safari'),
         '300' => __('300','jungle-safari'),
         '400' => __('400','jungle-safari'),
         '500' => __('500','jungle-safari'),
         '600' => __('600','jungle-safari'),
         '700' => __('700','jungle-safari'),
         '800' => __('800','jungle-safari'),
         '900' => __('900','jungle-safari'),
		),
	) );

	$wp_customize->add_setting('jungle_safari_menu_text_tranform',array(
		'default' => 'Uppercase',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_menu_text_tranform',array(
		'type' => 'select',
		'label' => __('Menu Text Transform','jungle-safari'),
		'section' => 'jungle_safari_menu_section',
		'choices' => array(
		   'Uppercase' => __('Uppercase','jungle-safari'),
		   'Lowercase' => __('Lowercase','jungle-safari'),
		   'Capitalize' => __('Capitalize','jungle-safari'),
		),
	) );

	$wp_customize->add_setting('jungle_safari_menus_item_style',array(
        'default' => '',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_menus_item_style',array(
        'type' => 'select',
		'label' => __('Menu Item Hover Style','jungle-safari'),
		'section' => 'jungle_safari_menu_section',
		'choices' => array(
         'None' => __('None','jungle-safari'),
         'Zoom In' => __('Zoom In','jungle-safari'),
      ),
	));

	$wp_customize->add_setting('jungle_safari_sub_menu_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_sub_menu_hover_color', array(
		'label'    => __('Submenu Hover Color', 'jungle-safari'),
		'section'  => 'jungle_safari_menu_section',
		'settings' => 'jungle_safari_sub_menu_hover_color',
	)));

	$wp_customize->add_setting('jungle_safari_menu_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_menu_color', array(
		'label'    => __('Menu Color', 'jungle-safari'),
		'section'  => 'jungle_safari_menu_section',
		'settings' => 'jungle_safari_menu_color',
	)));

	$wp_customize->add_setting('jungle_safari_sub_menu_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_sub_menu_color', array(
		'label'    => __('Submenu Color', 'jungle-safari'),
		'section'  => 'jungle_safari_menu_section',
		'settings' => 'jungle_safari_sub_menu_color',
	)));

	$wp_customize->add_setting('jungle_safari_menu_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_menu_hover_color', array(
		'label'    => __('Menu Hover Color', 'jungle-safari'),
		'section'  => 'jungle_safari_menu_section',
		'settings' => 'jungle_safari_menu_hover_color',
	)));

	//Banner Section
	$wp_customize->add_section( 'jungle_safari_banner_section' , array(
    	'title'      => __( 'Banner Section', 'jungle-safari' ),
		'priority'   => null,
		'panel' => 'jungle_safari_panel_id'
	) );

	$wp_customize->add_setting('jungle_safari_banner_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_banner_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_banner_section'
 	));

	$wp_customize->add_setting('jungle_safari_banner_hide',array(
		'default' => false,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_banner_hide',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Banner','jungle-safari'),
		'section' => 'jungle_safari_banner_section',
	));

 	$wp_customize->add_setting('jungle_safari_banner_small_title',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_banner_small_title',array(
		'label'	=> __('Banner Small Title','jungle-safari'),
		'section'	=> 'jungle_safari_banner_section',
		'input_attrs' => array(
        'placeholder' => __( 'Wildscape', 'jungle-safari' ),
      ),
		'type'	=> 'text'
	));

 	$wp_customize->add_setting('jungle_safari_banner_title',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_banner_title',array(
		'label'	=> __('Banner Title','jungle-safari'),
		'section'	=> 'jungle_safari_banner_section',
		'input_attrs' => array(
        'placeholder' => __( 'journey deep into the wild unknown', 'jungle-safari' ),
      ),
		'type'	=> 'text'
	));

 	$wp_customize->add_setting('jungle_safari_banner_desc_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_banner_desc_text',array(
		'label'	=> __('Banner Content','jungle-safari'),
		'section'	=> 'jungle_safari_banner_section',
		'type'	=> 'text'
	));

	$wp_customize->add_setting('jungle_safari_banner_btn_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_banner_btn_text',array(
		'type' => 'text',
		'label' => __('Add Button Text','jungle-safari'),
		'input_attrs' => array(
        'placeholder' => __( 'Book Now', 'jungle-safari' ),
      ),
		'section' => 'jungle_safari_banner_section',
	) );

	$wp_customize->add_setting('jungle_safari_banner_btn_url',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw'
 	));
 	$wp_customize->add_control('jungle_safari_banner_btn_url',array(
		'type' => 'text',
		'label' => __('Add Button URL','jungle-safari'),
		'input_attrs' => array(
        'placeholder' => __( 'www.example-info.com', 'jungle-safari' ),
      ),
		'section' => 'jungle_safari_banner_section',
	) );

	$wp_customize->add_setting('jungle_safari_video_button_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('jungle_safari_video_button_url',array(
		'label'	=> __('Add Video Button URL','jungle-safari'),
		'description' => __('Add embed link','jungle-safari'),
		'section'	=> 'jungle_safari_banner_section',
		'setting'	=> 'jungle_safari_video_button_url',
		'type'	=> 'url'
	));

	$wp_customize->add_setting('jungle_safari_video_bg_img',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'jungle_safari_video_bg_img',array(
      'label' => __('Video Background Image','jungle-safari'),
		'description' => __('Image Size (180px × 300px).','jungle-safari'),
      'section' => 'jungle_safari_banner_section'
	)));

	$wp_customize->add_setting('jungle_safari_banner_bottom_image1',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'jungle_safari_banner_bottom_image1',array(
      'label' => __('Banner Bottom Image','jungle-safari'),
		'description' => __('Image Size (170px × 150px).','jungle-safari'),
      'section' => 'jungle_safari_banner_section'
	)));

	$wp_customize->add_setting('jungle_safari_banner_bottom_image2',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'jungle_safari_banner_bottom_image2',array(
      'label' => __('Banner Bottom Image','jungle-safari'),
		'description' => __('Image Size (170px × 150px).','jungle-safari'),
      'section' => 'jungle_safari_banner_section'
	)));

	$wp_customize->add_setting('jungle_safari_banner_side_image',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'jungle_safari_banner_side_image',array(
      'label' => __('Banner Right Image','jungle-safari'),
		'description' => __('Image Size (500px × 500px).','jungle-safari'),
      'section' => 'jungle_safari_banner_section'
	)));

	//Featured Section
  	$wp_customize->add_section('jungle_safari_featured_section',array(
		'title' => __('Featured Section','jungle-safari'),
		'description' => '',
		'priority'  => null,
		'panel' => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_featured_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_featured_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_featured_section'
 	));

	$wp_customize->add_setting('jungle_safari_section_title',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_section_title',array(
		'label'	=> __('Add Section Title','jungle-safari'),
		'input_attrs' => array(
         'placeholder' => __( 'Featured Safari Tours', 'jungle-safari' ),
      ),
		'section'=> 'jungle_safari_featured_section',
		'type'=> 'text'
	));	

	$wp_customize->add_setting('jungle_safari_section_description',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_section_description',array(
		'label'	=> __('Add Section Text','jungle-safari'),
		'section'=> 'jungle_safari_featured_section',
		'type'=> 'text'
	));	
	
	$wp_customize->add_setting('jungle_safari_select_post_number',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field',
	));
	$wp_customize->add_control('jungle_safari_select_post_number',array(
		'label'	=> __('Number of post to show','jungle-safari'),
		'description' => __('Add number and refresh tab','jungle-safari'),
		'section'	=> 'jungle_safari_featured_section',
		'type'     => 'select',
		'choices'  => array(
			'1' => '1',
			'2' => '2',
			'3' => '3',
			'4' => '4',
		),
	));
	$jungle_safari_featured_post = get_theme_mod('jungle_safari_select_post_number');

	$jungle_safari_args = array('numberposts' => -1);
	$jungle_safari_post_list = get_posts($jungle_safari_args);
	$jungle_safari_i = 0;
	$jungle_safari_pst[]='Select';
	foreach($jungle_safari_post_list as $jungle_safari_post){
		$jungle_safari_pst[$jungle_safari_post->ID] = $jungle_safari_post->post_title;
	}

	for ( $jungle_safari_i = 1; $jungle_safari_i <= $jungle_safari_featured_post; $jungle_safari_i++ ) {
		$wp_customize->add_setting('jungle_safari_select_featured_post'.$jungle_safari_i,array(
			'sanitize_callback' => 'jungle_safari_sanitize_choices',
		));
		$wp_customize->add_control('jungle_safari_select_featured_post'.$jungle_safari_i,array(
			'type'    => 'select',
			'choices' => $jungle_safari_pst,
			'label' => __('Select Post','jungle-safari'),
			'section' => 'jungle_safari_featured_section',
		));

		$wp_customize->add_setting('jungle_safari_add_safari_location'.$jungle_safari_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));	
		$wp_customize->add_control('jungle_safari_add_safari_location'.$jungle_safari_i,array(
			'label'	=> esc_html__( 'Add Location', 'jungle-safari' ),
			'section'	=> 'jungle_safari_featured_section',
			'type'		=> 'text',
			'input_attrs' => array(
		      'placeholder' => __( 'Tanzania', 'jungle-safari' ),
		   ),
		));

		$wp_customize->add_setting('jungle_safari_add_safari_price'.$jungle_safari_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));	
		$wp_customize->add_control('jungle_safari_add_safari_price'.$jungle_safari_i,array(
			'label'	=> esc_html__( 'Add Price', 'jungle-safari' ),
			'section'	=> 'jungle_safari_featured_section',
			'type'		=> 'text',
			'input_attrs' => array(
		      'placeholder' => __( '$2,389.99', 'jungle-safari' ),
		   ),
		));

		$wp_customize->add_setting('jungle_safari_add_safari_price_text'.$jungle_safari_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));	
		$wp_customize->add_control('jungle_safari_add_safari_price_text'.$jungle_safari_i,array(
			'label'	=> esc_html__( 'Add Price Text', 'jungle-safari' ),
			'section'	=> 'jungle_safari_featured_section',
			'type'		=> 'text',
			'input_attrs' => array(
		      'placeholder' => __( 'per person', 'jungle-safari' ),
		   ),
		));
	}

	//layout setting
	$wp_customize->add_section( 'jungle_safari_option', array(
    	'title'      => __( 'Layout Settings', 'jungle-safari' ),
    	'panel'    => 'jungle_safari_panel_id',
	) );
	
    // animation 
	$wp_customize->add_setting( 'jungle_safari_sidebar_animation',array(
	    'default' => true,
    	'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
  	) );
	$wp_customize->add_control('jungle_safari_sidebar_animation',array(
	    	'type' => 'checkbox',
	       'label' => __( 'Show / Hide Animations','jungle-safari' ),
	       'section' => 'jungle_safari_option'
	));

	 // Progress Bar
	$wp_customize->add_setting( 'jungle_safari_progress_bar',array(
	    'default' => false,
    	'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
  	) );
	$wp_customize->add_control('jungle_safari_progress_bar',array(
		'type' => 'checkbox',
		'label' => __( 'Show / Hide Progress Bar','jungle-safari' ),
		'section' => 'jungle_safari_option'
	));

	// show/hide breadcrumb
	$wp_customize->add_setting( 'jungle_safari_single_page_breadcrumb',array(
	    'default' => true,
    	'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
  	) );
	$wp_customize->add_control('jungle_safari_single_page_breadcrumb',array(
	    'type' => 'checkbox',
	    'label' => __( 'Show / Hide Page Breadcrumb','jungle-safari' ),
	    'section' => 'jungle_safari_option'
	));

	$wp_customize->add_setting('jungle_safari_layout_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_layout_premium_info',array(
		'type'=> 'hidden',
		'label' => __('Premium Features','jungle-safari'),
		'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
		'section'=> 'jungle_safari_option'
 	));

	$wp_customize->add_setting('jungle_safari_global_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_global_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_global_color'
 	));

	$wp_customize->add_setting('jungle_safari_preloader',array(
       'default' => false,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
    $wp_customize->add_control('jungle_safari_preloader',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Preloader','jungle-safari'),
       'section' => 'jungle_safari_option'
   ));

   $wp_customize->add_setting('jungle_safari_preloader_type',array(
     	'default' => 'First Preloader Type',
     	'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_preloader_type',array(
      'type' => 'radio',
      'label' => __('Preloader Types','jungle-safari'),
      'section' => 'jungle_safari_option',
      'choices' => array(
         'First Preloader Type' => __('First Preloader Type','jungle-safari'),
         'Second Preloader Type' => __('Second Preloader Type','jungle-safari'),
      ),
	) );

	$wp_customize->add_setting('jungle_safari_preloader_bg_color_option', array(
		'default'           => 'var(--first-theme-color)',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_preloader_bg_color_option', array(
		'label'    => __('Preloader Background Color', 'jungle-safari'),
		'section'  => 'jungle_safari_option',
	)));

	$wp_customize->add_setting('jungle_safari_preloader_icon_color_option', array(
		'default'           => '#fff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_preloader_icon_color_option', array(
		'label'    => __('Preloader Icon Color', 'jungle-safari'),
		'section'  => 'jungle_safari_option',
	)));

	$wp_customize->add_setting('jungle_safari_preloader_bg_img',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'jungle_safari_preloader_bg_img',array(
        'label' => __('Preloader Background Image','jungle-safari'),
        'section' => 'jungle_safari_option'
	)));	

	$wp_customize->add_setting('jungle_safari_width_layout_options',array(
		'default' => 'Default',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_width_layout_options',array(
		'type' => 'radio',
		'label' => __('Container Box','jungle-safari'),
		'description' => __('Here you can change the Width layout. ','jungle-safari'),
		'section' => 'jungle_safari_option',
		'choices' => array(
		   'Default' => __('Default','jungle-safari'),
		   'Container Layout' => __('Container Layout','jungle-safari'),
		   'Box Layout' => __('Box Layout','jungle-safari'),
		),
	) );

	// Add page sidebar
	$wp_customize->add_setting('jungle_safari_page_sidebar',array(
        'default' => 'One Column',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	) );
	$wp_customize->add_control('jungle_safari_page_sidebar', array(
        'type' => 'select',
        'label' => __('Page Sidebar Layout','jungle-safari'),
        'section' => 'jungle_safari_option',
        'choices' => array(
            'One Column' => __('One Column','jungle-safari'),
            'Left Sidebar' => __('Left Sidebar','jungle-safari'),
            'Right Sidebar' => __('Right Sidebar','jungle-safari')
        ),
	)   );

	// Add Settings and Controls for Layout
	$wp_customize->add_setting('jungle_safari_layout_options',array(
        'default' => 'Right Sidebar',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	) );
	$wp_customize->add_control('jungle_safari_layout_options', array(
        'type' => 'select',
        'label' => __('Post Sidebar Layout','jungle-safari'),
        'section' => 'jungle_safari_option',
        'choices' => array(
            'One Column' => __('One Column','jungle-safari'),
            'Three Columns' => __('Three Columns','jungle-safari'),
            'Four Columns' => __('Four Columns','jungle-safari'),
            'Grid Layout' => __('Grid Layout','jungle-safari'),
            'Left Sidebar' => __('Left Sidebar','jungle-safari'),
            'Right Sidebar' => __('Right Sidebar','jungle-safari')
        ),
	)   );

	$wp_customize->add_setting('jungle_safari_sidebar_size',array(
        'default' => 'Sidebar 1/3',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_sidebar_size',array(
        'type' => 'radio',
        'label' => __('Sidebar Size Option','jungle-safari'),
        'section' => 'jungle_safari_option',
        'choices' => array(
            'Sidebar 1/3' => __('Sidebar 1/3','jungle-safari'),
            'Sidebar 1/4' => __('Sidebar 1/4','jungle-safari'),
        ),
	) );	

	//Global Color
	$wp_customize->add_section('jungle_safari_global_color', array(
		'title'    => __('Theme Color Option', 'jungle-safari'),
		'panel'    => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_global_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_global_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_global_color'
 	));

	$wp_customize->add_setting('jungle_safari_first_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_first_color', array(
		'label'    => __('Highlight Color', 'jungle-safari'),
		'section'  => 'jungle_safari_global_color',
		'settings' => 'jungle_safari_first_color',
	)));

	//Blog Post Settings
	$wp_customize->add_section('jungle_safari_post_settings', array(
		'title'    => __('Post General Settings', 'jungle-safari'),
		'panel'    => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_post_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_post_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_post_settings'
 	));

	$wp_customize->add_setting('jungle_safari_post_layouts',array(
		'default' => 'Layout 2',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_post_layouts', array(
		'type' => 'select',
		'label' => __('Post Layouts','jungle-safari'),
		'description' => __('Here you can change the 3 different layouts of post','jungle-safari'),
		'section' => 'jungle_safari_post_settings',
		'choices' => array(
		   'Layout 1' => __('Layouts 1','jungle-safari'),
		   'Layout 2' => __('Layouts 2','jungle-safari'),
		   'Layout 3' => __('Layouts 3','jungle-safari'),
	)));

   $wp_customize->add_setting('jungle_safari_post_block_option',array(
        'default' => 'By Block',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_post_block_option',array(
        'type' => 'select',
        'label' => __('Blog Post Shown','jungle-safari'),
        'section' => 'jungle_safari_post_settings',
        'choices' => array(
            'By Block' => __('By Block','jungle-safari'),
            'By Without Block' => __('By Without Block','jungle-safari'),
        ),
	) );

	$wp_customize->add_setting('jungle_safari_metafields_date',array(
		'default' => true,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_metafields_date',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Date','jungle-safari'),
		'section' => 'jungle_safari_post_settings'
	));

	$wp_customize->add_setting('jungle_safari_post_date_icon',array(
		'default'	=> 'far fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_post_date_icon',array(
		'label'	=> __('Post Date Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_post_settings',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('jungle_safari_metafields_author',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_metafields_author',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Author','jungle-safari'),
       'section' => 'jungle_safari_post_settings'
    ));

    $wp_customize->add_setting('jungle_safari_post_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_post_author_icon',array(
		'label'	=> __('Post Author Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_post_settings',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('jungle_safari_metafields_comment',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_metafields_comment',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Comments','jungle-safari'),
       'section' => 'jungle_safari_post_settings'
    ));

    $wp_customize->add_setting('jungle_safari_post_comment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_post_comment_icon',array(
		'label'	=> __('Post Comment Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_post_settings',
		'type'		=> 'icon'
	)));

    $wp_customize->add_setting('jungle_safari_metafields_time',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_metafields_time',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Time','jungle-safari'),
       'section' => 'jungle_safari_post_settings'
    ));

    $wp_customize->add_setting('jungle_safari_post_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_post_time_icon',array(
		'label'	=> __('Post Time Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_post_settings',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_post_featured_image',array(
       'default' => 'Image',
       'sanitize_callback'	=> 'jungle_safari_sanitize_choices'
    ));
    $wp_customize->add_control('jungle_safari_post_featured_image',array(
       'type' => 'select',
       'label'	=> __('Post Image Options','jungle-safari'),
       'choices' => array(
            'Image' => __('Image','jungle-safari'),
            'Color' => __('Color','jungle-safari'),
            'None' => __('None','jungle-safari'),
        ),
      	'section'	=> 'jungle_safari_post_settings',
    ));

    $wp_customize->add_setting('jungle_safari_post_featured_color', array(
		'default'           => 'var(--first-theme-color)',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_post_featured_color', array(
		'label'    => __('Post Color', 'jungle-safari'),
		'section'  => 'jungle_safari_post_settings',
		'settings' => 'jungle_safari_post_featured_color',
		'active_callback' => 'jungle_safari_post_color_enabled'
	)));

	$wp_customize->add_setting( 'jungle_safari_custom_post_color_width',array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_custom_post_color_width',	array(
		'label' => esc_html__( 'Color Post Custom Width','jungle-safari' ),
		'section' => 'jungle_safari_post_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 500,
			'step' => 1,
		),
		'active_callback' => 'jungle_safari_show_post_color'
	)));

	$wp_customize->add_setting( 'jungle_safari_custom_post_color_height',array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_custom_post_color_height',array(
		'label' => esc_html__( 'Color Post Custom Height','jungle-safari' ),
		'section' => 'jungle_safari_post_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 350,
			'step' => 1,
		),
		'active_callback' => 'jungle_safari_show_post_color'
	)));

	$wp_customize->add_setting('jungle_safari_post_featured_image_dimention',array(
       'default' => 'Default',
       'sanitize_callback'	=> 'jungle_safari_sanitize_choices'
    ));
    $wp_customize->add_control('jungle_safari_post_featured_image_dimention',array(
       'type' => 'select',
       'label'	=> __('Post Featured Image Dimention','jungle-safari'),
       'choices' => array(
            'Default' => __('Default','jungle-safari'),
            'Custom' => __('Custom','jungle-safari'),
        ),
      	'section'	=> 'jungle_safari_post_settings',
      	'active_callback' => 'jungle_safari_enable_post_featured_image'
    ));

    $wp_customize->add_setting( 'jungle_safari_post_featured_image_custom_width',array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_post_featured_image_custom_width',	array(
		'label' => esc_html__( 'Post Featured Image Custom Width','jungle-safari' ),
		'section' => 'jungle_safari_post_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 500,
			'step' => 1,
		),
		'active_callback' => 'jungle_safari_enable_post_image_custom_dimention'
	)));

	$wp_customize->add_setting( 'jungle_safari_post_featured_image_custom_height',array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_post_featured_image_custom_height',	array(
		'label' => esc_html__( 'Post Featured Image Custom Height','jungle-safari' ),
		'section' => 'jungle_safari_post_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 350,
			'step' => 1,
		),
		'active_callback' => 'jungle_safari_enable_post_image_custom_dimention'
	)));

	$wp_customize->add_setting( 'jungle_safari_image_border_radius', array(
		'default'=> 0,
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize,  'jungle_safari_image_border_radius', array(
		'label'       => esc_html__( 'Featured Image Border Radius','jungle-safari' ),
		'section'     => 'jungle_safari_post_settings',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
	)) );

	$wp_customize->add_setting( 'jungle_safari_image_box_shadow',array(
		'default' => 0,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'absint',
		'sanitize_js_callback' => 'absint',
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize,  'jungle_safari_image_box_shadow',array(
		'label' => esc_html__( 'Featured Image Shadow','jungle-safari' ),
		'section' => 'jungle_safari_post_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'range'
	)));

	$wp_customize->add_setting('jungle_safari_show_first_caps',array(
      'default' => false,
      'sanitize_callback' => 'jungle_safari_sanitize_checkbox',
    ));
	$wp_customize->add_control( 'jungle_safari_show_first_caps',array(
		'label' => esc_html__('First Cap (First Capital Letter)', 'jungle-safari'),
		'type' => 'checkbox',
		'section' => 'jungle_safari_post_settings',
	));

    //Post excerpt
	$wp_customize->add_setting( 'jungle_safari_post_excerpt_number', array(
		'default'              => 30,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'absint',
		'sanitize_js_callback' => 'absint',
	) );
	$wp_customize->add_control( 'jungle_safari_post_excerpt_number', array(
		'label'       => esc_html__( 'Blog Post Content Limit','jungle-safari' ),
		'section'     => 'jungle_safari_post_settings',
		'type'        => 'number',
		'settings'    => 'jungle_safari_post_excerpt_number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('jungle_safari_content_settings',array(
        'default' =>'Excerpt',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_content_settings',array(
        'type' => 'radio',
        'label' => __('Content Settings','jungle-safari'),
        'section' => 'jungle_safari_post_settings',
        'choices' => array(
            'Excerpt' => __('Excerpt','jungle-safari'),
            'Content' => __('Content','jungle-safari'),
        ),
	) );

	$wp_customize->add_setting( 'jungle_safari_post_discription_suffix', array(
		'default'   => __('[...]','jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'jungle_safari_post_discription_suffix', array(
		'label'       => esc_html__( 'Post Excerpt Suffix','jungle-safari' ),
		'section'     => 'jungle_safari_post_settings',
		'type'        => 'text',
		'settings'    => 'jungle_safari_post_discription_suffix',
	) );

	$wp_customize->add_setting( 'jungle_safari_blog_post_meta_seperator', array(
		'default'   => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'jungle_safari_blog_post_meta_seperator', array(
		'label'       => esc_html__( 'Meta Box Separator','jungle-safari' ),
		'section'     => 'jungle_safari_post_settings',
		'description' => __('Here you can add the seperator for meta box. e.g. "|",  ",", "/", etc. ','jungle-safari'),
		'type'        => 'text',
		'settings'    => 'jungle_safari_blog_post_meta_seperator',
	) );

	$wp_customize->add_setting('jungle_safari_enable_post_pagination',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
   $wp_customize->add_control('jungle_safari_enable_post_pagination',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Blog Page Pagination','jungle-safari'),
       'section' => 'jungle_safari_post_settings'
   ));

   $wp_customize->add_setting( 'jungle_safari_post_pagination_position', array(
        'default'			=>  'Bottom',
        'sanitize_callback'	=> 'jungle_safari_sanitize_choices'
   ));
   $wp_customize->add_control( 'jungle_safari_post_pagination_position', array(
        'section' => 'jungle_safari_post_settings',
        'type' => 'select',
        'label' => __( 'Post Pagination Position', 'jungle-safari' ),
        'choices'		=> array(
            'Top'  => __( 'Top', 'jungle-safari' ),
            'Bottom' => __( 'Bottom', 'jungle-safari' ),
            'Both Top & Bottom' => __( 'Both Top & Bottom', 'jungle-safari' ),
   )));

    $wp_customize->add_setting('jungle_safari_post_pagination_option',array(
		'default' => 'Left',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_post_pagination_option',array(
		'type' => 'select',
		'label' => __('Post Pagination Alignment','jungle-safari'),
		'section' => 'jungle_safari_post_settings',
		'choices' => array(
			'Center' => __('Center','jungle-safari'),
			'Left' => __('Left','jungle-safari'),
			'Right' => __('Right','jungle-safari'),
		),
	) );

	$wp_customize->add_setting( 'jungle_safari_pagination_settings', array(
        'default'			=> 'Numeric Pagination',
        'sanitize_callback'	=> 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control( 'jungle_safari_pagination_settings', array(
			'section' => 'jungle_safari_post_settings',
			'type' => 'radio',
			'label' => __( 'Post Pagination', 'jungle-safari' ),
			'choices'		=> array(
				'Numeric Pagination'  => __( 'Numeric Pagination', 'jungle-safari' ),
				'next-prev' => __( 'Next / Previous', 'jungle-safari' ),
	)));

	//Button Settings
	$wp_customize->add_section('jungle_safari_button_settings', array(
		'title'    => __('Post Button Settings', 'jungle-safari'),
		'panel'    => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_post_btn_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_post_btn_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_button_settings'
 	));

	$wp_customize->add_setting('jungle_safari_button_text',array(
		'default'=> __('Read More','jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_button_text',array(
		'label'	=> __('Add Button Text','jungle-safari'),
		'section'=> 'jungle_safari_button_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('jungle_safari_btn_font_size_option',array(
		'default'=> 14,
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize,'jungle_safari_btn_font_size_option',array(
		'label'	=> __('Button Font Size','jungle-safari'),
		'section'=> 'jungle_safari_button_settings',
		'input_attrs' => array(
         'step' => 1,
			'min'  => 0,
			'max'  => 50,
     	),
	)));

	$wp_customize->add_setting('jungle_safari_button_text_tranform',array(
		'default' => 'Capitalize',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_button_text_tranform',array(
		'type' => 'select',
		'label' => __('Button Text Transform','jungle-safari'),
		'section' => 'jungle_safari_button_settings',
		'choices' => array(
		   'Uppercase' => __('Uppercase','jungle-safari'),
		   'Lowercase' => __('Lowercase','jungle-safari'),
		   'Capitalize' => __('Capitalize','jungle-safari'),
		),
	) );

	$wp_customize->add_setting('jungle_safari_button_font_weight',array(
		'default' => '700',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_button_font_weight',array(
		'type' => 'select',
		'label' => __('Button Font Weight','jungle-safari'),
		'section' => 'jungle_safari_button_settings',
		'choices' => array(
			'100' => __('100','jungle-safari'),
			'200' => __('200','jungle-safari'),
			'300' => __('300','jungle-safari'),
			'400' => __('400','jungle-safari'),
			'500' => __('500','jungle-safari'),
			'600' => __('600','jungle-safari'),
			'700' => __('700','jungle-safari'),
			'800' => __('800','jungle-safari'),
			'900' => __('900','jungle-safari'),
		),
	) );

	$wp_customize->add_setting( 'jungle_safari_post_button_padding_top',array(
		'default' => '',
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_post_button_padding_top',	array(
		'label' => esc_html__( 'Button Top Bottom Padding (px)','jungle-safari' ),
		'section' => 'jungle_safari_button_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting( 'jungle_safari_post_button_padding_right',array(
		'default' => '',
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_post_button_padding_right',	array(
		'label' => esc_html__( 'Button Right Left Padding (px)','jungle-safari' ),
		'section' => 'jungle_safari_button_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	// button letter spacing
	$wp_customize->add_setting( 'jungle_safari_button_letter_spacing',array(
		'default' => '',
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new  Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_button_letter_spacing', array(
		'label'  =>  esc_html__('Button Letter Spacing (px)','jungle-safari'),
		'section'  => 'jungle_safari_button_settings',
		'input_attrs' => array(
		   'min' => 0,
		   'max' => 50,
		   'step' => 1,
		)
 	)));		

	// Button Shape
	$wp_customize->add_setting('jungle_safari_btn_shape',array(
		'default'=> 'Square',
		'sanitize_callback'	=> 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control('jungle_safari_btn_shape',array(
		'label'	=> __('Button Shape','jungle-safari'),
		'section'=> 'jungle_safari_button_settings',
		'type' => 'select',
		'choices' => array(
			'Square' => __('Square','jungle-safari'),
			'Round' => __('Round','jungle-safari'),
			'Pill' => __('Pill','jungle-safari'),
		),
	));	

   //Single Post Settings
	$wp_customize->add_section('jungle_safari_single_post_settings', array(
		'title'    => __('Single Post Settings', 'jungle-safari'),
		'panel'    => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_single_post_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_single_post_premium_info',array(
		'type'=> 'hidden',
		'label' => __('Premium Features','jungle-safari'),
		'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
		'section'=> 'jungle_safari_single_post_settings'
 	));

	$wp_customize->add_setting('jungle_safari_single_post_date',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
   $wp_customize->add_control('jungle_safari_single_post_date',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Date','jungle-safari'),
       'section' => 'jungle_safari_single_post_settings'
   ));

   $wp_customize->add_setting('jungle_safari_single_post_date_icon',array(
		'default'	=> 'far fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_single_post_date_icon',array(
		'label'	=> __('Single Post Date Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_single_post_settings',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_single_post_author',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
   $wp_customize->add_control('jungle_safari_single_post_author',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Author','jungle-safari'),
       'section' => 'jungle_safari_single_post_settings'
   ));

   $wp_customize->add_setting('jungle_safari_single_post_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
      $wp_customize,'jungle_safari_single_post_author_icon',array(
		'label'	=> __('Single Post Author Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_single_post_settings',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_single_post_comment',array(
		'default' => true,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_single_post_comment',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Comments','jungle-safari'),
		'section' => 'jungle_safari_single_post_settings'
	));

 	$wp_customize->add_setting('jungle_safari_single_post_comment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer( $wp_customize, 'jungle_safari_single_post_comment_icon', array(
		'label'	=> __('Single Post Comment Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_single_post_settings',
		'type'		=> 'icon'
	)));

   $wp_customize->add_setting('jungle_safari_single_post_time',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
   $wp_customize->add_control('jungle_safari_single_post_time',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Time','jungle-safari'),
       'section' => 'jungle_safari_single_post_settings',
   ));

   $wp_customize->add_setting('jungle_safari_single_post_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_single_post_time_icon',array(
		'label'	=> __('Single Post Time Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_single_post_settings',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_post_comment_enable',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
   $wp_customize->add_control('jungle_safari_post_comment_enable',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable post comment','jungle-safari'),
       'section' => 'jungle_safari_single_post_settings',
   ));

	$wp_customize->add_setting('jungle_safari_single_post_featured_image',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
   $wp_customize->add_control('jungle_safari_single_post_featured_image',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Featured image','jungle-safari'),
       'section' => 'jungle_safari_single_post_settings',
   ));

   // Featured Image Hover Effect
	$wp_customize->add_setting(
		'jungle_safari_featured_image_hover',
		array(
			'default'           => 'none',
			'sanitize_callback' => 'sanitize_text_field',
		)
	);
	$wp_customize->add_control(
		'jungle_safari_featured_image_hover',
		array(
			'label'   => __( 'Featured Image Hover Effect', 'jungle-safari' ),
			'section' => 'jungle_safari_single_post_settings',
			'type'    => 'select',
			'choices' => array(
				'none'      => __( 'None', 'jungle-safari' ),
				'zoom-in'   => __( 'Zoom In', 'jungle-safari' ),
				'zoom-out'  => __( 'Zoom Out', 'jungle-safari' ),
				'grayscale' => __( 'Grayscale', 'jungle-safari' ),
				'blur'      => __( 'Blur', 'jungle-safari' ),
				'bright'    => __( 'Bright', 'jungle-safari' ),
				'sepia'     => __( 'Sepia', 'jungle-safari' ),
				'translate' => __( 'Translate', 'jungle-safari' ),
			),
		)
	);

    $wp_customize->add_setting('jungle_safari_single_post_featured_image_dimention',array(
		'default' => 'Default',
		'sanitize_callback'	=> 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_single_post_featured_image_dimention',array(
		'type' => 'select',
		'label'	=> __('Single Post Featured Image Dimention','jungle-safari'),
		'choices' => array(
			'Default' => __('Default','jungle-safari'),
			'Custom' => __('Custom','jungle-safari'),
		),
		'section'	=> 'jungle_safari_single_post_settings',
	));

	$wp_customize->add_setting( 'jungle_safari_single_post_featured_image_custom_width',array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_single_post_featured_image_custom_width',	array(
		'label' => esc_html__( 'Single Post Featured Image Custom Width','jungle-safari' ),
		'section' => 'jungle_safari_single_post_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 800,
			'step' => 1,
		),
		'active_callback' => 'jungle_safari_enable_single_post_image_custom_dimention'
	)));

	$wp_customize->add_setting( 'jungle_safari_single_post_featured_image_custom_height',array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_single_post_featured_image_custom_height',	array(
		'label' => esc_html__( 'Single Post Featured Image Custom Height','jungle-safari' ),
		'section' => 'jungle_safari_single_post_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 800,
			'step' => 1,
		),
		'active_callback' => 'jungle_safari_enable_single_post_image_custom_dimention'
	)));

	$wp_customize->add_setting('jungle_safari_show_hide_single_post_categories',array(
			'default' => true,
			'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
   $wp_customize->add_control('jungle_safari_show_hide_single_post_categories',array(
			'type' => 'checkbox',
			'label' => __('Single Post Categories','jungle-safari'),
			'section' => 'jungle_safari_single_post_settings'
   ));

	$wp_customize->add_setting('jungle_safari_single_post_tags',array(
      'default' => true,
      'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
   $wp_customize->add_control('jungle_safari_single_post_tags',array(
      'type' => 'checkbox',
      'label' => __('Enable / Disable Tags','jungle-safari'),
      'section' => 'jungle_safari_single_post_settings'
   ));

	$wp_customize->add_setting('jungle_safari_single_post_layout',array(
        'default' => 'Right Sidebar',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	) );
	$wp_customize->add_control('jungle_safari_single_post_layout', array(
        'type' => 'select',
        'label' => __('Select different Single post sidebar layout','jungle-safari'),
        'section' => 'jungle_safari_single_post_settings',
        'choices' => array(
            'One Column' => __('One Column','jungle-safari'),
            'Left Sidebar' => __('Left Sidebar','jungle-safari'),
            'Right Sidebar' => __('Right Sidebar','jungle-safari')
        ),
	)   );

	$wp_customize->add_setting( 'jungle_safari_single_post_meta_seperator', array(
		'default'   => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'jungle_safari_single_post_meta_seperator', array(
		'label'       => esc_html__( 'Single Post Meta Box Seperator','jungle-safari' ),
		'section'     => 'jungle_safari_single_post_settings',
		'description' => __('Here you can add the seperator for meta box. e.g. "|",  ",", "/", etc. ','jungle-safari'),
		'type'        => 'text',
		'settings'    => 'jungle_safari_single_post_meta_seperator',
	) );

	$wp_customize->add_setting( 'jungle_safari_comment_form_width',array(
		'default' => 100,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_comment_form_width',	array(
		'label' => esc_html__( 'Comment Form Width','jungle-safari' ),
		'section' => 'jungle_safari_single_post_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 100,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting('jungle_safari_title_comment_form',array(
       'default' => __('Leave a Reply','jungle-safari'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('jungle_safari_title_comment_form',array(
       'type' => 'text',
       'label' => __('Comment Form Heading Text','jungle-safari'),
       'section' => 'jungle_safari_single_post_settings'
    ));

    $wp_customize->add_setting('jungle_safari_comment_form_button_content',array(
       'default' => __('Post Comment','jungle-safari'),
       'sanitize_callback'	=> 'sanitize_text_field'
    ));
    $wp_customize->add_control('jungle_safari_comment_form_button_content',array(
       'type' => 'text',
       'label' => __('Comment Form Button Text','jungle-safari'),
       'section' => 'jungle_safari_single_post_settings'
    ));

	$wp_customize->add_setting('jungle_safari_enable_single_post_pagination',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
   $wp_customize->add_control('jungle_safari_enable_single_post_pagination',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Single Post Pagination','jungle-safari'),
       'section' => 'jungle_safari_single_post_settings'
   ));

   $wp_customize->add_setting('jungle_safari_prev_text',array(
       'default' => 'Previous page',
       'sanitize_callback'	=> 'sanitize_text_field'
   ));
   $wp_customize->add_control('jungle_safari_prev_text',array(
       'type' => 'text',
       'label' => __('Previous Navigation Text','jungle-safari'),
       'section' => 'jungle_safari_single_post_settings'
   ));

   $wp_customize->add_setting('jungle_safari_next_text',array(
       'default' => 'Next page',
       'sanitize_callback'	=> 'sanitize_text_field'
   ));
   $wp_customize->add_control('jungle_safari_next_text',array(
       'type' => 'text',
       'label' => __('Next Navigation Text','jungle-safari'),
       'section' => 'jungle_safari_single_post_settings'
   ));

	//Grid Post Settings
	$wp_customize->add_section('jungle_safari_grid_settings', array(
		'title'    => __('Grid Post Settings', 'jungle-safari'),
		'panel'    => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_grid_post_date',array(
	'default' => true,
	'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_grid_post_date',array(
	'type' => 'checkbox',
	'label' => __('Enable / Disable Date','jungle-safari'),
	'section' => 'jungle_safari_grid_settings',
	));

	$wp_customize->add_setting('jungle_safari_grid_post_date_icon',array(
		'default'	=> 'far fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
		$wp_customize,'jungle_safari_grid_post_date_icon',array(
		'label'	=> __('Post Date Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_grid_settings',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_grid_post_author',array(
	'default' => true,
	'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_grid_post_author',array(
	'type' => 'checkbox',
	'label' => __('Enable / Disable Author','jungle-safari'),
	'section' => 'jungle_safari_grid_settings',
	));

	$wp_customize->add_setting('jungle_safari_grid_post_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
		$wp_customize,'jungle_safari_grid_post_author_icon',array(
		'label'	=> __('Post Author Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_grid_settings',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_grid_post_comment',array(
	'default' => true,
	'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_grid_post_comment',array(
	'type' => 'checkbox',
	'label' => __('Enable / Disable Comment','jungle-safari'),
	'section' => 'jungle_safari_grid_settings',
	));

	$wp_customize->add_setting('jungle_safari_grid_post_comment_icon',array(
		'default'	=> 'fas fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
		$wp_customize,'jungle_safari_grid_post_comment_icon',array(
		'label'	=> __('Post Comment Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_grid_settings',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_grid_post_time',array(
	'default' => true,
	'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_grid_post_time',array(
	'type' => 'checkbox',
	'label' => __('Enable / Disable Time','jungle-safari'),
	'section' => 'jungle_safari_grid_settings',
	));

	$wp_customize->add_setting('jungle_safari_grid_post_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
		$wp_customize,'jungle_safari_grid_post_time_icon',array(
		'label'	=> __('Post Time Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_grid_settings',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting( 'jungle_safari_grid_post_meta_seperator', array(
		'default'   => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control( 'jungle_safari_grid_post_meta_seperator', array(
		'label'       => esc_html__( 'Meta Box','jungle-safari' ),
		'section'     => 'jungle_safari_grid_settings',
		'description' => __('Here you can add the seperator for meta box. e.g. "|",  ",", "/", etc. ','jungle-safari'),
		'type'        => 'text',
		'settings'    => 'jungle_safari_grid_post_meta_seperator',
	));

	$wp_customize->add_setting( 'jungle_safari_grid_image_border_radius', array(
		'default'=> 0,
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize,  'jungle_safari_grid_image_border_radius', array(
		'label'       => esc_html__( 'Image Border Radius','jungle-safari' ),
		'section'     => 'jungle_safari_grid_settings',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 50,
		),
	)) );

	$wp_customize->add_setting( 'jungle_safari_grid_image_box_shadow',array(
		'default' => 0,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'absint',
		'sanitize_js_callback' => 'absint',
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize,  'jungle_safari_grid_image_box_shadow',array(
		'label' => esc_html__( 'Image Shadow','jungle-safari' ),
		'section' => 'jungle_safari_grid_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
		'type'		=> 'range'
	)));

	$wp_customize->add_setting('jungle_safari_grid_post_content',array(
    	'default'   => 'Post Excerpt',
     	'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_grid_post_content',array(
		'type' => 'radio',
		'label' => __('Grid Post Content Settings','jungle-safari'),
		'section' => 'jungle_safari_grid_settings',
		'choices' => array(
		   'None' => __('None','jungle-safari'),
		   'Post Excerpt' => __('Post Excerpt','jungle-safari'),
		   'Post Content' => __('Post Content','jungle-safari'),
		),
	) );

	$wp_customize->add_setting( 'jungle_safari_grid_post_excerpt_number', array(
		'default'              => 30,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'absint',
		'sanitize_js_callback' => 'absint',
	));
	$wp_customize->add_control( 'jungle_safari_grid_post_excerpt_number', array(
		'label'       => esc_html__( 'Grid Post Content Limit','jungle-safari' ),
		'section'     => 'jungle_safari_grid_settings',
		'type'        => 'number',
		'settings'    => 'jungle_safari_grid_post_excerpt_number',
		'input_attrs' => array(
			'step'             => 2,
			'min'              => 0,
			'max'              => 50,
		),
	));

	$wp_customize->add_setting( 'jungle_safari_grid_excerpt_suffix', array(
		'default'   => __('[...]','jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'jungle_safari_grid_excerpt_suffix', array(
		'label'       => esc_html__( 'Grid Post Excerpt Suffix','jungle-safari' ),
		'section'     => 'jungle_safari_grid_settings',
		'type'        => 'text',
		'settings'    => 'jungle_safari_grid_excerpt_suffix',
	) );

	  $wp_customize->add_setting('jungle_safari_grid_post_block_option',array(
        'default' => 'By Block',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_grid_post_block_option',array(
        'type' => 'select',
        'label' => __('Blog Post Shown','jungle-safari'),
        'section' => 'jungle_safari_grid_settings',
        'choices' => array(
            'By Block' => __('By Block','jungle-safari'),
            'By Without Block' => __('By Without Block','jungle-safari'),
        ),
	) );

	$wp_customize->add_setting('jungle_safari_grid_columns',array(
		'default'           => '3',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
		'transport'         => 'refresh',
	));
	$wp_customize->add_control('jungle_safari_grid_columns',array(
		'type'        => 'radio',
		'label'       => __('Grid Post Columns', 'jungle-safari'),
		'section'     => 'jungle_safari_grid_settings',
		'choices' => array(
		   '3'     => __('Three', 'jungle-safari'),
		   '4'     => __('Four', 'jungle-safari')
		),
	));

	//Related Post Settings
	$wp_customize->add_section('jungle_safari_related_settings', array(
		'title'    => __('Related Post Settings', 'jungle-safari'),
		'panel'    => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_related_post_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_related_post_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_related_settings'
 	));

	$wp_customize->add_setting( 'jungle_safari_related_enable_disable',array(
		'default' => true,
      	'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ) );
    $wp_customize->add_control('jungle_safari_related_enable_disable',array(
    	'type' => 'checkbox',
        'label' => __( 'Enable / Disable Related Post','jungle-safari' ),
        'section' => 'jungle_safari_related_settings'
    ));

	$wp_customize->add_setting('jungle_safari_related_metafields_date',array(
		'default' => true,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_related_metafields_date',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Date','jungle-safari'),
		'section' => 'jungle_safari_related_settings'
	));

    $wp_customize->add_setting('jungle_safari_related_metafields_author',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_related_metafields_author',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Author','jungle-safari'),
       'section' => 'jungle_safari_related_settings'
    ));

    $wp_customize->add_setting('jungle_safari_related_metafields_comment',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_related_metafields_comment',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Comments','jungle-safari'),
       'section' => 'jungle_safari_related_settings'
    ));

    $wp_customize->add_setting('jungle_safari_related_metafields_time',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_related_metafields_time',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Time','jungle-safari'),
       'section' => 'jungle_safari_related_settings'
    ));

	$wp_customize->add_setting( 'jungle_safari_related_post_meta_seperator', array(
		'default'   => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'jungle_safari_related_post_meta_seperator', array(
		'label'       => esc_html__( 'Meta Box Separator','jungle-safari' ),
		'section'     => 'jungle_safari_related_settings',
		'description' => __('Here you can add the seperator for meta box. e.g. "|",  ",", "/", etc. ','jungle-safari'),
		'type'        => 'text',
		'settings'    => 'jungle_safari_related_post_meta_seperator',
	) );

    $wp_customize->add_setting('jungle_safari_related_title',array(
		'default'	=> 'Related Posts',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_related_title',array(
		'label'	=> __('Add Section Title','jungle-safari'),
		'section'	=> 'jungle_safari_related_settings',
		'type'		=> 'text'
	));

	$wp_customize->add_setting( 'jungle_safari_related_posts_count_number', array(
		'default'              => 3,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'jungle_safari_related_posts_count_number', array(
		'label'       => esc_html__( 'Related Post Count','jungle-safari' ),
		'section'     => 'jungle_safari_related_settings',
		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 0,
			'max'              => 10,
		),
	) );

	$wp_customize->add_setting('jungle_safari_related_posts_taxanomies',array(
        'default' => 'categories',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_related_posts_taxanomies',array(
        'type' => 'radio',
        'label' => __('Post Taxonomies','jungle-safari'),
        'section' => 'jungle_safari_related_settings',
        'choices' => array(
            'categories' => __('Categories','jungle-safari'),
            'tags' => __('Tags','jungle-safari'),
        ),
	) );

	$wp_customize->add_setting( 'jungle_safari_related_post_excerpt_number',array(
		'default' => 15,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));

	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_related_post_excerpt_number',	array(
		'label' => esc_html__( 'Content Limit','jungle-safari' ),
		'section' => 'jungle_safari_related_settings',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting( 'jungle_safari_related_post_discription_suffix', array(
		'default'   => __('[...]','jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	) );
	$wp_customize->add_control( 'jungle_safari_related_post_discription_suffix', array(
		'label'       => esc_html__( 'Post Excerpt Suffix','jungle-safari' ),
		'section'     => 'jungle_safari_related_settings',
		'type'        => 'text',
		'settings'    => 'jungle_safari_related_post_discription_suffix',
	) );

	$wp_customize->add_setting('jungle_safari_related_post_featured_image',array(
		'default' => true,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_related_post_featured_image',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Featured image','jungle-safari'),
		'section' => 'jungle_safari_related_settings',
	)); 

	//Responsive Media Settings
	$wp_customize->add_section('jungle_safari_responsive_media',array(
		'title'	=> __('Responsive Media','jungle-safari'),
		'panel' => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_responsive_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_responsive_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_responsive_media'
 	));

	$wp_customize->add_setting('jungle_safari_responsive_menu_open_icon',array(
		'default'	=> 'fas fa-bars',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_responsive_menu_open_icon',array(
		'label'	=> __('Responsive Open Menu Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_responsive_media',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_responsive_menu_close_icon',array(
		'default'	=> 'fas fa-times',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_responsive_menu_close_icon',array(
		'label'	=> __('Responsive Close Menu Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_responsive_media',
		'type'		=> 'icon'
	)));

	// site toggle button color
	$wp_customize->add_setting('jungle_safari_toggle_button_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_toggle_button_color', array(
		'label'    => __('Toggle Button Color', 'jungle-safari'),
		'section'  => 'jungle_safari_responsive_media',
		'settings' => 'jungle_safari_toggle_button_color',
	)));

	$wp_customize->add_setting('jungle_safari_display_post_date',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_display_post_date',array(
       'type' => 'checkbox',
       'label' => __('Display Post Date','jungle-safari'),
       'section' => 'jungle_safari_responsive_media'
    ));

    $wp_customize->add_setting('jungle_safari_display_post_author',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_display_post_author',array(
       'type' => 'checkbox',
       'label' => __('Display Post Author','jungle-safari'),
       'section' => 'jungle_safari_responsive_media'
    ));

    $wp_customize->add_setting('jungle_safari_display_post_comment',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_display_post_comment',array(
       'type' => 'checkbox',
       'label' => __('Display Post Comment','jungle-safari'),
       'section' => 'jungle_safari_responsive_media'
    ));

	$wp_customize->add_setting('jungle_safari_display_post_time',array(
		'default' => true,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	 ));
	 $wp_customize->add_control('jungle_safari_display_post_time',array(
		'type' => 'checkbox',
		'label' => __('Display Post Time','jungle-safari'),
		'section' => 'jungle_safari_responsive_media'
	 ));

	$wp_customize->add_setting('jungle_safari_display_sidebar',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_display_sidebar',array(
       'type' => 'checkbox',
       'label' => __('Display Sidebar','jungle-safari'),
       'section' => 'jungle_safari_responsive_media'
    ));

    $wp_customize->add_setting('jungle_safari_display_preloader',array(
       'default' => false,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_display_preloader',array(
       'type' => 'checkbox',
       'label' => __('Display Preloader','jungle-safari'),
       'section' => 'jungle_safari_responsive_media'
    ));

	$wp_customize->add_setting('jungle_safari_display_scroll',array(
		'default' => true,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_display_scroll',array(
     	'type' => 'checkbox',
      	'label' => __('Display Scroll To Top','jungle-safari'),
      	'section' => 'jungle_safari_responsive_media',
	));

    //404 Page Setting
	$wp_customize->add_section('jungle_safari_page_not_found',array(
		'title'	=> __('404 Page Not Found / No Result','jungle-safari'),
		'panel' => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_page_not_found_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_page_not_found_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_page_not_found'
 	));

	$wp_customize->add_setting('jungle_safari_page_not_found_heading',array(
		'default'=> __('404 Not Found','jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_page_not_found_heading',array(
		'label'	=> __('404 Heading','jungle-safari'),
		'section'=> 'jungle_safari_page_not_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('jungle_safari_page_not_found_text',array(
		'default'=> __('Looks like you have taken a wrong turn. Dont worry it happens to the best of us.','jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_page_not_found_text',array(
		'label'	=> __('404 Content','jungle-safari'),
		'section'=> 'jungle_safari_page_not_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('jungle_safari_page_not_found_button',array(
		'default'=>  __('Back to Home Page','jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_page_not_found_button',array(
		'label'	=> __('404 Button','jungle-safari'),
		'section'=> 'jungle_safari_page_not_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('jungle_safari_no_search_result_heading',array(
		'default'=> __('Nothing Found','jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));

	$wp_customize->add_control('jungle_safari_no_search_result_heading',array(
		'label'	=> __('No Search Results Heading','jungle-safari'),
		'description'=>__('The search page heading display when no results are found.','jungle-safari'),
		'section'=> 'jungle_safari_page_not_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('jungle_safari_no_search_result_text',array(
		'default'=> __('Sorry, but nothing matched your search terms. Please try again with some different keywords.','jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_no_search_result_text',array(
		'label'	=> __('No Search Results Text','jungle-safari'),
		'description'=>__('The search page text display when no results are found.','jungle-safari'),
		'section'=> 'jungle_safari_page_not_found',
		'type'=> 'text'
	));

	//Woocommerce Section
	$wp_customize->add_section( 'jungle_safari_woocommerce_section' , array(
    	'title'      => __( 'Woocommerce Settings', 'jungle-safari' ),
    	'description'=>__('The below settings are apply on woocommerce pages.','jungle-safari'),
		'priority'   => null,
		'panel' => 'jungle_safari_panel_id'
	) );

	$wp_customize->add_setting('jungle_safari_woocommerce_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_woocommerce_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_woocommerce_section'
 	));
	/**
	 * Product Columns
	 */
	$wp_customize->add_setting( 'jungle_safari_per_columns' , array(
		'default'           => 4,
		'transport'         => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	) );
	$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'jungle_safari_per_columns', array(
		'label'    => __( 'Product per columns', 'jungle-safari' ),
		'section'  => 'jungle_safari_woocommerce_section',
		'type'     => 'select',
		'choices'  => array(
			'2' => '2',
			'3' => '3',
			'4' => '4',
			'5' => '5',
		),
	) ) );

	$wp_customize->add_setting('jungle_safari_product_per_page',array(
		'default'	=> 12,
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_product_per_page',array(
		'label'	=> __('Product per page','jungle-safari'),
		'section'	=> 'jungle_safari_woocommerce_section',
		'type'		=> 'number'
	));

	$wp_customize->add_setting('jungle_safari_shop_sidebar_enable',array(
       'default' => false,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_shop_sidebar_enable',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable shop page sidebar','jungle-safari'),
       'section' => 'jungle_safari_woocommerce_section',
    ));

   // shop page sidebar alignment
   $wp_customize->add_setting('jungle_safari_shop_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control('jungle_safari_shop_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Shop Page Layout', 'jungle-safari'),
		'section'        => 'jungle_safari_woocommerce_section',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'jungle-safari'),
			'Right Sidebar' => __('Right Sidebar', 'jungle-safari'),
		),
	));

	$wp_customize->add_setting('jungle_safari_product_page_sidebar_enable',array(
		'default' => false,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_product_page_sidebar_enable',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable single product page sidebar','jungle-safari'),
		'section' => 'jungle_safari_woocommerce_section',
	));

   // single product page sidebar alignment
   $wp_customize->add_setting('jungle_safari_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control('jungle_safari_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single Product Page Layout', 'jungle-safari'),
		'section'        => 'jungle_safari_woocommerce_section',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'jungle-safari'),
			'Right Sidebar' => __('Right Sidebar', 'jungle-safari'),
		),
	));

    $wp_customize->add_setting('jungle_safari_related_product_enable',array(
       'default' => true,
       'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
    ));
    $wp_customize->add_control('jungle_safari_related_product_enable',array(
       'type' => 'checkbox',
       'label' => __('Enable / Disable Related product','jungle-safari'),
       'section' => 'jungle_safari_woocommerce_section',
    ));

    $wp_customize->add_setting( 'jungle_safari_woo_product_sale_border_radius',array(
		'default' => 3,
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_woo_product_sale_border_radius', array(
        'label'  => __('Woocommerce Product Sale Border Radius','jungle-safari'),
        'section'  => 'jungle_safari_woocommerce_section',
        'type'        => 'number',
        'input_attrs' => array(
        	'step'=> 1,
            'min' => 0,
            'max' => 50,
        )
    )));

    $wp_customize->add_setting('jungle_safari_wooproduct_sale_font_size',array(
		'default'=> 14,
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_wooproduct_sale_font_size',array(
		'label'	=> __('Woocommerce Product Sale Font Size','jungle-safari'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'jungle_safari_woocommerce_section',
	)));

    $wp_customize->add_setting('jungle_safari_woo_product_sale_top_bottom_padding',array(
		'default'=> 0,
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_woo_product_sale_top_bottom_padding',array(
		'label'	=> __('Woocommerce Product Sale Top Bottom Padding ','jungle-safari'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'jungle_safari_woocommerce_section',
		'type'=> 'number'
	)));

	$wp_customize->add_setting('jungle_safari_woo_product_sale_left_right_padding',array(
		'default'=> 0,
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_woo_product_sale_left_right_padding',array(
		'label'	=> __('Woocommerce Product Sale Left Right Padding','jungle-safari'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'jungle_safari_woocommerce_section',
		'type'=> 'number'
	)));

	$wp_customize->add_setting('jungle_safari_woo_product_sale_position',array(
        'default' => 'Left',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_woo_product_sale_position',array(
        'type' => 'select',
        'label' => __('Woocommerce Product Sale Position','jungle-safari'),
        'section' => 'jungle_safari_woocommerce_section',
        'choices' => array(
            'Right' => __('Right','jungle-safari'),
            'Left' => __('Left','jungle-safari'),
        ),
	));

	$wp_customize->add_setting( 'jungle_safari_woocommerce_button_padding_top',array(
		'default' => 12,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_woocommerce_button_padding_top',	array(
		'label' => esc_html__( 'Button Top Bottom Padding (px)','jungle-safari' ),
		'section' => 'jungle_safari_woocommerce_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting( 'jungle_safari_woocommerce_button_padding_right',array(
		'default' => 15,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_woocommerce_button_padding_right',	array(
		'label' => esc_html__( 'Button Right Left Padding (px)','jungle-safari' ),
		'section' => 'jungle_safari_woocommerce_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting( 'jungle_safari_woocommerce_button_border_radius',array(
		'default' => 3,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_woocommerce_button_border_radius',array(
		'label' => esc_html__( 'Button Border Radius (px)','jungle-safari' ),
		'section' => 'jungle_safari_woocommerce_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

   $wp_customize->add_setting('jungle_safari_woocommerce_product_border_enable',array(
      'default' => false,
      'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
   ));
   $wp_customize->add_control('jungle_safari_woocommerce_product_border_enable',array(
      'type' => 'checkbox',
      'label' => __('Enable / Disable product border','jungle-safari'),
      'section' => 'jungle_safari_woocommerce_section',
   ));

	$wp_customize->add_setting( 'jungle_safari_woocommerce_product_padding_top',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_woocommerce_product_padding_top',	array(
		'label' => esc_html__( 'Product Top Bottom Padding (px)','jungle-safari' ),
		'section' => 'jungle_safari_woocommerce_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting( 'jungle_safari_woocommerce_product_padding_right',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_woocommerce_product_padding_right',	array(
		'label' => esc_html__( 'Product Right Left Padding (px)','jungle-safari' ),
		'section' => 'jungle_safari_woocommerce_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting( 'jungle_safari_woocommerce_product_border_radius',array(
		'default' => 10,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_woocommerce_product_border_radius',array(
		'label' => esc_html__( 'Product Border Radius (px)','jungle-safari' ),
		'section' => 'jungle_safari_woocommerce_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting( 'jungle_safari_woocommerce_product_box_shadow',array(
		'default' => '',
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_woocommerce_product_box_shadow',array(
		'label' => esc_html__( 'Product Box Shadow (px)','jungle-safari' ),
		'section' => 'jungle_safari_woocommerce_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting('jungle_safari_wooproducts_nav',array(
       'default' => 'Yes',
       'sanitize_callback'	=> 'jungle_safari_sanitize_choices'
    ));
    $wp_customize->add_control('jungle_safari_wooproducts_nav',array(
       'type' => 'select',
       'label' => __('Shop Page Products Navigation','jungle-safari'),
       'choices' => array(
            'Yes' => __('Yes','jungle-safari'),
            'No' => __('No','jungle-safari'),
        ),
       'section' => 'jungle_safari_woocommerce_section',
    ));

	//footer text
	$wp_customize->add_section('jungle_safari_footer_section',array(
		'title'	=> __('Footer Text','jungle-safari'),
		'panel' => 'jungle_safari_panel_id'
	));

	$wp_customize->add_setting('jungle_safari_footer_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_footer_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_footer_section'
 	));
	
	$wp_customize->add_setting('jungle_safari_footer_hide',array(
		'default' => true,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_footer_hide',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Footer','jungle-safari'),
		'section' => 'jungle_safari_footer_section',
	));	

  	$wp_customize->add_setting('jungle_safari_footer_template',array(
      'default'	=> esc_html('jungle_safari-footer-one'),
      'sanitize_callback'	=> 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_footer_template',array(
		'label'	=> esc_html__('Footer style','jungle-safari'),
		'section'	=> 'jungle_safari_footer_section',
		'setting'	=> 'jungle_safari_footer_template',
		'type' => 'select',
		'choices' => array(
          'jungle_safari-footer-one' => esc_html__('Style 1', 'jungle-safari'),
          'jungle_safari-footer-two' => esc_html__('Style 2', 'jungle-safari'),
          'jungle_safari-footer-three' => esc_html__('Style 3', 'jungle-safari'),
          'jungle_safari-footer-four' => esc_html__('Style 4', 'jungle-safari'),
          'jungle_safari-footer-five' => esc_html__('Style 5', 'jungle-safari'),
          )
	));		

	$wp_customize->add_setting('jungle_safari_footer_bg_color', array(
		'default'           => '#1A1A1A',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_footer_bg_color', array(
		'label'    => __('Footer Background Color', 'jungle-safari'),
		'section'  => 'jungle_safari_footer_section',
	)));

	$wp_customize->add_setting('jungle_safari_footer_bg_image',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'jungle_safari_footer_bg_image',array(
		'label' => __('Footer Background Image','jungle-safari'),
		'section' => 'jungle_safari_footer_section'
	)));
	
	$wp_customize->add_setting('jungle_safari_footer_attatchment',array(
		'default'=> 'scroll',
		'sanitize_callback'	=> 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_footer_attatchment',array(
		'type' => 'select',
		'label'	=> __('Footer Background Attatchment','jungle-safari'),
		'choices' => array(
            'fixed' => __('fixed','jungle-safari'),
            'scroll' => __('scroll','jungle-safari'),
        ),
		'section'=> 'jungle_safari_footer_section',
	));

	$wp_customize->add_setting('jungle_safari_footer_img_position',array(
		'default' => 'center center',
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
	  ));
	  $wp_customize->add_control('jungle_safari_footer_img_position',array(
		  'type' => 'select',
		  'label' => __('Footer Image Position','jungle-safari'),
		  'section' => 'jungle_safari_footer_section',
		  'choices' 	=> array(
			  'left top' 		=> esc_html__( 'Top Left', 'jungle-safari' ),
			  'center top'   => esc_html__( 'Top', 'jungle-safari' ),
			  'right top'   => esc_html__( 'Top Right', 'jungle-safari' ),
			  'left center'   => esc_html__( 'Left', 'jungle-safari' ),
			  'center center'   => esc_html__( 'Center', 'jungle-safari' ),
			  'right center'   => esc_html__( 'Right', 'jungle-safari' ),
			  'left bottom'   => esc_html__( 'Bottom Left', 'jungle-safari' ),
			  'center bottom'   => esc_html__( 'Bottom', 'jungle-safari' ),
			  'right bottom'   => esc_html__( 'Bottom Right', 'jungle-safari' ),
		  ),
	  ));		

	$wp_customize->add_setting('jungle_safari_footer_widget_areas',array(
		'default'           => 4,
		'sanitize_callback' => 'jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control('jungle_safari_footer_widget_areas',array(
		'type'        => 'radio',
		'label'       => __('Footer widget area', 'jungle-safari'),
		'section'     => 'jungle_safari_footer_section',
		'description' => __('Select the number of widget areas you want in the footer. After that, go to Appearance > Widgets and add your widgets.', 'jungle-safari'),
		'choices' => array(
		   '1'     => __('One', 'jungle-safari'),
		   '2'     => __('Two', 'jungle-safari'),
		   '3'     => __('Three', 'jungle-safari'),
		   '4'     => __('Four', 'jungle-safari')
		),
	));

	// Footer text Transform 
    $wp_customize->add_setting('jungle_safari_footer_text_tranform',array(
	'default' => 'Capitalize',
	'sanitize_callback' => 'jungle_safari_sanitize_choices'
    ));

    $wp_customize->add_control('jungle_safari_footer_text_tranform',array(
		'type' => 'select',
		'label' => __('Footer Heading Text Transform','jungle-safari'),
		'section' => 'jungle_safari_footer_section',
		'choices' => array(
			'Uppercase' => __('Uppercase','jungle-safari'),
			'Lowercase' => __('Lowercase','jungle-safari'),
			'Capitalize' => __('Capitalize','jungle-safari'),
	    ),
    ));

	$wp_customize->add_setting('jungle_safari_footer_heading',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_footer_heading',array(
	    'type' => 'select',
	    'label' => __('Footer Heading Alignment','jungle-safari'),
	    'section' => 'jungle_safari_footer_section',
	    'choices' => array(
	    	'Left' => __('Left','jungle-safari'),
	        'Center' => __('Center','jungle-safari'),
	        'Right' => __('Right','jungle-safari')
	    ),
	) );

	$wp_customize->add_setting('jungle_safari_footer_heading_font_weight',array(
		'default' => '',
		'sanitize_callback' => 'jungle_safari_sanitize_choices'
 	));
 	$wp_customize->add_control('jungle_safari_footer_heading_font_weight',array(
		'type' => 'select',
		'label' => __('Footer Heading Font Weight','jungle-safari'),
		'section' => 'jungle_safari_footer_section',
		'choices' => array(
			'100' => __('100','jungle-safari'),
			'200' => __('200','jungle-safari'),
			'300' => __('300','jungle-safari'),
			'400' => __('400','jungle-safari'),
			'500' => __('500','jungle-safari'),
			'600' => __('600','jungle-safari'),
			'700' => __('700','jungle-safari'),
			'800' => __('800','jungle-safari'),
			'900' => __('900','jungle-safari'),
		),
	) );

	$wp_customize->add_setting('jungle_safari_footer_heading_letter_spacing',array(
		'default'=> 1,
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_footer_heading_letter_spacing',array(
		'label'	=> __('Footer Heading Letter Spacing','jungle-safari'),
  		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
	),
		'section'=> 'jungle_safari_footer_section',
	));		

	$wp_customize->add_setting('jungle_safari_footer_content',array(
	    'default' => 'Left',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_footer_content',array(
	    'type' => 'select',
	    'label' => __('Footer Content Alignment','jungle-safari'),
	    'section' => 'jungle_safari_footer_section',
	    'choices' => array(
	    	'Left' => __('Left','jungle-safari'),
	        'Center' => __('Center','jungle-safari'),
	        'Right' => __('Right','jungle-safari')
	    ),
	) );

	$wp_customize->add_setting('jungle_safari_footer_heading_font_size',array(
		'default'=> 25,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_footer_heading_font_size',array(
		'label' => esc_html__( 'Footer Heading Font Size','jungle-safari' ),
		'section'=> 'jungle_safari_footer_section',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
	)));

	$wp_customize->add_setting('jungle_safari_footer_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize,'jungle_safari_footer_padding',array(
		'label'	=> __('Footer Widget Padding','jungle-safari'),
		'section'=> 'jungle_safari_footer_section',
		'input_attrs' => array(
         'step' => 1,
			'min'  => 0,
			'max'  => 100,
      ),
	)));

	$wp_customize->add_setting('jungle_safari_hide_show_scroll',array(
		'default' => true,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_hide_show_scroll',array(
     	'type' => 'checkbox',
      	'label' => __('Enable / Disable Back To Top','jungle-safari'),
      	'section' => 'jungle_safari_footer_section',
	));

	$wp_customize->add_setting('jungle_safari_back_to_top_icon',array(
		'default'	=> 'fas fa-long-arrow-alt-up',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_back_to_top_icon',array(
		'label'	=> __('Back to Top Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_footer_section',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_scroll_icon_font_size',array(
		'default'=> 22,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_scroll_icon_font_size',array(
		'label'	=> __('Back To Top Icon Font Size','jungle-safari'),
		'section'=> 'jungle_safari_footer_section',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
	)));

	$wp_customize->add_setting('jungle_safari_scroll_icon_color', array(
		'default'           => '#fff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_scroll_icon_color', array(
		'label'    => __('Back to Top Icon Color', 'jungle-safari'),
		'section'  => 'jungle_safari_footer_section',
	)));

	$wp_customize->add_setting('jungle_safari_scroll_icon_hover_color', array(
		'default'           => '#fff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_scroll_icon_hover_color', array(
		'label'    => __('Back to Top Icon Hover Color', 'jungle-safari'),
		'section'  => 'jungle_safari_footer_section',
	)));

	$wp_customize->add_setting('jungle_safari_scroll_icon_background', array(
		'default'           => 'var(--first-theme-color)',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_scroll_icon_background', array(
		'label'    => __('Back to Top Background Color', 'jungle-safari'),
		'section'  => 'jungle_safari_footer_section',
	)));

	$wp_customize->add_setting('jungle_safari_scroll_icon_background_hover', array(
		'default'           => 'var(--first-theme-color)',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_scroll_icon_background_hover', array(
		'label'    => __('Back to Top Background Hover Color', 'jungle-safari'),
		'section'  => 'jungle_safari_footer_section',
	)));

	$wp_customize->add_setting('jungle_safari_footer_options',array(
        'default' => 'Right align',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_footer_options',array(
        'type' => 'radio',
        'label' => __('Back To Top Alignment','jungle-safari'),
        'section' => 'jungle_safari_footer_section',
        'choices' => array(
            'Left align' => __('Left Align','jungle-safari'),
            'Right align' => __('Right Align','jungle-safari'),
            'Center align' => __('Center Align','jungle-safari'),
        ),
	) );

	$wp_customize->add_setting( 'jungle_safari_top_bottom_scroll_padding',array(
		'default' => 7,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_top_bottom_scroll_padding',	array(
		'label' => esc_html__( 'Top Bottom Scroll Padding (px)','jungle-safari' ),
		'section' => 'jungle_safari_footer_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting( 'jungle_safari_left_right_scroll_padding',array(
		'default' => 17,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_left_right_scroll_padding',	array(
		'label' => esc_html__( 'Left Right Scroll Padding (px)','jungle-safari' ),
		'section' => 'jungle_safari_footer_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting( 'jungle_safari_back_to_top_border_radius',array(
		'default' => 5,
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_back_to_top_border_radius', array(
		'label' => esc_html__( 'Back to Top Border Radius (px)','jungle-safari' ),
		'section' => 'jungle_safari_footer_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting('jungle_safari_copyright_hide',array(
		'default' => true,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_copyright_hide',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Copyright','jungle-safari'),
		'section' => 'jungle_safari_footer_section',
	));	

	$wp_customize->add_setting('jungle_safari_footer_copy',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('jungle_safari_footer_copy',array(
		'label'	=> __('Copyright Text','jungle-safari'),
		'section'	=> 'jungle_safari_footer_section',
		'description'	=> __('Add some text for footer like copyright etc.','jungle-safari'),
		'type'		=> 'text'
	));

	$wp_customize->add_setting('jungle_safari_footer_text_align',array(
        'default' => 'center',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_footer_text_align',array(
        'type' => 'radio',
        'label' => __('Copyright Text Alignment ','jungle-safari'),
        'section' => 'jungle_safari_footer_section',
        'choices' => array(
            'left' => __('Left Align','jungle-safari'),
            'right' => __('Right Align','jungle-safari'),
            'center' => __('Center Align','jungle-safari'),
        ),
	) );

	$wp_customize->add_setting('jungle_safari_copyright_text_font_size',array(
		'default'=> 15,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control(new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_copyright_text_font_size',array(
		'label' => esc_html__( 'Copyright Font Size (px)','jungle-safari' ),
		'section'=> 'jungle_safari_footer_section',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
	)));

	$wp_customize->add_setting( 'jungle_safari_footer_text_padding',array(
		'default' => 20,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_footer_text_padding',	array(
		'label' => esc_html__( 'Copyright Text Padding (px)','jungle-safari' ),
		'section' => 'jungle_safari_footer_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting('jungle_safari_copyright_text_color', array(
		'default'           => '#ffffff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_copyright_text_color', array(
		'label'    => __('Copyright Text Color', 'jungle-safari'),
		'section'  => 'jungle_safari_footer_section',
	)));

	$wp_customize->add_setting('jungle_safari_copyright_text_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_copyright_text_hover_color', array(
		'label'    => __('Copyright Text Hover Color', 'jungle-safari'),
		'section'  => 'jungle_safari_footer_section',
	)));	

	$wp_customize->add_setting('jungle_safari_copyright_text_background', array(
		'default'           => 'var(--first-theme-color)',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_copyright_text_background', array(
		'label'    => __('Copyright background Color', 'jungle-safari'),
		'section'  => 'jungle_safari_footer_section',
	)));

	// Sticky Copyright Setting
	$wp_customize->add_setting('jungle_safari_copyright_sticky', array(
		'default'           => false,
		'sanitize_callback' => 'absint',
	));

	$wp_customize->add_control('jungle_safari_copyright_sticky', array(
		'type'    => 'checkbox',
		'label'   => __('Enable/Disable Sticky Footer Copyright', 'jungle-safari'),
		'section' => 'jungle_safari_footer_section',
	));

	//Footer Social Icons
	$wp_customize->add_section('jungle_safari_footer_social_icons',array(
		'title'	=> __('Footer Social Icons','jungle-safari'),
		'priority'	=> null,
		'panel' => 'jungle_safari_panel_id',
	));

	$wp_customize->add_setting('jungle_safari_footer_social_icons_premium_info',array(
    	'sanitize_callback' => 'sanitize_text_field'
 	));
 	$wp_customize->add_control('jungle_safari_footer_social_icons_premium_info',array(
   		 'type'=> 'hidden',
   		 'label' => __('Premium Features','jungle-safari'),
   		 'description' => "<ul><li>". esc_html__('Please explore our premium theme for additional settings and features.','jungle-safari') ."</li><li>". esc_html__('And so on...','jungle-safari') ."</li></ul><a target='_blank' href='". esc_url(JUNGLE_SAFARI_BUY_PRO) ." '>". esc_html__('Upgrade to Pro','jungle-safari') ."</a>",
   		 'section'=> 'jungle_safari_footer_social_icons'
 	));

	$wp_customize->add_setting('jungle_safari_footer_social_hide',array(
		'default' => false,
		'sanitize_callback'	=> 'jungle_safari_sanitize_checkbox'
	));
	$wp_customize->add_control('jungle_safari_footer_social_hide',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Footer Icons','jungle-safari'),
		'section' => 'jungle_safari_footer_social_icons',
	));	

	$wp_customize->add_setting('jungle_safari_footer_facebook_url',array(
		'default' => '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('jungle_safari_footer_facebook_url',array(
		'type' => 'url',
		'label' => __('Add Facebook URL','jungle-safari'),
		'section' => 'jungle_safari_footer_social_icons',
	));

	$wp_customize->add_setting('jungle_safari_footer_facebook_icon',array(
		'default'	=> 'fab fa-facebook-f',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_footer_facebook_icon',array(
		'label'	=> __('Choose Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_footer_social_icons',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_footer_instagram_url',array(
		'default' => '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('jungle_safari_footer_instagram_url',array(
		'type' => 'url',
		'label' => __('Add Instagram URL','jungle-safari'),
		'section' => 'jungle_safari_footer_social_icons',
	));

	$wp_customize->add_setting('jungle_safari_footer_instagram_icon',array(
		'default'	=> 'fab fa-instagram',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_footer_instagram_icon',array(
		'label'	=> __('Choose Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_footer_social_icons',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_footer_twitter_url',array(
		'default' => '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('jungle_safari_footer_twitter_url',array(
		'type' => 'url',
		'label' => __('Add Twitter URL','jungle-safari'),
		'section' => 'jungle_safari_footer_social_icons',
	));

	$wp_customize->add_setting('jungle_safari_footer_twitter_icon',array(
		'default'	=> 'fab fa-twitter',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_footer_twitter_icon',array(
		'label'	=> __('Choose Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_footer_social_icons',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('jungle_safari_footer_linkedin_url',array(
		'default' => '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('jungle_safari_footer_linkedin_url',array(
		'type' => 'url',
		'label' => __('Add LinkedIn URL','jungle-safari'),
		'section' => 'jungle_safari_footer_social_icons',
	));

	$wp_customize->add_setting('jungle_safari_footer_linkedin_icon',array(
		'default'	=> 'fa-brands fa-linkedin-in',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Jungle_Safari_Icon_Changer(
        $wp_customize,'jungle_safari_footer_linkedin_icon',array(
		'label'	=> __('Choose Icon','jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'jungle_safari_footer_social_icons',
		'type'		=> 'icon'
	)));	

	$wp_customize->add_setting('jungle_safari_footer_social_icons_size', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control('jungle_safari_footer_social_icons_size', array(
		'label'   => __('Icon Font Size', 'jungle-safari'),
		'section' => 'jungle_safari_footer_social_icons',
		'setting' => 'jungle_safari_footer_social_icons_size',
		'type'    => 'text',
	));

	$wp_customize->add_setting('jungle_safari_footer_icon_alignment',array(
        'default' => 'center',
        'sanitize_callback' => 'jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('jungle_safari_footer_icon_alignment',array(
        'type' => 'radio',
        'label' => __('Icon Alignment ','jungle-safari'),
        'section' => 'jungle_safari_footer_social_icons',
        'choices' => array(
            'left' => __('Left Align','jungle-safari'),
            'right' => __('Right Align','jungle-safari'),
            'center' => __('Center Align','jungle-safari'),
        ),
	) );
	
	// Top Bottom padding footer icon 
	$wp_customize->add_setting( 'jungle_safari_footer_icon_to_top_padding',array(
		'default' => 7,
		'transport' => 'refresh',
		'sanitize_callback' => 'jungle_safari_sanitize_integer'
	));
	$wp_customize->add_control( new Jungle_Safari_Custom_Control( $wp_customize, 'jungle_safari_footer_icon_to_top_padding',	array(
		'label' => esc_html__( 'Top Bottom icon Padding (px)','jungle-safari' ),
		'section' => 'jungle_safari_footer_social_icons',
		'input_attrs' => array(
			'min' => 0,
			'max' => 50,
			'step' => 1,
		),
	)));

	$wp_customize->add_setting('jungle_safari_footer_icon_color_option', array(
		'default'           => '#fff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'jungle_safari_footer_icon_color_option', array(
		'label'    => __('Icon Color', 'jungle-safari'),
		'section'  => 'jungle_safari_footer_social_icons',
	)));

	//Reset All Settings
	$wp_customize->add_section( 'jungle_safari_reset_section', array(
		'title'    => __( 'Reset Theme Settings', 'jungle-safari' ),
		'priority'	=> null,
		'panel' => 'jungle_safari_panel_id',
	) );

	//Reset Demo Import
	$wp_customize->add_setting( 'jungle_safari_reset_demo_import_settings', array(
		'sanitize_callback' => 'sanitize_text_field',
	) );

	$wp_customize->add_control('jungle_safari_reset_demo_import_settings',array(
			'label'   => __( 'Reset Demo Import', 'jungle-safari' ),
			'section' => 'jungle_safari_reset_section',
			'type'    => 'button',
			'input_attrs' => array(
				'onclick' => 'ResetDemoSettings()',
			),
	));

	//Reset Global Color
	$wp_customize->add_setting('jungle_safari_reset_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_text_field',
	));

	$wp_customize->add_control('jungle_safari_reset_color', array(
		'type'    => 'button',
		'label'   => __('Reset Global Color', 'jungle-safari'),
		'section' => 'jungle_safari_reset_section',
		'input_attrs' => array(
			'onclick' => 'ResetGlobalColor()',
		),
	));

}
add_action( 'customize_register', 'jungle_safari_customize_register' );

/**
 * Singleton class for handling the theme's customizer integration.
 *
 * @since  1.0.0
 * @access public
 */
final class Jungle_Safari_Customize {

	/**
	 * Returns the instance.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return object
	 */
	public static function get_instance() {

		static $instance = null;

		if ( is_null( $instance ) ) {
			$instance = new self;
			$instance->setup_actions();
		}

		return $instance;
	}

	/**
	 * Constructor method.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function __construct() {}

	/**
	 * Sets up initial actions.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function setup_actions() {

		// Register panels, sections, settings, controls, and partials.
		add_action( 'customize_register', array( $this, 'sections' ) );

		// Register scripts and styles for the controls.
		add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ), 0 );
	}

	/**
	 * Sets up the customizer sections.
	 *
	 * @since  1.0.0
	 * @access public
	 * @param  object  $manager
	 * @return void
	 */
	public function sections( $manager ) {

		// Load custom sections.
		load_template( trailingslashit( get_template_directory() ) . '/inc/section-pro.php' );

		// Register custom section types.
		$manager->register_section_type( 'Jungle_Safari_Customize_Section_Pro' );

		// Register sections.
		$manager->add_section(
			new Jungle_Safari_Customize_Section_Pro(
				$manager,
				'jungle_safari_example_1',
				array(
					'title'   =>  esc_html__( 'Jungle Safari Pro', 'jungle-safari' ),
					'pro_text' => esc_html__( 'Get Pro', 'jungle-safari' ),
					'pro_url'  => esc_url( 'https://www.buywptemplates.com/products/safari-wordpress-theme' ),
					'priority'   => 9
				)
			)
		);
	}

	/**
	 * Loads theme customizer CSS.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	public function enqueue_control_scripts() {

		wp_enqueue_script( 'jungle-safari-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/js/customize-controls.js', array( 'customize-controls' ) );

		wp_enqueue_style( 'jungle-safari-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/css/customize-controls.css' );
	}

	function jungle_safari_sanitize_choices( $input ) {
		$valid = array(
			'1'     => __('One', 'jungle-safari'),
			'2'     => __('Two', 'jungle-safari'),
			'3'     => __('Three', 'jungle-safari'),
			'4'     => __('Four', 'jungle-safari')
		);
		if ( array_key_exists( $input, $valid ) ) {
			return $input;
		} else {
	  		return '';
		}
	}

}

// Doing this customizer thang!
Jungle_Safari_Customize::get_instance();