<?php
/**
 * About Section options.
 *
 * @package computer-repair-solutions
 */

$computer_repair_solutions_default = computer_repair_solutions_get_default_theme_options();


$wp_customize->add_section(
    'computer_repair_solutions_featured_services_info_section',
    array(
        'title' => __('Service Info', 'computer-repair-solutions'),
        'priority' => 3,
        'panel' => 'computer_repair_solutions_section_panel',
    )
);

// Enable Section
$wp_customize->add_setting('computer_repair_solutions_enable_featured_services_section', 
	array(
	'default' 			=> $computer_repair_solutions_default['computer_repair_solutions_enable_featured_services_section'],
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'computer_repair_solutions_sanitize_switch'
	)
);

$wp_customize->add_control('computer_repair_solutions_enable_featured_services_section', 
	array(		
	'label' 	=> __('Enable Section', 'computer-repair-solutions'),
	'section' 	=> 'computer_repair_solutions_featured_services_info_section',
	'settings'  => 'computer_repair_solutions_enable_featured_services_section',
	'type' 		=> 'checkbox',	
	)
);


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

// Section Title
$wp_customize->add_setting(
    'theme_options[featured_services_section_maintaitle]',
    array(
        'default' => $computer_repair_solutions_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', 'computer-repair-solutions'),
        'section' => 'computer_repair_solutions_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' => $computer_repair_solutions_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', 'computer-repair-solutions'),
        'section' => 'computer_repair_solutions_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' => $computer_repair_solutions_default['featured_services_section_text'],
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_textarea_field'
    )
);
$wp_customize->add_control(
    'theme_options[featured_services_section_text]',
    array(
        'label' => __('Text', 'computer-repair-solutions'),
        'section' => 'computer_repair_solutions_featured_services_info_section',
        'settings' => 'theme_options[featured_services_section_text]',
        'type' => 'textarea'
    )
);
// === Featured Services Icons ===
$wp_customize->add_setting('featured_icon_servicesfirst', array(
    'default' => 'fa-solid fa-desktop',
    'type' => 'theme_mod',
    'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control('featured_icon_servicesfirst', array(
    'label' => __('Icon for Service 1', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'text',
    'description' => __('Enter Font Awesome class, e.g., fa-solid fa-bolt', 'computer-repair-solutions'),
));


$wp_customize->add_setting('featured_services_page_first', array(
    'type' => 'theme_mod',
    'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_first', array(
    'label' => __('Select Page 1', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'dropdown-pages',
)));

$wp_customize->add_setting('featured_icon_services_sec', array(
    'default' => 'fa-solid fa-lightbulb',
    'type' => 'theme_mod',
    'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control('featured_icon_services_sec', array(
    'label' => __('Icon for Service 2', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'text',
    'description' => __('Enter Font Awesome class, e.g., fa-solid fa-lightbulb', 'computer-repair-solutions'),
));


$wp_customize->add_setting('featured_services_page_sec', array(
    'type' => 'theme_mod',
    'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_sec', array(
    'label' => __('Select Page 2', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'dropdown-pages',
)));
$wp_customize->add_setting('featured_icon_services_third', array(
    'default' => 'fa-solid fa-hard-drive',
    'type' => 'theme_mod',
    'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control('featured_icon_services_third', array(
    'label' => __('Icon for Service 3', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'text',
    'description' => __('Enter Font Awesome class, e.g., fa-solid fa-plug', 'computer-repair-solutions'),
));
$wp_customize->add_setting('featured_services_page_third', array(
    'type' => 'theme_mod',
    'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_third', array(
    'label' => __('Select Page 3', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'dropdown-pages',
)));

// === Featured Services Icons ===
$wp_customize->add_setting('featured_icon_services_four', array(
    'default' => 'fa-solid fa-laptop',
    'type' => 'theme_mod',
    'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control('featured_icon_services_four', array(
    'label' => __('Icon for Service 4', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'text',
    'description' => __('Enter Font Awesome class, e.g., fa-solid fa-bolt', 'computer-repair-solutions'),
));


$wp_customize->add_setting('featured_services_page_four', array(
    'type' => 'theme_mod',
    'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_four', array(
    'label' => __('Select Page 4', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'dropdown-pages',
)));



$wp_customize->add_setting('featured_icon_services_five', array(
    'default' => 'fa-solid fa-desktop',
    'type' => 'theme_mod',
    'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control('featured_icon_services_five', array(
    'label' => __('Icon for Service 5', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'text',
    'description' => __('Enter Font Awesome class, e.g., fa-solid fa-bolt', 'computer-repair-solutions'),
));


$wp_customize->add_setting('featured_services_page_five', array(
    'type' => 'theme_mod',
    'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_five', array(
    'label' => __('Select Page 5', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'dropdown-pages',
)));

$wp_customize->add_setting('featured_icon_services_six', array(
    'default' => 'fa-solid fa-lightbulb',
    'type' => 'theme_mod',
    'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control('featured_icon_services_six', array(
    'label' => __('Icon for Service 6', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'text',
    'description' => __('Enter Font Awesome class, e.g., fa-solid fa-lightbulb', 'computer-repair-solutions'),
));


$wp_customize->add_setting('featured_services_page_six', array(
    'type' => 'theme_mod',
    'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_six', array(
    'label' => __('Select Page 6', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'dropdown-pages',
)));
$wp_customize->add_setting('featured_icon_services_seven', array(
    'default' => 'fa-solid fa-hard-drive',
    'type' => 'theme_mod',
    'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control('featured_icon_services_seven', array(
    'label' => __('Icon for Service 7', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'text',
    'description' => __('Enter Font Awesome class, e.g., fa-solid fa-plug', 'computer-repair-solutions'),
));
$wp_customize->add_setting('featured_services_page_seven', array(
    'type' => 'theme_mod',
    'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_seven', array(
    'label' => __('Select Page 7', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'dropdown-pages',
)));

// === Featured Services Icons ===
$wp_customize->add_setting('featured_icon_services_eight', array(
    'default' => 'fa-solid fa-laptop',
    'type' => 'theme_mod',
    'sanitize_callback' => 'sanitize_text_field',
));
$wp_customize->add_control('featured_icon_services_eight', array(
    'label' => __('Icon for Service 8', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'text',
    'description' => __('Enter Font Awesome class, e.g., fa-solid fa-bolt', 'computer-repair-solutions'),
));


$wp_customize->add_setting('featured_services_page_eight', array(
    'type' => 'theme_mod',
    'sanitize_callback' => 'absint',
));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'featured_services_page_eight', array(
    'label' => __('Select Page 8', 'computer-repair-solutions'),
    'section' => 'computer_repair_solutions_featured_services_info_section',
    'type' => 'dropdown-pages',
)));
