<?php
// ARRAY CONTAINING OPTION VALUES TO SETUP PRESET STYLES


// preset style names
function gg_preset_style_names() {
	$ml_key = 'gg_ml';
	
	return array(
		'l_standard'	=> esc_html__("Light", $ml_key) .' - '. esc_html__('Standard', $ml_key),
		'l_minimal'		=> esc_html__("Light", $ml_key) .' - '. esc_html__('Minimal', $ml_key),
		'l_noborder'	=> esc_html__("Light", $ml_key) .' - '. esc_html__('No border', $ml_key),
		'l_photowall'	=> esc_html__("Light", $ml_key) .' - '. esc_html__('Photo wall', $ml_key),
		
		'd_standard'	=> esc_html__("Dark", $ml_key) .' - '. esc_html__('Standard', $ml_key),
		'd_minimal'		=> esc_html__("Dark", $ml_key) .' - '. esc_html__('Minimal', $ml_key),
		'd_noborder'	=> esc_html__("Dark", $ml_key) .' - '. esc_html__('No border', $ml_key),
		'd_photowall'	=> esc_html__("Dark", $ml_key) .' - '. esc_html__('Photo wall', $ml_key),		
	);			
}


// option values to apply
function gg_preset_styles_data($style = '') {
	$styles = array();
	
	
	/*** LIGHTS ***/
	$styles['l_standard'] = array(
		'gg_standard_hor_margin' => 5,
		'gg_standard_ver_margin' => 5,
		'gg_masonry_margin' => 7,
		'gg_photostring_margin' => 7,
		
		'gg_img_border' => 4,
		'gg_img_radius' => 4,
		'gg_img_shadow' => 'outshadow',
		'gg_img_border_color' => '#FFFFFF',
		
		'gg_main_ol_color' => 'rgba(255, 255, 255, 0.8)',
		'gg_main_ol_txt_color' => '#222222',
		'gg_sec_ol_color' => '#555555',
		'gg_icons_col' => '#fcfcfc',
		'gg_txt_u_title_color' => '#444444',
		'gg_txt_u_descr_color' => '#555555',
		
		'gg_filters_border_w' => 2,
		'gg_filters_radius' => 2,
		
		'gg_filters_txt_color' => '#666666', 
		'gg_filters_bg_color' => '#ffffff',
		'gg_filters_border_color' => '#bbbbbb', 
		'gg_filters_txt_color_h' => '#535353', 
		'gg_filters_bg_color_h' => '#fdfdfd', 
		'gg_filters_border_color_h' => '#777777',
		'gg_filters_txt_color_sel' => '#333333', 
		'gg_filters_bg_color_sel' => '#efefef', 
		'gg_filters_border_color_sel' => '#aaaaaa',
		
		'gg_search_txt_color' => '#666666', 
		'gg_search_bg_color' => '#ffffff',
		'gg_search_border_color' => '#bbbbbb',
		'gg_search_txt_color_h' => '#333333', 
		'gg_search_bg_color_h' => '#fdfdfd',
		'gg_search_border_color_h' => '#aaaaaa',
		
		'gg_pag_txt_col' => '#666666', 
		'gg_pag_bg_col' => '#ffffff',
		'gg_pag_border_col' => '#bbbbbb',
		'gg_pag_txt_col_h' => '#333333', 
		'gg_pag_bg_col_h' => '#efefef',
		'gg_pag_border_col_h' => '#aaaaaa',
        
        'gg_lcms_bg' => '#ffffff',
        'gg_lcms_padding' => 8,
        'gg_lcms_border_radius' => 5,
        'gg_lcms_border_w' => 2,
        'gg_lcms_border_col' => '#ebebeb',
        'gg_lcms_shadow' => 'soft',
        'gg_lcms_dots_col' => '#666',
        'gg_lcms_txt_bg' => 'rgba(0,0,0, 0.5)',
        'gg_lcms_txt_col' => '#fdfdfd',
        'gg_lcms_cmd_bg' => '#fff',
        'gg_lcms_cmd_col' => '#282828',
	);
	
	
	$styles['l_minimal'] = gg_ps_override_indexes($styles['l_standard'], array(
		'gg_standard_hor_margin' => 6,
		'gg_standard_ver_margin' => 6,
		'gg_masonry_margin' => 8,
		'gg_photostring_margin' => 8,
		
		'gg_img_border' => 4,
		'gg_img_radius' => 1,
		'gg_img_shadow' => 'outline',
		'gg_img_outline_color' => '#bbbbbb', 
		'gg_img_border_color' => 'transparent',
		
		'gg_main_ol_color' => 'rgba(255, 255, 255, 0.9)',
		'gg_main_ol_txt_color' => '#222222',
		'gg_sec_ol_color' => '#555555',
		'gg_icons_col' => '#fefefe',
		'gg_txt_u_title_color' => '#444444',
		'gg_txt_u_descr_color' => '#555555',
		
		'gg_filters_border_w' => 1,
        
        'gg_lcms_padding' => 5,
        'gg_lcms_border_radius' => 0,
        'gg_lcms_border_w' => 1,
        'gg_lcms_border_col' => '#ddd',
        'gg_lcms_shadow' => 'none',
        'gg_lcms_txt_bg' => 'rgba(0,0,0, 0.6)',
	));
	

	$styles['l_noborder'] = gg_ps_override_indexes($styles['l_standard'], array(
		'gg_standard_hor_margin' => 5,
		'gg_standard_ver_margin' => 5,
		'gg_masonry_margin' => 5,
		'gg_photostring_margin' => 5,
		
		'gg_img_border' => 0,
		'gg_img_radius' => 2,
		'gg_img_shadow' => 'outshadow',
		'gg_img_border_color' => '#FFFFFF',
		
		'gg_main_ol_color' => 'rgba(255, 255, 255, 0.8)',
		'gg_main_ol_txt_color' => '#222222',
		'gg_sec_ol_color' => '#555555',
		'gg_icons_col' => '#fcfcfc',
		'gg_txt_u_title_color' => '#444444',
		'gg_txt_u_descr_color' => '#555555',
		
		'gg_filters_border_w' => 0,
		
		'gg_filters_txt_color' => '#606060', 
		'gg_filters_bg_color' => '#f5f5f5',
		'gg_filters_txt_color_h' => '#4a4a4a', 
		'gg_filters_bg_color_h' => '#fafafa', 
		'gg_filters_txt_color_sel' => '#333333', 
		'gg_filters_bg_color_sel' => '#dfdfdf', 
		
		'gg_search_txt_color' => '#606060', 
		'gg_search_bg_color' => '#f5f5f5',
		'gg_search_txt_color_h' => '#333333', 
		'gg_search_bg_color_h' => '#eeeeee',
        
        'gg_lcms_padding' => 0,
        'gg_lcms_border_radius' => 0,
        'gg_lcms_border_w' => 0,
        'gg_lcms_border_col' => '#ddd',
        'gg_lcms_shadow' => 'heavy',
        'gg_lcms_txt_bg' => 'rgba(0,0,0, 0.55)',
	));
	
	
	$styles['l_photowall'] = gg_ps_override_indexes($styles['l_noborder'], array(
		'gg_standard_hor_margin' => 0,
		'gg_standard_ver_margin' => 0,
		'gg_masonry_margin' => 0,
		'gg_photostring_margin' => 0,
		
		'gg_img_border' => 0,
		'gg_img_radius' => 0,
		'gg_img_shadow' => 'outshadow',
		'gg_img_border_color' => '#CCCCCC',

		'gg_main_ol_color' => 'rgba(255, 255, 255, 0.8)',
		'gg_main_ol_txt_color' => '#222222',
		'gg_sec_ol_color' => '#555555',
		'gg_icons_col' => '#fcfcfc',
		'gg_txt_u_title_color' => '#444444',
		'gg_txt_u_descr_color' => '#555555',
        
        'gg_lcms_padding' => 0,
        'gg_lcms_border_radius' => 0,
        'gg_lcms_border_w' => 0,
        'gg_lcms_shadow' => 'none',
        'gg_lcms_txt_bg' => 'rgba(0,0,0, 0.6)',
	));
	
	
	
	
	
	/*** DARKS ***/
	$styles['d_standard'] = array(
		'gg_standard_hor_margin' => 5,
		'gg_standard_ver_margin' => 5,
		'gg_masonry_margin' => 7,
		'gg_photostring_margin' => 7,
		
		'gg_img_border' => 4,
		'gg_img_radius' => 4,
		'gg_img_shadow' => 'outshadow',
		'gg_img_border_color' => '#888888',
		
		'gg_main_ol_color' => 'rgb(20,20,20, 0.9)',
		'gg_main_ol_txt_color' => '#ffffff',
		'gg_sec_ol_color' => '#bbbbbb',
		'gg_icons_col' => '#555555',
		'gg_txt_u_title_color' => '#fefefe',
		'gg_txt_u_descr_color' => '#f7f7f7',
		
		'gg_filters_border_w' => 2,
		'gg_filters_radius' => 2,
		
		'gg_filters_txt_color' => '#eeeeee', 
		'gg_filters_bg_color' => '#4f4f4f',
		'gg_filters_border_color' => '#4f4f4f', 
		'gg_filters_txt_color_h' => '#ffffff', 
		'gg_filters_bg_color_h' => '#585858', 
		'gg_filters_border_color_h' => '#777777',
		'gg_filters_txt_color_sel' => '#f3f3f3', 
		'gg_filters_bg_color_sel' => '#6a6a6a', 
		'gg_filters_border_color_sel' => '#6a6a6a',
		
		'gg_search_txt_color' => '#eeeeee', 
		'gg_search_bg_color' => '#4f4f4f',
		'gg_search_border_color' => '#4f4f4f',
		'gg_search_txt_color_h' => '#f3f3f3', 
		'gg_search_bg_color_h' => '#6a6a6a',
		'gg_search_border_color_h' => '#6a6a6a',
		
		'gg_pag_txt_col' => '#eeeeee', 
		'gg_pag_bg_col' => '#4f4f4f',
		'gg_pag_border_col' => '#4f4f4f',
		'gg_pag_txt_col_h' => '#f3f3f3', 
		'gg_pag_bg_col_h' => '#6a6a6a',
		'gg_pag_border_col_h' => '#6a6a6a',
        
        'gg_lcms_bg' => '#333',
        'gg_lcms_padding' => 8,
        'gg_lcms_border_radius' => 5,
        'gg_lcms_border_w' => 2,
        'gg_lcms_border_col' => '#666',
        'gg_lcms_shadow' => 'soft',
        'gg_lcms_dots_col' => '#aaa',
        'gg_lcms_txt_bg' => 'rgba(200,200,200, 0.75)',
        'gg_lcms_txt_col' => '#282828',
        'gg_lcms_cmd_bg' => '#555',
        'gg_lcms_cmd_col' => '#f5f5f5',
	);
	
	
	$styles['d_minimal'] = gg_ps_override_indexes($styles['d_standard'], array(
		'gg_standard_hor_margin' => 6,
		'gg_standard_ver_margin' => 6,
		'gg_masonry_margin' => 8,
		'gg_photostring_margin' => 8,
		
		'gg_img_border' => 4,
		'gg_img_radius' => 1,
		'gg_img_shadow' => 'outline',
		'gg_img_outline_color' => '#777777', 
		'gg_img_border_color' => 'transparent',
		
		'gg_main_ol_color' => 'rgb(20,20,20, 0.9)',
		'gg_main_ol_txt_color' => '#ffffff',
		'gg_sec_ol_color' => '#bbbbbb',
		'gg_icons_col' => '#555555',
		'gg_txt_u_title_color' => '#fefefe',
		'gg_txt_u_descr_color' => '#f7f7f7',
		
		'gg_filters_border_w' => 1,
        
        'gg_lcms_padding' => 5,
        'gg_lcms_border_radius' => 0,
        'gg_lcms_border_w' => 1,
        'gg_lcms_border_col' => '#777',
        'gg_lcms_shadow' => 'none',
	));
	
	
	$styles['d_noborder'] = gg_ps_override_indexes($styles['d_standard'], array(
		'gg_standard_hor_margin' => 5,
		'gg_standard_ver_margin' => 5,
		'gg_masonry_margin' => 5,
		'gg_photostring_margin' => 5,
		
		'gg_img_border' => 0,
		'gg_img_radius' => 2,
		'gg_img_shadow' => 'outshadow',
		'gg_img_border_color' => '#999999',
		
		'gg_main_ol_color' => 'rgb(20,20,20, 0.9)',
		'gg_main_ol_txt_color' => '#ffffff',
		'gg_sec_ol_color' => '#bbbbbb',
		'gg_icons_col' => '#555555',
		'gg_txt_u_title_color' => '#fefefe',
		'gg_txt_u_descr_color' => '#f7f7f7',
		
		'gg_filters_border_w' => 0,
        
        'gg_lcms_padding' => 0,
        'gg_lcms_border_radius' => 0,
        'gg_lcms_border_w' => 0,
        'gg_lcms_shadow' => 'heavy',
	));

	
	$styles['d_photowall'] = gg_ps_override_indexes($styles['d_noborder'], array(
		'gg_standard_hor_margin' => 0,
		'gg_standard_ver_margin' => 0,
		'gg_masonry_margin' => 0,
		'gg_photostring_margin' => 0,
		
		'gg_img_border' => 0,
		'gg_img_radius' => 0,
		'gg_img_shadow' => 'outshadow',
		'gg_img_border_color' => '#999999',
		
		'gg_main_ol_color' => 'rgb(20,20,20, 0.9)',
		'gg_main_ol_txt_color' => '#ffffff',
		'gg_sec_ol_color' => '#bbbbbb',
		'gg_icons_col' => '#555555',
		'gg_txt_u_title_color' => '#fefefe',
		'gg_txt_u_descr_color' => '#f7f7f7',
        
        'gg_lcms_padding' => 0,
        'gg_lcms_border_radius' => 0,
        'gg_lcms_border_w' => 0,
        'gg_lcms_shadow' => 'none',
	));


	if(empty($style)) {return $styles;}
	else {
		return (isset($styles[$style])) ? $styles[$style] : false;
	}	
}




// override only certain indexes to write less code
function gg_ps_override_indexes($array, $to_override) {
	foreach($to_override as $key => $val) {
		$array[$key] = $val;	
	}
	
	return $array;
}


