<?php
/**
 * Loader options
 *
 * @package Theme Palace
 * @subpackage Travel Insight Pro
 * @since Travel Insight Pro 1.0
 */

$wp_customize->add_section( 'travel_insight_pro_loader', array(
	'title'            		=> esc_html__( 'Loader','travel-insight-pro' ),
	'description'      		=> esc_html__( 'Loader section options.', 'travel-insight-pro' ),
	'panel'            		=> 'travel_insight_pro_theme_options_panel',
) );

// Loader enable setting and control.
$wp_customize->add_setting( 'travel_insight_pro_theme_options[loader_enable]', array(
	'sanitize_callback'		=> 'travel_insight_pro_sanitize_checkbox',
	'default'             	=> $options['loader_enable'],
) );

$wp_customize->add_control( 'travel_insight_pro_theme_options[loader_enable]', array(
	'label'               	=> esc_html__( 'Enable loader', 'travel-insight-pro' ),
	'section'             	=> 'travel_insight_pro_loader',
	'type'                	=> 'checkbox',
) );

