<?php
/**
 * Theme Options.
 *
 * @package Prime Beauty Salon
 */

$default = prime_beauty_salon_get_default_theme_options();

// Add Panel.
$wp_customize->add_panel( 'theme_option_panel',
	array(
	'title'      => __( 'Theme Options', 'prime-beauty-salon' ),
	'priority'   => 30,
	'capability' => 'edit_theme_options',
	)
);

// Typography Setting Title
$wp_customize->add_section('prime_beauty_salon_typography_setting', 
	array(    
	'title'       => __('Typography Settings', 'prime-beauty-salon'),
	'panel'       => 'theme_option_panel'    
	)
);

 // Array of fonts to choose from
    $font_choices = array(
        ''               => __('Select', 'prime-beauty-salon'),
        'arial'          => 'Arial, sans-serif',
        'verdana'        => 'Verdana, sans-serif',
        'helvetica'      => 'Helvetica, sans-serif',
        'times-new-roman'=> '"Times New Roman", serif',
        'georgia'        => 'Georgia, serif',
        'courier-new'    => '"Courier New", monospace',
        'trebuchet-ms'   => '"Trebuchet MS", sans-serif',
        'tahoma'         => 'Tahoma, sans-serif',
        'palatino'       => '"Palatino Linotype", serif',
        'garamond'       => 'Garamond, serif',
        'impact'         => 'Impact, sans-serif',
        'comic-sans-ms'  => '"Comic Sans MS", cursive, sans-serif',
        'lucida-sans'    => '"Lucida Sans Unicode", sans-serif',
        'arial-black'    => '"Arial Black", sans-serif',
        'gill-sans'      => '"Gill Sans", sans-serif',
        'segoe-ui'       => '"Segoe UI", sans-serif',
        'open-sans'      => '"Open Sans", sans-serif',
        'roboto'         => 'Roboto, sans-serif',
        'lato'           => 'Lato, sans-serif',
        'montserrat'     => 'Montserrat, sans-serif',
        'libre-baskerville' => 'Libre Baskerville',
    );

    // Heading Font Setting
    $wp_customize->add_setting('prime_beauty_salon_heading_font_family', array(
        'default'           => '',
        'sanitize_callback' => 'prime_beauty_salon_sanitize_select',
    ));
    $wp_customize->add_control('prime_beauty_salon_heading_font_family', array(
        'type'    => 'select',
        'choices' => $font_choices,
        'label'   => __('Select Font for Heading', 'prime-beauty-salon'),
        'section' => 'prime_beauty_salon_typography_setting',
    ));

    // Body Font Setting
    $wp_customize->add_setting('prime_beauty_salon_body_font_family', array(
        'default'           => '',
        'sanitize_callback' => 'prime_beauty_salon_sanitize_select',
    ));
    $wp_customize->add_control('prime_beauty_salon_body_font_family', array(
        'type'    => 'select',
        'choices' => $font_choices,
        'label'   => __('Select Font for Body', 'prime-beauty-salon'),
        'section' => 'prime_beauty_salon_typography_setting',
    ));

// Single Post Setting Title
$wp_customize->add_section('section_single_post_setting', 
	array(    
	'title'       => __('Single Post Setting', 'prime-beauty-salon'),
	'panel'       => 'theme_option_panel'    
	)
);

//Author Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_post_author_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_post_author_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_post_author_setting]',
    array(
        'label'       => __( 'Show Author', 'prime-beauty-salon' ),
        'section'     => 'section_single_post_setting',
        'type'        => 'checkbox',
    )
);

//Date Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_post_date_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_post_date_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_post_date_setting]',
    array(
        'label'       => __( 'Show Date', 'prime-beauty-salon' ),
        'section'     => 'section_single_post_setting',
        'type'        => 'checkbox',
    )
);

//Categories Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_post_categories_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_post_categories_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_post_categories_setting]',
    array(
        'label'       => __( 'Show Categories', 'prime-beauty-salon' ),
        'section'     => 'section_single_post_setting',
        'type'        => 'checkbox',
    )
);

//Comments Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_post_comment_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_post_comment_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_post_comment_setting]',
    array(
        'label'       => __( 'Show Comments', 'prime-beauty-salon' ),
        'section'     => 'section_single_post_setting',
        'type'        => 'checkbox',
    )
);

//Post Pagination Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_single_page_pagination_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_single_page_pagination_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_single_page_pagination_setting]',
    array(
        'label'       => __( 'Show Post Pagination', 'prime-beauty-salon' ),
        'section'     => 'section_single_post_setting',
        'type'        => 'checkbox',
    )
);

//Post Content Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_single_page_content_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_single_page_content_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_single_page_content_setting]',
    array(
        'label'       => __( 'Show Post Content', 'prime-beauty-salon' ),
        'section'     => 'section_single_post_setting',
        'type'        => 'checkbox',
    )
);

//Tags Content Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_single_tags_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_single_tags_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_single_tags_setting]',
    array(
        'label'       => __( 'Show Tags', 'prime-beauty-salon' ),
        'section'     => 'section_single_post_setting',
        'type'        => 'checkbox',
    )
);

//Post Setting
$wp_customize->add_section('section_post_setting', 
	array(    
	'title'       => __('Post Setting', 'prime-beauty-salon'),
	'panel'       => 'theme_option_panel'    
	)
);

//Title Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_post_title_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_post_title_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_post_title_setting]',
    array(
        'label'       => __( 'Show Title', 'prime-beauty-salon' ),
        'section'     => 'section_post_setting',
        'type'        => 'checkbox',
    )
);

//meta Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_post_meta_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_post_meta_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_post_meta_setting]',
    array(
        'label'       => __( 'Show Meta', 'prime-beauty-salon' ),
        'section'     => 'section_post_setting',
        'type'        => 'checkbox',
    )
);

//Content Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_post_content_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_post_content_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_post_content_setting]',
    array(
        'label'       => __( 'Show Content', 'prime-beauty-salon' ),
        'section'     => 'section_post_setting',
        'type'        => 'checkbox',
    )
);

//Button Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_post_button_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_post_button_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_post_button_setting]',
    array(
        'label'       => __( 'Show Button', 'prime-beauty-salon' ),
        'section'     => 'section_post_setting',
        'type'        => 'checkbox',
    )
);

//Featured Image Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_post_feature_image_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_post_feature_image_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_post_feature_image_setting]',
    array(
        'label'       => __( 'Show Featured Image', 'prime-beauty-salon' ),
        'section'     => 'section_post_setting',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_setting('prime_beauty_salon_single_post_align',array(
    'default' => 'left-align',
    'sanitize_callback' => 'prime_beauty_salon_sanitize_choices'
));
$wp_customize->add_control('prime_beauty_salon_single_post_align',array(
    'type' => 'select',
    'label' => __('Archive Post Alignment','prime-beauty-salon'),
    'section' => 'section_post_setting',
    'choices' => array(
            'left-align' => __('Left Alignment','prime-beauty-salon'),
            'right-align' => __('Right Alignment','prime-beauty-salon'),
            'center-align' => __('Center Alignment','prime-beauty-salon'),
        ),
) );

$wp_customize->add_setting('prime_beauty_salon_post_meta_order', array(
    'default' => array('featured-image','heading', 'author', 'content','button'),
    'sanitize_callback' => 'prime_beauty_salon_sanitize_sortable',
));
$wp_customize->add_control(new Prime_Beauty_Salon_Control_Sortable($wp_customize, 'prime_beauty_salon_post_meta_order', array(
    'label' => esc_html__('Post Meta Ordering', 'prime-beauty-salon'),
    'description' => __('Drag & drop post items to rearrange the ordering ( this control will not function by post format )', 'prime-beauty-salon') ,
    'section' => 'section_post_setting',
    'choices' => array(
        'featured-image' => __('featured-image', 'prime-beauty-salon') ,
        'heading' => __('heading', 'prime-beauty-salon') ,
        'author' => __('author', 'prime-beauty-salon') ,
        'content' => __('content', 'prime-beauty-salon') ,
        'button' => __('button', 'prime-beauty-salon') ,
    ) ,
)));

// Page Title
$wp_customize->add_section('section_page_title', 
	array(    
	'title'       => __('Page Title', 'prime-beauty-salon'),
	'panel'       => 'theme_option_panel'    
	)
);

// Show / Hide Page Title
$wp_customize->add_setting( 'theme_options[prime_beauty_salon_show_page_title]', array(
	'default'           => $default['prime_beauty_salon_show_page_title'],
	'sanitize_callback' => 'prime_beauty_salon_sanitize_select',
) );

$wp_customize->add_control( 'theme_options[prime_beauty_salon_show_page_title]', array(
	'label'              => esc_html__( 'Display Page Title', 'prime-beauty-salon' ),
	'section'            => 'section_page_title',
	'type'               => 'select',
	'choices' 	         => array(		
		'page-title-enable' 	 => 'Yes',						
		'page-title-disable'     => 'No',
	),	
) );


// Sidebar Layout
$wp_customize->add_section('section_sidebar_layout', array(    
	'title'       => __('Sidebar Layout', 'prime-beauty-salon'),
	'panel'       => 'theme_option_panel'    
));

    $wp_customize->add_setting('prime_beauty_salon_post_layout_setting', array(
        'default'           => 'right-sidebar',
        'sanitize_callback' => 'sanitize_text_field',
    ));

    $wp_customize->add_control('prime_beauty_salon_post_layout_setting', array(
        'label'    => __('Post Column Settings', 'prime-beauty-salon'),
        'section'  => 'section_sidebar_layout',
        'settings' => 'prime_beauty_salon_post_layout_setting',
        'type'     => 'select',
        'choices'  => array(
            'one-column'   => __('One Column', 'prime-beauty-salon'),
            'right-sidebar'   => __('Right Sidebar', 'prime-beauty-salon'),
            'left-sidebar'   => __('Left Sidebar', 'prime-beauty-salon'),
            'three-column'   => __('Three Columns', 'prime-beauty-salon'),
            'four-column'   => __('Four Columns', 'prime-beauty-salon'),
            'grid-layout'   => __('Grid Layout', 'prime-beauty-salon')
        ),
    ));

    $wp_customize->add_setting('prime_beauty_salon_archive_pagination_alignment',array(
        'default' => 'left-align',
        'sanitize_callback' => 'prime_beauty_salon_sanitize_pagination_alignment'
    ));
    $wp_customize->add_control('prime_beauty_salon_archive_pagination_alignment',array(
        'type' => 'select',
        'label' => __('Pagination Alignment','prime-beauty-salon'),
        'section' => 'section_sidebar_layout',
        'choices' => array(
            'right-align' => __('Right Alignment','prime-beauty-salon'),
            'center-align' => __('Center Alignment','prime-beauty-salon'),
            'left-align' => __('Left Alignment','prime-beauty-salon'),
        ),
    ) );

// Excerpt Length
$wp_customize->add_section('section_prime_beauty_salon_excerpt_length', 
	array(    
	'title'       => __('Excerpt Length', 'prime-beauty-salon'),
	'panel'       => 'theme_option_panel'    
	)
);

$wp_customize->add_setting( 'theme_options[prime_beauty_salon_excerpt_length]', array(
	'default'           => $default['prime_beauty_salon_excerpt_length'],
	'sanitize_callback' => 'prime_beauty_salon_sanitize_number_range',
) );
$wp_customize->add_control( 'theme_options[prime_beauty_salon_excerpt_length]', array(
	'label'       => esc_html__( 'Excerpt Length', 'prime-beauty-salon' ),
	'section'     => 'section_prime_beauty_salon_excerpt_length',
	'type'        => 'number',
	'input_attrs' => array( 'min' => 1, 'max' => 200, 'style' => 'width: 80px;' ),
) );

// Blog Settings
$wp_customize->add_section('section_blog_setting', 
	array(    
	'title'       => __('Blog / Archive Settings', 'prime-beauty-salon'),
	'panel'       => 'theme_option_panel'    
	)
);

// Blog Title
$wp_customize->add_setting( 'theme_options[prime_beauty_salon_your_latest_posts_title]',
	array(
	'default'           => $default['prime_beauty_salon_your_latest_posts_title'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'prime_beauty_salon_sanitize_textarea_content',
	'transport'         => 'refresh',
	)
);
$wp_customize->add_control( 'theme_options[prime_beauty_salon_your_latest_posts_title]',
	array(
	'label'    => __( 'Blog Title', 'prime-beauty-salon' ),
	'section'  => 'section_blog_setting',
	'type'     => 'text',
	)
);
 $wp_customize->add_setting('prime_beauty_salon_custom_header_image', array(
    'default' => '',
    'sanitize_callback' => 'esc_url_raw',
));

// Add control for custom header image
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'prime_beauty_salon_custom_header_image_control', array(
    'label' => __('Custom Header Image', 'prime-beauty-salon'),
    'section' => 'section_blog_setting',
    'settings' => 'prime_beauty_salon_custom_header_image',
)));

// Blog Button Label
$wp_customize->add_setting( 'theme_options[prime_beauty_salon_readmore_text]',
	array(
	'default'           => $default['prime_beauty_salon_readmore_text'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'prime_beauty_salon_sanitize_textarea_content',
	'transport'         => 'refresh',
	)
);

$wp_customize->add_control( 'theme_options[prime_beauty_salon_readmore_text]',
	array(
	'label'    => __( 'Button Label', 'prime-beauty-salon' ),
	'section'  => 'section_blog_setting',
	'type'     => 'text',
	)
);

// Footer Setting Section starts
$wp_customize->add_section('section_footer', 
	array(    
	'title'       => __('Footer Setting', 'prime-beauty-salon'),
	'panel'       => 'theme_option_panel'    
	)
);

// Footer Copyright Setting control 
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_footer_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_footer_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

//Footer Widgets Setting control
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_footer_widgtes_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_footer_widgtes_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_footer_widgtes_setting]',
    array(
        'label'       => __( 'Show Footer Widgets', 'prime-beauty-salon' ),
        'section'     => 'section_footer',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_footer_setting]',
    array(
        'label'       => __( 'Show Footer Copyright', 'prime-beauty-salon' ),
        'section'     => 'section_footer',
        'type'        => 'checkbox',
    )
);

// Setting prime_beauty_salon_copyright_text.
$wp_customize->add_setting( 'theme_options[prime_beauty_salon_copyright_text]',
	array(
	'default'           => $default['prime_beauty_salon_copyright_text'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field',
	'transport'         => 'refresh',
	)
);
$wp_customize->add_control( 'theme_options[prime_beauty_salon_copyright_text]',
	array(
	'label'    => __( 'Copyright Text', 'prime-beauty-salon' ),
	'section'  => 'section_footer',
	'type'     => 'text',
	'priority' => 100,
	)
);

/* Footer Background Color*/
$wp_customize->add_setting(
    'footer_bg_color',
    array(
        'default' => '',
        'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control(
    new WP_Customize_Color_Control(
        $wp_customize,
        'footer_bg_color',
        array(
            'label' => __('Footer Widget Area Background Color', 'prime-beauty-salon'),
            'section' => 'section_footer',
            'type' => 'color',
        )
    )
);

/** Footer Background Image **/

$wp_customize->add_setting('prime_beauty_salon_footer_bg_image', array(
    'default' => '',
    'transport' => 'refresh',
    'sanitize_callback' => 'esc_url_raw', // Sanitize as URL
));

$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'prime_beauty_salon_footer_bg_image', array(
    'label' => __('Footer Background Image', 'prime-beauty-salon'),
    'section' => 'section_footer',
    'settings' => 'prime_beauty_salon_footer_bg_image',
)));

/** Footer Background Image Attachment */
$wp_customize->add_setting('prime_beauty_salon_background_attatchment', array(
    'default'           => 'scroll',
    'sanitize_callback' => 'prime_beauty_salon_sanitize_choices',
));

$wp_customize->add_control('prime_beauty_salon_background_attatchment', array(
    'label'    => __('Footer Background Attachment', 'prime-beauty-salon'),
    'section'  => 'section_footer',
    'settings' => 'prime_beauty_salon_background_attatchment',
    'type'     => 'select',
    'choices'  => array(
        'fixed' => __('fixed','prime-beauty-salon'),
        'scroll' => __('scroll','prime-beauty-salon'),
    ),
));

// Add Setting for Footer Widget Columns
$wp_customize->add_setting('prime_beauty_salon_footer_widget_columns', array(
    'default' => '4',
    'sanitize_callback' => 'sanitize_text_field',
));

// Add Control for Footer Widget Columns
$wp_customize->add_control('prime_beauty_salon_footer_widget_columns', array(
    'label' => __('Number of Columns', 'prime-beauty-salon'),
    'section' => 'section_footer',
    'type' => 'select',
    'choices' => array(
    	'0' => __('None', 'prime-beauty-salon'),
        '1' => __('1 Column', 'prime-beauty-salon'),
        '2' => __('2 Columns', 'prime-beauty-salon'),
        '3' => __('3 Columns', 'prime-beauty-salon'),
        '4' => __('4 Columns', 'prime-beauty-salon'),
    ),
));
// General Setting Section starts
$wp_customize->add_section('section_general_setting', 
	array(    
	'title'       => __('General Setting', 'prime-beauty-salon'),
	'panel'       => 'theme_option_panel'    
	)
);

/** Scroll to top control */
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_header_donate_scroll_to_top]', 
    array(
        'default'           => $default['prime_beauty_salon_header_donate_scroll_to_top'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_header_donate_scroll_to_top]',
    array(
        'label'       => __( 'Show Scroll To Top', 'prime-beauty-salon' ),
        'section'     => 'section_general_setting',
        'type'        => 'checkbox',
    )
);

$wp_customize->add_setting('prime_beauty_salon_scroll_icon',array(
    'default'   => 'fas fa-arrow-up',
    'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control(new Prime_Beauty_Salon_Changeable_Icon(
    $wp_customize,'prime_beauty_salon_scroll_icon',array(
    'label' => __('Location Icon','prime-beauty-salon'),
    'transport' => 'refresh',
    'section'   => 'section_general_setting',
    'type'      => 'icon'
)));

$wp_customize->add_setting('prime_beauty_salon_scroll_top_alignment',array(
    'default' => 'right-align',
    'sanitize_callback' => 'prime_beauty_salon_sanitize_scroll_top_alignment'
));
$wp_customize->add_control('prime_beauty_salon_scroll_top_alignment',array(
    'type' => 'select',
    'label' => __('Scroll Top Alignment','prime-beauty-salon'),
    'section' => 'section_general_setting',
    'choices' => array(
        'right-align' => __('Right Alignment','prime-beauty-salon'),
        'center-align' => __('Center Alignment','prime-beauty-salon'),
        'left-align' => __('Left Alignment','prime-beauty-salon'),
    ),
) );

/** Scroll to top button shape */
$wp_customize->add_setting('prime_beauty_salon_scroll_to_top_radius', array(
    'default'           => 'curved-box',
    'sanitize_callback' => 'prime_beauty_salon_sanitize_choices',
));

$wp_customize->add_control('prime_beauty_salon_scroll_to_top_radius', array(
    'label'    => __('Scroll Top Button Shape', 'prime-beauty-salon'),
    'section'  => 'prime_beauty_salon_footer_section',
    'settings' => 'prime_beauty_salon_scroll_to_top_radius',
    'type'     => 'select',
    'choices'  => array(
        'box'        => __( 'Box', 'prime-beauty-salon' ),
        'curved-box' => __( 'Curved Box', 'prime-beauty-salon' ),
        'circle'     => __( 'Circle', 'prime-beauty-salon' ),
    ),
));

// Preloader Setting control 
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_header_donate_preloader_setting]', 
    array(
        'default'           => $default['prime_beauty_salon_header_donate_preloader_setting'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_header_donate_preloader_setting]',
    array(
        'label'       => __( 'Show Preloader', 'prime-beauty-salon' ),
        'section'     => 'section_general_setting',
        'type'        => 'checkbox',
    )
);
$wp_customize->add_setting('prime_beauty_salon_loader_layout_setting', array(
    'default' => 'load',
    'sanitize_callback' => 'sanitize_text_field',
));

// Add control for loader layout
$wp_customize->add_control('prime_beauty_salon_loader_layout_control', array(
    'label' => __('Preloader Layout', 'prime-beauty-salon'),
    'section' => 'section_general_setting',
    'settings' => 'prime_beauty_salon_loader_layout_setting',
    'type' => 'select',
    'choices' => array(
        'load' => __('Preloader 1', 'prime-beauty-salon'),
        'load-one' => __('Preloader 2', 'prime-beauty-salon'),
        'ctn-preloader' => __('Preloader 3', 'prime-beauty-salon'),
    ),
));

// Add Setting for Menu Font Weight
$wp_customize->add_setting( 'menu_font_weight', array(
    'default'           => '400',
    'sanitize_callback' => 'prime_beauty_salon_sanitize_font_weight',
) );

// Add Control for Menu Font Weight
$wp_customize->add_control( 'menu_font_weight', array(
    'label'    => __( 'Menu Font Weight', 'prime-beauty-salon' ),
    'section'  => 'section_general_setting',
    'type'     => 'select',
    'choices'  => array(
        '100' => __( '100 - Thin', 'prime-beauty-salon' ),
        '200' => __( '200 - Extra Light', 'prime-beauty-salon' ),
        '300' => __( '300 - Light', 'prime-beauty-salon' ),
        '400' => __( '400 - Normal', 'prime-beauty-salon' ),
        '500' => __( '500 - Medium', 'prime-beauty-salon' ),
        '600' => __( '600 - Semi Bold', 'prime-beauty-salon' ),
        '700' => __( '700 - Bold', 'prime-beauty-salon' ),
        '800' => __( '800 - Extra Bold', 'prime-beauty-salon' ),
        '900' => __( '900 - Black', 'prime-beauty-salon' ),
    ),
) );

// Add Setting for Menu Text Transform
$wp_customize->add_setting( 'menu_text_transform', array(
    'default'           => 'capitalize',
    'sanitize_callback' => 'prime_beauty_salon_sanitize_text_transform',
) );

// Add Control for Menu Text Transform
$wp_customize->add_control( 'menu_text_transform', array(
    'label'    => __( 'Menu Text Transform', 'prime-beauty-salon' ),
    'section'  => 'section_general_setting',
    'type'     => 'select',
    'choices'  => array(
        'none'       => __( 'None', 'prime-beauty-salon' ),
        'capitalize' => __( 'Capitalize', 'prime-beauty-salon' ),
        'uppercase'  => __( 'Uppercase', 'prime-beauty-salon' ),
        'lowercase'  => __( 'Lowercase', 'prime-beauty-salon' ),
    ),
) );

$wp_customize->add_setting('prime_beauty_salon_menus_style',array(
    'default' => '',
    'sanitize_callback' => 'prime_beauty_salon_sanitize_choices'
));
$wp_customize->add_control('prime_beauty_salon_menus_style',array(
    'type' => 'select',
    'label' => __('Menu Hover Style','prime-beauty-salon'),
    'section' => 'section_general_setting',
    'choices' => array(
     'None' => __('None','prime-beauty-salon'),
     'Zoom In' => __('Zoom In','prime-beauty-salon'),
  ),
));

$wp_customize->add_setting('prime_beauty_salon_theme_width',array(
    'default' => 'full-width',
    'sanitize_callback' => 'prime_beauty_salon_sanitize_theme_width'
));
$wp_customize->add_control('prime_beauty_salon_theme_width',array(
    'type' => 'select',
    'label' => __('Theme Width Option','prime-beauty-salon'),
    'section' => 'section_general_setting',
    'choices' => array(
        'full-width' => __('Fullwidth','prime-beauty-salon'),
        'container' => __('Container','prime-beauty-salon'),
        'container-fluid' => __('Container Fluid','prime-beauty-salon'),
    ),
) );

//Global Color
$wp_customize->add_section(
    'prime_beauty_salon_global_color',
    array(
        'priority'   => 1,
        'title' => esc_html__( 'Global Color Settings', 'prime-beauty-salon' ),
        'panel'       => 'theme_option_panel'
    )
);

$wp_customize->add_setting('prime_beauty_salon_primary_color', array(
    'default'           => '#9a563a',
    'sanitize_callback' => 'sanitize_hex_color',
));
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'prime_beauty_salon_primary_color', array(
    'label'    => __('Theme Primary Color', 'prime-beauty-salon'),
    'section'  => 'prime_beauty_salon_global_color',
    'settings' => 'prime_beauty_salon_primary_color',
)));    


// 404 PAGE SETTINGS
$wp_customize->add_section(
    'prime_beauty_salon_404_section',
    array(
        'title' => __( '404 Page Settings', 'prime-beauty-salon' ),
        'panel'       => 'theme_option_panel'
    )
);

$wp_customize->add_setting('404_page_image', array(
    'default' => '',
    'transport' => 'refresh',
    'sanitize_callback' => 'esc_url_raw', // Sanitize as URL
));

$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, '404_page_image', array(
    'label' => __('404 Page Image', 'prime-beauty-salon'),
    'section' => 'prime_beauty_salon_404_section',
    'settings' => '404_page_image',
)));

$wp_customize->add_setting('404_pagefirst_header', array(
    'default' => __('404', 'prime-beauty-salon'),
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_text_field', // Sanitize as text field
));

$wp_customize->add_control('404_pagefirst_header', array(
    'type' => 'text',
    'label' => __('Heading', 'prime-beauty-salon'),
    'section' => 'prime_beauty_salon_404_section',
));

// Setting for 404 page header
$wp_customize->add_setting('404_page_header', array(
    'default' => __('Sorry, that page can\'t be found!', 'prime-beauty-salon'),
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_text_field', // Sanitize as text field
));

$wp_customize->add_control('404_page_header', array(
    'type' => 'text',
    'label' => __('Heading', 'prime-beauty-salon'),
    'section' => 'prime_beauty_salon_404_section',
));


/** Sticky Header control */
$wp_customize->add_setting( 
    'theme_options[prime_beauty_salon_sticky_header]', 
    array(
        'default'           => $default['prime_beauty_salon_sticky_header'],
        'sanitize_callback' => 'prime_beauty_salon_sanitize_checkbox',
    ) 
);

$wp_customize->add_control(
    'theme_options[prime_beauty_salon_sticky_header]',
    array(
        'label'       => __( 'Show Sticky Header', 'prime-beauty-salon' ),
        'section'     => 'section_general_setting',
        'type'        => 'checkbox',
    )
);

// Woocommerce Setting
$wp_customize->add_section('section_woocommerce_setting', 
	array(    
	'title'       => __('Woocommerce Setting', 'prime-beauty-salon'),
	'panel'       => 'theme_option_panel'    
	)
);

// Select No Of Columns
$wp_customize->add_setting( 'theme_options[prime_beauty_salon_archive_product_per_row]', array(
	'default'           => $default['prime_beauty_salon_archive_product_per_row'],
	'sanitize_callback' => 'prime_beauty_salon_sanitize_select',
) );

$wp_customize->add_control( 'theme_options[prime_beauty_salon_archive_product_per_row]', array(
	'label'              => esc_html__( 'Select No Of Columns', 'prime-beauty-salon' ),
	'section'            => 'section_woocommerce_setting',
	'type'               => 'select',
	'choices' 	         => array(		
		'1' 	  => '1 Column',						
		'2'       => '2 Column',
		'3'       => '3 Column',
		'4'       => '4 Column',
	),	
) );

$wp_customize->add_setting( 
	'theme_options[prime_beauty_salon_archive_product_per_page]', 
	array(
		'default'              => $default['prime_beauty_salon_archive_product_per_page'],
		'transport' 		   => 'refresh',
		'sanitize_callback'    => 'prime_beauty_salon_sanitize_number_absint',
		'sanitize_js_callback' => 'absint',
	)
);

$wp_customize->add_control( 
	'theme_options[prime_beauty_salon_archive_product_per_page]',
    array(
		'label'       => esc_html__( 'Product Per Page','prime-beauty-salon' ),
		'section'     => 'section_woocommerce_setting',
		'type'        => 'number',
    )
);

// Homepage Static setting and control.
$wp_customize->add_setting( 'theme_options[prime_beauty_salon_enable_frontpage_content]', array(
	'default'             => $default['prime_beauty_salon_enable_frontpage_content'],
	'sanitize_callback'   => 'prime_beauty_salon_sanitize_checkbox',
) );

$wp_customize->add_control( 'theme_options[prime_beauty_salon_enable_frontpage_content]', array(
	'label'       	=> __( 'Enable Content', 'prime-beauty-salon' ),
	'description' 	=> __( 'Click to enable content on static front page only.', 'prime-beauty-salon' ),
	'section'     	=> 'static_front_page',
	'type'        	=> 'checkbox',
) );

// Show / Hide Frontpage Content
$wp_customize->add_setting( 'theme_options[prime_beauty_salon_enable_frontpage_content]', array(
	'default'             => $default['prime_beauty_salon_enable_frontpage_content'],
	'sanitize_callback'   => 'prime_beauty_salon_sanitize_checkbox',
) );

$wp_customize->add_control( 'theme_options[prime_beauty_salon_enable_frontpage_content]', array(
	'label'       	=> esc_html__( 'Enable Homepage Content', 'prime-beauty-salon' ),
	'description' 	=> esc_html__( 'Enable content on A static page.', 'prime-beauty-salon' ),
	'section'     	=> 'static_front_page',
	'type'        	=> 'checkbox',
) );

// Show / Hide Header Image
$wp_customize->add_setting( 'theme_options[prime_beauty_salon_show_header_image]', array(
	'default'           => $default['prime_beauty_salon_show_header_image'],
	'sanitize_callback' => 'prime_beauty_salon_sanitize_select',
) );

$wp_customize->add_control( 'theme_options[prime_beauty_salon_show_header_image]', array(
	'label'              => esc_html__( 'Display Header Image', 'prime-beauty-salon' ),
	'section'            => 'header_image',
	'type'               => 'select',
	'choices' 	         => array(		
		'header-image-enable' 	   => 'Yes',						
		'header-image-disable'     => 'No',
	),	
) );