<?php 
/**
 * About Section
 *
 * @package eco-solar-energy
 */
$wp_customize->add_section( 'eco_solar_energy_about_section' , array(
    'title'      => esc_html__( 'About Section', 'eco-solar-energy' ),
    'capability' => 'edit_theme_options',
    'panel' => 'eco_solar_energy_section_panel' 
    ) );

// ///////// Toggle switch
$wp_customize->add_setting( 'eco_solar_energy_about_display' , array(
    'default'   => true,
    'sanitize_callback' => 'eco_solar_energy_sanitize_switch',
) );

$wp_customize->add_control( new eco_solar_energy_Toggle_Switch_Custom_Control( $wp_customize, 'eco_solar_energy_about_display_control', array(
    'label'      => esc_html__( 'Display about section', 'eco-solar-energy' ),
    'section'    => 'eco_solar_energy_about_section',
    'settings'   => 'eco_solar_energy_about_display',
) ) );
// //////////  Title
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_title' , 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_aboutsection_title', array(   
    'label'      => esc_html__( 'Title', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_about_section',   
    'settings'   => 'eco_solar_energy_aboutsection_title',   
    'type' => 'text',         
) ) );
// //////////   Image 
$wp_customize->add_setting('eco_solar_energy_about_image', 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_about_image', array(       
    'label'      => esc_html__('Image', 'eco-solar-energy'),       
    'section'    => 'eco_solar_energy_about_section',       
    'settings'   => 'eco_solar_energy_about_image',
)));

// // //////////  Imgcard-Title1
// $wp_customize->add_setting( 'eco_solar_energy_aboutsection_imgcard_title1' , array(
//     'default'   => 'Domestic',   
//     'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
//     ) );

//     $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_imgcard_title1', array(   
//     'label'      => esc_html__( 'Imgcard-Title1', 'eco-solar-energy' ),   
//     'section'    => 'eco_solar_energy_about_section',   
//     'settings'   => 'eco_solar_energy_aboutsection_imgcard_title1',   
//     'type' => 'text',         
// ) ) );

// // //////////  Imgcard-subTitle1
// $wp_customize->add_setting( 'eco_solar_energy_aboutsection_imgcard_subtitle1' , array(
//     'default'   => 'Installation',   
//     'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
//     ) );

//     $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_imgcard_subtitle1', array(   
//     'label'      => esc_html__( 'Imgcard-Title1', 'eco-solar-energy' ),   
//     'section'    => 'eco_solar_energy_about_section',   
//     'settings'   => 'eco_solar_energy_aboutsection_imgcard_subtitle1',   
//     'type' => 'text',         
// ) ) );

// // //////////   Image 1
// $wp_customize->add_setting('eco_solar_energy_about_image2', 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_about_image2', array(       
//     'label'      => esc_html__('Image 1', 'eco-solar-energy'),       
//     'section'    => 'eco_solar_energy_about_section',       
//     'settings'   => 'eco_solar_energy_about_image2',
// )));

// // //////////  Imgcard-Title2
// $wp_customize->add_setting( 'eco_solar_energy_aboutsection_imgcard_title2' , array(
//     'default'   => 'Commercial',   
//     'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
//     ) );

//     $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_imgcard_title2', array(   
//     'label'      => esc_html__( 'Imgcard-Title2', 'eco-solar-energy' ),   
//     'section'    => 'eco_solar_energy_about_section',   
//     'settings'   => 'eco_solar_energy_aboutsection_imgcard_title2',   
//     'type' => 'text',         
// ) ) );

// // //////////  Imgcard-subTitle2
// $wp_customize->add_setting( 'eco_solar_energy_aboutsection_imgcard_subtitle2' , array(
//     'default'   => 'Installation',   
//     'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
//     ) );

//     $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_imgcard_subtitle2', array(   
//     'label'      => esc_html__( 'Imgcard-Title2', 'eco-solar-energy' ),   
//     'section'    => 'eco_solar_energy_about_section',   
//     'settings'   => 'eco_solar_energy_aboutsection_imgcard_subtitle2',   
//     'type' => 'text',         
// ) ) );

// // //////////   Image 2
// $wp_customize->add_setting('eco_solar_energy_about_image3', 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_about_image3', array(       
//     'label'      => esc_html__('Image 2', 'eco-solar-energy'),       
//     'section'    => 'eco_solar_energy_about_section',       
//     'settings'   => 'eco_solar_energy_about_image3',
// )));

// hr
$wp_customize->add_setting('separator_about', array(
    'default'           => '',
    'sanitize_callback' => 'esc_html',
));
$wp_customize->add_control(new Separator_Custom_control($wp_customize, 'separator_about', array(
    'settings'      => 'separator_about',
    'section'       => 'eco_solar_energy_about_section',
)));



// //////////  Sub-Title
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_subtitle' , array(
    'default'   => 'Building the Future',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

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

// //////////  Sub-Title2
// $wp_customize->add_setting( 'eco_solar_energy_aboutsection_subtitle2' , array(
//     'default'   => 'Sunlit Future',   
//     'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
//     ) );

//     $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_subtitle2', array(   
//     'label'      => esc_html__( 'Sub-Title2', 'eco-solar-energy' ),   
//     'section'    => 'eco_solar_energy_about_section',   
//     'settings'   => 'eco_solar_energy_aboutsection_subtitle2',   
//     'type' => 'text',         
// ) ) );

// //////////  Paragraph
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_paragraph' , array(
    'default'   => "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Ipsum has been the industry's standard dummy text ever since the 1500s, when type specimen book",   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_paragraph', array(   
    'label'      => esc_html__( 'Paragraph', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_about_section',   
    'settings'   => 'eco_solar_energy_aboutsection_paragraph',   
    'type' => 'text',         
) ) );

// //////////  Icon 1
$wp_customize->add_setting('solar_icon1', array(
    'default'   => 'fa-solar-panel',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'solar_icon1', array(
    'label'      => esc_html__('Solar Icon 1', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_about_section',
    'settings'   => 'solar_icon1',
    'type' => 'text',
))); 

// //////////  Card-Title1
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_cardtitle1' , array(
    'default'   => 'Powered By The Sun',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_cardtitle1', array(   
    'label'      => esc_html__( 'Card-Title 1', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_about_section',   
    'settings'   => 'eco_solar_energy_aboutsection_cardtitle1',   
    'type' => 'text',         
) ) );



// //////////  Icon 2
$wp_customize->add_setting('solar_icon2', array(
    'default'   => 'fa-solar-panel',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'solar_icon2', array(
    'label'      => esc_html__('Solar Icon 2', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_about_section',
    'settings'   => 'solar_icon2',
    'type' => 'text',
))); 

// //////////  Card-Title2
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_cardtitle2' , array(
    'default'   => 'Future-Ready Solar Tech',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

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


// //////////  Icon 2
$wp_customize->add_setting('solar_icon3', array(
    'default'   => 'fa-solar-panel',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'solar_icon3', array(
    'label'      => esc_html__('Solar Icon 3', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_about_section',
    'settings'   => 'solar_icon3',
    'type' => 'text',
))); 

// //////////  Card-Title2
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_cardtitle3' , array(
    'default'   => 'Powered By The Sun',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

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

//////////  Card-SubTitle1
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_card_subtitle1' , array(
    'default'   => 'Lorem Ipsum Is Simply Dummy Text Of The Printing',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_card_subtitle1', array(   
    'label'      => esc_html__( 'Card-SubTitle 1', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_about_section',   
    'settings'   => 'eco_solar_energy_aboutsection_card_subtitle1',   
    'type' => 'text',         
) ) );
//////////  Card-SubTitle2
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_card_subtitle2' , array(
    'default'   => 'And Typesetting Industry.',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_card_subtitle2', array(   
    'label'      => esc_html__( 'Card-SubTitle 2', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_about_section',   
    'settings'   => 'eco_solar_energy_aboutsection_card_subtitle2',   
    'type' => 'text',         
) ) );
//////////  Card-SubTitle3
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_card_subtitle3' , array(
    'default'   => "Lorem Ipsum Has Been The Industry's",   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_card_subtitle3', array(   
    'label'      => esc_html__( 'Card-SubTitle 2', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_about_section',   
    'settings'   => 'eco_solar_energy_aboutsection_card_subtitle3',   
    'type' => 'text',         
) ) );

// hr
$wp_customize->add_setting('separator_about1', array(
    'default'           => '',
    'sanitize_callback' => 'esc_html',
));
$wp_customize->add_control(new Separator_Custom_control($wp_customize, 'separator_about1', array(
    'settings'      => 'separator_about1',
    'section'       => 'eco_solar_energy_about_section',
)));

$wp_customize->add_setting( 'eco_solar_energy_aboutsection_buttontext' , 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_aboutsection_buttontext', array(   
    'label'      => esc_html__( 'Card NumTxt', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_about_section',   
    'settings'   => 'eco_solar_energy_aboutsection_buttontext',   
    'type' => 'text',         
) ) );
// ✅ About Section Button URL
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_buttonurl', array(
    'default'           => '#',
    'sanitize_callback' => 'esc_url_raw',
) );

$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_buttonurl', array(
    'label'    => esc_html__( 'About Button URL', 'eco-solar-energy' ),
    'section'  => 'eco_solar_energy_about_section',
    'settings' => 'eco_solar_energy_aboutsection_buttonurl',
    'type'     => 'url',
) ) );

// //////////  Icon
$wp_customize->add_setting('solar_icon', array(
    'default'   => 'fa-solid fa-phone-volume',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'solar_icon', array(
    'label'      => esc_html__('Message Icon', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_about_section',
    'settings'   => 'solar_icon',
    'type' => 'text',
))); 


// //////////  Icon
$wp_customize->add_setting('msg_icon', array(
    'default'   => 'fa-solid fa-phone-volume',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'msg_icon', array(
    'label'      => esc_html__('Message Icon', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_about_section',
    'settings'   => 'msg_icon',
    'type' => 'text',
))); 

// //////////  Card NumTxt
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_cardnumtxt' , array(
    'default'   => 'Emergency',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_cardnumtxt', array(   
    'label'      => esc_html__( 'Card NumTxt', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_about_section',   
    'settings'   => 'eco_solar_energy_aboutsection_cardnumtxt',   
    'type' => 'text',         
) ) );

// //////////  Card Number
$wp_customize->add_setting( 'eco_solar_energy_aboutsection_cardnumber' , array(
    'default'   => '(00)111-2222-333',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_aboutsection_cardnumber', array(   
    'label'      => esc_html__( 'Card Number', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_about_section',   
    'settings'   => 'eco_solar_energy_aboutsection_cardnumber',   
    'type' => 'text',         
) ) );