<?php
/**
 * Footer Theme Options
 *
 * @package eco-solar-energy
 */

$wp_customize->add_section( 'eco_solar_energy_footer_section' , array(
	'title'      => esc_html__( 'Footer Section', 'eco-solar-energy' ),
	'capability' => 'edit_theme_options',
	'panel' => 'eco_solar_energy_theme_section_panel'
) );

// Footer Text
	$wp_customize->add_setting( 'eco_solar_energy_footertext_setting' , array(
	'default'   => esc_html__('© 2025 – All Rights Reserved.','eco-solar-energy'),
	'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
	) );

	$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_footer_text_control', array(
	'label'      => esc_html__( 'Footer Text', 'eco-solar-energy' ),
	'section'    => 'eco_solar_energy_footer_section',
	'settings'   => 'eco_solar_energy_footertext_setting',    
	) ) );

	$wp_customize->add_setting( 'eco_solar_energy_foot_1stcolh1' , array(
    'default'   => 'Get To 50% Off',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_1stcolh1', array(   
    'label'      => esc_html__( 'Title', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_1stcolh1',   
    'type' => 'text',         
) ) );
	$wp_customize->add_setting( 'eco_solar_energy_foot_1stcolp' , array(
    'default'   => '+ FREE Shipping!',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_1stcolp', array(   
    'label'      => esc_html__( 'Text', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_1stcolp',   
    'type' => 'text',         
) ) );
// ////////// Menu Submenu 1
$wp_customize->add_setting( 'eco_solar_energy_foot_menusubmenu1' , array(
    'default'   => 'Lorem Ipsum is simply dummy',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_menusubmenu1', array(   
    'label'      => esc_html__( 'Li Text 1', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_menusubmenu1',   
    'type' => 'text',         
) ) );

// ////////// Menu Submenu 2
$wp_customize->add_setting( 'eco_solar_energy_foot_menusubmenu2' , array(
    'default'   => 'Lorem Ipsum is simply',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_menusubmenu2', array(   
    'label'      => esc_html__( 'Li Text 2', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_menusubmenu2',   
    'type' => 'text',         
) ) );

// ////////// Menu Submenu 3
$wp_customize->add_setting( 'eco_solar_energy_foot_menusubmenu3' , array(
    'default'   => 'Lorem Ipsum is simply dummy',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_menusubmenu33', array(   
    'label'      => esc_html__( 'Li Text 3', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_menusubmenu3',   
    'type' => 'text',         
) ) );
// ////////// Menu Submenu 4
$wp_customize->add_setting( 'eco_solar_energy_foot_menusubmenu4' , array(
    'default'   => 'Lorem Ipsum is simply',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_menusubmenu4', array(   
    'label'      => esc_html__( 'Li Text 4', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_menusubmenu4',   
    'type' => 'text',         
) ) );
// ////////// Menu Submenu 5
$wp_customize->add_setting( 'eco_solar_energy_foot_menusubmenu5' , array(
    'default'   => 'Lorem Ipsum is simply dummy',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_menusubmenu53', array(   
    'label'      => esc_html__( 'Li Text 5', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_menusubmenu5',   
    'type' => 'text',         
) ) );
// ////////// Menu Submenu 6
$wp_customize->add_setting( 'eco_solar_energy_foot_menusubmenu6' , array(
    'default'   => '123-456 789',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_menusubmenu63', array(   
    'label'      => esc_html__( 'Li Text 6', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_menusubmenu6',   
    'type' => 'text',         
) ) );
// ////////// Menu Submenu 7
$wp_customize->add_setting( 'eco_solar_energy_foot_lastcallnow' , array(
    'default'   => 'Call Now',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_lastcallnow3', array(   
    'label'      => esc_html__( 'Button Text', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_lastcallnow',   
    'type' => 'text',         
) ) );

	


// Separator (hr)    
    $wp_customize->add_control('eco_solar_energy_footer_separator1',array(
        'label' => __('Footer Menu 1','eco-solar-energy'),
        'section' => 'eco_solar_energy_footer_section'
    ));
	// /////////// LOGO
$wp_customize->add_setting('eco_solar_energy_footer_logo', array(
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_url',       
    'capability' => 'edit_theme_options',        
    'type' => 'theme_mod',
));

$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'eco_solar_energy_footer_logo', array(       
    'label'      => esc_html__('Logo Image', 'eco-solar-energy'),       
    'section'    => 'eco_solar_energy_footer_section',       
    'settings'   => 'eco_solar_energy_footer_logo',
)));
// ////////// Title 1
$wp_customize->add_setting( 'eco_solar_energy_foot_title2111' , array(
    'default'   => 'About Us',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_title2111', array(   
    'label'      => esc_html__( 'Title 1', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_title2111',   
    'type' => 'text',         
) ) );
// ////////// Paragraph
$wp_customize->add_setting( 'eco_solar_energy_foot_paragraph' , array(
    'default'   => 'Empowering Homes And Businesses With Clean,Reliable, And Affordable Solar Energy Solutions.',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_paragraph', array(   
    'label'      => esc_html__( 'Paragraph', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_paragraph',   
    'type' => 'text',         
) ) );
$wp_customize->add_setting( 'eco_solar_energy_foot_title211fes1' , array(
    'default'   => 'Follow On:',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_title211fes1', array(   
    'label'      => esc_html__( 'Follow On:', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_title211fes1',   
    'type' => 'text',         
) ) );

// ////////// Facebook Icon
$wp_customize->add_setting('eco_solar_energy_footfacebook_icon', array(
    'default'   => 'fa-facebook-f',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'eco_solar_energy_footfacebook_icon', array(
    'label'      => esc_html__('Facebook Icon', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_footer_section',
    'settings'   => 'eco_solar_energy_footfacebook_icon',
    'type' => 'text',
)));  

// ////////// Twitter Icon
$wp_customize->add_setting('eco_solar_energy_foottwitter_icon', array(
    'default'   => 'fa-twitter',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'eco_solar_energy_foottwitter_icon', array(
    'label'      => esc_html__('Twitter Icon', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_footer_section',
    'settings'   => 'eco_solar_energy_foottwitter_icon',
    'type' => 'text',
))); 

// ////////// Instagram Icon
$wp_customize->add_setting('eco_solar_energy_footinstagram_icon', array(
    'default'   => 'fa-instagram',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'eco_solar_energy_footinstagram_icon', array(
    'label'      => esc_html__('Instagram Icon', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_footer_section',
    'settings'   => 'eco_solar_energy_footinstagram_icon',
    'type' => 'text',
)));

// Separator (hr)
$wp_customize->add_control('eco_solar_energy_footer_separator2',array(
    'label' => __('Footer Menu 2','eco-solar-energy'),
    'section' => 'eco_solar_energy_footer_section'
));

// ////////// Title 2
$wp_customize->add_setting( 'eco_solar_energy_foot_title2' , array(
    'default'   => 'Quick Links',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_title2', array(   
    'label'      => esc_html__( 'Title 2', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_title2',   
    'type' => 'text',         
) ) );

// ////////// Navigation Submenu 1
$wp_customize->add_setting( 'eco_solar_energy_foot_abtsubmenu1' , array(
    'default'   => 'Privacy Policy',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_abtsubmenu1', array(   
    'label'      => esc_html__( 'Navigation Submenu 1', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_abtsubmenu1',   
    'type' => 'text',         
) ) );

// ////////// Navigation Submenu 2
$wp_customize->add_setting( 'eco_solar_energy_foot_abtsubmenu2' , array(
    'default'   => 'Support',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_abtsubmenu2', array(   
    'label'      => esc_html__( 'Navigation Submenu 2', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_abtsubmenu2',   
    'type' => 'text',         
) ) );

// ////////// Navigation Submenu 3
$wp_customize->add_setting( 'eco_solar_energy_foot_abtsubmenu3' , array(
    'default'   => 'Disclaimer',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_abtsubmenu3', array(   
    'label'      => esc_html__( 'Navigation Submenu 3', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_abtsubmenu3',   
    'type' => 'text',         
) ) );

// ////////// Navigation Submenu 4
$wp_customize->add_setting( 'eco_solar_energy_foot_abtsubmenu4' , array(
    'default'   => 'FAQ',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_abtsubmenu4', array(   
    'label'      => esc_html__( 'Navigation Submenu 4', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_abtsubmenu4',   
    'type' => 'text',         
) ) );

// ////////// Navigation Submenu 5
$wp_customize->add_setting( 'eco_solar_energy_foot_abtsubmenu5' , array(
    'default'   => 'Terms and Conditions',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_foot_abtsubmenu5', array(   
    'label'      => esc_html__( 'Navigation Submenu 5', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_footer_section',   
    'settings'   => 'eco_solar_energy_foot_abtsubmenu5',   
    'type' => 'text',         
) ) );

// Separator (hr)
$wp_customize->add_control('eco_solar_energy_footer_separator3',array(
    'label' => __('Footer Menu 3','eco-solar-energy'),
    'section' => 'eco_solar_energy_footer_section'
));





// Footer 4
	$wp_customize->add_setting( 'eco_solar_energy_footer4' , array(
		'default'   => esc_html__('Contact Us','eco-solar-energy'),
		'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
		) );
	
		$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_footer4', array(	
		'label'      => esc_html__( 'Footer 4', 'eco-solar-energy' ),	
		'section'    => 'eco_solar_energy_footer_section',	
		'settings'   => 'eco_solar_energy_footer4',    	
		) ) );

	// //////////  Icon 3
	$wp_customize->add_setting('footer_phone_icon', array(
		'default'   => 'fa-phone',
		'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
	));
	$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'footer_phone_icon', array(
		'label'      => esc_html__('Footer Icon 3', 'eco-solar-energy'),
		'section'    => 'eco_solar_energy_footer_section',
		'settings'   => 'footer_phone_icon',
		'type' => 'text',
	)));

	// // Footer 4 Phone Title
	// $wp_customize->add_setting( 'eco_solar_energy_footer4_Phonetitle' , array(
	// 	'default'   => esc_html__('CALL US','eco-solar-energy'),
	// 	'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
	// ) );
	
	// $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_footer4_Phonetitle', array(	
	// 	'label'      => esc_html__( 'Footer 4 Phone Title', 'eco-solar-energy' ),	
	// 	'section'    => 'eco_solar_energy_footer_section',	
	// 	'settings'   => 'eco_solar_energy_footer4_Phonetitle',    	
	// ) ) );

	// Footer 4 Phone Title
	$wp_customize->add_setting( 'eco_solar_energy_footer4_Phonetext' , array(
		'default'   => esc_html__('+012 3456 789','eco-solar-energy'),
		'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
	) );
	
	$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_footer4_Phonetext', array(	
		'label'      => esc_html__( 'Footer 4 Phone Number', 'eco-solar-energy' ),	
		'section'    => 'eco_solar_energy_footer_section',	
		'settings'   => 'eco_solar_energy_footer4_Phonetext',    	
	) ) );


	

	
	// //////////  Icon 2
	$wp_customize->add_setting('footer_envelope_icon', array(
		'default'   => 'fa-envelope',
		'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
	));
	$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'footer_envelope_icon', array(
		'label'      => esc_html__('Footer Icon 2', 'eco-solar-energy'),
		'section'    => 'eco_solar_energy_footer_section',
		'settings'   => 'footer_envelope_icon',
		'type' => 'text',
	)));

	// // Footer 4 Email Title
	// $wp_customize->add_setting( 'eco_solar_energy_footer4_Emailtitle' , array(
	// 	'default'   => esc_html__('EMAIL US','eco-solar-energy'),
	// 	'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
	// ) );
	
	// $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_footer4_Emailtitle', array(	
	// 	'label'      => esc_html__( 'Footer 4 Email Title', 'eco-solar-energy' ),	
	// 	'section'    => 'eco_solar_energy_footer_section',	
	// 	'settings'   => 'eco_solar_energy_footer4_Emailtitle',    	
	// ) ) );

	// Footer 4 Email Title
	$wp_customize->add_setting( 'eco_solar_energy_footer4_Emailtext' , array(
		'default'   => esc_html__('Abcfinfo@Support.Com','eco-solar-energy'),
		'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
	) );
	
	$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_footer4_Emailtext', array(	
		'label'      => esc_html__( 'Footer 4 Email Text', 'eco-solar-energy' ),	
		'section'    => 'eco_solar_energy_footer_section',	
		'settings'   => 'eco_solar_energy_footer4_Emailtext',    	
	) ) );
// //////////  Icon 1
	$wp_customize->add_setting('footer_location_icon', array(
		'default'   => 'fa-location-dot',
		'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
	));
	$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'footer_location_icon', array(
		'label'      => esc_html__('Footer Icon 1', 'eco-solar-energy'),
		'section'    => 'eco_solar_energy_footer_section',
		'settings'   => 'footer_location_icon',
		'type' => 'text',
	)));

	// // Footer 4 Address Title
	// $wp_customize->add_setting( 'eco_solar_energy_footer4_Addresstitle' , array(
	// 	'default'   => esc_html__('OFFICIAL ADDRESS','eco-solar-energy'),
	// 	'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
	// ) );
	
	// $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_footer4_Addresstitle', array(	
	// 	'label'      => esc_html__( 'Footer 4 Address Title', 'eco-solar-energy' ),	
	// 	'section'    => 'eco_solar_energy_footer_section',	
	// 	'settings'   => 'eco_solar_energy_footer4_Addresstitle',    	
	// ) ) );

	// Footer 4 Address Title
	$wp_customize->add_setting( 'eco_solar_energy_footer4_Addresstext' , array(
		'default'   => esc_html__('610 S 4Th Philadelphia Pennsy Vania 19147 US','eco-solar-energy'),
		'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
	) );
	
	$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_footer4_Addresstext', array(	
		'label'      => esc_html__( 'Footer 4 Address Text', 'eco-solar-energy' ),	
		'section'    => 'eco_solar_energy_footer_section',	
		'settings'   => 'eco_solar_energy_footer4_Addresstext',    	
	) ) );

	// Show and Hide 
	$wp_customize->add_setting(
		'eco_solar_energy_scroll_to_top', 
		array(
			'default'           => false,
			'sanitize_callback' => 'eco_solar_energy_sanitize_switch',
		)
	);
	
	$wp_customize->add_control(
		new eco_solar_energy_Toggle_Switch_Custom_Control(
			$wp_customize,
			'eco_solar_energy_scroll_to_top',
			array(
				'label'   => esc_html__('Hide Scroll to top section', 'eco-solar-energy'),
				'section' => 'eco_solar_energy_footer_section',
			)
		)
	);
	