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

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

function forest_jungle_safari_custom_controls() {
	load_template( trailingslashit( get_template_directory() ) . '/inc/custom-controls.php' );
}
add_action( 'customize_register', 'forest_jungle_safari_custom_controls' );

function forest_jungle_safari_customize_register( $wp_customize ) {


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

	load_template( trailingslashit( get_template_directory() ) . '/inc/icon-picker.php' );

	//Selective Refresh
	$wp_customize->selective_refresh->add_partial( 'blogname', array(
		'selector' => '.logo .site-title a',
	 	'render_callback' => 'forest_jungle_safari_Customize_partial_blogname',
	));

	$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
		'selector' => 'p.site-description',
		'render_callback' => 'forest_jungle_safari_Customize_partial_blogdescription',
	));

	// add home page setting pannel
	$wp_customize->add_panel( 'forest_jungle_safari_panel_id', array(
		'capability' => 'edit_theme_options',
		'theme_supports' => '',
		'title' => esc_html__( 'Frontpage Options', 'forest-jungle-safari' ),
		'priority' => 10,
	));

	//Menus Settings
	$wp_customize->add_section( 'forest_jungle_safari_menu_section' , array(
    	'title' => __( 'Menus Settings', 'forest-jungle-safari' ),
		'panel' => 'forest_jungle_safari_panel_id'
	) );

	$wp_customize->add_setting('forest_jungle_safari_navigation_menu_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_navigation_menu_font_size',array(
		'label'	=> __('Menus Font Size','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_menu_section',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_navigation_menu_font_weight',array(
        'default' => 600,
        'transport' => 'refresh',
        'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_navigation_menu_font_weight',array(
        'type' => 'select',
        'label' => __('Menus Font Weight','forest-jungle-safari'),
        'section' => 'forest_jungle_safari_menu_section',
        'choices' => array(
        	'100' => __('100','forest-jungle-safari'),
            '200' => __('200','forest-jungle-safari'),
            '300' => __('300','forest-jungle-safari'),
            '400' => __('400','forest-jungle-safari'),
            '500' => __('500','forest-jungle-safari'),
            '600' => __('600','forest-jungle-safari'),
            '700' => __('700','forest-jungle-safari'),
            '800' => __('800','forest-jungle-safari'),
            '900' => __('900','forest-jungle-safari'),
        ),
	) );

	// text trasform
	$wp_customize->add_setting('forest_jungle_safari_menu_text_transform',array(
		'default'=> 'Capitalize',
		'sanitize_callback'	=> 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_menu_text_transform',array(
		'type' => 'radio',
		'label'	=> __('Menus Text Transform','forest-jungle-safari'),
		'choices' => array(
            'Uppercase' => __('Uppercase','forest-jungle-safari'),
            'Capitalize' => __('Capitalize','forest-jungle-safari'),
            'Lowercase' => __('Lowercase','forest-jungle-safari'),
        ),
		'section'=> 'forest_jungle_safari_menu_section',
	));

	$wp_customize->add_setting('forest_jungle_safari_menus_item_style',array(
        'default' => '',
        'transport' => 'refresh',
        'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_menus_item_style',array(
        'type' => 'select',
        'section' => 'forest_jungle_safari_menu_section',
		'label' => __('Menu Item Hover Style','forest-jungle-safari'),
		'choices' => array(
            'None' => __('None','forest-jungle-safari'),
            'Zoom In' => __('Zoom In','forest-jungle-safari'),
        ),
	) );

	$wp_customize->add_setting('forest_jungle_safari_header_menus_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'forest_jungle_safari_header_menus_color', array(
		'label'    => __('Menus Color', 'forest-jungle-safari'),
		'section'  => 'forest_jungle_safari_menu_section',
	)));

	$wp_customize->add_setting('forest_jungle_safari_header_menus_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'forest_jungle_safari_header_menus_hover_color', array(
		'label'    => __('Menus Hover Color', 'forest-jungle-safari'),
		'section'  => 'forest_jungle_safari_menu_section',
	)));

	$wp_customize->add_setting('forest_jungle_safari_header_submenus_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'forest_jungle_safari_header_submenus_color', array(
		'label'    => __('Sub Menus Color', 'forest-jungle-safari'),
		'section'  => 'forest_jungle_safari_menu_section',
	)));

	$wp_customize->add_setting('forest_jungle_safari_header_submenus_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'forest_jungle_safari_header_submenus_hover_color', array(
		'label'    => __('Sub Menus Hover Color', 'forest-jungle-safari'),
		'section'  => 'forest_jungle_safari_menu_section',
	)));

	// Top Bar
	$wp_customize->add_section( 'forest_jungle_safari_top_bar' , array(
    	'title' => esc_html__( 'Top Bar', 'forest-jungle-safari' ),
		'panel' => 'forest_jungle_safari_panel_id'
	) );

	$wp_customize->add_setting('forest_jungle_safari_topbar_location_text_icon',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
        $wp_customize,'forest_jungle_safari_topbar_location_text_icon',array(
		'label'	=> __('Add Topbar Text Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_top_bar',
		'setting'	=> 'forest_jungle_safari_topbar_location_text_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('forest_jungle_safari_topbar_add_text_advertising',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_topbar_add_text_advertising',array(
		'label'	=> esc_html__('Add Topbar Text','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_top_bar',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_topbar_about_us',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_topbar_about_us',array(
		'label'	=> esc_html__('Add About Us Text','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'About Us', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_top_bar',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_about_us_link',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('forest_jungle_safari_about_us_link',array(
		'label'	=> esc_html__('Add Link','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'www.example-info.com', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_top_bar',
		'type'=> 'url'
	));

	$wp_customize->add_setting('forest_jungle_safari_topbar_contact_us',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_topbar_contact_us',array(
		'label'	=> esc_html__('Add Contact Us Text','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'Contact Us', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_top_bar',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_contact_us_link',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('forest_jungle_safari_contact_us_link',array(
		'label'	=> esc_html__('Add Link','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'www.example-info.com', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_top_bar',
		'type'=> 'url'
	));

	$wp_customize->add_setting('forest_jungle_safari_topbar_privacy_policy',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_topbar_privacy_policy',array(
		'label'	=> esc_html__('Add Privacy Policy Text','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'Privacy Policy', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_top_bar',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_privacy_policy_link',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('forest_jungle_safari_privacy_policy_link',array(
		'label'	=> esc_html__('Add Link','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'www.example-info.com', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_top_bar',
		'type'=> 'url'
	));

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

	$wp_customize->add_setting('forest_jungle_safari_appointment_btn_link',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('forest_jungle_safari_appointment_btn_link',array(
		'label'	=> esc_html__('Add Button Link','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'www.example-info.com', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_top_bar',
		'type'=> 'url'
	));

    //Sticky Header
		$wp_customize->add_setting( 'forest_jungle_safari_sticky_header',array(
        'default' => 0,
        'transport' => 'refresh',
        'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
    ));
    $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_sticky_header',array(
        'label' => esc_html__( 'Sticky Header','forest-jungle-safari' ),
        'section' => 'forest_jungle_safari_top_bar'
    )));

    $wp_customize->add_setting('forest_jungle_safari_sticky_header_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_sticky_header_padding',array(
		'label'	=> __('Sticky Header Padding','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_top_bar',
		'type'=> 'text'
	));

	//Slider
	$wp_customize->add_section( 'forest_jungle_safari_slidersettings' , array(
  	'title'      => __( 'Slider Settings', 'forest-jungle-safari' ),
  	'description' => __('For more options of Slider section </br> <a class="go-pro-btn" target="blank" href="https://www.vwthemes.com/products/forest-wordpress-theme">GET PRO</a>','forest-jungle-safari'),
	'panel' => 'forest_jungle_safari_panel_id',
	) );

	$wp_customize->add_setting( 'forest_jungle_safari_slider_hide_show',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	));
	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_slider_hide_show',array(
		'label' => esc_html__( 'Show / Hide Slider','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_slidersettings'
	)));

	$wp_customize->add_setting('forest_jungle_safari_slide_number',array(
		'default'	=> '',
		'sanitize_callback'	=> 'forest_jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control('forest_jungle_safari_slide_number',array(
		'label'	=> __('Number of slides to show','forest-jungle-safari'),
		'description' => __('Add number Of slide and refresh page','forest-jungle-safari'),
		'section'	=> 'forest_jungle_safari_slidersettings',
		'type' => 'select',
		'choices' => array(
	      '1' => '1',
	      '2' => '2',
	      '3' => '3',
	),
	));

	$forest_jungle_safari_count =  get_theme_mod('forest_jungle_safari_slide_number');

	for($forest_jungle_safari_i=1; $forest_jungle_safari_i<=$forest_jungle_safari_count; $forest_jungle_safari_i++) {
		
		$wp_customize->add_setting('forest_jungle_safari_slider_image'.$forest_jungle_safari_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'esc_url_raw',
		));
		$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'forest_jungle_safari_slider_image'.$forest_jungle_safari_i,array(
			'label' => __('Slider Background Image','forest-jungle-safari'),
			'section' => 'forest_jungle_safari_slidersettings',
			'description' => __('Background Image size (1680 px × 619 px)','forest-jungle-safari'),
		)));

		$wp_customize->add_setting('forest_jungle_safari_banner_background_image_sec'.$forest_jungle_safari_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'esc_url_raw',
		));
		$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'forest_jungle_safari_banner_background_image_sec'.$forest_jungle_safari_i,array(
	      'label' => __('Slider Image','forest-jungle-safari'),
	      'section' => 'forest_jungle_safari_slidersettings',
	      'description' => __('Transparent Image size (392 px × 684 px)','forest-jungle-safari'),
		)));

	 	$wp_customize->add_setting('forest_jungle_safari_tagline_title'.$forest_jungle_safari_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('forest_jungle_safari_tagline_title'.$forest_jungle_safari_i,array(
			'label'	=> __('Slider Title','forest-jungle-safari'),
			'section'	=> 'forest_jungle_safari_slidersettings',
			'input_attrs' => array(
	        'placeholder' => __( 'Explore The VW Forest Of Animal', 'forest-jungle-safari' ),
	        ),
			'type'	=> 'text'
		));

	 	$wp_customize->add_setting('forest_jungle_safari_designation_text'.$forest_jungle_safari_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('forest_jungle_safari_designation_text'.$forest_jungle_safari_i,array(
			'label'	=> __('Slider Content','forest-jungle-safari'),
			'section'	=> 'forest_jungle_safari_slidersettings',
			'input_attrs' => array(
	        'placeholder' => __( 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'forest-jungle-safari' ),
	        ),
			'type'		=> 'text',

		));
	}

	$wp_customize->add_setting('forest_jungle_safari_social_icons',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_social_icons',array(
		'label' =>  __('Steps to setup social icons','forest-jungle-safari'),
		'description' => __('<p>1. Go to Dashboard >> Appearance >> Widgets</p>
			<p>2. Add Vw Social Icon Widget in Social Widget area.</p>
			<p>3. Add social icons url and save.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_slidersettings',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_social_icon_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_social_icon_btn',array(
		'description' => "<a target='_blank' href='". admin_url('widgets.php') ." '>Setup Slider Social Icons</a>",
		'section'=> 'forest_jungle_safari_slidersettings',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting( 'forest_jungle_safari_slider_arrow_hide_show',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	));
	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_slider_arrow_hide_show',array(
		'label' => esc_html__( 'Show / Hide Slider Arrows','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_slidersettings',
	)));

	$wp_customize->add_setting('forest_jungle_safari_slider_prev_icon',array(
		'default'	=> 'fas fa-chevron-left',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
        $wp_customize,'forest_jungle_safari_slider_prev_icon',array(
		'label'	=> __('Add Slider Prev Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_slidersettings',
		'setting'	=> 'forest_jungle_safari_slider_prev_icon',
		'type'		=> 'icon',
	)));

	$wp_customize->add_setting('forest_jungle_safari_slider_next_icon',array(
		'default'	=> 'fas fa-chevron-right',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
        $wp_customize,'forest_jungle_safari_slider_next_icon',array(
		'label'	=> __('Add Slider Next Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_slidersettings',
		'setting'	=> 'forest_jungle_safari_slider_next_icon',
		'type'		=> 'icon',
	)));

	//Slider height
	$wp_customize->add_setting('forest_jungle_safari_slider_height',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_slider_height',array(
		'label'	=> __('Slider Height','forest-jungle-safari'),
		'description'	=> __('Specify the slider height (px).','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( '500px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_slidersettings',
		'type'=> 'text',
	));

	//About Us Section
	$wp_customize->add_section('forest_jungle_safari_aboutUs', array(
		'title'       => __('About Us Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_aboutUs_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_aboutUs_text',array(
		'description' => __('<p>1. More options for About Us section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for About Us section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_aboutUs',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_aboutUs_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_aboutUs_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_aboutUs',
		'type'=> 'hidden'
	));

	//Counter Section
	$wp_customize->add_section('forest_jungle_safari_counter', array(
		'title'       => __('Counter Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_counter_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_counter_text',array(
		'description' => __('<p>1. More options for Counter section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Counter section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_counter',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_counter_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_counter_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_counter',
		'type'=> 'hidden'
	));

	//Popular Section
	$wp_customize->add_section( 'forest_jungle_safari_popular', array(
    	'title'      => __( 'Popular Section', 'forest-jungle-safari' ),
    	'description' => __('For more options of Popular section </br> <a class="go-pro-btn" target="blank" href="https://www.vwthemes.com/products/forest-wordpress-theme">GET PRO</a>','forest-jungle-safari'),
		'panel' => 'forest_jungle_safari_panel_id'
	) );

	$wp_customize->add_setting('forest_jungle_safari_popular_heading',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_popular_heading',array(
		'label'	=> __('Popular Text','forest-jungle-safari'),
		'section'	=> 'forest_jungle_safari_popular',
		'type'		=> 'text',
		'input_attrs' => array(
      'placeholder' => __( 'Popular Packages', 'forest-jungle-safari' ),
      ),
	));

	$wp_customize->add_setting('forest_jungle_safari_popular_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_popular_text',array(
		'label'	=> __('Popular Text','forest-jungle-safari'),
		'section'	=> 'forest_jungle_safari_popular',
		'type'		=> 'text',
		'input_attrs' => array(
      'placeholder' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit,', 'forest-jungle-safari' ),
      ),
	));

	$wp_customize->add_setting('forest_jungle_safari_claases_number',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field',
	));
	$wp_customize->add_control('forest_jungle_safari_claases_number',array(
		'label'	=> __('Number of post to show','forest-jungle-safari'),
		'description' => __('Add number and refresh tab','forest-jungle-safari'),
		'section'	=> 'forest_jungle_safari_popular',
		'type'		=> 'number'
	));
	$forest_jungle_safari_featured_post = get_theme_mod('forest_jungle_safari_claases_number');

	$args = array('numberposts' => -1);
	$post_list = get_posts($args);
	$i = 0;
	$pst[]='Select';
	foreach($post_list as $post){
		$pst[$post->ID] = $post->post_title;
	}

	for ( $forest_jungle_safari_i = 1; $forest_jungle_safari_i <= $forest_jungle_safari_featured_post; $forest_jungle_safari_i++ ) {
	$wp_customize->add_setting('forest_jungle_safari_services_category'.$forest_jungle_safari_i,array(
		'sanitize_callback' => 'forest_jungle_safari_sanitize_choices',
	));
	$wp_customize->add_control('forest_jungle_safari_services_category'.$forest_jungle_safari_i,array(
		'type'    => 'select',
		'choices' => $pst,
		'label' => __('Select Post','forest-jungle-safari'),
		'section' => 'forest_jungle_safari_popular',
	));

	$wp_customize->add_setting('forest_jungle_safari_user'.$forest_jungle_safari_i,array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('forest_jungle_safari_user'.$forest_jungle_safari_i,array(
		'label'	=> esc_html__( 'Price Text', 'forest-jungle-safari' ),
		'section'	=> 'forest_jungle_safari_popular',
		'type'		=> 'text',
		'input_attrs' => array(
	      'placeholder' => __( '$90.00', 'forest-jungle-safari' ),
	    ),
	));

	$wp_customize->add_setting('forest_jungle_safari_service_button_label'.$forest_jungle_safari_i,array(
		'default' => 'Read More',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_service_button_label'.$forest_jungle_safari_i,array(
		'label' => __('Add Service Button Text','forest-jungle-safari'),
		'section' => 'forest_jungle_safari_popular',
		'setting' => 'forest_jungle_safari_service_button_label',
		'type' => 'text'
	));
}

	$wp_customize->add_setting( 'forest_jungle_safari_slider_excerpt_number_post', array(
		'default'              => 25,
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_slider_excerpt_number_post', array(
		'label'       => esc_html__( 'Post Excerpt length','forest-jungle-safari' ),
		'description' => __('Post Description Excerpt length adjust manually','forest-jungle-safari'),
		'section'     => 'forest_jungle_safari_popular',
		'type'        => 'range',
		'settings'    => 'forest_jungle_safari_slider_excerpt_number_post',
		'input_attrs' => array(
			'step'             => 5,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('forest_jungle_safari_blog_excerpt_suffix1',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_blog_excerpt_suffix1',array(
		'label'	=> __('Add Post Excerpt Suffix','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => __( '[...]', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_popular',
		'type'=> 'text'
	));

	//Special Services Section
	$wp_customize->add_section( 'forest_jungle_safari_services', array(
    	'title'      => __( 'Special Services Section', 'forest-jungle-safari' ),
    	'description' => __('For more options of Social Services section </br> <a class="go-pro-btn" target="blank" href="https://www.vwthemes.com/products/forest-wordpress-theme">GET PRO</a>','forest-jungle-safari'),
		'panel' => 'forest_jungle_safari_panel_id'
	) );

	$wp_customize->add_setting('forest_jungle_safari_special_heading',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_special_heading',array(
		'label'	=> __('Special Services Heading Text','forest-jungle-safari'),
		'section'	=> 'forest_jungle_safari_services',
		'type'		=> 'text',
		'input_attrs' => array(
      'placeholder' => __( 'Special Services', 'forest-jungle-safari' ),
      ),
	));

	$wp_customize->add_setting('forest_jungle_safari_special_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_special_text',array(
		'label'	=> __('Special Services Text','forest-jungle-safari'),
		'section'	=> 'forest_jungle_safari_services',
		'type'		=> 'text',
		'input_attrs' => array(
      'placeholder' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit,', 'forest-jungle-safari' ),
      ),
	));

    $wp_customize->add_setting('forest_jungle_safari_services_number',array(
	    'default' => '',
	    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices',
	    'transport' => 'postMessage'
	));
	$wp_customize->add_control('forest_jungle_safari_services_number',array(
		'label' => __('Number of slides to show','forest-jungle-safari'),
		'description' => __('Add counts and refresh page','forest-jungle-safari'),
		'section' => 'forest_jungle_safari_services',
		'type'    => 'number',
		'type' => 'select',
		'choices' => array(
		    '1' => '1',
		    '2' => '2',
		    '3' => '3',
		    '4' => '4',
		),
	));

	$forest_jungle_safari_count =  get_theme_mod('forest_jungle_safari_services_number');

	for($forest_jungle_safari_i=1; $forest_jungle_safari_i<=$forest_jungle_safari_count; $forest_jungle_safari_i++) {

	    $wp_customize->add_setting('forest_jungle_safari_services_icon'.$forest_jungle_safari_i,array(
	    'default' => 'fa-solid fa-camera',
	    'sanitize_callback' => 'sanitize_text_field'
	    ));
	    $wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
	        $wp_customize,'forest_jungle_safari_services_icon'.$forest_jungle_safari_i,array(
	      'label' => __('Add Service Icon','forest-jungle-safari'),
	      'transport' => 'refresh',
	      'section' => 'forest_jungle_safari_services',
	      'setting' => 'forest_jungle_safari_services_icon',
	      'type'    => 'icon',
	    )));
		
		$wp_customize->add_setting('forest_jungle_safari_client_tagline_title'.$forest_jungle_safari_i,array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('forest_jungle_safari_client_tagline_title'.$forest_jungle_safari_i,array(
			'label'	=> esc_html__( 'Professional Services Title', 'forest-jungle-safari' ),
			'section'	=> 'forest_jungle_safari_services',
			'type'		=> 'text',
			'input_attrs' => array(
		      'placeholder' => __( 'Photos with Animals', 'forest-jungle-safari' ),
		    ),
		));

		$wp_customize->add_setting('forest_jungle_safari_client_text'.$forest_jungle_safari_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('forest_jungle_safari_client_text'.$forest_jungle_safari_i,array(
			'label'	=> esc_html__( 'Short Text', 'forest-jungle-safari' ),
			'section'	=> 'forest_jungle_safari_services',
			'type'		=> 'text',
			'input_attrs' => array(
		      'placeholder' => __( 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'forest-jungle-safari' ),
		    ),
		));
	}

	//Rescue Animals Section
	$wp_customize->add_section('forest_jungle_safari_RescueAnimals', array(
		'title'       => __('Rescue Animals Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_RescueAnimals_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_RescueAnimals_text',array(
		'description' => __('<p>1. More options for Rescue Animals section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Rescue Animals section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_RescueAnimals',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_RescueAnimals_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_RescueAnimals_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_RescueAnimals',
		'type'=> 'hidden'
	));

	//Awesome Animals Section
	$wp_customize->add_section('forest_jungle_safari_AwesomeAnimals', array(
		'title'       => __('Awesome Animals Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_AwesomeAnimals_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_AwesomeAnimals_text',array(
		'description' => __('<p>1. More options for Awesome Animals section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Awesome Animals section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_AwesomeAnimals',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_AwesomeAnimals_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_AwesomeAnimals_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_AwesomeAnimals',
		'type'=> 'hidden'
	));

	//Counter Banner Section
	$wp_customize->add_section('forest_jungle_safari_counter_banner', array(
		'title'       => __('Counter Banner Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_counter_banner_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_counter_banner_text',array(
		'description' => __('<p>1. More options for Counter Banner section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Counter Banner section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_counter_banner',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_counter_banner_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_counter_banner_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_counter_banner',
		'type'=> 'hidden'
	));

	//Upcoming Events Section
	$wp_customize->add_section('forest_jungle_safari_UpcomingEvents', array(
		'title'       => __('Upcoming Events Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_UpcomingEvents_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_UpcomingEvents_text',array(
		'description' => __('<p>1. More options for Upcoming Events section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Upcoming Events section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_UpcomingEvents',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_UpcomingEvents_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_UpcomingEvents_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_UpcomingEvents',
		'type'=> 'hidden'
	));

	//Book Ride Section
	$wp_customize->add_section('forest_jungle_safari_book_ride', array(
		'title'       => __('Book Ride Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_book_ride_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_book_ride_text',array(
		'description' => __('<p>1. More options for Book Ride section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Book Ride section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_book_ride',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_book_ride_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_book_ride_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_book_ride',
		'type'=> 'hidden'
	));

	//Our Testimonial Section
	$wp_customize->add_section('forest_jungle_safari_our_testimonial', array(
		'title'       => __('Our Testimonial Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_our_testimonial_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_our_testimonial_text',array(
		'description' => __('<p>1. More options for Our Testimonial section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Our Testimonial section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_our_testimonial',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_our_testimonial_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_our_testimonial_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_our_testimonial',
		'type'=> 'hidden'
	));

	//Map Animals Section
	$wp_customize->add_section('forest_jungle_safari_map_animals', array(
		'title'       => __('Map Animals Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_map_animals_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_map_animals_text',array(
		'description' => __('<p>1. More options for Map Animals section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Map Animals section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_map_animals',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_map_animals_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_map_animals_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_map_animals',
		'type'=> 'hidden'
	));

	//Our Gallery Section
	$wp_customize->add_section('forest_jungle_safari_our_gallery', array(
		'title'       => __('Our Gallery Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_our_gallery_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_our_gallery_text',array(
		'description' => __('<p>1. More options for Our Gallery section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Our Gallery section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_our_gallery',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_our_gallery_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_our_gallery_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_our_gallery',
		'type'=> 'hidden'
	));

	//Our Team Section
	$wp_customize->add_section('forest_jungle_safari_our_team', array(
		'title'       => __('Our Team Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_our_team_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_our_team_text',array(
		'description' => __('<p>1. More options for Our Team section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Our Team section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_our_team',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_our_team_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_our_team_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_our_team',
		'type'=> 'hidden'
	));

	//Our Blog Section
	$wp_customize->add_section('forest_jungle_safari_our_blog', array(
		'title'       => __('Our Blog Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_our_blog_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_our_blog_text',array(
		'description' => __('<p>1. More options for Our Blog section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Our Blog section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_our_blog',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_our_blog_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_our_blog_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_our_blog',
		'type'=> 'hidden'
	));
	
	//Partner Section
	$wp_customize->add_section('forest_jungle_safari_partner', array(
		'title'       => __('Partner Section', 'forest-jungle-safari'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','forest-jungle-safari'),
		'priority'    => null,
		'panel'       => 'forest_jungle_safari_panel_id',
	));

	$wp_customize->add_setting('forest_jungle_safari_partner_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_partner_text',array(
		'description' => __('<p>1. More options for Partner section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Partner section.</p>','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_partner',
		'type'=> 'hidden'
	));

	$wp_customize->add_setting('forest_jungle_safari_partner_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_partner_btn',array(
		'description' => "<a class='go-pro' target='_blank' href='https://www.vwthemes.com/products/forest-wordpress-theme'>More Info</a>",
		'section'=> 'forest_jungle_safari_partner',
		'type'=> 'hidden'
	));

	//Footer Text
	$wp_customize->add_section('forest_jungle_safari_footer',array(
		'title'	=> esc_html__('Footer Settings','forest-jungle-safari'),
		'panel' => 'forest_jungle_safari_panel_id',
		'description' => __('For more options of footer section </br> <a class="go-pro-btn" target="blank" href="https://www.vwthemes.com/products/forest-wordpress-theme">GET PRO</a>','forest-jungle-safari'),
	));

	$wp_customize->add_setting( 'forest_jungle_safari_footer_hide_show',array(
      'default' => 1,
      'transport' => 'refresh',
      'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
    ));
    $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_footer_hide_show',array(
      'label' => esc_html__( 'Show / Hide Footer','forest-jungle-safari' ),
      'section' => 'forest_jungle_safari_footer'
    )));

 	// font size
	$wp_customize->add_setting('forest_jungle_safari_button_footer_font_size',array(
		'default'=> 25,
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_button_footer_font_size',array(
		'label'	=> __('Footer Heading Font Size','forest-jungle-safari'),
  		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
		'section'=> 'forest_jungle_safari_footer',
	));

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

	// text trasform
	$wp_customize->add_setting('forest_jungle_safari_button_footer_text_transform',array(
		'default'=> 'Capitalize',
		'sanitize_callback'	=> 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_button_footer_text_transform',array(
		'type' => 'radio',
		'label'	=> __('Heading Text Transform','forest-jungle-safari'),
		'choices' => array(
			'Uppercase' => __('Uppercase','forest-jungle-safari'),
			'Capitalize' => __('Capitalize','forest-jungle-safari'),
			'Lowercase' => __('Lowercase','forest-jungle-safari'),
		),
		'section'=> 'forest_jungle_safari_footer',
	));

	$wp_customize->add_setting('forest_jungle_safari_footer_heading_weight',array(
        'default' => '',
        'transport' => 'refresh',
        'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_footer_heading_weight',array(
        'type' => 'select',
        'label' => __('Heading Font Weight','forest-jungle-safari'),
        'section' => 'forest_jungle_safari_footer',
        'choices' => array(
        	'100' => __('100','forest-jungle-safari'),
            '200' => __('200','forest-jungle-safari'),
            '300' => __('300','forest-jungle-safari'),
            '400' => __('400','forest-jungle-safari'),
            '500' => __('500','forest-jungle-safari'),
            '600' => __('600','forest-jungle-safari'),
            '700' => __('700','forest-jungle-safari'),
            '800' => __('800','forest-jungle-safari'),
            '900' => __('900','forest-jungle-safari'),
        ),
	) );

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

	$wp_customize->add_setting('forest_jungle_safari_footer_background_color', array(
		'default'           => '#000',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'forest_jungle_safari_footer_background_color', array(
		'label'    => __('Footer Background Color', 'forest-jungle-safari'),
		'section'  => 'forest_jungle_safari_footer',
	)));

	$wp_customize->add_setting('forest_jungle_safari_footer_background_image',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'forest_jungle_safari_footer_background_image',array(
        'label' => __('Footer Background Image','forest-jungle-safari'),
        'section' => 'forest_jungle_safari_footer'
	)));

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

  // Footer
  $wp_customize->add_setting('forest_jungle_safari_img_footer',array(
    'default'=> 'scroll',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
  ));
  $wp_customize->add_control('forest_jungle_safari_img_footer',array(
    'type' => 'select',
    'label' => __('Footer Background Attatchment','forest-jungle-safari'),
    'choices' => array(
      'fixed' => __('fixed','forest-jungle-safari'),
      'scroll' => __('scroll','forest-jungle-safari'),
    ),
    'section'=> 'forest_jungle_safari_footer',
  ));

  // footer padding
  $wp_customize->add_setting('forest_jungle_safari_footer_padding',array(
    'default'=> '',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control('forest_jungle_safari_footer_padding',array(
    'label' => __('Footer Top Bottom Padding','forest-jungle-safari'),
    'description' => __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
    'input_attrs' => array(
      'placeholder' => __( '10px', 'forest-jungle-safari' ),
    ),
    'section'=> 'forest_jungle_safari_footer',
    'type'=> 'text'
  ));

  $wp_customize->add_setting('forest_jungle_safari_footer_widgets_heading',array(
    'default' => 'Left',
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
  ));
  $wp_customize->add_control('forest_jungle_safari_footer_widgets_heading',array(
    'type' => 'select',
    'label' => __('Footer Widget Heading','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_footer',
    'choices' => array(
      'Left' => __('Left','forest-jungle-safari'),
      'Center' => __('Center','forest-jungle-safari'),
      'Right' => __('Right','forest-jungle-safari')
    ),
  ) );

  $wp_customize->add_setting('forest_jungle_safari_footer_widgets_content',array(
    'default' => 'Left',
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
  ));
  $wp_customize->add_control('forest_jungle_safari_footer_widgets_content',array(
    'type' => 'select',
    'label' => __('Footer Widget Content','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_footer',
    'choices' => array(
      'Left' => __('Left','forest-jungle-safari'),
      'Center' => __('Center','forest-jungle-safari'),
      'Right' => __('Right','forest-jungle-safari')
  	),
	) );
	
	//Selective Refresh
	$wp_customize->selective_refresh->add_partial('forest_jungle_safari_footer_text', array(
		'selector' => '.copyright p',
		'render_callback' => 'forest_jungle_safari_Customize_partial_forest_jungle_safari_footer_text',
	));

	$wp_customize->add_setting('forest_jungle_safari_footer_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_footer_text',array(
		'label'	=> esc_html__('Copyright Text','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => esc_html__( 'Copyright 2024, .....', 'forest-jungle-safari' ),
      ),
		'section'=> 'forest_jungle_safari_footer',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'forest_jungle_safari_copyright_hide_show',array(
	  'default' => 1,
	  'transport' => 'refresh',
	  'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	));
	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_copyright_hide_show',array(
		'label' => esc_html__( 'Show / Hide Copyright','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_footer'
	)));

	$wp_customize->add_setting('forest_jungle_safari_footer_contact_us',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_footer_contact_us',array(
		'label'	=> esc_html__('Add Copyright Contact Us Text','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'Contact Us', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_footer',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_footer_contact_us_link',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('forest_jungle_safari_footer_contact_us_link',array(
		'label'	=> esc_html__('Add Link','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'www.example-info.com', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_footer',
		'type'=> 'url'
	));

	$wp_customize->add_setting('forest_jungle_safari_footer_support',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_footer_support',array(
		'label'	=> esc_html__('Add Copyright Support Text','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'Support', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_footer',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_footer_support_link',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('forest_jungle_safari_footer_support_link',array(
		'label'	=> esc_html__('Add Link','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'www.example-info.com', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_footer',
		'type'=> 'url'
	));

	$wp_customize->add_setting('forest_jungle_safari_footer_privacy_policy',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_footer_privacy_policy',array(
		'label'	=> esc_html__('Add Copyright Privacy Policy Text','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'Privacy Policy', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_footer',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_footer_privacy_policy_link',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('forest_jungle_safari_footer_privacy_policy_link',array(
		'label'	=> esc_html__('Add Link','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'www.example-info.com', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_footer',
		'type'=> 'url'
	));

	$wp_customize->add_setting('forest_jungle_safari_footer_term_condition',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_footer_term_condition',array(
		'label'	=> esc_html__('Add Copyright Term & Condition Text','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'Term & Condition', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_footer',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_term_condition_link',array(
		'default'=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('forest_jungle_safari_term_condition_link',array(
		'label'	=> esc_html__('Add Link','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => esc_html__( 'www.example-info.com', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_footer',
		'type'=> 'url'
	));

	$wp_customize->add_setting('forest_jungle_safari_copyright_background_color', array(
		'default'           => '#000',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'forest_jungle_safari_copyright_background_color', array(
		'label'    => __('Copyright Background Color', 'forest-jungle-safari'),
		'section'  => 'forest_jungle_safari_footer',
	)));

	$wp_customize->add_setting('forest_jungle_safari_copyright_font_size',array(
		'default'=> '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_copyright_font_size',array(
		'label' => __('Copyright Font Size','forest-jungle-safari'),
		'description' => __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
      	'placeholder' => __( '10px', 'forest-jungle-safari' ),
	    ),
		'section'=> 'forest_jungle_safari_footer',
		'type'=> 'text'
	));

  $wp_customize->add_setting( 'forest_jungle_safari_hide_show_scroll',array(
  	'default' => 1,
  	'transport' => 'refresh',
  	'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ));
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_hide_show_scroll',array(
  	'label' => esc_html__( 'Show / Hide Scroll to Top','forest-jungle-safari' ),
  	'section' => 'forest_jungle_safari_footer'
  )));

  //Selective Refresh
	$wp_customize->selective_refresh->add_partial('forest_jungle_safari_scroll_to_top_icon', array(
		'selector' => '.scrollup i',
		'render_callback' => 'forest_jungle_safari_Customize_partial_forest_jungle_safari_scroll_to_top_icon',
	));

  $wp_customize->add_setting('forest_jungle_safari_scroll_top_alignment',array(
    'default' => 'Right',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Image_Radio_Control($wp_customize, 'forest_jungle_safari_scroll_top_alignment', array(
    'type' => 'select',
    'label' => esc_html__('Scroll To Top','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_footer',
    'settings' => 'forest_jungle_safari_scroll_top_alignment',
    'choices' => array(
        'Left' => esc_url(get_template_directory_uri()).'/assets/images/layout1.png',
        'Center' => esc_url(get_template_directory_uri()).'/assets/images/layout2.png',
        'Right' => esc_url(get_template_directory_uri()).'/assets/images/layout3.png'
  ))));

 	$wp_customize->add_setting('forest_jungle_safari_scroll_top_icon',array(
    'default' => 'fas fa-long-arrow-alt-up',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser($wp_customize,'forest_jungle_safari_scroll_top_icon',array(
    'label' => __('Add Scroll to Top Icon','forest-jungle-safari'),
    'transport' => 'refresh',
    'section' => 'forest_jungle_safari_footer',
    'setting' => 'forest_jungle_safari_scroll_top_icon',
    'type'    => 'icon'
  )));

  $wp_customize->add_setting('forest_jungle_safari_scroll_to_top_font_size',array(
    'default'=> '',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control('forest_jungle_safari_scroll_to_top_font_size',array(
    'label' => __('Icon Font Size','forest-jungle-safari'),
    'description' => __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
    'input_attrs' => array(
      'placeholder' => __( '10px', 'forest-jungle-safari' ),
    ),
    'section'=> 'forest_jungle_safari_footer',
    'type'=> 'text'
  ));

  $wp_customize->add_setting('forest_jungle_safari_scroll_to_top_padding',array(
    'default'=> '',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control('forest_jungle_safari_scroll_to_top_padding',array(
    'label' => __('Icon Top Bottom Padding','forest-jungle-safari'),
    'description' => __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
    'input_attrs' => array(
      'placeholder' => __( '10px', 'forest-jungle-safari' ),
    ),
    'section'=> 'forest_jungle_safari_footer',
    'type'=> 'text'
  ));

  $wp_customize->add_setting('forest_jungle_safari_scroll_to_top_width',array(
    'default'=> '',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control('forest_jungle_safari_scroll_to_top_width',array(
    'label' => __('Icon Width','forest-jungle-safari'),
    'description' => __('Enter a value in pixels Example:20px','forest-jungle-safari'),
    'input_attrs' => array(
      'placeholder' => __( '10px', 'forest-jungle-safari' ),
  ),
	  'section'=> 'forest_jungle_safari_footer',
	  'type'=> 'text'
  ));

  $wp_customize->add_setting('forest_jungle_safari_scroll_to_top_height',array(
    'default'=> '',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control('forest_jungle_safari_scroll_to_top_height',array(
    'label' => __('Icon Height','forest-jungle-safari'),
    'description' => __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
    'input_attrs' => array(
      'placeholder' => __( '10px', 'forest-jungle-safari' ),
    ),
    'section'=> 'forest_jungle_safari_footer',
    'type'=> 'text'
  ));

  $wp_customize->add_setting( 'forest_jungle_safari_scroll_to_top_border_radius', array(
    'default'              => '',
    'transport'        => 'refresh',
    'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
  ) );
  $wp_customize->add_control( 'forest_jungle_safari_scroll_to_top_border_radius', array(
    'label'       => esc_html__( 'Icon Border Radius','forest-jungle-safari' ),
    'section'     => 'forest_jungle_safari_footer',
    'type'        => 'range',
    'input_attrs' => array(
      'step'             => 1,
      'min'              => 1,
      'max'              => 50,
    ),
  ) );

  	// footer social icon
	$wp_customize->add_setting( 'forest_jungle_safari_footer_icon',array(
		'default' => false,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  	) );
	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_footer_icon',array(
		'label' => esc_html__( 'Show / Hide Footer Social Icon','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_footer'
  	)));

  	$wp_customize->add_setting('forest_jungle_safari_align_footer_social_icon',array(
        'default' => 'center',
        'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_align_footer_social_icon',array(
        'type' => 'select',
        'label' => __('Social Icon Alignment ','forest-jungle-safari'),
        'section' => 'forest_jungle_safari_footer',
        'choices' => array(
            'left' => __('Left','forest-jungle-safari'),
            'right' => __('Right','forest-jungle-safari'),
            'center' => __('Center','forest-jungle-safari'),
        ),
	) );

	$wp_customize->add_setting( 'forest_jungle_safari_copyright_sticky',array(
      'default' => 0,
      'transport' => 'refresh',
      'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
    ) );
    $wp_customize->add_control( new forest_jungle_safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_copyright_sticky',array(
      'label' => esc_html__( 'Show / Hide Sticky Copyright','forest-jungle-safari' ),
      'section' => 'forest_jungle_safari_footer'
    )));

   $wp_customize->add_setting('forest_jungle_safari_footer_social_icons_font_size',array(
       'default'=> 16,
       'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('forest_jungle_safari_footer_social_icons_font_size',array(
    'label' => __('Social Icon Font Size','forest-jungle-safari'),
    	'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
		'section'=> 'forest_jungle_safari_footer',
	 ));

 	//Blog Post
	$wp_customize->add_panel( 'forest_jungle_safari_blog_post_parent_panel', array(
		'title' => esc_html__( 'Blog Post Settings', 'forest-jungle-safari' ),
		'panel' => 'forest_jungle_safari_panel_id',
		'priority' => 20,
	));

	// Add example section and controls to the middle (second) panel
	$wp_customize->add_section( 'forest_jungle_safari_post_settings', array(
		'title' => esc_html__( 'Post Settings', 'forest-jungle-safari' ),
		'panel' => 'forest_jungle_safari_blog_post_parent_panel',
	));

	//Selective Refresh
	$wp_customize->selective_refresh->add_partial('forest_jungle_safari_toggle_postdate', array(
		'selector' => '.post-main-box h2 a',
		'render_callback' => 'forest_jungle_safari_Customize_partial_forest_jungle_safari_toggle_postdate',
	));

	//Blog layout
  $wp_customize->add_setting('forest_jungle_safari_blog_layout_option',array(
    'default' => 'Default',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
  ));
  $wp_customize->add_control(new Forest_Jungle_Safari_Image_Radio_Control($wp_customize, 'forest_jungle_safari_blog_layout_option', array(
    'type' => 'select',
    'label' => __('Blog Post Layouts','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_post_settings',
    'choices' => array(
      'Default' => esc_url(get_template_directory_uri()).'/assets/images/blog-layout1.png',
      'Center' => esc_url(get_template_directory_uri()).'/assets/images/blog-layout2.png',
      'Left' => esc_url(get_template_directory_uri()).'/assets/images/blog-layout3.png',
  ))));

	$wp_customize->add_setting('forest_jungle_safari_theme_options',array(
    'default' => 'Right Sidebar',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_theme_options',array(
    'type' => 'select',
    'label' => esc_html__('Post Sidebar Layout','forest-jungle-safari'),
    'description' => esc_html__('Here you can change the sidebar layout for posts. ','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_post_settings',
    'choices' => array(
        'Left Sidebar' => esc_html__('Left Sidebar','forest-jungle-safari'),
        'Right Sidebar' => esc_html__('Right Sidebar','forest-jungle-safari'),
        'One Column' => esc_html__('One Column','forest-jungle-safari'),
        'Three Columns' => esc_html__('Three Columns','forest-jungle-safari'),
        'Four Columns' => esc_html__('Four Columns','forest-jungle-safari'),
        'Grid Layout' => esc_html__('Grid Layout','forest-jungle-safari')
    ),
	) );

	$wp_customize->add_setting('forest_jungle_safari_toggle_postdate_icon',array(
		'default'	=> 'fas fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  $wp_customize,'forest_jungle_safari_toggle_postdate_icon',array(
		'label'	=> __('Add Post Date Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_post_settings',
		'setting'	=> 'forest_jungle_safari_toggle_postdate_icon',
		'type'		=> 'icon'
	)));

 	$wp_customize->add_setting( 'forest_jungle_safari_blog_toggle_postdate',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ));
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_blog_toggle_postdate',array(
    'label' => esc_html__( 'Show / Hide Post Date','forest-jungle-safari' ),
    'section' => 'forest_jungle_safari_post_settings'
  )));

	$wp_customize->add_setting('forest_jungle_safari_toggle_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  $wp_customize,'forest_jungle_safari_toggle_author_icon',array(
		'label'	=> __('Add Author Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_post_settings',
		'setting'	=> 'forest_jungle_safari_toggle_author_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'forest_jungle_safari_blog_toggle_author',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ));
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_blog_toggle_author',array(
		'label' => esc_html__( 'Show / Hide Author','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_post_settings'
  )));

  $wp_customize->add_setting('forest_jungle_safari_toggle_comments_icon',array(
		'default'	=> 'fa fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  $wp_customize,'forest_jungle_safari_toggle_comments_icon',array(
		'label'	=> __('Add Comments Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_post_settings',
		'setting'	=> 'forest_jungle_safari_toggle_comments_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'forest_jungle_safari_blog_toggle_comments',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ) );
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_blog_toggle_comments',array(
		'label' => esc_html__( 'Show / Hide Comments','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_post_settings'
  )));

  $wp_customize->add_setting('forest_jungle_safari_toggle_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  $wp_customize,'forest_jungle_safari_toggle_time_icon',array(
		'label'	=> __('Add Time Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_post_settings',
		'setting'	=> 'forest_jungle_safari_toggle_time_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'forest_jungle_safari_blog_toggle_time',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ) );
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_blog_toggle_time',array(
		'label' => esc_html__( 'Show / Hide Time','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_post_settings'
  )));

  $wp_customize->add_setting( 'forest_jungle_safari_featured_image_hide_show',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	));
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_featured_image_hide_show', array(
		'label' => esc_html__( 'Show / Hide Featured Image','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_post_settings'
  )));

  $wp_customize->add_setting( 'forest_jungle_safari_featured_image_border_radius', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_featured_image_border_radius', array(
		'label'       => esc_html__( 'Featured Image Border Radius','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_post_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'forest_jungle_safari_featured_image_box_shadow', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_featured_image_box_shadow', array(
		'label'       => esc_html__( 'Featured Image Box Shadow','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_post_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	//Featured Image
	$wp_customize->add_setting('forest_jungle_safari_blog_post_featured_image_dimension',array(
   'default' => 'default',
   'sanitize_callback'	=> 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_blog_post_featured_image_dimension',array(
		'type' => 'select',
		'label'	=> __('Blog Post Featured Image Dimension','forest-jungle-safari'),
		'section'	=> 'forest_jungle_safari_post_settings',
		'choices' => array(
		'default' => __('Default','forest-jungle-safari'),
		'custom' => __('Custom Image Size','forest-jungle-safari'),
      ),
	));

	$wp_customize->add_setting('forest_jungle_safari_blog_post_featured_image_custom_width',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
		));
	$wp_customize->add_control('forest_jungle_safari_blog_post_featured_image_custom_width',array(
		'label'	=> __('Featured Image Custom Width','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
    	'placeholder' => __( '10px', 'forest-jungle-safari' ),),
		'section'=> 'forest_jungle_safari_post_settings',
		'type'=> 'text',
		'active_callback' => 'forest_jungle_safari_blog_post_featured_image_dimension'
		));

	$wp_customize->add_setting('forest_jungle_safari_blog_post_featured_image_custom_height',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_blog_post_featured_image_custom_height',array(
		'label'	=> __('Featured Image Custom Height','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
    	'placeholder' => __( '10px', 'forest-jungle-safari' ),),
		'section'=> 'forest_jungle_safari_post_settings',
		'type'=> 'text',
		'active_callback' => 'forest_jungle_safari_blog_post_featured_image_dimension'
	));

  $wp_customize->add_setting( 'forest_jungle_safari_excerpt_number', array(
		'default'              => 30,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range',
		'sanitize_js_callback' => 'absint',
	) );
	$wp_customize->add_control( 'forest_jungle_safari_excerpt_number', array(
		'label'       => esc_html__( 'Excerpt length','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_post_settings',
		'type'        => 'range',
		'settings'    => 'forest_jungle_safari_excerpt_number',
		'input_attrs' => array(
			'step'             => 5,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('forest_jungle_safari_meta_field_separator',array(
		'default'=> '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_meta_field_separator',array(
		'label'	=> __('Add Meta Separator','forest-jungle-safari'),
		'description' => __('Add the seperator for meta box. Example: "|", "/", etc.','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_post_settings',
		'type'=> 'text'
	));

  $wp_customize->add_setting('forest_jungle_safari_excerpt_settings',array(
    'default' => 'Excerpt',
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_excerpt_settings',array(
    'type' => 'select',
    'label' => esc_html__('Post Content','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_post_settings',
    'choices' => array(
    	'Content' => esc_html__('Content','forest-jungle-safari'),
        'Excerpt' => esc_html__('Excerpt','forest-jungle-safari'),
        'No Content' => esc_html__('No Content','forest-jungle-safari')
        ),
	) );

  $wp_customize->add_setting('forest_jungle_safari_blog_page_posts_settings',array(
    'default' => 'Into Blocks',
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_blog_page_posts_settings',array(
    'type' => 'select',
    'label' => __('Display Blog Posts','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_post_settings',
    'choices' => array(
    	'Into Blocks' => __('Into Blocks','forest-jungle-safari'),
        'Without Blocks' => __('Without Blocks','forest-jungle-safari')
        ),
	) );

	$wp_customize->add_setting( 'forest_jungle_safari_blog_pagination_hide_show',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ));
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_blog_pagination_hide_show',array(
		'label' => esc_html__( 'Show / Hide Blog Pagination','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_post_settings'
  )));

  // Web Frame // 
	
	$wp_customize->add_setting( 'forest_jungle_safari_blog_web_frame',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
    ) );
    $wp_customize->add_control( new Forest_jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_web_frame',array(
		'label' => esc_html__( 'Show / Hide Blog Page Border','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_post_settings'
    )));

	$wp_customize->add_setting('forest_jungle_safari_web_frame_border_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'forest_jungle_safari_web_frame_border_color', array(
		'label'    => __('Blog Page Border Color', 'forest-jungle-safari'),
		'section'  => 'forest_jungle_safari_post_settings',
	)));

	$wp_customize->add_setting('forest_jungle_safari_web_frame_border_width',array(
		'default'=> '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_web_frame_border_width',array(
		'label' => __('Blog Page Width','forest-jungle-safari'),
		'description' => __('Enter a value in pixels Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
		'placeholder' => __( '10px', 'forest-jungle-safari' ),
	),
		'section'=> 'forest_jungle_safari_post_settings',
		'type'=> 'text'
));

	$wp_customize->add_setting('forest_jungle_safari_blog_excerpt_suffix',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_blog_excerpt_suffix',array(
		'label'	=> __('Add Excerpt Suffix','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => __( '[...]', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_post_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'forest_jungle_safari_blog_pagination_type', array(
    'default'			=> 'blog-page-numbers',
    'sanitize_callback'	=> 'forest_jungle_safari_sanitize_choices'
  ));
  $wp_customize->add_control( 'forest_jungle_safari_blog_pagination_type', array(
    'section' => 'forest_jungle_safari_post_settings',
    'type' => 'select',
    'label' => __( 'Blog Pagination', 'forest-jungle-safari' ),
    'choices'		=> array(
      'blog-page-numbers'  => __( 'Numeric', 'forest-jungle-safari' ),
      'next-prev' => __( 'Older Posts/Newer Posts', 'forest-jungle-safari' ),
  )));

    $wp_customize->add_setting('forest_jungle_safari_show_first_caps', array(
      'default'           => false,
      'transport'         => 'refresh',
      'sanitize_callback' => 'forest_jungle_safari_switch_sanitization',
  	));

  	$wp_customize->add_control(new Forest_Jungle_Safari_Toggle_Switch_Custom_Control(
      $wp_customize,
      'forest_jungle_safari_show_first_caps',
      array(
          'label'   => esc_html__('First Cap (First Capital Letter)', 'forest-jungle-safari'),
          'section' => 'forest_jungle_safari_post_settings',
      )
  	));

  // Button Settings
	$wp_customize->add_section( 'forest_jungle_safari_button_settings', array(
		'title' => esc_html__( 'Button Settings', 'forest-jungle-safari' ),
		'panel' => 'forest_jungle_safari_blog_post_parent_panel',
	));

	//Selective Refresh
	$wp_customize->selective_refresh->add_partial('forest_jungle_safari_button_text', array(
		'selector' => '.post-main-box .more-btn a',
		'render_callback' => 'forest_jungle_safari_Customize_partial_forest_jungle_safari_button_text',
	));

  $wp_customize->add_setting('forest_jungle_safari_button_text',array(
		'default'=> esc_html__('Read More','forest-jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_button_text',array(
		'label'	=> esc_html__('Add Button Text','forest-jungle-safari'),
		'input_attrs' => array(
    'placeholder' => esc_html__( 'Read More', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_button_settings',
		'type'=> 'text'
	));

	// font size button
	$wp_customize->add_setting('forest_jungle_safari_button_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_button_font_size',array(
		'label'	=> __('Button Font Size','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
  		'placeholder' => __( '10px', 'forest-jungle-safari' ),
    ),
  	'type'        => 'text',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
		'section'=> 'forest_jungle_safari_button_settings',
	));


	$wp_customize->add_setting( 'forest_jungle_safari_button_border_radius', array(
		'default'              => 5,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range',
		'sanitize_js_callback' => 'absint',
	) );
	$wp_customize->add_control( 'forest_jungle_safari_button_border_radius', array(
		'label'       => esc_html__( 'Button Border Radius','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_button_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	// button padding
	$wp_customize->add_setting('forest_jungle_safari_button_top_bottom_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_button_top_bottom_padding',array(
		'label'	=> __('Button Top Bottom Padding','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => __( '10px', 'forest-jungle-safari' ),
    ),
		'section'=> 'forest_jungle_safari_button_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_button_left_right_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_button_left_right_padding',array(
		'label'	=> __('Button Left Right Padding','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => __( '10px', 'forest-jungle-safari' ),
    ),
		'section'=> 'forest_jungle_safari_button_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_button_letter_spacing',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_button_letter_spacing',array(
		'label'	=> __('Button Letter Spacing','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
      	'placeholder' => __( '10px', 'forest-jungle-safari' ),
  ),
  	'type'        => 'text',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
	),
		'section'=> 'forest_jungle_safari_button_settings',
	));

	// Button weight button
	$wp_customize->add_setting('forest_jungle_safari_button_font_weight', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('forest_jungle_safari_button_font_weight', array(
		'label' => __('Button Font Weight','forest-jungle-safari'),
		'description' => __('Enter value between 100 to 900. Example: 400, 600','forest-jungle-safari'),
		'type' => 'number',
		'input_attrs' => array(
			'step' => 100,
			'min'  => 100,
			'max'  => 900,
    ),
		'section' => 'forest_jungle_safari_button_settings',
    ));

	// text trasform
	$wp_customize->add_setting('forest_jungle_safari_button_text_transform',array(
		'default'=> 'Capitalize',
		'sanitize_callback'	=> 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_button_text_transform',array(
		'type' => 'radio',
		'label'	=> __('Button Text Transform','forest-jungle-safari'),
		'choices' => array(
      'Uppercase' => __('Uppercase','forest-jungle-safari'),
      'Capitalize' => __('Capitalize','forest-jungle-safari'),
      'Lowercase' => __('Lowercase','forest-jungle-safari'),
    ),
		'section'=> 'forest_jungle_safari_button_settings',
	));

	// Button hover effect 
	$wp_customize->add_setting('forest_jungle_safari_button_hover_effect',array(
	'default' => '',
	'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
    ));
	$wp_customize->add_control('forest_jungle_safari_button_hover_effect', array(
        'type' => 'select',
        'label' => __( 'Button Hover Effect', 'forest-jungle-safari' ),
        'section' => 'forest_jungle_safari_button_settings',
        'choices' => array(
			'pulse'     => __( 'Pulse', 'forest-jungle-safari' ),
			'rubberBand'=> __( 'RubberBand', 'forest-jungle-safari' ),
			'swing'     => __( 'Swing', 'forest-jungle-safari' ),
			'tada'      => __( 'Tada', 'forest-jungle-safari' ),
			'jello'     => __( 'Jello', 'forest-jungle-safari' ),
			'disable'   => __( 'Disabled', 'forest-jungle-safari' )
        ),
    ));

	// Related Post Settings
	$wp_customize->add_section( 'forest_jungle_safari_related_posts_settings', array(
		'title' => esc_html__( 'Related Posts Settings', 'forest-jungle-safari' ),
		'panel' => 'forest_jungle_safari_blog_post_parent_panel',
	));

	//Selective Refresh
	$wp_customize->selective_refresh->add_partial('forest_jungle_safari_related_post_title', array(
		'selector' => '.related-post h3',
		'render_callback' => 'forest_jungle_safari_Customize_partial_forest_jungle_safari_related_post_title',
	));

  	$wp_customize->add_setting( 'forest_jungle_safari_related_post',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  	) );
  	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_related_post',array(
		'label' => esc_html__( 'Related Post','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_related_posts_settings'
  	)));

  	$wp_customize->add_setting('forest_jungle_safari_related_post_title',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_related_post_title',array(
		'label'	=> esc_html__('Add Related Post Title','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => esc_html__( 'Related Post', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_related_posts_settings',
		'type'=> 'text'
	));

 	$wp_customize->add_setting('forest_jungle_safari_related_posts_count',array(
		'default'=> 3,
		'sanitize_callback'	=> 'forest_jungle_safari_sanitize_number_absint'
	));
	$wp_customize->add_control('forest_jungle_safari_related_posts_count',array(
		'label'	=> esc_html__('Add Related Post Count','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => esc_html__( '3', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_related_posts_settings',
		'type'=> 'number'
	));

	$wp_customize->add_setting( 'forest_jungle_safari_related_posts_excerpt_number', array(
		'default'              => 20,
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_related_posts_excerpt_number', array(
		'label'       => esc_html__( 'Related Posts Excerpt length','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_related_posts_settings',
		'type'        => 'range',
		'settings'    => 'forest_jungle_safari_related_posts_excerpt_number',
		'input_attrs' => array(
			'step'             => 5,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'forest_jungle_safari_related_toggle_postdate',array(
	    'default' => 1,
	    'transport' => 'refresh',
	    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  	));
  	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_related_toggle_postdate',array(
	    'label' => esc_html__( 'Show / Hide Post Date','forest-jungle-safari' ),
	    'section' => 'forest_jungle_safari_related_posts_settings'
  	)));

  	$wp_customize->add_setting('forest_jungle_safari_related_postdate_icon',array(
	    'default' => 'fas fa-calendar-alt',
	    'sanitize_callback' => 'sanitize_text_field'
  	));
  	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  	$wp_customize,'forest_jungle_safari_related_postdate_icon',array(
	    'label' => __('Add Post Date Icon','forest-jungle-safari'),
	    'transport' => 'refresh',
	    'section' => 'forest_jungle_safari_related_posts_settings',
	    'setting' => 'forest_jungle_safari_related_postdate_icon',
	    'type'    => 'icon'
  	)));

	$wp_customize->add_setting( 'forest_jungle_safari_related_toggle_author',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  	));
  	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_related_toggle_author',array(
		'label' => esc_html__( 'Show / Hide Author','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_related_posts_settings'
  	)));

  	$wp_customize->add_setting('forest_jungle_safari_related_author_icon',array(
	    'default' => 'fas fa-user',
	    'sanitize_callback' => 'sanitize_text_field'
  	));
  	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  	$wp_customize,'forest_jungle_safari_related_author_icon',array(
	    'label' => __('Add Author Icon','forest-jungle-safari'),
	    'transport' => 'refresh',
	    'section' => 'forest_jungle_safari_related_posts_settings',
	    'setting' => 'forest_jungle_safari_related_author_icon',
	    'type'    => 'icon'
  	)));

	$wp_customize->add_setting( 'forest_jungle_safari_related_toggle_comments',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  	) );
  	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_related_toggle_comments',array(
		'label' => esc_html__( 'Show / Hide Comments','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_related_posts_settings'
  	)));

  	$wp_customize->add_setting('forest_jungle_safari_related_comments_icon',array(
	    'default' => 'fa fa-comments',
	    'sanitize_callback' => 'sanitize_text_field'
  	));
  	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  	$wp_customize,'forest_jungle_safari_related_comments_icon',array(
	    'label' => __('Add Comments Icon','forest-jungle-safari'),
	    'transport' => 'refresh',
	    'section' => 'forest_jungle_safari_related_posts_settings',
	    'setting' => 'forest_jungle_safari_related_comments_icon',
	    'type'    => 'icon'
  	)));

	$wp_customize->add_setting( 'forest_jungle_safari_related_toggle_time',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  	) );
  	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_related_toggle_time',array(
		'label' => esc_html__( 'Show / Hide Time','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_related_posts_settings'
  	)));

  	$wp_customize->add_setting('forest_jungle_safari_related_time_icon',array(
	    'default' => 'fas fa-clock',
	    'sanitize_callback' => 'sanitize_text_field'
  	));
  	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  	$wp_customize,'forest_jungle_safari_related_time_icon',array(
	    'label' => __('Add Time Icon','forest-jungle-safari'),
	    'transport' => 'refresh',
	    'section' => 'forest_jungle_safari_related_posts_settings',
	    'setting' => 'forest_jungle_safari_related_time_icon',
	    'type'    => 'icon'
  	)));

  	$wp_customize->add_setting('forest_jungle_safari_related_post_meta_field_separator',array(
		'default'=> '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_related_post_meta_field_separator',array(
		'label'	=> __('Add Meta Separator','forest-jungle-safari'),
		'description' => __('Add the seperator for meta box. Example: "|", "/", etc.','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_related_posts_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'forest_jungle_safari_related_image_hide_show',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	));
  	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_related_image_hide_show', array(
		'label' => esc_html__( 'Show / Hide Featured Image','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_related_posts_settings'
  	)));

  	$wp_customize->add_setting( 'forest_jungle_safari_related_image_box_shadow', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_related_image_box_shadow', array(
		'label'       => esc_html__( 'Related post Image Box Shadow','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_related_posts_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

  	$wp_customize->add_setting('forest_jungle_safari_related_button_text',array(
		'default'=> esc_html__('Read More','forest-jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_related_button_text',array(
		'label'	=> esc_html__('Add Button Text','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => esc_html__( 'Read More', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_related_posts_settings',
		'type'=> 'text'
	));

	// Single Posts Settings
	$wp_customize->add_section( 'forest_jungle_safari_single_blog_settings', array(
		'title' => __( 'Single Post Settings', 'forest-jungle-safari' ),
		'panel' => 'forest_jungle_safari_blog_post_parent_panel',
	));

	$wp_customize->add_setting('forest_jungle_safari_single_postdate_icon',array(
		'default'	=> 'fas fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  $wp_customize,'forest_jungle_safari_single_postdate_icon',array(
		'label'	=> __('Add Post Date Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_single_blog_settings',
		'setting'	=> 'forest_jungle_safari_single_postdate_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'forest_jungle_safari_single_postdate',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	) );
	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_single_postdate',array(
		'label' => esc_html__( 'Show / Hide Date','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_single_blog_settings'
	)));

	$wp_customize->add_setting('forest_jungle_safari_single_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  $wp_customize,'forest_jungle_safari_single_author_icon',array(
		'label'	=> __('Add Author Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_single_blog_settings',
		'setting'	=> 'forest_jungle_safari_single_author_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'forest_jungle_safari_single_author',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	) );
	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_single_author',array(
    'label' => esc_html__( 'Show / Hide Author','forest-jungle-safari' ),
    'section' => 'forest_jungle_safari_single_blog_settings'
	)));

 	$wp_customize->add_setting('forest_jungle_safari_single_comments_icon',array(
		'default'	=> 'fa fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  $wp_customize,'forest_jungle_safari_single_comments_icon',array(
		'label'	=> __('Add Comments Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_single_blog_settings',
		'setting'	=> 'forest_jungle_safari_single_comments_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting( 'forest_jungle_safari_single_comments',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	) );
	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_single_comments',array(
    'label' => esc_html__( 'Show / Hide Comments','forest-jungle-safari' ),
    'section' => 'forest_jungle_safari_single_blog_settings'
	)));

	$wp_customize->add_setting('forest_jungle_safari_single_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
  $wp_customize,'forest_jungle_safari_single_time_icon',array(
		'label'	=> __('Add Time Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_single_blog_settings',
		'setting'	=> 'forest_jungle_safari_single_time_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting( 'forest_jungle_safari_single_time',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	) );
	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_single_time',array(
    'label' => esc_html__( 'Show / Hide Time','forest-jungle-safari' ),
    'section' => 'forest_jungle_safari_single_blog_settings'
	)));

	$wp_customize->add_setting( 'forest_jungle_safari_toggle_tags',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	));
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_toggle_tags', array(
		'label' => esc_html__( 'Show / Hide Tags','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_single_blog_settings'
  )));

	$wp_customize->add_setting( 'forest_jungle_safari_single_post_breadcrumb',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ) );
 	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_single_post_breadcrumb',array(
		'label' => esc_html__( 'Show / Hide Breadcrumb','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_single_blog_settings'
  )));

	// Single Posts Category
 	 $wp_customize->add_setting( 'forest_jungle_safari_single_post_category',array(
		'default' => true,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  	) );
	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_single_post_category',array(
		'label' => esc_html__( 'Show / Hide Category','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_single_blog_settings'
  	)));

	$wp_customize->add_setting('forest_jungle_safari_single_post_styling',array(
    'default' => 'Button',
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_single_post_styling',array(
	'description' => __('Change the styling of Category .','forest-jungle-safari'),
	'type' => 'select',
    'section' => 'forest_jungle_safari_single_blog_settings',
    'choices' => array(
        'Button' => __('Button','forest-jungle-safari'),
		'Underline' => __('Underline','forest-jungle-safari'),
		'Default' => __('Default','forest-jungle-safari'),
      ),
	) );

  	$wp_customize->add_setting( 'forest_jungle_safari_singlepost_image_box_shadow', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_singlepost_image_box_shadow', array(
		'label'       => esc_html__( 'Single post Image Box Shadow','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_single_blog_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('forest_jungle_safari_single_post_meta_field_separator',array(
		'default'=> '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_single_post_meta_field_separator',array(
		'label'	=> __('Add Meta Separator','forest-jungle-safari'),
		'description' => __('Add the seperator for meta box. Example: "|", "/", etc.','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_single_blog_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'forest_jungle_safari_single_blog_post_navigation_show_hide',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	));
	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_single_blog_post_navigation_show_hide', array(
	  'label' => esc_html__( 'Show / Hide Post Navigation','forest-jungle-safari' ),
	  'section' => 'forest_jungle_safari_single_blog_settings'
	)));

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

	$wp_customize->add_setting( 'forest_jungle_safari_single_post_breadcrumb',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
    ) );
 	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_single_post_breadcrumb',array(
		'label' => esc_html__( 'Show / Hide Breadcrumb','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_single_blog_settings'
  )));

	//navigation text
	$wp_customize->add_setting('forest_jungle_safari_single_blog_prev_navigation_text',array(
		'default'=> 'PREVIOUS',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_single_blog_prev_navigation_text',array(
		'label'	=> __('Post Navigation Text','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => __( 'PREVIOUS', 'forest-jungle-safari' ),
      ),
		'section'=> 'forest_jungle_safari_single_blog_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_single_blog_next_navigation_text',array(
		'default'=> 'NEXT',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_single_blog_next_navigation_text',array(
		'label'	=> __('Post Navigation Text','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => __( 'NEXT', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_single_blog_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_single_blog_comment_title',array(
		'default'=> 'Leave a Reply',
		'sanitize_callback'	=> 'sanitize_text_field'
	));

	$wp_customize->add_control('forest_jungle_safari_single_blog_comment_title',array(
		'label'	=> __('Add Comment Title','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => __( 'Leave a Reply', 'forest-jungle-safari' ),
    	),
		'section'=> 'forest_jungle_safari_single_blog_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_single_blog_comment_button_text',array(
		'default'=> 'Post Comment',
		'sanitize_callback'	=> 'sanitize_text_field'
	));

	$wp_customize->add_control('forest_jungle_safari_single_blog_comment_button_text',array(
		'label'	=> __('Add Comment Button Text','forest-jungle-safari'),
		'input_attrs' => array(
    'placeholder' => __( 'Post Comment', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_single_blog_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_single_blog_comment_width',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_single_blog_comment_width',array(
		'label'	=> __('Comment Form Width','forest-jungle-safari'),
		'description'	=> __('Enter a value in %. Example:50%','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => __( '100%', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_single_blog_settings',
		'type'=> 'text'
	));

	 // Grid layout setting
	$wp_customize->add_section( 'forest_jungle_safari_grid_layout_settings', array(
		'title' => __( 'Grid Layout Settings', 'forest-jungle-safari' ),
		'panel' => 'forest_jungle_safari_blog_post_parent_panel',
	));

	$wp_customize->add_setting('forest_jungle_safari_grid_postdate_icon',array(
		'default'	=> 'fas fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
        $wp_customize,'forest_jungle_safari_grid_postdate_icon',array(
		'label'	=> __('Add Post Date Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_grid_layout_settings',
		'setting'	=> 'forest_jungle_safari_grid_postdate_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting( 'forest_jungle_safari_grid_postdate',array(
	  'default' => 1,
	  'transport' => 'refresh',
	  'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ) );
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_grid_postdate',array(
    'label' => esc_html__( 'Show / Hide Post Date','forest-jungle-safari' ),
    'section' => 'forest_jungle_safari_grid_layout_settings'
  )));

	$wp_customize->add_setting('forest_jungle_safari_grid_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
        $wp_customize,'forest_jungle_safari_grid_author_icon',array(
		'label'	=> __('Add Author Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_grid_layout_settings',
		'setting'	=> 'forest_jungle_safari_grid_author_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'forest_jungle_safari_grid_author',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ) );
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_grid_author',array(
		'label' => esc_html__( 'Show / Hide Author','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_grid_layout_settings'
  )));

  $wp_customize->add_setting('forest_jungle_safari_grid_comments_icon',array(
		'default'	=> 'fa fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
        $wp_customize,'forest_jungle_safari_grid_comments_icon',array(
		'label'	=> __('Add Comments Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_grid_layout_settings',
		'setting'	=> 'forest_jungle_safari_grid_comments_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'forest_jungle_safari_grid_time',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ) );
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_grid_time',array(
		'label' => esc_html__( 'Show / Hide Time','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_grid_layout_settings'
  )));

  $wp_customize->add_setting('forest_jungle_safari_grid_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
        $wp_customize,'forest_jungle_safari_grid_time_icon',array(
		'label'	=> __('Add Time Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_grid_layout_settings',
		'setting'	=> 'forest_jungle_safari_grid_time_icon',
		'type'		=> 'icon'
	)));

  	$wp_customize->add_setting( 'forest_jungle_safari_grid_comments',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  	) );
  	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_grid_comments',array(
		'label' => esc_html__( 'Show / Hide Comments','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_grid_layout_settings'
  	)));

  	$wp_customize->add_setting( 'forest_jungle_safari_grid_image_hide_show',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	));
  	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_grid_image_hide_show', array(
		'label' => esc_html__( 'Show / Hide Featured Image','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_grid_layout_settings'
  	)));

 	$wp_customize->add_setting('forest_jungle_safari_grid_post_meta_field_separator',array(
		'default'=> '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_grid_post_meta_field_separator',array(
		'label'	=> __('Add Meta Separator','forest-jungle-safari'),
		'description' => __('Add the seperator for meta box. Example: "|", "/", etc.','forest-jungle-safari'),
		'section'=> 'forest_jungle_safari_grid_layout_settings',
		'type'=> 'text'
	));

  	$wp_customize->add_setting('forest_jungle_safari_display_grid_posts_settings',array(
	    'default' => 'Into Blocks',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_display_grid_posts_settings',array(
	    'type' => 'select',
	    'label' => __('Display Grid Posts','forest-jungle-safari'),
	    'section' => 'forest_jungle_safari_grid_layout_settings',
	    'choices' => array(
	    	'Into Blocks' => __('Into Blocks','forest-jungle-safari'),
	      'Without Blocks' => __('Without Blocks','forest-jungle-safari')
	      ),
	) );

	$wp_customize->add_setting('forest_jungle_safari_grid_button_text',array(
		'default'=> esc_html__('Read More','forest-jungle-safari'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_grid_button_text',array(
		'label'	=> esc_html__('Add Button Text','forest-jungle-safari'),
		'input_attrs' => array(
      'placeholder' => esc_html__( 'Read More', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_grid_layout_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_grid_excerpt_suffix',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_grid_excerpt_suffix',array(
		'label'	=> __('Add Excerpt Suffix','forest-jungle-safari'),
		'input_attrs' => array(
        'placeholder' => __( '[...]', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_grid_layout_settings',
		'type'=> 'text'
	));

  $wp_customize->add_setting('forest_jungle_safari_grid_excerpt_settings',array(
    'default' => 'Excerpt',
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_grid_excerpt_settings',array(
    'type' => 'select',
    'label' => esc_html__('Grid Post Content','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_grid_layout_settings',
    'choices' => array(
    	'Content' => esc_html__('Content','forest-jungle-safari'),
      'Excerpt' => esc_html__('Excerpt','forest-jungle-safari'),
      'No Content' => esc_html__('No Content','forest-jungle-safari')
    ),
	) );

  $wp_customize->add_setting( 'forest_jungle_safari_grid_featured_image_border_radius', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_grid_featured_image_border_radius', array(
		'label'       => esc_html__( 'Grid Featured Image Border Radius','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_grid_layout_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'forest_jungle_safari_grid_featured_image_box_shadow', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_grid_featured_image_box_shadow', array(
		'label'       => esc_html__( 'Grid Featured Image Box Shadow','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_grid_layout_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	//Other
	$wp_customize->add_panel( 'forest_jungle_safari_other_parent_panel', array(
		'title' => esc_html__( 'Other Settings', 'forest-jungle-safari' ),
		'panel' => 'forest_jungle_safari_panel_id',
		'priority' => 20,
	));

	// Layout
	$wp_customize->add_section( 'forest_jungle_safari_left_right', array(
  	'title' => esc_html__('General Settings', 'forest-jungle-safari'),
		'panel' => 'forest_jungle_safari_other_parent_panel'
	) );

	$wp_customize->add_setting('forest_jungle_safari_width_option',array(
    'default' => 'Full Width',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Image_Radio_Control($wp_customize, 'forest_jungle_safari_width_option', array(
    'type' => 'select',
    'label' => esc_html__('Width Layouts','forest-jungle-safari'),
    'description' => esc_html__('Here you can change the width layout of Website.','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_left_right',
    'choices' => array(
        'Full Width' => esc_url(get_template_directory_uri()).'/assets/images/full-width.png',
        'Wide Width' => esc_url(get_template_directory_uri()).'/assets/images/wide-width.png',
        'Boxed' => esc_url(get_template_directory_uri()).'/assets/images/boxed-width.png',
  ))));

	$wp_customize->add_setting('forest_jungle_safari_page_layout',array(
    'default' => 'One_Column',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_page_layout',array(
    'type' => 'select',
    'label' => esc_html__('Page Sidebar Layout','forest-jungle-safari'),
    'description' => esc_html__('Here you can change the sidebar layout for pages. ','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_left_right',
    'choices' => array(
        'Left_Sidebar' => esc_html__('Left Sidebar','forest-jungle-safari'),
        'Right_Sidebar' => esc_html__('Right Sidebar','forest-jungle-safari'),
        'One_Column' => esc_html__('One Column','forest-jungle-safari')
    ),
	) );

	$wp_customize->add_setting( 'forest_jungle_safari_single_page_breadcrumb1',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
    ) );
    $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_single_page_breadcrumb1',array(
		'label' => esc_html__( 'Show / Hide Page Breadcrumb','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_left_right'
    )));

	// Progress Bar
	$wp_customize->add_setting( 'forest_jungle_safari_progress_bar', array(
		'default'           => 0, 
		'transport'         => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization',
	));

	$wp_customize->add_control(
		new Forest_Jungle_Safari_Toggle_Switch_Custom_Control(
			$wp_customize,
			'forest_jungle_safari_progress_bar',
			array(
				'label'   => esc_html__( 'Show / Hide Progress Bar', 'forest-jungle-safari' ),
				'section' => 'forest_jungle_safari_left_right',
			)
		)
	);

    //Wow Animation
	$wp_customize->add_setting( 'forest_jungle_safari_animation',array(
	    'default' => 1,
	    'transport' => 'refresh',
	    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  	));
  	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_animation',array(
      'label' => esc_html__( 'Show / Hide Animations','forest-jungle-safari' ),
      'description' => __('Here you can disable overall site animation effect','forest-jungle-safari'),
	    'section' => 'forest_jungle_safari_left_right'
  	)));
	
    // Pre-Loader
	$wp_customize->add_setting( 'forest_jungle_safari_loader_enable',array(
	    'default' => 0,
	    'transport' => 'refresh',
	    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	  ) );
	  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_loader_enable',array(
	    'label' => esc_html__( 'Pre-Loader','forest-jungle-safari' ),
	    'section' => 'forest_jungle_safari_left_right'
	  )));

	$wp_customize->add_setting('forest_jungle_safari_preloader_bg_color', array(
		'default'           => '#67B94A',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'forest_jungle_safari_preloader_bg_color', array(
		'label'    => __('Pre-Loader Background Color', 'forest-jungle-safari'),
		'section'  => 'forest_jungle_safari_left_right',
	)));

	$wp_customize->add_setting('forest_jungle_safari_preloader_border_color', array(
		'default'           => '#ffffff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'forest_jungle_safari_preloader_border_color', array(
		'label'    => __('Pre-Loader Border Color', 'forest-jungle-safari'),
		'section'  => 'forest_jungle_safari_left_right',
	)));

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

	$wp_customize->add_setting('forest_jungle_safari_bradcrumbs_alignment',array(
        'default' => 'Left',
        'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_bradcrumbs_alignment',array(
        'type' => 'select',
        'label' => __('Bradcrumbs Alignment','forest-jungle-safari'),
        'section' => 'forest_jungle_safari_left_right',
        'choices' => array(
            'Left' => __('Left','forest-jungle-safari'),
            'Right' => __('Right','forest-jungle-safari'),
            'Center' => __('Center','forest-jungle-safari'),
        ),
	) );

	$wp_customize->add_setting( 'forest_jungle_safari_sticky_sidebar',array(
      'default' => 0,
      'transport' => 'refresh',
      'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
    ) );
    $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_sticky_sidebar',array(
      'label' => esc_html__( 'Show / Hide Sticky Sidebar','forest-jungle-safari' ),
      'section' => 'forest_jungle_safari_left_right'
    )));

    //404 Page Setting
	$wp_customize->add_section('forest_jungle_safari_404_page',array(
		'title'	=> __('404 Page Settings','forest-jungle-safari'),
		'panel' => 'forest_jungle_safari_other_parent_panel',
	));

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

	$wp_customize->add_control('forest_jungle_safari_404_page_title',array(
		'label'	=> __('Add Title','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( '404 Not Found', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_404_page',
		'type'=> 'text'
	));

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

	$wp_customize->add_control('forest_jungle_safari_404_page_content',array(
		'label'	=> __('Add Text','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( 'Looks like you have taken a wrong turn, Dont worry, it happens to the best of us.', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_404_page',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_404_page_button_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_404_page_button_text',array(
		'label'	=> __('Add Button Text','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( 'Go Back', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_404_page',
		'type'=> 'text'
	));

	//No Result Page Setting
	$wp_customize->add_section('forest_jungle_safari_no_results_page',array(
		'title'	=> __('No Results Page Settings','forest-jungle-safari'),
		'panel' => 'forest_jungle_safari_other_parent_panel',
	));

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

	$wp_customize->add_control('forest_jungle_safari_no_results_page_title',array(
		'label'	=> __('Add Title','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( 'Nothing Found', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_no_results_page',
		'type'=> 'text'
	));

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

	$wp_customize->add_control('forest_jungle_safari_no_results_page_content',array(
		'label'	=> __('Add Text','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_no_results_page',
		'type'=> 'text'
	));

	//Social Icon Setting
	$wp_customize->add_section('forest_jungle_safari_social_icon_settings',array(
		'title'	=> __('Sidebar Social Icons Settings','forest-jungle-safari'),
		'panel' => 'forest_jungle_safari_other_parent_panel',
	));

	$wp_customize->add_setting('forest_jungle_safari_social_icon_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_social_icon_font_size',array(
		'label'	=> __('Icon Font Size','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_social_icon_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_social_icon_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_social_icon_padding',array(
		'label'	=> __('Icon Padding','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_social_icon_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_social_icon_width',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_social_icon_width',array(
		'label'	=> __('Icon Width','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_social_icon_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_social_icon_height',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_social_icon_height',array(
		'label'	=> __('Icon Height','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_social_icon_settings',
		'type'=> 'text'
	));

	//Responsive Media Settings
	$wp_customize->add_section('forest_jungle_safari_responsive_media',array(
		'title'	=> esc_html__('Responsive Media','forest-jungle-safari'),
		'panel' => 'forest_jungle_safari_other_parent_panel',
	));

	$wp_customize->add_setting( 'forest_jungle_safari_stickyheader_hide_show',array(
	    'default' => 0,
	    'transport' => 'refresh',
	    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  	));  
  	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_stickyheader_hide_show',array(
    	'label' => esc_html__( 'Show / Hide Sticky Header','forest-jungle-safari' ),
    	'section' => 'forest_jungle_safari_responsive_media'
  	)));

	$wp_customize->add_setting( 'forest_jungle_safari_responsive_preloader_hide',array(
        'default' => false,
        'transport' => 'refresh',
        'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
    ) );
    $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_responsive_preloader_hide',array(
        'label' => esc_html__( 'Show / Hide Preloader','forest-jungle-safari' ),
        'section' => 'forest_jungle_safari_responsive_media'
    )));

	  $wp_customize->add_setting( 'forest_jungle_safari_stickyheader_hide_show',array(
	    'default' => 0,
	    'transport' => 'refresh',
	    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	  ));  
	  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_stickyheader_hide_show',array(
	    'label' => esc_html__( 'Sticky Header','forest-jungle-safari' ),
	    'section' => 'forest_jungle_safari_responsive_media'
	  )));

	  	$wp_customize->add_setting( 'forest_jungle_safari_resp_slider_hide_show',array(
	      'default' => 1,
	      'transport' => 'refresh',
	      'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	    ));  
	    $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_resp_slider_hide_show',array(
	      'label' => esc_html__( 'Show / Hide Slider','forest-jungle-safari' ),
	      'section' => 'forest_jungle_safari_responsive_media'
	    )));

	    $wp_customize->add_setting( 'forest_jungle_safari_sidebar_hide_show',array(
	      'default' => 1,
	      'transport' => 'refresh',
	      'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	    ));  
	    $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_sidebar_hide_show',array(
	      'label' => esc_html__( 'Show / Hide Sidebar','forest-jungle-safari' ),
	      'section' => 'forest_jungle_safari_responsive_media'
	    )));

		$wp_customize->add_setting( 'forest_jungle_safari_resp_scroll_top_hide_show',array(
	      'default' => 1,
	      'transport' => 'refresh',
	      'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
	    ));  
	    $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_resp_scroll_top_hide_show',array(
	      'label' => esc_html__( 'Show / Hide Scroll To Top','forest-jungle-safari' ),
	      'section' => 'forest_jungle_safari_responsive_media'
	    )));

  	$wp_customize->add_setting('forest_jungle_safari_res_open_menu_icon',array(
		'default'	=> 'fas fa-bars',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
        $wp_customize,'forest_jungle_safari_res_open_menu_icon',array(
		'label'	=> __('Add Open Menu Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_responsive_media',
		'setting'	=> 'forest_jungle_safari_res_open_menu_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('forest_jungle_safari_res_close_menu_icon',array(
		'default'	=> 'fas fa-times',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Forest_Jungle_Safari_Fontawesome_Icon_Chooser(
        $wp_customize,'forest_jungle_safari_res_close_menu_icon',array(
		'label'	=> __('Add Close Menu Icon','forest-jungle-safari'),
		'transport' => 'refresh',
		'section'	=> 'forest_jungle_safari_responsive_media',
		'setting'	=> 'forest_jungle_safari_res_close_menu_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('forest_jungle_safari_resp_menu_toggle_btn_bg_color', array(
		'default'           => '#1F2029',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'forest_jungle_safari_resp_menu_toggle_btn_bg_color', array(
		'label'    => __('Toggle Button Bg Color', 'forest-jungle-safari'),
		'section'  => 'forest_jungle_safari_responsive_media',
	)));

  //Woocommerce settings
	$wp_customize->add_section('forest_jungle_safari_woocommerce_section', array(
		'title'    => __('WooCommerce Layout', 'forest-jungle-safari'),
		'priority' => null,
		'panel'    => 'woocommerce',
	));

	//Selective Refresh
	$wp_customize->selective_refresh->add_partial( 'forest_jungle_safari_woocommerce_shop_page_sidebar', array( 'selector' => '.post-type-archive-product #sidebar',
		'render_callback' => 'forest_jungle_safari_customize_partial_forest_jungle_safari_woocommerce_shop_page_sidebar', ) );

    //Woocommerce Shop Page Sidebar
	$wp_customize->add_setting( 'forest_jungle_safari_woocommerce_shop_page_sidebar',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ) );
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_woocommerce_shop_page_sidebar',array(
		'label' => esc_html__( 'Show / Hide Shop Page Sidebar','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_woocommerce_section'
  )));

   $wp_customize->add_setting('forest_jungle_safari_shop_page_layout',array(
    'default' => 'Right Sidebar',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_shop_page_layout',array(
    'type' => 'select',
    'label' => __('Shop Page Sidebar Layout','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_woocommerce_section',
    'choices' => array(
        'Left Sidebar' => __('Left Sidebar','forest-jungle-safari'),
        'Right Sidebar' => __('Right Sidebar','forest-jungle-safari'),
    ),
	) );

   //Selective Refresh
	$wp_customize->selective_refresh->add_partial( 'forest_jungle_safari_woocommerce_single_product_page_sidebar', array( 'selector' => '.single-product #sidebar',
		'render_callback' => 'forest_jungle_safari_customize_partial_forest_jungle_safari_woocommerce_single_product_page_sidebar', ) );

    //Woocommerce Single Product page Sidebar
	$wp_customize->add_setting( 'forest_jungle_safari_woocommerce_single_product_page_sidebar',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
   ) );
 	$wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_woocommerce_single_product_page_sidebar',array(
		'label' => esc_html__( 'Show / Hide Single Product Sidebar','forest-jungle-safari' ),
		'section' => 'forest_jungle_safari_woocommerce_section'
  )));

   $wp_customize->add_setting('forest_jungle_safari_single_product_layout',array(
    'default' => 'Right Sidebar',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_single_product_layout',array(
    'type' => 'select',
    'label' => __('Single Product Sidebar Layout','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_woocommerce_section',
    'choices' => array(
        'Left Sidebar' => __('Left Sidebar','forest-jungle-safari'),
        'Right Sidebar' => __('Right Sidebar','forest-jungle-safari'),
    ),
	) );

	//Products per page
    $wp_customize->add_setting('forest_jungle_safari_products_per_page',array(
		'default'=> '9',
		'sanitize_callback'	=> 'forest_jungle_safari_sanitize_float'
	));
	$wp_customize->add_control('forest_jungle_safari_products_per_page',array(
		'label'	=> __('Products Per Page','forest-jungle-safari'),
		'description' => __('Display on shop page','forest-jungle-safari'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'forest_jungle_safari_woocommerce_section',
		'type'=> 'number',
	));

    //Products per row
    $wp_customize->add_setting('forest_jungle_safari_products_per_row',array(
		'default'=> '4',
		'sanitize_callback'	=> 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_products_per_row',array(
		'label'	=> __('Products Per Row','forest-jungle-safari'),
		'description' => __('Display on shop page','forest-jungle-safari'),
		'choices' => array(
            '2' => '2',
			'3' => '3',
			'4' => '4',
        ),
		'section'=> 'forest_jungle_safari_woocommerce_section',
		'type'=> 'select',
		));

	//Products padding
	$wp_customize->add_setting('forest_jungle_safari_products_padding_top_bottom',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_products_padding_top_bottom',array(
		'label'	=> __('Products Padding Top Bottom','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
        'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_woocommerce_section',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_products_padding_left_right',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_products_padding_left_right',array(
		'label'	=> __('Products Padding Left Right','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_woocommerce_section',
		'type'=> 'text'
	));

	//Products box shadow
	$wp_customize->add_setting( 'forest_jungle_safari_products_box_shadow', array(
		'default'              => '',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_products_box_shadow', array(
		'label'       => esc_html__( 'Products Box Shadow','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_woocommerce_section',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	//Products border radius
    $wp_customize->add_setting( 'forest_jungle_safari_products_border_radius', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_products_border_radius', array(
		'label'       => esc_html__( 'Products Border Radius','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_woocommerce_section',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'forest_jungle_safari_products_button_border_radius', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_products_button_border_radius', array(
		'label'       => esc_html__( 'Products Button Border Radius','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_woocommerce_section',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('forest_jungle_safari_products_btn_padding_top_bottom',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_products_btn_padding_top_bottom',array(
		'label'	=> __('Products Button Padding Top Bottom','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
        'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_woocommerce_section',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_products_btn_padding_left_right',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_products_btn_padding_left_right',array(
		'label'	=> __('Products Button Padding Left Right','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
        'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_woocommerce_section',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_woocommerce_sale_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_woocommerce_sale_font_size',array(
		'label'	=> __('Sale Font Size','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
        'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_woocommerce_section',
		'type'=> 'text'
	));

	//Products Sale Badge
	$wp_customize->add_setting('forest_jungle_safari_woocommerce_sale_position',array(
    'default' => 'right',
    'sanitize_callback' => 'forest_jungle_safari_sanitize_choices'
	));
	$wp_customize->add_control('forest_jungle_safari_woocommerce_sale_position',array(
    'type' => 'select',
    'label' => __('Sale Badge Position','forest-jungle-safari'),
    'section' => 'forest_jungle_safari_woocommerce_section',
    'choices' => array(
        'left' => __('Left','forest-jungle-safari'),
        'right' => __('Right','forest-jungle-safari'),
    ),
	) );

	$wp_customize->add_setting('forest_jungle_safari_woocommerce_sale_padding_top_bottom',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_woocommerce_sale_padding_top_bottom',array(
		'label'	=> __('Sale Padding Top Bottom','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_woocommerce_section',
		'type'=> 'text'
	));

	$wp_customize->add_setting('forest_jungle_safari_woocommerce_sale_padding_left_right',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('forest_jungle_safari_woocommerce_sale_padding_left_right',array(
		'label'	=> __('Sale Padding Left Right','forest-jungle-safari'),
		'description'	=> __('Enter a value in pixels. Example:20px','forest-jungle-safari'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'forest-jungle-safari' ),
        ),
		'section'=> 'forest_jungle_safari_woocommerce_section',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'forest_jungle_safari_woocommerce_sale_border_radius', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'forest_jungle_safari_sanitize_number_range'
	) );
	$wp_customize->add_control( 'forest_jungle_safari_woocommerce_sale_border_radius', array(
		'label'       => esc_html__( 'Sale Border Radius','forest-jungle-safari' ),
		'section'     => 'forest_jungle_safari_woocommerce_section',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	// Related Product
  $wp_customize->add_setting( 'forest_jungle_safari_related_product_show_hide',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'forest_jungle_safari_switch_sanitization'
  ) );
  $wp_customize->add_control( new Forest_Jungle_Safari_Toggle_Switch_Custom_Control( $wp_customize, 'forest_jungle_safari_related_product_show_hide',array(
    'label' => esc_html__( 'Show / Hide Related product','forest-jungle-safari' ),
    'section' => 'forest_jungle_safari_woocommerce_section'
  )));

}

add_action( 'customize_register', 'forest_jungle_safari_customize_register' );

load_template( trailingslashit( get_template_directory() ) . '/inc/logo/logo-resizer.php' );

/**
 * Singleton class for handling the theme's customizer integration.
 *
 * @since  1.0.0
 * @access public
 */
final class Forest_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( 'Forest_Jungle_Safari_Customize_Section_Pro' );

		// Register sections.
		$manager->add_section( new Forest_Jungle_Safari_Customize_Section_Pro( $manager,'forest_jungle_safari_go_pro', array(
			'priority'   => 1,
			'title'    => esc_html__( 'FOREST PRO', 'forest-jungle-safari' ),
			'pro_text' => esc_html__( 'UPGRADE PRO', 'forest-jungle-safari' ),
			'pro_url'  => esc_url('https://www.vwthemes.com/products/forest-wordpress-theme'),
		) )	);

		// Register sections.
		$manager->add_section(new Forest_Jungle_Safari_Customize_Section_Pro($manager,'forest_jungle_safari_get_started_link',array(
			'priority'   => 1,
			'title'    => esc_html__( 'DOCUMENTATION', 'forest-jungle-safari' ),
			'pro_text' => esc_html__( 'DOCS', 'forest-jungle-safari' ),
			'pro_url'  => esc_url('https://preview.vwthemesdemo.com/docs/free-forest-jungle-safari/'),
		)));

		$manager->add_section(new Forest_Jungle_Safari_Customize_Section_Pro($manager,'forest_jungle_safari_live_demo_link',array(
			'priority'   => 1,
			'title'    => esc_html__( 'LIVE DEMO', 'forest-jungle-safari' ),
			'pro_text' => esc_html__( 'LIVE DEMO', 'forest-jungle-safari' ),
			'pro_url'  => esc_url('https://www.vwthemes.net/forest-jungle-safari/'),
		)));

	}

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

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

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

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