<?php
/**
 * Default theme options.
 *
 * @package express-movers
 */

if ( ! function_exists( 'express_movers_get_default_theme_options' ) ) :

	/**
	 * Get default theme options.
	 *
	 * @since 1.0
	 *
	 * @return array Default theme options.
	 */
function express_movers_get_default_theme_options() {

	$express_movers_defaults = array();
	

    // Front Page Content
	$express_movers_defaults['enable_frontpage_content'] 		= true;

	// Slider Section	
	$express_movers_defaults['enable_featured_slider_section']		    	= true;
	//$express_movers_defaults['show_slider_colors']		    			= false;	
	$express_movers_defaults['featured_slider_content_type']		    	= 'featured_slider_page';
	$express_movers_defaults['featured_slider_category_readmore_text']		= esc_html__('Read More','express-movers');
	$express_movers_defaults['data_slick_speed']					    	= 1000;
	$express_movers_defaults['data_slick_infinite']				    	= 1;
	$express_movers_defaults['data_slick_dots']					    	= 1;
	$express_movers_defaults['data_slick_autoplay']				    	= 1;
	$express_movers_defaults['data_slick_draggable']				    	= 1;
	$express_movers_defaults['data_slick_fade']					    	= 1;
	$express_movers_defaults['number_of_featured_slider_items']	    	= 6;

	// Features Section
	$express_movers_defaults['enable_featured_features_section']			= true;
	//$express_movers_defaults['show_feature_colors']						= false;
	$express_movers_defaults['number_of_featured_features_items']			= 6;
	$express_movers_defaults['featured_features_column']					= 3;
	$express_movers_defaults['featured_features_content_type']				= 'featured_features_page';
	$express_movers_defaults['feture_section_excerpt']						= 25;
	
	// Category Section	
	$express_movers_defaults['expressmovers_enable_featured_category_section']						= true;

	// About Section	
	$express_movers_defaults['expressmovers_enable_featured_about_section']						= true;
    $express_movers_defaults['about_image_show'] 									= true;
	$express_movers_defaults['featured_about_section_aboutus_subheading']							= esc_html__('About SwiftShip', 'express-movers' );
	$express_movers_defaults['express_movers_featured_about_section_aboutus_experienceyearno']		= esc_html__('25 ', 'express-movers' );
	$express_movers_defaults['featured_about_section_aboutus_experienceyear']						= esc_html__('Years Experience', 'express-movers' );
	$express_movers_defaults['featured_about_section_aboutus_heading']							= esc_html__('We Move', 'express-movers' );
	$express_movers_defaults['featured_about_section_aboutus_heading1']							= esc_html__('The World', 'express-movers' );
	$express_movers_defaults['featured_about_section_description']								= esc_html__('25+ years of logistics excellence, delivering trust and reliability across 120+ countries worldwide.', 'express-movers' );
	$express_movers_defaults['featured_about_section_li_items1']					= esc_html__('There Are Many Variations Of Passages Of Lorem Even Slightly Believable.', 'express-movers' );
	$express_movers_defaults['featured_about_section_li_items2'] 					= esc_html__('There Are Many Variations Of Passages Of Lorem Even Slightly Believable.', 'express-movers' );
	$express_movers_defaults['featured_about_section_li_items3'] 					= esc_html__('24/7 customer support in 15+ languages', 'express-movers' );
	$express_movers_defaults['featured_about_section_li_items4'] 					= esc_html__('ISO certified warehouses worldwide', 'express-movers' );
	$express_movers_defaults['featured_about_stat_icon_1']						= 'fa-bullseye';
	$express_movers_defaults['featured_about_stat_icon_2']						= 'fa-bolt';
	$express_movers_defaults['featured_about_list_icon']							= 'fa-check';
	$express_movers_defaults['featured_about_award_icon']							= 'fa-award';

	// service Section	

	$express_movers_defaults['expressmovers_enable_featured_services_section']			= true;
	$express_movers_defaults['featured_services_section_badge']	    	= esc_html__( 'Our Services', 'express-movers' );
	$express_movers_defaults['featured_services_section_maintaitle']	    = esc_html__( 'Complete Logistics Services', 'express-movers' );
	$express_movers_defaults['featured_services_section_subtitle']	    	= esc_html__( 'Tailored solutions for every shipping need, backed by years of industry expertise', 'express-movers' );
	$express_movers_defaults['featured_services_icon_1']	    			= 'fa-ship';
	$express_movers_defaults['featured_services_icon_2']	    			= 'fa-plane';
	$express_movers_defaults['services_excerpt_mainpagelength']			= 11;




	// Inner Blog Page	
	$express_movers_defaults['featured_bloginn_botton_text']				= esc_html__( 'Read More', 'express-movers' );

	return $express_movers_defaults;

}

endif;

/**
*  Get theme options
*/
if ( ! function_exists( 'express_movers_get_option' ) ) :

	/**
	 * Get theme option
	 *
	 * @since 1.0
	 *
	 * @param string $key Option key.
	 * @return mixed Option value.
	 */
	function express_movers_get_option( $key ) {

		$default_options = express_movers_get_default_theme_options();
		if ( empty( $key ) ) {
			return;
		}

		$theme_options = (array)get_theme_mod( 'theme_options' );
		$theme_options = wp_parse_args( $theme_options, $default_options );

		$value = null;

		if ( isset( $theme_options[ $key ] ) ) {
			$value = $theme_options[ $key ];
		}

		return $value;

	}

endif;
