<?php
/**
 * Book Publisher Agency   Theme Customizer
 *
 * @package Book Publisher Agency
 */

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

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

function book_publisher_agency_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' => 'book_publisher_agency_Customize_partial_blogname',
	));

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

	// add home page setting pannel
	$wp_customize->add_panel( 'book_publisher_agency_panel_id', array(
		'capability' => 'edit_theme_options',
		'theme_supports' => '',
		'title' => esc_html__( 'Frontpage Options', 'book-publisher-agency' ),
		'priority' => 10,
	));

	//Menus Settings
	$wp_customize->add_section( 'book_publisher_agency_menu_section' , array(
    	'title' => __( 'Menus Settings', 'book-publisher-agency' ),
		'panel' => 'book_publisher_agency_panel_id'
	) );

	$wp_customize->add_setting('book_publisher_agency_navigation_menu_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_navigation_menu_font_size',array(
		'label'	=> __('Menus Font Size','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_menu_section',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_navigation_menu_font_weight',array(
        'default' => 600,
        'transport' => 'refresh',
        'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_navigation_menu_font_weight',array(
        'type' => 'select',
        'label' => __('Menus Font Weight','book-publisher-agency'),
        'section' => 'book_publisher_agency_menu_section',
        'choices' => array(
        	'100' => __('100','book-publisher-agency'),
            '200' => __('200','book-publisher-agency'),
            '300' => __('300','book-publisher-agency'),
            '400' => __('400','book-publisher-agency'),
            '500' => __('500','book-publisher-agency'),
            '600' => __('600','book-publisher-agency'),
            '700' => __('700','book-publisher-agency'),
            '800' => __('800','book-publisher-agency'),
            '900' => __('900','book-publisher-agency'),
        ),
	) );

	// text trasform
	$wp_customize->add_setting('book_publisher_agency_menu_text_transform',array(
		'default'=> 'Uppercase',
		'sanitize_callback'	=> 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_menu_text_transform',array(
		'type' => 'radio',
		'label'	=> __('Menus Text Transform','book-publisher-agency'),
		'choices' => array(
            'Uppercase' => __('Uppercase','book-publisher-agency'),
            'Capitalize' => __('Capitalize','book-publisher-agency'),
            'Lowercase' => __('Lowercase','book-publisher-agency'),
        ),
		'section'=> 'book_publisher_agency_menu_section',
	));

	$wp_customize->add_setting('book_publisher_agency_menus_item_style',array(
        'default' => '',
        'transport' => 'refresh',
        'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_menus_item_style',array(
        'type' => 'select',
        'section' => 'book_publisher_agency_menu_section',
		'label' => __('Menu Item Hover Style','book-publisher-agency'),
		'choices' => array(
            'None' => __('None','book-publisher-agency'),
            'Zoom In' => __('Zoom In','book-publisher-agency'),
        ),
	) );

	$wp_customize->add_setting('book_publisher_agency_header_menus_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'book_publisher_agency_header_menus_color', array(
		'label'    => __('Menus Color', 'book-publisher-agency'),
		'section'  => 'book_publisher_agency_menu_section',
	)));

	$wp_customize->add_setting('book_publisher_agency_header_menus_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'book_publisher_agency_header_menus_hover_color', array(
		'label'    => __('Menus Hover Color', 'book-publisher-agency'),
		'section'  => 'book_publisher_agency_menu_section',
	)));

	$wp_customize->add_setting('book_publisher_agency_header_submenus_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'book_publisher_agency_header_submenus_color', array(
		'label'    => __('Sub Menus Color', 'book-publisher-agency'),
		'section'  => 'book_publisher_agency_menu_section',
	)));

	$wp_customize->add_setting('book_publisher_agency_header_submenus_hover_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'book_publisher_agency_header_submenus_hover_color', array(
		'label'    => __('Sub Menus Hover Color', 'book-publisher-agency'),
		'section'  => 'book_publisher_agency_menu_section',
	)));

	// Top Bar
	$wp_customize->add_section( 'book_publisher_agency_top_bar' , array(
    	'title' => esc_html__( 'Top Bar', 'book-publisher-agency' ),
		'panel' => 'book_publisher_agency_panel_id'
	) );

	$wp_customize->add_setting( 'book_publisher_agency_topbar_hide_show',array(
	    'default' => 1,
	    'transport' => 'refresh',
	    'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	));
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_topbar_hide_show',array(
		'label' => esc_html__( 'Show / Hide Topbar','book-publisher-agency' ),
		'section' => 'book_publisher_agency_top_bar'
	)));

	$wp_customize->add_setting('book_publisher_agency_topbar_add_text_icon',array(
		'default'	=> 'me-2 fa-solid fa-bullhorn',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_topbar_add_text_icon',array(
		'label'	=> __('Add Topbar Text Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_top_bar',
		'setting'	=> 'book_publisher_agency_topbar_add_text_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('book_publisher_agency_topbar_add_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_topbar_add_text',array(
		'label'	=> esc_html__('Add Topbar Text','book-publisher-agency'),
		'input_attrs' => array(
        'placeholder' => esc_html__( 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_top_bar',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_social_icons',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_social_icons',array(
		'label' =>  __('Steps to setup social icons','book-publisher-agency'),
		'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>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_top_bar',
		'type'=> 'hidden'
	));

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

	$wp_customize->add_setting( 'book_publisher_agency_header_search',array(
    	'default' => 1,
      	'transport' => 'refresh',
      	'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ));
    $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_header_search',array(
      	'label' => esc_html__( 'Show / Hide Search','book-publisher-agency' ),
      	'section' => 'book_publisher_agency_top_bar'
    )));

	$wp_customize->add_setting('book_publisher_agency_opensearch_icon',array(
		'default'	=> 'fas fa-search',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_opensearch_icon',array(
		'label'	=> __('Add Open Search Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_top_bar',
		'setting'	=> 'book_publisher_agency_opensearch_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('book_publisher_agency_closesearch_icon',array(
		'default'	=> 'fa fa-window-close',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_closesearch_icon',array(
		'label'	=> __('Add Close Search Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_top_bar',
		'setting'	=> 'book_publisher_agency_closesearch_icon',
		'type'		=> 'icon'
	)));

    //Sticky Header
		$wp_customize->add_setting( 'book_publisher_agency_sticky_header',array(
        'default' => 0,
        'transport' => 'refresh',
        'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ));
    $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_sticky_header',array(
        'label' => esc_html__( 'Sticky Header','book-publisher-agency' ),
        'section' => 'book_publisher_agency_top_bar'
    )));

    $wp_customize->add_setting('book_publisher_agency_sticky_header_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_sticky_header_padding',array(
		'label'	=> __('Sticky Header Padding','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_top_bar',
		'type'=> 'text'
	));

	//Social links
	$wp_customize->add_section(
		'book_publisher_agency_social_links', array(
			'title'		=>	__('Social Links', 'book-publisher-agency'),
			'priority'	=>	null,
			'panel'		=>	'book_publisher_agency_panel_id'
		));

	$wp_customize->add_setting('book_publisher_agency_social_icons',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_social_icons',array(
		'label' =>  __('Steps to setup social icons','book-publisher-agency'),
		'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>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_social_links',
		'type'=> 'hidden'
	));
	$wp_customize->add_setting('book_publisher_agency_social_icon_btn',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_social_icon_btn',array(
		'description' => "<a target='_blank' href='". admin_url('widgets.php') ." '>Setup Social Icons</a>",
		'section'=> 'book_publisher_agency_social_links',
		'type'=> 'hidden'
	));

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

	$wp_customize->add_setting( 'book_publisher_agency_slider_hide_show',array(
	    'default' => 1,
	    'transport' => 'refresh',
	    'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	));
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_slider_hide_show',array(
		'label' => esc_html__( 'Show / Hide Slider','book-publisher-agency' ),
		'section' => 'book_publisher_agency_slidersettings'
	)));

	$wp_customize->add_setting('book_publisher_agency_slider_image',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'book_publisher_agency_slider_image',array(
		'label' => __('Slider Background Image','book-publisher-agency'),
		'section' => 'book_publisher_agency_slidersettings',
		'description' => __('Background Image size (1200px x 600px)','book-publisher-agency'),
	)));

	$wp_customize->add_setting('book_publisher_agency_slide_number',array(
		'default'	=> '',
		'sanitize_callback'	=> 'book_publisher_agency_sanitize_choices',
	));
	$wp_customize->add_control('book_publisher_agency_slide_number',array(
		'label'	=> __('Number of slides to show','book-publisher-agency'),
		'description' => __('Add Max 3 number Of slide and refresh page','book-publisher-agency'),
		'section'	=> 'book_publisher_agency_slidersettings',
		'type' => 'select',
		'choices' => array(
	      '1' => '1',
	      '2' => '2',
	      '3' => '3',
	),
	));

	//This is onload transaction effect
	$wp_customize->add_setting('book_publisher_agency_slider_animation',array(
		'default' => '',
		'capability' => 'edit_theme_options',
		'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_slider_animation', array(
		'section'  => 'book_publisher_agency_slidersettings',
		'label'    => __( 'Slider Content Onload Transaction Effect','book-publisher-agency'),
		'type'     => 'select',
		'choices'  => array(
			'bounceInLeft' => __('bounceInLeft', 'book-publisher-agency'),
			'bounceInRight' => __('bounceInRight', 'book-publisher-agency'),
			'bounceInUp' => __('bounceInUp', 'book-publisher-agency'),
			'bounceInDown' => __('bounceInDown', 'book-publisher-agency'),
			'zoomIn' => __('zoomIn', 'book-publisher-agency'),
			'zoomOut' => __('zoomOut', 'book-publisher-agency'),
			'fadeInLeft' => __('fadeInLeft', 'book-publisher-agency'),
			'fadeInRight' => __('fadeInRight', 'book-publisher-agency'),
			'fadeInUp' => __('fadeInUp', 'book-publisher-agency'),
			'fadeInDown' => __('fadeInDown', 'book-publisher-agency'),
			'flip' => __('flip', 'book-publisher-agency'),
			'none' => __('none', 'book-publisher-agency')
		)
	));

	$book_publisher_agency_count =  get_theme_mod('book_publisher_agency_slide_number');

	for($book_publisher_agency_i=1; $book_publisher_agency_i<=$book_publisher_agency_count; $book_publisher_agency_i++) {

		$wp_customize->add_setting('book_publisher_agency_banner_background_image_sec'.$book_publisher_agency_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'esc_url_raw',
		));
		$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'book_publisher_agency_banner_background_image_sec'.$book_publisher_agency_i,array(
	      'label' => __('Slider Image','book-publisher-agency'),
	      'section' => 'book_publisher_agency_slidersettings',
	      'description' => __('Image size (636px x 494px)','book-publisher-agency'),
		)));

		$wp_customize->add_setting('book_publisher_agency_designation_small_text'.$book_publisher_agency_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('book_publisher_agency_designation_small_text'.$book_publisher_agency_i,array(
			'label'	=> __('Slider Small Text','book-publisher-agency'),
			'section'	=> 'book_publisher_agency_slidersettings',
			'type'		=> 'text',
			'input_attrs' => array(
	     	 'placeholder' => __( 'PUBLISHING HOUSE', 'book-publisher-agency' ),
	      ),
		));

	 	$wp_customize->add_setting('book_publisher_agency_tagline_title'.$book_publisher_agency_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('book_publisher_agency_tagline_title'.$book_publisher_agency_i,array(
			'label'	=> __('Slider Title','book-publisher-agency'),
			'section'	=> 'book_publisher_agency_slidersettings',
			'input_attrs' => array(
	        'placeholder' => __( 'The new novel From John Verma', 'book-publisher-agency' ),
	        ),
			'type'	=> 'text'
		));

	 	$wp_customize->add_setting('book_publisher_agency_designation_text'.$book_publisher_agency_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('book_publisher_agency_designation_text'.$book_publisher_agency_i,array(
			'label'	=> __('Slider Content','book-publisher-agency'),
			'section'	=> 'book_publisher_agency_slidersettings',
			'type'		=> 'text'
		));

		$wp_customize->add_setting('book_publisher_agency_slider_button_label1'.$book_publisher_agency_i,array(
			'default' => '',
			'sanitize_callback' => 'sanitize_text_field'
		));
		$wp_customize->add_control('book_publisher_agency_slider_button_label1'.$book_publisher_agency_i,array(
			'label' => __('Button','book-publisher-agency'),
			'section' => 'book_publisher_agency_slidersettings',
			'setting' => 'book_publisher_agency_slider_button_label1',
			'type' => 'text',
			'input_attrs' => array(
      	'placeholder' => __( 'READ MORE', 'book-publisher-agency' ),
      ),
		));

		$wp_customize->add_setting('book_publisher_agency_slider_button_url1'.$book_publisher_agency_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'esc_url_raw'
		));

		$wp_customize->add_control('book_publisher_agency_slider_button_url1'.$book_publisher_agency_i,array(
			'label'	=> __('Add Button URL','book-publisher-agency'),
			'section'	=> 'book_publisher_agency_slidersettings',
			'setting'	=> 'book_publisher_agency_slider_button_url1',
			'type'	=> 'url'
		));

		$wp_customize->add_setting('book_publisher_agency_banner_button_label2'.$book_publisher_agency_i,array(
			'default' => '',
			'sanitize_callback' => 'sanitize_text_field'
		));
		$wp_customize->add_control('book_publisher_agency_banner_button_label2'.$book_publisher_agency_i,array(
			'label' => __('Button','book-publisher-agency'),
			'section' => 'book_publisher_agency_slidersettings',
			'setting' => 'book_publisher_agency_banner_button_label2',
			'type' => 'text',
			'input_attrs' => array(
     	 'placeholder' => __( 'CONTACT US', 'book-publisher-agency' ),
      ),
		));

		$wp_customize->add_setting('book_publisher_agency_top_button_url2'.$book_publisher_agency_i,array(
			'default'	=> '',
			'sanitize_callback'	=> 'esc_url_raw'
		));

		$wp_customize->add_control('book_publisher_agency_top_button_url2'.$book_publisher_agency_i,array(
			'label'	=> __('Add Button URL','book-publisher-agency'),
			'section'	=> 'book_publisher_agency_slidersettings',
			'setting'	=> 'book_publisher_agency_top_button_url2',
			'type'	=> 'url'
		));
	}

	$wp_customize->add_setting( 'book_publisher_agency_slider_arrow_hide_show',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	));
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_slider_arrow_hide_show',array(
		'label' => esc_html__( 'Show / Hide Slider Arrows','book-publisher-agency' ),
		'section' => 'book_publisher_agency_slidersettings',
	)));

	$wp_customize->add_setting('book_publisher_agency_slider_prev_icon',array(
		'default'	=> 'fas fa-chevron-left',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_slider_prev_icon',array(
		'label'	=> __('Add Slider Prev Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_slidersettings',
		'setting'	=> 'book_publisher_agency_slider_prev_icon',
		'type'		=> 'icon',
	)));

	$wp_customize->add_setting('book_publisher_agency_slider_next_icon',array(
		'default'	=> 'fas fa-chevron-right',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_slider_next_icon',array(
		'label'	=> __('Add Slider Next Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_slidersettings',
		'setting'	=> 'book_publisher_agency_slider_next_icon',
		'type'		=> 'icon',
	)));

	$wp_customize->add_setting('book_publisher_agency_slider_image_overlay_color', array(
		'default'           => '#000',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'book_publisher_agency_slider_image_overlay_color', array(
			'label'    => __('Slider Image Overlay Color', 'book-publisher-agency'),
			'section'  => 'book_publisher_agency_slidersettings',
	)));

	//Opacity
	$wp_customize->add_setting('book_publisher_agency_slider_opacity_color',array(
	  'default'              => 0.7,
	  'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));

	$wp_customize->add_control( 'book_publisher_agency_slider_opacity_color', array(
		'label'       => esc_html__( 'Slider Image Opacity','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_slidersettings',
		'type'        => 'select',
		'settings'    => 'book_publisher_agency_slider_opacity_color',
		'choices' => array(
	      '0' =>  __('0','book-publisher-agency'),
	      '0.1' =>  __('0.1','book-publisher-agency'),
	      '0.2' =>  __('0.2','book-publisher-agency'),
	      '0.3' =>  __('0.3','book-publisher-agency'),
	      '0.4' =>  __('0.4','book-publisher-agency'),
	      '0.5' =>  __('0.5','book-publisher-agency'),
	      '0.6' =>  __('0.6','book-publisher-agency'),
	      '0.7' =>  __('0.7','book-publisher-agency'),
	      '0.8' =>  __('0.8','book-publisher-agency'),
	      '0.9' =>  __('0.9','book-publisher-agency')
	),
	));

	//Contact Section
	$wp_customize->add_section( 'book_publisher_agency_contact', array(
    	'title'      => __( 'Contact Section', 'book-publisher-agency' ),
		'panel' => 'book_publisher_agency_panel_id',
		'description' => __('For more options of Contact section </br> <a class="go-pro-btn" target="blank" href="https://www.vwthemes.com/products/publisher-wordpress-theme">GET PRO</a>','book-publisher-agency'),
	) );

	$wp_customize->add_setting('book_publisher_agency_contact_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_contact_text',array(
		'label'	=> __('Contact Text','book-publisher-agency'),
		'section'	=> 'book_publisher_agency_contact',
		'type'		=> 'text',
		'input_attrs' => array(
      'placeholder' => __( 'For Any Help or Queries Please Contact Us', 'book-publisher-agency' ),
      ),
	));

	$wp_customize->add_setting('book_publisher_agency_phone_icon',array(
		'default'	=> 'fa-solid fa-phone',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_phone_icon',array(
		'label'	=> __('Add Phone Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_contact',
		'setting'	=> 'book_publisher_agency_phone_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('book_publisher_agency_phone_number',array(
		'default'=> '',
		'sanitize_callback'	=> 'book_publisher_agency_sanitize_phone_number'
	));
	$wp_customize->add_control('book_publisher_agency_phone_number',array(
		'label'	=> __('Add Phone Number','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( '+00 987 654 1230', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_contact',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_email_address_icon',array(
		'default'	=> 'fa-solid fa-envelope-open-text',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_email_address_icon',array(
		'label'	=> __('Add Email Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_contact',
		'setting'	=> 'book_publisher_agency_email_address_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('book_publisher_agency_email_address',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_email'
	));
	$wp_customize->add_control('book_publisher_agency_email_address',array(
		'label'	=> __('Add Email Address','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( 'xyz123@gmail.com', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_contact',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_trusted_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_trusted_text',array(
		'label'	=> __('Trusted Text','book-publisher-agency'),
		'section'	=> 'book_publisher_agency_contact',
		'type'		=> 'text',
		'input_attrs' => array(
      'placeholder' => __( '(TRUSTED BY 5M+ BUSINESS)', 'book-publisher-agency' ),
      ),
	));

	// book

	$wp_customize->add_setting('book_publisher_agency_book_icon',array(
		'default'	=> 'fa-solid fa-book',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_book_icon',array(
		'label'	=> __('Add Book Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_contact',
		'setting'	=> 'book_publisher_agency_book_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('book_publisher_agency_book',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_book',array(
		'label'	=> __('Add Book Text','book-publisher-agency'),
		'section'	=> 'book_publisher_agency_contact',
		'type'		=> 'text',
		'input_attrs' => array(
            'placeholder' => __( 'Book', 'book-publisher-agency' ),
        ),
	));

	// creative

	$wp_customize->add_setting('book_publisher_agency_creative_icon',array(
		'default'	=> 'fa-solid fa-book-open-reader',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_creative_icon',array(
		'label'	=> __('Add Creative Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_contact',
		'setting'	=> 'book_publisher_agency_creative_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('book_publisher_agency_creative',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_creative',array(
		'label'	=> __('Add Creative Text','book-publisher-agency'),
		'section'	=> 'book_publisher_agency_contact',
		'type'		=> 'text',
		'input_attrs' => array(
            'placeholder' => __( 'Creative', 'book-publisher-agency' ),
        ),
	));

	// lake book

	$wp_customize->add_setting('book_publisher_agency_lakebook_icon',array(
		'default'	=> 'fa-solid fa-book-open',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_lakebook_icon',array(
		'label'	=> __('Add Lake Book Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_contact',
		'setting'	=> 'book_publisher_agency_lakebook_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('book_publisher_agency_lakebook',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_lakebook',array(
		'label'	=> __('Add Lake Book Text','book-publisher-agency'),
		'section'	=> 'book_publisher_agency_contact',
		'type'		=> 'text',
		'input_attrs' => array(
            'placeholder' => __( 'Lake Book', 'book-publisher-agency' ),
        ),
	));

	// publish
	$wp_customize->add_setting('book_publisher_agency_publish_icon',array(
		'default'	=> 'fa-solid fa-book-journal-whills',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_publish_icon',array(
		'label'	=> __('Add Book Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_contact',
		'setting'	=> 'book_publisher_agency_publish_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('book_publisher_agency_publish',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_publish',array(
		'label'	=> __('Add Publish Text','book-publisher-agency'),
		'section'	=> 'book_publisher_agency_contact',
		'type'		=> 'text',
		'input_attrs' => array(
            'placeholder' => __( 'Publish', 'book-publisher-agency' ),
        ),
	));

	//About Us Section
	$wp_customize->add_section('book_publisher_agency_aboutus', array(
		'title'       => __('About Us Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_aboutus_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_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>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_aboutus',
		'type'=> 'hidden'
	));

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

	//our records Section
	$wp_customize->add_section('book_publisher_agency_our_records', array(
		'title'       => __('Our Records Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_our_records_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_our_records_text',array(
		'description' => __('<p>1. More options for our records section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for our records section.</p>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_our_records',
		'type'=> 'hidden'
	));

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

	//Our Services Section
	$wp_customize->add_section('book_publisher_agency_our_services', array(
		'title'       => __('Our Services Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_our_services_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_our_services_text',array(
		'description' => __('<p>1. More options for our services section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for our services section.</p>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_our_services',
		'type'=> 'hidden'
	));

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

	// Featured Section
	$wp_customize->add_section('book_publisher_agency_featured_section',array(
		'title'	=> __('Featured Section','book-publisher-agency'),
		'panel' => 'book_publisher_agency_panel_id',
		'description' => __('For more options of Featured Section </br> <a class="go-pro-btn" target="blank" href="https://www.vwthemes.com/products/publisher-wordpress-theme">GET PRO</a>','book-publisher-agency'),
	));

	$wp_customize->add_setting('book_publisher_agency_section_title1',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_section_title1',array(
		'label'	=> esc_html__( 'Featured Heading', 'book-publisher-agency' ),
		'section'	=> 'book_publisher_agency_featured_section',
		'type'		=> 'text',
		'input_attrs' => array(
	      'placeholder' => __( 'FEATURED PUBLICATION', 'book-publisher-agency' ),
	    ),
	));

	$wp_customize->add_setting('book_publisher_agency_feature_courses_tagline_title',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_feature_courses_tagline_title',array(
		'label'	=> esc_html__( 'Featured Title', 'book-publisher-agency' ),
		'section'	=> 'book_publisher_agency_featured_section',
		'type'		=> 'text',
		'input_attrs' => array(
	      'placeholder' => __( 'EXPLORE OUR PUBLICATION', 'book-publisher-agency' ),
	    ),
	));

	$wp_customize->add_setting('book_publisher_agency_featured_button_label',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_featured_button_label',array(
		'label' => __('Button','book-publisher-agency'),
		'section' => 'book_publisher_agency_featured_section',
		'setting' => 'book_publisher_agency_featured_button_label',
		'type' => 'text',
		'input_attrs' => array(
	      'placeholder' => __( 'View All Publication', 'book-publisher-agency' ),
	    ),
	));

	//This is onload transaction effect
	$wp_customize->add_setting('book_publisher_agency_featured_animation',array(
		'default' => '',
		'capability' => 'edit_theme_options',
		'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_featured_animation', array(
		'section'  => 'book_publisher_agency_featured_section',
		'label'    => __( 'Featured Headings Content Onload Transaction Effect','book-publisher-agency'),
		'type'     => 'select',
		'choices'  => array(
			'bounceInLeft' => __('bounceInLeft', 'book-publisher-agency'),
			'bounceInRight' => __('bounceInRight', 'book-publisher-agency'),
			'bounceInUp' => __('bounceInUp', 'book-publisher-agency'),
			'bounceInDown' => __('bounceInDown', 'book-publisher-agency'),
			'zoomIn' => __('zoomIn', 'book-publisher-agency'),
			'zoomOut' => __('zoomOut', 'book-publisher-agency'),
			'fadeInLeft' => __('fadeInLeft', 'book-publisher-agency'),
			'fadeInRight' => __('fadeInRight', 'book-publisher-agency'),
			'fadeInUp' => __('fadeInUp', 'book-publisher-agency'),
			'fadeInDown' => __('fadeInDown', 'book-publisher-agency'),
			'flip' => __('flip', 'book-publisher-agency'),
			'none' => __('none', 'book-publisher-agency')
		)
	));

	$wp_customize->add_setting('book_publisher_agency_featured_button_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));

	$wp_customize->add_control('book_publisher_agency_featured_button_url',array(
		'label'	=> __('Add Button URL','book-publisher-agency'),
		'section'	=> 'book_publisher_agency_featured_section',
		'setting'	=> 'book_publisher_agency_featured_button_url',
		'type'	=> 'url'
	));

	for($book_publisher_agency_j=1; $book_publisher_agency_j<=2; $book_publisher_agency_j++) {

		$wp_customize->add_setting('book_publisher_agency_featured_background_image_sec'.$book_publisher_agency_j,array(
			'default'	=> '',
			'sanitize_callback'	=> 'esc_url_raw',
		));
		$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'book_publisher_agency_featured_background_image_sec'.$book_publisher_agency_j,array(
      'label' => __('Featured Background Image','book-publisher-agency'),
      'section' => 'book_publisher_agency_featured_section',
      'description' => __('Image size (530px x 300px)','book-publisher-agency'),
		)));

		$wp_customize->add_setting('book_publisher_agency_feature_featured_tagline_title'.$book_publisher_agency_j,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('book_publisher_agency_feature_featured_tagline_title'.$book_publisher_agency_j,array(
			'label'	=> esc_html__( 'Book Title Heading', 'book-publisher-agency' ),
			'section'	=> 'book_publisher_agency_featured_section',
			'type'		=> 'text',
			'input_attrs' => array(
		      'placeholder' => __( 'Book Title', 'book-publisher-agency' ),
		    ),
		));

		$wp_customize->add_setting('book_publisher_agency_book_title_url1'.$book_publisher_agency_j,array(
			'default'	=> '',
			'sanitize_callback'	=> 'esc_url_raw'
		));
		$wp_customize->add_control('book_publisher_agency_book_title_url1'.$book_publisher_agency_j,array(
			'label'	=> __('Add Book Title URL','book-publisher-agency'),
			'section'	=> 'book_publisher_agency_featured_section',
			'setting'	=> 'book_publisher_agency_book_title_url1',
			'type'	=> 'url'
		));

		$wp_customize->add_setting('book_publisher_agency_featured_title1'.$book_publisher_agency_j,array(
			'default'	=> '',
			'sanitize_callback'	=> 'sanitize_text_field'
		));
		$wp_customize->add_control('book_publisher_agency_featured_title1'.$book_publisher_agency_j,array(
			'label'	=> esc_html__( 'Featured Title', 'book-publisher-agency' ),
			'section'	=> 'book_publisher_agency_featured_section',
			'type'		=> 'text',
			'input_attrs' => array(
		      'placeholder' => __( 'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.', 'book-publisher-agency' ),
		    ),
		));
	}

	//This is onload transaction effect
	$wp_customize->add_setting('book_publisher_agency_featured_animation1',array(
		'default' => '',
		'capability' => 'edit_theme_options',
		'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_featured_animation1', array(
		'section'  => 'book_publisher_agency_featured_section',
		'label'    => __( 'Featured Content Onload Transaction Effect','book-publisher-agency'),
		'type'     => 'select',
		'choices'  => array(
			'bounceInLeft' => __('bounceInLeft', 'book-publisher-agency'),
			'bounceInRight' => __('bounceInRight', 'book-publisher-agency'),
			'bounceInUp' => __('bounceInUp', 'book-publisher-agency'),
			'bounceInDown' => __('bounceInDown', 'book-publisher-agency'),
			'zoomIn' => __('zoomIn', 'book-publisher-agency'),
			'zoomOut' => __('zoomOut', 'book-publisher-agency'),
			'fadeInLeft' => __('fadeInLeft', 'book-publisher-agency'),
			'fadeInRight' => __('fadeInRight', 'book-publisher-agency'),
			'fadeInUp' => __('fadeInUp', 'book-publisher-agency'),
			'fadeInDown' => __('fadeInDown', 'book-publisher-agency'),
			'flip' => __('flip', 'book-publisher-agency'),
			'none' => __('none', 'book-publisher-agency')
		)
	));

    //Blog post  excerpt
	$wp_customize->add_setting( 'book_publisher_agency_slider_excerpt_number_post', array(
		'default'              => 25,
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_slider_excerpt_number_post', array(
		'label'       => esc_html__( 'Post Excerpt length','book-publisher-agency' ),
		'description' => __('Post Description Excerpt length adjust manually','book-publisher-agency'),
		'section'     => 'book_publisher_agency_about_section',
		'type'        => 'range',
		'settings'    => 'book_publisher_agency_slider_excerpt_number_post',
		'input_attrs' => array(
			'step'             => 5,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('book_publisher_agency_blog_excerpt_suffix1',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_blog_excerpt_suffix1',array(
		'label'	=> __('Add Post Excerpt Suffix','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => __( '[...]', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_about_section',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_claases_number',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field',
	));
	$wp_customize->add_control('book_publisher_agency_claases_number',array(
		'label'	=> __('Number of post to show','book-publisher-agency'),
		'description' => __('Add number and refresh tab','book-publisher-agency'),
		'section'	=> 'book_publisher_agency_about_section',
		'type'		=> 'number'
	));
	$book_publisher_agency_featured_post = get_theme_mod('book_publisher_agency_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 ( $book_publisher_agency_i = 1; $book_publisher_agency_i <= $book_publisher_agency_featured_post; $book_publisher_agency_i++ ) {
		$wp_customize->add_setting('book_publisher_agency_services_category'.$book_publisher_agency_i,array(
			'sanitize_callback' => 'book_publisher_agency_sanitize_choices',
		));
		$wp_customize->add_control('book_publisher_agency_services_category'.$book_publisher_agency_i,array(
			'type'    => 'select',
			'choices' => $pst,
			'label' => __('Select post','book-publisher-agency'),
			'section' => 'book_publisher_agency_about_section',
		));

	 	$wp_customize->add_setting('book_publisher_agency_single_icon'.$book_publisher_agency_i,array(
	    'default' => 'fa-solid fa-fan',
	    'sanitize_callback' => 'sanitize_text_field'
	  ));
	  $wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser($wp_customize,'book_publisher_agency_single_icon'.$book_publisher_agency_i,array(
	    'label' => __('Add Icon','book-publisher-agency'),
	    'transport' => 'refresh',
	    'section' => 'book_publisher_agency_about_section',
	    'setting' => 'book_publisher_agency_single_icon',
	    'type'    => 'icon'
	  )));
	}

	$wp_customize->add_setting( 'book_publisher_agency_slider_first_color', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'book_publisher_agency_slider_first_color', array(
		'label' => __('Services First Color Option', 'book-publisher-agency'),
	    'section' => 'book_publisher_agency_about_section',
	    'settings' => 'book_publisher_agency_slider_first_color',
	)));

	$wp_customize->add_setting( 'book_publisher_agency_slider_second_color', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'book_publisher_agency_slider_second_color', array(
		'label' => __('Services Second Color Option', 'book-publisher-agency'),
	    'section' => 'book_publisher_agency_about_section',
	    'settings' => 'book_publisher_agency_slider_second_color',
	)));

	$wp_customize->add_setting( 'book_publisher_agency_services_icon_color', array(
	    'default' => '',
	    'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'book_publisher_agency_services_icon_color', array(
		'label' => __('Services Icon Color Option', 'book-publisher-agency'),
	    'section' => 'book_publisher_agency_about_section',
	    'settings' => 'book_publisher_agency_services_icon_color',
	)));

	//Our Team Section
	$wp_customize->add_section('book_publisher_agency_our_team', array(
		'title'       => __('Our Team Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_our_team_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_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>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_our_team',
		'type'=> 'hidden'
	));

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


	//Our Skills and Video Section
	$wp_customize->add_section('book_publisher_agency_our_skills_and_video', array(
		'title'       => __('Our Skills and Video Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_our_skills_and_video_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_our_skills_and_video_text',array(
		'description' => __('<p>1. More options for our skill and video section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for our skill and video section.</p>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_our_skills_and_video',
		'type'=> 'hidden'
	));

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

	//Pricing Plans Section
	$wp_customize->add_section('book_publisher_agency_pricing_plans', array(
		'title'       => __('Pricing Plans Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_pricing_plans_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_pricing_plans_text',array(
		'description' => __('<p>1. More options for pricing plans section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for pricing plans section.</p>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_pricing_plans',
		'type'=> 'hidden'
	));

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

	//Testimonials Section
	$wp_customize->add_section('book_publisher_agency_testimonials', array(
		'title'       => __('Testimonials Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_testimonials_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_testimonials_text',array(
		'description' => __('<p>1. More options for testimonials section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for testimonials section.</p>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_testimonials',
		'type'=> 'hidden'
	));

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

	//Our Book Section
	$wp_customize->add_section('book_publisher_agency_ourBook', array(
		'title'       => __('Our Book Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_ourBook_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_ourBook_text',array(
		'description' => __('<p>1. More options for Our Book section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for Our Book section.</p>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_ourBook',
		'type'=> 'hidden'
	));

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

	//Get Quote One Section
	$wp_customize->add_section('book_publisher_agency_get_quote_one', array(
		'title'       => __('Get Quote One Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_get_quote_one_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_get_quote_one_text',array(
		'description' => __('<p>1. More options for get quote one section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for get quote one section.</p>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_get_quote_one',
		'type'=> 'hidden'
	));

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

	//FAQ Section Section
	$wp_customize->add_section('book_publisher_agency_faq_section', array(
		'title'       => __('FAQ Section Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_faq_section_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_faq_section_text',array(
		'description' => __('<p>1. More options for faq section section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for faq section section.</p>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_faq_section',
		'type'=> 'hidden'
	));

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

	//Our Process Section
	$wp_customize->add_section('book_publisher_agency_our_process', array(
		'title'       => __('Our Process Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_our_process_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_our_process_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>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_our_process',
		'type'=> 'hidden'
	));

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

	//Our Blogs Section
	$wp_customize->add_section('book_publisher_agency_our_blogs', array(
		'title'       => __('Our Blogs Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_our_blogs_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_our_blogs_text',array(
		'description' => __('<p>1. More options for our blogs section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for our blogs section.</p>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_our_blogs',
		'type'=> 'hidden'
	));

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

	//Newsletter Section
	$wp_customize->add_section('book_publisher_agency_newsletter', array(
		'title'       => __('Newsletter Section', 'book-publisher-agency'),
		'description' => __('<p class="premium-opt">Premium Theme Features</p>','book-publisher-agency'),
		'priority'    => null,
		'panel'       => 'book_publisher_agency_panel_id',
	));

	$wp_customize->add_setting('book_publisher_agency_newsletter_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_newsletter_text',array(
		'description' => __('<p>1. More options for newsletter section.</p>
			<p>2. Unlimited images options.</p>
			<p>3. Color options for newsletter section.</p>','book-publisher-agency'),
		'section'=> 'book_publisher_agency_newsletter',
		'type'=> 'hidden'
	));

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

	//Footer Text
	$wp_customize->add_section('book_publisher_agency_footer',array(
		'title'	=> esc_html__('Footer Settings','book-publisher-agency'),
		'panel' => 'book_publisher_agency_panel_id',
		'description' => __('For more options of Footer Section </br> <a class="go-pro-btn" target="blank" href="https://www.vwthemes.com/products/publisher-wordpress-theme">GET PRO</a>','book-publisher-agency'),
	));

	$wp_customize->add_setting( 'book_publisher_agency_footer_hide_show',array(
      'default' => 1,
      'transport' => 'refresh',
      'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ));
    $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_footer_hide_show',array(
      'label' => esc_html__( 'Show / Hide Footer','book-publisher-agency' ),
      'section' => 'book_publisher_agency_footer'
    )));

 	// font size
	$wp_customize->add_setting('book_publisher_agency_button_footer_font_size',array(
		'default'=> 25,
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_button_footer_font_size',array(
		'label'	=> __('Footer Heading Font Size','book-publisher-agency'),
  		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
		'section'=> 'book_publisher_agency_footer',
	));

	$wp_customize->add_setting('book_publisher_agency_button_footer_heading_letter_spacing',array(
		'default'=> 1,
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_button_footer_heading_letter_spacing',array(
		'label'	=> __('Heading Letter Spacing','book-publisher-agency'),
  		'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
	),
		'section'=> 'book_publisher_agency_footer',
	));

	// text trasform
	$wp_customize->add_setting('book_publisher_agency_button_footer_text_transform',array(
		'default'=> 'Capitalize',
		'sanitize_callback'	=> 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_button_footer_text_transform',array(
		'type' => 'radio',
		'label'	=> __('Heading Text Transform','book-publisher-agency'),
		'choices' => array(
			'Uppercase' => __('Uppercase','book-publisher-agency'),
			'Capitalize' => __('Capitalize','book-publisher-agency'),
			'Lowercase' => __('Lowercase','book-publisher-agency'),
		),
		'section'=> 'book_publisher_agency_footer',
	));

	$wp_customize->add_setting('book_publisher_agency_footer_heading_weight',array(
        'default' => '',
        'transport' => 'refresh',
        'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_footer_heading_weight',array(
        'type' => 'select',
        'label' => __('Heading Font Weight','book-publisher-agency'),
        'section' => 'book_publisher_agency_footer',
        'choices' => array(
        	'100' => __('100','book-publisher-agency'),
            '200' => __('200','book-publisher-agency'),
            '300' => __('300','book-publisher-agency'),
            '400' => __('400','book-publisher-agency'),
            '500' => __('500','book-publisher-agency'),
            '600' => __('600','book-publisher-agency'),
            '700' => __('700','book-publisher-agency'),
            '800' => __('800','book-publisher-agency'),
            '900' => __('900','book-publisher-agency'),
        ),
	) );

	$wp_customize->add_setting('book_publisher_agency_footer_template',array(
		'default'	=> esc_html('book_publisher_agency-footer-one'),
		'sanitize_callback'	=> 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_footer_template',array(
		'label'	=> esc_html__('Footer style','book-publisher-agency'),
		'section'	=> 'book_publisher_agency_footer',
		'setting'	=> 'book_publisher_agency_footer_template',
		'type' => 'select',
		'choices' => array(
			'book_publisher_agency-footer-one' => esc_html__('Style 1', 'book-publisher-agency'),
			'book_publisher_agency-footer-two' => esc_html__('Style 2', 'book-publisher-agency'),
			'book_publisher_agency-footer-three' => esc_html__('Style 3', 'book-publisher-agency'),
			'book_publisher_agency-footer-four' => esc_html__('Style 4', 'book-publisher-agency'),
			'book_publisher_agency-footer-five' => esc_html__('Style 5', 'book-publisher-agency'),
		)
	));

	$wp_customize->add_setting('book_publisher_agency_footer_background_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'book_publisher_agency_footer_background_color', array(
		'label'    => __('Footer Background Color', 'book-publisher-agency'),
		'section'  => 'book_publisher_agency_footer',
	)));

	$wp_customize->add_setting('book_publisher_agency_footer_background_image',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'book_publisher_agency_footer_background_image',array(
        'label' => __('Footer Background Image','book-publisher-agency'),
        'section' => 'book_publisher_agency_footer'
	)));

	$wp_customize->add_setting('book_publisher_agency_footer_img_position',array(
	  'default' => 'center center',
	  'transport' => 'refresh',
	  'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_footer_img_position',array(
		'type' => 'select',
		'label' => __('Footer Image Position','book-publisher-agency'),
		'section' => 'book_publisher_agency_footer',
		'choices' 	=> array(
			'left top' 		=> esc_html__( 'Top Left', 'book-publisher-agency' ),
			'center top'   => esc_html__( 'Top', 'book-publisher-agency' ),
			'right top'   => esc_html__( 'Top Right', 'book-publisher-agency' ),
			'left center'   => esc_html__( 'Left', 'book-publisher-agency' ),
			'center center'   => esc_html__( 'Center', 'book-publisher-agency' ),
			'right center'   => esc_html__( 'Right', 'book-publisher-agency' ),
			'left bottom'   => esc_html__( 'Bottom Left', 'book-publisher-agency' ),
			'center bottom'   => esc_html__( 'Bottom', 'book-publisher-agency' ),
			'right bottom'   => esc_html__( 'Bottom Right', 'book-publisher-agency' ),
		),
	));

  // Footer
  $wp_customize->add_setting('book_publisher_agency_img_footer',array(
    'default'=> 'scroll',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
  ));
  $wp_customize->add_control('book_publisher_agency_img_footer',array(
    'type' => 'select',
    'label' => __('Footer Background Attatchment','book-publisher-agency'),
    'choices' => array(
      'fixed' => __('fixed','book-publisher-agency'),
      'scroll' => __('scroll','book-publisher-agency'),
    ),
    'section'=> 'book_publisher_agency_footer',
  ));

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

  $wp_customize->add_setting('book_publisher_agency_footer_widgets_heading',array(
    'default' => 'Left',
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
  ));
  $wp_customize->add_control('book_publisher_agency_footer_widgets_heading',array(
    'type' => 'select',
    'label' => __('Footer Widget Heading','book-publisher-agency'),
    'section' => 'book_publisher_agency_footer',
    'choices' => array(
      'Left' => __('Left','book-publisher-agency'),
      'Center' => __('Center','book-publisher-agency'),
      'Right' => __('Right','book-publisher-agency')
    ),
  ) );

  $wp_customize->add_setting('book_publisher_agency_footer_widgets_content',array(
    'default' => 'Left',
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
  ));
  $wp_customize->add_control('book_publisher_agency_footer_widgets_content',array(
    'type' => 'select',
    'label' => __('Footer Widget Content','book-publisher-agency'),
    'section' => 'book_publisher_agency_footer',
    'choices' => array(
      'Left' => __('Left','book-publisher-agency'),
      'Center' => __('Center','book-publisher-agency'),
      'Right' => __('Right','book-publisher-agency')
  	),
	) );

	//Selective Refresh
	$wp_customize->selective_refresh->add_partial('book_publisher_agency_footer_text', array(
		'selector' => '.copyright p',
		'render_callback' => 'book_publisher_agency_Customize_partial_book_publisher_agency_footer_text',
	));

	$wp_customize->add_setting('book_publisher_agency_footer_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_footer_text',array(
		'label'	=> esc_html__('Copyright Text','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => esc_html__( 'Copyright 2024, .....', 'book-publisher-agency' ),
      ),
		'section'=> 'book_publisher_agency_footer',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'book_publisher_agency_copyright_hide_show',array(
	  'default' => 1,
	  'transport' => 'refresh',
	  'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	));
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_copyright_hide_show',array(
		'label' => esc_html__( 'Show / Hide Copyright','book-publisher-agency' ),
		'section' => 'book_publisher_agency_footer'
	)));

	$wp_customize->add_setting('book_publisher_agency_copyright_alingment',array(
    'default' => 'center',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Image_Radio_Control($wp_customize, 'book_publisher_agency_copyright_alingment', array(
    'type' => 'select',
    'label' => esc_html__('Copyright Alignment','book-publisher-agency'),
    'section' => 'book_publisher_agency_footer',
    'settings' => 'book_publisher_agency_copyright_alingment',
    'choices' => array(
        'left' => esc_url(get_template_directory_uri()).'/assets/images/copyright1.png',
        'center' => esc_url(get_template_directory_uri()).'/assets/images/copyright2.png',
        'right' => esc_url(get_template_directory_uri()).'/assets/images/copyright3.png'
  ))));

	$wp_customize->add_setting('book_publisher_agency_copyright_background_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'book_publisher_agency_copyright_background_color', array(
		'label'    => __('Copyright Background Color', 'book-publisher-agency'),
		'section'  => 'book_publisher_agency_footer',
	)));

	$wp_customize->add_setting('book_publisher_agency_copyright_font_size',array(
		'default'=> '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_copyright_font_size',array(
		'label' => __('Copyright Font Size','book-publisher-agency'),
		'description' => __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
      	'placeholder' => __( '10px', 'book-publisher-agency' ),
	    ),
		'section'=> 'book_publisher_agency_footer',
		'type'=> 'text'
	));

  $wp_customize->add_setting( 'book_publisher_agency_hide_show_scroll',array(
  	'default' => 1,
  	'transport' => 'refresh',
  	'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  ));
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_hide_show_scroll',array(
  	'label' => esc_html__( 'Show / Hide Scroll to Top','book-publisher-agency' ),
  	'section' => 'book_publisher_agency_footer'
  )));

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

  $wp_customize->add_setting('book_publisher_agency_scroll_top_alignment',array(
    'default' => 'Right',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Image_Radio_Control($wp_customize, 'book_publisher_agency_scroll_top_alignment', array(
    'type' => 'select',
    'label' => esc_html__('Scroll To Top','book-publisher-agency'),
    'section' => 'book_publisher_agency_footer',
    'settings' => 'book_publisher_agency_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('book_publisher_agency_scroll_top_icon',array(
    'default' => 'fas fa-long-arrow-alt-up',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser($wp_customize,'book_publisher_agency_scroll_top_icon',array(
    'label' => __('Add Scroll to Top Icon','book-publisher-agency'),
    'transport' => 'refresh',
    'section' => 'book_publisher_agency_footer',
    'setting' => 'book_publisher_agency_scroll_top_icon',
    'type'    => 'icon'
  )));

  $wp_customize->add_setting('book_publisher_agency_scroll_to_top_font_size',array(
    'default'=> '',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control('book_publisher_agency_scroll_to_top_font_size',array(
    'label' => __('Icon Font Size','book-publisher-agency'),
    'description' => __('Enter a value in pixels. Example:20px','book-publisher-agency'),
    'input_attrs' => array(
      'placeholder' => __( '10px', 'book-publisher-agency' ),
    ),
    'section'=> 'book_publisher_agency_footer',
    'type'=> 'text'
  ));

  $wp_customize->add_setting('book_publisher_agency_scroll_to_top_padding',array(
    'default'=> '',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control('book_publisher_agency_scroll_to_top_padding',array(
    'label' => __('Icon Top Bottom Padding','book-publisher-agency'),
    'description' => __('Enter a value in pixels. Example:20px','book-publisher-agency'),
    'input_attrs' => array(
      'placeholder' => __( '10px', 'book-publisher-agency' ),
    ),
    'section'=> 'book_publisher_agency_footer',
    'type'=> 'text'
  ));

  $wp_customize->add_setting('book_publisher_agency_scroll_to_top_width',array(
    'default'=> '',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control('book_publisher_agency_scroll_to_top_width',array(
    'label' => __('Icon Width','book-publisher-agency'),
    'description' => __('Enter a value in pixels Example:20px','book-publisher-agency'),
    'input_attrs' => array(
      'placeholder' => __( '10px', 'book-publisher-agency' ),
  ),
	  'section'=> 'book_publisher_agency_footer',
	  'type'=> 'text'
  ));

  $wp_customize->add_setting('book_publisher_agency_scroll_to_top_height',array(
    'default'=> '',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control('book_publisher_agency_scroll_to_top_height',array(
    'label' => __('Icon Height','book-publisher-agency'),
    'description' => __('Enter a value in pixels. Example:20px','book-publisher-agency'),
    'input_attrs' => array(
      'placeholder' => __( '10px', 'book-publisher-agency' ),
    ),
    'section'=> 'book_publisher_agency_footer',
    'type'=> 'text'
  ));

  $wp_customize->add_setting( 'book_publisher_agency_scroll_to_top_border_radius', array(
    'default'              => '',
    'transport'        => 'refresh',
    'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
  ) );
  $wp_customize->add_control( 'book_publisher_agency_scroll_to_top_border_radius', array(
    'label'       => esc_html__( 'Icon Border Radius','book-publisher-agency' ),
    'section'     => 'book_publisher_agency_footer',
    'type'        => 'range',
    'input_attrs' => array(
      'step'             => 1,
      'min'              => 1,
      'max'              => 50,
    ),
  ) );

  	// footer social icon
	$wp_customize->add_setting( 'book_publisher_agency_footer_icon',array(
		'default' => false,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  	) );
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_footer_icon',array(
		'label' => esc_html__( 'Show / Hide Footer Social Icon','book-publisher-agency' ),
		'section' => 'book_publisher_agency_footer'
  	)));

  	$wp_customize->add_setting('book_publisher_agency_align_footer_social_icon',array(
        'default' => 'center',
        'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_align_footer_social_icon',array(
        'type' => 'select',
        'label' => __('Social Icon Alignment ','book-publisher-agency'),
        'section' => 'book_publisher_agency_footer',
        'choices' => array(
            'left' => __('Left','book-publisher-agency'),
            'right' => __('Right','book-publisher-agency'),
            'center' => __('Center','book-publisher-agency'),
        ),
	) );

	$wp_customize->add_setting( 'book_publisher_agency_copyright_sticky',array(
      'default' => 0,
      'transport' => 'refresh',
      'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ) );
    $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_copyright_sticky',array(
      'label' => esc_html__( 'Show / Hide Sticky Copyright','book-publisher-agency' ),
      'section' => 'book_publisher_agency_footer'
    )));

   $wp_customize->add_setting('book_publisher_agency_footer_social_icons_font_size',array(
       'default'=> 16,
       'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('book_publisher_agency_footer_social_icons_font_size',array(
    'label' => __('Social Icon Font Size','book-publisher-agency'),
    	'type'        => 'number',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
		'section'=> 'book_publisher_agency_footer',
	 ));

 	//Blog Post
	$wp_customize->add_panel( 'book_publisher_agency_blog_post_parent_panel', array(
		'title' => esc_html__( 'Blog Post Settings', 'book-publisher-agency' ),
		'panel' => 'book_publisher_agency_panel_id',
		'priority' => 20,
	));

	// Add example section and controls to the middle (second) panel
	$wp_customize->add_section( 'book_publisher_agency_post_settings', array(
		'title' => esc_html__( 'Post Settings', 'book-publisher-agency' ),
		'panel' => 'book_publisher_agency_blog_post_parent_panel',
	));

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

	//Blog layout
  $wp_customize->add_setting('book_publisher_agency_blog_layout_option',array(
    'default' => 'Default',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
  ));
  $wp_customize->add_control(new Book_Publisher_Agency_Image_Radio_Control($wp_customize, 'book_publisher_agency_blog_layout_option', array(
    'type' => 'select',
    'label' => __('Blog Post Layouts','book-publisher-agency'),
    'section' => 'book_publisher_agency_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('book_publisher_agency_theme_options',array(
    'default' => 'Right Sidebar',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_theme_options',array(
    'type' => 'select',
    'label' => esc_html__('Post Sidebar Layout','book-publisher-agency'),
    'description' => esc_html__('Here you can change the sidebar layout for posts. ','book-publisher-agency'),
    'section' => 'book_publisher_agency_post_settings',
    'choices' => array(
        'Left Sidebar' => esc_html__('Left Sidebar','book-publisher-agency'),
        'Right Sidebar' => esc_html__('Right Sidebar','book-publisher-agency'),
        'One Column' => esc_html__('One Column','book-publisher-agency'),
        'Three Columns' => __('Three Columns','book-publisher-agency'),
        'Four Columns' => __('Four Columns','book-publisher-agency'),
        'Grid Layout' => esc_html__('Grid Layout','book-publisher-agency')
    ),
	) );

	$wp_customize->add_setting('book_publisher_agency_toggle_postdate_icon',array(
		'default'	=> 'fas fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  $wp_customize,'book_publisher_agency_toggle_postdate_icon',array(
		'label'	=> __('Add Post Date Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_post_settings',
		'setting'	=> 'book_publisher_agency_toggle_postdate_icon',
		'type'		=> 'icon'
	)));

 	$wp_customize->add_setting( 'book_publisher_agency_blog_toggle_postdate',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  ));
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_blog_toggle_postdate',array(
    'label' => esc_html__( 'Show / Hide Post Date','book-publisher-agency' ),
    'section' => 'book_publisher_agency_post_settings'
  )));

	$wp_customize->add_setting('book_publisher_agency_toggle_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  $wp_customize,'book_publisher_agency_toggle_author_icon',array(
		'label'	=> __('Add Author Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_post_settings',
		'setting'	=> 'book_publisher_agency_toggle_author_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'book_publisher_agency_blog_toggle_author',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  ));
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_blog_toggle_author',array(
		'label' => esc_html__( 'Show / Hide Author','book-publisher-agency' ),
		'section' => 'book_publisher_agency_post_settings'
  )));

  $wp_customize->add_setting('book_publisher_agency_toggle_comments_icon',array(
		'default'	=> 'fa fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  $wp_customize,'book_publisher_agency_toggle_comments_icon',array(
		'label'	=> __('Add Comments Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_post_settings',
		'setting'	=> 'book_publisher_agency_toggle_comments_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'book_publisher_agency_blog_toggle_comments',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  ) );
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_blog_toggle_comments',array(
		'label' => esc_html__( 'Show / Hide Comments','book-publisher-agency' ),
		'section' => 'book_publisher_agency_post_settings'
  )));

  $wp_customize->add_setting('book_publisher_agency_toggle_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  $wp_customize,'book_publisher_agency_toggle_time_icon',array(
		'label'	=> __('Add Time Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_post_settings',
		'setting'	=> 'book_publisher_agency_toggle_time_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'book_publisher_agency_blog_toggle_time',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  ) );
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_blog_toggle_time',array(
		'label' => esc_html__( 'Show / Hide Time','book-publisher-agency' ),
		'section' => 'book_publisher_agency_post_settings'
  )));

  $wp_customize->add_setting( 'book_publisher_agency_featured_image_hide_show',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	));
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_featured_image_hide_show', array(
		'label' => esc_html__( 'Show / Hide Featured Image','book-publisher-agency' ),
		'section' => 'book_publisher_agency_post_settings'
  )));

  $wp_customize->add_setting( 'book_publisher_agency_featured_image_border_radius', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_featured_image_border_radius', array(
		'label'       => esc_html__( 'Featured Image Border Radius','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_post_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'book_publisher_agency_featured_image_box_shadow', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_featured_image_box_shadow', array(
		'label'       => esc_html__( 'Featured Image Box Shadow','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_post_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	//Featured Image
	$wp_customize->add_setting('book_publisher_agency_blog_post_featured_image_dimension',array(
   'default' => 'default',
   'sanitize_callback'	=> 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_blog_post_featured_image_dimension',array(
		'type' => 'select',
		'label'	=> __('Blog Post Featured Image Dimension','book-publisher-agency'),
		'section'	=> 'book_publisher_agency_post_settings',
		'choices' => array(
		'default' => __('Default','book-publisher-agency'),
		'custom' => __('Custom Image Size','book-publisher-agency'),
      ),
	));

	$wp_customize->add_setting('book_publisher_agency_blog_post_featured_image_custom_width',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
		));
	$wp_customize->add_control('book_publisher_agency_blog_post_featured_image_custom_width',array(
		'label'	=> __('Featured Image Custom Width','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
    	'placeholder' => __( '10px', 'book-publisher-agency' ),),
		'section'=> 'book_publisher_agency_post_settings',
		'type'=> 'text',
		'active_callback' => 'book_publisher_agency_blog_post_featured_image_dimension'
		));

	$wp_customize->add_setting('book_publisher_agency_blog_post_featured_image_custom_height',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_blog_post_featured_image_custom_height',array(
		'label'	=> __('Featured Image Custom Height','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
    	'placeholder' => __( '10px', 'book-publisher-agency' ),),
		'section'=> 'book_publisher_agency_post_settings',
		'type'=> 'text',
		'active_callback' => 'book_publisher_agency_blog_post_featured_image_dimension'
	));

  $wp_customize->add_setting( 'book_publisher_agency_excerpt_number', array(
		'default'              => 30,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range',
		'sanitize_js_callback' => 'absint',
	) );
	$wp_customize->add_control( 'book_publisher_agency_excerpt_number', array(
		'label'       => esc_html__( 'Excerpt length','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_post_settings',
		'type'        => 'range',
		'settings'    => 'book_publisher_agency_excerpt_number',
		'input_attrs' => array(
			'step'             => 5,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('book_publisher_agency_meta_field_separator',array(
		'default'=> '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_meta_field_separator',array(
		'label'	=> __('Add Meta Separator','book-publisher-agency'),
		'description' => __('Add the seperator for meta box. Example: "|", "/", etc.','book-publisher-agency'),
		'section'=> 'book_publisher_agency_post_settings',
		'type'=> 'text'
	));

  $wp_customize->add_setting('book_publisher_agency_excerpt_settings',array(
    'default' => 'Excerpt',
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_excerpt_settings',array(
    'type' => 'select',
    'label' => esc_html__('Post Content','book-publisher-agency'),
    'section' => 'book_publisher_agency_post_settings',
    'choices' => array(
    	'Content' => esc_html__('Content','book-publisher-agency'),
        'Excerpt' => esc_html__('Excerpt','book-publisher-agency'),
        'No Content' => esc_html__('No Content','book-publisher-agency')
        ),
	) );

  $wp_customize->add_setting('book_publisher_agency_blog_page_posts_settings',array(
    'default' => 'Into Blocks',
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_blog_page_posts_settings',array(
    'type' => 'select',
    'label' => __('Display Blog Posts','book-publisher-agency'),
    'section' => 'book_publisher_agency_post_settings',
    'choices' => array(
    	'Into Blocks' => __('Into Blocks','book-publisher-agency'),
        'Without Blocks' => __('Without Blocks','book-publisher-agency')
        ),
	) );

	$wp_customize->add_setting( 'book_publisher_agency_blog_pagination_hide_show',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  ));
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_blog_pagination_hide_show',array(
		'label' => esc_html__( 'Show / Hide Blog Pagination','book-publisher-agency' ),
		'section' => 'book_publisher_agency_post_settings'
  )));

  // Web Frame // 
	
	$wp_customize->add_setting( 'book_publisher_agency_blog_web_frame',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ) );
    $wp_customize->add_control( new book_publisher_agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_web_frame',array(
		'label' => esc_html__( 'Show / Hide Blog Page Border','book-publisher-agency' ),
		'section' => 'book_publisher_agency_post_settings'
    )));

	$wp_customize->add_setting('book_publisher_agency_web_frame_border_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'book_publisher_agency_web_frame_border_color', array(
		'label'    => __('Blog Page Border Color', 'book-publisher-agency'),
		'section'  => 'book_publisher_agency_post_settings',
	)));

	$wp_customize->add_setting('book_publisher_agency_web_frame_border_width',array(
		'default'=> '',
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_web_frame_border_width',array(
		'label' => __('Blog Page Width','book-publisher-agency'),
		'description' => __('Enter a value in pixels Example:20px','book-publisher-agency'),
		'input_attrs' => array(
		'placeholder' => __( '10px', 'book-publisher-agency' ),
	),
		'section'=> 'book_publisher_agency_post_settings',
		'type'=> 'text'
));

	$wp_customize->add_setting('book_publisher_agency_blog_excerpt_suffix',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_blog_excerpt_suffix',array(
		'label'	=> __('Add Excerpt Suffix','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => __( '[...]', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_post_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'book_publisher_agency_blog_pagination_type', array(
    'default'			=> 'blog-page-numbers',
    'sanitize_callback'	=> 'book_publisher_agency_sanitize_choices'
  ));
  $wp_customize->add_control( 'book_publisher_agency_blog_pagination_type', array(
    'section' => 'book_publisher_agency_post_settings',
    'type' => 'select',
    'label' => __( 'Blog Pagination', 'book-publisher-agency' ),
    'choices'		=> array(
      'blog-page-numbers'  => __( 'Numeric', 'book-publisher-agency' ),
      'next-prev' => __( 'Older Posts/Newer Posts', 'book-publisher-agency' ),
  )));

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

  	$wp_customize->add_control(new Book_Publisher_Agency_Toggle_Switch_Custom_Control(
      $wp_customize,
      'book_publisher_agency_show_first_caps',
      array(
          'label'   => esc_html__('First Cap (First Capital Letter)', 'book-publisher-agency'),
          'section' => 'book_publisher_agency_post_settings',
      )
  	));

  // Button Settings
	$wp_customize->add_section( 'book_publisher_agency_button_settings', array(
		'title' => esc_html__( 'Button Settings', 'book-publisher-agency' ),
		'panel' => 'book_publisher_agency_blog_post_parent_panel',
	));

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

  $wp_customize->add_setting('book_publisher_agency_button_text',array(
		'default'=> esc_html__('Read More','book-publisher-agency'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_button_text',array(
		'label'	=> esc_html__('Add Button Text','book-publisher-agency'),
		'input_attrs' => array(
    'placeholder' => esc_html__( 'Read More', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_button_settings',
		'type'=> 'text'
	));

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


	$wp_customize->add_setting( 'book_publisher_agency_button_border_radius', array(
		'default'              => 5,
		'type'                 => 'theme_mod',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range',
		'sanitize_js_callback' => 'absint',
	) );
	$wp_customize->add_control( 'book_publisher_agency_button_border_radius', array(
		'label'       => esc_html__( 'Button Border Radius','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_button_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

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

	$wp_customize->add_setting('book_publisher_agency_button_left_right_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_button_left_right_padding',array(
		'label'	=> __('Button Left Right Padding','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => __( '10px', 'book-publisher-agency' ),
    ),
		'section'=> 'book_publisher_agency_button_settings',
		'type'=> 'text'
	));

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

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

	// text trasform
	$wp_customize->add_setting('book_publisher_agency_button_text_transform',array(
		'default'=> 'Uppercase',
		'sanitize_callback'	=> 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_button_text_transform',array(
		'type' => 'radio',
		'label'	=> __('Button Text Transform','book-publisher-agency'),
		'choices' => array(
      'Uppercase' => __('Uppercase','book-publisher-agency'),
      'Capitalize' => __('Capitalize','book-publisher-agency'),
      'Lowercase' => __('Lowercase','book-publisher-agency'),
    ),
		'section'=> 'book_publisher_agency_button_settings',
	));

	// Button hover effect 
	$wp_customize->add_setting('book_publisher_agency_button_hover_effect',array(
	'default' => '',
	'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
    ));
	$wp_customize->add_control('book_publisher_agency_button_hover_effect', array(
        'type' => 'select',
        'label' => __( 'Button Hover Effect', 'book-publisher-agency' ),
        'section' => 'book_publisher_agency_button_settings',
        'choices' => array(
			'pulse'     => __( 'Pulse', 'book-publisher-agency' ),
			'rubberBand'=> __( 'RubberBand', 'book-publisher-agency' ),
			'swing'     => __( 'Swing', 'book-publisher-agency' ),
			'tada'      => __( 'Tada', 'book-publisher-agency' ),
			'jello'     => __( 'Jello', 'book-publisher-agency' ),
			'disable'   => __( 'Disabled', 'book-publisher-agency' )
        ),
    ));


	// Related Post Settings
	$wp_customize->add_section( 'book_publisher_agency_related_posts_settings', array(
		'title' => esc_html__( 'Related Posts Settings', 'book-publisher-agency' ),
		'panel' => 'book_publisher_agency_blog_post_parent_panel',
	));

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

  	$wp_customize->add_setting( 'book_publisher_agency_related_post',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  	) );
  	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_related_post',array(
		'label' => esc_html__( 'Related Post','book-publisher-agency' ),
		'section' => 'book_publisher_agency_related_posts_settings'
  	)));

  	$wp_customize->add_setting('book_publisher_agency_related_post_title',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_related_post_title',array(
		'label'	=> esc_html__('Add Related Post Title','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => esc_html__( 'Related Post', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_related_posts_settings',
		'type'=> 'text'
	));

 	$wp_customize->add_setting('book_publisher_agency_related_posts_count',array(
		'default'=> 3,
		'sanitize_callback'	=> 'book_publisher_agency_sanitize_number_absint'
	));
	$wp_customize->add_control('book_publisher_agency_related_posts_count',array(
		'label'	=> esc_html__('Add Related Post Count','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => esc_html__( '3', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_related_posts_settings',
		'type'=> 'number'
	));

	$wp_customize->add_setting( 'book_publisher_agency_related_posts_excerpt_number', array(
		'default'              => 20,
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_related_posts_excerpt_number', array(
		'label'       => esc_html__( 'Related Posts Excerpt length','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_related_posts_settings',
		'type'        => 'range',
		'settings'    => 'book_publisher_agency_related_posts_excerpt_number',
		'input_attrs' => array(
			'step'             => 5,
			'min'              => 0,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('book_publisher_agency_related_post_meta_field_separator',array(
		'default'=> '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_related_post_meta_field_separator',array(
		'label'	=> __('Add Meta Separator','book-publisher-agency'),
		'description' => __('Add the seperator for meta box. Example: "|", "/", etc.','book-publisher-agency'),
		'section'=> 'book_publisher_agency_related_posts_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'book_publisher_agency_related_image_hide_show',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	));
  	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_related_image_hide_show', array(
		'label' => esc_html__( 'Show / Hide Featured Image','book-publisher-agency' ),
		'section' => 'book_publisher_agency_related_posts_settings'
  	)));

	$wp_customize->add_setting( 'book_publisher_agency_related_toggle_postdate',array(
	    'default' => 1,
	    'transport' => 'refresh',
	    'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	));
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_related_toggle_postdate',array(
	    'label' => esc_html__( 'Show / Hide Post Date','book-publisher-agency' ),
	    'section' => 'book_publisher_agency_related_posts_settings'
	)));

  	$wp_customize->add_setting('book_publisher_agency_related_postdate_icon',array(
	    'default' => 'fas fa-calendar-alt',
	    'sanitize_callback' => 'sanitize_text_field'
  	));
  	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  	$wp_customize,'book_publisher_agency_related_postdate_icon',array(
	    'label' => __('Add Post Date Icon','book-publisher-agency'),
	    'transport' => 'refresh',
	    'section' => 'book_publisher_agency_related_posts_settings',
	    'setting' => 'book_publisher_agency_related_postdate_icon',
	    'type'    => 'icon'
  	)));

	$wp_customize->add_setting( 'book_publisher_agency_related_toggle_author',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  	));
  	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_related_toggle_author',array(
		'label' => esc_html__( 'Show / Hide Author','book-publisher-agency' ),
		'section' => 'book_publisher_agency_related_posts_settings'
  	)));

  	$wp_customize->add_setting('book_publisher_agency_related_author_icon',array(
	    'default' => 'fas fa-user',
	    'sanitize_callback' => 'sanitize_text_field'
  	));
  	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  	$wp_customize,'book_publisher_agency_related_author_icon',array(
	    'label' => __('Add Author Icon','book-publisher-agency'),
	    'transport' => 'refresh',
	    'section' => 'book_publisher_agency_related_posts_settings',
	    'setting' => 'book_publisher_agency_related_author_icon',
	    'type'    => 'icon'
  	)));

	$wp_customize->add_setting( 'book_publisher_agency_related_toggle_comments',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  	) );
  	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_related_toggle_comments',array(
		'label' => esc_html__( 'Show / Hide Comments','book-publisher-agency' ),
		'section' => 'book_publisher_agency_related_posts_settings'
  	)));

  	$wp_customize->add_setting('book_publisher_agency_related_comments_icon',array(
	    'default' => 'fa fa-comments',
	    'sanitize_callback' => 'sanitize_text_field'
  	));
  	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  	$wp_customize,'book_publisher_agency_related_comments_icon',array(
	    'label' => __('Add Comments Icon','book-publisher-agency'),
	    'transport' => 'refresh',
	    'section' => 'book_publisher_agency_related_posts_settings',
	    'setting' => 'book_publisher_agency_related_comments_icon',
	    'type'    => 'icon'
  	)));

	$wp_customize->add_setting( 'book_publisher_agency_related_toggle_time',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  	) );
  	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_related_toggle_time',array(
		'label' => esc_html__( 'Show / Hide Time','book-publisher-agency' ),
		'section' => 'book_publisher_agency_related_posts_settings'
  	)));

  	$wp_customize->add_setting('book_publisher_agency_related_time_icon',array(
	    'default' => 'fas fa-clock',
	    'sanitize_callback' => 'sanitize_text_field'
  	));
  	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  	$wp_customize,'book_publisher_agency_related_time_icon',array(
	    'label' => __('Add Time Icon','book-publisher-agency'),
	    'transport' => 'refresh',
	    'section' => 'book_publisher_agency_related_posts_settings',
	    'setting' => 'book_publisher_agency_related_time_icon',
	    'type'    => 'icon'
  	)));  	  			

  	$wp_customize->add_setting( 'book_publisher_agency_related_image_box_shadow', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_related_image_box_shadow', array(
		'label'       => esc_html__( 'Related post Image Box Shadow','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_related_posts_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

  	$wp_customize->add_setting('book_publisher_agency_related_button_text',array(
		'default'=> esc_html__('Read More','book-publisher-agency'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_related_button_text',array(
		'label'	=> esc_html__('Add Button Text','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => esc_html__( 'Read More', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_related_posts_settings',
		'type'=> 'text'
	));

	// Single Posts Settings
	$wp_customize->add_section( 'book_publisher_agency_single_blog_settings', array(
		'title' => __( 'Single Post Settings', 'book-publisher-agency' ),
		'panel' => 'book_publisher_agency_blog_post_parent_panel',
	));

	$wp_customize->add_setting('book_publisher_agency_single_postdate_icon',array(
		'default'	=> 'fas fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  $wp_customize,'book_publisher_agency_single_postdate_icon',array(
		'label'	=> __('Add Post Date Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_single_blog_settings',
		'setting'	=> 'book_publisher_agency_single_postdate_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'book_publisher_agency_single_postdate',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	) );
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_single_postdate',array(
		'label' => esc_html__( 'Show / Hide Date','book-publisher-agency' ),
		'section' => 'book_publisher_agency_single_blog_settings'
	)));

	$wp_customize->add_setting('book_publisher_agency_single_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  $wp_customize,'book_publisher_agency_single_author_icon',array(
		'label'	=> __('Add Author Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_single_blog_settings',
		'setting'	=> 'book_publisher_agency_single_author_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'book_publisher_agency_single_author',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	) );
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_single_author',array(
    'label' => esc_html__( 'Show / Hide Author','book-publisher-agency' ),
    'section' => 'book_publisher_agency_single_blog_settings'
	)));

 	$wp_customize->add_setting('book_publisher_agency_single_comments_icon',array(
		'default'	=> 'fa fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  $wp_customize,'book_publisher_agency_single_comments_icon',array(
		'label'	=> __('Add Comments Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_single_blog_settings',
		'setting'	=> 'book_publisher_agency_single_comments_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting( 'book_publisher_agency_single_comments',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	) );
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_single_comments',array(
    'label' => esc_html__( 'Show / Hide Comments','book-publisher-agency' ),
    'section' => 'book_publisher_agency_single_blog_settings'
	)));

	$wp_customize->add_setting('book_publisher_agency_single_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
  $wp_customize,'book_publisher_agency_single_time_icon',array(
		'label'	=> __('Add Time Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_single_blog_settings',
		'setting'	=> 'book_publisher_agency_single_time_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting( 'book_publisher_agency_single_time',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	) );
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_single_time',array(
    'label' => esc_html__( 'Show / Hide Time','book-publisher-agency' ),
    'section' => 'book_publisher_agency_single_blog_settings'
	)));

	$wp_customize->add_setting( 'book_publisher_agency_toggle_tags',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	));
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_toggle_tags', array(
		'label' => esc_html__( 'Show / Hide Tags','book-publisher-agency' ),
		'section' => 'book_publisher_agency_single_blog_settings'
  )));

	$wp_customize->add_setting( 'book_publisher_agency_single_post_breadcrumb',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  ) );
 	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_single_post_breadcrumb',array(
		'label' => esc_html__( 'Show / Hide Breadcrumb','book-publisher-agency' ),
		'section' => 'book_publisher_agency_single_blog_settings'
  )));

	// Single Posts Category
 	 $wp_customize->add_setting( 'book_publisher_agency_single_post_category',array(
		'default' => true,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	  ) );
		$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_single_post_category',array(
			'label' => esc_html__( 'Show / Hide Category','book-publisher-agency' ),
			'section' => 'book_publisher_agency_single_blog_settings'
	  )));

	  $wp_customize->add_setting('book_publisher_agency_single_post_styling',array(
    'default' => 'Button',
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_single_post_styling',array(
	'description' => __('Change the styling of Category .','book-publisher-agency'),
	'type' => 'select',
    'section' => 'book_publisher_agency_single_blog_settings',
    'choices' => array(
        'Button' => __('Button','book-publisher-agency'),
		'Underline' => __('Underline','book-publisher-agency'),
		'Default' => __('Default','book-publisher-agency'),
      ),
	) );

	$wp_customize->add_setting( 'book_publisher_agency_singlepost_image_box_shadow', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_singlepost_image_box_shadow', array(
		'label'       => esc_html__( 'Single post Image Box Shadow','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_single_blog_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting('book_publisher_agency_single_post_meta_field_separator',array(
		'default'=> '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_single_post_meta_field_separator',array(
		'label'	=> __('Add Meta Separator','book-publisher-agency'),
		'description' => __('Add the seperator for meta box. Example: "|", "/", etc.','book-publisher-agency'),
		'section'=> 'book_publisher_agency_single_blog_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'book_publisher_agency_single_blog_post_navigation_show_hide',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	));
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_single_blog_post_navigation_show_hide', array(
	  'label' => esc_html__( 'Show / Hide Post Navigation','book-publisher-agency' ),
	  'section' => 'book_publisher_agency_single_blog_settings'
	)));	

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

	$wp_customize->add_setting( 'book_publisher_agency_single_post_breadcrumb',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ) );
 	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_single_post_breadcrumb',array(
		'label' => esc_html__( 'Show / Hide Breadcrumb','book-publisher-agency' ),
		'section' => 'book_publisher_agency_single_blog_settings'
  )));

	//navigation text
	$wp_customize->add_setting('book_publisher_agency_single_blog_prev_navigation_text',array(
		'default'=> 'PREVIOUS',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_single_blog_prev_navigation_text',array(
		'label'	=> __('Post Navigation Text','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => __( 'PREVIOUS', 'book-publisher-agency' ),
      ),
		'section'=> 'book_publisher_agency_single_blog_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_single_blog_next_navigation_text',array(
		'default'=> 'NEXT',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_single_blog_next_navigation_text',array(
		'label'	=> __('Post Navigation Text','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => __( 'NEXT', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_single_blog_settings',
		'type'=> 'text'
	));

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

	$wp_customize->add_control('book_publisher_agency_single_blog_comment_title',array(
		'label'	=> __('Add Comment Title','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => __( 'Leave a Reply', 'book-publisher-agency' ),
    	),
		'section'=> 'book_publisher_agency_single_blog_settings',
		'type'=> 'text'
	));

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

	$wp_customize->add_control('book_publisher_agency_single_blog_comment_button_text',array(
		'label'	=> __('Add Comment Button Text','book-publisher-agency'),
		'input_attrs' => array(
    'placeholder' => __( 'Post Comment', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_single_blog_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_single_blog_comment_width',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_single_blog_comment_width',array(
		'label'	=> __('Comment Form Width','book-publisher-agency'),
		'description'	=> __('Enter a value in %. Example:50%','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => __( '100%', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_single_blog_settings',
		'type'=> 'text'
	));

	 // Grid layout setting
	$wp_customize->add_section( 'book_publisher_agency_grid_layout_settings', array(
		'title' => __( 'Grid Layout Settings', 'book-publisher-agency' ),
		'panel' => 'book_publisher_agency_blog_post_parent_panel',
	));

	$wp_customize->add_setting('book_publisher_agency_grid_postdate_icon',array(
		'default'	=> 'fas fa-calendar-alt',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_grid_postdate_icon',array(
		'label'	=> __('Add Post Date Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_grid_layout_settings',
		'setting'	=> 'book_publisher_agency_grid_postdate_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting( 'book_publisher_agency_grid_postdate',array(
	  'default' => 1,
	  'transport' => 'refresh',
	  'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  ) );
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_grid_postdate',array(
    'label' => esc_html__( 'Show / Hide Post Date','book-publisher-agency' ),
    'section' => 'book_publisher_agency_grid_layout_settings'
  )));

	$wp_customize->add_setting('book_publisher_agency_grid_author_icon',array(
		'default'	=> 'fas fa-user',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_grid_author_icon',array(
		'label'	=> __('Add Author Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_grid_layout_settings',
		'setting'	=> 'book_publisher_agency_grid_author_icon',
		'type'		=> 'icon'
	)));

  $wp_customize->add_setting( 'book_publisher_agency_grid_author',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  ) );
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_grid_author',array(
		'label' => esc_html__( 'Show / Hide Author','book-publisher-agency' ),
		'section' => 'book_publisher_agency_grid_layout_settings'
  )));

  $wp_customize->add_setting('book_publisher_agency_grid_comments_icon',array(
		'default'	=> 'fa fa-comments',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_grid_comments_icon',array(
		'label'	=> __('Add Comments Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_grid_layout_settings',
		'setting'	=> 'book_publisher_agency_grid_comments_icon',
		'type'		=> 'icon'
	)));

  	$wp_customize->add_setting( 'book_publisher_agency_grid_time',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  	) );
  	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_grid_time',array(
		'label' => esc_html__( 'Show / Hide Time','book-publisher-agency' ),
		'section' => 'book_publisher_agency_grid_layout_settings'
  	)));

  	$wp_customize->add_setting('book_publisher_agency_grid_time_icon',array(
		'default'	=> 'fas fa-clock',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_grid_time_icon',array(
		'label'	=> __('Add Time Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_grid_layout_settings',
		'setting'	=> 'book_publisher_agency_grid_time_icon',
		'type'		=> 'icon'
	)));

  	$wp_customize->add_setting( 'book_publisher_agency_grid_comments',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  	) );
  	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_grid_comments',array(
		'label' => esc_html__( 'Show / Hide Comments','book-publisher-agency' ),
		'section' => 'book_publisher_agency_grid_layout_settings'
  	)));

  	$wp_customize->add_setting( 'book_publisher_agency_grid_image_hide_show',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	));
  	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_grid_image_hide_show', array(
		'label' => esc_html__( 'Show / Hide Featured Image','book-publisher-agency' ),
		'section' => 'book_publisher_agency_grid_layout_settings'
  	)));

 	$wp_customize->add_setting('book_publisher_agency_grid_post_meta_field_separator',array(
		'default'=> '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_grid_post_meta_field_separator',array(
		'label'	=> __('Add Meta Separator','book-publisher-agency'),
		'description' => __('Add the seperator for meta box. Example: "|", "/", etc.','book-publisher-agency'),
		'section'=> 'book_publisher_agency_grid_layout_settings',
		'type'=> 'text'
	));

  	$wp_customize->add_setting('book_publisher_agency_display_grid_posts_settings',array(
    'default' => 'Into Blocks',
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_display_grid_posts_settings',array(
    'type' => 'select',
    'label' => __('Display Grid Posts','book-publisher-agency'),
    'section' => 'book_publisher_agency_grid_layout_settings',
    'choices' => array(
    	'Into Blocks' => __('Into Blocks','book-publisher-agency'),
      'Without Blocks' => __('Without Blocks','book-publisher-agency')
      ),
	) );

	$wp_customize->add_setting('book_publisher_agency_grid_button_text',array(
		'default'=> esc_html__('Read More','book-publisher-agency'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_grid_button_text',array(
		'label'	=> esc_html__('Add Button Text','book-publisher-agency'),
		'input_attrs' => array(
      'placeholder' => esc_html__( 'Read More', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_grid_layout_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_grid_excerpt_suffix',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_grid_excerpt_suffix',array(
		'label'	=> __('Add Excerpt Suffix','book-publisher-agency'),
		'input_attrs' => array(
        'placeholder' => __( '[...]', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_grid_layout_settings',
		'type'=> 'text'
	));

  $wp_customize->add_setting('book_publisher_agency_grid_excerpt_settings',array(
    'default' => 'Excerpt',
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_grid_excerpt_settings',array(
    'type' => 'select',
    'label' => esc_html__('Grid Post Content','book-publisher-agency'),
    'section' => 'book_publisher_agency_grid_layout_settings',
    'choices' => array(
    	'Content' => esc_html__('Content','book-publisher-agency'),
      'Excerpt' => esc_html__('Excerpt','book-publisher-agency'),
      'No Content' => esc_html__('No Content','book-publisher-agency')
    ),
	) );

  $wp_customize->add_setting( 'book_publisher_agency_grid_featured_image_border_radius', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_grid_featured_image_border_radius', array(
		'label'       => esc_html__( 'Grid Featured Image Border Radius','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_grid_layout_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'book_publisher_agency_grid_featured_image_box_shadow', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_grid_featured_image_box_shadow', array(
		'label'       => esc_html__( 'Grid Featured Image Box Shadow','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_grid_layout_settings',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	//Other
	$wp_customize->add_panel( 'book_publisher_agency_other_parent_panel', array(
		'title' => esc_html__( 'Other Settings', 'book-publisher-agency' ),
		'panel' => 'book_publisher_agency_panel_id',
		'priority' => 20,
	));

	// Layout
	$wp_customize->add_section( 'book_publisher_agency_left_right', array(
  	'title' => esc_html__('General Settings', 'book-publisher-agency'),
		'panel' => 'book_publisher_agency_other_parent_panel'
	) );

	$wp_customize->add_setting('book_publisher_agency_width_option',array(
    'default' => 'Full Width',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Image_Radio_Control($wp_customize, 'book_publisher_agency_width_option', array(
    'type' => 'select',
    'label' => esc_html__('Width Layouts','book-publisher-agency'),
    'description' => esc_html__('Here you can change the width layout of Website.','book-publisher-agency'),
    'section' => 'book_publisher_agency_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('book_publisher_agency_page_layout',array(
    'default' => 'One_Column',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_page_layout',array(
    'type' => 'select',
    'label' => esc_html__('Page Sidebar Layout','book-publisher-agency'),
    'description' => esc_html__('Here you can change the sidebar layout for pages. ','book-publisher-agency'),
    'section' => 'book_publisher_agency_left_right',
    'choices' => array(
        'Left_Sidebar' => esc_html__('Left Sidebar','book-publisher-agency'),
        'Right_Sidebar' => esc_html__('Right Sidebar','book-publisher-agency'),
        'One_Column' => esc_html__('One Column','book-publisher-agency')
    ),
	) );

	$wp_customize->add_setting( 'book_publisher_agency_single_page_breadcrumb1',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ) );
    $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_single_page_breadcrumb1',array(
		'label' => esc_html__( 'Show / Hide Page Breadcrumb','book-publisher-agency' ),
		'section' => 'book_publisher_agency_left_right'
    )));

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

	$wp_customize->add_control(
		new Book_Publisher_Agency_Toggle_Switch_Custom_Control(
			$wp_customize,
			'book_publisher_agency_progress_bar',
			array(
				'label'   => esc_html__( 'Show / Hide Progress Bar', 'book-publisher-agency' ),
				'section' => 'book_publisher_agency_left_right',
			)
		)
	);

	//Wow Animation
	$wp_customize->add_setting( 'book_publisher_agency_animation',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	));
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_animation',array(
		'label' => esc_html__( 'Show / Hide Animations','book-publisher-agency' ),
		'description' => __('Here you can disable overall site animation effect','book-publisher-agency'),
		'section' => 'book_publisher_agency_left_right'
	)));

    // Pre-Loader
		$wp_customize->add_setting( 'book_publisher_agency_loader_enable',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
	) );
	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_loader_enable',array(
		'label' => esc_html__( 'Pre-Loader','book-publisher-agency' ),
		'section' => 'book_publisher_agency_left_right'
	)));

	$wp_customize->add_setting('book_publisher_agency_preloader_bg_color', array(
		'default'           => '#385CFF',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'book_publisher_agency_preloader_bg_color', array(
		'label'    => __('Pre-Loader Background Color', 'book-publisher-agency'),
		'section'  => 'book_publisher_agency_left_right',
	)));

	$wp_customize->add_setting('book_publisher_agency_preloader_border_color', array(
		'default'           => '#ffffff',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'book_publisher_agency_preloader_border_color', array(
		'label'    => __('Pre-Loader Border Color', 'book-publisher-agency'),
		'section'  => 'book_publisher_agency_left_right',
	)));

	$wp_customize->add_setting('book_publisher_agency_preloader_bg_img',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw',
	));
	$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'book_publisher_agency_preloader_bg_img',array(
    'label' => __('Preloader Background Image','book-publisher-agency'),
    'section' => 'book_publisher_agency_left_right'
	)));

	$wp_customize->add_setting('book_publisher_agency_bradcrumbs_alignment',array(
        'default' => 'Left',
        'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_bradcrumbs_alignment',array(
        'type' => 'select',
        'label' => __('Breadcrumbs Alignment','book-publisher-agency'),
        'section' => 'book_publisher_agency_left_right',
        'choices' => array(
            'Left' => __('Left','book-publisher-agency'),
            'Right' => __('Right','book-publisher-agency'),
            'Center' => __('Center','book-publisher-agency'),
        ),
	) );

	$wp_customize->add_setting( 'book_publisher_agency_sticky_sidebar',array(
      'default' => 0,
      'transport' => 'refresh',
      'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ) );
    $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_sticky_sidebar',array(
      'label' => esc_html__( 'Show / Hide Sticky Sidebar','book-publisher-agency' ),
      'section' => 'book_publisher_agency_left_right'
    )));

    //404 Page Setting
	$wp_customize->add_section('book_publisher_agency_404_page',array(
		'title'	=> __('404 Page Settings','book-publisher-agency'),
		'panel' => 'book_publisher_agency_other_parent_panel',
	));

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

	$wp_customize->add_control('book_publisher_agency_404_page_title',array(
		'label'	=> __('Add Title','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( '404 Not Found', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_404_page',
		'type'=> 'text'
	));

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

	$wp_customize->add_control('book_publisher_agency_404_page_content',array(
		'label'	=> __('Add Text','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( 'Looks like you have taken a wrong turn, Dont worry, it happens to the best of us.', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_404_page',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_404_page_button_text',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_404_page_button_text',array(
		'label'	=> __('Add Button Text','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( 'Go Back', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_404_page',
		'type'=> 'text'
	));

	//No Result Page Setting
	$wp_customize->add_section('book_publisher_agency_no_results_page',array(
		'title'	=> __('No Results Page Settings','book-publisher-agency'),
		'panel' => 'book_publisher_agency_other_parent_panel',
	));

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

	$wp_customize->add_control('book_publisher_agency_no_results_page_title',array(
		'label'	=> __('Add Title','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( 'Nothing Found', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_no_results_page',
		'type'=> 'text'
	));

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

	$wp_customize->add_control('book_publisher_agency_no_results_page_content',array(
		'label'	=> __('Add Text','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_no_results_page',
		'type'=> 'text'
	));

	//Social Icon Setting
	$wp_customize->add_section('book_publisher_agency_social_icon_settings',array(
		'title'	=> __('Sidebar Social Icons Settings','book-publisher-agency'),
		'panel' => 'book_publisher_agency_other_parent_panel',
	));

	$wp_customize->add_setting('book_publisher_agency_social_icon_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_social_icon_font_size',array(
		'label'	=> __('Icon Font Size','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_social_icon_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_social_icon_padding',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_social_icon_padding',array(
		'label'	=> __('Icon Padding','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_social_icon_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_social_icon_width',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_social_icon_width',array(
		'label'	=> __('Icon Width','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_social_icon_settings',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_social_icon_height',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_social_icon_height',array(
		'label'	=> __('Icon Height','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_social_icon_settings',
		'type'=> 'text'
	));

	//Responsive Media Settings
	$wp_customize->add_section('book_publisher_agency_responsive_media',array(
		'title'	=> esc_html__('Responsive Media','book-publisher-agency'),
		'panel' => 'book_publisher_agency_other_parent_panel',
	));

	$wp_customize->add_setting( 'book_publisher_agency_responsive_topbar_hide',array(
      'default' => 1,
      'transport' => 'refresh',
      'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ));
    $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_responsive_topbar_hide',array(
      'label' => esc_html__( 'Show / Hide Topbar','book-publisher-agency' ),
      'section' => 'book_publisher_agency_responsive_media'
    )));

 	$wp_customize->add_setting( 'book_publisher_agency_resp_slider_hide_show',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ));  
    $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_resp_slider_hide_show',array(
      'label' => esc_html__( 'Show / Hide Slider','book-publisher-agency' ),
      'section' => 'book_publisher_agency_responsive_media'
    )));

   	$wp_customize->add_setting( 'book_publisher_agency_sidebar_hide_show',array(
		'default' => 1,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ));  
    $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_sidebar_hide_show',array(
      'label' => esc_html__( 'Show / Hide Sidebar','book-publisher-agency' ),
      'section' => 'book_publisher_agency_responsive_media'
    )));

   	$wp_customize->add_setting( 'book_publisher_agency_resp_scroll_top_hide_show',array(
      'default' => 1,
      'transport' => 'refresh',
      'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ));  
    $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_resp_scroll_top_hide_show',array(
      'label' => esc_html__( 'Show / Hide Scroll To Top','book-publisher-agency' ),
      'section' => 'book_publisher_agency_responsive_media'
    )));

    $wp_customize->add_setting( 'book_publisher_agency_responsive_preloader_hide',array(
        'default' => false,
        'transport' => 'refresh',
        'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
    ) );
    $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_responsive_preloader_hide',array(
        'label' => esc_html__( 'Show / Hide Preloader','book-publisher-agency' ),
        'section' => 'book_publisher_agency_responsive_media'
    )));
    
  	$wp_customize->add_setting('book_publisher_agency_res_open_menu_icon',array(
		'default'	=> 'fas fa-bars',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_res_open_menu_icon',array(
		'label'	=> __('Add Open Menu Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_responsive_media',
		'setting'	=> 'book_publisher_agency_res_open_menu_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('book_publisher_agency_res_close_menu_icon',array(
		'default'	=> 'fas fa-times',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control(new Book_Publisher_Agency_Fontawesome_Icon_Chooser(
        $wp_customize,'book_publisher_agency_res_close_menu_icon',array(
		'label'	=> __('Add Close Menu Icon','book-publisher-agency'),
		'transport' => 'refresh',
		'section'	=> 'book_publisher_agency_responsive_media',
		'setting'	=> 'book_publisher_agency_res_close_menu_icon',
		'type'		=> 'icon'
	)));

	$wp_customize->add_setting('book_publisher_agency_resp_menu_toggle_btn_bg_color', array(
		'default'           => '#385CFF',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'book_publisher_agency_resp_menu_toggle_btn_bg_color', array(
		'label'    => __('Toggle Button Bg Color', 'book-publisher-agency'),
		'section'  => 'book_publisher_agency_responsive_media',
	)));

	$wp_customize->add_setting( 'book_publisher_agency_stickyheader_hide_show',array(
	    'default' => 0,
	    'transport' => 'refresh',
	    'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  	));  
  	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_stickyheader_hide_show',array(
	    'label' => esc_html__( 'Show / Hide Sticky Header','book-publisher-agency' ),
	    'section' => 'book_publisher_agency_responsive_media'
  	)));

  //Woocommerce settings
	$wp_customize->add_section('book_publisher_agency_woocommerce_section', array(
		'title'    => __('WooCommerce Layout', 'book-publisher-agency'),
		'priority' => null,
		'panel'    => 'woocommerce',
	));

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

    //Woocommerce Shop Page Sidebar
	$wp_customize->add_setting( 'book_publisher_agency_woocommerce_shop_page_sidebar',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  ) );
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_woocommerce_shop_page_sidebar',array(
		'label' => esc_html__( 'Show / Hide Shop Page Sidebar','book-publisher-agency' ),
		'section' => 'book_publisher_agency_woocommerce_section'
  )));

   $wp_customize->add_setting('book_publisher_agency_shop_page_layout',array(
    'default' => 'Right Sidebar',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_shop_page_layout',array(
    'type' => 'select',
    'label' => __('Shop Page Sidebar Layout','book-publisher-agency'),
    'section' => 'book_publisher_agency_woocommerce_section',
    'choices' => array(
        'Left Sidebar' => __('Left Sidebar','book-publisher-agency'),
        'Right Sidebar' => __('Right Sidebar','book-publisher-agency'),
    ),
	) );

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

    //Woocommerce Single Product page Sidebar
	$wp_customize->add_setting( 'book_publisher_agency_woocommerce_single_product_page_sidebar',array(
		'default' => 0,
		'transport' => 'refresh',
		'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
   ) );
 	$wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_woocommerce_single_product_page_sidebar',array(
		'label' => esc_html__( 'Show / Hide Single Product Sidebar','book-publisher-agency' ),
		'section' => 'book_publisher_agency_woocommerce_section'
  )));

   $wp_customize->add_setting('book_publisher_agency_single_product_layout',array(
    'default' => 'Right Sidebar',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_single_product_layout',array(
    'type' => 'select',
    'label' => __('Single Product Sidebar Layout','book-publisher-agency'),
    'section' => 'book_publisher_agency_woocommerce_section',
    'choices' => array(
        'Left Sidebar' => __('Left Sidebar','book-publisher-agency'),
        'Right Sidebar' => __('Right Sidebar','book-publisher-agency'),
    ),
	) );

    //Products per page
    $wp_customize->add_setting('book_publisher_agency_products_per_page',array(
		'default'=> '9',
		'sanitize_callback'	=> 'book_publisher_agency_sanitize_float'
	));
	$wp_customize->add_control('book_publisher_agency_products_per_page',array(
		'label'	=> __('Products Per Page','book-publisher-agency'),
		'description' => __('Display on shop page','book-publisher-agency'),
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 50,
        ),
		'section'=> 'book_publisher_agency_woocommerce_section',
		'type'=> 'number',
	));

    //Products per row
    $wp_customize->add_setting('book_publisher_agency_products_per_row',array(
		'default'=> '3',
		'sanitize_callback'	=> 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_products_per_row',array(
		'label'	=> __('Products Per Row','book-publisher-agency'),
		'description' => __('Display on shop page','book-publisher-agency'),
		'choices' => array(
            '2' => '2',
			'3' => '3',
			'4' => '4',
        ),
		'section'=> 'book_publisher_agency_woocommerce_section',
		'type'=> 'select',
	));


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

	$wp_customize->add_setting('book_publisher_agency_products_padding_left_right',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_products_padding_left_right',array(
		'label'	=> __('Products Padding Left Right','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_woocommerce_section',
		'type'=> 'text'
	));

	//Products box shadow
	$wp_customize->add_setting( 'book_publisher_agency_products_box_shadow', array(
		'default'              => '',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_products_box_shadow', array(
		'label'       => esc_html__( 'Products Box Shadow','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_woocommerce_section',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	//Products border radius
    $wp_customize->add_setting( 'book_publisher_agency_products_border_radius', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_products_border_radius', array(
		'label'       => esc_html__( 'Products Border Radius','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_woocommerce_section',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	$wp_customize->add_setting( 'book_publisher_agency_products_button_border_radius', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_products_button_border_radius', array(
		'label'       => esc_html__( 'Products Button Border Radius','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_woocommerce_section',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

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

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

	$wp_customize->add_setting('book_publisher_agency_woocommerce_sale_font_size',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_woocommerce_sale_font_size',array(
		'label'	=> __('Sale Font Size','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
        'placeholder' => __( '10px', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_woocommerce_section',
		'type'=> 'text'
	));

	//Products Sale Badge
	$wp_customize->add_setting('book_publisher_agency_woocommerce_sale_position',array(
    'default' => 'right',
    'sanitize_callback' => 'book_publisher_agency_sanitize_choices'
	));
	$wp_customize->add_control('book_publisher_agency_woocommerce_sale_position',array(
    'type' => 'select',
    'label' => __('Sale Badge Position','book-publisher-agency'),
    'section' => 'book_publisher_agency_woocommerce_section',
    'choices' => array(
        'left' => __('Left','book-publisher-agency'),
        'right' => __('Right','book-publisher-agency'),
    ),
	) );

	$wp_customize->add_setting('book_publisher_agency_woocommerce_sale_padding_top_bottom',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_woocommerce_sale_padding_top_bottom',array(
		'label'	=> __('Sale Padding Top Bottom','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_woocommerce_section',
		'type'=> 'text'
	));

	$wp_customize->add_setting('book_publisher_agency_woocommerce_sale_padding_left_right',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('book_publisher_agency_woocommerce_sale_padding_left_right',array(
		'label'	=> __('Sale Padding Left Right','book-publisher-agency'),
		'description'	=> __('Enter a value in pixels. Example:20px','book-publisher-agency'),
		'input_attrs' => array(
            'placeholder' => __( '10px', 'book-publisher-agency' ),
        ),
		'section'=> 'book_publisher_agency_woocommerce_section',
		'type'=> 'text'
	));

	$wp_customize->add_setting( 'book_publisher_agency_woocommerce_sale_border_radius', array(
		'default'              => '0',
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'book_publisher_agency_sanitize_number_range'
	) );
	$wp_customize->add_control( 'book_publisher_agency_woocommerce_sale_border_radius', array(
		'label'       => esc_html__( 'Sale Border Radius','book-publisher-agency' ),
		'section'     => 'book_publisher_agency_woocommerce_section',
		'type'        => 'range',
		'input_attrs' => array(
			'step'             => 1,
			'min'              => 1,
			'max'              => 50,
		),
	) );

	// Related Product
  $wp_customize->add_setting( 'book_publisher_agency_related_product_show_hide',array(
    'default' => 1,
    'transport' => 'refresh',
    'sanitize_callback' => 'book_publisher_agency_switch_sanitization'
  ) );
  $wp_customize->add_control( new Book_Publisher_Agency_Toggle_Switch_Custom_Control( $wp_customize, 'book_publisher_agency_related_product_show_hide',array(
    'label' => esc_html__( 'Show / Hide Related product','book-publisher-agency' ),
    'section' => 'book_publisher_agency_woocommerce_section'
  )));

}

add_action( 'customize_register', 'book_publisher_agency_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 Book_Publisher_Agency_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( 'Book_Publisher_Agency_Customize_Section_Pro' );

		// Register sections.
		$manager->add_section( new Book_Publisher_Agency_Customize_Section_Pro( $manager,'book_publisher_agency_go_pro', array(
			'priority'   => 1,
			'title'    => esc_html__( 'BOOK PUBLISHER PRO', 'book-publisher-agency' ),
			'pro_text' => esc_html__( 'UPGRADE PRO', 'book-publisher-agency' ),
			'pro_url'  => esc_url('https://www.vwthemes.com/products/publisher-wordpress-theme'),
		) )	);

		// Register sections.
		$manager->add_section(new Book_Publisher_Agency_Customize_Section_Pro($manager,'book_publisher_agency_get_started_link',array(
			'priority'   => 1,
			'title'    => esc_html__( 'DOCUMENTATION', 'book-publisher-agency' ),
			'pro_text' => esc_html__( 'DOCS', 'book-publisher-agency' ),
			'pro_url'  => esc_url('https://preview.vwthemesdemo.com/docs/free-book-publisher-agency/'),
		)));

		$manager->add_section(new Book_Publisher_Agency_Customize_Section_Pro($manager,'book_publisher_agency_live_demo_link',array(
			'priority'   => 1,
			'title'    => esc_html__( 'LIVE DEMO', 'book-publisher-agency' ),
			'pro_text' => esc_html__( 'LIVE DEMO', 'book-publisher-agency' ),
			'pro_url'  => esc_url('https://www.vwthemes.net/book-publisher-agency/'),
		)));
	}

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

		wp_enqueue_script( 'book-publisher-agency-customize-controls', trailingslashit( get_template_directory_uri() ) . '/assets/js/customize-controls.js', array( 'customize-controls' ) );

		wp_enqueue_style( 'book-publisher-agency-customize-controls', trailingslashit( get_template_directory_uri() ) . '/assets/css/customize-controls.css' );
	}
}

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