<?php
/**
 * Returns theme options
 *
 * Uses sane defaults in case the user has not configured any theme options yet.
 */
if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
}
// Return theme options
function pmthemes_theme_options() {
    
	// Merge Theme Options Array from Database with Default Options Array
	$theme_options = wp_parse_args( 
		
		// Get saved theme options from WP database
		get_option( 'pmthemes_theme_options', array() ), 
		
		// Merge with Default Options if setting was not saved yet
		pmthemes_default_options() 
		
	);
	// Return theme options
	return $theme_options;
}
// Build default options array
function pmthemes_default_options() {
	$default_options = array(
	    // General Colors
        'general_bg_color' 					=> '#3c3c3c',
        'gen_head_font_color' 				=> '#f9f9f9',
        'gen_head_border_color' 			=> '#e5e5e5',
        'body_borders_color' 			    => '#f9f9f9',
        'default_text_color' 			    => '#111111',
        'link_color' 			            => '#0066cc',
        'sctop_bg_color' 			        => '#414141',
        'sctop_arrow_color' 			    => '#ffffff',
        'sctop_brdr_color' 			        => '#646464',
        'sctop_hover_color' 			    => '#121212',
        'cmbtn_bg_color' 			        => '#003640',
        'cmbtn_text_color' 			        => '#f9f9f9',
        'cmbtn_btn_hover' 			        => '#121212',
        'gen_check_yes'					    => true,
        'gen_check_no'					    => false,

        // Font Style
        'text_font' 						=> 'Arial',
        'site_title_font' 					=> 'Helvetica',
        'title_font' 						=> 'Arial',
        'navi_font' 						=> 'Arial',
        'widget_title_font' 				=> 'Arial',
        'available_fonts'					=> 'default',

        // Layouts
        'no_body_padding'					=> false,
        'no_body_margin'                    => false,
        'no_body_border'                    => false,
        'layout' 							=> 'right-sidebar',
        'pmth_wc_shop_lyt' 					=> 'wc_full_page',
        'theme_width' 						=> 'wd1',
        'theme_style' 						=> 'boxed-one',
        'theme_styles' 						=> 'colors',
        'wrapper_color' 			        => '#ffffff',

        // Header Settings
        'header_logo' 						=> '',
        'header_padding'					=> false,
        'header_tagline' 					=> false,
        'header_search' 					=> false,
        'header_icons' 						=> true,
        'header_adjust'					    => false,
        'header_gradient_enable'			=> false,

        'site_title_color' 			        => '#3c3c3c',
        'site_title_shadow' 			    => '#222',
        'site_title_shadis'				    => true,
        'title_font_size'					=> '49.5',
        'title_font_size_mobile'			=> '29.5',
        'title_font_space'					=> '3.05',
        'title_describe_size'				=> '12.5',
        'logo_title_width'					=> '37.55',
        'header_banner_width'				=> '61.55',

        'header_topbo_height'				=> '3',
        'header_bottom_bor_height'			=> '3',
        'headline_top_bor_height'			=> '15',

        'header_line_enable' 				=> true,
        'header_padding_top'			    => '1',
        'header_padding_right'  			=> '1',
        'header_padding_bottom' 			=> '1',
        'header_padding_left'   			=> '1',
        
        'header_bg_color' 			        => '#f9f9f9',
        'header_backgr' 			        => '#f9f9f9',
        'header_grad_ient' 			        => '#ffffff',
        'header_topbo' 			            => '#e5e5e5',
        'header_bottom_border' 			    => '#e5e5e5',
        'headline_top_border' 			    => '#333332',
        'headline_bottom_border' 			=> '#777772',
        'site_tagline_color' 			    => '#444442',
        'header_gr_dir' 				    => 'to bottom',

        // Top Bar Settings
        'topbar_show' 						=> false,
        'top_bar_loc' 						=> 'top-bar-most',
        'topbar_date' 						=> true,
        'topbar_icons' 						=> true,
        'top_bar_bg' 			            => '#777777',
        'top_bar_top_border' 			    => '#f9f9f9',
        'top_bar_bottom_border' 			=> '#f9f9f9',
        'top_bar_font_color' 			    => '#f9f9f9',


        // Top Nav Settings
        'topnav_down' 						=> true,
        'topnav_align' 						=> 'top-menu-left',
        'topnav_color' 			            => '#373c43',
        'topnav_current' 			        => '#4a525d',
        'topnav_hover' 			            => '#121212',
        'topnav_dropdown' 			        => '#303030',
        'topnav_drophov' 			        => '#121212',
        'topnav_dropbor' 			        => '#777777',
        'topmenu_font_size'   			    => '0.95',
        'topmenu_bar_padding'   			=> '0.95',

        // Main Nav Settings
        'navi_border_enable'				=> false,
        'navi_dropdown_noborder'			=> false,
        'search_icon' 						=> true,
        'no_drpdown_ind' 					=> false,
        'pmth_merge_menus' 			        => false,
        'navi_top_bd_enb' 			        => true,
        'navi_bot_bd_enb' 			        => true,
        'navi_top_bd_clr' 					=> '#c9c9c9',
        'navi_bot_bd_clr' 			        => '#c9c9c9',
        'navi_top_bd_hei' 					=> '3',
        'navi_bot_bd_hei' 			        => '3',

        'gen_nav_font_color' 				=> '#f9f9f9',
        'navi_border' 					    => '#797979',
        'navi_color' 					    => '#3c3c3c',
        'navi_hover' 					    => '#121212',
        'navi_dropdown' 					=> '#303030',
        'navi_drophov' 					    => '#303030',
        'navi_dropdown_border' 			    => '#777777',
        'mainmenu_font_size'   			    => '1.15',
        'mainmenu_bar_padding'   			=> '0.75',
        'nav_on_header'				        => 'main-menu-below',

        // Sticky Nav Settings
        'sticky_navi' 						=> 0,

        // Home Page Settings
        'frontbar_font_clr' 			    => '#ffffff',
        'frontbar_bg_color' 			    => '#3c3c3c',
        'front_header_bg_color' 			=> '',
        'front_header_top_border' 			=> '',
        'front_header_bot_border' 			=> '',
        'fpbar_font_pad_top'			    => '12',
        'fpbar_font_pad_right'  			=> '16',
        'fpbar_font_pad_bottom' 			=> '12',
        'fpbar_font_pad_left'   			=> '16',

        'frontbar_font_size'			    => '1.15',
        'front_page_fonts_size'			    => '1.35',
        'front_page_font_size'			    => '1.05',
        'front_posts_font_size'			    => '0.55',

        // Slider Settings
        'slider_activated_front_page' 		=> 1,
        'show_slider_content' 				=> 1,
        'slider_activated_blog' 			=> 0,
        'sldr_title_clr' 			        => '#f9f9f9',
        'sldr_text_clr' 			        => '#f9f9f9',
        'sldr_bg_clr' 			            => '',
        'sldr_arrow_clr' 			        => '#f9f9f9',
        'sldr_arrow_bg_clr' 			    => '#ffffff',
        'sldr_border_clr' 			        => '',

        // Post Settings
        'title_color' 			            => '#3c3c3c',
        'show_post_dates'					=> false,
        'show_post_author'					=> true,
        'show_post_category'				=> true,
        'hide_post_comment'					=> false,
        'post_thumbnails_index'				=> true,
        'post_thumbnails_single' 			=> false,
        'posts_title_font_size'   			=> '1.95',
        'product_title_font_size'   	    => '1.95',
        'entry_font_sizes'   			    => '1.05',

        // Sidebar Settings
        'widget_title_color' 			    => '#ffffff',
        'widget_header_color' 			    => '#3c3c3c',
        'sidebar_background' 			    => '#f3f3f3',
        'widget_link_color' 			    => '#3c3c3c',
        'widget_text_color' 			    => '#3c3c3c',
        'widget_post_meta_clr' 			    => '#777777',
        'widget_backgr_color' 			    => '#ffffff',
        'sidebar_grad_ient' 			    => '#ffffff',
        'widget_header_bg_color' 			=> '',
        'widget_header_top_border' 			=> '',
        'widget_header_bot_border' 			=> '',
        'sidebar_border_color' 			    => '',
        'sidebar_border_thick' 			    => '1',
        'sidebar_padding_top'			    => '1',
        'sidebar_padding_right'  			=> '1',
        'sidebar_padding_bottom' 			=> '1',
        'sidebar_padding_left'   			=> '1',

        'sidebar_font_pad_top'			    => '12',
        'sidebar_font_pad_right'  			=> '16',
        'sidebar_font_pad_bottom' 			=> '12',
        'sidebar_font_pad_left'   			=> '16',

        'side_bar_heights'				    => false,
        'sidebar_padding_adjust'			=> false,
        'widget_header_styling'			    => false,
        'show_sidebar_border'			    => false,
        'slider_animation' 					=> 'fade',
        'sidecon_width' 			        => '31.33',
        'wgtbar_font_size' 			        => '1.15',
        'wgt_bar_padding' 			        => '0.5',
        'tabbed_font_size' 			        => '0.825',
        'sidebar_gr_dir' 				    => 'to bottom',

        // Tabbed Settings
        'tabbed_bg_color' 			        => '#ffffff',
        'tabbed_header_color' 			    => '#3c3c3c',
        'tabbed_hdtl_color' 			    => '#ffffff',
        'tabbed_linked_color' 			    => '#3c3c3c',
        'tabbed_post_meta_clr' 			    => '#777777',
        'side_tabbed_padding' 			    => '0.75',

        // Footer Widgets Settings
        'footer_widgets_color' 			    => '#333333',
        'footer_each_widget' 			    => '#3c3c3c',
        'footer_widgets_header_bg' 			=> '#3c3c3c',
        'fwidget_grad_ient' 			    => '#ffffff',
        'footer_widgets_texts' 			    => '#cccccc',
        'footer_widgets_pltxt' 			    => '#ffffff',
        'fwidgets'							=> '3',
        'fwidget_gr_dir' 				    => 'to bottom',

        // Footer Settings
        'footer_text'						=> '',
        'track_code'						=> '',
        'footer_texts_borders' 			    => '#454444',
        'footer_texts_colol' 			    => '#c6c6c6',
        'footer_color' 			            => '#121212',
        'footer_top_brdr' 			        => '#454444',
        'footer_bottom_brdr' 			    => '#454444',
        'footer_top_brdr_hei' 			    => '1',
        'footer_bot_brdr_hei' 			    => '1',

        // Related Posts
        'related_post_order' 				=> 'latest-posts',
        'related_posts_single' 				=> false,
        'related_posts_thumb' 				=> true,
        'related_posts_excerpt' 			=> false,
        'related_post_count' 				=> '4',
        'related_post_style' 				=> 'four-cols',
        'related_header_title'				=> 'Related Posts',
        'related_excerpt_length'			=> '55',

        // Archive Settings
        'pmth_grid_col_opt'	                => 'pmth-grid-itmw',
        'pmthemes_display_fullw'		    => false,
        'pmth_arc_align_header'	            => 'pmthleft',
        'pmth_grid_width'	                => 'one-column',
        'pmth_grid_column'	                => 'one-col',
        'pmth_arc_align_img'				=> 'alignleft',
        'pmth_arc_img_size'				    => 'pmth-img-thumb',
        'arch_excerpt_length'	            => '55',
        'posts_length' 						=> 'excerpt',
        'excerpt_text'						=> 'Read more',


        // Scroll to Top Settings
		'link_to_top'						=> true,
		'credit_link' 						=> true,

        // FB Meta Graph
        'fb_meta_graph' 					=> true,
        'fb_app_id' 						=> '621021928047856',
        'default_fb_image' 					=> '',
        'wp_emoji' 					        => true,
        'header_code' 					    => '',
        'activate_google_fonts'			    => true,

	);
	return $default_options;
}