<?php
/**
 * lzrestaurant: Customizer
 *
 * @subpackage lzrestaurant
 * @since 1.0
 */

function lzrestaurant_customize_register( $wp_customize ) {

	$wp_customize->add_setting('lzrestaurant_logo_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_logo_size',array(
		'type' => 'range',
		'description' => __('Logo Size (0-100%)','lzrestaurant'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('lzrestaurant_logo_padding',array(
		'sanitize_callback'	=> 'esc_html'
	));
	$wp_customize->add_control('lzrestaurant_logo_padding',array(
		'label' => __('Logo Padding','lzrestaurant'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('lzrestaurant_logo_top_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_logo_top_padding',array(
		'type' => 'number',
		'description' => __('Top','lzrestaurant'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('lzrestaurant_logo_bottom_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_logo_bottom_padding',array(
		'type' => 'number',
		'description' => __('Bottom','lzrestaurant'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('lzrestaurant_logo_left_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_logo_left_padding',array(
		'type' => 'number',
		'description' => __('Left','lzrestaurant'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('lzrestaurant_logo_right_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_logo_right_padding',array(
		'type' => 'number',
		'description' => __('Right','lzrestaurant'),
		'section' => 'title_tagline',
	));

	$wp_customize->add_setting('lzrestaurant_show_site_title',array(
		'default' => true,
		'sanitize_callback'	=> 'lzrestaurant_sanitize_checkbox'
	));
	$wp_customize->add_control('lzrestaurant_show_site_title',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Title','lzrestaurant'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('lzrestaurant_site_title_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_site_title_font_size',array(
		'type' => 'number',
		'label' => __('Site Title Font Size','lzrestaurant'),
		'section' => 'title_tagline',
	));

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

	$wp_customize->add_setting('lzrestaurant_show_tagline',array(
		'default' => true,
		'sanitize_callback'	=> 'lzrestaurant_sanitize_checkbox'
	));
	$wp_customize->add_control('lzrestaurant_show_tagline',array(
		'type' => 'checkbox',
		'label' => __('Show / Hide Site Tagline','lzrestaurant'),
		'section' => 'title_tagline'
	));

	$wp_customize->add_setting('lzrestaurant_site_tagline_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_site_tagline_font_size',array(
		'type' => 'number',
		'label' => __('Site Tagline Font Size','lzrestaurant'),
		'section' => 'title_tagline',
	));

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

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

	$wp_customize->add_section( 'lzrestaurant_theme_options_section', array(
    	'title'      => __( 'General Settings', 'lzrestaurant' ),
		'priority'   => 30,
		'panel' => 'lzrestaurant_panel_id'
	) );

	// Add Settings and Controls for Layout
	$wp_customize->add_setting('lzrestaurant_theme_options',array(
		'default' => 'Right Sidebar',
		'sanitize_callback' => 'lzrestaurant_sanitize_choices'
	));
	
	$wp_customize->add_control('lzrestaurant_theme_options', array(
		'type' => 'radio',
		'label' => __('Do you want this section','lzrestaurant'),
		'section' => 'lzrestaurant_theme_options_section',
		'choices' => array(
		   'Left Sidebar' => __('Left Sidebar','lzrestaurant'),
		   'Right Sidebar' => __('Right Sidebar','lzrestaurant'),
		   'One Column' => __('One Column','lzrestaurant'),
		   'Three Columns' => __('Three Columns','lzrestaurant'),
		   'Four Columns' => __('Four Columns','lzrestaurant'),
		   'Grid Layout' => __('Grid Layout','lzrestaurant')
		),
	));

	$wp_customize->add_setting( 'lzrestaurant_dropdown_anim', array(
		'default'           => 'None',
		'sanitize_callback' => 'lzrestaurant_sanitize_choices'
	));
	$wp_customize->add_control( 'lzrestaurant_dropdown_anim', array(
		'label'    => __( 'Menu Dropdown Animations', 'lzrestaurant' ),
		'section'  => 'lzrestaurant_theme_options_section',
		'type'     => 'select',
		'choices'  => array(
			'bounceInUp'  => __('bounceInUp', 'lzrestaurant'),
			'fadeInUp' => __('fadeInUp', 'lzrestaurant'),
			'zoomIn'    => __('zoomIn', 'lzrestaurant'),
			'None'    => __('None', 'lzrestaurant')
		),
	));

   //Social Icons(topbar)
	$wp_customize->add_section('lzrestaurant_topbar_header',array(
		'title'	=> __('Social Icon Section','lzrestaurant'),
		'description'	=> __('<b>Note :</b> Add Social Link here','lzrestaurant'),
		'priority'	=> null,
		'panel' => 'lzrestaurant_panel_id',
	));

	$wp_customize->add_setting('lzrestaurant_facebook',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lzrestaurant_facebook',array(
		'label'	=> __('Add Facebook link','lzrestaurant'),
		'section'	=> 'lzrestaurant_topbar_header',
		'setting'	=> 'lzrestaurant_facebook',
		'type'		=> 'url'
	));

	$wp_customize->add_setting('lzrestaurant_twitter',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lzrestaurant_twitter',array(
		'label'	=> __('Add Twitter link','lzrestaurant'),
		'section'	=> 'lzrestaurant_topbar_header',
		'setting'	=> 'lzrestaurant_twitter',
		'type'		=> 'url'
	));

	$wp_customize->add_setting('lzrestaurant_instagram',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lzrestaurant_instagram',array(
		'label'	=> __('Add Instagram link','lzrestaurant'),
		'section'	=> 'lzrestaurant_topbar_header',
		'setting'	=> 'lzrestaurant_instagram',
		'type'		=> 'url'
	));

	$wp_customize->add_setting('lzrestaurant_pinterest',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lzrestaurant_pinterest',array(
		'label'	=> __('Add Pintrest link','lzrestaurant'),
		'section'	=> 'lzrestaurant_topbar_header',
		'setting'	=> 'lzrestaurant_pinterest',
		'type'		=> 'url'
	));

	$wp_customize->add_setting('lzrestaurant_tumblr',array(
		'default'	=> '',
		'sanitize_callback'	=> 'esc_url_raw'
	));
	$wp_customize->add_control('lzrestaurant_tumblr',array(
		'label'	=> __('Add Tumblr link','lzrestaurant'),
		'section'	=> 'lzrestaurant_topbar_header',
		'setting'	=> 'lzrestaurant_tumblr',
		'type'		=> 'url'
	));

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

	$wp_customize->add_setting( 'lzrestaurant_tumblrbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lzrestaurant_tumblrbg_color', array(
		'label' => 'Icon Background Color',
		'section' => 'lzrestaurant_topbar_header',
	)));

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

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

	$wp_customize->add_setting( 'lzrestaurant_menubg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lzrestaurant_menubg_color', array(
		'label' => 'Header Bg Color',
		'section' => 'lzrestaurant_topbar_header',
	)));

	//home page slider
	$wp_customize->add_section( 'lzrestaurant_slider_section' , array(
    	'title'      => __( 'Slider Settings', 'lzrestaurant' ),
		'priority'   => null,
		'panel' => 'lzrestaurant_panel_id'
	) );

	$wp_customize->add_setting('lzrestaurant_slider_hide_show',array(
		'default' => false,
		'sanitize_callback' => 'lzrestaurant_sanitize_checkbox'
	));
	$wp_customize->add_control('lzrestaurant_slider_hide_show',array(
	   'type' => 'checkbox',
	   'label' => __('Show / Hide slider','lzrestaurant'),
	   'section' => 'lzrestaurant_slider_section',
	));

	for ( $count = 1; $count <= 4; $count++ ) {
		$wp_customize->add_setting( 'lzrestaurant_slider' . $count, array(
			'default'           => '',
			'sanitize_callback' => 'lzrestaurant_sanitize_dropdown_pages'
		) );
		$wp_customize->add_control( 'lzrestaurant_slider' . $count, array(
			'label'    => __( 'Select Slide Image Page', 'lzrestaurant' ),
			'section'  => 'lzrestaurant_slider_section',
			'type'     => 'dropdown-pages'
		) );
	}

	$wp_customize->add_setting( 'lzrestaurant_slider_effect', array(
		'default'           => '',
		'sanitize_callback' => 'lzrestaurant_sanitize_choices'
	));
	$wp_customize->add_control( 'lzrestaurant_slider_effect', array(
		'label'    => __( 'Onload Transactions Effects', 'lzrestaurant' ),
		'section'  => 'lzrestaurant_slider_section',
		'type'     => 'select',
		'choices'  => array(
			'bounceInLeft'  => __('bounceInLeft', 'lzrestaurant'),
			'bounceInRight' => __('bounceInRight', 'lzrestaurant'),
			'bounceInUp'    => __('bounceInUp', 'lzrestaurant'),
			'bounceInDown'    => __('bounceInDown', 'lzrestaurant'),
			'zoomIn'  => __('zoomIn', 'lzrestaurant'),
			'zoomOut' => __('zoomOut', 'lzrestaurant'),
			'fadeInDown'    => __('fadeInDown', 'lzrestaurant'),
			'fadeInUp'    => __('fadeInUp', 'lzrestaurant'),
			'fadeInLeft'  => __('fadeInLeft', 'lzrestaurant'),
			'fadeInRight' => __('fadeInRight', 'lzrestaurant'),
			'flip-up'    => __('flip-up', 'lzrestaurant'),
			'none'    => __('none', 'lzrestaurant')
		),
	));

	$wp_customize->add_setting('lzrestaurant_slider_excerpt_length',array(
		'default' => '20',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_slider_excerpt_length',array(
		'type' => 'number',
		'label' => __('Slider Excerpt Length','lzrestaurant'),
		'section' => 'lzrestaurant_slider_section',
	));

	$wp_customize->add_setting('lzrestaurant_slider_title_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_slider_title_font_size',array(
		'type' => 'number',
		'label' => __('Slider Title Font Size','lzrestaurant'),
		'section' => 'lzrestaurant_slider_section',
	));

	$wp_customize->add_setting('lzrestaurant_slider_text_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_slider_text_font_size',array(
		'type' => 'number',
		'label' => __('Slider Text Font Size','lzrestaurant'),
		'section' => 'lzrestaurant_slider_section',
	));

	$wp_customize->add_setting('lzrestaurant_slider_opacity',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_slider_opacity',array(
		'type' => 'range',
		'label' => __('Image Opacity','lzrestaurant'),
		'section' => 'lzrestaurant_slider_section',
		'input_attrs' => array(
			'min' => 0,
			'max' => 1,
			'step' => 0.1,
		),
	));

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

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

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

	$wp_customize->add_setting( 'lzrestaurant_sliderbtnbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lzrestaurant_sliderbtnbg_color', array(
		'label' => 'Button Bg Color',
		'section' => 'lzrestaurant_slider_section',
	)));

	//Feature Products
   $wp_customize->add_section( 'lzrestaurant_product', array(
    	'title'      => __( 'Feature Products', 'lzrestaurant' ),
		'priority'   => null,
		'panel' => 'lzrestaurant_panel_id'
	) );

	$wp_customize->add_setting( 'lzrestaurant_product_width', array(
		'default'           => '',
		'sanitize_callback' => 'lzrestaurant_sanitize_choices'
	));
	$wp_customize->add_control( 'lzrestaurant_product_width', array(
		'label'    => __( 'Box width and Full Width', 'lzrestaurant' ),
		'section'  => 'lzrestaurant_product',
		'type'     => 'select',
		'choices'  => array(
			'container'  => __('container', 'lzrestaurant'),
			'container-fluid' => __('container-fluid', 'lzrestaurant')
		),
	));

   $wp_customize->add_setting('lzrestaurant_title1',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lzrestaurant_title1',array(
		'label'	=> __('Section Short Title','lzrestaurant'),
		'section'	=> 'lzrestaurant_product',
		'setting'	=> 'lzrestaurant_title1',
		'type'		=> 'text'
	));

   $wp_customize->add_setting('lzrestaurant_title',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lzrestaurant_title',array(
		'label'	=> __('Section Title','lzrestaurant'),
		'section'	=> 'lzrestaurant_product',
		'setting'	=> 'lzrestaurant_title',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('lzrestaurant_feature_short_title_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_feature_short_title_font_size',array(
		'type' => 'number',
		'label' => __('Short Title Font Size','lzrestaurant'),
		'section' => 'lzrestaurant_product',
	));

	$wp_customize->add_setting('lzrestaurant_feature_title_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_feature_title_font_size',array(
		'type' => 'number',
		'label' => __('Title Font Size','lzrestaurant'),
		'section' => 'lzrestaurant_product',
	));

	$wp_customize->add_setting( 'lzrestaurant_product_page', array(
		'default'           => '',
		'sanitize_callback' => 'lzrestaurant_sanitize_dropdown_pages'
	));
	$wp_customize->add_control( 'lzrestaurant_product_page', array(
		'label'    => __( 'Select Product Page', 'lzrestaurant' ),
		'section'  => 'lzrestaurant_product',
		'type'     => 'dropdown-pages'
	));

	$wp_customize->add_setting('lzrestaurant_product_title_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_product_title_font_size',array(
		'type' => 'number',
		'label' => __('Product Title Font Size','lzrestaurant'),
		'section' => 'lzrestaurant_product',
	));

	$wp_customize->add_setting('lzrestaurant_products_section_padding',array(
      'default' => '',
      'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_products_section_padding',array(
		'type' => 'number',
		'label' => __('Section Top Bottom Padding','lzrestaurant'),
		'section' => 'lzrestaurant_product',
	));

	$wp_customize->add_setting('lzrestaurant_product_img_hight',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
	));
	$wp_customize->add_control('lzrestaurant_product_img_hight',array(
		'type' => 'number',
		'label' => __('Image Height','lzrestaurant'),
		'section' => 'lzrestaurant_product',
	));

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

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

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

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

	//Footer Text
   $wp_customize->add_section( 'lzrestaurant_footer', array(
    	'title'      => __( 'Footer Settings', 'lzrestaurant' ),
		'priority'   => null,
		'panel' => 'lzrestaurant_panel_id'
	) );

	$wp_customize->add_setting('lzrestaurant_show_back_totop',array(
 		'default' => true,
   	'sanitize_callback'	=> 'lzrestaurant_sanitize_checkbox'
	));
	$wp_customize->add_control('lzrestaurant_show_back_totop',array(
   	'type' => 'checkbox',
   	'label' => __('Show / Hide Back to Top','lzrestaurant'),
   	'section' => 'lzrestaurant_footer'
	));

	$wp_customize->add_setting('lzrestaurant_footer_copylink',array(
		'default'	=> 'https://www.luzuk.com/products/free-restaurant-wordpress-theme/',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lzrestaurant_footer_copylink',array(
		'label'	=> __('Copyright Link','lzrestaurant'),
		'section'	=> 'lzrestaurant_footer',
		'setting'	=> 'lzrestaurant_footer_copylink',
		'type'		=> 'text'
	));

   $wp_customize->add_setting('lzrestaurant_footer_copy',array(
		'default'	=> 'Restaurant WordPress Theme By Luzuk',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('lzrestaurant_footer_copy',array(
		'label'	=> __('Copyright Text','lzrestaurant'),
		'section'	=> 'lzrestaurant_footer',
		'setting'	=> 'lzrestaurant_footer_copy',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('lzrestaurant_copyright_font_size',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
 	));
 	$wp_customize->add_control('lzrestaurant_copyright_font_size',array(
		'type' => 'number',
		'label' => __('Font Size','lzrestaurant'),
		'section' => 'lzrestaurant_footer',
	));

	$wp_customize->add_setting('lzrestaurant_copyright_padding',array(
		'default' => '',
		'sanitize_callback'	=> 'lzrestaurant_sanitize_float'
 	));
 	$wp_customize->add_control('lzrestaurant_copyright_padding',array(
		'type' => 'number',
		'label' => __('Copyright Top Bottom Padding','lzrestaurant'),
		'section' => 'lzrestaurant_footer',
	));

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

	$wp_customize->add_setting( 'lzrestaurant_footer_widgets_menu_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lzrestaurant_footer_widgets_menu_color', array(
		'label' => 'Widgets Menus Color',
		'section' => 'lzrestaurant_footer',
	)));

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

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

	$wp_customize->add_setting( 'lzrestaurant_footerbg_color', array(
		'default' => '',
		'sanitize_callback' => 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lzrestaurant_footerbg_color', array(
		'label' => 'Footer Bg Color',
		'section' => 'lzrestaurant_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' => 'lzrestaurant_customize_partial_blogname',
	) );
	$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
		'selector' => '.site-description',
		'render_callback' => 'lzrestaurant_customize_partial_blogdescription',
	) );
}
add_action( 'customize_register', 'lzrestaurant_customize_register' );

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

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


function lzrestaurant_is_static_front_page() {
	return ( is_front_page() && ! is_home() );
}

function lzrestaurant_is_view_with_layout_option() {
	// This option is available on all pages. It's also available on archives when there isn't a sidebar.
	return ( is_page() || ( is_archive() && ! is_active_sidebar( 'sidebar-1' ) ) );
}

/**
 * Singleton class for handling the theme's customizer integration.
 *
 * @since  1.0.0
 * @access public
 */
if ( ! class_exists ( 'LZ_Food_Recipee_Customize' ) ) {
final class LZrestaurant_Customize {

	/**
	 * Returns the instance.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return object
	 */
	public static function get_instance() {

		static $instance = null;

		if ( is_null( $instance ) ) {
			$instance = new self;
			$instance->setup_actions();
		}

		return $instance;
	}

	/**
	 * Constructor method.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function __construct() {}

	/**
	 * Sets up initial actions.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function setup_actions() {

		// Register panels, sections, settings, controls, and partials.
		add_action( 'customize_register', array( $this, 'sections' ) );

		// Register scripts and styles for the controls.
		add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ), 0 );
	}

	/**
	 * Sets up the customizer sections.
	 *
	 * @since  1.0.0
	 * @access public
	 * @param  object  $manager
	 * @return void
	 */
	public function sections( $manager ) {

		// Load custom sections.
		load_template( trailingslashit( get_template_directory() ) . '/inc/section-pro.php' );

		// Register custom section types.
		$manager->register_section_type( 'LZrestaurant_Customize_Section_Pro' );

		// Register sections.
		$manager->add_section(
			new LZrestaurant_Customize_Section_Pro(
				$manager,
				'lzrestaurant_example_1',
				array(
					'priority' => 9,
					'title'    => esc_html__( 'LZ Restaurant Pro', 'lzrestaurant' ),
					'pro_text' => esc_html__( 'Upgrade Pro', 'lzrestaurant' ),
					'pro_url'  => esc_url('https://www.luzuk.com/products/premium-restaurant-wordpress-theme/')
				)
			)
		);
	}

	/**
	 * Loads theme customizer CSS.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	public function enqueue_control_scripts() {

		wp_enqueue_script( 'lzrestaurant-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/assets/js/customize-controls.js', array( 'customize-controls' ) );

		wp_enqueue_style( 'lzrestaurant-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/assets/css/customize-controls.css' );
	}
}

// Doing this customizer thang!
LZrestaurant_Customize::get_instance();
}