<?php
/**
 * Live Artist Theme Customizer
 *
 * @package Live Artist
 */

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

	function live_artist_sanitize_dropdown_pages( $page_id, $setting ) {
  		$page_id = absint( $page_id );
  		return ( 'publish' == get_post_status( $page_id ) ? $page_id : $setting->default );
	}

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

	wp_enqueue_style('live-artist-customize-controls', trailingslashit(esc_url(get_template_directory_uri())).'/css/customize-controls.css');

	if ( class_exists( 'WP_Customize_Control' ) ) {
		require_once get_template_directory() . '/inc/customizer-custom-controls.php';
	}

	// Enable / Disable Logo
	$wp_customize->add_setting('live_artist_logo_enable',array(
		'default' => true,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
	));
	$wp_customize->add_control( 'live_artist_logo_enable', array(
	   'settings' => 'live_artist_logo_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Logo','live-artist'),
	   'type'      => 'checkbox'
	));

	//Logo
    $wp_customize->add_setting('live_artist_logo_width', array(
        'default' => '',
        'transport' => 'refresh',
        'sanitize_callback' => 'live_artist_sanitize_integer'
    ));
    $wp_customize->add_control(new Live_Artist_Slider_Custom_Control($wp_customize, 'live_artist_logo_width', array(
    	'label'          => __( 'Logo Width', 'live-artist'),
        'section' => 'title_tagline',
        'settings' => 'live_artist_logo_width',
        'input_attrs' => array(
            'step' => 1,
            'min' => 0,
            'max' => 300,
        ),
    )));

	// color site title
	$wp_customize->add_setting('live_artist_sitetitle_color',array(
		'default' => '',
		'sanitize_callback' => 'live_artist_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));

	$wp_customize->add_control( 'live_artist_sitetitle_color', array(
	   'settings' => 'live_artist_sitetitle_color',
	   'section'   => 'title_tagline',
	   'label' => __('Site Title Color', 'live-artist'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('live_artist_title_enable',array(
		'default' => false,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
	));
	$wp_customize->add_control( 'live_artist_title_enable', array(
	   'settings' => 'live_artist_title_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Title','live-artist'),
	   'type'      => 'checkbox'
	));

	// color site tagline
	$wp_customize->add_setting('live_artist_sitetagline_color',array(
		'default' => '',
		'sanitize_callback' => 'live_artist_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_sitetagline_color', array(
	   'settings' => 'live_artist_sitetagline_color',
	   'section'   => 'title_tagline',
	   'label' => __('Site Tagline Color', 'live-artist'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('live_artist_tagline_enable',array(
		'default' => false,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
	));
	$wp_customize->add_control( 'live_artist_tagline_enable', array(
	   'settings' => 'live_artist_tagline_enable',
	   'section'   => 'title_tagline',
	   'label'     => __('Enable Site Tagline','live-artist'),
	   'type'      => 'checkbox'
	));

	// woocommerce section
	$wp_customize->add_section('live_artist_woocommerce_page_settings', array(
		'title'    => __('WooCommerce Page Settings', 'live-artist'),
		'priority' => null,
		'panel'    => 'woocommerce',
	));

	$wp_customize->add_setting('live_artist_shop_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'live_artist_sanitize_checkbox'
	 ));
	 $wp_customize->add_control('live_artist_shop_page_sidebar',array(
		'type' => 'checkbox',
		'label' => __(' Check To Enable Shop page sidebar','live-artist'),
		'section' => 'live_artist_woocommerce_page_settings',
	 ));

    // shop page sidebar alignment
    $wp_customize->add_setting('live_artist_shop_page_sidebar_position', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'live_artist_sanitize_choices',
	));
	$wp_customize->add_control('live_artist_shop_page_sidebar_position',array(
		'type'           => 'radio',
		'label'          => __('Shop Page Sidebar', 'live-artist'),
		'section'        => 'live_artist_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'live-artist'),
			'Right Sidebar' => __('Right Sidebar', 'live-artist'),
		),
	));	 

	$wp_customize->add_setting('live_artist_wooproducts_nav',array(
		'default' => 'Yes',
		'sanitize_callback'	=> 'live_artist_sanitize_choices'
	 ));
	 $wp_customize->add_control('live_artist_wooproducts_nav',array(
		'type' => 'select',
		'label' => __('Shop Page Products Navigation','live-artist'),
		'choices' => array(
			 'Yes' => __('Yes','live-artist'),
			 'No' => __('No','live-artist'),
		 ),
		'section' => 'live_artist_woocommerce_page_settings',
	 ));

	 $wp_customize->add_setting( 'live_artist_single_page_sidebar',array(
		'default' => false,
		'sanitize_callback'	=> 'live_artist_sanitize_checkbox'
    ) );
    $wp_customize->add_control('live_artist_single_page_sidebar',array(
    	'type' => 'checkbox',
       	'label' => __('Check To Enable Single Product Page Sidebar','live-artist'),
		'section' => 'live_artist_woocommerce_page_settings'
    ));

	// single product page sidebar alignment
    $wp_customize->add_setting('live_artist_single_product_page_layout', array(
		'default'           => 'Right Sidebar',
		'sanitize_callback' => 'live_artist_sanitize_choices',
	));
	$wp_customize->add_control('live_artist_single_product_page_layout',array(
		'type'           => 'radio',
		'label'          => __('Single product Page Sidebar', 'live-artist'),
		'section'        => 'live_artist_woocommerce_page_settings',
		'choices'        => array(
			'Left Sidebar'  => __('Left Sidebar', 'live-artist'),
			'Right Sidebar' => __('Right Sidebar', 'live-artist'),
		),
	));

	$wp_customize->add_setting('live_artist_related_product_enable',array(
		'default' => true,
		'sanitize_callback'	=> 'live_artist_sanitize_checkbox'
	));
	$wp_customize->add_control('live_artist_related_product_enable',array(
		'type' => 'checkbox',
		'label' => __('Check To Enable Related product','live-artist'),
		'section' => 'live_artist_woocommerce_page_settings',
	));

	$wp_customize->add_setting( 'live_artist_woo_product_img_border_radius', array(
        'default'              => '0',
        'transport'            => 'refresh',
        'sanitize_callback'    => 'live_artist_sanitize_integer'
    ) );
    $wp_customize->add_control(new Live_Artist_Slider_Custom_Control( $wp_customize, 'live_artist_woo_product_img_border_radius',array(
		'label'	=> esc_html__('Woo Product Img Border Radius','live-artist'),
		'section'=> 'live_artist_woocommerce_page_settings',
		'settings'=>'live_artist_woo_product_img_border_radius',
		'input_attrs' => array(
            'step'             => 1,
			'min'              => 0,
			'max'              => 100,
        ),
	)));
    // Add a setting for number of products per row
    $wp_customize->add_setting('live_artist_products_per_row', array(
	    'default'   => '4',
	    'transport' => 'refresh',
	    'sanitize_callback' => 'live_artist_sanitize_integer'  
    ));

   $wp_customize->add_control('live_artist_products_per_row', array(
	   'label'    => __('Products Per Row', 'live-artist'),
	   'section'  => 'live_artist_woocommerce_page_settings',
	   'settings' => 'live_artist_products_per_row',
	   'type'     => 'select',
	   'choices'  => array(
		      '2' => '2',
		'      3' => '3',
		      '4' => '4',
	  ),
   ) );

   // Add a setting for the number of products per page
   $wp_customize->add_setting('live_artist_products_per_page', array(
	'default'   => '9',
	'transport' => 'refresh',
	'sanitize_callback' => 'live_artist_sanitize_integer'
   ));

   $wp_customize->add_control('live_artist_products_per_page', array(
	  'label'    => __('Products Per Page', 'live-artist'),
	  'section'  => 'live_artist_woocommerce_page_settings',
	  'settings' => 'live_artist_products_per_page',
	  'type'     => 'number',
	  'input_attrs' => array(
		 'min'  => 1,
		 'step' => 1,
	 ),
   ));	

   $wp_customize->add_setting('live_artist_product_sale_position',array(
	'default' => 'Left',
	'sanitize_callback' => 'live_artist_sanitize_choices'
	));
	$wp_customize->add_control('live_artist_product_sale_position',array(
		'type' => 'radio',
		'label' => __('Product Sale Position','live-artist'),
		'section' => 'live_artist_woocommerce_page_settings',
		'choices' => array(
			'Left' => __('Left','live-artist'),
			'Right' => __('Right','live-artist'),
		),
	) );   

	//Theme Options
	$wp_customize->add_panel( 'live_artist_panel_area', array(
		'priority' => 10,
		'capability' => 'edit_theme_options',
		'title' => __( 'Theme Options Panel', 'live-artist' ),
	) );

	//Site Layout Section
	$wp_customize->add_section('live_artist_site_layoutsec',array(
		'title'	=> __('Manage Site Layout Section ','live-artist'),
		'description' => __('<p class="sec-title">Manage Site Layout Section</p>','live-artist'),
		'priority'	=> 1,
		'panel' => 'live_artist_panel_area',
	));

	$wp_customize->add_setting('live_artist_preloader',array(
		'default' => false,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
	));
	$wp_customize->add_control( 'live_artist_preloader', array(
	   'section'   => 'live_artist_site_layoutsec',
	   'label'	=> __('Check to Show preloader','live-artist'),
	   'type'      => 'checkbox'
 	));		

	$wp_customize->add_setting('live_artist_box_layout',array(
		'default' => false,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
	));
	$wp_customize->add_control( 'live_artist_box_layout', array(
	   'section'   => 'live_artist_site_layoutsec',
	   'label'	=> __('Check to Show Box Layout','live-artist'),
	   'type'      => 'checkbox'
 	));
	
	$wp_customize->add_setting( 'live_artist_site_layoutsec_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_site_layoutsec_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		   <a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_site_layoutsec'
	));

	//Global Color
	$wp_customize->add_section('live_artist_global_color', array(
		'title'    => __('Manage Global Color Section', 'live-artist'),
		'panel'    => 'live_artist_panel_area',
	));

	$wp_customize->add_setting('live_artist_first_color', array(
		'default'           => '#FE3766',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'live_artist_first_color', array(
		'label'    => __('Theme Color', 'live-artist'),
		'section'  => 'live_artist_global_color',
		'settings' => 'live_artist_first_color',
	)));

	$wp_customize->add_setting('live_artist_second_color', array(
		'default'           => '#8B3FFE',
		'sanitize_callback' => 'sanitize_hex_color',
	));
	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'live_artist_second_color', array(
		'label'    => __('Theme Color', 'live-artist'),
		'section'  => 'live_artist_global_color',
		'settings' => 'live_artist_second_color',
	)));

	$wp_customize->add_setting( 'live_artist_global_color_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_global_color_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		   <a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_global_color'
	));

	// Header Section
	$wp_customize->add_section('live_artist_topbar_section',array(
	    'title' => __('Manage Header Section','live-artist'),
	    'priority'  => null,
	    'panel' => 'live_artist_panel_area',
	));	

	// Sticky Header
	$wp_customize->add_setting( 'live_artist_sticky_header',array(
        'default' => false,
        'sanitize_callback' => 'live_artist_sanitize_checkbox',
		'capability' => 'edit_theme_options',
    ));
    $wp_customize->add_control( 'live_artist_sticky_header',array(
		'settings' => 'live_artist_sticky_header',
	    'section'   => 'live_artist_topbar_section',
        'label' => esc_html__( 'Sticky Header','live-artist' ),
        'type'      => 'checkbox'
    ));

	$wp_customize->add_setting('live_artist_cart_btn_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_cart_btn_link', array(
	   'settings' => 'live_artist_cart_btn_link',
	   'section'   => 'live_artist_topbar_section',
	   'label' => __('Cart Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('live_artist_header_btn_text',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_header_btn_text', array(
	   'settings' => 'live_artist_header_btn_text',
	   'section'   => 'live_artist_topbar_section',
	   'label' => __('Add Button Text', 'live-artist'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting('live_artist_header_btn_url',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_header_btn_url', array(
	   'settings' => 'live_artist_header_btn_url',
	   'section'   => 'live_artist_topbar_section',
	   'label' => __('Add Button URL', 'live-artist'),
	   'type'      => 'url'
	));

    // Menu Text Transform
    $wp_customize->add_setting( 'live_artist_menu_text_transform', array(
        'default'           => 'Capitalize',
		'transport' => 'refresh',
		'sanitize_callback' => 'live_artist_sanitize_choices'
    ));

    $wp_customize->add_control( 'live_artist_menu_text_transform', array(
        'label'    => __( 'Menu Text Transform', 'live-artist' ),
        'section'  => 'live_artist_topbar_section',
        'type'     => 'select',
        'choices'  => array(
			'None'       => __( 'None', 'live-artist' ),
            'Capitalize' => __( 'Capitalize', 'live-artist' ),
            'Uppercase'  => __( 'Uppercase', 'live-artist' ),
            'Lowercase'  => __( 'Lowercase', 'live-artist' ),
        ),
    ));

	$wp_customize->add_setting( 'live_artist_header_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_header_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		   <a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_topbar_section'
	));

    // Banner Section
	$wp_customize->add_section('live_artist_banner_section',array(
	    'title' => __('Manage Banner Section','live-artist'),
	    'priority'  => null,
	    'description'	=> __('<p class="sec-title">Manage Banner Section</p> Select Page from the Dropdowns for banner, Also use the given image dimension (320 x 410).','live-artist'),
	    'panel' => 'live_artist_panel_area',
	));	

	$wp_customize->add_setting('live_artist_banner',array(
		'default' => true,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_banner', array(
	   'settings' => 'live_artist_banner',
	   'section'   => 'live_artist_banner_section',
	   'label'     => __('Check To Enable This Section','live-artist'),
	   'type'      => 'checkbox'
	));

	// Page Dropdown
	$wp_customize->add_setting('live_artist_banner_pageboxes', array(
	    'default'           => '0',
	    'capability'        => 'edit_theme_options',
	    'sanitize_callback' => 'live_artist_sanitize_dropdown_pages',
	));
	$wp_customize->add_control('live_artist_banner_pageboxes', array(
	    'type'     => 'dropdown-pages',
	    'label'    => __('Select Page to display Banner', 'live-artist'),
	    'section'  => 'live_artist_banner_section',
	));

	// Small Title
	$wp_customize->add_setting('live_artist_banner_small_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('live_artist_banner_small_title', array(
	    'settings' => 'live_artist_banner_small_title',
	    'section'  => 'live_artist_banner_section',
	    'label'    => __('Add Banner Small Title', 'live-artist'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('live_artist_small_title_icon',array(
        'default'=> 'fa-solid fa-microphone-lines',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('live_artist_small_title_icon',array(
        'label' => __('Add Icon','live-artist'),
        'description' => __('Fontawesome Icon (e.g., fa-solid fa-graduation-cap)','live-artist'),
        'section'=> 'live_artist_banner_section',
        'type'=> 'text'
    ));

	// Button Text
	$wp_customize->add_setting('live_artist_button_text', array(
	    'default'           => 'Explore More',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('live_artist_button_text', array(
	    'settings' => 'live_artist_button_text',
	    'section'  => 'live_artist_banner_section',
	    'label'    => __('Add Banner Button Text', 'live-artist'),
	    'type'     => 'text',
	));

	// Button Link
	$wp_customize->add_setting('live_artist_button_link_banner', array(
	    'default'           => '',
	    'sanitize_callback' => 'esc_url_raw',
	));
	$wp_customize->add_control('live_artist_button_link_banner', array(
	    'label'    => __('Add Banner Button Link', 'live-artist'),
	    'section'  => 'live_artist_banner_section',
	    'type'     => 'url',
	));

	$wp_customize->add_setting('live_artist_banner_artist_name', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('live_artist_banner_artist_name', array(
	    'settings' => 'live_artist_banner_artist_name',
	    'section'  => 'live_artist_banner_section',
	    'label'    => __('Add Artist Name', 'live-artist'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('live_artist_banner_artist_field', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('live_artist_banner_artist_field', array(
	    'settings' => 'live_artist_banner_artist_field',
	    'section'  => 'live_artist_banner_section',
	    'label'    => __('Add Designation', 'live-artist'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('live_artist_show_hide_social_icons',array(
		'default' => true,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_show_hide_social_icons', array(
	   'settings' => 'live_artist_show_hide_social_icons',
	   'section'   => 'live_artist_banner_section',
	   'label'     => __('Check To Enable Social Icons','live-artist'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting('live_artist_facebook_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_facebook_link', array(
	   'settings' => 'live_artist_facebook_link',
	   'section'   => 'live_artist_banner_section',
	   'label' => __('Facebook Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('live_artist_instagram_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_instagram_link', array(
	   'settings' => 'live_artist_instagram_link',
	   'section'   => 'live_artist_banner_section',
	   'label' => __('Instagram Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('live_artist_pinterest_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_pinterest_link', array(
	   'settings' => 'live_artist_pinterest_link',
	   'section'   => 'live_artist_banner_section',
	   'label' => __('Pinterest Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('live_artist_twitter_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_twitter_link', array(
	   'settings' => 'live_artist_twitter_link',
	   'section'   => 'live_artist_banner_section',
	   'label' => __('Twitter Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('live_artist_dribbble_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_dribbble_link', array(
	   'settings' => 'live_artist_dribbble_link',
	   'section'   => 'live_artist_banner_section',
	   'label' => __('Dribbble Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('live_artist_youtube_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_youtube_link', array(
	   'settings' => 'live_artist_youtube_link',
	   'section'   => 'live_artist_banner_section',
	   'label' => __('Youtube Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting( 'live_artist_banner_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_banner_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		   <a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_banner_section'
	));

	// Album Section
	$wp_customize->add_section('live_artist_album_section', array(
	    'title'       => __('Manage Album Section', 'live-artist'),
	    'description' => __('<p class="sec-title">Manage Album Section</p>', 'live-artist'),
	    'priority'    => null,
	    'panel'       => 'live_artist_panel_area',
	));

	$wp_customize->add_setting('live_artist_disabled_album_section', array(
	    'default'           => true,
	    'sanitize_callback' => 'live_artist_sanitize_checkbox',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('live_artist_disabled_album_section', array(
	    'settings' => 'live_artist_disabled_album_section',
	    'section'  => 'live_artist_album_section',
	    'label'    => __('Check To Enable Section', 'live-artist'),
	    'type'     => 'checkbox',
	));

	$wp_customize->add_setting('live_artist_album_text_icon',array(
        'default'=> 'fa-solid fa-microphone-lines',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('live_artist_album_text_icon',array(
        'label' => __('Add Icon','live-artist'),
        'description' => __('Fontawesome Icon (e.g., fa-solid fa-graduation-cap)','live-artist'),
        'section'=> 'live_artist_album_section',
        'type'=> 'text'
    ));

	$wp_customize->add_setting('live_artist_album_text', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('live_artist_album_text', array(
	    'settings' => 'live_artist_album_text',
	    'section'  => 'live_artist_album_section',
	    'label'    => __('Add Section Text', 'live-artist'),
	    'type'     => 'text',
	));

	$wp_customize->add_setting('live_artist_album_title', array(
	    'default'           => '',
	    'sanitize_callback' => 'sanitize_text_field',
	    'capability'        => 'edit_theme_options',
	));
	$wp_customize->add_control('live_artist_album_title', array(
	    'settings' => 'live_artist_album_title',
	    'section'  => 'live_artist_album_section',
	    'label'    => __('Add Section Title', 'live-artist'),
	    'type'     => 'text',
	));

	$live_artist_categories = get_categories();
	$live_artist_cat_post = array();
	$live_artist_cat_post['0'] = 'Select';

	foreach ($live_artist_categories as $live_artist_category) {
	    $live_artist_cat_post[$live_artist_category->slug] = $live_artist_category->name;
	}

	$wp_customize->add_setting('live_artist_album_cat', array(
	    'default' => '0',
	    'sanitize_callback' => 'live_artist_sanitize_choices',
	));

	$wp_customize->add_control('live_artist_album_cat', array(
	    'type'    => 'select',
	    'choices' => $live_artist_cat_post,
	    'label'   => __('Select Category to display Latest Post', 'live-artist'),
	    'section' => 'live_artist_album_section',
	));

	$wp_customize->add_setting( 'live_artist_album_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_album_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		   <a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_album_section'
	));

	//Blog post
	$wp_customize->add_section('live_artist_blog_post_settings',array(
        'title' => __('Manage Post Section', 'live-artist'),
        'priority' => null,
        'panel' => 'live_artist_panel_area'
    ) );

	// Layouts Post
	$wp_customize->add_setting(
		'live_artist_blog_layout_option_setting',
		array(
			'default'           => 'Left',
			'sanitize_callback' => 'live_artist_sanitize_choices',
		)
	);

	$wp_customize->add_control(
		new Live_Artist_Image_Radio_Control(
			$wp_customize,
			'live_artist_blog_layout_option_setting',
			array(
				'label'   => __( 'Post Layouts', 'live-artist' ),
				'section' => 'live_artist_blog_post_settings',
				'choices' => array(
					'Left' => get_template_directory_uri() . '/images/layout-1.png',
					'Center'    => get_template_directory_uri() . '/images/layout-2.png',
					'Right'   => get_template_directory_uri() . '/images/layout-3.png',
				),
			)
		)
	);

	$wp_customize->add_setting('live_artist_metafields_date', array(
	    'default' => true,
	    'sanitize_callback' => 'live_artist_sanitize_checkbox',
	));
	$wp_customize->add_control('live_artist_metafields_date', array(
	    'settings' => 'live_artist_metafields_date', 
	    'section'   => 'live_artist_blog_post_settings',
	    'label'     => __('Check to Enable Date', 'live-artist'),
	    'type'      => 'checkbox',
	));

	$wp_customize->add_setting('live_artist_metafields_comments', array(
		'default' => true,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
	));	
	$wp_customize->add_control('live_artist_metafields_comments', array(
		'settings' => 'live_artist_metafields_comments',
		'section'  => 'live_artist_blog_post_settings',
		'label'    => __('Check to Enable Comments', 'live-artist'),
		'type'     => 'checkbox',
	));

	$wp_customize->add_setting('live_artist_metafields_author', array(
		'default' => true,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
	));
	$wp_customize->add_control('live_artist_metafields_author', array(
		'settings' => 'live_artist_metafields_author',
		'section'  => 'live_artist_blog_post_settings',
		'label'    => __('Check to Enable Author', 'live-artist'),
		'type'     => 'checkbox',
	));		

	$wp_customize->add_setting('live_artist_metafields_time', array(
		'default' => true,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
	));
	$wp_customize->add_control('live_artist_metafields_time', array(
		'settings' => 'live_artist_metafields_time',
		'section'  => 'live_artist_blog_post_settings',
		'label'    => __('Check to Enable Time', 'live-artist'),
		'type'     => 'checkbox',
	));	

	$wp_customize->add_setting('live_artist_metabox_seperator',array(
		'default' => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_metabox_seperator',array(
		'type' => 'text',
		'label' => __('Metabox Seperator','live-artist'),
		'description' => __('Ex: "/", "|", "-", ...','live-artist'),
		'section' => 'live_artist_blog_post_settings'
	)); 

    // Add Settings and Controls for Post Layout
	$wp_customize->add_setting('live_artist_sidebar_post_layout',array(
		'default' => 'right',
		'sanitize_callback' => 'live_artist_sanitize_choices'
	));
	$wp_customize->add_control('live_artist_sidebar_post_layout',array(
		'type' => 'radio',
		'label'     => __('Theme Post Sidebar Position', 'live-artist'),
		'description'   => __('This option work for blog page, archive page and search page.', 'live-artist'),
		'section' => 'live_artist_blog_post_settings',
		'choices' => array(
			'left' => __('Left','live-artist'),
			'right' => __('Right','live-artist'),
			'three-column' => __('Three Columns','live-artist'),
			'four-column' => __('Four Columns','live-artist'),
			'grid' => __('Grid Layout','live-artist'),
			'full' => __('No Sidebar','live-artist')
     ),
	) );

	$wp_customize->add_setting('live_artist_blog_post_description_option',array(
    	'default'   => 'Excerpt Content', 
        'sanitize_callback' => 'live_artist_sanitize_choices'
	));
	$wp_customize->add_control('live_artist_blog_post_description_option',array(
        'type' => 'radio',
        'label' => __('Post Description Length','live-artist'),
        'section' => 'live_artist_blog_post_settings',
        'choices' => array(
            'No Content' => __('No Content','live-artist'),
            'Excerpt Content' => __('Excerpt Content','live-artist'),
            'Full Content' => __('Full Content','live-artist'),
        ),
	) );

	$wp_customize->add_setting('live_artist_blog_post_thumb',array(
        'sanitize_callback' => 'live_artist_sanitize_checkbox',
        'default'           => 1,
    ));
    $wp_customize->add_control('live_artist_blog_post_thumb',array(
        'type'        => 'checkbox',
        'label'       => esc_html__('Show / Hide Blog Post Thumbnail', 'live-artist'),
        'section'     => 'live_artist_blog_post_settings',
    ));

	$wp_customize->add_setting( 'live_artist_blog_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_blog_post_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		   <a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_blog_post_settings'
	));

	//Single Post Settings
	$wp_customize->add_section('live_artist_single_post_settings',array(
		'title' => __('Manage Single Post Section', 'live-artist'),
		'priority' => null,
		'panel' => 'live_artist_panel_area'
	));

	$wp_customize->add_setting('live_artist_single_post_date',array(
		'default' => true,
		'sanitize_callback'	=> 'live_artist_sanitize_checkbox'
	));
	$wp_customize->add_control('live_artist_single_post_date',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Date ','live-artist'),
		'section' => 'live_artist_single_post_settings'
	));	

	$wp_customize->add_setting('live_artist_single_post_author',array(
		'default' => true,
		'sanitize_callback'	=> 'live_artist_sanitize_checkbox'
	));
	$wp_customize->add_control('live_artist_single_post_author',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Author','live-artist'),
		'section' => 'live_artist_single_post_settings'
	));

	$wp_customize->add_setting('live_artist_single_post_comment',array(
		'default' => true,
		'sanitize_callback'	=> 'live_artist_sanitize_checkbox'
	));
	$wp_customize->add_control('live_artist_single_post_comment',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Comments','live-artist'),
		'section' => 'live_artist_single_post_settings'
	));	

	$wp_customize->add_setting('live_artist_single_post_time',array(
		'default' => true,
		'sanitize_callback'	=> 'live_artist_sanitize_checkbox'
	));
	$wp_customize->add_control('live_artist_single_post_time',array(
		'type' => 'checkbox',
		'label' => __('Enable / Disable Time','live-artist'),
		'section' => 'live_artist_single_post_settings'
	));	

	$wp_customize->add_setting('live_artist_single_post_metabox_seperator',array(
		'default' => '|',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_single_post_metabox_seperator',array(
		'type' => 'text',
		'label' => __('Metabox Seperator','live-artist'),
		'description' => __('Ex: "/", "|", "-", ...','live-artist'),
		'section' => 'live_artist_single_post_settings'
	)); 

	$wp_customize->add_setting('live_artist_sidebar_single_post_layout',array(
    	'default' => 'right',
    	 'sanitize_callback' => 'live_artist_sanitize_choices'
	));
	$wp_customize->add_control('live_artist_sidebar_single_post_layout',array(
   		'type' => 'radio',
    	'label'     => __('Single post sidebar layout', 'live-artist'),
     	'section' => 'live_artist_single_post_settings',
     	'choices' => array(
			'left' => __('Left','live-artist'),
			'right' => __('Right','live-artist'),
			'full' => __('No Sidebar','live-artist')
     ),
	));

	$wp_customize->add_setting( 'live_artist_single_post_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_single_post_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		   <a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_single_post_settings'
	));

	//Page Settings
	$wp_customize->add_section('live_artist_page_settings',array(
		'title' => __('Manage Page Section', 'live-artist'),
		'priority' => null,
		'panel' => 'live_artist_panel_area'
	));

	// Add Settings and Controls for Page Layout
	$wp_customize->add_setting('live_artist_sidebar_page_layout',array(
		'default' => 'full',
			'sanitize_callback' => 'live_artist_sanitize_choices'
	));
	$wp_customize->add_control('live_artist_sidebar_page_layout',array(
		'type' => 'radio',
		'label'     => __('Theme Page Sidebar Position', 'live-artist'),
		'section' => 'live_artist_page_settings',
		'choices' => array(
			'left' => __('Left','live-artist'),
			'right' => __('Right','live-artist'),
			'full' => __('No Sidebar','live-artist')
		),
	));	

	$wp_customize->add_setting( 'live_artist_page_layout_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_page_layout_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		<a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_page_settings'
	));

	// 404 Page Settings
	$wp_customize->add_section('live_artist_page_not_found', array(
		'title'	=> __('Manage 404 Page Section','live-artist'),
		'priority'	=> null,
		'panel' => 'live_artist_panel_area',
	));
	
	$wp_customize->add_setting('live_artist_page_not_found_heading',array(
		'default'=> __('404 Not Found','live-artist'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_page_not_found_heading',array(
		'label'	=> __('404 Heading','live-artist'),
		'section'=> 'live_artist_page_not_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('live_artist_page_not_found_content',array(
		'default'=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));

	$wp_customize->add_control('live_artist_page_not_found_content',array(
		'label'	=> __('404 Text','live-artist'),
		'input_attrs' => array(
			'placeholder' => __( 'Looks like you have taken a wrong turn.....Don\'t worry... it happens to the best of us.', 'live-artist' ),
		),
		'section'=> 'live_artist_page_not_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('live_artist_page_not_found_btn',array(
		'default' => 'Homepage',
		'sanitize_callback' => 'sanitize_text_field',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_page_not_found_btn', array(
	   'settings' => 'live_artist_page_not_found_btn',
	   'section'   => 'live_artist_page_not_found',
	   'label' => __('404 Button', 'live-artist'),
	   'type'      => 'text'
	));

	$wp_customize->add_setting( 'live_artist_page_not_found_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_page_not_found_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
			<a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_page_not_found'
	));

	// No Results Page Settings
	$wp_customize->add_section('live_artist_no_results_found', array(
		'title'	=> __('Manage No Results Page Section','live-artist'),
		'priority'	=> null,
		'panel' => 'live_artist_panel_area',
	));
	
	$wp_customize->add_setting('live_artist_page_nothing_found_heading',array(
		'default'=> __('Nothing Found','live-artist'),
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_page_nothing_found_heading',array(
		'label'	=> __('Add Title','live-artist'),
		'section'=> 'live_artist_no_results_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('live_artist_nothing_found_content',array(
		'default'=> 'Sorry, but nothing matched your search terms. Please try again with some different keywords.',
		'sanitize_callback'	=> 'sanitize_text_field'
	));

	$wp_customize->add_control('live_artist_nothing_found_content',array(
		'label'	=> __('Add Text','live-artist'),
		'section'=> 'live_artist_no_results_found',
		'type'=> 'text'
	));

	$wp_customize->add_setting('live_artist_nothing_found_search',array(
		'default' => true,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_nothing_found_search', array(
	   'settings' => 'live_artist_nothing_found_search',
	   'section'   => 'live_artist_no_results_found',
	   'label'     => __('Check To Enable Search','live-artist'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting( 'live_artist_no_results_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_no_results_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		<a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_no_results_found'
	));

	// Animation Section
	$wp_customize->add_section('live_artist_animation', array(
		'title'	=> __('Manage Animation Section','live-artist'),
		'description'	=> __('<p class="sec-title">Manage Animation Section</p>','live-artist'),
		'priority'	=> null,
		'panel' => 'live_artist_panel_area',
	));

	$wp_customize->add_setting('live_artist_animation_enabled',array(
		'default' => true,
		'sanitize_callback' => 'live_artist_sanitize_checkbox',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_animation_enabled', array(
	   'settings' => 'live_artist_animation_enabled',
	   'section'   => 'live_artist_animation',
	   'label'     => __('Check To Enable Animation','live-artist'),
	   'type'      => 'checkbox'
	));

	$wp_customize->add_setting( 'live_artist_animation_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_animation_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		<a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_animation'
	));

	// Footer Section
	$wp_customize->add_section('live_artist_footer', array(
		'title'	=> __('Manage Footer Section','live-artist'),
		'description'	=> __('<p class="sec-title">Manage Footer Section</p>','live-artist'),
		'priority'	=> null,
		'panel' => 'live_artist_panel_area',
	));

	$wp_customize->add_setting('live_artist_footer_widget', array(
	    'default' => true,
	    'sanitize_callback' => 'live_artist_sanitize_checkbox',
	));
	$wp_customize->add_control('live_artist_footer_widget', array(
	    'settings' => 'live_artist_footer_widget',
	    'section'   => 'live_artist_footer',
	    'label'     => __('Check to Enable Footer Widget', 'live-artist'),
	    'type'      => 'checkbox',
	));

	//  footer bg color
	$wp_customize->add_setting('live_artist_footerbg_color',array(
		'default' => '',
		'sanitize_callback' => 'live_artist_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_footerbg_color', array(
		'settings' => 'live_artist_footerbg_color',
		'section'   => 'live_artist_footer',
		'label' => __('Footer Background Color', 'live-artist'),
		'type'      => 'color'
	));

	$wp_customize->add_setting('live_artist_footer_bg_image',array(
        'default'   => '',
        'sanitize_callback' => 'esc_url_raw',
    ));
    $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'live_artist_footer_bg_image',array(
        'label' => __('Footer Background Image','live-artist'),
        'section' => 'live_artist_footer',
    )));

	$wp_customize->add_setting('live_artist_footer_img_position',array(
		'default' => 'center center',
		'transport' => 'refresh',
		'sanitize_callback' => 'live_artist_sanitize_choices'
	));
	$wp_customize->add_control('live_artist_footer_img_position',array(
		'type' => 'select',
		'label' => __('Footer Image Position','live-artist'),
		'section' => 'live_artist_footer',
		'choices' 	=> array(
			'center center'   => esc_html__( 'Center', 'live-artist' ),
			'center top'   => esc_html__( 'Top', 'live-artist' ),
			'left center'   => esc_html__( 'Left', 'live-artist' ),
			'right center'   => esc_html__( 'Right', 'live-artist' ),
			'center bottom'   => esc_html__( 'Bottom', 'live-artist' ),
		),
	));	

	$wp_customize->add_setting('live_artist_footer_widget_areas',array(
		'default'           => 4,
		'sanitize_callback' => 'live_artist_sanitize_choices',
	));
	$wp_customize->add_control('live_artist_footer_widget_areas',array(
		'type'        => 'radio',
		'section' => 'live_artist_footer',
		'label'       => __('Footer widget area', 'live-artist'),
		'choices' => array(
		   '1'     => __('One', 'live-artist'),
		   '2'     => __('Two', 'live-artist'),
		   '3'     => __('Three', 'live-artist'),
		   '4'     => __('Four', 'live-artist')
		),
	));

	$wp_customize->add_setting('live_artist_copyright_line',array(
		'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'live_artist_copyright_line', array(
	   'section' 	=> 'live_artist_footer',
	   'label'	 	=> __('Copyright Line','live-artist'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

	$wp_customize->add_setting('live_artist_copyright_link',array(
    	'default' => '',
		'sanitize_callback' => 'sanitize_text_field',
	));
	$wp_customize->add_control( 'live_artist_copyright_link', array(
	   'section' 	=> 'live_artist_footer',
	   'label'	 	=> __('Copyright Link','live-artist'),
	   'type'    	=> 'text',
	   'priority' 	=> null,
    ));

	//  footer title color
	$wp_customize->add_setting('live_artist_footertitle_color',array(
		'default' => '',
		'sanitize_callback' => 'live_artist_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_footertitle_color', array(
	   'settings' => 'live_artist_footertitle_color',
	   'section'   => 'live_artist_footer',
	   'label' => __('Title Color', 'live-artist'),
	   'type'      => 'color'
	));

	//  footer list color
	$wp_customize->add_setting('live_artist_footerlist_color',array(
		'default' => '',
		'sanitize_callback' => 'live_artist_sanitize_hex_color',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_footerlist_color', array(
	   'settings' => 'live_artist_footerlist_color',
	   'section'   => 'live_artist_footer',
	   'label' => __('List Color', 'live-artist'),
	   'type'      => 'color'
	));

	$wp_customize->add_setting('live_artist_scroll_hide', array(
        'default' => true,
        'sanitize_callback' => 'live_artist_sanitize_checkbox'
    ));
    $wp_customize->add_control( new WP_Customize_Control($wp_customize,'live_artist_scroll_hide',array(
        'label'          => __( 'Check To Show Scroll To Top', 'live-artist' ),
        'section'        => 'live_artist_footer',
        'settings'       => 'live_artist_scroll_hide',
        'type'           => 'checkbox',
    )));

	$wp_customize->add_setting('live_artist_scroll_position',array(
        'default' => 'Right',
        'sanitize_callback' => 'live_artist_sanitize_choices'
    ));
    $wp_customize->add_control('live_artist_scroll_position',array(
        'type' => 'radio',
        'section' => 'live_artist_footer',
        'label'	 	=> __('Scroll To Top Positions','live-artist'),
        'choices' => array(
            'Right' => __('Right','live-artist'),
            'Left' => __('Left','live-artist'),
            'Center' => __('Center','live-artist')
        ),
    ) );

	$wp_customize->add_setting('live_artist_scroll_text',array(
		'default'	=> __('TOP','live-artist'),
		'sanitize_callback'	=> 'sanitize_text_field',
	));	
	$wp_customize->add_control('live_artist_scroll_text',array(
		'label'	=> __('Scroll To Top Button Text','live-artist'),
		'section'	=> 'live_artist_footer',
		'type'		=> 'text'
	));

	$wp_customize->add_setting( 'live_artist_scroll_top_shape', array(
		'default'           => 'circle',
		'sanitize_callback' => 'sanitize_text_field',
	) );
	
	$wp_customize->add_control( 'live_artist_scroll_top_shape', array(
		'label'    => __( 'Scroll to Top Button Shape', 'live-artist' ),
		'section'  => 'live_artist_footer',
		'settings' => 'live_artist_scroll_top_shape',
		'type'     => 'radio',
		'choices'  => array(
			'box'        => __( 'Box', 'live-artist' ),
			'curved' => __( 'Curved', 'live-artist'),
			'circle'     => __( 'Circle', 'live-artist' ),
		),
	) );

	$wp_customize->add_setting( 'live_artist_footer_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_footer_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		   <a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_footer'
	));

	// Footer Social Section
	$wp_customize->add_section('live_artist_footer_social_icons', array(
		'title'	=> __('Manage Footer Social Section','live-artist'),
		'description'	=> __('<p class="sec-title">Manage Footer Social Section</p>','live-artist'),
		'priority'	=> null,
		'panel' => 'live_artist_panel_area',
	));

	$wp_customize->add_setting('live_artist_footer_facebook_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_footer_facebook_link', array(
	   'settings' => 'live_artist_footer_facebook_link',
	   'section'   => 'live_artist_footer_social_icons',
	   'label' => __('Facebook Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('live_artist_footer_instagram_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_footer_instagram_link', array(
	   'settings' => 'live_artist_footer_instagram_link',
	   'section'   => 'live_artist_footer_social_icons',
	   'label' => __('Instagram Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('live_artist_footer_pinterest_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_footer_pinterest_link', array(
	   'settings' => 'live_artist_footer_pinterest_link',
	   'section'   => 'live_artist_footer_social_icons',
	   'label' => __('Pinterest Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('live_artist_footer_twitter_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_footer_twitter_link', array(
	   'settings' => 'live_artist_footer_twitter_link',
	   'section'   => 'live_artist_footer_social_icons',
	   'label' => __('Twitter Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('live_artist_footer_dribbble_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_footer_dribbble_link', array(
	   'settings' => 'live_artist_footer_dribbble_link',
	   'section'   => 'live_artist_footer_social_icons',
	   'label' => __('Dribbble Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting('live_artist_footer_youtube_link',array(
		'default' => '',
		'sanitize_callback' => 'esc_url_raw',
		'capability' => 'edit_theme_options',
	));
	$wp_customize->add_control( 'live_artist_footer_youtube_link', array(
	   'settings' => 'live_artist_footer_youtube_link',
	   'section'   => 'live_artist_footer_social_icons',
	   'label' => __('Youtube Link', 'live-artist'),
	   'type'      => 'url'
	));

	$wp_customize->add_setting( 'live_artist_footer_social_settings_upgraded_features',array(
		'sanitize_callback' => 'sanitize_text_field'
	));
	$wp_customize->add_control('live_artist_footer_social_settings_upgraded_features', array(
		'type'=> 'hidden',
		'description' => "<span class='customizer-upgraded-features'>Unlock Premium Customization Features:
		   <a target='_blank' href='". esc_url(LIVE_ARTIST_PREMIUM_PAGE) ." '>Upgrade to Pro</a></span>",
		'section' => 'live_artist_footer_social_icons'
	));
    
	// Google Fonts
	$wp_customize->add_section( 'live_artist_google_fonts_section', array(
		'title'       => __( 'Google Fonts', 'live-artist' ),
		'priority'    => 24,
	) );

	$font_choices = array(
		'' => 'No Fonts',
		'Kaushan Script:' => 'Kaushan Script',
		'Emilys Candy:' => 'Emilys Candy',
		'Poppins:0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900' => 'Poppins',
		'Source Sans Pro:400,700,400italic,700italic' => 'Source Sans Pro',
		'Open Sans:400italic,700italic,400,700' => 'Open Sans',
		'Oswald:400,700' => 'Oswald',
		'Playfair Display:400,700,400italic' => 'Playfair Display',
		'Montserrat:400,700' => 'Montserrat',
		'Raleway:400,700' => 'Raleway',
		'Droid Sans:400,700' => 'Droid Sans',
		'Lato:400,700,400italic,700italic' => 'Lato',
		'Arvo:400,700,400italic,700italic' => 'Arvo',
		'Lora:400,700,400italic,700italic' => 'Lora',
		'Merriweather:400,300italic,300,400italic,700,700italic' => 'Merriweather',
		'Oxygen:400,300,700' => 'Oxygen',
		'PT Serif:400,700' => 'PT Serif',
		'PT Sans:400,700,400italic,700italic' => 'PT Sans',
		'PT Sans Narrow:400,700' => 'PT Sans Narrow',
		'Cabin:400,700,400italic' => 'Cabin',
		'Fjalla One:400' => 'Fjalla One',
		'Francois One:400' => 'Francois One',
		'Josefin Sans:400,300,600,700' => 'Josefin Sans',
		'Libre Baskerville:400,400italic,700' => 'Libre Baskerville',
		'Arimo:400,700,400italic,700italic' => 'Arimo',
		'Ubuntu:400,700,400italic,700italic' => 'Ubuntu',
		'Bitter:400,700,400italic' => 'Bitter',
		'Droid Serif:400,700,400italic,700italic' => 'Droid Serif',
		'Roboto:400,400italic,700,700italic' => 'Roboto',
		'Open Sans Condensed:700,300italic,300' => 'Open Sans Condensed',
		'Roboto Condensed:400italic,700italic,400,700' => 'Roboto Condensed',
		'Roboto Slab:400,700' => 'Roboto Slab',
		'Yanone Kaffeesatz:400,700' => 'Yanone Kaffeesatz',
		'Rokkitt:400' => 'Rokkitt',
	);

	$wp_customize->add_setting( 'live_artist_headings_fonts', array(
		'sanitize_callback' => 'live_artist_sanitize_fonts',
	));
	$wp_customize->add_control( 'live_artist_headings_fonts', array(
		'type' => 'select',
		'description' => __('Select your desired font for the headings.', 'live-artist'),
		'section' => 'live_artist_google_fonts_section',
		'choices' => $font_choices
	));

	$wp_customize->add_setting( 'live_artist_body_fonts', array(
		'sanitize_callback' => 'live_artist_sanitize_fonts'
	));
	$wp_customize->add_control( 'live_artist_body_fonts', array(
		'type' => 'select',
		'description' => __( 'Select your desired font for the body.', 'live-artist' ),
		'section' => 'live_artist_google_fonts_section',
		'choices' => $font_choices
	));

	$wp_customize->add_setting( 'live_artist_sub_title_fonts', array(
		'sanitize_callback' => 'live_artist_sanitize_fonts'
	));
	$wp_customize->add_control( 'live_artist_sub_title_fonts', array(
		'type' => 'select',
		'description' => __( 'Select your desired font for the Sub-Title.', 'live-artist' ),
		'section' => 'live_artist_google_fonts_section',
		'choices' => $font_choices
	));
  
}
add_action( 'customize_register', 'live_artist_customize_register' );

/**
 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
 */
function live_artist_customize_preview_js() {
	wp_enqueue_script( 'live_artist_customizer', esc_url(get_template_directory_uri()) . '/js/customize-preview.js', array( 'customize-preview' ), '20161510', true );
}
add_action( 'customize_preview_init', 'live_artist_customize_preview_js' );
