HEX
Server: LiteSpeed
System: Linux premium260.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: aliazzsr (627)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/themes/retail-hardware-store/inc/customizer.php
<?php
/**
 * Retail Hardware Store: Customizer
 *
 * @subpackage Retail Hardware Store
 * @since 1.0
 */

use WPTRT\Customize\Section\Luzuk_Retail_Hardware_Store_Button;

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

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

	$manager->add_section(
		new Luzuk_Retail_Hardware_Store_Button( $manager, 'luzuk_retail_hardware_store_pro', [
			'title' => __( 'Retail Hardware Store Pro', 'retail-hardware-store' ),
			'priority' => 0,
			'button_text' => __( 'Go Pro', 'retail-hardware-store' ),
			'button_url'  => esc_url( 'https://www.luzuk.com/product/hardware-shop-wordpress-theme/', 'retail-hardware-store')
		] )
	);

} );

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

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

	wp_enqueue_script(
		'retail-hardware-store-customize-section-button',
		get_theme_file_uri( 'vendor/wptrt/customize-section-button/public/js/customize-controls.js' ),
		[ 'customize-controls' ],
		$version,
		true
	);

	wp_enqueue_style(
		'retail-hardware-store-customize-section-button',
		get_theme_file_uri( 'vendor/wptrt/customize-section-button/public/css/customize-controls.css' ),
		[ 'customize-controls' ],
 		$version
	);

} );

function luzuk_retail_hardware_store_customize_register( $wp_customize ) {

	$wp_customize->add_setting('luzuk_retail_hardware_store_logo_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_logo_padding',array(
		'label' => __('Logo Margin','retail-hardware-store'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('luzuk_retail_hardware_store_logo_top_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'luzuk_retail_hardware_store_sanitize_float'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_logo_top_padding',array(
		'type' => 'number',
		'description' => __('Top','retail-hardware-store'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('luzuk_retail_hardware_store_logo_bottom_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'luzuk_retail_hardware_store_sanitize_float'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_logo_bottom_padding',array(
		'type' => 'number',
		'description' => __('Bottom','retail-hardware-store'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('luzuk_retail_hardware_store_logo_left_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'luzuk_retail_hardware_store_sanitize_float'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_logo_left_padding',array(
		'type' => 'number',
		'description' => __('Left','retail-hardware-store'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('luzuk_retail_hardware_store_logo_right_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'luzuk_retail_hardware_store_sanitize_float'
 	));
 	$wp_customize->add_control('luzuk_retail_hardware_store_logo_right_padding',array(
		'type' => 'number',
		'description' => __('Right','retail-hardware-store'),
		'section' => 'title_tagline',
    ));

	$wp_customize->add_setting('luzuk_retail_hardware_store_show_site_title',array(
		'default' => true,
		'sanitize_callback'	=> 'luzuk_retail_hardware_store_sanitize_checkbox'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_show_site_title',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Title','retail-hardware-store'),
		'section' => 'title_tagline'
	));

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

	$wp_customize->add_setting('luzuk_retail_hardware_store_show_tagline',array(
		'default' => true,
		'sanitize_callback'	=> 'luzuk_retail_hardware_store_sanitize_checkbox'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_show_tagline',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Tagline','retail-hardware-store'),
		'section' => 'title_tagline'
	));

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

	$wp_customize->add_panel( 'luzuk_retail_hardware_store_panel_id', array(
		'priority' => 10,
		'capability' => 'edit_theme_options',
		'theme_supports' => '',
		'title' => __( 'Theme Settings', 'retail-hardware-store' ),
		'description' => __( 'Description of what this panel does.', 'retail-hardware-store' ),
	) );

	$wp_customize->add_section( 'luzuk_retail_hardware_store_theme_options_section', array(
    	'title'      => __( 'General Settings', 'retail-hardware-store' ),
		'priority'   => 30,
		'panel' => 'luzuk_retail_hardware_store_panel_id'
	) );

	$wp_customize->add_setting('luzuk_retail_hardware_store_theme_options',array(
		'default' => 'One Column',
		'sanitize_callback' => 'luzuk_retail_hardware_store_sanitize_choices'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_theme_options',array(
		'type' => 'select',
		'label' => __('Blog Page Sidebar Layout','retail-hardware-store'),
		'section' => 'luzuk_retail_hardware_store_theme_options_section',
		'choices' => array(
		   'Left Sidebar' => __('Left Sidebar','retail-hardware-store'),
		   'Right Sidebar' => __('Right Sidebar','retail-hardware-store'),
		   'One Column' => __('One Column','retail-hardware-store'),
		   'Grid Layout' => __('Grid Layout','retail-hardware-store')
		),
	));

	$wp_customize->add_setting('luzuk_retail_hardware_store_single_post_sidebar',array(
		'default' => 'Right Sidebar',
		'sanitize_callback' => 'luzuk_retail_hardware_store_sanitize_choices'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_single_post_sidebar',array(
        'type' => 'select',
        'label' => __('Single Post Sidebar Layout','retail-hardware-store'),
        'section' => 'luzuk_retail_hardware_store_theme_options_section',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','retail-hardware-store'),
            'Right Sidebar' => __('Right Sidebar','retail-hardware-store'),
            'One Column' => __('One Column','retail-hardware-store')
        ),
	));

	$wp_customize->add_setting('luzuk_retail_hardware_store_page_sidebar',array(
		'default' => 'One Column',
		'sanitize_callback' => 'luzuk_retail_hardware_store_sanitize_choices'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_page_sidebar',array(
        'type' => 'select',
        'label' => __('Page Sidebar Layout','retail-hardware-store'),
        'section' => 'luzuk_retail_hardware_store_theme_options_section',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','retail-hardware-store'),
            'Right Sidebar' => __('Right Sidebar','retail-hardware-store'),
            'One Column' => __('One Column','retail-hardware-store')
        ),
	));

	$wp_customize->add_setting('luzuk_retail_hardware_store_archive_page_sidebar',array(
		'default' => 'One Column',
		'sanitize_callback' => 'luzuk_retail_hardware_store_sanitize_choices'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_archive_page_sidebar',array(
        'type' => 'select',
        'label' => __('Archive & Search Page Sidebar Layout','retail-hardware-store'),
        'section' => 'luzuk_retail_hardware_store_theme_options_section',
        'choices' => array(
            'Left Sidebar' => __('Left Sidebar','retail-hardware-store'),
            'Right Sidebar' => __('Right Sidebar','retail-hardware-store'),
            'One Column' => __('One Column','retail-hardware-store'),
            'Grid Layout' => __('Grid Layout','retail-hardware-store')
        ),
	));
 
	//Header
	$wp_customize->add_section( 'luzuk_retail_hardware_store_header' , array(
    	'title'    => __( 'Header Settings', 'retail-hardware-store' ),
		'priority' => null,
		'panel' => 'luzuk_retail_hardware_store_panel_id'
	) );
	

	$wp_customize->add_setting('luzuk_retail_hardware_store_header_anouncementbar_text',array(
		'default' => '',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_header_anouncementbar_text',array(
	   	'type' => 'text',
	   	'label' => __('Announcement Bar Text','retail-hardware-store'),
	   	'section' => 'luzuk_retail_hardware_store_header',
	));
	

	$wp_customize->add_setting('luzuk_retail_hardware_store_header_facebookiconlink',array(
    	'default' => '',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_header_facebookiconlink',array(
	   	'type' => 'text',
	   	'label' => __('Facebook Icon Link','retail-hardware-store'),
	   	'section' => 'luzuk_retail_hardware_store_header',
	));


	$wp_customize->add_setting('luzuk_retail_hardware_store_header_instagramiconlink',array(
    	'default' => '',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_header_instagramiconlink',array(
	   	'type' => 'text',
	   	'label' => __('Instagram Icon Link','retail-hardware-store'),
	   	'section' => 'luzuk_retail_hardware_store_header',
	));

	
	$wp_customize->add_setting('luzuk_retail_hardware_store_header_twittericonlink',array(
    	'default' => '',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_header_twittericonlink',array(
	   	'type' => 'text',
	   	'label' => __('Twitter Icon Link','retail-hardware-store'),
	   	'section' => 'luzuk_retail_hardware_store_header',
	));

	$wp_customize->add_setting('luzuk_retail_hardware_store_header_pinteresticonlink',array(
    	'default' => '',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_header_pinteresticonlink',array(
	   	'type' => 'text',
	   	'label' => __('Pinterest Icon Link','retail-hardware-store'),
	   	'section' => 'luzuk_retail_hardware_store_header',
	));


	$wp_customize->add_setting( 'luzuk_retail_hardware_store_headerannouncementbaricontext_col', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_retail_hardware_store_headerannouncementbaricontext_col', array(
		'label' => 'Announcement Bar Icon & Text Color',
		'section' => 'luzuk_retail_hardware_store_header',
	)));

	$wp_customize->add_setting( 'luzuk_retail_hardware_store_headerannouncementbaricontextbg_col', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_retail_hardware_store_headerannouncementbaricontextbg_col', array(
		'label' => 'Announcement Bar BG Color',
		'section' => 'luzuk_retail_hardware_store_header',
	)));

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

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

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

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


	$wp_customize->add_setting( 'luzuk_retail_hardware_store_searchicon_col', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_retail_hardware_store_searchicon_col', array(
		'label' => 'Search bar Icon & Text Color',
		'section' => 'luzuk_retail_hardware_store_header',
	)));

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

	$wp_customize->add_setting( 'luzuk_retail_hardware_store_headeraccicon_col', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_retail_hardware_store_headeraccicon_col', array(
		'label' => 'Accounts Icon Color',
		'section' => 'luzuk_retail_hardware_store_header',
	)));


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


	$wp_customize->add_setting( 'luzuk_retail_hardware_store_headercarticon_col', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_retail_hardware_store_headercarticon_col', array(
		'label' => 'Cart Icon Color',
		'section' => 'luzuk_retail_hardware_store_header',
	)));

	$wp_customize->add_setting( 'luzuk_retail_hardware_store_headeracccartbtnbg_col', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_retail_hardware_store_headeracccartbtnbg_col', array(
		'label' => 'Account & Cart BG Color',
		'section' => 'luzuk_retail_hardware_store_header',
	)));

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

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


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

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



	//home page slider
	$wp_customize->add_section( 'luzuk_retail_hardware_store_slider_section' , array(
    	'title'    => __( 'Slider Settings', 'retail-hardware-store' ),
		'description'=> __('<b>Note :</b> Please Add Image in 750*700 Ratio.','retail-hardware-store'),
		'priority' => null,
		'panel' => 'luzuk_retail_hardware_store_panel_id'
	) );

	$wp_customize->add_setting('luzuk_retail_hardware_store_slider_hide_show',array(
    	'default' => false,
    	'sanitize_callback'	=> 'luzuk_retail_hardware_store_sanitize_checkbox'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_slider_hide_show',array(
	   	'type' => 'checkbox',
	   	'label' => __('Show / Hide Slider','retail-hardware-store'),
	   	'section' => 'luzuk_retail_hardware_store_slider_section',
	));

	for ( $count = 1; $count <= 4; $count++ ) {
		$wp_customize->add_setting( 'luzuk_retail_hardware_store_slider' . $count, array(
			'default'           => '',
			'sanitize_callback' => 'luzuk_retail_hardware_store_sanitize_dropdown_pages'
		));
		$wp_customize->add_control( 'luzuk_retail_hardware_store_slider' . $count, array(
			'label' => __('Select Slider Image Page', 'retail-hardware-store' ),
			'section' => 'luzuk_retail_hardware_store_slider_section',
			'type' => 'dropdown-pages'
		));
	}

	$wp_customize->add_setting('luzuk_retail_hardware_store_slider_excerpt_length',array(
		'default' => '15',
		'sanitize_callback'	=> 'luzuk_retail_hardware_store_sanitize_float'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_slider_excerpt_length',array(
		'type' => 'number',
		'label' => __('Description Excerpt Length','retail-hardware-store'),
		'section' => 'luzuk_retail_hardware_store_slider_section',
	));

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

	$wp_customize->add_control('luzuk_retail_hardware_store_sliderbtnlink',array(
	   	'type' => 'url',
	   	'label' => __('Button Link','retail-hardware-store'),
	   	'section' => 'luzuk_retail_hardware_store_slider_section',
	));

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

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

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

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

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

	$wp_customize->add_setting( 'luzuk_retail_hardware_store_slider_btnicon_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_retail_hardware_store_slider_btnicon_color', array(
		'label' => 'Button Icon Color',
		'section' => 'luzuk_retail_hardware_store_slider_section',
	)));

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


	// categories Section
	$wp_customize->add_section('luzuk_retail_hardware_store_categories_section',array(
		'title'	=> __('Categories Settings','retail-hardware-store'),
		'description'=> __('<b>Note :</b> This section will appear below the Slider.','retail-hardware-store'),
		'panel' => 'luzuk_retail_hardware_store_panel_id',
	));

	$wp_customize->add_setting('luzuk_retail_hardware_store_productcategory_heading',array(
    	'default' => '',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_productcategory_heading',array(
	   	'type' => 'text',
	   	'label' => __('Heading','retail-hardware-store'),
	   	'section' => 'luzuk_retail_hardware_store_categories_section',
	));

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

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



	// newarrivalproduct Section
	$wp_customize->add_section('luzuk_retail_hardware_store_newarrivalproduct_section',array(
		'title'	=> __('New Arrival Products Settings','retail-hardware-store'),
		'description'=> __('<b>Note :</b> This section will appear below the Categories.','retail-hardware-store'),
		'panel' => 'luzuk_retail_hardware_store_panel_id',
	));

	$wp_customize->add_setting('luzuk_retail_hardware_store_newarrivalproducts_heading',array(
    	'default' => '',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_newarrivalproducts_heading',array(
	   	'type' => 'text',
	   	'label' => __('Heading','retail-hardware-store'),
	   	'section' => 'luzuk_retail_hardware_store_newarrivalproduct_section',
	));

	$wp_customize->add_setting(
    	'luzuk_retail_hardware_store_newproduct_leftimage',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'luzuk_retail_hardware_store_newproduct_leftimage',
	        array(
			    'label'   		=> __('Left Image','retail-hardware-store'),
				'description'   		=> __('Image size 322*491','retail-hardware-store'),
	            'section' => 'luzuk_retail_hardware_store_newarrivalproduct_section',
	            'settings' => 'luzuk_retail_hardware_store_newproduct_leftimage',
	        )
	    )
	);

	$wp_customize->add_setting('luzuk_retail_hardware_store_newarrivalproducts_leftimg_heading',array(
    	'default' => '',
    	'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('luzuk_retail_hardware_store_newarrivalproducts_leftimg_heading',array(
	   	'type' => 'text',
	   	'label' => __('Image Heading','retail-hardware-store'),
	   	'section' => 'luzuk_retail_hardware_store_newarrivalproduct_section',
	));

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

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

	$wp_customize->add_setting( 'luzuk_retail_hardware_store_newarrivalproductprice_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_retail_hardware_store_newarrivalproductprice_color', array(
		'label' => 'Price Color',
		'section' => 'luzuk_retail_hardware_store_newarrivalproduct_section',
	)));

	$wp_customize->add_setting( 'luzuk_retail_hardware_store_newarrivalproducttitlepricebg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'luzuk_retail_hardware_store_newarrivalproducttitlepricebg_color', array(
		'label' => 'Title Price BG Color',
		'section' => 'luzuk_retail_hardware_store_newarrivalproduct_section',
	)));

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



	//Footer
    $wp_customize->add_section( 'luzuk_retail_hardware_store_footer', array(
    	'title'  => __( 'Footer Settings', 'retail-hardware-store' ),
		'priority' => null,
		'panel' => 'luzuk_retail_hardware_store_panel_id'
	) );

	$wp_customize->add_setting('luzuk_retail_hardware_store_show_back_totop',array(
       'default' => true,
       'sanitize_callback'	=> 'luzuk_retail_hardware_store_sanitize_checkbox'
    ));
    $wp_customize->add_control('luzuk_retail_hardware_store_show_back_totop',array(
       'type' => 'checkbox',
       'label' => __('Show / Hide Back to Top','retail-hardware-store'),
       'section' => 'luzuk_retail_hardware_store_footer'
    ));

    $wp_customize->add_setting('luzuk_retail_hardware_store_footer_copy',array(
		'default' => 'Retail Hardware Store WordPress Theme By Luzuk',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('luzuk_retail_hardware_store_footer_copy',array(
		'label'	=> __('Copyright Text','retail-hardware-store'),
		'section' => 'luzuk_retail_hardware_store_footer',
		'setting' => 'luzuk_retail_hardware_store_footer_copy',
		'type' => 'text'
	));

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

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

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

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

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

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

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

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

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

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

if (class_exists('WP_Customize_Control')) {

   	class Luzuk_Retail_Hardware_Store_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="retail-hardware-store-selected-icon">
	                <i class="fa <?php echo esc_attr($this->value()); ?>"></i>
	                <span><i class="fa fa-angle-down"></i></span>
	            </div>

	            <ul class="retail-hardware-store-icon-list clearfix">
	                <?php
	                $luzuk_retail_hardware_store_font_awesome_icon_array = luzuk_retail_hardware_store_font_awesome_icon_array();
	                foreach ($luzuk_retail_hardware_store_font_awesome_icon_array as $luzuk_retail_hardware_store_font_awesome_icon) {
	                   $icon_class = $this->value() == $luzuk_retail_hardware_store_font_awesome_icon ? 'icon-active' : '';
	                   echo '<li class=' . esc_attr($icon_class) . '><i class="' . esc_attr($luzuk_retail_hardware_store_font_awesome_icon) . '"></i></li>';
	                }
	                ?>
	            </ul>
	            <input type="hidden" value="<?php $this->value(); ?>" <?php $this->link(); ?> />
	        </label>
	        <?php
      	}
  	}
}
function luzuk_retail_hardware_store_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_retail_hardware_store_customizer_script' );