<?php
/**
 * inside-tours: Customizer
 *
 * @subpackage inside-tours
 * @since 1.0
 */

function inside_tours_customize_register( $wp_customize ) {

	$wp_customize->add_setting('inside_tours_logo_size',array(
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_logo_size',array(
		'label' => __('Logo Size','inside-tours'),
		'type'	=> 'range',
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('inside_tours_logo_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('inside_tours_logo_padding',array(
		'label' => __('Logo Padding','inside-tours'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('inside_tours_logo_top_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_logo_top_padding',array(
		'type' => 'number',
		'description' => __('Top','inside-tours'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('inside_tours_logo_bottom_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_logo_bottom_padding',array(
		'type' => 'number',
		'description' => __('Bottom','inside-tours'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('inside_tours_logo_left_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_logo_left_padding',array(
		'type' => 'number',
		'description' => __('Left','inside-tours'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('inside_tours_logo_right_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_logo_right_padding',array(
		'type' => 'number',
		'description' => __('Right','inside-tours'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('inside_tours_show_site_title',array(
		'default' => true,
		'sanitize_callback'	=> 'inside_tours_sanitize_checkbox'
	));
	$wp_customize->add_control('inside_tours_show_site_title',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Title','inside-tours'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('inside_tours_site_title_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_site_title_font_size',array(
		'type' => 'number',
		'label' => __('Site Title Font Size','inside-tours'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting( 'inside_tours_site_title_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_site_title_color', array(
		'label' => 'Title Color',
		'section' => 'title_tagline',
	)));

	$wp_customize->add_setting('inside_tours_show_tagline',array(
		'default' => true,
		'sanitize_callback'	=> 'inside_tours_sanitize_checkbox'
	));
	$wp_customize->add_control('inside_tours_show_tagline',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Tagline','inside-tours'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('inside_tours_site_tagline_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_site_tagline_font_size',array(
		'type' => 'number',
		'label' => __('Site Tagline Font Size','inside-tours'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting( 'inside_tours_site_tagline_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_site_tagline_color', array(
		'label' => 'Tagline Color',
		'section' => 'title_tagline',
	)));

	$wp_customize->add_panel( 'inside_tours_panel_id', array(
		'priority' => 10,
		'capability' => 'edit_theme_options',
		'theme_supports' => '',
		'title' => __( 'Theme Settings', 'inside-tours' ),
		'description' => __( 'Description of what this panel does.', 'inside-tours' ),
	) );

	$wp_customize->add_section( 'inside_tours_theme_options_section', array(
    	'title'      => __( 'General Settings', 'inside-tours' ),
		'priority'   => 30,
		'panel' => 'inside_tours_panel_id'
	) );

	// Add Settings and Controls for Layout
	$wp_customize->add_setting('inside_tours_theme_options',array(
		'default' => 'Right Sidebar',
		'sanitize_callback' => 'inside_tours_sanitize_choices'	        
	));

	$wp_customize->add_control('inside_tours_theme_options',array(
		'type' => 'radio',
		'label' => __('Do you want this section','inside-tours'),
		'section' => 'inside_tours_theme_options_section',
		'choices' => array(
		   'Left Sidebar' => __('Left Sidebar','inside-tours'),
		   'Right Sidebar' => __('Right Sidebar','inside-tours'),
		   'One Column' => __('One Column','inside-tours'),
		   'Three Columns' => __('Three Columns','inside-tours'),
		   'Four Columns' => __('Four Columns','inside-tours'),
		   'Grid Layout' => __('Grid Layout','inside-tours')
		),
	));

	$wp_customize->add_setting( 'inside_tours_boxfull_width', array(
		'default'           => '',
		'sanitize_callback' => 'inside_tours_sanitize_choices'
	));
	
	$wp_customize->add_control( 'inside_tours_boxfull_width', array(
		'label'    => __( 'Section Width', 'inside-tours' ),
		'section'  => 'inside_tours_theme_options_section',
		'type'     => 'select',
		'choices'  => array(
			'container'  => __('Box Width', 'inside-tours'),
			'container-fluid' => __('Full Width', 'inside-tours'),
			'none' => __('None', 'inside-tours')
		),
	));

	$wp_customize->add_setting( 'inside_tours_dropdown_anim', array(
		'default'           => 'None',
		'sanitize_callback' => 'inside_tours_sanitize_choices'
	));
	$wp_customize->add_control( 'inside_tours_dropdown_anim', array(
		'label'    => __( 'Menu Dropdown Animations', 'inside-tours' ),
		'section'  => 'inside_tours_theme_options_section',
		'type'     => 'select',
		'choices'  => array(
			'bounceInUp'  => __('bounceInUp', 'inside-tours'),
			'fadeInUp' => __('fadeInUp', 'inside-tours'),
			'zoomIn'    => __('zoomIn', 'inside-tours'),
			'None'    => __('None', 'inside-tours')
		),
	));

	//Topbar
	$wp_customize->add_section( 'inside_tours_topbar_section' , array(
    	'title'      => __( 'Topbar Section', 'inside-tours' ),
		'priority'   => null,
		'panel' => 'inside_tours_panel_id'
	) );

	$wp_customize->add_setting('inside_tours_hide_show_topbar',array(
    	'default' => false,
    	'sanitize_callback'	=> 'inside_tours_sanitize_checkbox'
	));
	$wp_customize->add_control('inside_tours_hide_show_topbar',array(
   	'type' => 'checkbox',
   	'label' => __('Show / Hide Topbar','inside-tours'),
   	'section' => 'inside_tours_topbar_section',
	));

	$wp_customize->add_setting('inside_tours_topbar_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('inside_tours_topbar_text',array(
		'label'	=> __('Topbar Text','inside-tours'),
		'section' => 'inside_tours_topbar_section',
		'type'	  => 'text'
	));

	$wp_customize->add_setting('inside_tours_topbar_email',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_email'
	));	
	$wp_customize->add_control('inside_tours_topbar_email',array(
		'label'	=> __('Add Email Address','inside-tours'),
		'section' => 'inside_tours_topbar_section',
		'type'	  => 'text'
	));

	$wp_customize->add_setting('inside_tours_topbar_call',array(
		'default'	=> '',
		'sanitize_callback'	=> 'inside_tours_sanitize_phone_number'
	));	
	$wp_customize->add_control('inside_tours_topbar_call',array(
		'label'	=> __('Add Phone No.','inside-tours'),
		'section' => 'inside_tours_topbar_section',
		'type'	  => 'text'
	));

	$wp_customize->add_setting('inside_tours_topbar_book_btn_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('inside_tours_topbar_book_btn_text',array(
		'label'	=> __('Book Button Text','inside-tours'),
		'section' => 'inside_tours_topbar_section',
		'type'	  => 'text'
	));

	$wp_customize->add_setting('inside_tours_topbar_book_btn_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('inside_tours_topbar_book_btn_url',array(
		'label'	=> __('Book Button URL','inside-tours'),
		'section' => 'inside_tours_topbar_section',
		'type'	  => 'url'
	));

	$wp_customize->add_setting( 'inside_tours_toptext_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_toptext_color', array(
		'label' => 'Text Color',
		'section' => 'inside_tours_topbar_section',
	)));

	$wp_customize->add_setting( 'inside_tours_topicon_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_topicon_color', array(
		'label' => 'Icon Color',
		'section' => 'inside_tours_topbar_section',
	)));

	$wp_customize->add_setting( 'inside_tours_topce_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_topce_color', array(
		'label' => 'Call & Email Text Color',
		'section' => 'inside_tours_topbar_section',
	)));

	$wp_customize->add_setting( 'inside_tours_topbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_topbg_color', array(
		'label' => 'Background Color',
		'section' => 'inside_tours_topbar_section',
	)));

	//home page slider
	$wp_customize->add_section( 'inside_tours_slider_section' , array(
    	'title'      => __( 'Slider Settings', 'inside-tours' ),
		'priority'   => null,
		'panel' => 'inside_tours_panel_id'
	) );

	$wp_customize->add_setting('inside_tours_slider_hide_show',array(
    	'default' => false,
    	'sanitize_callback'	=> 'inside_tours_sanitize_checkbox'
	));
	$wp_customize->add_control('inside_tours_slider_hide_show',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide slider','inside-tours'),
		'description' => __('Image Size ( 1500px x 450px )','inside-tours'),
		'section' => 'inside_tours_slider_section',
	));

	$wp_customize->add_setting( 'inside_tours_slider_effect', array(
		'default'           => '',
		'sanitize_callback' => 'inside_tours_sanitize_choices'
	));
	$wp_customize->add_control( 'inside_tours_slider_effect', array(
		'label'    => __( 'Onload Transactions Effects', 'inside-tours' ),
		'section'  => 'inside_tours_slider_section',
		'type'     => 'select',
		'choices'  => array(
			'bounceInLeft'  => __('bounceInLeft', 'inside-tours'),
			'bounceInRight' => __('bounceInRight', 'inside-tours'),
			'bounceInUp'    => __('bounceInUp', 'inside-tours'),
			'bounceInDown'    => __('bounceInDown', 'inside-tours'),
			'zoomIn'  => __('zoomIn', 'inside-tours'),
			'zoomOut' => __('zoomOut', 'inside-tours'),
			'fadeInDown'    => __('fadeInDown', 'inside-tours'),
			'fadeInUp'    => __('fadeInUp', 'inside-tours'),
			'fadeInLeft'  => __('fadeInLeft', 'inside-tours'),
			'fadeInRight' => __('fadeInRight', 'inside-tours'),
			'flip-up'    => __('flip-up', 'inside-tours'),
			'none'    => __('none', 'inside-tours')
		),
	));

	for ( $count = 1; $count <= 4; $count++ ) {
		$wp_customize->add_setting( 'inside_tours_slider' . $count, array(
			'default'           => '',
			'sanitize_callback' => 'inside_tours_sanitize_dropdown_pages'
		) );
		$wp_customize->add_control( 'inside_tours_slider' . $count, array(
			'label'    => __( 'Select Slide Image Page', 'inside-tours' ),
			'section'  => 'inside_tours_slider_section',
			'type'     => 'dropdown-pages'
		) );
	}

	$wp_customize->add_setting('inside_tours_slider_excerpt_length',array(
		'default' => '12',
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_slider_excerpt_length',array(
		'type' => 'number',
		'label' => __('Slider Excerpt Length','inside-tours'),
		'section' => 'inside_tours_slider_section',
	));

	$wp_customize->add_setting('inside_tours_slider_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_slider_font_size',array(
		'type' => 'number',
		'label' => __('Title Font Size','inside-tours'),
		'section' => 'inside_tours_slider_section',
	));

	$wp_customize->add_setting('inside_tours_slider_text_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_slider_text_font_size',array(
		'type' => 'number',
		'label' => __('Text Font Size','inside-tours'),
		'section' => 'inside_tours_slider_section',
	));

	$wp_customize->add_setting( 'inside_tours_slider_title_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_slider_title_color', array(
		'label' => 'Title Color',
		'section' => 'inside_tours_slider_section',
	)));

	$wp_customize->add_setting( 'inside_tours_slider_text_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_slider_text_color', array(
		'label' => 'Text Color',
		'section' => 'inside_tours_slider_section',
	)));

	// Top Destination
	$wp_customize->add_section( 'inside_tours_destination_section' , array(
    	'title'      => __( 'Top Destination', 'inside-tours' ),
		'description'=> __('<b>Note :</b> This section will appear below the slider.','inside-tours'),
		'priority'   => null,
		'panel' => 'inside_tours_panel_id'
	) );

	$wp_customize->add_setting('inside_tours_section_heading',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('inside_tours_section_heading',array(
		'label'	=> __('Section Heading','inside-tours'),
		'section' => 'inside_tours_destination_section',
		'type'	  => 'text'
	));

	$wp_customize->add_setting('inside_tours_section_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('inside_tours_section_text',array(
		'label'	=> __('Section Text','inside-tours'),
		'section' => 'inside_tours_destination_section',
		'type'	  => 'text'
	));

	$categories = get_categories();
	$cats = array();
	$i = 0;
	$cat_pst[]= 'select';
	foreach($categories as $category){
		if($i==0){
			$default = $category->slug;
			$i++;
		}
		$cat_pst[$category->slug] = $category->name;
	}

	$wp_customize->add_setting('inside_tours_destination_cat',array(
		'default'	=> 'select',
		'sanitize_callback' => 'inside_tours_sanitize_choices',
	));
	$wp_customize->add_control('inside_tours_destination_cat',array(
		'type'    => 'select',
		'choices' => $cat_pst,
		'label' => __('Select Category to display Post','inside-tours'),
		'section' => 'inside_tours_destination_section',
	));

	$wp_customize->add_setting('inside_tours_destination_img_size',array(
		'default' => '',
		'sanitize_callback' => 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_destination_img_size',array(
		'type' => 'number',
		'label' => __('Image Size','inside-tours'),
		'section' => 'inside_tours_destination_section',
	));

	$wp_customize->add_setting('inside_tours_destination_btn_text',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('inside_tours_destination_btn_text',array(
		'label'	=> __('Add Button Text','inside-tours'),
		'section' => 'inside_tours_destination_section',
		'type'	  => 'text'
	));

	$wp_customize->add_setting('inside_tours_destination_btn_url',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));	
	$wp_customize->add_control('inside_tours_destination_btn_url',array(
		'label'	=> __('Add Button URL','inside-tours'),
		'section' => 'inside_tours_destination_section',
		'type'	  => 'url'
	));

	$wp_customize->add_setting('inside_tours_destination_section_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
	));
	$wp_customize->add_control('inside_tours_destination_section_padding',array(
		'type' => 'number',
		'label' => __('Section Top And Bottom Padding','inside-tours'),
		'section' => 'inside_tours_destination_section',
	));

	$wp_customize->add_setting( 'inside_tours_destination_section_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_destination_section_color', array(
		'label' => 'Section Heading Color',
		'section' => 'inside_tours_destination_section',
	)));

	$wp_customize->add_setting( 'inside_tours_destination_section_text_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_destination_section_text_color', array(
		'label' => 'Section Text Color',
		'section' => 'inside_tours_destination_section',
	)));

	$wp_customize->add_setting( 'inside_tours_destination_title_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_destination_title_color', array(
		'label' => 'Title Color',
		'section' => 'inside_tours_destination_section',
	)));

	$wp_customize->add_setting( 'inside_tours_destination_text_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'inside_tours_destination_text_color', array(
		'label' => 'Text Color',
		'section' => 'inside_tours_destination_section',
	)));

	//Footer
    $wp_customize->add_section( 'inside_tours_footer', array(
    	'title'      => __( 'Footer Text', 'inside-tours' ),
		'priority'   => null,
		'panel' => 'inside_tours_panel_id'
	) );

	$wp_customize->add_setting('inside_tours_show_back_totop',array(
 		'default' => true,
   	'sanitize_callback'	=> 'inside_tours_sanitize_checkbox'
	));
	$wp_customize->add_control('inside_tours_show_back_totop',array(
   	'type' => 'checkbox',
   	'label' => __('Show / Hide Back to Top','inside-tours'),
   	'section' => 'inside_tours_footer'
	));

 	$wp_customize->add_setting('inside_tours_footer_link',array(
		'default'	=> 'https://www.luzuk.com/products/free-tour-wordpress-theme/',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('inside_tours_footer_link',array(
		'label'	=> __('Footer Link','inside-tours'),
		'section'	=> 'inside_tours_footer',
		'setting'	=> 'inside_tours_footer_link',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('inside_tours_footer_copy',array(
		'default'	=> 'Inside Tour WordPress Theme By Luzuk',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('inside_tours_footer_copy',array(
		'label'	=> __('Footer Text','inside-tours'),
		'section'	=> 'inside_tours_footer',
		'setting'	=> 'inside_tours_footer_copy',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('inside_tours_copyright_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'inside_tours_sanitize_float'
 	));
 	$wp_customize->add_control('inside_tours_copyright_padding',array(
		'type' => 'number',
		'label' => __('Copyright Top Bottom Padding','inside-tours'),
		'section' => 'inside_tours_footer',
	));

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

	$wp_customize->selective_refresh->add_partial( 'blogname', array(
		'selector' => '.site-title a',
		'render_callback' => 'inside_tours_customize_partial_blogname',
	) );
	$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
		'selector' => '.site-description',
		'render_callback' => 'inside_tours_customize_partial_blogdescription',
	) );
}
add_action( 'customize_register', 'inside_tours_customize_register' );

function inside_tours_customize_partial_blogname() {
	bloginfo( 'name' );
}

function inside_tours_customize_partial_blogdescription() {
	bloginfo( 'description' );
}

function inside_tours_is_static_front_page() {
	return ( is_front_page() && ! is_home() );
}

function inside_tours_is_view_with_layout_option() {
	// This option is available on all pages. It's also available on archives when there isn't a sidebar.
	return ( is_page() || ( is_archive() && ! is_active_sidebar( 'sidebar-1' ) ) );
}

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

		// Register sections.
		$manager->add_section(
			new Inside_Tours_Customize_Section_Pro(
				$manager,
				'inside_tours_example_1',
				array(
					'priority' => 9,
					'title'    => esc_html__( 'Inside Tours Pro ', 'inside-tours' ),
					'pro_text' => esc_html__( 'Go Pro','inside-tours' ),
					'pro_url'  => esc_url( 'https://www.luzuk.com/products/tour-wordpress-theme/' ),
				)
			)
		);
	}

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

		wp_enqueue_script( 'inside-tours-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/assets/js/customize-controls.js', array( 'customize-controls' ) );

		wp_enqueue_style( 'inside-tours-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/assets/css/customize-controls.css' );
	}
}

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