<?php
/**
 * Spiral Lite One Page Theme Customizer
 *
 * @package Spiral_Lite_One_Page
 */

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

	//$wp_customize->get_section( 'title_tagline' )->panel     = 'wp_default_panel';
   // $wp_customize->get_section( 'colors' )->panel            = 'wp_default_panel';
   // $wp_customize->get_section( 'background_image' )->panel  = 'wp_default_panel';
   // $wp_customize->get_section( 'static_front_page' )->panel = 'wp_default_panel';*/ 

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

		
	//require get_template_directory() . '/inc/customizer/controls/font-control.php';
	//require get_template_directory() . '/inc/customizer/sanitization.php';

	if ( isset( $wp_customize->selective_refresh ) ) {
		$wp_customize->selective_refresh->add_partial(
			'blogname',
			array(
				'selector'        => '.site-title a',
				'render_callback' => 'spiral_lite_one_page_customize_partial_blogname',
			)
		);
		$wp_customize->selective_refresh->add_partial(
			'blogdescription',
			array(
				'selector'        => '.site-description',
				'render_callback' => 'spiral_lite_one_page_customize_partial_blogdescription',
			)
		);
	}

	/**
     * Sanitization Functions
     * 
     * @link https://github.com/WPTRT/code-examples/blob/master/customizer/sanitization-callbacks.php 
    */    
    function spiral_lite_one_page_sanitize_checkbox( $checked ){
        // Boolean check.
	   return ( ( isset( $checked ) && true == $checked ) ? true : false );
    }
    
    function spiral_lite_one_page_sanitize_checkbox_select( $input, $setting ) {
    	// Ensure input is a slug.
    	$input = sanitize_key( $input );
    	// Get list of choices from the control associated with the setting.
    	$choices = $setting->manager->get_control( $setting->id )->choices;
    	// If the input is a valid key, return it; otherwise, return the default.
    	return ( array_key_exists( $input, $choices ) ? $input : $setting->default );
    }
    
    function spiral_lite_one_page_sanitize_checkbox_number_absint( $number, $setting ) {
    	// Ensure $spiral_lite_one_page_number is an absolute integer (whole number, zero or greater).
    	$number = absint( $number );
    	// If the input is an absolute integer, return it; otherwise, return the default
    	return ( $number ? $number : $setting->default );
    }
    
    function spiral_lite_one_page_sanitize_checkbox_email( $email, $setting ) {
    	// Sanitize $input as a hex value without the hash prefix.
    	$email = sanitize_email( $email );    	
    	// If $email is a valid email, return it; otherwise, return the default.
    	return ( !empty( $email ) ? $email : $setting->default );
    }
    
    function spiral_lite_one_page_sanitize_checkbox_css( $css ){
    	return wp_strip_all_tags( $css );
    }   
    
    function spiral_lite_one_page_sanitize_checkbox_multiple_check( $values ) {    
        $multi_values = !is_array( $values ) ? explode( ',', $values ) : $values;    
        return !empty( $multi_values ) ? array_map( 'sanitize_text_field', $multi_values ) : array();
    }

	function spiral_lite_one_page_sanitize_multiple_check( $values ) {    
        $multi_values = !is_array( $values ) ? explode( ',', $values ) : $values;    
        return !empty( $multi_values ) ? array_map( 'sanitize_text_field', $multi_values ) : array();
    }
    

		/** Radio Sanitize */
	function spirallite_sanitize_radio( $input, $setting ) {
		// Ensure input is a slug.
		$input = sanitize_key( $input );
		// Get list of choices from the control associated with the setting.
		$choices = $setting->manager->get_control( $setting->id )->choices;
		// If the input is a valid key, return it; otherwise, return the default.
		return ( array_key_exists( $input, $choices ) ? $input : $setting->default );
	}  

}


add_action( 'customize_register', 'spiral_lite_one_page_customize_register' );



/**
 * Render the site title for the selective refresh partial.
 *
 * @return void
 */
function spiral_lite_one_page_customize_partial_blogname() {
	bloginfo( 'name' );
}

/**
 * Render the site tagline for the selective refresh partial.
 *
 * @return void
 */
function spiral_lite_one_page_customize_partial_blogdescription() {
	bloginfo( 'description' );
}

/**
 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
 */
function spiral_lite_one_page_customize_preview_js() {
	wp_enqueue_script( 'spiral-lite-one-page-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), SPIRAL_LITE_ONE_PAGE_VERSION, true );
}
add_action( 'customize_preview_init', 'spiral_lite_one_page_customize_preview_js' );

/**
 * PRO PAGE

 */

 require get_template_directory() . '/inc/go-pro/class-customize.php'; 

 /*-----------------------------------------------------------------------------------*/
/*	Customizer
/*-----------------------------------------------------------------------------------*/
function spiral_lite_one_page_my_register_additional_customizer_settings( $wp_customize ) {

	 /* Option list of all categories */
	 $args = array(
		'type'         => 'post',
		'orderby'      => 'name',
		'order'        => 'ASC',
		'hide_empty'   => 1,
		'hierarchical' => 1,
		'taxonomy'     => 'category'
	 ); 
	 $option_categories = array();
	 $category_lists = get_categories( $args );
	 $option_categories[''] = __( 'Choose Category', 'spiral-lite-one-page' );
	 foreach( $category_lists as $category ){
		 $option_categories[$category->term_id] = $category->name;
	 }
	 
	 $option_cat = array();
	 foreach( $category_lists as $cat ){
		 $option_cat[$cat->term_id] = $cat->name;
	 }
		 
	 /* Option list of all post */	
	 $options_posts = array();
	 $options_posts_obj = get_posts('posts_per_page=-1');
	 $options_posts[''] = __( 'Choose Post', 'spiral-lite-one-page' );
	 foreach ( $options_posts_obj as $posts ) {
		 $options_posts[$posts->ID] = $posts->post_title;
	 }
	 
	 /* Option list of all pages */	
	 $options_pages = array();
	 $options_pages_obj = get_posts('posts_per_page=-1&post_type=page');
	 $options_pages[''] = __( 'Choose Page', 'spiral-lite-one-page' );
	 foreach ( $options_pages_obj as $pages ) {
		 $options_pages[$pages->ID] = $pages->post_title;
	 }

	$wp_customize->add_section( 'theme_info', array(
		'title'       => __( 'Demo & Documentation', 'spiral-lite-one-page' ),
		'priority'    => 6,
	) );
	
	/** Important Links */
	$wp_customize->add_setting( 'theme_info_theme',
		array(
			'default' => '',
			'sanitize_callback' => 'wp_kses_post',
		)
	);
	
	$theme_info = '';
	$theme_info .= sprintf( '<p>' . __( 'Demo Link: %1$sClick here.%2$s', 'spiral-lite-one-page' ) . '</p>', '<a href="' . esc_url( 'https://pixelonetry.com/previews/?theme=spiral-lite' ) . '" target="_blank">', '</a>' );
	$theme_info .= sprintf( '<p>' . __( 'Pro Demo Link: %1$sClick here.%2$s', 'spiral-lite-one-page' ) . '</p>', '<a href="' . esc_url( 'https://pixelonetry.com/previews/?theme=spiral' ) . '" target="_blank">', '</a>' );
	$theme_info .= sprintf( '<p>' . __( 'Documentation Link: %1$sClick here.%2$s', 'spiral-lite-one-page' ) . '</p>', '<a href="' . esc_url( 'https://pixelonetry.com/docs/spirallite/' ) . '" target="_blank">', '</a>' );
	$theme_info .= sprintf( '<p>' . __( 'Video Tutorial: %1$sClick here.%2$s', 'spiral-lite-one-page' ) . '</p>', '<a href="' . esc_url( 'https://www.youtube.com/watch?v=6FyecnWnJtk' ) . '" target="_blank">', '</a>' );
	$theme_info .= sprintf( '<p>' . __( 'Submit Ticket: %1$sClick here.%2$s', 'spiral-lite-one-page' ) . '</p>', '<a href="' . esc_url( 'https://pixelonetry.freshdesk.com/support/tickets/new' ) . '" target="_blank">', '</a>' );
	$theme_info .= sprintf( '<p>' . __( 'Rate This Theme: %1$sClick here.%2$s', 'spiral-lite-one-page' ) . '</p>', '<a href="' . esc_url( 'https://wordpress.org/support/theme/spiral-lite-one-page/reviews/#new-post' ) . '" target="_blank">', '</a>' );

	
	$wp_customize->add_control( new WP_Customize_Control( $wp_customize,
		'theme_info_theme',
		array(
			'section'     => 'theme_info',
			'description' => $theme_info,
			'type'        => 'hidden', // Optional, can hide the control input
		)
	));
	 
	
	  /** Section Menu Setting */
	  $wp_customize->add_section(
        'spiral_lite_one_page_section_menu_setting',
        array(
            'title'     => __( 'Front Page Menu', 'spiral-lite-one-page' ),
            'priority'  => 19,
            'capability'=> 'edit_theme_options',
        )
    );    
    
    /** Enable/Disable Home Link */
    $wp_customize->add_setting(
        'spiral-lite-one-page_ed_home_link',
        array(
            'default' => '',
            'sanitize_callback' => 'spiral_lite_one_page_sanitize_checkbox',
        )
    );
    
    $wp_customize->add_control(
        'spiral-lite-one-page_ed_home_link',
        array(
            'label' => __( 'Disable Home Link', 'spiral-lite-one-page' ),
            'description' => __( 'Enable to disable Home Link', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_section_menu_setting',
            'type' => 'checkbox',
        )
    );
    
    /** Enable/Disable Section Menu */
    $wp_customize->add_setting(
        'spiral_lite_one_page_ed_secion_menu',
        array(
            'default' => '',
            'sanitize_callback' => 'spiral_lite_one_page_sanitize_checkbox',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_ed_secion_menu',
        array(
            'label' => __( 'Disable Front Section Menu', 'spiral-lite-one-page' ),
            'description' => __( 'Enable to disable Front Page Section Menu', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_section_menu_setting',
            'type' => 'checkbox',
        )
    );
    
    /** Home Link Label */
    $wp_customize->add_setting(
        'spiral_lite_one_page_home_link_label',
        array(
            'default' => __( 'Home', 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    $wp_customize->add_control(
        'spiral_lite_one_page_home_link_label',
        array(
            'label' => __( 'Home Link Label', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_section_menu_setting',
            'type' => 'text',
        )
    );
    /** Section Menu Setting Ends */

	 /** Social Settings */

	$wp_customize->add_section(
		'spirallite_landing_page_settings',
		array(
			'title' => __( 'Landing Page Settings', 'spiral-lite-one-page' ),
			'description' => __( 'Landing Page Setting Displayed In your main page', 'spiral-lite-one-page' ),
			'priority' => 40,
		)
	);

	// hero Header Section // 
	$wp_customize->add_setting(
		'hero_head_header_setting_options'
			,array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'spirallite_sanitize_text',
			'priority' => 2,
		)
	);

	$wp_customize->add_control(
	'hero_head_header_setting_options',
		array(
			'type' => 'hidden',
			'label' => __('Setting','spiral-lite-one-page'),
			'section' => 'spirallite_landing_page_settings',
		)
	);

	  /** Enable/Disable hero Section */
    $wp_customize->add_setting(
        'spiral-lite-one-page_ed_hero_section',
        array(
            'default' => true,
            'sanitize_callback' => 'spiral_lite_one_page_sanitize_checkbox',
			'transport'         => 'refresh', 
        )
    );
    
    $wp_customize->add_control(
        'spiral-lite-one-page_ed_hero_section',
        array(
            'label' => __( 'Enable hero Section', 'spiral-lite-one-page' ),
            'section' => 'spirallite_landing_page_settings',
            'type' => 'checkbox',
        )
    );

	// hero Header Section // 
	$wp_customize->add_setting(
		'hero_head_header_options'
			,array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'spirallite_sanitize_text',
			'priority' => 4,
		)
	);

	$wp_customize->add_control(
	'hero_head_header_options',
		array(
			'type' => 'hidden',
			'label' => __('Header','spiral-lite-one-page'),
			'section' => 'spirallite_landing_page_settings',
		)
	);

// Add the setting
$wp_customize->add_setting(
    'landing-page-bg',
    array(
      //  'default'           => '',
	    'default'           => get_template_directory_uri() . '/images/bg.jpg', // Default image URL
        'transport'         => 'refresh',
        'sanitize_callback' => 'esc_url_raw', // Ensure it's a valid URL
    )
);

// Add the control
$wp_customize->add_control(
    new WP_Customize_Image_Control(
        $wp_customize,
        'landing-page-bg',
        array(
            'label'    => __( 'Upload Image', 'spiral-lite-one-page' ),
            'section'  => 'spirallite_landing_page_settings',
            'settings' => 'landing-page-bg', // Corrected to match the setting ID
        )
    )
);

	   // Default 
		$defaultInfo = <<<EOL
		<h1>We're Web Design Studio Based in Los Angeles and San Francisco</h1>
		<h3>We specialize in creative projects of all <br> web design. Start internet <br> <strong>marketing strategy</strong> and <strong>branding</strong> with us! and <br> business development</h3>
		EOL;

		$upgrade_description = sprintf( 
			__( '%1$sUpgrade to Pro unlock The section.%2$s %3$sUpgrade to Pro%4$s ', 'spiral-lite-one-page' ),
			'<div class="pro-version-button"><span>',
			'</span>',
			'<a href="https://pixelonetry.com/downloads/spiral-one-page-parallax-wordpress-theme/" target="_blank">',
			'</a></div>'
		);

	/** Content */
	   $wp_customize->add_setting(
		'spirallite_content',
		array(
			//'default' => '',
			'default'           => $defaultInfo,
			'sanitize_callback' => 'wp_kses_post',
		)
	);

		$wp_customize->add_control(
			'spirallite_content',
			array(
				'label' => __( 'Content', 'spiral-lite-one-page' ),
				'section' => 'spirallite_landing_page_settings',
				'type' => 'textarea',
			)
		);

		/** BUTTON 1 TEXT */
		$wp_customize->add_setting(
			'spirallite_btn1text',
			array(
				'default' => 'Learn More',
		        'sanitize_callback' => 'sanitize_text_field',
			)
		);
	
		$wp_customize->add_control(
			'spirallite_btn1text',
			array(
				'label' => __( 'Button 1 Text', 'spiral-lite-one-page' ),
				'section' => 'spirallite_landing_page_settings',
				'type' => 'text',
			)
		);

		/** BUTTON 1 URL */
		$wp_customize->add_setting(
			'spirallite_btn1url',
			array(
				'default' => '#',
		        'sanitize_callback' => 'esc_url_raw',
			)
		);
	
			$wp_customize->add_control(
				'spirallite_btn1url',
				array(
					'label' => __( 'Button 1 URL', 'spiral-lite-one-page' ),
					'section' => 'spirallite_landing_page_settings',
					'type' => 'text',
				)
			);

			/** BUTTON 2 TEXT */
		$wp_customize->add_setting(
			'spirallite_btn2text',
			array(
				'default' => 'Buy Theme Now >',
		        'sanitize_callback' => 'sanitize_text_field',
			)
		);
	
			$wp_customize->add_control(
				'spirallite_btn2text',
				array(
					'label' => __( 'Button 2 Text', 'spiral-lite-one-page' ),
					'section' => 'spirallite_landing_page_settings',
					'type' => 'text',
				)
			);

		/** BUTTON 2 URL */
		$wp_customize->add_setting(
			'spirallite_btn2url',
			array(
				'default' => '#',
		        'sanitize_callback' => 'esc_url_raw',
			)
		);
	
	$wp_customize->add_control(
				'spirallite_btn2url',
				array(
					'label' => __( 'Button 2 URL', 'spiral-lite-one-page' ),
					'section' => 'spirallite_landing_page_settings',
					'type' => 'text',
		)
	);
/*-----------------------------------------------------------------------------------*/
/*	Social Setting
/*-----------------------------------------------------------------------------------*/

$wp_customize->add_section(
	'spirallite_social_settings',
	array(
		'title' => __( 'Social Settings', 'spiral-lite-one-page' ),
		'description' => __( 'Leave blank if you do not want to show the social link.', 'spiral-lite-one-page' ),
		'priority' => 40,
	)
);

/** Facebook */
$wp_customize->add_setting(
	'spirallite_facebook',
	array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
	)
);

$wp_customize->add_control(
	'spirallite_facebook',
	array(
		'label' => __( 'Facebook', 'spiral-lite-one-page' ),
		'section' => 'spirallite_social_settings',
		'type' => 'text',
	)
);

/** Twitter */
$wp_customize->add_setting(
	'spirallite_twitter',
	array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
	)
);

$wp_customize->add_control(
	'spirallite_twitter',
	array(
		'label' => __( 'Twitter', 'spiral-lite-one-page' ),
		'section' => 'spirallite_social_settings',
		'type' => 'text',
	)
);

/** Pinterest */
$wp_customize->add_setting(
	'spirallite_pinterest',
	array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
	)
);

$wp_customize->add_control(
	'spirallite_pinterest',
	array(
		'label' => __( 'Pinterest', 'spiral-lite-one-page' ),
		'section' => 'spirallite_social_settings',
		'type' => 'text',
	)
);

/** LinkedIn */
$wp_customize->add_setting(
	'spirallite_linkedin',
	array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
	)
);

$wp_customize->add_control(
	'spirallite_linkedin',
	array(
		'label' => __( 'LinkedIn', 'spiral-lite-one-page' ),
		'section' => 'spirallite_social_settings',
		'type' => 'text',
	)
);

/** Instagram Plus */
$wp_customize->add_setting(
	'spirallite_instagram',
	array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
	)
);

$wp_customize->add_control(
	'spirallite_instagram',
	array(
		'label' => __( 'Instagram', 'spiral-lite-one-page' ),
		'section' => 'spirallite_social_settings',
		'type' => 'text',
	)
);

/** Youtube Plus */
$wp_customize->add_setting(
	'spirallite_youtube',
	array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
	)
);

$wp_customize->add_control(
	'spirallite_youtube',
	array(
		'label' => __( 'YouTube', 'spiral-lite-one-page' ),
		'section' => 'spirallite_social_settings',
		'type' => 'text',
	)
);


/** Tiktok */
$wp_customize->add_setting(
	'spirallite_tiktok',
	array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
	)
);

$wp_customize->add_control(
	'spirallite_tiktok',
	array(
		'label' => __( 'Tiktok', 'spiral-lite-one-page' ),
		'section' => 'spirallite_social_settings',
		'type' => 'text',
	)
);

/**  
 *  Section Footer
 */

$wp_customize->add_section(
	'spirallite_footer',
	array(
		'title' => __( 'Footer', 'spiral-lite-one-page' ),
		'description' => __( 'Footer Settings ', 'spiral-lite-one-page' ),
		'priority' => 40,
	)
);

 $wp_customize->add_setting(
	'spirallite_copyright',
	array(
		'default'           => 'Copyright 2024. All Rights Reserved.',
		'sanitize_callback' => 'wp_kses_post',
	)

);

$wp_customize->add_control(
	'spirallite_copyright',
	array(
		'label' => __( 'Copyright', 'spiral-lite-one-page' ),
		'section' => 'spirallite_footer',
		'type' => 'textarea',
	)
);

/** default configuration */
$pretitle = 'Pellentesque sapien purus, sagittis eu accumsan convallis, vehicula ut lectus. Fusce accumsan <strong>purus pretium ligula</strong> vehicula, ut interdum nisl vulputate. Vivamus ultrices luctus quam eu feugiat';

$about_info = <<<EOL
<h2>Responsive Layout</h2>
                        <p class="lead">donec porttitor velit eget lectus ac turpis.</p>
                        <hr />
                          
                        <h2>Clean & Modern Design</h2>
                        <p class="lead">donec porttitor velit eget lectus ac turpis.</p>
                        <hr />
                        <h2>Free Premium Support</h2>
                        <p class="lead">donec porttitor velit eget lectus ac turpis.</p>
EOL;




/** Home Page Settings */
$wp_customize->add_panel( 
	'spiral_lite_one_page_home_page_settings',
	 array(
		'priority' => 30,
		'capability' => 'edit_theme_options',
		'title' => __( 'Front Page Sections', 'spiral-lite-one-page' ),
		'description' => __( 'Customize Home (Front) Page Settings', 'spiral-lite-one-page' ),
	) 
);

/** About Section */
$wp_customize->add_section(
	'spiral_lite_one_page_about_section',
	array(
		'title' => __( 'About Section', 'spiral-lite-one-page' ),
		'priority' => 20,
		'panel' => 'spiral_lite_one_page_home_page_settings',
	)
);

// About Header Section // 
$wp_customize->add_setting(
	'about_head_setting_options'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'about_head_setting_options',
	array(
		'type' => 'hidden',
		'label' => __('Settings','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_about_section',
	)
);

/** Enable/Disable About Section */
$wp_customize->add_setting(
	'spiral-lite-one-page_ed_about_section',
	array(
		//'default' => '',
	    'default' => true,
		'sanitize_callback' => 'spiral_lite_one_page_sanitize_checkbox',
		'transport'         => 'refresh', 
	)
);

$wp_customize->add_control(
	'spiral-lite-one-page_ed_about_section',
	array(
		'label' => __( 'Enable About Section', 'spiral-lite-one-page' ),
		'section' => 'spiral_lite_one_page_about_section',
		'type' => 'checkbox',
	)
);

// About Header Section // 
$wp_customize->add_setting(
	'about_head_header_options'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 4,
	)
);

$wp_customize->add_control(
'about_head_header_options',
	array(
		'type' => 'hidden',
		'label' => __('Header','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_about_section',
	)
);

/** About Section Menu Title */
$wp_customize->add_setting(
	'spiral_lite_one_page_about_section_menu_title',
	array(
		//'default' => '',
		'default'           => __( 'About Us', 'spiral-lite-one-page' ),
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'spiral_lite_one_page_about_section_menu_title',
	array(
		'label' => __( 'About Section Menu Title', 'spiral-lite-one-page' ),
		'section' => 'spiral_lite_one_page_about_section',
		'type' => 'text',
	)
);

/** About Section Section Title */
$wp_customize->add_setting(
	'spiral_lite_one_page_about_section_page_title',
	array(
		//'default' => '',
		'default'           => __( 'About Us', 'spiral-lite-one-page' ),
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'spiral_lite_one_page_about_section_page_title',
	array(
		'label' => __( 'About Section Title', 'spiral-lite-one-page' ),
		'section' => 'spiral_lite_one_page_about_section',
		'type' => 'text',
	)
);

	 /** Subtitle, Pretitle, Font */

	 $wp_customize->add_setting(
        'spiral_lite_one_page_about_section_icon',
        array(
			'default'           => __( 'heart-o', 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_about_section_icon',
        array(
            'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
			'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
            'section' => 'spiral_lite_one_page_about_section',
            'type' => 'text',
        )
    );

	$wp_customize->add_setting(
        'spiral_lite_one_page_about_section_subtitle',
        array(
			'default'           => __( "Spiral is customizable fully responsive", 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_about_section_subtitle',
        array(
            'label' => __( 'Subtitle', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_about_section',
            'type' => 'text',
        )
    );

	$wp_customize->add_setting(
        'spiral_lite_one_page_about_section_pretitle',
        array(
			'default'        => $pretitle,
            'sanitize_callback' => 'wp_kses_post',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_about_section_pretitle',
        array(
            'label' => __( 'Pretitle', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_about_section',
            'type' => 'text',
        )
    );

	// About Content Section // 
$wp_customize->add_setting(
	'about_head_content_options'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 6,
	)
);

$wp_customize->add_control(
'about_head_content_options',
	array(
		'type' => 'hidden',
		'label' => __('Content','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_about_section',
	)
);

	/** About Content Image */
	 $wp_customize->add_setting('spiral_lite_one_page_about_section_image', array(
		'default'           => get_template_directory_uri() . '/images/about.jpg', // Default image URL
        'sanitize_callback' => 'esc_url_raw', // Sanitize the URL
        'transport'         => 'refresh',
    ));

    // Add the control for the image
    $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'spiral_lite_one_page', array(
        'label'    => __('About Img', 'spiral-lite-one-page'),
        'section'  => 'spiral_lite_one_page_about_section',
        'settings' => 'spiral_lite_one_page_about_section_image',
    )));

	/** About Content */
	$wp_customize->add_setting(
        'spiral_lite_one_page_about_section_content',
        array(
			'default'        => $about_info,
            'sanitize_callback' => 'wp_kses_post',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_about_section_content',
        array(
            'label' => __( 'Content', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_about_section',
            'type' => 'textarea',
        )
    );


    /** Call To Action */
    $wp_customize->add_section(
        'spiral_lite_one_page_cta_section',
        array(
            'title' => __( 'Call To Action Section', 'spiral-lite-one-page' ),
            'priority' => 40,
            'panel' => 'spiral_lite_one_page_home_page_settings',
        )
    );

	
	// Call To Action Setting Section // 
$wp_customize->add_setting(
	'call_to_action_head_setting_options'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'call_to_action_head_setting_options',
	array(
		'type' => 'hidden',
		'label' => __('Setting','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_cta_section',
	)
);
    
    /** Enable/Disable Call To Action Section */
    $wp_customize->add_setting(
        'spiral-lite-one-page_ed_calltoaction_section',
        array(
            'default' => true,
            'sanitize_callback' => 'spiral_lite_one_page_sanitize_checkbox', // Ensure this function exists
			'transport'         => 'refresh', 
        )
    );
    
    $wp_customize->add_control(
        'spiral-lite-one-page_ed_calltoaction_section',
        array(
            'label' => __( 'Enable Call To Action Section', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_cta_section',
            'type' => 'checkbox',
        )
    );

		
	// Call To Action Content Section // 
$wp_customize->add_setting(
	'call_to_action_head_content_options'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 4,
	)
);

$wp_customize->add_control(
'call_to_action_head_content_options',
	array(
		'type' => 'hidden',
		'label' => __('Content','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_cta_section',
	)
);
    
    
    /** Call To Action Section Title */
    $wp_customize->add_setting(
        'spiral_lite_one_page_cta_section_title',
        array(
            'default' => '',
            'sanitize_callback' => 'wp_kses_post',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_cta_section_title',
        array(
            'label' => __( 'Call To Action Section Title', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_cta_section',
            'type' => 'text',
        )
    );
    
    /** Call To Action Section Content */
    $wp_customize->add_setting(
        'spiral_lite_one_page_cta_section_content',
        array(
            'default' => __( 'This is call To Action <span>Buttons</span>!', 'spiral-lite-one-page' ),
            'sanitize_callback' => 'wp_kses_post',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_cta_section_content',
        array(
            'label' => __( 'Call To Action Section Content', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_cta_section',
            'type' => 'text',
        )
    );
    
    /** Call To Action Section Button */
    $wp_customize->add_setting(
        'spiral_lite_one_page_cta_section_button',
        array(
            'default' => __('View Features', 'spiral-lite-one-page'),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_cta_section_button',
        array(
            'label' => __( 'Call To Action Section Button', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_cta_section',
            'type' => 'text',
        )
    );
    
    /** Call To Section Button URL */
    $wp_customize->add_setting(
        'spiral_lite_one_page_cta_section_button_url',
        array(
            'default' => '#services',
            'sanitize_callback' => 'esc_url_raw',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_cta_section_button_url',
        array(
            'label' => __( 'Call To Action Section Button URL', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_cta_section',
            'type' => 'text',
        )
    );
    
    /** Call To Action Section Button 2 */
    $wp_customize->add_setting(
        'spiral_lite_one_page_cta_section_button_2',
        array(
            'default' => __('Buy Theme Now', 'spiral-lite-one-page'),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_cta_section_button_2',
        array(
            'label' => __( 'Call To Action Section Second Button', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_cta_section',
            'type' => 'text',
        )
    );
    
    /** Call To Section Second Button URL */
    $wp_customize->add_setting(
        'spiral_lite_one_page_cta_section_button_2_url',
        array(
            'default' => '#',
            'sanitize_callback' => 'esc_url_raw',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_cta_section_button_2_url',
        array(
            'label' => __( 'Call To Action Section Second Button URL', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_cta_section',
            'type' => 'text',
        )
    );
    
    /** Call To Action Ends */
    
   /** Services Section */
  $wp_customize->add_section(
	'spiral_lite_one_page_services_section',
	array(
		'title' => __( 'Services Section', 'spiral-lite-one-page' ),
		'priority' => 60,
		'panel' => 'spiral_lite_one_page_home_page_settings',
	)
);

// Service Header Section // 
$wp_customize->add_setting(
	'services_head_setting_options'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'services_head_setting_options',
	array(
		'type' => 'hidden',
		'label' => __('Settings','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_services_section',
	)
);

/** Enable/Disable Services Section */
$wp_customize->add_setting(
	'spiral-lite-one-page_ed_services_section',
	array(
		'default' => true,
		'sanitize_callback' => 'spiral_lite_one_page_sanitize_checkbox',
		'transport'         => 'refresh', 
	)

);

$wp_customize->add_control(
	'spiral-lite-one-page_ed_services_section',
	array(
		'label' => __( 'Enable Services Section', 'spiral-lite-one-page' ),
		'section' => 'spiral_lite_one_page_services_section',
		'type' => 'checkbox',
	)
);

// Service Header Section // 
$wp_customize->add_setting(
	'services_head_setting_header'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'services_head_setting_header',
	array(
		'type' => 'hidden',
		'label' => __('Header','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_services_section',
	)
);

/** Services Section Menu Title */
$wp_customize->add_setting(
	'spiral_lite_one_page_services_section_menu_title',
	array(
		//'default' => '',
		'default'           => __( 'SERVICES', 'spiral-lite-one-page' ),
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'spiral_lite_one_page_services_section_menu_title',
	array(
		'label' => __( 'Services Section Menu Title', 'spiral-lite-one-page' ),
		'section' => 'spiral_lite_one_page_services_section',
		'type' => 'text',
	)
);

/** Services Section Page Title */
$wp_customize->add_setting(
	'spiral_lite_one_page_services_section_page_title',
	array(
	//	'default' => '',
		'default'           => __( 'SERVICES', 'spiral-lite-one-page' ),
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'spiral_lite_one_page_services_section_page_title',
	array(
		'label' => __( 'Services Section Page Title', 'spiral-lite-one-page' ),
		'section' => 'spiral_lite_one_page_services_section',
		'type' => 'text',
	)
);

	 /** Subtitle, Pretitle, Font */
	 $wp_customize->add_setting(
        'spiral_lite_one_page_services_section_icon',
        array(
			'default'           => __( 'wrench', 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_services_section_icon',
        array(
            'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
			'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
            'section' => 'spiral_lite_one_page_services_section',
            'type' => 'text',
        )
    );

	$wp_customize->add_setting(
        'spiral_lite_one_page_services_section_subtitle',
        array(
			'default'           => __( "Services featured powerfull option with bootstrap", 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_services_section_subtitle',
        array(
            'label' => __( 'Subtitle', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_services_section',
            'type' => 'text',
        )
    );

	$wp_customize->add_setting(
        'spiral_lite_one_page_services_section_pretitle',
        array(
			'default'        => $pretitle,
            'sanitize_callback' => 'wp_kses_post',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_services_section_pretitle',
        array(
            'label' => __( 'Pretitle', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_services_section',
            'type' => 'text',
        )
    );

	// Service Header Section // 
	
	$wp_customize->add_setting(
		'services_head_setting_head'
			,array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'spirallite_sanitize_text',
			'priority' => 2,
		)
	);

	$wp_customize->add_control(
	'services_head_setting_head',
		array(
			'type' => 'hidden',
			'label' => __('Service 1','spiral-lite-one-page'),
			'section' => 'spiral_lite_one_page_services_section',
		)
	);

    /** Services 1  */
/** Title, Subtitle, Font */
 $wp_customize->add_setting(
	'spiral_lite_one_page__single_services_1_icon',
	array(
		'default'           => __( 'flask', 'spiral-lite-one-page' ),
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'spiral_lite_one_page__single_services_1_icon',
	array(
		'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
		'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_services_section',
		'type' => 'text',
	)
);

$wp_customize->add_setting(
	'spiral_lite_one_page__single_services_1_title',
	array(
		'default'           => __( "Responsive Design", 'spiral-lite-one-page' ),
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'spiral_lite_one_page__single_services_1_title',
	array(
		'label' => __( 'Title', 'spiral-lite-one-page' ),
		'section' => 'spiral_lite_one_page_services_section',
		'type' => 'text',
	)
);

$wp_customize->add_setting(
	'spiral_lite_one_page__single_services_1_desc',
	array(
		'default'           => __( "Donec porttitor velit eget lectus ac turpis.", 'spiral-lite-one-page' ),
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'spiral_lite_one_page__single_services_1_desc',
	array(
		'label' => __( 'Content', 'spiral-lite-one-page' ),
		'section' => 'spiral_lite_one_page_services_section',
		'type' => 'text',
	)
);


// Service Heading Section // 
	
$wp_customize->add_setting(
	'services_heading_2',
	array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'services_heading_2',
	array(
		'type' => 'hidden',
		'label' => __('Service 2','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_services_section',
	)
);

/** Services 2  */
/** Title, Subtitle, Font */
$wp_customize->add_setting(
'spiral_lite_one_page__single_services_2_icon',
array(
	'default'           => __( 'pencil', 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_2_icon',
array(
	'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
	'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_2_title',
array(
	'default'           => __( "Modern Design", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_2_title',
array(
	'label' => __( 'Title', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_2_desc',
array(
	'default'           => __( "Donec porttitor velit eget lectus ac turpis.", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_2_desc',
array(
	'label' => __( 'Content', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

// Service Heading Section // 
	
$wp_customize->add_setting(
	'services_heading_3'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'services_heading_3',
	array(
		'type' => 'hidden',
		'label' => __('Service 3','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_services_section',
	)
);

/** Services 3  */
/** Title, Subtitle, Font */
$wp_customize->add_setting(
'spiral_lite_one_page__single_services_3_icon',
array(
	'default'           => __( 'cog', 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_3_icon',
array(
	'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
	'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_3_title',
array(
	'default'           => __( "Great Features", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_3_title',
array(
	'label' => __( 'Title', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_3_desc',
array(
	'default'           => __( "Donec porttitor velit eget lectus ac turpis.", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_3_desc',
array(
	'label' => __( 'Content', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

// Service Heading Section // 
	
$wp_customize->add_setting(
	'services_heading_4'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'services_heading_4',
	array(
		'type' => 'hidden',
		'label' => __('Service 4','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_services_section',
	)
);

/** Services 4  */
/** Title, Subtitle, Font */
$wp_customize->add_setting(
'spiral_lite_one_page__single_services_4_icon',
array(
	'default'           => __( 'tint', 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_4_icon',
array(
	'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
	'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_4_title',
array(
	'default'           => __( "Color Options", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_4_title',
array(
	'label' => __( 'Title', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_4_desc',
array(
	'default'           => __( "Donec porttitor velit eget lectus ac turpis.", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_4_desc',
array(
	'label' => __( 'Content', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

// Service Heading Section // 
	
$wp_customize->add_setting(
	'services_heading_5'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'services_heading_5',
	array(
		'type' => 'hidden',
		'label' => __('Service 5','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_services_section',
	)
);

/** Services 2  */
/** Title, Subtitle, Font */
$wp_customize->add_setting(
'spiral_lite_one_page__single_services_5_icon',
array(
	'default'           => __( 'cogs', 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_5_icon',
array(
	'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
	'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_5_title',
array(
	'default'           => __( "Powerful Options", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_5_title',
array(
	'label' => __( 'Title', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_5_desc',
array(
	'default'           => __( "Donec porttitor velit eget lectus ac turpis.", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_5_desc',
array(
	'label' => __( 'Content', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

// Service Heading Section // 
	
$wp_customize->add_setting(
	'services_heading_6'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'services_heading_6',
	array(
		'type' => 'hidden',
		'label' => __('Service 6','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_services_section',
	)
);

/** Services 6  */
/** Title, Subtitle, Font */
$wp_customize->add_setting(
'spiral_lite_one_page__single_services_6_icon',
array(
	'default'           => __( 'bars', 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_6_icon',
array(
	'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
	'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_6_title',
array(
	'default'           => __( "Bootstrap Grid", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_6_title',
array(
	'label' => __( 'Title', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_6_desc',
array(
	'default'           => __( "Donec porttitor velit eget lectus ac turpis.", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_6_desc',
array(
	'label' => __( 'Content', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

// Service Heading Section // 
	
$wp_customize->add_setting(
	'services_heading_7'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'services_heading_7',
	array(
		'type' => 'hidden',
		'label' => __('Service 7','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_services_section',
	)
);

/** Services 7 */
/** Title, Subtitle, Font */
$wp_customize->add_setting(
'spiral_lite_one_page__single_services_7_icon',
array(
	'default'           => __( 'trophy', 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_7_icon',
array(
	'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
	'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_7_title',
array(
	'default'           => __( "jQuery Effects", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_7_title',
array(
	'label' => __( 'Title', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_7_desc',
array(
	'default'           => __( "Donec porttitor velit eget lectus ac turpis.", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_7_desc',
array(
	'label' => __( 'Content', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

// Service Heading Section // 
	
$wp_customize->add_setting(
	'services_heading_8'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'services_heading_8',
	array(
		'type' => 'hidden',
		'label' => __('Service 8','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_services_section',
	)
);

/** Services 2  */
/** Title, Subtitle, Font */
$wp_customize->add_setting(
'spiral_lite_one_page__single_services_8_icon',
array(
	'default'           => __( 'wrench', 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_8_icon',
array(
	'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
	'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_8_title',
array(
	'default'           => __( "Easy to Modify", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_8_title',
array(
	'label' => __( 'Title', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_8_desc',
array(
	'default'           => __( "Donec porttitor velit eget lectus ac turpis.", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_8_desc',
array(
	'label' => __( 'Content', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

// Service Heading Section // 
	
$wp_customize->add_setting(
	'services_heading_9'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'services_heading_9',
	array(
		'type' => 'hidden',
		'label' => __('Service 9','spiral-lite-one-page'),
		'section' => 'spiral_lite_one_page_services_section',
	)
);

/** Services 9  */
/** Title, Subtitle, Font */
$wp_customize->add_setting(
'spiral_lite_one_page__single_services_9_icon',
array(
	'default'           => __( 'crop', 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_9_icon',
array(
	'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
	'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_9_title',
array(
	'default'           => __( "OnScroll Animation", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_9_title',
array(
	'label' => __( 'Title', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);

$wp_customize->add_setting(
'spiral_lite_one_page__single_services_9_desc',
array(
	'default'           => __( "Donec porttitor velit eget lectus ac turpis.", 'spiral-lite-one-page' ),
	'sanitize_callback' => 'sanitize_text_field',
)
);

$wp_customize->add_control(
'spiral_lite_one_page__single_services_9_desc',
array(
	'label' => __( 'Content', 'spiral-lite-one-page' ),
	'section' => 'spiral_lite_one_page_services_section',
	'type' => 'text',
)
);


  /** Portfolio Section */
  $wp_customize->add_section(
	'spiral_lite_one_page_portfolio_section',
	array(
		'title' => __( 'Portfolio Section', 'spiral-lite-one-page' ),
		'priority' => 70,
		'panel' => 'spiral_lite_one_page_home_page_settings',
	)
);

/** Note */
$wp_customize->add_setting(
	'portfolio_sec_unlock',
	array(
		'default'           => '',
		'sanitize_callback' => 'wp_kses_post' 
	)
);

$wp_customize->add_control(
	new SpiralLite_Note_Control_Note_Control( 
		$wp_customize,
		'portfolio_sec_unlock',
		array(
			'section'     => 'spiral_lite_one_page_portfolio_section',
			'description' => $upgrade_description,
		)
	)
 );	

 /** Image */
 $wp_customize->add_setting( 
	'portfolio_sec_unlock_img', 
	array(
		'default'           => 'one',
		'sanitize_callback' => 'spirallite_sanitize_radio'
	) 
);

$wp_customize->add_control(
	new Spirallite_Radio_Image_Control(
		$wp_customize,
		'portfolio_sec_unlock_img',
		array(
			'section'    => 'spiral_lite_one_page_portfolio_section',
			'feat_class' => 'upg-to-pro',
			'choices'    => array(
				'one' => get_template_directory_uri() . '/images/sections/portfolio-sec.png',
			),
		)
	)
);

/** Client Section */
$wp_customize->add_section(
	'spiral_lite_one_page_client_section',
	array(
		'title' => __( 'Client Section', 'spiral-lite-one-page' ),
		'priority' => 80,
		'panel' => 'spiral_lite_one_page_home_page_settings',
	)
);

/** Note */
$wp_customize->add_setting(
	'client_sec_unlock',
	array(
		'default'           => '',
		'sanitize_callback' => 'wp_kses_post' 
	)
);

$wp_customize->add_control(
	new SpiralLite_Note_Control_Note_Control( 
		$wp_customize,
		'client_sec_unlock',
		array(
			'section'     => 'spiral_lite_one_page_client_section',
			'description' => $upgrade_description,
		)
	)
 );	

 /** Image */
 $wp_customize->add_setting( 
	'client_sec_unlock_img', 
	array(
		'default'           => 'one',
		'sanitize_callback' => 'spirallite_sanitize_radio'
	) 
);

$wp_customize->add_control(
	new Spirallite_Radio_Image_Control(
		$wp_customize,
		'client_sec_unlock_img',
		array(
			'section'    => 'spiral_lite_one_page_client_section',
			'feat_class' => 'upg-to-pro',
			'choices'    => array(
				'one' => get_template_directory_uri() . '/images/sections/clients-sec.png',
			),
		)
	)
);

/** Pricing Section */
$wp_customize->add_section(
	'spiral_lite_one_page_pricing_section',
	array(
		'title' => __( 'Pricing Section', 'spiral-lite-one-page' ),
		'priority' => 90,
		'panel' => 'spiral_lite_one_page_home_page_settings',
	)
);

/** Note */
$wp_customize->add_setting(
	'pricing_sec_unlock',
	array(
		'default'           => '',
		'sanitize_callback' => 'wp_kses_post' 
	)
);

$wp_customize->add_control(
	new SpiralLite_Note_Control_Note_Control( 
		$wp_customize,
		'pricing_sec_unlock',
		array(
			'section'     => 'spiral_lite_one_page_pricing_section',
			'description' => $upgrade_description,
		)
	)
 );	

 /** Image */
 $wp_customize->add_setting( 
	'pricing_sec_unlock_img', 
	array(
		'default'           => 'one',
		'sanitize_callback' => 'spirallite_sanitize_radio'
	) 
);

$wp_customize->add_control(
	new Spirallite_Radio_Image_Control(
		$wp_customize,
		'pricing_sec_unlock_img',
		array(
			'section'    => 'spiral_lite_one_page_pricing_section',
			'feat_class' => 'upg-to-pro',
			'choices'    => array(
				'one' => get_template_directory_uri() . '/images/sections/pricing-sec.png',
			),
		)
	)
);

/** Testimonials Section */
$wp_customize->add_section(
	'spiral_lite_one_page_testimonials_section',
	array(
		'title' => __( 'Testimonials Section', 'spiral-lite-one-page' ),
		'priority' => 100,
		'panel' => 'spiral_lite_one_page_home_page_settings',
	)
);

/** Note */
$wp_customize->add_setting(
	'testimonials_sec_unlock',
	array(
		'default'           => '',
		'sanitize_callback' => 'wp_kses_post' 
	)
);

$wp_customize->add_control(
	new SpiralLite_Note_Control_Note_Control( 
		$wp_customize,
		'testimonials_sec_unlock',
		array(
			'section'     => 'spiral_lite_one_page_testimonials_section',
			'description' => $upgrade_description,
		)
	)
 );	

 /** Image */
 $wp_customize->add_setting( 
	'testimonials_sec_unlock_img', 
	array(
		'default'           => 'one',
		'sanitize_callback' => 'spirallite_sanitize_radio'
	) 
);

$wp_customize->add_control(
	new Spirallite_Radio_Image_Control(
		$wp_customize,
		'testimonials_sec_unlock_img',
		array(
			'section'    => 'spiral_lite_one_page_testimonials_section',
			'feat_class' => 'upg-to-pro',
			'choices'    => array(
				'one' => get_template_directory_uri() . '/images/sections/testimonials-sec.png',
			),
		)
	)
);


/** Team Section */
$wp_customize->add_section(
	'spiral_lite_one_page_team_section',
	array(
		'title' => __( 'Team Section', 'spiral-lite-one-page' ),
		'priority' => 110,
		'panel' => 'spiral_lite_one_page_home_page_settings',
	)
);

/** Note */
$wp_customize->add_setting(
	'team_sec_unlock',
	array(
		'default'           => '',
		'sanitize_callback' => 'wp_kses_post' 
	)
);

$wp_customize->add_control(
	new SpiralLite_Note_Control_Note_Control( 
		$wp_customize,
		'team_sec_unlock',
		array(
			'section'     => 'spiral_lite_one_page_team_section',
			'description' => $upgrade_description,
		)
	)
 );	

 /** Image */
 $wp_customize->add_setting( 
	'team_sec_unlock_img', 
	array(
		'default'           => 'one',
		'sanitize_callback' => 'spirallite_sanitize_radio'
	) 
);

$wp_customize->add_control(
	new Spirallite_Radio_Image_Control(
		$wp_customize,
		'team_sec_unlock_img',
		array(
			'section'    => 'spiral_lite_one_page_team_section',
			'feat_class' => 'upg-to-pro',
			'choices'    => array(
				'one' => get_template_directory_uri() . '/images/sections/team-sec.png',
			),
		)
	)
);


/** Client Section */
/*
$wp_customize->add_section(
	'spiral_lite_one_page_clients_section',
	array(
		'title' => __( 'Client Section', 'spiral-lite-one-page' ),
		'priority' => 80,
		'panel' => 'spiral_lite_one_page_home_page_settings',
	)
);
*/

/** Enable/Disable Client Section */
/*$wp_customize->add_setting(
	'spiral-lite-one-page_ed_clients_section',
	array(
		'default' => '',
		'sanitize_callback' => 'spiral_lite_one_page_sanitize_checkbox',
	)
);

$wp_customize->add_control(
	'spiral-lite-one-page_ed_clients_section',
	array(
		'label' => __( 'Enable Client Section', 'spiral-lite-one-page' ),
		'section' => 'spiral_lite_one_page_clients_section',
		'type' => 'checkbox',
	)
);*/

/** Client Section Menu Title */
/*$wp_customize->add_setting(
	'spiral_lite_one_page_clients_section_menu_title',
	array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'spiral_lite_one_page_clients_section_menu_title',
	array(
		'label' => __( 'Client Section Menu Title', 'spiral-lite-one-page' ),
		'section' => 'spiral_lite_one_page_clients_section',
		'type' => 'text',
	)
);
*/
/** Select Page */
/*$wp_customize->add_setting(
	'spiral_lite_one_page_clients_section_page',
	array(
		'default' => '',
		'sanitize_callback' => 'spiral_lite_one_page_sanitize_checkbox_select',
	)
);

$wp_customize->add_control(
	'spiral_lite_one_page_clients_section_page',
	array(
		'label' => __( 'Select Page', 'spiral-lite-one-page' ),
		'section' => 'spiral_lite_one_page_clients_section',
		'type' => 'select',
		'choices' => $options_pages,
	)
);*/

/** Select Client Logos */
/*$wp_customize->add_setting(
	'spiral_lite_one_page_clients_section_logos',
	array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	new Spiral_Lite_One_Page_Multi_Image_Customize_Control( $wp_customize, 'spiral_lite_one_page_clients_section_logos', array(
	'label'       => __( 'Select Client Logos', 'spiral-lite-one-page' ),
	'section'     => 'spiral_lite_one_page_clients_section',
   ) )
);*/
/** Client Section Ends */

 /** CTA 2 Section */
 $wp_customize->add_section(
	'spiral_one_page_cta2_section',
	array(
		'title' => __( 'Call To Action 2 Section', 'spiral-lite-one-page' ),
		'priority' => 120,
		'panel' => 'spiral_lite_one_page_home_page_settings',
	)
);

// Call To Action Header Section // 
$wp_customize->add_setting(
	'cta2_head_setting_options'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 2,
	)
);

$wp_customize->add_control(
'cta2_head_setting_options',
	array(
		'type' => 'hidden',
		'label' => __('Settings','spiral-lite-one-page'),
		'section' => 'spiral_one_page_cta2_section',
	)
);

/** Enable/Disable Call To Action Section */
$wp_customize->add_setting(
	'spiral-lite-one-page_ed_cta2_section',
	array(
		'default' => true,
		'sanitize_callback' => 'spiral_lite_one_page_sanitize_checkbox',
		'transport'         => 'refresh', 
	)
);


$wp_customize->add_control(
	'spiral-lite-one-page_ed_cta2_section',
	array(
		'label' => __( 'Enable Call To Action 2 Section', 'spiral-lite-one-page' ),
		'section' => 'spiral_one_page_cta2_section',
		'type' => 'checkbox',
	)
);

// Call To Action Content Section // 
$wp_customize->add_setting(
	'cta2_head_contetn_options'
		,array(
		'capability'     	=> 'edit_theme_options',
		'sanitize_callback' => 'spirallite_sanitize_text',
		'priority' => 4,
	)
);

$wp_customize->add_control(
'cta2_head_contetn_options',
	array(
		'type' => 'hidden',
		'label' => __('Content','spiral-lite-one-page'),
		'section' => 'spiral_one_page_cta2_section',
	)
);

$wp_customize->add_setting(
	'spiral_lite_one_page_cta2_section_page_title',
	array(
		'default'           => __( 'Purchase Now', 'spiral-lite-one-page' ),
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'spiral_lite_one_page_cta2_section_page_title',
	array(
		'label' => __( 'Call To Action 2 Section Title', 'spiral-lite-one-page' ),
		'section' => 'spiral_one_page_cta2_section',
		'type' => 'text',
	)
);

$wp_customize->add_setting(
	'spiral_lite_one_page_cta2_section_subtitle',
	array(
		'default'           => __( 'THERE’S NOTHING ELSE LIKE THE SPIRAL', 'spiral-lite-one-page' ),
		'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control(
	'spiral_lite_one_page_cta2_section_subtitle',
	array(
		'label' => __( 'Call To Action Section Subtitle', 'spiral-lite-one-page' ),
		'section' => 'spiral_one_page_cta2_section',
		'type' => 'text',
	)
);

     /** Blog Sections */
	 $wp_customize->add_section(
        'spiral_lite_one_page_blog_section',
        array(
            'title' => __( 'Blog Section', 'spiral-lite-one-page' ),
            'priority' => 130,
            'panel' => 'spiral_lite_one_page_home_page_settings',
        )
    );

	// Blog Header Section // 
	$wp_customize->add_setting(
		'blog_head_setting_options'
			,array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'spirallite_sanitize_text',
			'priority' => 2,
		)
	);

	$wp_customize->add_control(
	'blog_head_setting_options',
		array(
			'type' => 'hidden',
			'label' => __('Settings','spiral-lite-one-page'),
			'section' => 'spiral_lite_one_page_blog_section',
		)
	);
    
    /** Enable/Disable Blog Section */
    $wp_customize->add_setting(
        'spiral-lite-one-page_ed_blog_section',
        array(
            'default' => true,
            'sanitize_callback' => 'spiral_lite_one_page_sanitize_checkbox',
			'transport'         => 'refresh', 
        )
    );
    
    $wp_customize->add_control(
        'spiral-lite-one-page_ed_blog_section',
        array(
            'label' => __( 'Enable Blog Section', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_blog_section',
            'type' => 'checkbox',
        )
    );

	// Blog Header Section // 
	$wp_customize->add_setting(
		'blog_head_header_options'
			,array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'spirallite_sanitize_text',
			'priority' => 4,
		)
	);

	$wp_customize->add_control(
	'blog_head_header_options',
		array(
			'type' => 'hidden',
			'label' => __('Header','spiral-lite-one-page'),
			'section' => 'spiral_lite_one_page_blog_section',
		)
	);
    
    /** Blog Section Menu Title */
    $wp_customize->add_setting(
        'spiral_lite_one_page_blog_section_menu_title',
        array(
			'default'           => __( 'BLOG', 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_blog_section_menu_title',
        array(
            'label' => __( 'Blog Section Menu Title', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_blog_section',
            'type' => 'text',
        )
    );
    
    /** Blog Section Title */
    $wp_customize->add_setting(
        'spiral_lite_one_page_blog_section_title',
        array(
            'default' => '',
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_blog_section_title',
        array(
            'label' => __( 'Blog Section Title', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_blog_section',
            'type' => 'text'
        )
    );

	$wp_customize->add_setting(
        'spiral_lite_one_page_blog_section_icon',
        array(
			'default'           => __( 'heart-o', 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_blog_section_icon',
        array(
            'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
			'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
            'section' => 'spiral_lite_one_page_blog_section',
            'type' => 'text',
        )
    );

	$wp_customize->add_setting(
        'spiral_lite_one_page_blog_section_subtitle',
        array(
			'default'           => __( "Spiral is customizable fully responsive", 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_blog_section_subtitle',
        array(
            'label' => __( 'Subtitle', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_blog_section',
            'type' => 'text',
        )
    );
    
    /** Blog Section Content */
    $wp_customize->add_setting(
        'spiral_lite_one_page_blog_section_content',
        array(
            'default' => '',
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_blog_section_content',
        array(
            'label' => __( 'Blog Section Content', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_blog_section',
            'type' => 'text'
        )
    );

    /** Blog View All Text */
    $wp_customize->add_setting(
        'spiral_lite_one_page_blog_section_view_all',
        array(
            'default' => __( 'View All Blogs', 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_blog_section_view_all',
        array(
            'label' => __( 'Blog View All Text', 'spiral-lite-one-page' ),
            'section' => 'spiral_lite_one_page_blog_section',
            'type' => 'text',
        )
    );
    /** Blog Sections Ends */


    /** Contact Section */
    $wp_customize->add_section(
        'spiral_one_page_contact_section',
        array(
            'title' => __( 'Contact Section', 'spiral-lite-one-page' ),
            'priority' => 140,
            'panel' => 'spiral_lite_one_page_home_page_settings',
        )
    );

	// Contact Section Setting Section // 
	$wp_customize->add_setting(
		'contact_section_head_setting_options'
			,array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'spirallite_sanitize_text',
			'priority' => 2,
		)
	);

	$wp_customize->add_control(
	'contact_section_head_setting_options',
		array(
			'type' => 'hidden',
			'label' => __('Settings','spiral-lite-one-page'),
			'section' => 'spiral_one_page_contact_section',
		)
	);
    
    /** Enable/Disable Contact Section */
    $wp_customize->add_setting(
        'spiral-lite-one-page_ed_contact_section',
        array(
            'default' => true,
            'sanitize_callback' => 'spiral_lite_one_page_sanitize_checkbox',
			'transport'         => 'refresh', 
        )
    );
    
    $wp_customize->add_control(
        'spiral-lite-one-page_ed_contact_section',
        array(
            'label' => __( 'Enable Contact Section', 'spiral-lite-one-page' ),
            'section' => 'spiral_one_page_contact_section',
            'type' => 'checkbox',
        )
    );

	// Contact Section Header Section // 
		$wp_customize->add_setting(
			'contact_section_head_header_options'
				,array(
				'capability'     	=> 'edit_theme_options',
				'sanitize_callback' => 'spirallite_sanitize_text',
				'priority' => 4,
			)
		);
	
		$wp_customize->add_control(
		'contact_section_head_header_options',
			array(
				'type' => 'hidden',
				'label' => __('Header','spiral-lite-one-page'),
				'section' => 'spiral_one_page_contact_section',
			)
		);
    
	/** Background  */
	/*$wp_customize->add_setting('spirallite_one_page_contact_section_background_color', array(
        'default'           => '#ffffff',
        'sanitize_callback' => 'sanitize_hex_color',
        'transport'         => 'refresh',
    ));

    // Add Background Color Control
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'SpiralLite_Note_Control_background_color_control', array(
        'label'    => __('Background Color', 'SpiralLite_Note_Control'),
		'section' => 'spiral_one_page_contact_section',
        'settings' => 'spirallite_one_page_contact_section_background_color',
    )));


	/** Padding  */

	// Add Padding Top
	/*  $wp_customize->add_setting('spiral_lite_one_page_number_setting', array(
        'default'           => 80, // Default value
        'sanitize_callback' => 'absint', // Ensure the value is an integer
        'transport'         => 'refresh',
    ));

    // Add Number Control
    $wp_customize->add_control('spiralite_one_page_number_control', array(
        'label'    => __('Padding Top', 'SpiralLite_Note_Control'),
        'section'  => 'spiral_one_page_contact_section',
        'settings' => 'spiral_lite_one_page_number_setting',
        'type'     => 'number', // Input type
        'input_attrs' => array(
            'min'  => 1,   // Minimum value
            'max'  => 100, // Maximum value
            'step' => 1,   // Increment step
        ),
    ));



    /** Contact Section Menu Title */
    $wp_customize->add_setting(
        'spiral_lite_one_page_contact_section_menu_title',
        array(
			'default'           => __( 'CONTACT US', 'spiral-lite-one-page' ),
			//'default' => '',
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_contact_section_menu_title',
        array(
            'label' => __( 'Contact Section Menu Title', 'spiral-lite-one-page' ),
            'section' => 'spiral_one_page_contact_section',
            'type' => 'text',
        )
    );

    /** Contact Section Page Title */

    $wp_customize->add_setting(
        'spiral_lite_one_page_contact_section_page_title',
        array(
			'default'           => __( 'Contact Us', 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_contact_section_page_title',
        array(
            'label' => __( 'Contact Section Title', 'spiral-lite-one-page' ),
            'section' => 'spiral_one_page_contact_section',
            'type' => 'text',
        )
    );

	 /** Subtitle, Pretitle, Font */

	 $wp_customize->add_setting(
        'spiral_lite_one_page_contact_section_icon',
        array(
			'default'           => __( 'envelope', 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_contact_section_icon',
        array(
            'label' => __( 'Font Icon', 'spiral-lite-one-page' ),
			'description' => __('Use The Section Font with fontawesone using with fa fa-', 'spiral-lite-one-page'),
            'section' => 'spiral_one_page_contact_section',
            'type' => 'text',
        )
    );

	$wp_customize->add_setting(
        'spiral_lite_one_page_contact_section_subtitle',
        array(
			'default'           => __( "Don't hesitate to get in touch with us", 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_contact_section_subtitle',
        array(
            'label' => __( 'Subtitle', 'spiral-lite-one-page' ),
            'section' => 'spiral_one_page_contact_section',
            'type' => 'text',
        )
    );

	$wp_customize->add_setting(
        'spiral_lite_one_page_contact_section_pretitle',
        array(
			'default'        => __( "Donec porttitor velit eget lectus ac turpis.", 'spiral-lite-one-page' ),
            'sanitize_callback' => 'sanitize_text_field',
        )
    );
    
    $wp_customize->add_control(
        'spiral_lite_one_page_contact_section_pretitle',
        array(
            'label' => __( 'Pretitle', 'spiral-lite-one-page' ),
            'section' => 'spiral_one_page_contact_section',
            'type' => 'text',
        )
    );
    
	// Contact Section Contetn Section // 
	$wp_customize->add_setting(
		'contact_section_head_contetn_options'
			,array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'spirallite_sanitize_text',
			'priority' => 6,
		)
	);

	$wp_customize->add_control(
	'contact_section_head_contetn_options',
		array(
			'type' => 'hidden',
			'label' => __('Content','spiral-lite-one-page'),
			'section' => 'spiral_one_page_contact_section',
		)
	);
    
    /** Contact Section Contact Form */
    $wp_customize->add_setting(
        'spirallite_one_page_contact_section_form',
        array(
            'default' => '',
            'sanitize_callback' => 'wp_kses_post',
        )
    );
    
    $wp_customize->add_control(
        'spirallite_one_page_contact_section_form',
        array(
            'label' => __( 'Contact Section Contact Form', 'spiral-lite-one-page' ),
            'description' => __( 'Enter the Contact Form 7 Shortcode. You will find shortcode in the Contact Forms Section Ex. Default. [contact-form-7 id="c84748e" title="Contact form 1"]', 'spiral-lite-one-page' ),
            'section' => 'spiral_one_page_contact_section',
            'type' => 'text',
        )
    );   

    /** Contact Section Ends*/
    
}
add_action( 'customize_register', 'spiral_lite_one_page_my_register_additional_customizer_settings' );


	

