<?php
/**
 * Sets all of our theme defaults.
 *
 * @package Sunset
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

if ( ! function_exists( 'sunset_get_defaults' ) ) {
	/**
	 * Get default options
	 * 
	 * @return array Options defaults.
	 */
	function sunset_get_defaults() {
		return apply_filters(
			'sunset_option_defaults',
			array(
				'sunset_logo_width' => '300',
				'sunset_logo_dark_mode' => '',
				'sunset_preloader_enable' => true,
				'sunset_header_auto_responsive' => false,
				'sunset_header_mobile_breakpoint' => '992',
				'sunset_header_mobile_sticky_disable' => true,
				'sunset_header_mobile_topbar_hide' => false,
				'sunset_header_type' => 'header_1',
				'sunset_header_horizontal_align' => 'center',
				'sunset_header_menu_hover_type' => 'underlined',
				'sunset_header_menu_mobile_hover_type' => 'underlined',
				'sunset_header_menu_mobile_align_x' => 'left',
				'sunset_header_burger_icon_type' => 'burger',
				'sunset_header_burger_icon_text' => 'MENU',
				'sunset_social_links' => '[]',
				'sunset_header_fixed' => true,
				'sunset_header_dynamic_font_size' => true,
				'sunset_header_full_width' => true,
				'sunset_header_add_search' => true,
				'sunset_header_add_social' => true,
				'sunset_header_add_border' => true,
				'sunset_header_add_shadow' => true,
				'sunset_header_border_height' => '3',
				'sunset_header_search_type' => 'inline',
				'sunset_header_fixed_type' => 'visible',
				'sunset_content_dynamic_font_size' => true,
				'sunset_layout_type' => 'boxed',
				'sunset_layout_width' => '1400',
				'sunset_layout_default_image' => '',
				'sunset_page_header_type' => 'split',
				'sunset_page_stroke_title' => true,
				'sunset_page_hide_title' => false,
				'sunset_page_hide_paddings' => false,
				'sunset_page_show_breadcrumbs' => true,
				'sunset_page_header_animation_type' => 'slide-up',
				'sunset_topbar_enable' => true,
				'sunset_topbar_content' => '',
				'sunset_topbar_full_width' => true,
				'sunset_topbar_align' => 'spread',
				'sunset_topbar_sticky' => true,
				'sunset_topbar_runline' => true,
				'sunset_topbar_runline_duration' => '10',
				'sunset_topbar_add_border' => true,
				'sunset_topbar_border_height' => '2',
				'sunset_topbar_mobile_hide' => false,
				'sunset_footer_type' => 'footer_1',
				'sunset_footer_columns' => '4',
				'sunset_footer_full_width' => true,
				'sunset_footer_add_border' => true,
				'sunset_footer_border_height' => '2',
				'sunset_footer_dynamic_font_size' => true,
				'sunset_footer_mobile_font_size' => '',
				'sunset_footer_widget_mobile_font_size' => '',
				'sunset_copyright_enable' => true,
				'sunset_copyright_full_width' => true,
				'sunset_copyright_align' => 'spread',
				'sunset_copyright_runline' => true,
				'sunset_copyright_add_border' => true,
				'sunset_copyright_border_height' => '2',
				'sunset_copyright_runline_duration' => '10',
				'sunset_copyright_mobile_align' => 'center',		
				'sunset_blog_layout_type' => 'boxed',
				'sunset_blog_grid_type' => 'grid',
				'sunset_blog_grid_columns' => '3',
				'sunset_blog_add_border' => true,
				'sunset_blog_add_shadow' => true,
				'sunset_blog_show_tags' => true,
				'sunset_blog_show_categories' => true,
				'sunset_blog_show_default_category' => false,
				'sunset_blog_show_excerpt' => true,
				'sunset_blog_show_date' => true,
				'sunset_blog_show_read_time' => true,
				'sunset_blog_sidebar_position' => 'left',
				'sunset_blog_title_type' => 'simple',
				'sunset_blog_title_show_posts_count' => true,
				'sunset_blog_title_show_breadcrumbs' => true,
				'sunset_blog_sidebar_sticky' => true,
				'sunset_blog_sidebar_sticky_position' => 'left',
				'sunset_blog_pagination' => 'pages',
				'sunset_blog_image_ratio' => '4-3',
				'sunset_post_layout_type' => 'boxed',
				'sunset_post_content_width' => '960',
				'sunset_post_sidebar_position' => 'left',
				'sunset_post_sidebar_sticky' => true,
				'sunset_post_sidebar_sticky_position' => 'left',
				'sunset_post_toc_enable' => true,
				'sunset_post_toc_tags' => array('h2', 'h3'),
				'sunset_post_stroke_title' => true,
				'sunset_post_show_breadcrumbs' => true,
				'sunset_post_show_date' => true,
				'sunset_post_show_read_time' => true,
				'sunset_post_meta_show' => true,
				'sunset_post_show_default_category' => false,
				'sunset_post_meta_position' => 'bottom',
				'sunset_post_header_type' => 'cover',
				'sunset_post_header_animation_type' => 'typing',
				'sunset_post_related_show' => true,
				'sunset_post_related_type' => 'grid',
				'sunset_post_related_number' => '4',
				'sunset_post_related_columns' => '4',
				'sunset_post_related_title_show' => true,
				'sunset_post_related_title_text' => __("Related posts", 'my-sunset'),				
				'sunset_style_select2_enable' => true,
				'sunset_style_lightbox_enable' => true,
				'sunset_style_custom_checkbox_enable' => true,
				'sunset_style_bg_noise_enable' => false,
				'sunset_style_custom_cursor_enable' => true,
				'sunset_style_custom_cursor_style' => 'disc',
				'sunset_style_input_style' => 'bold',
				'sunset_content_mobile_font_size' => '',
				'sunset_h1_mobile_font_size' => '',
				'sunset_h2_mobile_font_size' => '',
				'sunset_h3_mobile_font_size' => '',
				'sunset_h4_mobile_font_size' => '',
				'sunset_h5_mobile_font_size' => '',
				'sunset_h6_mobile_font_size' => '',
				'sunset_widget_title_mobile_font_size' => '',
				
			)
		);
	}
}

if ( ! function_exists( 'sunset_get_color_defaults' ) ) {
	/**
	 * Get default color options
	 * 
	 * @return array Colors defaults.
	 */
	function sunset_get_color_defaults() {
		return apply_filters(
			'sunset_color_option_defaults',
			array(
				'sunset_header_menu_color' => '#000',
				'sunset_header_menu_hover_color' => '#222222',
				'sunset_header_menu_hover_bg_color' => '#111111',
				'sunset_header_menu_hover_border_color' => '#111111',
				'sunset_header_mobile_menu_background' => '#111111',
				'sunset_header_mobile_menu_color' => '#ffffff',
				'sunset_header_mobile_menu_hover_color' => '#ffffff',
				'sunset_content_bg_color' => '#ffffff',
				'sunset_content_sidebars_bg_color' => '',
				'sunset_content_primary_color' => '#111111',
				'sunset_content_h1_color' => '#111111',
				'sunset_content_h2_color' => '#111111',
				'sunset_content_h3_color' => '#111111',
				'sunset_content_h4_color' => '#111111',
				'sunset_content_h5_color' => '#111111',
				'sunset_content_h6_color' => '#111111',
				'sunset_content_widget_title_color' => '#111111',
				'sunset_content_secondary_color' => '#333333',
				'sunset_content_link_color' => '#EE6983',
				'sunset_content_link_hover_color' => '#850E35',
				'sunset_header_background_color' => '#fff',
				'sunset_header_border_color' => '#111',
				'sunset_topbar_color' => '#111',
				'sunset_topbar_background_color' => '#EE6983',
				'sunset_topbar_border_color' => '#000',
				'sunset_footer_color' => '#111',
				'sunset_footer_widget_title_color' => '#111',
				'sunset_footer_background_color' => '#fff',
				'sunset_footer_border_color' => '#111',
				'sunset_copyright_color' => '#111',
				'sunset_copyright_border_color' => '#111',
				'sunset_copyright_background_color' => '#850E35',
				'sunset_buttons_color' => '#EE6983',
				'sunset_buttons_hover_color' => '#850E35',
				'sunset_buttons_text_color' => '#fff',
				'sunset_buttons_hover_text_color' => '#fff',
				'sunset_buttons_border_color' => '#EE6983',
				'sunset_inputs_color' => '',
				'sunset_inputs_text_color' => '#000',
				'sunset_inputs_border_color' => '#EE6983',
				
			)
		);
	}
}

if ( ! function_exists( 'sunset_get_default_fonts' ) ) {
	/**
	 * Get default fonts options.
	 *
	 * @return array Fonts defaults.
	 */
	function sunset_get_default_fonts() {
		return apply_filters( 
			'sunset_font_option_defaults', 
			array(
				'sunset_primary_font' => '{"font":"Montserrat","weight":"regular","transform":"none","size":"18"}',
				'sunset_h1_font' => '{"font":"Montserrat","weight":"700","transform":"uppercase","size":"96"}',
				'sunset_h2_font' => '{"font":"Montserrat","weight":"700","transform":"uppercase","size":"72"}',
				'sunset_h3_font' => '{"font":"Montserrat","weight":"700","transform":"uppercase","size":"64"}',
				'sunset_h4_font' => '{"font":"Montserrat","weight":"700","transform":"uppercase","size":"48"}',
				'sunset_h5_font' => '{"font":"Montserrat","weight":"700","transform":"uppercase","size":"32"}',
				'sunset_h6_font' => '{"font":"Montserrat","weight":"700","transform":"uppercase","size":"24"}',
				'sunset_widget_title_font' => '{"font":"Montserrat","weight":"700","transform":"uppercase","size":"24"}',
				'sunset_menu_font' => '{"font":"Montserrat","weight":"700","transform":"uppercase","size":"18"}',
				'sunset_menu_mobile_font' => '{"font":"Montserrat","weight":"700","transform":"uppercase","size":"24"}',
				'sunset_topbar_font' => '{"font":"Montserrat","weight":"regular","transform":"none","size":"10"}',
				'sunset_footer_font' => '{"font":"Montserrat","weight":"regular","transform":"none","size":"18"}',
				'sunset_footer_widget_title_font' => '{"font":"Montserrat","weight":"regular","transform":"none","size":"24"}',
				'sunset_copyright_font' => '{"font":"Montserrat","weight":"300","transform":"uppercase","size":"10"}',
			)
		);
	}
}
