<?php
// START APPOINTMENT SECTION 
$wp_customize->add_section(
	'lz_fitness_appointment_section',
	array(
		'title'         => __( 'Appointment Section', 'lz-fitness-premium' ), 
		'panel'   => 'lz_fitness_premium_home_panel',
	)
);
    //ENABLE/DISABLE Appointment SECTION
$wp_customize->add_setting(
	'lz_fitness_appointment_section_disable',
	array(
		'sanitize_callback' => 'lz_fitness_sanitize_text',
		'default' => 'off'
	)
);
$wp_customize->add_control(
	new lz_fitness_Switch_Control(
		$wp_customize,
		'lz_fitness_appointment_section_disable',
		array(
			'settings'      => 'lz_fitness_appointment_section_disable',
			'section'       => 'lz_fitness_appointment_section',
			'label'         => __( 'Disable Section', 'lz-fitness-premium' ),
			'on_off_label'  => array(
				'on' => __( 'Yes', 'lz-fitness-premium' ),
				'off' => __( 'No', 'lz-fitness-premium' )
			)   
		)
	)
);

//backgroundManager($wp_customize, 'appointment', 'lz_fitness_appointment_section', $color='#fff');
//backgroundManager($wp_customize, 'appointment', 'lz_fitness_appointment_section', $color='#f4f4f4');
backgroundManager($wp_customize, 'appointment', 'lz_fitness_appointment_section', $color='#ffffff', get_template_directory_uri().'/images/appointmentbg.jpg', 'color');

$wp_customize->add_setting(
	'lz_fitness_appointment_title_subtitle_heading',
	array(
		'sanitize_callback' => 'lz_fitness_sanitize_text',
	)
);
$wp_customize->add_control(
	new lz_fitness_Customize_Heading(
		$wp_customize,
		'lz_fitness_appointment_title_subtitle_heading',
		array(
			'settings'      => 'lz_fitness_appointment_title_subtitle_heading',
			'section'       => 'lz_fitness_appointment_section',
			'label'         => __( 'Section Title & Sub Title', 'lz-fitness-premium' ),
		)
	)
);
$wp_customize->add_setting(
	'lz_fitness_appointment_title',
	array(
		'sanitize_callback' => 'lz_fitness_sanitize_text',
		'default'           => __( 'Contact Us', 'lz-fitness-premium' )
	)
);
$wp_customize->add_control(
	'lz_fitness_appointment_title',
	array(
		'settings'      => 'lz_fitness_appointment_title',
		'section'       => 'lz_fitness_appointment_section',
		'type'          => 'textarea',
		'label'         => __( 'Title', 'lz-fitness-premium' )
	)
);
$wp_customize->add_setting(
	'lz_fitness_appointment_sub_title',
	array(
		'sanitize_callback' => 'lz_fitness_sanitize_text',
		'default'           => __( 'LET’S START NEW PROJECT', 'lz-fitness-premium' )
	)
);
$wp_customize->add_control(
	'lz_fitness_appointment_sub_title',
	array(
		'settings'      => 'lz_fitness_appointment_sub_title',
		'section'       => 'lz_fitness_appointment_section',
		'type'          => 'text',
		'label'         => __( 'Sub Title', 'lz-fitness-premium' )
	)
);
$wp_customize->add_setting(
	'lz_fitness_appointment_text',
	array(
		'sanitize_callback' => 'lz_fitness_sanitize_text',
		'default'           => __( 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form,by injected humour, domised words which don’t look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need be sure there isn’t anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined.  If you are going to use a passage of Lorem Ipsum, you need be sure there', 'lz-fitness-premium' )
	)
);
$wp_customize->add_control(
	'lz_fitness_appointment_text',
	array(
		'settings'      => 'lz_fitness_appointment_text',
		'section'       => 'lz_fitness_appointment_section',
		'type'          => 'textarea',
		'label'         => __( 'Text', 'lz-fitness-premium' )
	)
);
$wp_customize->add_setting(
	'lz_fitness_appointment_phhone',
	array(
		'sanitize_callback' => 'lz_fitness_sanitize_text',
		'default'           => __( '012 345 6789', 'lz-fitness-premium' ) 
	)
);
$wp_customize->add_control(
	'lz_fitness_appointment_phhone',
	array(
		'settings'      => 'lz_fitness_appointment_phhone',
		'section'       => 'lz_fitness_appointment_section',
		'type'          => 'text',
		'label'         => __( 'Phone No.', 'lz-fitness-premium' )
	)
);
// $wp_customize->add_setting(
// 	'lz_fitness_appointment_phhone1',
// 	array(
// 		'sanitize_callback' => 'lz_fitness_sanitize_text',
// 		'default'           => __( '512.595.7910', 'lz-fitness-premium' ) 
// 	)
// );
// $wp_customize->add_control(
// 	'lz_fitness_appointment_phhone1',
// 	array(
// 		'settings'      => 'lz_fitness_appointment_phhone1',
// 		'section'       => 'lz_fitness_appointment_section',
// 		'type'          => 'text',
// 		'label'         => __( 'Another Phone No.', 'lz-fitness-premium' )
// 	)
// );

$wp_customize->add_setting(
	'lz_fitness_appointment_emailid',
	array(
		'sanitize_callback' => 'lz_fitness_sanitize_text',
		'default'           => __( 'info@companyname.com', 'lz-fitness-premium' ) 
	)
);
$wp_customize->add_control(
	'lz_fitness_appointment_emailid',
	array(
		'settings'      => 'lz_fitness_appointment_emailid',
		'section'       => 'lz_fitness_appointment_section',
		'type'          => 'text',
		'label'         => __( 'email id', 'lz-fitness-premium' )
	)
);
// $wp_customize->add_setting(
// 	'lz_fitness_appointment_emailid1',
// 	array(
// 		'sanitize_callback' => 'lz_fitness_sanitize_text',
// 		'default'           => __( 'sales@subbo.io', 'lz-fitness-premium' ) 
// 	)
// );
// $wp_customize->add_control(
// 	'lz_fitness_appointment_emailid1',
// 	array(
// 		'settings'      => 'lz_fitness_appointment_emailid1',
// 		'section'       => 'lz_fitness_appointment_section',
// 		'type'          => 'text',
// 		'label'         => __( 'another email id', 'lz-fitness-premium' )
// 	)
// );
// $wp_customize->add_setting(
// 	'lz_fitness_appointment_location',
// 	array(
// 		'sanitize_callback' => 'lz_fitness_sanitize_text',
// 		'default'           => __( '600 Congress Ave, Floor 14 Austin,TX78701', 'lz-fitness-premium' ) 
// 	)
// );
// $wp_customize->add_control(
// 	'lz_fitness_appointment_location',
// 	array(
// 		'settings'      => 'lz_fitness_appointment_location',
// 		'section'       => 'lz_fitness_appointment_section',
// 		'type'          => 'textarea',
// 		'label'         => __( 'Location', 'lz-fitness-premium' )
// 	)
// );










// Heading color
addColorPalatOption($wp_customize, 'lz_fitness_appointment_HeadingColor', 'lz_fitness_appointment_section', 'Title color', '#ffffff');
// Text color
addColorPalatOption($wp_customize, 'lz_fitness_appointment_TextColor', 'lz_fitness_appointment_section', 'Sub Title color', '#ffffff');
// SubText color
addColorPalatOption($wp_customize, 'lz_fitness_appointment_SubTextColor', 'lz_fitness_appointment_section', 'Text color', '#ffffff');
// SubText color
addColorPalatOption($wp_customize, 'lz_fitness_appointment_SubsTextColor', 'lz_fitness_appointment_section', 'Text color', '#ffffff');

// Icon color
//addColorPalatOption($wp_customize, 'lz_fitness_appointment_IconColor', 'lz_fitness_appointment_section', 'Icon color', '#ffffff');


$wp_customize->add_setting(
	'lz_fitness_appointment_form_lbl',
	array(
		'sanitize_callback' => 'lz_fitness_sanitize_text',
	)
);

$wp_customize->add_control(
	new lz_fitness_Customize_Heading(
		$wp_customize,
		'lz_fitness_appointment_form_lbl',
		array(
			'settings'      => 'lz_fitness_appointment_form_lbl',
			'section'       => 'lz_fitness_appointment_section',
			'label'         => __( 'Add contactForm 7 shortcode', 'lz-fitness-premium' ),
		)
	)
);
$wp_customize->add_setting(
	'lz_fitness_appointment_form_shortcode',
	array(
		'sanitize_callback' => 'lz_fitness_sanitize_text',
		'default'           => __( 'Add your form shortcode on customiser', 'lz-fitness-premium' )
	)
);
$wp_customize->add_control(
	'lz_fitness_appointment_form_shortcode',
	array(
		'settings'      => 'lz_fitness_appointment_form_shortcode',
		'section'       => 'lz_fitness_appointment_section',
		'type'          => 'text',
		'label'         => __( 'Shortcode', 'lz-fitness-premium' )
	)
);


// Adding the Label
//lzCustomLable($wp_customize, 'lz_fitness_appointment_lblImgTxt', 'lz_fitness_appointment_section', 'Address Details');
//add custome redio button
// lzAddCustomRadio($wp_customize, 'lz_fitness_appointment_radioImgTxt', 'lz_fitness_appointment_section', 'Use text');
//add textarea
//lzAddElement($wp_customize, 'lz_fitness_appointment_phone', 'lz_fitness_appointment_section', 'text', $label="Phone", 'lz_fitness_sanitize_text', '+01 8563 256 523');

//lzAddElement($wp_customize, 'lz_fitness_appointment_fax', 'lz_fitness_appointment_section', 'text', $label="Fax ", 'lz_fitness_sanitize_text', '+01 8563 256 520');

//lzAddElement($wp_customize, 'lz_fitness_appointment_email', 'lz_fitness_appointment_section', 'text', $label="Email", 'lz_fitness_sanitize_text', 'email@example.com');

//lzAddElement($wp_customize, 'lz_fitness_appointment_address', 'lz_fitness_appointment_section', 'textarea', $label="Address", 'lz_fitness_sanitize_text', '984 st South capital avenue california CA 42565');

//add map embade
// $wp_customize->add_setting('lz_fitness_contactus_embade_map', array('default'=>'Add your map embade code'));
// $wp_customize->add_control('lz_fitness_contactus_embade_map', array('settings'=>'lz_fitness_contactus_embade_map', 'section'=>'lz_fitness_appointment_section','type'=>'textarea', 'label'=> __('Code for map', 'lz-fitness-premium')));


// option to select image
// lzAddImageElement($wp_customize, 'lz_fitness_appointment_ImgTxt', 'lz_fitness_appointment_section', $label="Recommended Image Size: 400X300px");
// END APPOINTMENT SECTION 