<?php
/**
 * About Section options.
 *
 * @package voltmaster-electrician
 */

$voltmaster_electrician_default = voltmaster_electrician_get_default_theme_options();


$wp_customize->add_section(
    'voltmasterelectrician_featured_services_info_section',
    array(
        'title' => __('Service Info', 'voltmaster-electrician'),
        'priority' => 3,
        'panel' => 'voltmaster_electrician_section_panel',
    )
);

// Enable Section
$wp_customize->add_setting('voltmasterelectrician_enable_featured_services_section', 
	array(
	'default' 			=> $voltmaster_electrician_default['voltmasterelectrician_enable_featured_services_section'],
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'voltmaster_electrician_sanitize_switch'
	)
);

$wp_customize->add_control('voltmasterelectrician_enable_featured_services_section', 
	array(		
	'label' 	=> __('Enable Section', 'voltmaster-electrician'),
	'section' 	=> 'voltmasterelectrician_featured_services_info_section',
	'settings'  => 'voltmasterelectrician_enable_featured_services_section',
	'type' 		=> 'checkbox',	
	)
);


// /// effects
$wp_customize->add_setting('voltmaster_electrician_featured_services_onload_effects', array(
    'default' => 'zoom-in',
    'sanitize_callback' => 'voltmaster_electrician_sanitize_choices',
));
$wp_customize->add_control('voltmaster_electrician_featured_services_onload_effects', array(
    'type' => 'select',
    'label' => __('Box Onload Transition Effects', 'voltmaster-electrician'),
    'choices' => array(
        'wow bounceInLeft' => __('Bounce In Left', 'voltmaster-electrician'),
        'wow bounceInRight' => __('Bounce In Right', 'voltmaster-electrician'),
        'wow bounceInUp' => __('Bounce In Up', 'voltmaster-electrician'),
        'wow bounceInDown' => __('Bounce In Down', 'voltmaster-electrician'),
        'wow zoomIn' => __('Zoom In', 'voltmaster-electrician'),
        'wow zoomOut' => __('Zoom Out', 'voltmaster-electrician'),
        'wow fadeInDown' => __('Fade In Down', 'voltmaster-electrician'),
        'wow fadeInUp' => __('Fade In Up', 'voltmaster-electrician'),
        'wow fadeInLeft' => __('Fade In Left', 'voltmaster-electrician'),
        'wow fadeInRight' => __('Fade In Right', 'voltmaster-electrician'),
        'flip-up' => __('Flip Up', 'voltmaster-electrician')
    ),
    'section' => 'voltmasterelectrician_featured_services_info_section',
));

// Section Title
$wp_customize->add_setting(
    'theme_options[featured_services_section_maintaitle]',
    array(
        'default' => $voltmaster_electrician_default['featured_services_section_maintaitle'],
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    'theme_options[featured_services_section_maintaitle]',
    array(
        'label' => __('Heading', 'voltmaster-electrician'),
        'section' => 'voltmasterelectrician_featured_services_info_section',
        'settings' => 'theme_options[featured_services_section_maintaitle]',
        'type' => 'text'
    )
);

// Section Sub-Title
$wp_customize->add_setting(
    'theme_options[featured_services_section_subtitle]',
    array(
        'default' => $voltmaster_electrician_default['featured_services_section_subtitle'],
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    'theme_options[featured_services_section_subtitle]',
    array(
        'label' => __('Sub Heading', 'voltmaster-electrician'),
        'section' => 'voltmasterelectrician_featured_services_info_section',
        'settings' => 'theme_options[featured_services_section_subtitle]',
        'type' => 'text'
    )
);
// Section Sub-Title
$wp_customize->add_setting(
    'theme_options[featured_services_section_text]',
    array(
        'default' => $voltmaster_electrician_default['featured_services_section_text'],
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    'theme_options[featured_services_section_text]',
    array(
        'label' => __('Text', 'voltmaster-electrician'),
        'section' => 'voltmasterelectrician_featured_services_info_section',
        'settings' => 'theme_options[featured_services_section_text]',
        'type' => 'text'
    )
);
// === Featured Services Icons ===
$wp_customize->add_setting('featured_icon_services_1', array(
    'default' => 'fa-solid fa-bolt',
    'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control('featured_icon_services_1', array(
    'label' => __('Icon for Service 1', 'voltmaster-electrician'),
    'section' => 'voltmasterelectrician_featured_services_info_section',
    'type' => 'text',
    'description' => __('Enter Font Awesome class, e.g., fa-solid fa-bolt', 'voltmaster-electrician'),
));


$wp_customize->add_setting('featured_services_page_1', array(
    'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_1', array(
    'label' => __('Select Page 1', 'voltmaster-electrician'),
    'section' => 'voltmasterelectrician_featured_services_info_section',
    'type' => 'dropdown-pages',
)));

$wp_customize->add_setting('featured_icon_services_2', array(
    'default' => 'fa-solid fa-lightbulb',
    'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control('featured_icon_services_2', array(
    'label' => __('Icon for Service 2', 'voltmaster-electrician'),
    'section' => 'voltmasterelectrician_featured_services_info_section',
    'type' => 'text',
    'description' => __('Enter Font Awesome class, e.g., fa-solid fa-lightbulb', 'voltmaster-electrician'),
));


$wp_customize->add_setting('featured_services_page_2', array(
    'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_2', array(
    'label' => __('Select Page 2', 'voltmaster-electrician'),
    'section' => 'voltmasterelectrician_featured_services_info_section',
    'type' => 'dropdown-pages',
)));
$wp_customize->add_setting('featured_icon_services_3', array(
    'default' => 'fa-solid fa-plug',
    'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control('featured_icon_services_3', array(
    'label' => __('Icon for Service 3', 'voltmaster-electrician'),
    'section' => 'voltmasterelectrician_featured_services_info_section',
    'type' => 'text',
    'description' => __('Enter Font Awesome class, e.g., fa-solid fa-plug', 'voltmaster-electrician'),
));
$wp_customize->add_setting('featured_services_page_3', array(
    'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_3', array(
    'label' => __('Select Page 3', 'voltmaster-electrician'),
    'section' => 'voltmasterelectrician_featured_services_info_section',
    'type' => 'dropdown-pages',
)));

// $wp_customize->add_setting('featured_services_page_4', array(
//     'sanitize_callback' => 'absint',
// ));
// $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_4', array(
//     'label' => __('Select Page 4', 'voltmaster-electrician'),
//     'section' => 'voltmasterelectrician_featured_services_info_section',
//     'type' => 'dropdown-pages',
// )));
