<?php
/**
 * Default theme options.
 *
 * @package computer-repair-solutions
 */

if (!function_exists('computer_repair_solutions_get_default_theme_options')):

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

		$computer_repair_solutions_defaults = array();



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

		// Slider Section	
		$computer_repair_solutions_defaults['enable_featured_slider_section'] = true;
		$computer_repair_solutions_defaults['featured_slider_content_type'] = 'featured_slider_page';
		$computer_repair_solutions_defaults['featured_slider_category_readmore_text'] = esc_html__('Read More', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_slider_section_heading'] = esc_html__('Professional Electrical Services', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_slider_section_lifirst'] = esc_html__('Same Day Repair', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_slider_section_lisec'] = esc_html__('Affordable Pricing', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_slider_section_lithird'] = esc_html__('Certified Experts', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['data_slick_speed'] = 1000;
		$computer_repair_solutions_defaults['data_slick_infinite'] = 1;
		$computer_repair_solutions_defaults['data_slick_dots'] = 1;
		$computer_repair_solutions_defaults['data_slick_autoplay'] = 1;
		$computer_repair_solutions_defaults['data_slick_draggable'] = 1;
		$computer_repair_solutions_defaults['data_slick_fade'] = 1;
		$computer_repair_solutions_defaults['number_of_featured_slider_items'] = 6;

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


		// About Section	
		$computer_repair_solutions_defaults['computer_repair_solutions_enable_featured_about_section'] = true;
		$computer_repair_solutions_defaults['about_image_show'] = true;
		$computer_repair_solutions_defaults['featured_about_section_aboutus_subheading'] = esc_html__('About Us', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_about_section_aboutus_heading'] = esc_html__('Your Trusted Tech Repair Partner', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_about_section_aboutus_headingfirst'] = esc_html__("With over a decade of experience in computer and laptop repairs, we've established ourselves as the most trusted tech repair service in the area. Our team of certified technicians is dedicated to providing fast, reliable, and affordable solutions for all your device needs.", 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_about_section_aboutus_headingsec'] = esc_html__("From simple software fixes to complex hardware replacements, we handle it all with professionalism, transparency, and care. We use only genuine parts and industry-leading diagnostic tools to ensure every repair meets our high-quality standards.", 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_about_section_aboutus_description'] = esc_html__("Professional repair services backed by 10+ years of experience and 8,000+ satisfied customers", 'computer-repair-solutions');

			$computer_repair_solutions_defaults['featured_icon_image'] = esc_html__('fas fa-solid fas fa-award', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['about_service_imagetextten'] = esc_html__("10+", 'computer-repair-solutions');
		$computer_repair_solutions_defaults['about_service_imagetextyears'] = esc_html__("Years Experience", 'computer-repair-solutions');

		$computer_repair_solutions_defaults['featured_about_section_bxtitlefirst'] = esc_html__('Certified Technicians', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_about_section_bxtitlethird'] = esc_html__('Genuine Parts Only', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_about_section_bxtitlesec'] = esc_html__('Warranty on All Repairs', 'computer-repair-solutions');

		$computer_repair_solutions_defaults['featured_about_section_bxtextfirst'] = esc_html__('All our technicians are certified and have extensive experience in computer repairs', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_about_section_bxtextsec'] = esc_html__('We use only authentic OEM parts to ensure long-lasting repairs', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_about_section_bxtextthird'] = esc_html__('Every repair comes with our comprehensive warranty for your peace of mind', 'computer-repair-solutions');

		$computer_repair_solutions_defaults['featured_icon_aboutfirst'] = esc_html__('fas fa-solid fa-circle-check', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_icon_aboutsec'] = esc_html__('fas fa-solid fa-circle-check', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_icon_aboutthird'] = esc_html__('fas fa-solid fa-circle-check', 
		'computer-repair-solutions');


		$computer_repair_solutions_defaults['featured_about_section_bxtext4'] = esc_html__('Years of Experience', 'computer-repair-solutions');

		// service Section	

		$computer_repair_solutions_defaults['computer_repair_solutions_enable_featured_services_section'] = true;
		$computer_repair_solutions_defaults['featured_services_section_maintaitle'] = esc_html__('Our Services', 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_services_section_subtitle'] = esc_html__("Comprehensive Repair Solutions", 'computer-repair-solutions');
		$computer_repair_solutions_defaults['featured_services_section_text'] = esc_html__("From simple fixes to complex repairs, we've got you covered with expert service", 'computer-repair-solutions');
		$computer_repair_solutions_defaults['services_excerpt_mainpagelength'] = 11;




		// Inner Blog Page	
		$computer_repair_solutions_defaults['featured_bloginn_botton_text'] = esc_html__('Read More', 'computer-repair-solutions');

		return $computer_repair_solutions_defaults;

	}

endif;

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

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

		$default_options = computer_repair_solutions_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;
