<?php
/**
 * About Section options.
 *
 * @package express-movers
 */

$express_movers_default = express_movers_get_default_theme_options();

/** About Info section */
$wp_customize->add_section(
    'expressmovers_featured_about_info_section',
    array(
        'title'    => __( 'About Info', 'express-movers' ),      
        'priority' => 3,
        'panel'      => 'express_movers_section_panel',       	
    )
);

// Enable Section
$wp_customize->add_setting('expressmovers_enable_featured_about_section', 
	array(
	'default' 			=> $express_movers_default['expressmovers_enable_featured_about_section'],
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'express_movers_sanitize_switch'
	)
);

$wp_customize->add_control('expressmovers_enable_featured_about_section', 
	array(		
	'label' 	=> __('Enable Section', 'express-movers'),
	'section' 	=> 'expressmovers_featured_about_info_section',
	'settings'  => 'expressmovers_enable_featured_about_section',
	'type' 		=> 'checkbox',	
	)
);

//Section Image
    $wp_customize->add_setting( 'express_movers_about_image1', array(  
        'sanitize_callback' => 'express_movers_sanitise_custom_url'
        ));
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'express_movers_about_image1', array(
            'label'      => __( 'Section Image', 'express-movers' ),
            'section'    => 'expressmovers_featured_about_info_section',
            'settings'   => 'express_movers_about_image1',
    )));

//Section Image 2
    $wp_customize->add_setting( 'express_movers_about_image2', array(
        'sanitize_callback' => 'express_movers_sanitise_custom_url'
        ));
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'express_movers_about_image2', array(
            'label'      => __( 'Section Image 2', 'express-movers' ),
            'section'    => 'expressmovers_featured_about_info_section',
            'settings'   => 'express_movers_about_image2',
    )));


// // box 3 number
// $wp_customize->add_setting('express_movers_aboutus_image_box3_number', 
//     array(
//     'default'           => __('3K', 'express-movers'),
//     'type'              => 'theme_mod',
//     'capability'        => 'edit_theme_options',    
//     'sanitize_callback' => 'sanitize_text_field'
//     )
// );
// $wp_customize->add_control('express_movers_aboutus_image_box3_number', 
//     array(
//     'label'       => __('Box 3 Number', 'express-movers'),
//     'section'     => 'expressmovers_featured_about_info_section',   
//     'settings'    => 'express_movers_aboutus_image_box3_number',           
//     'type'        => 'text'
//     )
// );

// // box 3 text
// $wp_customize->add_setting('express_movers_aboutus_image_box3_text', 
//     array(
//     'default'           => __('Construction Award', 'express-movers'),
//     'type'              => 'theme_mod',
//     'capability'        => 'edit_theme_options',    
//     'sanitize_callback' => 'sanitize_text_field'
//     )
// );
// $wp_customize->add_control('express_movers_aboutus_image_box3_text', 
//     array(
//     'label'       => __('Box 3 Text', 'express-movers'),
//     'section'     => 'expressmovers_featured_about_info_section',   
//     'settings'    => 'express_movers_aboutus_image_box3_text',           
//     'type'        => 'text'
//     )
// );

$wp_customize->add_setting('express_movers_featured_about_onload_effects', array(
    'default' => 'wow zoomIn',
    'sanitize_callback' => 'express_movers_sanitize_choices',
));

$wp_customize->add_control('express_movers_featured_about_onload_effects', array(
    'label' => __('Box Onload Transition Effects', 'express-movers'),
    'section' => 'expressmovers_featured_about_info_section',
    'settings' => 'express_movers_featured_about_onload_effects',
    'type' => 'select',
    'choices' => array(
        'wow bounceInLeft' => __('Bounce In Left', 'express-movers'),
        'wow bounceInRight' => __('Bounce In Right', 'express-movers'),
        'wow bounceInUp' => __('Bounce In Up', 'express-movers'),
        'wow bounceInDown' => __('Bounce In Down', 'express-movers'),
        'wow zoomIn' => __('Zoom In', 'express-movers'),
        'wow zoomOut' => __('Zoom Out', 'express-movers'),
        'wow fadeInDown' => __('Fade In Down', 'express-movers'),
        'wow fadeInUp' => __('Fade In Up', 'express-movers'),
        'wow fadeInLeft' => __('Fade In Left', 'express-movers'),
        'wow fadeInRight' => __('Fade In Right', 'express-movers'),
        'flip-up' => __('Flip Up', 'express-movers'),
    ),
));


// Section Title
$wp_customize->add_setting('theme_options[featured_about_section_aboutus_subheading]', 
    array(
        'default'           => $express_movers_default['featured_about_section_aboutus_subheading'],
        'type'              => 'theme_mod',
        'capability'        => 'edit_theme_options',	
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('theme_options[featured_about_section_aboutus_subheading]', 
    array(
        'label'       => __('Sub Heading', 'express-movers'),
        'section'     => 'expressmovers_featured_about_info_section',   
        'settings'    => 'theme_options[featured_about_section_aboutus_subheading]',		
        'type'        => 'text'
    )
);


// // Section Title
$wp_customize->add_setting('theme_options[featured_about_section_aboutus_heading]', 
	array(
	'default'           => $express_movers_default['featured_about_section_aboutus_heading'],
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',	
	'sanitize_callback' => 'sanitize_text_field'
	)
);
$wp_customize->add_control('theme_options[featured_about_section_aboutus_heading]', 
	array(
	'label'       => __('Heading 1', 'express-movers'),
	'section'     => 'expressmovers_featured_about_info_section',   
	'settings'    => 'theme_options[featured_about_section_aboutus_heading]',		
	'type'        => 'text'
	)
);

// // Section Title
$wp_customize->add_setting('theme_options[featured_about_section_aboutus_heading1]', 
	array(
	'default'           => $express_movers_default['featured_about_section_aboutus_heading1'],
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',	
	'sanitize_callback' => 'sanitize_text_field'
	)
);
$wp_customize->add_control('theme_options[featured_about_section_aboutus_heading1]', 
	array(
	'label'       => __('Heading 2', 'express-movers'),
	'section'     => 'expressmovers_featured_about_info_section',   
	'settings'    => 'theme_options[featured_about_section_aboutus_heading1]',		
	'type'        => 'text'
	)
);

// Description text
$wp_customize->add_setting('theme_options[featured_about_section_description]',
	array(
	'default'           => $express_movers_default['featured_about_section_description'],
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field'
	)
);
$wp_customize->add_control('theme_options[featured_about_section_description]',
	array(
	'label'       => __('Description', 'express-movers'),
	'section'     => 'expressmovers_featured_about_info_section',
	'settings'    => 'theme_options[featured_about_section_description]',
	'type'        => 'text'
	)
);

// About icon controls (stat + checklist)
$express_movers_about_icon_choices = array(
    'fa-bullseye' => __('Bullseye', 'express-movers'),
    'fa-bolt' => __('Bolt', 'express-movers'),
    'fa-shipping-fast' => __('Shipping Fast', 'express-movers'),
    'fa-globe' => __('Globe', 'express-movers'),
    'fa-clock' => __('Clock', 'express-movers'),
    'fa-map-marker-alt' => __('Map Marker', 'express-movers'),
    'fa-check' => __('Check', 'express-movers'),
    'fa-check-circle' => __('Check Circle', 'express-movers'),
);

$wp_customize->add_setting('theme_options[featured_about_stat_icon_1]', array(
    'default' => $express_movers_default['featured_about_stat_icon_1'],
    'type' => 'theme_mod',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'express_movers_sanitize_choices',
));
$wp_customize->add_control('theme_options[featured_about_stat_icon_1]', array(
    'label' => __('Stat Icon 1', 'express-movers'),
    'section' => 'expressmovers_featured_about_info_section',
    'settings' => 'theme_options[featured_about_stat_icon_1]',
    'type' => 'select',
    'choices' => $express_movers_about_icon_choices,
));
// box 1 number
$wp_customize->add_setting('express_movers_aboutus_image_box1_number', 
    array(
    'default'           => __('25', 'express-movers'),
    'type'              => 'theme_mod',
    'capability'        => 'edit_theme_options',    
    'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('express_movers_aboutus_image_box1_number', 
    array(
    'label'       => __('Box 1 Number', 'express-movers'),
    'section'     => 'expressmovers_featured_about_info_section',   
    'settings'    => 'express_movers_aboutus_image_box1_number',           
    'type'        => 'text'
    )
);

// box 1 text
$wp_customize->add_setting('express_movers_aboutus_image_box1_text', 
    array(
    'default'           => __('Construction Award', 'express-movers'),
    'type'              => 'theme_mod',
    'capability'        => 'edit_theme_options',    
    'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('express_movers_aboutus_image_box1_text', 
    array(
    'label'       => __('Box 1 Text', 'express-movers'),
    'section'     => 'expressmovers_featured_about_info_section',   
    'settings'    => 'express_movers_aboutus_image_box1_text',           
    'type'        => 'text'
    )
);

// box 2 number
$wp_customize->add_setting('express_movers_aboutus_image_box2_number', 
    array(
    'default'           => __('426', 'express-movers'),
    'type'              => 'theme_mod',
    'capability'        => 'edit_theme_options',    
    'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('express_movers_aboutus_image_box2_number', 
    array(
    'label'       => __('Box 2 Number', 'express-movers'),
    'section'     => 'expressmovers_featured_about_info_section',   
    'settings'    => 'express_movers_aboutus_image_box2_number',           
    'type'        => 'text'
    )
);


$wp_customize->add_setting('theme_options[featured_about_stat_icon_2]', array(
    'default' => $express_movers_default['featured_about_stat_icon_2'],
    'type' => 'theme_mod',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'express_movers_sanitize_choices',
));
$wp_customize->add_control('theme_options[featured_about_stat_icon_2]', array(
    'label' => __('Stat Icon 2', 'express-movers'),
    'section' => 'expressmovers_featured_about_info_section',
    'settings' => 'theme_options[featured_about_stat_icon_2]',
    'type' => 'select',
    'choices' => $express_movers_about_icon_choices,
));

// box 2 text
$wp_customize->add_setting('express_movers_aboutus_image_box2_text', 
    array(
    'default'           => __('Experienced Workers', 'express-movers'),
    'type'              => 'theme_mod',
    'capability'        => 'edit_theme_options',    
    'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('express_movers_aboutus_image_box2_text', 
    array(
    'label'       => __('Box 2 Text', 'express-movers'),
    'section'     => 'expressmovers_featured_about_info_section',   
    'settings'    => 'express_movers_aboutus_image_box2_text',           
    'type'        => 'text'
    )
);
$wp_customize->add_setting('theme_options[featured_about_list_icon]', array(
    'default' => $express_movers_default['featured_about_list_icon'],
    'type' => 'theme_mod',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'express_movers_sanitize_choices',
));
$wp_customize->add_control('theme_options[featured_about_list_icon]', array(
    'label' => __('Checklist Icon', 'express-movers'),
    'section' => 'expressmovers_featured_about_info_section',
    'settings' => 'theme_options[featured_about_list_icon]',
    'type' => 'select',
    'choices' => $express_movers_about_icon_choices,
));
// // Li Text
$wp_customize->add_setting('theme_options[featured_about_section_li_items1]', 
	array(
	'default'           => $express_movers_default['featured_about_section_li_items1'],
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',	
	'sanitize_callback' => 'sanitize_text_field'
	)
);
$wp_customize->add_control('theme_options[featured_about_section_li_items1]', 
	array(
	'label'       => __('Feature Text 1', 'express-movers'),
	'section'     => 'expressmovers_featured_about_info_section',   
	'settings'    => 'theme_options[featured_about_section_li_items1]',		
	'type'        => 'text'
	)
);

$wp_customize->add_setting('theme_options[featured_about_section_li_items2]', 
	array(
	'default'           => $express_movers_default['featured_about_section_li_items2'],
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',	
	'sanitize_callback' => 'sanitize_text_field'
	)
);
$wp_customize->add_control('theme_options[featured_about_section_li_items2]', 
	array(
	'label'       => __('Feature Text 2', 'express-movers'),
	'section'     => 'expressmovers_featured_about_info_section',   
	'settings'    => 'theme_options[featured_about_section_li_items2]',		
	'type'        => 'text'
	)
);

$wp_customize->add_setting('theme_options[featured_about_section_li_items3]',
	array(
	'default'           => $express_movers_default['featured_about_section_li_items3'],
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field'
	)
);
$wp_customize->add_control('theme_options[featured_about_section_li_items3]',
	array(
	'label'       => __('Feature Text 3', 'express-movers'),
	'section'     => 'expressmovers_featured_about_info_section',
	'settings'    => 'theme_options[featured_about_section_li_items3]',
	'type'        => 'text'
	)
);

$wp_customize->add_setting('theme_options[featured_about_section_li_items4]',
	array(
	'default'           => $express_movers_default['featured_about_section_li_items4'],
	'type'              => 'theme_mod',
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field'
	)
);
$wp_customize->add_control('theme_options[featured_about_section_li_items4]',
	array(
	'label'       => __('Feature Text 4', 'express-movers'),
	'section'     => 'expressmovers_featured_about_info_section',
	'settings'    => 'theme_options[featured_about_section_li_items4]',
	'type'        => 'text'
	)
);

// Button
$wp_customize->add_setting('express_movers_aboutus_button_text', 
    array(
    'default'           => __('Discover Our Story', 'express-movers'),
    'type'              => 'theme_mod',
    'capability'        => 'edit_theme_options',    
    'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('express_movers_aboutus_button_text', 
    array(
    'label'       => __('Button Text', 'express-movers'),
    'section'     => 'expressmovers_featured_about_info_section',   
    'settings'    => 'express_movers_aboutus_button_text',           
    'type'        => 'text'
    )
);

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

$wp_customize->add_control( 'express_movers_aboutus_button_url', array(
    'label'       => __( 'Button URL', 'express-movers' ),
    'section'     => 'expressmovers_featured_about_info_section',
    'settings'    => 'express_movers_aboutus_button_url',
    'type'        => 'url',
));









//Section Image
    $wp_customize->add_setting( 'express_movers_about_image1', array(  
        'sanitize_callback' => 'express_movers_sanitise_custom_url'
        ));
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'express_movers_about_image1', array(
            'label'      => __( 'Section Image', 'express-movers' ),
            'section'    => 'expressmovers_featured_about_info_section',
            'settings'   => 'express_movers_about_image1',
    )));

//Section Image 2
    $wp_customize->add_setting( 'express_movers_about_image2', array(
        'sanitize_callback' => 'express_movers_sanitise_custom_url'
        ));
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'express_movers_about_image2', array(
            'label'      => __( 'Section Image 2', 'express-movers' ),
            'section'    => 'expressmovers_featured_about_info_section',
            'settings'   => 'express_movers_about_image2',
    )));
// Award icon control
$express_movers_about_award_icon_choices = array(
    'fa-award' => __('Award', 'express-movers'),
    'fa-medal' => __('Medal', 'express-movers'),
    'fa-certificate' => __('Certificate', 'express-movers'),
    'fa-trophy' => __('Trophy', 'express-movers'),
);

$wp_customize->add_setting('theme_options[featured_about_award_icon]', array(
    'default' => $express_movers_default['featured_about_award_icon'],
    'type' => 'theme_mod',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'express_movers_sanitize_choices',
));
$wp_customize->add_control('theme_options[featured_about_award_icon]', array(
    'label' => __('Award Icon', 'express-movers'),
    'section' => 'expressmovers_featured_about_info_section',
    'settings' => 'theme_options[featured_about_award_icon]',
    'type' => 'select',
    'choices' => $express_movers_about_award_icon_choices,
));

    
// Section Title
$wp_customize->add_setting('theme_options[express_movers_featured_about_section_aboutus_experienceyearno]', 
    array(
        'default'           => $express_movers_default['express_movers_featured_about_section_aboutus_experienceyearno'],
        'type'              => 'theme_mod',
        'capability'        => 'edit_theme_options',	
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('theme_options[express_movers_featured_about_section_aboutus_experienceyearno]', 
    array(
        'label'       => __('Experience Year Number', 'express-movers'),
        'section'     => 'expressmovers_featured_about_info_section',   
        'settings'    => 'theme_options[express_movers_featured_about_section_aboutus_experienceyearno]',		
        'type'        => 'text'
    )
);

// Section Title
$wp_customize->add_setting('theme_options[featured_about_section_aboutus_experienceyear]', 
    array(
        'default'           => $express_movers_default['featured_about_section_aboutus_experienceyear'],
        'type'              => 'theme_mod',
        'capability'        => 'edit_theme_options',	
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control('theme_options[featured_about_section_aboutus_experienceyear]', 
    array(
        'label'       => __('Experience Year Text', 'express-movers'),
        'section'     => 'expressmovers_featured_about_info_section',   
        'settings'    => 'theme_options[featured_about_section_aboutus_experienceyear]',		
        'type'        => 'text'
    )
);
