<?php
/**
 * Skin Setup
 *
 * @package TOURIMO
 * @since TOURIMO 1.76.0
 */


// Theme init priorities:
// Action 'after_setup_theme'
// 1 - register filters to add/remove lists items in the Theme Options
// 2 - create Theme Options
// 3 - add/remove Theme Options elements
// 5 - load Theme Options. Attention! After this step you can use only basic options (not overriden)
// 9 - register other filters (for installer, etc.)
//10 - standard Theme init procedures (not ordered)
// Action 'wp_loaded'
// 1 - detect override mode. Attention! Only after this step you can use overriden options (separate values for the shop, courses, etc.)


//--------------------------------------------
// SKIN FONTS
//--------------------------------------------
if ( ! function_exists( 'tourimo_skin_setup_fonts' ) ) {
	add_action( 'after_setup_theme', 'tourimo_skin_setup_fonts', 1 );
	function tourimo_skin_setup_fonts() {
		// Fonts to load when theme start
		// It can be Google fonts or uploaded fonts, placed in the folder css/font-face/font-name inside the skin folder
		// Attention! Font's folder must have name equal to the font's name, with spaces replaced on the dash '-'
		// example: font name 'TeX Gyre Termes', folder 'TeX-Gyre-Termes'
		tourimo_storage_set(
			'load_fonts', array(
				// Google font
				array(
					'name'   => 'Source Sans Pro',
					'family' => 'sans-serif',
					'styles' => '400,600,700,900',     // Parameter 'style' used only for the Google fonts
				),
				array(
					'name'   => 'PT Serif',
					'family' => 'serif',
					'styles' => '400,500,600,700,800,900',     // Parameter 'style' used only for the Google fonts
				),
				array(
					'name'   => 'Encode Sans',
					'family' => 'sans-serif',
					'styles' => '400,500,600,700,800,900',     // Parameter 'style' used only for the Google fonts
				),
				array(
					'name'   => 'Charmonman',
					'family' => 'cursive',
					'styles' => '400,700',     // Parameter 'style' used only for the Google fonts
				),
			)
		);

		// Characters subset for the Google fonts. Available values are: latin,latin-ext,cyrillic,cyrillic-ext,greek,greek-ext,vietnamese
		tourimo_storage_set( 'load_fonts_subset', 'latin,latin-ext' );

		// Settings of the main tags
		// Attention! Font name in the parameter 'font-family' will be enclosed in the quotes and no spaces after comma!
		// example:
		// Correct:   'font-family' => '"Roboto",sans-serif'
		// Incorrect: 'font-family' => '"Roboto", sans-serif'
		// Incorrect: 'font-family' => 'Roboto,sans-serif'

		$font_description = esc_html__( 'Font settings of the %s of the site. To correctly display the site on mobile devices, use only the following units: "rem", "em" or "ex"', 'tourimo' );

		tourimo_storage_set(
			'theme_fonts', array(
				'p'       => array(
					'title'           => esc_html__( 'Main text', 'tourimo' ),
					'description'     => esc_html__( 'Font settings of the main text of the site. Attention! For correct display of the site on mobile devices, use only units "rem", "em" or "ex"', 'tourimo' ),
					'font-family'     => '"Source Sans Pro",sans-serif',
					'font-size'       => '1.286rem',
					'font-weight'     => '400',
					'font-style'      => 'normal',
					'line-height'     => '1.67em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '-0.01em',
					'margin-top'      => '0em',
					'margin-bottom'   => '1.4em',
				),
				'h1'      => array(
					'title'           => esc_html__( 'Heading 1', 'tourimo' ),
					'font-family'     => '"PT Serif",serif',
					'font-size'       => '5.5rem',
					'font-weight'     => '700',
					'font-style'      => 'normal',
					'line-height'     => '1.105em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '-0.01em',
					'margin-top'      => '0.67em',
					'margin-bottom'   => '0.34em',
				),
				'h2'      => array(
					'title'           => esc_html__( 'Heading 2', 'tourimo' ),
					'font-family'     => '"PT Serif",serif',
					'font-size'       => '4.5rem',
					'font-weight'     => '700',
					'font-style'      => 'normal',
					'line-height'     => '1.01em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '-0.01em',
					'margin-top'      => '0.67em',
					'margin-bottom'   => '0.34em',
				),
				'h3'      => array(
					'title'           => esc_html__( 'Heading 3', 'tourimo' ),
					'font-family'     => '"PT Serif",serif',
					'font-size'       => '3.93rem',
					'font-weight'     => '700',
					'font-style'      => 'normal',
					'line-height'     => '1.27em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '-0.01em',
					'margin-top'      => '0.67em',
					'margin-bottom'   => '0.34em',
				),
				'h4'      => array(
					'title'           => esc_html__( 'Heading 4', 'tourimo' ),
					'font-family'     => '"PT Serif",serif',
					'font-size'       => '2.57rem',
					'font-weight'     => '700',
					'font-style'      => 'normal',
					'line-height'     => '1.33em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '-0.01em',
					'margin-top'      => '0.67em',
					'margin-bottom'   => '0.34em',
				),
				'h5'      => array(
					'title'           => esc_html__( 'Heading 5', 'tourimo' ),
					'font-family'     => '"PT Serif",serif',
					'font-size'       => '1.714rem',
					'font-weight'     => '700',
					'font-style'      => 'normal',
					'line-height'     => '1.25em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '-0.01em',
					'margin-top'      => '0.67em',
					'margin-bottom'   => '0.34em',
				),
				'h6'      => array(
					'title'           => esc_html__( 'Heading 6', 'tourimo' ),
					'font-family'     => '"PT Serif",serif',
					'font-size'       => '1.2857rem',
					'font-weight'     => '700',
					'font-style'      => 'normal',
					'line-height'     => '1.28em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '-0.01em',
					'margin-top'      => '0.67em',
					'margin-bottom'   => '0.34em',
				),
				'logo'    => array(
					'title'           => esc_html__( 'Logo text', 'tourimo' ),
					'description'     => esc_html__( 'Font settings of the text case of the logo', 'tourimo' ),
					'font-family'     => '"Charmonman",cursive',
					'font-size'       => '2.57rem',
					'font-weight'     => '700',
					'font-style'      => 'normal',
					'line-height'     => '1.25em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '0',
				),
				'button'  => array(
					'title'           => esc_html__( 'Buttons', 'tourimo' ),
					'font-family'     => '"Source Sans Pro",sans-serif',
					'font-size'       => '1.714rem',
					'font-weight'     => '600',
					'font-style'      => 'normal',
					'line-height'     => '1.67em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '0',
				),
				'input'   => array(
					'title'           => esc_html__( 'Input fields', 'tourimo' ),
					'description'     => esc_html__( 'Font settings of the input fields, dropdowns and textareas', 'tourimo' ),
					'font-family'     => '"Source Sans Pro",sans-serif',
					'font-size'       => '1.142rem',
					'font-weight'     => '400',
					'font-style'      => 'normal',
					'line-height'     => '1.67em', // Attention! Firefox don't allow line-height less then 1.5em in the select
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '0px',
				),
				'info'    => array(
					'title'           => esc_html__( 'Post meta', 'tourimo' ),
					'description'     => esc_html__( 'Font settings of the post meta: date, counters, share, etc.', 'tourimo' ),
					'font-family'     => '"PT Serif",serif',
					'font-size'       => '14px',  // Old value '13px' don't allow using 'font zoom' in the custom blog items
					'font-weight'     => '600',
					'font-style'      => 'normal',
					'line-height'     => '1.67em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '0.01em',
					'margin-top'      => '0.4em',
					'margin-bottom'   => '',
				),
				'menu'    => array(
					'title'           => esc_html__( 'Main menu', 'tourimo' ),
					'description'     => esc_html__( 'Font settings of the main menu items', 'tourimo' ),
					'font-family'     => '"PT Serif",serif',
					'font-size'       => '1.142rem',
					'font-weight'     => '600',
					'font-style'      => 'normal',
					'line-height'     => '1.67em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '0px',
				),
				'submenu' => array(
					'title'           => esc_html__( 'Dropdown menu', 'tourimo' ),
					'description'     => esc_html__( 'Font settings of the dropdown menu items', 'tourimo' ),
					'font-family'     => '"Source Sans Pro",sans-serif',
					'font-size'       => '1.142rem',
					'font-weight'     => '500',
					'font-style'      => 'normal',
					'line-height'     => '1.67em',
					'text-decoration' => 'none',
					'text-transform'  => 'none',
					'letter-spacing'  => '0px',
				),
			)
		);
	}
}


//--------------------------------------------
// COLOR SCHEMES
//--------------------------------------------
if ( ! function_exists( 'tourimo_skin_setup_schemes' ) ) {
	add_action( 'after_setup_theme', 'tourimo_skin_setup_schemes', 1 );
	function tourimo_skin_setup_schemes() {

		// Theme colors for customizer
		// Attention! Inner scheme must be last in the array below
		tourimo_storage_set(
			'scheme_color_groups', array(
				'main'    => array(
					'title'       => esc_html__( 'Main', 'tourimo' ),
					'description' => esc_html__( 'Colors of the main content area', 'tourimo' ),
				),
				'alter'   => array(
					'title'       => esc_html__( 'Alter', 'tourimo' ),
					'description' => esc_html__( 'Colors of the alternative blocks (sidebars, etc.)', 'tourimo' ),
				),
				'extra'   => array(
					'title'       => esc_html__( 'Extra', 'tourimo' ),
					'description' => esc_html__( 'Colors of the extra blocks (dropdowns, price blocks, table headers, etc.)', 'tourimo' ),
				),
				'inverse' => array(
					'title'       => esc_html__( 'Inverse', 'tourimo' ),
					'description' => esc_html__( 'Colors of the inverse blocks - when link color used as background of the block (dropdowns, blockquotes, etc.)', 'tourimo' ),
				),
				'input'   => array(
					'title'       => esc_html__( 'Input', 'tourimo' ),
					'description' => esc_html__( 'Colors of the form fields (text field, textarea, select, etc.)', 'tourimo' ),
				),
			)
		);

		tourimo_storage_set(
			'scheme_color_names', array(
				'bg_color'    => array(
					'title'       => esc_html__( 'Background color', 'tourimo' ),
					'description' => esc_html__( 'Background color of this block in the normal state', 'tourimo' ),
				),
				'bg_hover'    => array(
					'title'       => esc_html__( 'Background hover', 'tourimo' ),
					'description' => esc_html__( 'Background color of this block in the hovered state', 'tourimo' ),
				),
				'bd_color'    => array(
					'title'       => esc_html__( 'Border color', 'tourimo' ),
					'description' => esc_html__( 'Border color of this block in the normal state', 'tourimo' ),
				),
				'bd_hover'    => array(
					'title'       => esc_html__( 'Border hover', 'tourimo' ),
					'description' => esc_html__( 'Border color of this block in the hovered state', 'tourimo' ),
				),
				'text'        => array(
					'title'       => esc_html__( 'Text', 'tourimo' ),
					'description' => esc_html__( 'Color of the text inside this block', 'tourimo' ),
				),
				'text_dark'   => array(
					'title'       => esc_html__( 'Text dark', 'tourimo' ),
					'description' => esc_html__( 'Color of the dark text (bold, header, etc.) inside this block', 'tourimo' ),
				),
				'text_light'  => array(
					'title'       => esc_html__( 'Text light', 'tourimo' ),
					'description' => esc_html__( 'Color of the light text (post meta, etc.) inside this block', 'tourimo' ),
				),
				'text_link'   => array(
					'title'       => esc_html__( 'Link', 'tourimo' ),
					'description' => esc_html__( 'Color of the links inside this block', 'tourimo' ),
				),
				'text_hover'  => array(
					'title'       => esc_html__( 'Link hover', 'tourimo' ),
					'description' => esc_html__( 'Color of the hovered state of links inside this block', 'tourimo' ),
				),
				'text_link2'  => array(
					'title'       => esc_html__( 'Link 2', 'tourimo' ),
					'description' => esc_html__( 'Color of the accented texts (areas) inside this block', 'tourimo' ),
				),
				'text_hover2' => array(
					'title'       => esc_html__( 'Link 2 hover', 'tourimo' ),
					'description' => esc_html__( 'Color of the hovered state of accented texts (areas) inside this block', 'tourimo' ),
				),
			)
		);

		// Default values for each color scheme
		$schemes = array(

			// Color scheme: 'default'
			'default' => array(
				'title'    => esc_html__( 'Default', 'tourimo' ),
				'internal' => true,
				'colors'   => array(

					// Whole block border and background
					'bg_color'         => '#ffffff',
					'bd_color'         => '#edeef2',

					// Text and links colors
					'text'             => '#415161',
					'text_light'       => '#6D7379',
					'text_dark'        => '#2B3136',
					'text_link'        => '#415161',
					'text_hover'       => '#69A305',

					'text_link2'       => '#282828',
					'text_hover2'      => '#69A305',

					// Alternative blocks (sidebar, tabs, alternative blocks, etc.)
					'alter_bg_color'   => '#f5f4fa',
					'alter_bg_hover'   => '#edeef2',
					'alter_bd_color'   => '#edeef2',
					'alter_bd_hover'   => '#edeef2',
					'alter_text'       => '#415161',
					'alter_light'      => '#959595',
					'alter_dark'       => '#415161',
					'alter_link'       => '#415161',
					'alter_hover'      => '#69A305',

					// Extra blocks (submenu, tabs, color blocks, etc.)
					'extra_bg_color'   => '#69A305',
					'extra_bg_hover'   => '#edeef2',
					'extra_bd_color'   => '#edeef2',
					'extra_bd_hover'   => '#edeef2',
					'extra_text'       => '#ffffff',
					'extra_light'      => '#959595',
					'extra_dark'       => '#ffffff',
					'extra_link'       => '#ffffff',
					'extra_hover'      => '#69A305',

					'extra_link2'      => '#2B3136',
					'extra_hover2'     => '#69A305',

					// Input fields (form's fields and textarea)
					'input_bg_color'   => '#f5f4fa',
					'input_bg_hover'   => '#ffffff',
					'input_bd_color'   => '#ddd',
					'input_bd_hover'   => '#ddd',
					'input_text'       => '#959595',
					'input_light'      => '#959595',
					'input_dark'       => '#959595',

					// Inverse blocks (text and links on the 'text_link' background)
					'inverse_bg_color' => '#282828',
					'inverse_bd_color' => '#2d3236',
					'inverse_text'     => '#ffffff',
					'inverse_light'    => '#959595',
					'inverse_dark'     => '#ffffff',
					'inverse_link'     => '#ffffff',
					'inverse_hover'    => '#69A305',

					// Additional (skin-specific) colors.
					// Attention! Set of colors must be equal in all color schemes.
					
					//--> 'new_color1'         => '#rrggbb',
					//--> 'alter_new_color1'   => '#rrggbb',
					//--> 'inverse_new_color1' => '#rrggbb',
				),
			),

			// Color scheme: 'dark'
			'dark'    => array(
				'title'    => esc_html__( 'Dark', 'tourimo' ),
				'internal' => true,
				'colors'   => array(

					// Whole block border and background
					'bg_color'         => '#282828',
					'bd_color'         => '#2D3236',

					// Text and links colors
					'text'             => '#B5B5B5',
					'text_light'       => '#A7A7A7',
					'text_dark'        => '#ffffff',
					'text_link'        => '#ffffff',
					'text_hover'       => '#69a305',

					'text_link2'       => '#ffffff',
					'text_hover2'      => '#69A305',

					// Alternative blocks (sidebar, tabs, alternative blocks, etc.)
					'alter_bg_color'   => '#393f44',
					'alter_bg_hover'   => '#2D3236',
					'alter_bd_color'   => '#2D3236',
					'alter_bd_hover'   => '#2D3236',
					'alter_text'       => '#ffffff',
					'alter_light'      => '#cdcbcb',
					'alter_dark'       => '#ffffff',
					'alter_link'       => '#ffffff',
					'alter_hover'      => '#69A305',

					// Extra blocks (submenu, tabs, color blocks, etc.)
					'extra_bg_color'   => '#69A305',
					'extra_bg_hover'   => '#333333',
					'extra_bd_color'   => '#edeef2',
					'extra_bd_hover'   => '#edeef2',
					'extra_text'       => '#ffffff',
					'extra_light'      => '#959595',
					'extra_dark'       => '#ffffff',
					'extra_link'       => '#ffffff',
					'extra_hover'      => '#69A305',

					'extra_link2'      => '#2B3136',
					'extra_hover2'     => '#69A305',

					// Input fields (form's fields and textarea)
					'input_bg_color'   => '#121212',
					'input_bg_hover'   => '#121212',
					'input_bd_color'   => '#50555A',
					'input_bd_hover'   => '#50555A',
					'input_text'       => '#959595',
					'input_light'      => '#B5B5B5',
					'input_dark'       => '#959595',

					// Inverse blocks (text and links on the 'text_link' background)					
					'inverse_bg_color' => '#ffffff',
					'inverse_bd_color' => '#edeef2',
					'inverse_text'     => '#415161',
					'inverse_light'    => '#959595',
					'inverse_dark'     => '#415161',
					'inverse_link'     => '#415161',
					'inverse_hover'    => '#69A305',

					// Additional (skin-specific) colors.
					// Attention! Set of colors must be equal in all color schemes.
					
					//--> 'new_color1'         => '#rrggbb',
					//--> 'alter_new_color1'   => '#rrggbb',
					//--> 'inverse_new_color1' => '#rrggbb',
				),
			),
		);
		tourimo_storage_set( 'schemes', $schemes );
		tourimo_storage_set( 'schemes_original', $schemes );

		// Add names of additional colors
		//---> For example:
		//---> tourimo_storage_set_array( 'scheme_color_names', 'new_color1', array(
		//---> 	'title'       => __( 'New color 1', 'tourimo' ),
		//---> 	'description' => __( 'Description of the new color 1', 'tourimo' ),
		//---> ) );


		// Additional colors for each scheme
		// Parameters:	'color' - name of the color from the scheme that should be used as source for the transformation
		//				'alpha' - to make color transparent (0.0 - 1.0)
		//				'hue', 'saturation', 'brightness' - inc/dec value for each color's component
		tourimo_storage_set(
			'scheme_colors_add', array(
				'bg_color_0'        => array(
					'color' => 'bg_color',
					'alpha' => 0,
				),
				'bg_color_02'       => array(
					'color' => 'bg_color',
					'alpha' => 0.2,
				),
				'bg_color_05'       => array(
					'color' => 'bg_color',
					'alpha' => 0.5,
				),
				'bg_color_07'       => array(
					'color' => 'bg_color',
					'alpha' => 0.7,
				),
				'bg_color_08'       => array(
					'color' => 'bg_color',
					'alpha' => 0.8,
				),
				'bg_color_09'       => array(
					'color' => 'bg_color',
					'alpha' => 0.9,
				),
				'bd_color_03'       => array(
					'color' => 'bd_color',
					'alpha' => 0.3,
				),
				'text_light_03'       => array(
					'color' => 'text_light',
					'alpha' => 0.3,
				),
				'text_light_05'       => array(
					'color' => 'text_light',
					'alpha' => 0.5,
				),
				'alter_bg_color_07' => array(
					'color' => 'alter_bg_color',
					'alpha' => 0.7,
				),
				'alter_bg_color_04' => array(
					'color' => 'alter_bg_color',
					'alpha' => 0.4,
				),
				'alter_bg_color_00' => array(
					'color' => 'alter_bg_color',
					'alpha' => 0,
				),
				'alter_bg_hover_05' => array(
					'color' => 'alter_bg_hover',
					'alpha' => 0.5,
				),
				'alter_bg_hover_08' => array(
					'color' => 'alter_bg_hover',
					'alpha' => 0.8,
				),
				'alter_bg_color_02' => array(
					'color' => 'alter_bg_color',
					'alpha' => 0.2,
				),
				'alter_bd_color_02' => array(
					'color' => 'alter_bd_color',
					'alpha' => 0.2,
				),
				'alter_bd_color_05' => array(
					'color' => 'alter_bd_color',
					'alpha' => 0.5,
				),
				'alter_dark_05'     => array(
					'color' => 'alter_dark',
					'alpha' => 0.5,
				),
				'alter_link_02'     => array(
					'color' => 'alter_link',
					'alpha' => 0.2,
				),
				'alter_link_07'     => array(
					'color' => 'alter_link',
					'alpha' => 0.7,
				),
				'extra_bg_color_05' => array(
					'color' => 'extra_bg_color',
					'alpha' => 0.5,
				),
				'extra_bg_color_07' => array(
					'color' => 'extra_bg_color',
					'alpha' => 0.7,
				),
				'extra_dark_05'     => array(
					'color' => 'extra_dark',
					'alpha' => 0.5,
				),
				'extra_link_02'     => array(
					'color' => 'extra_link',
					'alpha' => 0.2,
				),
				'extra_link_07'     => array(
					'color' => 'extra_link',
					'alpha' => 0.7,
				),
				'extra_hover_07'     => array(
					'color' => 'extra_hover',
					'alpha' => 0.7,
				),
				'extra_link2_07'     => array(
					'color' => 'extra_link2',
					'alpha' => 0.7,
				),
				'text_dark_01'      => array(
					'color' => 'text_dark',
					'alpha' => 0.1,
				),
				'text_dark_03'      => array(
					'color' => 'text_dark',
					'alpha' => 0.3,
				),
				'text_dark_05'      => array(
					'color' => 'text_dark',
					'alpha' => 0.5,
				),
				'text_dark_07'      => array(
					'color' => 'text_dark',
					'alpha' => 0.7,
				),
				'text_dark_09'      => array(
					'color' => 'text_dark',
					'alpha' => 0.9,
				),
				'text_link_02'      => array(
					'color' => 'text_link',
					'alpha' => 0.2,
				),
				'text_link_07'      => array(
					'color' => 'text_link',
					'alpha' => 0.7,
				),
				'inverse_bg_color_05'      => array(
					'color' => 'inverse_bg_color',
					'alpha' => 0.5,
				),
				'inverse_dark_06'      => array(
					'color' => 'inverse_dark',
					'alpha' => 0.6,
				),
				'text_link_blend'   => array(
					'color'      => 'text_link',
					'hue'        => 2,
					'saturation' => -5,
					'brightness' => 5,
				),
				'alter_link_blend'  => array(
					'color'      => 'alter_link',
					'hue'        => 2,
					'saturation' => -5,
					'brightness' => 5,
				),
			)
		);

		// Simple scheme editor: lists the colors to edit in the "Simple" mode.
		// For each color you can set the array of 'slave' colors and brightness factors that are used to generate new values,
		// when 'main' color is changed
		// Leave 'slave' arrays empty if your scheme does not have a color dependency
		tourimo_storage_set(
			'schemes_simple', array(
				'text_link'        => array(
					'alter_hover'      => 1,
					'extra_link'       => 1,
					'inverse_bd_color' => 0.85,
					'inverse_bd_hover' => 0.7,
				),
				'text_hover'       => array(
					'alter_link'  => 1,
					'extra_hover' => 1,
				),
				'text_link2'       => array(
					'alter_hover2' => 1,
					'extra_link2'  => 1,
				),
				'text_hover2'      => array(
					'alter_link2'  => 1,
					'extra_hover2' => 1,
				),
				'alter_link'       => array(),
				'alter_hover'      => array(),
				'alter_link2'      => array(),
				'alter_hover2'     => array(),
				'alter_link3'      => array(),
				'alter_hover3'     => array(),
				'extra_link'       => array(),
				'extra_hover'      => array(),
				'extra_link2'      => array(),
				'extra_hover2'     => array(),
				'extra_link3'      => array(),
				'extra_hover3'     => array(),
				'inverse_bd_color' => array(),
				'inverse_bd_hover' => array(),
			)
		);

		// Parameters to set order of schemes in the css
		tourimo_storage_set(
			'schemes_sorted', array(
				'color_scheme',
				'header_scheme',
				'menu_scheme',
				'sidebar_scheme',
				'footer_scheme',
			)
		);
	}
}


//--------------------------------------------
// THUMBS
//--------------------------------------------
if ( ! function_exists( 'tourimo_skin_setup_thumbs' ) ) {
	add_action( 'after_setup_theme', 'tourimo_skin_setup_thumbs', 1 );
	function tourimo_skin_setup_thumbs() {
		tourimo_storage_set(
			'theme_thumbs', apply_filters(
				'tourimo_filter_add_thumb_sizes', array(
					// Width of the image is equal to the content area width (without sidebar)
					// Height is fixed
					'tourimo-thumb-huge'        => array(
						'size'  => array( 1170, 658, true ),
						'title' => esc_html__( 'Huge image', 'tourimo' ),
						'subst' => 'trx_addons-thumb-huge',
					),
					// Width of the image is equal to the content area width (with sidebar)
					// Height is fixed
					'tourimo-thumb-big'         => array(
						'size'  => array( 810, 500, true ),
						'title' => esc_html__( 'Large image', 'tourimo' ),
						'subst' => 'trx_addons-thumb-big',
					),

					// Width of the image is equal to the 1/3 of the content area width (without sidebar)
					// Height is fixed
					'tourimo-thumb-med'         => array(
						'size'  => array( 410, 230, true ),
						'title' => esc_html__( 'Medium image', 'tourimo' ),
						'subst' => 'trx_addons-thumb-medium',
					),

					// Small square image (for avatars in comments, etc.)
					'tourimo-thumb-tiny'        => array(
						'size'  => array( 90, 90, true ),
						'title' => esc_html__( 'Small square avatar', 'tourimo' ),
						'subst' => 'trx_addons-thumb-tiny',
					),

					// Width of the image is equal to the content area width (with sidebar)
					// Height is proportional (only downscale, not crop)
					'tourimo-thumb-masonry-big' => array(
						'size'  => array( 810, 0, false ),     // Only downscale, not crop
						'title' => esc_html__( 'Masonry Large (scaled)', 'tourimo' ),
						'subst' => 'trx_addons-thumb-masonry-big',
					),

					// Width of the image is equal to the 1/3 of the full content area width (without sidebar)
					// Height is proportional (only downscale, not crop)
					'tourimo-thumb-masonry'     => array(
						'size'  => array( 370, 0, false ),     // Only downscale, not crop
						'title' => esc_html__( 'Masonry (scaled)', 'tourimo' ),
						'subst' => 'trx_addons-thumb-masonry',
					),

					// Width of the image is equal to the 1/3 of the full content area width (without sidebar)
					// Height is proportional (only downscale, not crop)
					'tourimo-thumb-portrait'     => array(
						'size'  => array( 500, 571, true ),     // Only downscale, not crop
						'title' => esc_html__( 'Portrait', 'tourimo' ),
						'subst' => 'trx_addons-thumb-portrait',
					),

					// Width of the image is equal to the content area width (with sidebar)
					// Height is proportional (only downscale, not crop)
					'tourimo-thumb-services-small' => array(
						'size'  => array( 390, 381, true ),     // Only downscale, not crop
						'title' => esc_html__( 'Services small', 'tourimo' ),
						'subst' => 'trx_addons-thumb-services-small',
					),
					
					// Width of the image is equal to the 1/3 of the full content area width (without sidebar)
					// Height is proportional (only downscale, not crop)
					'tourimo-thumb-normal'     => array(
						'size'  => array( 450, 350, true ),     // Only downscale, not crop
						'title' => esc_html__( 'Normal', 'tourimo' ),
						'subst' => 'trx_addons-thumb-normal',
					),
				)
			)
		);
	}
}


//--------------------------------------------
// BLOG STYLES
//--------------------------------------------
if ( ! function_exists( 'tourimo_skin_setup_blog_styles' ) ) {
	add_action( 'after_setup_theme', 'tourimo_skin_setup_blog_styles', 1 );
	function tourimo_skin_setup_blog_styles() {

		$blog_styles = array(
			'excerpt' => array(
				'title'   => esc_html__( 'Standard', 'tourimo' ),
				'archive' => 'index',
				'item'    => 'templates/content-excerpt',
				'styles'  => 'excerpt',
				'icon'    => "images/theme-options/blog-style/excerpt.png",
			),
			'band'    => array(
				'title'   => esc_html__( 'Band', 'tourimo' ),
				'archive' => 'index',
				'item'    => 'templates/content-band',
				'styles'  => 'band',
				'icon'    => "images/theme-options/blog-style/band.png",
			),
			'classic' => array(
				'title'   => esc_html__( 'Classic', 'tourimo' ),
				'archive' => 'index',
				'item'    => 'templates/content-classic',
				'columns' => array( 2, 3 ),
				'styles'  => 'classic',
				'icon'    => "images/theme-options/blog-style/classic-%d.png",
				'new_row' => true,
			),
		);
		if ( ! TOURIMO_THEME_FREE ) {
			$blog_styles['classic-masonry']   = array(
				'title'   => esc_html__( 'Classic Masonry', 'tourimo' ),
				'archive' => 'index',
				'item'    => 'templates/content-classic',
				'columns' => array( 2, 3 ),
				'styles'  => array( 'classic', 'masonry' ),
				'scripts' => 'masonry',
				'icon'    => "images/theme-options/blog-style/classic-masonry-%d.png",
				'new_row' => true,
			);
			$blog_styles['portfolio'] = array(
				'title'   => esc_html__( 'Portfolio', 'tourimo' ),
				'archive' => 'index',
				'item'    => 'templates/content-portfolio',
				'columns' => array( 2, 3, 4 ),
				'styles'  => 'portfolio',
				'icon'    => "images/theme-options/blog-style/portfolio-%d.png",
				'new_row' => true,
			);
			$blog_styles['portfolio-masonry'] = array(
				'title'   => esc_html__( 'Portfolio Masonry', 'tourimo' ),
				'archive' => 'index',
				'item'    => 'templates/content-portfolio',
				'columns' => array( 2, 3, 4 ),
				'styles'  => array( 'portfolio', 'masonry' ),
				'scripts' => 'masonry',
				'icon'    => "images/theme-options/blog-style/portfolio-masonry-%d.png",
				'new_row' => true,
			);
		}
		tourimo_storage_set( 'blog_styles', apply_filters( 'tourimo_filter_add_blog_styles', $blog_styles ) );
	}
}


//--------------------------------------------
// SINGLE STYLES
//--------------------------------------------
if ( ! function_exists( 'tourimo_skin_setup_single_styles' ) ) {
	add_action( 'after_setup_theme', 'tourimo_skin_setup_single_styles', 1 );
	function tourimo_skin_setup_single_styles() {

		tourimo_storage_set( 'single_styles', apply_filters( 'tourimo_filter_add_single_styles', array(
			'style-1'   => array(
				'title'       => esc_html__( 'Style 1', 'tourimo' ),
				'description' => esc_html__( 'Fullwidth image is above the content area, the title and meta are over the image', 'tourimo' ),
				'styles'      => 'style-1',
				'icon'        => "images/theme-options/single-style/style-1.png",
			),
			'style-2'   => array(
				'title'       => esc_html__( 'Style 2', 'tourimo' ),
				'description' => esc_html__( 'Fullwidth image is above the content area, the title and meta are inside the content area', 'tourimo' ),
				'styles'      => 'style-2',
				'icon'        => "images/theme-options/single-style/style-2.png",
			),
			'style-3'   => array(
				'title'       => esc_html__( 'Style 3', 'tourimo' ),
				'description' => esc_html__( 'Fullwidth image is above the content area, the title and meta are below the image', 'tourimo' ),
				'styles'      => 'style-3',
				'icon'        => "images/theme-options/single-style/style-3.png",
			),
			'style-4'   => array(
				'title'       => esc_html__( 'Style 4', 'tourimo' ),
				'description' => esc_html__( 'Boxed image is above the content area, the title and meta are above the image', 'tourimo' ),
				'styles'      => 'style-4',
				'icon'        => "images/theme-options/single-style/style-4.png",
			),
			'style-5'   => array(
				'title'       => esc_html__( 'Style 5', 'tourimo' ),
				'description' => esc_html__( 'Boxed image is inside the content area, the title and meta are above the content area', 'tourimo' ),
				'styles'      => 'style-5',
				'icon'        => "images/theme-options/single-style/style-5.png",
			),
			'style-6'   => array(
				'title'       => esc_html__( 'Style 6', 'tourimo' ),
				'description' => esc_html__( 'Boxed image, the title and meta are inside the content area, the title and meta are above the image', 'tourimo' ),
				'styles'      => 'style-6',
				'icon'        => "images/theme-options/single-style/style-6.png",
			),
			'style-7'   => array(
				'title'       => esc_html__( 'Style 7', 'tourimo' ),
				'description' => esc_html__( 'Boxed image, the title and meta are above the content area like two big square areas', 'tourimo' ),
				'styles'      => 'style-7',
				'icon'        => "images/theme-options/single-style/style-7.png",
			),
		) ) );
	}
}
