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

// ///////// Toggle switch
$wp_customize->add_setting( 'eco_solar_energy_service_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_service_display_control', array(
    'label'      => esc_html__( 'Display service section', 'eco-solar-energy' ),
    'section'    => 'eco_solar_energy_service_section',
    'settings'   => 'eco_solar_energy_service_display',
) ) );






// //////////  Title
$wp_customize->add_setting( 'eco_solar_energy_servicesection_title' , array(
    'default'   => 'Our Services',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_servicesection_title', array(   
    'label'      => esc_html__( 'Title', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_service_section',   
    'settings'   => 'eco_solar_energy_servicesection_title',   
    'type' => 'text',         
) ) );
$wp_customize->add_setting( 'eco_solar_energy_servicesection_text' , array(
    'default'   => 'Lorem Ipsum is simply dummy text the printing and typesetting industry.',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_servicesection_text', array(   
    'label'      => esc_html__( 'Text', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_service_section',   
    'settings'   => 'eco_solar_energy_servicesection_text',   
    'type' => 'text',         
) ) );
$wp_customize->add_setting( 'eco_solar_energy_servicesection_buttontext1' , array(
    'default'   => 'View All',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

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

// ✅ Button URL Setting
$wp_customize->add_setting( 'eco_solar_energy_servicesection_buttonurl1', array(
    'default'           => '#',  
    'sanitize_callback' => 'esc_url_raw',  
) );

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

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








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

// //////////  Sub-Title
$wp_customize->add_setting( 'eco_solar_energy_servicesection_title1' , array(
    'default'   => 'Expert Technical Team',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_servicesection_title1', array(   
    'label'      => esc_html__( 'Title 1', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_service_section',   
    'settings'   => 'eco_solar_energy_servicesection_title1',   
    'type' => 'text',         
) ) );
$wp_customize->add_setting( 'eco_solar_energy_servicesection_text1' , array(
    'default'   => 'Lorem Ipsum is simply dummy text of the printing and typesetting',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_servicesection_text1', array(   
    'label'      => esc_html__( 'Text 1', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_service_section',   
    'settings'   => 'eco_solar_energy_servicesection_text1',   
    'type' => 'text',         
) ) );
$wp_customize->add_setting( 'eco_solar_energy_servicesection_buttontext1' , array(
    'default'   => 'Read More',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_servicesection_buttontext1', array(   
    'label'      => esc_html__( 'Button Text 1', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_service_section',   
    'settings'   => 'eco_solar_energy_servicesection_buttontext1',   
    'type' => 'text',         
) ) );
$wp_customize->add_setting('eco_solar_energy_service_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_service_image2', array(       
    'label'      => esc_html__('Image 2', 'eco-solar-energy'),       
    'section'    => 'eco_solar_energy_service_section',       
    'settings'   => 'eco_solar_energy_service_image2',
)));

// //////////  Sub-Title
$wp_customize->add_setting( 'eco_solar_energy_servicesection_title2' , array(
    'default'   => 'Expert Technical Team',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_servicesection_title2', array(   
    'label'      => esc_html__( 'Title 2', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_service_section',   
    'settings'   => 'eco_solar_energy_servicesection_title2',   
    'type' => 'text',         
) ) );
$wp_customize->add_setting( 'eco_solar_energy_servicesection_text2' , array(
    'default'   => 'Lorem Ipsum is simply dummy text of the printing and typesetting',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_servicesection_text2', array(   
    'label'      => esc_html__( 'Text 2', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_service_section',   
    'settings'   => 'eco_solar_energy_servicesection_text2',   
    'type' => 'text',         
) ) );
$wp_customize->add_setting( 'eco_solar_energy_servicesection_buttontext2' , array(
    'default'   => 'Read More',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

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


$wp_customize->add_setting('eco_solar_energy_service_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_service_imag3', array(       
    'label'      => esc_html__('Image 3', 'eco-solar-energy'),       
    'section'    => 'eco_solar_energy_service_section',       
    'settings'   => 'eco_solar_energy_service_image3',
)));

// //////////  Sub-Title
$wp_customize->add_setting( 'eco_solar_energy_servicesection_title3' , array(
    'default'   => 'Expert Technical Team',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_servicesection_title3', array(   
    'label'      => esc_html__( 'Title 3', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_service_section',   
    'settings'   => 'eco_solar_energy_servicesection_title3',   
    'type' => 'text',         
) ) );
$wp_customize->add_setting( 'eco_solar_energy_servicesection_text3' , array(
    'default'   => 'Lorem Ipsum is simply dummy text of the printing and typesetting',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_servicesection_text3', array(   
    'label'      => esc_html__( 'Text 3', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_service_section',   
    'settings'   => 'eco_solar_energy_servicesection_text3',   
    'type' => 'text',         
) ) );
$wp_customize->add_setting( 'eco_solar_energy_servicesection_buttontext3' , array(
    'default'   => 'Read More',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

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