<?php
/**
 * Moneymind Finance Advisor: Customizer
 *
 * @subpackage Moneymind Finance Advisor
 * @since 1.0
 */

use WPTRT\Customize\Section\Luzuk_Moneymind_Finance_Advisor_Button;

add_action( 'customize_register', function( $manager ) {

	$manager->register_section_type( Luzuk_Moneymind_Finance_Advisor_Button::class );

	$manager->add_section(
		new Luzuk_Moneymind_Finance_Advisor_Button( $manager, 'luzuk_moneymind_finance_advisor_pro', [
			'title' => __( 'Moneymind Finance Advisor Pro', 'moneymind-finance-advisor' ),
			'priority' => 0,
			'button_text' => __( 'Go Pro', 'moneymind-finance-advisor' ),
			'button_url'  => esc_url( 'https://www.luzuk.com/products/finance-advisor-wordpress-theme/', 'moneymind-finance-advisor')
		] )
	);

} );


// Load the JS and CSS.
add_action( 'customize_controls_enqueue_scripts', function() {

	$version = wp_get_theme()->get( 'Version' );

	wp_enqueue_script(
		'moneymind-finance-advisor-customize-section-button',
		get_theme_file_uri( 'vendor/wptrt/customize-section-button/public/js/customize-controls.js' ),
		[ 'customize-controls' ],
		$version,
		true
	);

	wp_enqueue_style(
		'moneymind-finance-advisor-customize-section-button',
		get_theme_file_uri( 'vendor/wptrt/customize-section-button/public/css/customize-controls.css' ),
		[ 'customize-controls' ],
 		$version
	);

} );

function luzuk_moneymind_finance_advisor_customize_register( $wp_customize ) {

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_logo_size',array(
		'sanitize_callback'	=> 'luzuk_moneymind_finance_advisor_sanitize_float'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_logo_size',array(
		'type' => 'range',
		'label' => __('Logo Size','moneymind-finance-advisor'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_logo_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_logo_padding',array(
		'label' => __('Logo Margin','moneymind-finance-advisor'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_logo_top_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'luzuk_moneymind_finance_advisor_sanitize_float'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_logo_top_padding',array(
		'type' => 'number',
		'description' => __('Top','moneymind-finance-advisor'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_logo_bottom_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'luzuk_moneymind_finance_advisor_sanitize_float'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_logo_bottom_padding',array(
		'type' => 'number',
		'description' => __('Bottom','moneymind-finance-advisor'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_logo_left_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'luzuk_moneymind_finance_advisor_sanitize_float'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_logo_left_padding',array(
		'type' => 'number',
		'description' => __('Left','moneymind-finance-advisor'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_logo_right_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'luzuk_moneymind_finance_advisor_sanitize_float'
 	));
 	$wp_customize->add_control('luzuk_moneymind_finance_advisor_logo_right_padding',array(
		'type' => 'number',
		'description' => __('Right','moneymind-finance-advisor'),
		'section' => 'title_tagline',
    ));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_show_site_title',array(
		'default' => true,
		'sanitize_callback'	=> 'luzuk_moneymind_finance_advisor_sanitize_checkbox'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_show_site_title',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Title','moneymind-finance-advisor'),
		'section' => 'title_tagline'
	));

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

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_show_tagline',array(
		'default' => true,
		'sanitize_callback'	=> 'luzuk_moneymind_finance_advisor_sanitize_checkbox'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_show_tagline',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Tagline','moneymind-finance-advisor'),
		'section' => 'title_tagline'
	));

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

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

	$wp_customize->add_section( 'luzuk_moneymind_finance_advisor_theme_options_section', array(
    	'title'      => __( 'General Settings', 'moneymind-finance-advisor' ),
		'priority'   => 30,
		'panel' => 'luzuk_moneymind_finance_advisor_panel_id'
	) );

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_theme_options',array(
		'default' => 'One Column',
		'sanitize_callback' => 'luzuk_moneymind_finance_advisor_sanitize_choices'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_theme_options',array(
		'type' => 'select',
		'label' => __('Blog Page Sidebar Layout','moneymind-finance-advisor'),
		'section' => 'luzuk_moneymind_finance_advisor_theme_options_section',
		'choices' => array(
		   'Left Sidebar' => __('Left Sidebar','moneymind-finance-advisor'),
		   'Right Sidebar' => __('Right Sidebar','moneymind-finance-advisor'),
		   'One Column' => __('One Column','moneymind-finance-advisor'),
		   'Grid Layout' => __('Grid Layout','moneymind-finance-advisor')
		),
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_single_post_sidebar',array(
		'default' => 'Right Sidebar',
		'sanitize_callback' => 'luzuk_moneymind_finance_advisor_sanitize_choices'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_single_post_sidebar',array(
        'type' => 'select',
        'label' => __('Single Post Sidebar Layout','moneymind-finance-advisor'),
        'section' => 'luzuk_moneymind_finance_advisor_theme_options_section',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','moneymind-finance-advisor'),
            'Right Sidebar' => __('Right Sidebar','moneymind-finance-advisor'),
            'One Column' => __('One Column','moneymind-finance-advisor')
        ),
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_page_sidebar',array(
		'default' => 'One Column',
		'sanitize_callback' => 'luzuk_moneymind_finance_advisor_sanitize_choices'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_page_sidebar',array(
        'type' => 'select',
        'label' => __('Page Sidebar Layout','moneymind-finance-advisor'),
        'section' => 'luzuk_moneymind_finance_advisor_theme_options_section',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','moneymind-finance-advisor'),
            'Right Sidebar' => __('Right Sidebar','moneymind-finance-advisor'),
            'One Column' => __('One Column','moneymind-finance-advisor')
        ),
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_archive_page_sidebar',array(
		'default' => 'One Column',
		'sanitize_callback' => 'luzuk_moneymind_finance_advisor_sanitize_choices'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_archive_page_sidebar',array(
        'type' => 'select',
        'label' => __('Archive & Search Page Sidebar Layout','moneymind-finance-advisor'),
        'section' => 'luzuk_moneymind_finance_advisor_theme_options_section',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','moneymind-finance-advisor'),
            'Right Sidebar' => __('Right Sidebar','moneymind-finance-advisor'),
            'One Column' => __('One Column','moneymind-finance-advisor'),
            'Grid Layout' => __('Grid Layout','moneymind-finance-advisor')
        ),
	));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_boxfull_width', array(
		'default'           => '',
		'sanitize_callback' => 'luzuk_moneymind_finance_advisor_sanitize_choices'
	));
	
	$wp_customize->add_control( 'luzuk_moneymind_finance_advisor_boxfull_width', array(
		'label'    => __( 'Section Width', 'moneymind-finance-advisor' ),
		'section'  => 'luzuk_moneymind_finance_advisor_theme_options_section',
		'type'     => 'select',
		'choices'  => array(
			'container'  => __('Box Width', 'moneymind-finance-advisor'),
			'container-fluid' => __('Full Width', 'moneymind-finance-advisor'),
			'none' => __('None', 'moneymind-finance-advisor')
		),
	));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_dropdown_anim', array(
		'default'           => 'None',
		'sanitize_callback' => 'luzuk_moneymind_finance_advisor_sanitize_choices'
	));
	$wp_customize->add_control( 'luzuk_moneymind_finance_advisor_dropdown_anim', array(
		'label'    => __( 'Menu Dropdown Animations', 'moneymind-finance-advisor' ),
		'section'  => 'luzuk_moneymind_finance_advisor_theme_options_section',
		'type'     => 'select',
		'choices'  => array(
			'bounceInUp'  => __('bounceInUp', 'moneymind-finance-advisor'),
			'fadeInUp' => __('fadeInUp', 'moneymind-finance-advisor'),
			'zoomIn'    => __('zoomIn', 'moneymind-finance-advisor'),
			'None'    => __('None', 'moneymind-finance-advisor')
		),
	));
 
	//Header
	$wp_customize->add_section( 'luzuk_moneymind_finance_advisor_header' , array(
    	'title'    => __( 'Header Settings', 'moneymind-finance-advisor' ),
		'priority' => null,
		'panel' => 'luzuk_moneymind_finance_advisor_panel_id'
	) );

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_headerbtntext',array(
    	'default' => 'Get A Quote',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_headerbtntext',array(
	   	'type' => 'text',
	   	'label' => __('Button Text','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_header',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_headerbtnlink',array(
    	'default' => '#',
    	'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_headerbtnlink',array(
	   	'type' => 'text',
	   	'label' => __('Button Link','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_header',
	));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_headerbg_col', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_headerbg_col', array(
		'label' => 'BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_header',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_menu_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_menu_color', array(
		'label' => 'Menu Color',
		'section' => 'luzuk_moneymind_finance_advisor_header',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_menuborder_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_menuborder_color', array(
		'label' => 'Menu Border Color',
		'section' => 'luzuk_moneymind_finance_advisor_header',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_menuhover_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_menuhover_color', array(
		'label' => 'Menu Active & Hover Color',
		'section' => 'luzuk_moneymind_finance_advisor_header',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_menuhoverbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_menuhoverbg_color', array(
		'label' => 'Menu Active & Hover BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_header',
	)));

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

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_submenubg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_submenubg_color', array(
		'label' => 'Submenu BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_header',
	)));

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

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_header_searchbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_header_searchbg_color', array(
		'label' => 'Search Icon BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_header',
	)));

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

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_header_btntexthrv_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_header_btntexthrv_color', array(
		'label' => 'Button Text Hover Color',
		'section' => 'luzuk_moneymind_finance_advisor_header',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_header_btnbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_header_btnbg_color', array(
		'label' => 'Button BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_header',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_header_brd_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_header_brd_color', array(
		'label' => 'Border Color',
		'section' => 'luzuk_moneymind_finance_advisor_header',
	)));


	//banner section
	$wp_customize->add_section( 'luzuk_moneymind_finance_advisor_banner_section' , array(
		'title'    => __( 'Banner Settings', 'moneymind-finance-advisor' ),
		'priority' => null,
		'panel' => 'luzuk_moneymind_finance_advisor_panel_id'
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_bannerheading',array(
    	'default' => 'Trusted Financial Solutions For Lasting Success.',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_bannerheading',array(
	   	'type' => 'text',
	   	'label' => __('Heading','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	));

	$wp_customize->add_setting('bann_fm_shortcode',array(
		'default' => '',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('bann_fm_shortcode',array(
	   	'type' => 'text',
	   	'label' => __('Add Form shortcode','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_bannerdescription',array(
    	'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae lacus sit amet felis ullamcorper eleifend vitae vitae est. Quisque sem nibh, bibendum vel ultrices pretium, molestie sed nisi.',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_bannerdescription',array(
	   	'type' => 'text',
	   	'label' => __('Description','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_banner_2x_number',array(
		'default' => '2X',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_banner_2x_number',array(
	   	'type' => 'text',
	   	'label' => __('2X Number','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_banner_2x_text',array(
		'default' => 'Faster Than Any Other Insurance Services',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_banner_2x_text',array(
	   	'type' => 'text',
	   	'label' => __('2X Text','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_banner_1m_number',array(
		'default' => '1M',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_banner_1m_number',array(
	   	'type' => 'text',
	   	'label' => __('1M Number','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_banner_1m_text',array(
		'default' => 'There Are Many Variations The Majority Have Suffered Believable.',
    	'sanitize_callback'	=> 'sanitize_text_field'
	)); 
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_banner_1m_text',array(
	   	'type' => 'text',
	   	'label' => __('1M Text','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	));

	$wp_customize->add_setting(
    	'luzuk_moneymind_finance_advisor_banner_topgraphimg',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'luzuk_moneymind_finance_advisor_banner_topgraphimg',
	        array(
			    'label'   		=> __('Top Graph Image','moneymind-finance-advisor'),
				'description'   		=> __('Image size 262*107','moneymind-finance-advisor'),
	            'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	            'settings' => 'luzuk_moneymind_finance_advisor_banner_topgraphimg',
	        )
	    )
	);

	$wp_customize->add_setting(
    	'luzuk_moneymind_finance_advisor_banner_profileimg',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'luzuk_moneymind_finance_advisor_banner_profileimg',
	        array(
			    'label'   		=> __('Profile Image','moneymind-finance-advisor'),
				'description'   		=> __('Image size 551*581','moneymind-finance-advisor'),
	            'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	            'settings' => 'luzuk_moneymind_finance_advisor_banner_profileimg',
	        )
	    )
	);

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_banner_profileimageheading1',array(
		'default' => 'Smarter Finance.',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_banner_profileimageheading1',array(
	   	'type' => 'text',
	   	'label' => __('Image Heading 1','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_banner_profileimageheading2',array(
		'default' => 'Stronger Future',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_banner_profileimageheading2',array(
	   	'type' => 'text',
	   	'label' => __('Image Heading 2','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_bannerbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_bannerbg_color', array(
		'label' => 'BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	)));

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

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_bannerdescription_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_bannerdescription_color', array(
		'label' => 'Description Color',
		'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_banner2xnum_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_banner2xnum_color', array(
		'label' => '2X Number Color',
		'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_banner2xtext_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_banner2xtext_color', array(
		'label' => '2X Text Color',
		'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_banner1mnum_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_banner1mnum_color', array(
		'label' => '1M Number Color',
		'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_bannerprofileimgheading_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_bannerprofileimgheading_color', array(
		'label' => 'Profile Image Heading Color',
		'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_bannerprofileimgheadingbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_bannerprofileimgheadingbg_color', array(
		'label' => 'Profile Image Heading BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_banner_section',
	)));


	// trustedbycompanies section
	$wp_customize->add_section( 'luzuk_moneymind_finance_advisor_trustedbycompanies_section' , array(
		'title'    => __( 'Trusted By Companies Settings', 'moneymind-finance-advisor' ),
		'priority' => null,
		'panel' => 'luzuk_moneymind_finance_advisor_panel_id'
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_trustedbycompanies_heading',array(
    	'default' => 'Trusted By The Top 100+ Companies Worldwide',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_trustedbycompanies_heading',array(
	   	'type' => 'text',
	   	'label' => __('Heading','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_trustedbycompanies_section',
	));

	$wp_customize->add_setting(
    	'luzuk_moneymind_finance_advisor_trustedbycompanies_logo1',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'luzuk_moneymind_finance_advisor_trustedbycompanies_logo1',
	        array(
			    'label'   		=> __('Logo 1','moneymind-finance-advisor'),
				'description'   		=> __('Image size 212*56','moneymind-finance-advisor'),
	            'section' => 'luzuk_moneymind_finance_advisor_trustedbycompanies_section',
	            'settings' => 'luzuk_moneymind_finance_advisor_trustedbycompanies_logo1',
	        )
	    )
	);

	$wp_customize->add_setting(
    	'luzuk_moneymind_finance_advisor_trustedbycompanies_logo2',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'luzuk_moneymind_finance_advisor_trustedbycompanies_logo2',
	        array(
			    'label'   		=> __('Logo 2','moneymind-finance-advisor'),
				'description'   		=> __('Image size 212*56','moneymind-finance-advisor'),
	            'section' => 'luzuk_moneymind_finance_advisor_trustedbycompanies_section',
	            'settings' => 'luzuk_moneymind_finance_advisor_trustedbycompanies_logo2',
	        )
	    )
	);

	$wp_customize->add_setting(
    	'luzuk_moneymind_finance_advisor_trustedbycompanies_logo3',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'luzuk_moneymind_finance_advisor_trustedbycompanies_logo3',
	        array(
			    'label'   		=> __('Logo 3','moneymind-finance-advisor'),
				'description'   		=> __('Image size 212*56','moneymind-finance-advisor'),
	            'section' => 'luzuk_moneymind_finance_advisor_trustedbycompanies_section',
	            'settings' => 'luzuk_moneymind_finance_advisor_trustedbycompanies_logo3',
	        )
	    )
	);

	$wp_customize->add_setting(
    	'luzuk_moneymind_finance_advisor_trustedbycompanies_logo4',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'luzuk_moneymind_finance_advisor_trustedbycompanies_logo4',
	        array(
			    'label'   		=> __('Logo 4','moneymind-finance-advisor'),
				'description'   		=> __('Image size 212*56','moneymind-finance-advisor'),
	            'section' => 'luzuk_moneymind_finance_advisor_trustedbycompanies_section',
	            'settings' => 'luzuk_moneymind_finance_advisor_trustedbycompanies_logo4',
	        )
	    )
	);

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_trustedbycompanies_bg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_trustedbycompanies_bg_color', array(
		'label' => 'BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_trustedbycompanies_section',
	)));

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


	// Aboutus Section
	$wp_customize->add_section('luzuk_moneymind_finance_advisor_aboutus_section',array(
		'title'	=> __('About Us Settings','moneymind-finance-advisor'),
		'description'=> __('<b>Note :</b> This section will appear below the Trusted By Companies.','moneymind-finance-advisor'),
		'panel' => 'luzuk_moneymind_finance_advisor_panel_id',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutusheading',array(
    	'default' => 'Expert CPA Tax Services: Maximizing Savings, Minimizing Stress.',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutusheading',array(
	   	'type' => 'text',
	   	'label' => __('Heading','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutusdescription',array(
    	'default' => 'Taxation is the cornerstone of a functioning society, enabling governments to fund essential services such as healthcare, education, infrastructure, and public safety.',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutusdescription',array(
	   	'type' => 'text',
	   	'label' => __('Description','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutusbtnlink',array(
    	'default' => '#',
    	'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutusbtnlink',array(
	   	'type' => 'text',
	   	'label' => __('Button Link','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutusbtntext',array(
    	'default' => 'About Us',
    	'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutusbtntext',array(
	   	'type' => 'text',
	   	'label' => __('Button Text','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

	$wp_customize->add_setting(
    	'luzuk_moneymind_finance_advisor_aboutus_contactagent_img',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'luzuk_moneymind_finance_advisor_aboutus_contactagent_img',
	        array(
			    'label'   		=> __('Contact Agent Image','moneymind-finance-advisor'),
				'description'   		=> __('Image size 300*300','moneymind-finance-advisor'),
	            'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	            'settings' => 'luzuk_moneymind_finance_advisor_aboutus_contactagent_img',
	        )
	    )
	);

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutus_phonenumber_heading',array(
    	'default' => 'Contact Agent',
    	'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutus_phonenumber_heading',array(
	   	'type' => 'text',
	   	'label' => __('Phone Number Heading','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutus_phonenumber',array(
    	'default' => '(+021) 117 871',
    	'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutus_phonenumber',array(
	   	'type' => 'text',
	   	'label' => __('Phone Number','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

	$wp_customize->add_setting(
    	'luzuk_moneymind_finance_advisor_aboutus_img',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'luzuk_moneymind_finance_advisor_aboutus_img',
	        array(
			    'label'   		=> __('Image','moneymind-finance-advisor'),
				'description'   		=> __('Image size 613*447','moneymind-finance-advisor'),
	            'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	            'settings' => 'luzuk_moneymind_finance_advisor_aboutus_img',
	        )
	    )
	);

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutus_completedprojects_number',array(
    	'default' => '200',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutus_completedprojects_number',array(
	   	'type' => 'text',
	   	'label' => __('Box 1 Completed Projects Number','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutus_completedprojects_text',array(
    	'default' => 'COMPLETED PROJECTS',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutus_completedprojects_text',array(
	   	'type' => 'text',
	   	'label' => __('Box 1 Completed Projects Text','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutus_completedprojects_number_box2',array(
    	'default' => '95',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutus_completedprojects_number_box2',array(
	   	'type' => 'text',
	   	'label' => __('Box 2 Completed Projects Number','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutus_completedprojects_text_box2',array(
    	'default' => 'COMPLETED PROJECTS',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutus_completedprojects_text_box2',array(
	   	'type' => 'text',
	   	'label' => __('Box 2 Completed Projects Text','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutusyearofexperiencenum',array(
    	'default' => '28',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutusyearofexperiencenum',array(
	   	'type' => 'text',
	   	'label' => __('Year Of Experience Number','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_aboutusyearofexperiencetext',array(
    	'default' => 'YEAR EXPERIENCE',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_aboutusyearofexperiencetext',array(
	   	'type' => 'text',
	   	'label' => __('Year Of Experience Text','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	));

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

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_aboutus_decription_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_aboutus_decription_color', array(
		'label' => 'Description Color',
		'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	)));

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

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_aboutus_btnbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_aboutus_btnbg_color', array(
		'label' => 'Button BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_aboutus_btntexthrv_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_aboutus_btntexthrv_color', array(
		'label' => 'Button Text Hover Color',
		'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_aboutus_btnbghrv_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_aboutus_btnbghrv_color', array(
		'label' => 'Button BG Hover Color',
		'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_aboutus_contactagenttext_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_aboutus_contactagenttext_color', array(
		'label' => 'Contact Agent Text Color',
		'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_aboutus_contactagentphonenum_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_aboutus_contactagentphonenum_color', array(
		'label' => 'Contact Agent Phone Number Color',
		'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_aboutus_boxnumber_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_aboutus_boxnumber_color', array(
		'label' => 'Box Number Color',
		'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_aboutus_boxheading_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_aboutus_boxheading_color', array(
		'label' => 'Box Heading Color',
		'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_aboutus_boxbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_aboutus_boxbg_color', array(
		'label' => 'Box BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_aboutus_yearofexptext_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_aboutus_yearofexptext_color', array(
		'label' => 'Year Experience Text Color',
		'section' => 'luzuk_moneymind_finance_advisor_aboutus_section',
	)));


	
	// services Section
	$wp_customize->add_section('luzuk_moneymind_finance_advisor_services_section',array(
		'title'	=> __('Services Settings','moneymind-finance-advisor'),
		'description'=> __('<b>Note :</b> This section will appear below the About Us.','moneymind-finance-advisor'),
		'panel' => 'luzuk_moneymind_finance_advisor_panel_id',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_servicessubheading',array(
    	'default' => 'Popular Services',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_servicessubheading',array(
	   	'type' => 'text',
	   	'label' => __('Sub Heading','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_services_section',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_servicesheading',array(
    	'default' => 'FINANCE SERVICES',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_servicesheading',array(
	   	'type' => 'text',
	   	'label' => __('Heading','moneymind-finance-advisor'),
	   	'section' => 'luzuk_moneymind_finance_advisor_services_section',
	));

	$pages = get_pages(); // Retrieve pages
	$page_options = array(); // Initialize page options array
	foreach ($pages as $page) {
		$page_options[$page->ID] = $page->post_title; // Store page ID and title in options array
	}

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_page_setting_1', array(
		'default'            => '',
		'sanitize_callback'  => 'absint', // Use absint to ensure the value is an integer
	));

	$wp_customize->add_control('luzuk_moneymind_finance_advisor_page_setting_1', array(
		'label'    => __('Select Page 1', 'moneymind-finance-advisor'),
		'section'  => 'luzuk_moneymind_finance_advisor_services_section', 
		'type'     => 'dropdown-pages',
	));


	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_page_setting_2', array(
		'default'            => '',
		'sanitize_callback'  => 'absint', // Use absint to ensure the value is an integer
	));

	$wp_customize->add_control('luzuk_moneymind_finance_advisor_page_setting_2', array(
		'label'    => __('Select Page 2', 'moneymind-finance-advisor'),
		'section'  => 'luzuk_moneymind_finance_advisor_services_section', 
		'type'     => 'dropdown-pages',
	));


	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_page_setting_3', array(
		'default'            => '',
		'sanitize_callback'  => 'absint', // Use absint to ensure the value is an integer
	));

	$wp_customize->add_control('luzuk_moneymind_finance_advisor_page_setting_3', array(
		'label'    => __('Select Page 3', 'moneymind-finance-advisor'),
		'section'  => 'luzuk_moneymind_finance_advisor_services_section', 
		'type'     => 'dropdown-pages',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_page_setting_4', array(
		'default'            => '',
		'sanitize_callback'  => 'absint', // Use absint to ensure the value is an integer
	));

	$wp_customize->add_control('luzuk_moneymind_finance_advisor_page_setting_4', array(
		'label'    => __('Select Page 4', 'moneymind-finance-advisor'),
		'section'  => 'luzuk_moneymind_finance_advisor_services_section', 
		'type'     => 'dropdown-pages',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_page_setting_5', array(
		'default'            => '',
		'sanitize_callback'  => 'absint', // Use absint to ensure the value is an integer
	));

	$wp_customize->add_control('luzuk_moneymind_finance_advisor_page_setting_5', array(
		'label'    => __('Select Page 5', 'moneymind-finance-advisor'),
		'section'  => 'luzuk_moneymind_finance_advisor_services_section', 
		'type'     => 'dropdown-pages',
	));

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_page_setting_6', array(
		'default'            => '',
		'sanitize_callback'  => 'absint', // Use absint to ensure the value is an integer
	));

	$wp_customize->add_control('luzuk_moneymind_finance_advisor_page_setting_6', array(
		'label'    => __('Select Page 6', 'moneymind-finance-advisor'),
		'section'  => 'luzuk_moneymind_finance_advisor_services_section', 
		'type'     => 'dropdown-pages',
	));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_services_subheading_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_services_subheading_color', array(
		'label' => 'Sub Heading Color',
		'section' => 'luzuk_moneymind_finance_advisor_services_section',
	)));

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

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

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_services_description_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_services_description_color', array(
		'label' => 'Description Color',
		'section' => 'luzuk_moneymind_finance_advisor_services_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_services_readmoretext_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_services_readmoretext_color', array(
		'label' => 'Read More Button Color',
		'section' => 'luzuk_moneymind_finance_advisor_services_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_services_number_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_services_number_color', array(
		'label' => 'Number Color',
		'section' => 'luzuk_moneymind_finance_advisor_services_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_services_boxbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_services_boxbg_color', array(
		'label' => 'Box BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_services_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_services_boxbghrv_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_services_boxbghrv_color', array(
		'label' => 'Box BG Hover Color',
		'section' => 'luzuk_moneymind_finance_advisor_services_section',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_services_boxbghrvtext_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_services_boxbghrvtext_color', array(
		'label' => 'Box Hover Text Color',
		'section' => 'luzuk_moneymind_finance_advisor_services_section',
	)));

	//Footer
    $wp_customize->add_section( 'luzuk_moneymind_finance_advisor_footer', array(
    	'title'  => __( 'Footer Settings', 'moneymind-finance-advisor' ),
		'priority' => null,
		'panel' => 'luzuk_moneymind_finance_advisor_panel_id'
	) );

	$wp_customize->add_setting('luzuk_moneymind_finance_advisor_show_back_totop',array(
       'default' => true,
       'sanitize_callback'	=> 'luzuk_moneymind_finance_advisor_sanitize_checkbox'
    ));
    $wp_customize->add_control('luzuk_moneymind_finance_advisor_show_back_totop',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Back to Top','moneymind-finance-advisor'),
       'section' => 'luzuk_moneymind_finance_advisor_footer'
    ));

    $wp_customize->add_setting('luzuk_moneymind_finance_advisor_footer_copy',array(
		'default' => 'Moneymind Finance Advisor WordPress Theme By Luzuk',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('luzuk_moneymind_finance_advisor_footer_copy',array(
		'label'	=> __('Copyright Text','moneymind-finance-advisor'),
		'section' => 'luzuk_moneymind_finance_advisor_footer',
		'setting' => 'luzuk_moneymind_finance_advisor_footer_copy',
		'type' => 'text'
	));

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

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_footeractivemenu_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_footeractivemenu_color', array(
		'label' => 'Active Menu Color',
		'section' => 'luzuk_moneymind_finance_advisor_footer',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_footercopyright_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_footercopyright_color', array(
		'label' => 'Copyright Color',
		'section' => 'luzuk_moneymind_finance_advisor_footer',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_footercopyrightbrd_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_footercopyrightbrd_color', array(
		'label' => 'Border Color',
		'section' => 'luzuk_moneymind_finance_advisor_footer',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_footerbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_footerbg_color', array(
		'label' => 'BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_footer',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_footerscrolltotoptext_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_footerscrolltotoptext_color', array(
		'label' => 'Scroll To Top Text Color',
		'section' => 'luzuk_moneymind_finance_advisor_footer',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_footerscrolltotopbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_footerscrolltotopbg_color', array(
		'label' => 'Scroll To Top BG Color',
		'section' => 'luzuk_moneymind_finance_advisor_footer',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_footerscrolltotoptexthover_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_footerscrolltotoptexthover_color', array(
		'label' => 'Scroll To Top Text Hover Color',
		'section' => 'luzuk_moneymind_finance_advisor_footer',
	)));

	$wp_customize->add_setting( 'luzuk_moneymind_finance_advisor_footerscrolltotophover_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_moneymind_finance_advisor_footerscrolltotophover_color', array(
		'label' => 'Scroll To Top Hover Color',
		'section' => 'luzuk_moneymind_finance_advisor_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' => 'luzuk_moneymind_finance_advisor_customize_partial_blogname',
	) );
	$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
		'selector' => '.site-description',
		'render_callback' => 'luzuk_moneymind_finance_advisor_customize_partial_blogdescription',
	) );
}
add_action( 'customize_register', 'luzuk_moneymind_finance_advisor_customize_register' );

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

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

if (class_exists('WP_Customize_Control')) {

   	class Luzuk_Moneymind_Finance_Advisor_Fontawesome_Icon_Chooser extends WP_Customize_Control {

      	public $type = 'icon';

      	public function render_content() { ?>
	     	<label>
	            <span class="customize-control-title">
	               <?php echo esc_html($this->label); ?>
	            </span>

	            <?php if ($this->description) { ?>
	                <span class="description customize-control-description">
	                   <?php echo wp_kses_post($this->description); ?>
	                </span>
	            <?php } ?>

	            <div class="moneymind-finance-advisor-selected-icon">
	                <i class="fa <?php echo esc_attr($this->value()); ?>"></i>
	                <span><i class="fa fa-angle-down"></i></span>
	            </div>

	            <ul class="moneymind-finance-advisor-icon-list clearfix">
	                <?php
	                $luzuk_moneymind_finance_advisor_font_awesome_icon_array = luzuk_moneymind_finance_advisor_font_awesome_icon_array();
	                foreach ($luzuk_moneymind_finance_advisor_font_awesome_icon_array as $luzuk_moneymind_finance_advisor_font_awesome_icon) {
	                   $icon_class = $this->value() == $luzuk_moneymind_finance_advisor_font_awesome_icon ? 'icon-active' : '';
	                   echo '<li class=' . esc_attr($icon_class) . '><i class="' . esc_attr($luzuk_moneymind_finance_advisor_font_awesome_icon) . '"></i></li>';
	                }
	                ?>
	            </ul>
	            <input type="hidden" value="<?php $this->value(); ?>" <?php $this->link(); ?> />
	        </label>
	        <?php
      	}
  	}
}
function luzuk_moneymind_finance_advisor_customizer_script() {
   wp_enqueue_style( 'font-awesome-1', esc_url(get_template_directory_uri()).'/assets/css/fontawesome-all.css');
}
add_action( 'customize_controls_enqueue_scripts', 'luzuk_moneymind_finance_advisor_customizer_script' );