<?php

/* Theme setup section
-------------------------------------------------------------------- */

// ONLY FOR PROGRAMMERS, NOT FOR CUSTOMER
// Framework settings

royal_event_storage_set('settings', array(
	
	'less_compiler'		=> 'lessc',								// no|lessc|less|external - Compiler for the .less
																// lessc	- fast & low memory required, but .less-map, shadows & gradients not supprted
																// less		- slow, but support all features
																// external	- used if you have external .less compiler (like WinLess or Koala)
																// no		- don't use .less, all styles stored in the theme.styles.php
	'less_nested'		=> false,								// Use nested selectors when compiling less - increase .css size, but allow using nested color schemes
	'less_prefix'		=> '',									// any string - Use prefix before each selector when compile less. For example: 'html '
	'less_split'		=> false,								// If true - load each file into memory, split it (see below) and compile separate.
																// Else - compile each file without loading to memory
	'less_separator'	=> '/*---LESS_SEPARATOR---*/',			// string - separator inside .less file to split it when compiling to reduce memory usage
																// (compilation speed gets a bit slow)
	'less_map'			=> 'no',								// no|internal|external - Generate map for .less files. 
																// Warning! You need more then 128Mb for PHP scripts on your server! Supported only if less_compiler=less (see above)
	
	'customizer_demo'	=> true,								// Show color customizer demo (if many color settings) or not (if only accent colors used)

	'allow_fullscreen'	=> false,								// Allow fullscreen and fullwide body styles
	'allow_profiler'    => false,                                // Allow to show theme profiler when 'debug mode' is on

	'socials_type'		=> 'icons',								// images|icons - Use this kind of pictograms for all socials: share, social profiles, team members socials, etc.
	'slides_type'		=> 'bg',								// images|bg - Use image as slide's content or as slide's background

	'add_image_size'	=> false,								// Add theme's thumb sizes into WP list sizes. 
																// If false - new image thumb will be generated on demand,
																// otherwise - all thumb sizes will be generated when image is loaded

	'use_list_cache'	=> true,								// Use cache for any lists (increase theme speed, but get 15-20K memory)
	'use_post_cache'	=> true,								// Use cache for post_data (increase theme speed, decrease queries number, but get more memory - up to 300K)

	'admin_dummy_style' => 2									// 1 | 2 - Progress bar style when import dummy data
	)
);



// Default Theme Options
if ( !function_exists( 'royal_event_options_settings_theme_setup' ) ) {
	add_action( 'royal_event_action_before_init_theme', 'royal_event_options_settings_theme_setup', 2 );	// Priority 1 for add royal_event_filter handlers
	function royal_event_options_settings_theme_setup() {
		
		// Clear all saved Theme Options on first theme run
		add_action('after_switch_theme', 'royal_event_options_reset');

		// Settings 
		$socials_type = royal_event_get_theme_setting('socials_type');
				
		// Prepare arrays 
		royal_event_storage_set('options_params', apply_filters('royal_event_filter_theme_options_params', array(
			'list_fonts'				=> array('$royal_event_get_list_fonts' => ''),
			'list_fonts_styles'			=> array('$royal_event_get_list_fonts_styles' => ''),
			'list_socials' 				=> array('$royal_event_get_list_socials' => ''),
			'list_icons' 				=> array('$royal_event_get_list_icons(true)' => ''),
			'list_posts_types' 			=> array('$royal_event_get_list_posts_types' => ''),
			'list_categories' 			=> array('$royal_event_get_list_categories' => ''),
			'list_menus'				=> array('$royal_event_get_list_menus(true)' => ''),
			'list_sidebars'				=> array('$royal_event_get_list_sidebars' => ''),
			'list_positions' 			=> array('$royal_event_get_list_sidebars_positions' => ''),
			'list_color_schemes'		=> array('$royal_event_get_list_color_schemes' => ''),
			'list_bg_tints'				=> array('$royal_event_get_list_bg_tints' => ''),
			'list_body_styles'			=> array('$royal_event_get_list_body_styles' => ''),
			'list_header_styles'		=> array('$royal_event_get_list_templates_header' => ''),
			'list_blog_styles'			=> array('$royal_event_get_list_templates_blog' => ''),
			'list_single_styles'		=> array('$royal_event_get_list_templates_single' => ''),
			'list_article_styles'		=> array('$royal_event_get_list_article_styles' => ''),
			'list_blog_counters' 		=> array('$royal_event_get_list_blog_counters' => ''),
			'list_menu_hovers' 			=> array('$royal_event_get_list_menu_hovers' => ''),
			'list_button_hovers'		=> array('$royal_event_get_list_button_hovers' => ''),
			'list_input_hovers'			=> array('$royal_event_get_list_input_hovers' => ''),
			'list_search_styles'		=> array('$royal_event_get_list_search_styles' => ''),
			'list_animations_in' 		=> array('$royal_event_get_list_animations_in' => ''),
			'list_animations_out'		=> array('$royal_event_get_list_animations_out' => ''),
			'list_filters'				=> array('$royal_event_get_list_portfolio_filters' => ''),
			'list_hovers'				=> array('$royal_event_get_list_hovers' => ''),
			'list_hovers_dir'			=> array('$royal_event_get_list_hovers_directions' => ''),
			'list_alter_sizes'			=> array('$royal_event_get_list_alter_sizes' => ''),
			'list_sliders' 				=> array('$royal_event_get_list_sliders' => ''),
			'list_bg_image_positions'	=> array('$royal_event_get_list_bg_image_positions' => ''),
			'list_popups' 				=> array('$royal_event_get_list_popup_engines' => ''),
			'list_gmap_styles'		 	=> array('$royal_event_get_list_googlemap_styles' => ''),
			'list_yes_no' 				=> array('$royal_event_get_list_yesno' => ''),
			'list_on_off' 				=> array('$royal_event_get_list_onoff' => ''),
			'list_show_hide' 			=> array('$royal_event_get_list_showhide' => ''),
			'list_sorting' 				=> array('$royal_event_get_list_sortings' => ''),
			'list_ordering' 			=> array('$royal_event_get_list_orderings' => ''),
			'list_locations' 			=> array('$royal_event_get_list_dedicated_locations' => '')
			)
		));


		// Theme options array
		royal_event_storage_set('options', apply_filters('royal_event_filter_options', array(

		
		//###############################
		//#### Customization         #### 
		//###############################
		'partition_customization' => array(
					"title" => esc_html__('Customization', 'royal-event'),
					"start" => "partitions",
					"override" => "category,services_group,post,page,custom",
					"icon" => "iconadmin-cog-alt",
					"type" => "partition"
					),
		
		
		// Customization -> Body Style
		//-------------------------------------------------
		
		'customization_body' => array(
					"title" => esc_html__('Body style', 'royal-event'),
					"override" => "category,services_group,post,page,custom",
					"icon" => 'iconadmin-picture',
					"start" => "customization_tabs",
					"type" => "tab"
					),
		
		'info_body_1' => array(
					"title" => esc_html__('Body parameters', 'royal-event'),
					"desc" => wp_kses_data( __('Select body style and color scheme for entire site. You can override this parameters on any page, post or category', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"
					),

		'body_style' => array(
					"title" => esc_html__('Body style', 'royal-event'),
					"desc" => wp_kses_data( __('Select body style:', 'royal-event') )
								. ' <br>' 
								. wp_kses_data( __('<b>boxed</b> - if you want use background color and/or image', 'royal-event') )
								. ',<br>'
								. wp_kses_data( __('<b>wide</b> - page fill whole window with centered content', 'royal-event') )
								. (royal_event_get_theme_setting('allow_fullscreen') 
									? ',<br>' . wp_kses_data( __('<b>fullwide</b> - page content stretched on the full width of the window (with few left and right paddings)', 'royal-event') )
									: '')
								. (royal_event_get_theme_setting('allow_fullscreen') 
									? ',<br>' . wp_kses_data( __('<b>fullscreen</b> - page content fill whole window without any paddings', 'royal-event') )
									: ''),
					"info" => true,
					"override" => "category,services_group,post,page,custom",
					"std" => "wide",
					"options" => royal_event_get_options_param('list_body_styles'),
					"dir" => "horizontal",
					"type" => "radio"
					),
		
		'body_paddings' => array(
					"title" => esc_html__('Page paddings', 'royal-event'),
					"desc" => wp_kses_data( __('Add paddings above and below the page content', 'royal-event') ),
					"override" => "post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"
					),

		"body_scheme" => array(
					"title" => esc_html__('Color scheme', 'royal-event'),
					"desc" => wp_kses_data( __('Select predefined color scheme for the entire page', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "original",
					"dir" => "horizontal",
					"options" => royal_event_get_options_param('list_color_schemes'),
					"type" => "checklist"),
		
		'body_filled' => array(
					"title" => esc_html__('Fill body', 'royal-event'),
					"desc" => wp_kses_data( __('Fill the page background with the solid color or leave it transparend to show background image (or video background)', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"
					),

		'info_body_2' => array(
					"title" => esc_html__('Background color and image', 'royal-event'),
					"desc" => wp_kses_data( __('Color and image for the site background', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"
					),

		'bg_custom' => array(
					"title" => esc_html__('Use custom background',  'royal-event'),
					"desc" => wp_kses_data( __("Use custom color and/or image as the site background", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"
					),
		
		'bg_color' => array(
					"title" => esc_html__('Background color',  'royal-event'),
					"desc" => wp_kses_data( __('Body background color',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'bg_custom' => array('yes')
					),
					"std" => "#ffffff",
					"type" => "color"
					),

		'bg_pattern' => array(
					"title" => esc_html__('Background predefined pattern',  'royal-event'),
					"desc" => wp_kses_data( __('Select theme background pattern (first case - without pattern)',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'bg_custom' => array('yes')
					),
					"std" => "",
					"options" => array(
						0 => royal_event_get_file_url('images/spacer.png'),
						1 => royal_event_get_file_url('images/bg/pattern_1.jpg'),
						2 => royal_event_get_file_url('images/bg/pattern_2.jpg'),
						3 => royal_event_get_file_url('images/bg/pattern_3.jpg'),
						4 => royal_event_get_file_url('images/bg/pattern_4.jpg'),
						5 => royal_event_get_file_url('images/bg/pattern_5.jpg')
					),
					"style" => "list",
					"type" => "images"
					),
		
		'bg_pattern_custom' => array(
					"title" => esc_html__('Background custom pattern',  'royal-event'),
					"desc" => wp_kses_data( __('Select or upload background custom pattern. If selected - use it instead the theme predefined pattern (selected in the field above)',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'bg_custom' => array('yes')
					),
					"std" => "",
					"type" => "media"
					),
		
		'bg_image' => array(
					"title" => esc_html__('Background predefined image',  'royal-event'),
					"desc" => wp_kses_data( __('Select theme background image (first case - without image)',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "",
					"dependency" => array(
						'bg_custom' => array('yes')
					),
					"options" => array(
						0 => royal_event_get_file_url('images/spacer.png'),
						1 => royal_event_get_file_url('images/bg/image_1_thumb.jpg'),
						2 => royal_event_get_file_url('images/bg/image_2_thumb.jpg'),
						3 => royal_event_get_file_url('images/bg/image_3_thumb.jpg')
					),
					"style" => "list",
					"type" => "images"
					),
		
		'bg_image_custom' => array(
					"title" => esc_html__('Background custom image',  'royal-event'),
					"desc" => wp_kses_data( __('Select or upload background custom image. If selected - use it instead the theme predefined image (selected in the field above)',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'bg_custom' => array('yes')
					),
					"std" => "",
					"type" => "media"
					),
		
		'bg_image_custom_position' => array( 
					"title" => esc_html__('Background custom image position',  'royal-event'),
					"desc" => wp_kses_data( __('Select custom image position',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "left_top",
					"dependency" => array(
						'bg_custom' => array('yes')
					),
					"options" => array(
						'left_top' => "Left Top",
						'center_top' => "Center Top",
						'right_top' => "Right Top",
						'left_center' => "Left Center",
						'center_center' => "Center Center",
						'right_center' => "Right Center",
						'left_bottom' => "Left Bottom",
						'center_bottom' => "Center Bottom",
						'right_bottom' => "Right Bottom",
					),
					"type" => "select"
					),
		
		'bg_image_load' => array(
					"title" => esc_html__('Load background image', 'royal-event'),
					"desc" => wp_kses_data( __('Always load background images or only for boxed body style', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "boxed",
					"size" => "medium",
					"dependency" => array(
						'bg_custom' => array('yes')
					),
					"options" => array(
						'boxed' => esc_html__('Boxed', 'royal-event'),
						'always' => esc_html__('Always', 'royal-event')
					),
					"type" => "switch"
					),

		
		'info_body_3' => array(
					"title" => esc_html__('Video background', 'royal-event'),
					"desc" => wp_kses_data( __('Parameters of the video, used as site background', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"
					),

		'show_video_bg' => array(
					"title" => esc_html__('Show video background',  'royal-event'),
					"desc" => wp_kses_data( __("Show video as the site background", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"
					),

		'video_bg_youtube_code' => array(
					"title" => esc_html__('Youtube code for video bg',  'royal-event'),
					"desc" => wp_kses_data( __("Youtube code of video", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_video_bg' => array('yes')
					),
					"std" => "",
					"type" => "text"
					),

		'video_bg_url' => array(
					"title" => esc_html__('Local video for video bg',  'royal-event'),
					"desc" => wp_kses_data( __("URL to video-file (uploaded on your site)", 'royal-event') ),
					"readonly" =>false,
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_video_bg' => array('yes')
					),
					"before" => array(	'title' => esc_html__('Choose video', 'royal-event'),
										'action' => 'media_upload',
										'multiple' => false,
										'linked_field' => '',
										'type' => 'video',
										'captions' => array('choose' => esc_html__( 'Choose Video', 'royal-event'),
															'update' => esc_html__( 'Select Video', 'royal-event')
														)
								),
					"std" => "",
					"type" => "media"
					),

		'video_bg_overlay' => array(
					"title" => esc_html__('Use overlay for video bg', 'royal-event'),
					"desc" => wp_kses_data( __('Use overlay texture for the video background', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_video_bg' => array('yes')
					),
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"
					),
		
		
		
		
		
		// Customization -> Header
		//-------------------------------------------------
		
		'customization_header' => array(
					"title" => esc_html__("Header", 'royal-event'),
					"override" => "category,services_group,post,page,custom",
					"icon" => 'iconadmin-window',
					"type" => "tab"),
		
		"info_header_1" => array(
					"title" => esc_html__('Top panel', 'royal-event'),
					"desc" => wp_kses_data( __('Top panel settings. It include user menu area (with contact info, cart button, language selector, login/logout menu and user menu) and main menu area (with logo and main menu).', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),
		
		"top_panel_style" => array(
					"title" => esc_html__('Top panel style', 'royal-event'),
					"desc" => wp_kses_data( __('Select desired style of the page header', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "header_3",
					"options" => royal_event_get_options_param('list_header_styles'),
					"style" => "list",
					"type" => "images"),
		
		"top_panel_position" => array( 
					"title" => esc_html__('Top panel position', 'royal-event'),
					"desc" => wp_kses_data( __('Select position for the top panel with logo and main menu', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "above",
					"options" => array(
						'hide'  => esc_html__('Hide', 'royal-event'),
						'above' => esc_html__('Above slider', 'royal-event'),
						'below' => esc_html__('Below slider', 'royal-event'),
						'over'  => esc_html__('Over slider', 'royal-event')
					),
					"type" => "checklist"),

		"top_panel_scheme" => array(
					"title" => esc_html__('Top panel color scheme', 'royal-event'),
					"desc" => wp_kses_data( __('Select predefined color scheme for the top panel', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "original",
					"dir" => "horizontal",
					"options" => royal_event_get_options_param('list_color_schemes'),
					"type" => "checklist"),

		"pushy_panel_scheme" => array(
					"title" => esc_html__('Push panel color scheme', 'royal-event'),
					"desc" => wp_kses_data( __('Select predefined color scheme for the push panel (with logo, menu and socials)', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'top_panel_style' => array('header_8')
					),
					"std" => "dark",
					"dir" => "horizontal",
					"options" => royal_event_get_options_param('list_color_schemes'),
					"type" => "checklist"),
		
		"show_page_title" => array(
					"title" => esc_html__('Show Page title', 'royal-event'),
					"desc" => wp_kses_data( __('Show post/page/category title', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"show_breadcrumbs" => array(
					"title" => esc_html__('Show Breadcrumbs', 'royal-event'),
					"desc" => wp_kses_data( __('Show path to current category (post, page)', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

        "top_panel_title_image" => array(
                    "title" => esc_html__('Top panel image', 'royal-event'),
                    "desc" => wp_kses_data( __('Select default background image of the page title and breadcrumbs', 'royal-event') ),
                    "override" => "category,services_group,post,page,custom",
                    "dependency" => array(
                        'show_breadcrumbs' => array('yes'),
                        'show_page_title' => array('yes')
                    ),
                    "std" => "",
                    "type" => "media"),

		"breadcrumbs_max_level" => array(
					"title" => esc_html__('Breadcrumbs max nesting', 'royal-event'),
					"desc" => wp_kses_data( __("Max number of the nested categories in the breadcrumbs (0 - unlimited)", 'royal-event') ),
					"dependency" => array(
						'show_breadcrumbs' => array('yes')
					),
					"std" => "0",
					"min" => 0,
					"max" => 100,
					"step" => 1,
					"type" => "spinner"),

		
		
		
		"info_header_2" => array( 
					"title" => esc_html__('Main menu style and position', 'royal-event'),
					"desc" => wp_kses_data( __('Select the Main menu style and position', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),
		
		"menu_main" => array( 
					"title" => esc_html__('Select main menu',  'royal-event'),
					"desc" => wp_kses_data( __('Select main menu for the current page',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "default",
					"options" => royal_event_get_options_param('list_menus'),
					"type" => "select"),
		
		"menu_attachment" => array( 
					"title" => esc_html__('Main menu attachment', 'royal-event'),
					"desc" => wp_kses_data( __('Attach main menu to top of window then page scroll down', 'royal-event') ),
					"std" => "fixed",
					"options" => array(
						"fixed"=>esc_html__("Fix menu position", 'royal-event'), 
						"none"=>esc_html__("Don't fix menu position", 'royal-event')
					),
					"dir" => "vertical",
					"type" => "radio"),

		"menu_hover" => array( 
					"title" => esc_html__('Main menu hover effect', 'royal-event'),
					"desc" => wp_kses_data( __('Select hover effect for the main menu items', 'royal-event') ),
					"std" => "fade",
					"type" => "select",
					"options" => royal_event_get_options_param('list_menu_hovers')),

		"menu_animation_in" => array( 
					"title" => esc_html__('Submenu show animation', 'royal-event'),
					"desc" => wp_kses_data( __('Select animation to show submenu ', 'royal-event') ),
					"std" => "bounceIn",
					"type" => "select",
					"options" => royal_event_get_options_param('list_animations_in')),

		"menu_animation_out" => array( 
					"title" => esc_html__('Submenu hide animation', 'royal-event'),
					"desc" => wp_kses_data( __('Select animation to hide submenu ', 'royal-event') ),
					"std" => "fadeOutDown",
					"type" => "select",
					"options" => royal_event_get_options_param('list_animations_out')),
		
		"menu_mobile" => array( 
					"title" => esc_html__('Main menu responsive', 'royal-event'),
					"desc" => wp_kses_data( __('Allow responsive version for the main menu if window width less then this value', 'royal-event') ),
					"std" => 1024,
					"min" => 320,
					"max" => 1024,
					"type" => "spinner"),
		
		"menu_width" => array( 
					"title" => esc_html__('Submenu width', 'royal-event'),
					"desc" => wp_kses_data( __('Width for dropdown menus in main menu', 'royal-event') ),
					"step" => 5,
					"std" => "",
					"min" => 180,
					"max" => 300,
					"mask" => "?999",
					"type" => "spinner"),
		
		
		
		"info_header_3" => array(
					"title" => esc_html__("User's menu area components", 'royal-event'),
					"desc" => wp_kses_data( __("Select parts for the user's menu area", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),
		
		"show_top_panel_top" => array(
					"title" => esc_html__('Show user menu area', 'royal-event'),
					"desc" => wp_kses_data( __('Show user menu area on top of page', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"show_phone" => array(
					"title" => esc_html__('Show Phone', 'royal-event'),
					"desc" => wp_kses_data( __('Show Phone in the user menu area', 'royal-event') ),
					"dependency" => array(
						'show_top_panel_top' => array('yes')
					),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"show_login" => array(
					"title" => esc_html__('Show Login/Logout buttons', 'royal-event'),
					"desc" => wp_kses_data( __('Show Login and Logout buttons in the user menu area', 'royal-event') ),
					"dependency" => array(
						'show_top_panel_top' => array('yes')
					),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"show_bookmarks" => array(
					"title" => esc_html__('Show bookmarks', 'royal-event'),
					"desc" => wp_kses_data( __('Show bookmarks selector in the user menu', 'royal-event') ),
					"dependency" => array(
						'show_top_panel_top' => array('yes')
					),
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"show_socials" => array( 
					"title" => esc_html__('Show Social icons', 'royal-event'),
					"desc" => wp_kses_data( __('Show Social icons in the user menu area', 'royal-event') ),
					"dependency" => array(
						'show_top_panel_top' => array('yes')
					),
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		

		
		"info_header_4" => array( 
					"title" => esc_html__("Table of Contents (TOC)", 'royal-event'),
					"desc" => wp_kses_data( __("Table of Contents for the current page. Automatically created if the page contains objects with id starting with 'toc_'", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),
		
		"menu_toc" => array( 
					"title" => esc_html__('TOC position', 'royal-event'),
					"desc" => wp_kses_data( __('Show TOC for the current page', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "float",
					"options" => array(
						'hide'  => esc_html__('Hide', 'royal-event'),
						'fixed' => esc_html__('Fixed', 'royal-event'),
						'float' => esc_html__('Float', 'royal-event')
					),
					"type" => "checklist"),
		
		"menu_toc_home" => array(
					"title" => esc_html__('Add "Home" into TOC', 'royal-event'),
					"desc" => wp_kses_data( __('Automatically add "Home" item into table of contents - return to home page of the site', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'menu_toc' => array('fixed','float')
					),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"menu_toc_top" => array( 
					"title" => esc_html__('Add "To Top" into TOC', 'royal-event'),
					"desc" => wp_kses_data( __('Automatically add "To Top" item into table of contents - scroll to top of the page', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'menu_toc' => array('fixed','float')
					),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		
		
		
		'info_header_5' => array(
					"title" => esc_html__('Main logo', 'royal-event'),
					"desc" => wp_kses_data( __("Select or upload logos for the site's header and select it position", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"
					),

		'logo' => array(
					"title" => esc_html__('Logo image', 'royal-event'),
					"desc" => wp_kses_data( __('Main logo image', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "",
					"type" => "media"
					),

		'logo_retina' => array(
					"title" => esc_html__('Logo image for Retina', 'royal-event'),
					"desc" => wp_kses_data( __('Main logo image used on Retina display', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "",
					"type" => "media"
					),

		'logo_fixed' => array(
					"title" => esc_html__('Logo image (fixed header)', 'royal-event'),
					"desc" => wp_kses_data( __('Logo image for the header (if menu is fixed after the page is scrolled)', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"divider" => false,
					"std" => "",
					"type" => "media"
					),

		'logo_text' => array(
					"title" => esc_html__('Logo text', 'royal-event'),
					"desc" => wp_kses_data( __('Logo text - display it after logo image', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => '',
					"type" => "text"
					),

		'logo_height' => array(
					"title" => esc_html__('Logo height', 'royal-event'),
					"desc" => wp_kses_data( __('Height for the logo in the header area', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"step" => 1,
					"std" => '87',
					"min" => 10,
					"max" => 300,
					"mask" => "?999",
					"type" => "spinner"
					),

		'logo_offset' => array(
					"title" => esc_html__('Logo top offset', 'royal-event'),
					"desc" => wp_kses_data( __('Top offset for the logo in the header area', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"step" => 1,
					"std" => '',
					"min" => 0,
					"max" => 99,
					"mask" => "?99",
					"type" => "spinner"
					),
		
		
		
		
		
		
		
		// Customization -> Slider
		//-------------------------------------------------
		
		"customization_slider" => array( 
					"title" => esc_html__('Slider', 'royal-event'),
					"icon" => "iconadmin-picture",
					"override" => "category,services_group,page,custom",
					"type" => "tab"),
		
		"info_slider_1" => array(
					"title" => esc_html__('Main slider parameters', 'royal-event'),
					"desc" => wp_kses_data( __('Select parameters for main slider (you can override it in each category and page)', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"type" => "info"),
					
		"show_slider" => array(
					"title" => esc_html__('Show Slider', 'royal-event'),
					"desc" => wp_kses_data( __('Do you want to show slider on each page (post)', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
					
		"slider_display" => array(
					"title" => esc_html__('Slider display', 'royal-event'),
					"desc" => wp_kses_data( __('How display slider: boxed (fixed width and height), fullwide (fixed height) or fullscreen', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes')
					),
					"std" => "fullwide",
					"options" => array(
						"boxed"=>esc_html__("Boxed", 'royal-event'),
						"fullwide"=>esc_html__("Fullwide", 'royal-event'),
						"fullscreen"=>esc_html__("Fullscreen", 'royal-event')
					),
					"type" => "checklist"),
		
		"slider_height" => array(
					"title" => esc_html__("Height (in pixels)", 'royal-event'),
					"desc" => wp_kses_data( __("Slider height (in pixels) - only if slider display with fixed height.", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes')
					),
					"std" => '',
					"min" => 100,
					"step" => 10,
					"type" => "spinner"),
		
		"slider_engine" => array(
					"title" => esc_html__('Slider engine', 'royal-event'),
					"desc" => wp_kses_data( __('What engine use to show slider?', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes')
					),
					"std" => "swiper",
					"options" => royal_event_get_options_param('list_sliders'),
					"type" => "radio"),

		"slider_over_content" => array(
					"title" => esc_html__('Put content over slider',  'royal-event'),
					"desc" => wp_kses_data( __('Put content below on fixed layer over this slider',  'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes')
					),
					"cols" => 80,
					"rows" => 20,
					"std" => "",
					"allow_html" => true,
					"allow_js" => true,
					"type" => "editor"),

		"slider_over_scheme" => array(
					"title" => esc_html__('Color scheme for content above', 'royal-event'),
					"desc" => wp_kses_data( __('Select predefined color scheme for the content over the slider', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "dark",
					"dir" => "horizontal",
					"options" => royal_event_get_options_param('list_color_schemes'),
					"type" => "checklist"),


        "slider_scroll_down" => array(
                "title" => esc_html__("Scroll Down", 'royal-event'),
                "desc" => wp_kses_data( __("Do you want to show button Scroll down in slider", 'royal-event') ),
                "override" => "category,services_group,page,custom",
                "dependency" => array(
                    'show_slider' => array('yes'),
                    'slider_engine' => array('revo')
                ),
                "std" => "no",
                "options" => royal_event_get_options_param('list_yes_no'),
                "type" => "switch"),

        "slider_category" => array(
                "title" => esc_html__('Posts Slider: Category to show', 'royal-event'),
                "desc" => wp_kses_data( __('Select category to show in Flexslider (ignored for Revolution and Royal sliders)', 'royal-event') ),
                "override" => "category,services_group,page,custom",
                "dependency" => array(
                    'show_slider' => array('yes'),
                    'slider_engine' => array('swiper')
                ),
                "std" => "desc",
                "options" => royal_event_get_options_param('list_ordering'),
                "size" => "big",
                "type" => "switch"),
		
		"slider_posts" => array(
					"title" => esc_html__('Posts Slider: Number posts or comma separated posts list',  'royal-event'),
					"desc" => wp_kses_data( __("How many recent posts display in slider or comma separated list of posts ID (in this case selected category ignored)", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes'),
						'slider_engine' => array('swiper')
					),
					"std" => "5",
					"type" => "text"),
		
		"slider_orderby" => array(
					"title" => esc_html__("Posts Slider: Posts order by",  'royal-event'),
					"desc" => wp_kses_data( __("Posts in slider ordered by date (default), comments, views, author rating, users rating, random or alphabetically", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes'),
						'slider_engine' => array('swiper')
					),
					"std" => "date",
					"options" => royal_event_get_options_param('list_sorting'),
					"type" => "select"),
		
		"slider_order" => array(
					"title" => esc_html__("Posts Slider: Posts order", 'royal-event'),
					"desc" => wp_kses_data( __('Select the desired ordering method for posts', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes'),
						'slider_engine' => array('swiper')
					),
					"std" => "desc",
					"options" => royal_event_get_options_param('list_ordering'),
					"size" => "big",
					"type" => "switch"),
					
		"slider_interval" => array(
					"title" => esc_html__("Posts Slider: Slide change interval", 'royal-event'),
					"desc" => wp_kses_data( __("Interval (in ms) for slides change in slider", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes'),
						'slider_engine' => array('swiper')
					),
					"std" => 7000,
					"min" => 100,
					"step" => 100,
					"type" => "spinner"),
		
		"slider_pagination" => array(
					"title" => esc_html__("Posts Slider: Pagination", 'royal-event'),
					"desc" => wp_kses_data( __("Choose pagination style for the slider", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes'),
						'slider_engine' => array('swiper')
					),
					"std" => "no",
					"options" => array(
						'no'   => esc_html__('None', 'royal-event'),
						'yes'  => esc_html__('Dots', 'royal-event'), 
						'over' => esc_html__('Titles', 'royal-event')
					),
					"type" => "checklist"),
		
		"slider_infobox" => array(
					"title" => esc_html__("Posts Slider: Show infobox", 'royal-event'),
					"desc" => wp_kses_data( __("Do you want to show post's title, reviews rating and description on slides in slider", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes'),
						'slider_engine' => array('swiper')
					),
					"std" => "slide",
					"options" => array(
						'no'    => esc_html__('None',  'royal-event'),
						'slide' => esc_html__('Slide', 'royal-event'), 
						'fixed' => esc_html__('Fixed', 'royal-event')
					),
					"type" => "checklist"),
					
		"slider_info_category" => array(
					"title" => esc_html__("Posts Slider: Show post's category", 'royal-event'),
					"desc" => wp_kses_data( __("Do you want to show post's category on slides in slider", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes'),
						'slider_engine' => array('swiper')
					),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
					
		"slider_info_reviews" => array(
					"title" => esc_html__("Posts Slider: Show post's reviews rating", 'royal-event'),
					"desc" => wp_kses_data( __("Do you want to show post's reviews rating on slides in slider", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes'),
						'slider_engine' => array('swiper')
					),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
					
		"slider_info_descriptions" => array(
					"title" => esc_html__("Posts Slider: Show post's descriptions", 'royal-event'),
					"desc" => wp_kses_data( __("How many characters show in the post's description in slider. 0 - no descriptions", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_slider' => array('yes'),
						'slider_engine' => array('swiper')
					),
					"std" => 0,
					"min" => 0,
					"step" => 10,
					"type" => "spinner"),
		
		
		
		
		
		// Customization -> Sidebars
		//-------------------------------------------------
		
		"customization_sidebars" => array( 
					"title" => esc_html__('Sidebars', 'royal-event'),
					"icon" => "iconadmin-indent-right",
					"override" => "category,services_group,post,page,custom",
					"type" => "tab"),
		
		"info_sidebars_1" => array( 
					"title" => esc_html__('Custom sidebars', 'royal-event'),
					"desc" => wp_kses_data( __('In this section you can create unlimited sidebars. You can fill them with widgets in the menu Appearance - Widgets', 'royal-event') ),
					"type" => "info"),
		
		"custom_sidebars" => array(
					"title" => esc_html__('Custom sidebars',  'royal-event'),
					"desc" => wp_kses_data( __('Manage custom sidebars. You can use it with each category (page, post) independently',  'royal-event') ),
					"std" => "",
					"cloneable" => true,
					"type" => "text"),
		
		"info_sidebars_2" => array(
					"title" => esc_html__('Main sidebar', 'royal-event'),
					"desc" => wp_kses_data( __('Show / Hide and select main sidebar', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),
		
		'show_sidebar_main' => array( 
					"title" => esc_html__('Show main sidebar',  'royal-event'),
					"desc" => wp_kses_data( __('Select position for the main sidebar or hide it',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "right",
					"options" => royal_event_get_options_param('list_positions'),
					"dir" => "horizontal",
					"type" => "checklist"),

		"sidebar_main_scheme" => array(
					"title" => esc_html__("Color scheme", 'royal-event'),
					"desc" => wp_kses_data( __('Select predefined color scheme for the main sidebar', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_sidebar_main' => array('left', 'right')
					),
					"std" => "original",
					"dir" => "horizontal",
					"options" => royal_event_get_options_param('list_color_schemes'),
					"type" => "checklist"),
		
		"sidebar_main" => array( 
					"title" => esc_html__('Select main sidebar',  'royal-event'),
					"desc" => wp_kses_data( __('Select main sidebar content',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_sidebar_main' => array('left', 'right')
					),
					"std" => "sidebar_main",
					"options" => royal_event_get_options_param('list_sidebars'),
					"type" => "select"),

		
		
		
		// Customization -> Footer
		//-------------------------------------------------
		
		'customization_footer' => array(
					"title" => esc_html__("Footer", 'royal-event'),
					"override" => "category,services_group,post,page,custom",
					"icon" => 'iconadmin-window',
					"type" => "tab"),
		
		
		"info_footer_1" => array(
					"title" => esc_html__("Footer components", 'royal-event'),
					"desc" => wp_kses_data( __("Select components of the footer, set style and put the content for the user's footer area", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),
		
		"show_sidebar_footer" => array(
					"title" => esc_html__('Show footer sidebar', 'royal-event'),
					"desc" => wp_kses_data( __('Select style for the footer sidebar or hide it', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"sidebar_footer_scheme" => array(
					"title" => esc_html__("Color scheme", 'royal-event'),
					"desc" => wp_kses_data( __('Select predefined color scheme for the footer', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_sidebar_footer' => array('yes')
					),
					"std" => "original",
					"dir" => "horizontal",
					"options" => royal_event_get_options_param('list_color_schemes'),
					"type" => "checklist"),
		
		"sidebar_footer" => array( 
					"title" => esc_html__('Select footer sidebar',  'royal-event'),
					"desc" => wp_kses_data( __('Select footer sidebar for the blog page',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_sidebar_footer' => array('yes')
					),
					"std" => "sidebar_footer",
					"options" => royal_event_get_options_param('list_sidebars'),
					"type" => "select"),
		
		"sidebar_footer_columns" => array( 
					"title" => esc_html__('Footer sidebar columns',  'royal-event'),
					"desc" => wp_kses_data( __('Select columns number for the footer sidebar',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_sidebar_footer' => array('yes')
					),
					"std" => 3,
					"min" => 1,
					"max" => 6,
					"type" => "spinner"),
		
		
		"info_footer_2" => array(
					"title" => esc_html__('Testimonials in Footer', 'royal-event'),
					"desc" => wp_kses_data( __('Select parameters for Testimonials in the Footer', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),

		"show_testimonials_in_footer" => array(
					"title" => esc_html__('Show Testimonials in footer', 'royal-event'),
					"desc" => wp_kses_data( __('Show Testimonials slider in footer. For correct operation of the slider (and shortcode testimonials) you must fill out Testimonials posts on the menu "Testimonials"', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"testimonials_scheme" => array(
					"title" => esc_html__("Color scheme", 'royal-event'),
					"desc" => wp_kses_data( __('Select predefined color scheme for the testimonials area', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_testimonials_in_footer' => array('yes')
					),
					"std" => "original",
					"dir" => "horizontal",
					"options" => royal_event_get_options_param('list_color_schemes'),
					"type" => "checklist"),

		"testimonials_count" => array( 
					"title" => esc_html__('Testimonials count', 'royal-event'),
					"desc" => wp_kses_data( __('Number testimonials to show', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_testimonials_in_footer' => array('yes')
					),
					"std" => 3,
					"step" => 1,
					"min" => 1,
					"max" => 10,
					"type" => "spinner"),
		
		
		"info_footer_3" => array(
					"title" => esc_html__('Twitter in Footer', 'royal-event'),
					"desc" => wp_kses_data( __('Select parameters for Twitter stream in the Footer (you can override it in each category and page)', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),

		"show_twitter_in_footer" => array(
					"title" => esc_html__('Show Twitter in footer', 'royal-event'),
					"desc" => wp_kses_data( __('Show Twitter slider in footer. For correct operation of the slider (and shortcode twitter) you must fill out the Twitter API keys on the menu "Appearance - Theme Options - Socials"', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"twitter_scheme" => array(
					"title" => esc_html__("Color scheme", 'royal-event'),
					"desc" => wp_kses_data( __('Select predefined color scheme for the twitter area', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_twitter_in_footer' => array('yes')
					),
					"std" => "original",
					"dir" => "horizontal",
					"options" => royal_event_get_options_param('list_color_schemes'),
					"type" => "checklist"),

		"twitter_count" => array( 
					"title" => esc_html__('Twitter count', 'royal-event'),
					"desc" => wp_kses_data( __('Number twitter to show', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_twitter_in_footer' => array('yes')
					),
					"std" => 3,
					"step" => 1,
					"min" => 1,
					"max" => 10,
					"type" => "spinner"),


		"info_footer_4" => array(
					"title" => esc_html__('Google map parameters', 'royal-event'),
					"desc" => wp_kses_data( __('Select parameters for Google map (you can override it in each category and page)', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),
					
		"show_googlemap" => array(
					"title" => esc_html__('Show Google Map', 'royal-event'),
					"desc" => wp_kses_data( __('Do you want to show Google map on each page (post)', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"googlemap_height" => array(
					"title" => esc_html__("Map height", 'royal-event'),
					"desc" => wp_kses_data( __("Map height (default - in pixels, allows any CSS units of measure)", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_googlemap' => array('yes')
					),
					"std" => 400,
					"min" => 100,
					"step" => 10,
					"type" => "spinner"),
		
		"googlemap_address" => array(
					"title" => esc_html__('Address to show on map',  'royal-event'),
					"desc" => wp_kses_data( __("Enter address to show on map center", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_googlemap' => array('yes')
					),
					"std" => "",
					"type" => "text"),
		
		"googlemap_latlng" => array(
					"title" => esc_html__('Latitude and Longitude to show on map',  'royal-event'),
					"desc" => wp_kses_data( __("Enter coordinates (separated by comma) to show on map center (instead of address)", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_googlemap' => array('yes')
					),
					"std" => "",
					"type" => "text"),
		
		"googlemap_title" => array(
					"title" => esc_html__('Title to show on map',  'royal-event'),
					"desc" => wp_kses_data( __("Enter title to show on map center", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_googlemap' => array('yes')
					),
					"std" => "",
					"type" => "text"),
		
		"googlemap_description" => array(
					"title" => esc_html__('Description to show on map',  'royal-event'),
					"desc" => wp_kses_data( __("Enter description to show on map center", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_googlemap' => array('yes')
					),
					"std" => "",
					"type" => "text"),
		
		"googlemap_zoom" => array(
					"title" => esc_html__('Google map initial zoom',  'royal-event'),
					"desc" => wp_kses_data( __("Enter desired initial zoom for Google map", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_googlemap' => array('yes')
					),
					"std" => 16,
					"min" => 1,
					"max" => 20,
					"step" => 1,
					"type" => "spinner"),
		
		"googlemap_style" => array(
					"title" => esc_html__('Google map style',  'royal-event'),
					"desc" => wp_kses_data( __("Select style to show Google map", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_googlemap' => array('yes')
					),
					"std" => 'greyscale',
					"options" => royal_event_get_options_param('list_gmap_styles'),
					"type" => "select"),
		
		"googlemap_marker" => array(
					"title" => esc_html__('Google map marker',  'royal-event'),
					"desc" => wp_kses_data( __("Select or upload png-image with Google map marker", 'royal-event') ),
					"dependency" => array(
						'show_googlemap' => array('yes')
					),
					"std" => '',
					"type" => "media"),
		
		
		
		"info_footer_5" => array(
					"title" => esc_html__("Contacts area", 'royal-event'),
					"desc" => wp_kses_data( __("Show/Hide contacts area in the footer", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),
		
		"show_contacts_in_footer" => array(
					"title" => esc_html__('Show Contacts in footer', 'royal-event'),
					"desc" => wp_kses_data( __('Show contact information area in footer: site logo, contact info and large social icons', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"contacts_scheme" => array(
					"title" => esc_html__("Color scheme", 'royal-event'),
					"desc" => wp_kses_data( __('Select predefined color scheme for the contacts area', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_contacts_in_footer' => array('yes')
					),
					"std" => "original",
					"dir" => "horizontal",
					"options" => royal_event_get_options_param('list_color_schemes'),
					"type" => "checklist"),

		'logo_footer' => array(
					"title" => esc_html__('Logo image for footer', 'royal-event'),
					"desc" => wp_kses_data( __('Logo image in the footer (in the contacts area)', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_contacts_in_footer' => array('yes')
					),
					"std" => "",
					"type" => "media"
					),

		'logo_footer_retina' => array(
					"title" => esc_html__('Logo image for footer for Retina', 'royal-event'),
					"desc" => wp_kses_data( __('Logo image in the footer (in the contacts area) used on Retina display', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_contacts_in_footer' => array('yes')
					),
					"std" => "",
					"type" => "media"
					),
		
		'logo_footer_height' => array(
					"title" => esc_html__('Logo height', 'royal-event'),
					"desc" => wp_kses_data( __('Height for the logo in the footer area (in the contacts area)', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_contacts_in_footer' => array('yes')
					),
					"step" => 1,
					"std" => 87,
					"min" => 10,
					"max" => 300,
					"mask" => "?999",
					"type" => "spinner"
					),
		
		
		
		"info_footer_6" => array(
					"title" => esc_html__("Copyright and footer menu", 'royal-event'),
					"desc" => wp_kses_data( __("Show/Hide copyright area in the footer", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),

		"show_copyright_in_footer" => array(
					"title" => esc_html__('Show Copyright area in footer', 'royal-event'),
					"desc" => wp_kses_data( __('Show area with copyright information, footer menu and small social icons in footer', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "plain",
					"options" => array(
						'none' => esc_html__('Hide', 'royal-event'),
						'text' => esc_html__('Text', 'royal-event'),
						'socials' => esc_html__('Text and Social icons', 'royal-event')
					),
					"type" => "checklist"),

		"copyright_scheme" => array(
					"title" => esc_html__("Color scheme", 'royal-event'),
					"desc" => wp_kses_data( __('Select predefined color scheme for the copyright area', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_copyright_in_footer' => array('text', 'menu', 'socials')
					),
					"std" => "original",
					"dir" => "horizontal",
					"options" => royal_event_get_options_param('list_color_schemes'),
					"type" => "checklist"),
		
		"menu_footer" => array( 
					"title" => esc_html__('Select footer menu',  'royal-event'),
					"desc" => wp_kses_data( __('Select footer menu for the current page',  'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "default",
					"dependency" => array(
						'show_copyright_in_footer' => array('menu')
					),
					"options" => royal_event_get_options_param('list_menus'),
					"type" => "select"),

		"footer_copyright" => array(
					"title" => esc_html__('Footer copyright text',  'royal-event'),
					"desc" => wp_kses_data( __("Copyright text to show in footer area (bottom of site)", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'show_copyright_in_footer' => array('text', 'menu', 'socials')
					),
					"allow_html" => true,
					"std" => "Royal Event &copy; {Y} All Rights Reserved ",
					"rows" => "10",
					"type" => "editor"),




		// Customization -> Other
		//-------------------------------------------------
		
		'customization_other' => array(
					"title" => esc_html__('Other', 'royal-event'),
					"override" => "category,services_group,post,page,custom",
					"icon" => 'iconadmin-cog',
					"type" => "tab"
					),

		'info_other_1' => array(
					"title" => esc_html__('Theme customization other parameters', 'royal-event'),
					"desc" => wp_kses_data( __('Animation parameters and responsive layouts for the small screens', 'royal-event') ),
					"type" => "info"
					),

		'show_theme_customizer' => array(
					"title" => esc_html__('Show Theme customizer', 'royal-event'),
					"desc" => wp_kses_data( __('Do you want to show theme customizer in the right panel? Your website visitors will be able to customise it yourself.', 'royal-event') ),
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"
					),

		"customizer_demo" => array(
					"title" => esc_html__('Theme customizer panel demo time', 'royal-event'),
					"desc" => wp_kses_data( __('Timer for demo mode for the customizer panel (in milliseconds: 1000ms = 1s). If 0 - no demo.', 'royal-event') ),
					"dependency" => array(
						'show_theme_customizer' => array('yes')
					),
					"std" => "0",
					"min" => 0,
					"max" => 10000,
					"step" => 500,
					"type" => "spinner"),
		
		'css_animation' => array(
					"title" => esc_html__('Extended CSS animations', 'royal-event'),
					"desc" => wp_kses_data( __('Do you want use extended animations effects on your site?', 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"
					),
		
		'animation_on_mobile' => array(
					"title" => esc_html__('Allow CSS animations on mobile', 'royal-event'),
					"desc" => wp_kses_data( __('Do you allow extended animations effects on mobile devices?', 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"
					),

		"button_hover" => array( 
					"title" => esc_html__("Buttons hover", 'royal-event'),
					"desc" => wp_kses_data( __("Select hover effect for all theme's buttons (and buttons from the thirdparty plugins if possible)", 'royal-event') ),
					"std" => "slide_left",
					"type" => "select",
					"options" => royal_event_get_options_param('list_button_hovers')),

		"input_hover" => array( 
					"title" => esc_html__("Input fileds style", 'royal-event'),
					"desc" => wp_kses_data( __("Select style for all theme's input fields (and fields from the thirdparty plugins if possible)", 'royal-event') ),
					"std" => "default",
					"type" => "select",
					"options" => royal_event_get_options_param('list_input_hovers')),

		'remember_visitors_settings' => array(
					"title" => esc_html__("Remember visitor's settings", 'royal-event'),
					"desc" => wp_kses_data( __('To remember the settings that were made by the visitor, when navigating to other pages or to limit their effect only within the current page', 'royal-event') ),
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"
					),
					
		'responsive_layouts' => array(
					"title" => esc_html__('Responsive Layouts', 'royal-event'),
					"desc" => wp_kses_data( __('Do you want use responsive layouts on small screen or still use main layout?', 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"
					),

		"page_preloader" => array( 
					"title" => esc_html__("Show page preloader", 'royal-event'),
					"desc" => wp_kses_data( __("Select one of predefined styles for the page preloader or upload preloader image", 'royal-event') ),
					"std" => "none",
					"type" => "select",
					"options" => array(
						'none'   => esc_html__('Hide preloader', 'royal-event'),
						'circle' => esc_html__('Circle', 'royal-event'),
						'square' => esc_html__('Square', 'royal-event'),
						'custom' => esc_html__('Custom', 'royal-event'),
					)),
		
		'page_preloader_image' => array(
					"title" => esc_html__('Upload preloader image',  'royal-event'),
					"desc" => wp_kses_data( __('Upload animated GIF to use it as page preloader',  'royal-event') ),
					"dependency" => array(
						'page_preloader' => array('custom')
					),
					"std" => "",
					"type" => "media"
					),

		'privacy_text' => array(
			"title" => esc_html__("Text with Privacy Policy link", 'royal-event'),
			"desc"  => wp_kses_data( __("Specify text with Privacy Policy link for the checkbox 'I agree ...'", 'royal-event') ),
			"std"   => wp_kses_post( __( 'I agree that my submitted data is being collected and stored.', 'royal-event') ),
			"type"  => "text"
		),



		'info_other_2' => array(
					"title" => esc_html__('Google fonts parameters', 'royal-event'),
					"desc" => wp_kses_data( __('Specify additional parameters, used to load Google fonts', 'royal-event') ),
					"type" => "info"
					),
		
		"fonts_subset" => array(
					"title" => esc_html__('Characters subset', 'royal-event'),
					"desc" => wp_kses_data( __('Select subset, included into used Google fonts', 'royal-event') ),
					"std" => "latin,latin-ext",
					"options" => array(
						'latin' => esc_html__('Latin', 'royal-event'),
						'latin-ext' => esc_html__('Latin Extended', 'royal-event'),
						'greek' => esc_html__('Greek', 'royal-event'),
						'greek-ext' => esc_html__('Greek Extended', 'royal-event'),
						'cyrillic' => esc_html__('Cyrillic', 'royal-event'),
						'cyrillic-ext' => esc_html__('Cyrillic Extended', 'royal-event'),
						'vietnamese' => esc_html__('Vietnamese', 'royal-event')
					),
					"size" => "medium",
					"dir" => "vertical",
					"multiple" => true,
					"type" => "checklist"),

        'info_other_4' => array(
                    "title" => esc_html__('Special options', 'royal-event'),
                    "desc" => wp_kses_data( __('Special options for the theme', 'royal-event') ),
                    "override" => "category,services_group,post,page,custom",
                    "type" => "info"
                    ),

        'scroll_to_top_in_footer' => array(
                    "title" => esc_html__('Position Scroll to top', 'royal-event'),
                    "desc" => wp_kses_data( __('Position Scroll to top in the footer', 'royal-event') ),
                    "override" => "category,services_group,post,page,custom",
                    "std" => "no",
                    "options" => royal_event_get_options_param('list_yes_no'),
                    "type" => "switch"
                   ),

        'special_image_1' => array(
                    "title" => esc_html__('Special Background image',  'royal-event'),
                    "desc" => wp_kses_data( __('Select or upload background custom image.',  'royal-event') ),
                    "override" => "category,services_group,post,page,custom",
                    "std" => royal_event_get_file_url('images/main_bg.jpg'),
                    "type" => "media"
                    ),

        'special_image_2' => array(
                    "title" => esc_html__('Captions Background image',  'royal-event'),
                    "desc" => wp_kses_data( __('Select or upload background custom image.',  'royal-event') ),
                    "override" => "category,services_group,post,page,custom",
                    "std" => royal_event_get_file_url('images/title_bg_green.png'),
                    "type" => "media"
                    ),

        'special_image_3' => array(
                    "title" => esc_html__('Captions Background image light',  'royal-event'),
                    "desc" => wp_kses_data( __('Select or upload background custom image.',  'royal-event') ),
                    "override" => "category,services_group,post,page,custom",
                    "std" => royal_event_get_file_url('images/title_bg_white.png'),
                    "type" => "media"
                    ),
		
		
		
		
		
		
		
		
		//###############################
		//#### Blog and Single pages #### 
		//###############################
		"partition_blog" => array(
					"title" => esc_html__('Blog &amp; Single', 'royal-event'),
					"icon" => "iconadmin-docs",
					"override" => "category,services_group,post,page,custom",
					"type" => "partition"),
		
		
		
		// Blog -> Stream page
		//-------------------------------------------------
		
		'blog_tab_stream' => array(
					"title" => esc_html__('Stream page', 'royal-event'),
					"start" => 'blog_tabs',
					"icon" => "iconadmin-docs",
					"override" => "category,services_group,post,page,custom",
					"type" => "tab"),
		
		"info_blog_1" => array(
					"title" => esc_html__('Blog streampage parameters', 'royal-event'),
					"desc" => wp_kses_data( __('Select desired blog streampage parameters (you can override it in each category)', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),
		
		"blog_style" => array(
					"title" => esc_html__('Blog style', 'royal-event'),
					"desc" => wp_kses_data( __('Select desired blog style', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "excerpt",
					"options" => royal_event_get_options_param('list_blog_styles'),
					"type" => "select"),
		
		"hover_style" => array(
					"title" => esc_html__('Hover style', 'royal-event'),
					"desc" => wp_kses_data( __('Select desired hover style (only for Blog style = Portfolio)', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'blog_style' => array('portfolio','grid','square','colored')
					),
					"std" => "square effect_shift",
					"options" => royal_event_get_options_param('list_hovers'),
					"type" => "select"),
		
		"hover_dir" => array(
					"title" => esc_html__('Hover dir', 'royal-event'),
					"desc" => wp_kses_data( __('Select hover direction (only for Blog style = Portfolio and Hover style = Circle or Square)', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'blog_style' => array('portfolio','grid','square','colored'),
						'hover_style' => array('square','circle')
					),
					"std" => "left_to_right",
					"options" => royal_event_get_options_param('list_hovers_dir'),
					"type" => "select"),
		
		"article_style" => array(
					"title" => esc_html__('Article style', 'royal-event'),
					"desc" => wp_kses_data( __('Select article display method: boxed or stretch', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "stretch",
					"options" => royal_event_get_options_param('list_article_styles'),
					"size" => "medium",
					"type" => "switch"),
		
		"dedicated_location" => array(
					"title" => esc_html__('Dedicated location', 'royal-event'),
					"desc" => wp_kses_data( __('Select location for the dedicated content or featured image in the "excerpt" blog style', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'blog_style' => array('excerpt')
					),
					"std" => "default",
					"options" => royal_event_get_options_param('list_locations'),
					"type" => "select"),
		
		"show_filters" => array(
					"title" => esc_html__('Show filters', 'royal-event'),
					"desc" => wp_kses_data( __('What taxonomy use for filter buttons', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'blog_style' => array('portfolio','grid','square','colored')
					),
					"std" => "hide",
					"options" => royal_event_get_options_param('list_filters'),
					"type" => "checklist"),
		
		"blog_sort" => array(
					"title" => esc_html__('Blog posts sorted by', 'royal-event'),
					"desc" => wp_kses_data( __('Select the desired sorting method for posts', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "date",
					"options" => royal_event_get_options_param('list_sorting'),
					"dir" => "vertical",
					"type" => "radio"),
		
		"blog_order" => array(
					"title" => esc_html__('Blog posts order', 'royal-event'),
					"desc" => wp_kses_data( __('Select the desired ordering method for posts', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "desc",
					"options" => royal_event_get_options_param('list_ordering'),
					"size" => "big",
					"type" => "switch"),
		
		"posts_per_page" => array(
					"title" => esc_html__('Blog posts per page',  'royal-event'),
					"desc" => wp_kses_data( __('How many posts display on blog pages for selected style. If empty or 0 - inherit system wordpress settings',  'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "12",
					"mask" => "?99",
					"type" => "text"),
		
		"post_excerpt_maxlength" => array(
					"title" => esc_html__('Excerpt maxlength for streampage',  'royal-event'),
					"desc" => wp_kses_data( __('How many characters from post excerpt are display in blog streampage (only for Blog style = Excerpt). 0 - do not trim excerpt.',  'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'blog_style' => array('excerpt', 'portfolio', 'grid', 'square', 'related')
					),
					"std" => "250",
					"mask" => "?9999",
					"type" => "text"),
		
		"post_excerpt_maxlength_masonry" => array(
					"title" => esc_html__('Excerpt maxlength for classic and masonry',  'royal-event'),
					"desc" => wp_kses_data( __('How many characters from post excerpt are display in blog streampage (only for Blog style = Classic or Masonry). 0 - do not trim excerpt.',  'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'blog_style' => array('masonry', 'classic')
					),
					"std" => "150",
					"mask" => "?9999",
					"type" => "text"),
		
		
		
		
		// Blog -> Single page
		//-------------------------------------------------
		
		'blog_tab_single' => array(
					"title" => esc_html__('Single page', 'royal-event'),
					"icon" => "iconadmin-doc",
					"override" => "category,services_group,post,page,custom",
					"type" => "tab"),
		
		
		"info_single_1" => array(
					"title" => esc_html__('Single (detail) pages parameters', 'royal-event'),
					"desc" => wp_kses_data( __('Select desired parameters for single (detail) pages (you can override it in each category and single post (page))', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"type" => "info"),
		
		"single_style" => array(
					"title" => esc_html__('Single page style', 'royal-event'),
					"desc" => wp_kses_data( __('Select desired style for single page', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "single-standard",
					"options" => royal_event_get_options_param('list_single_styles'),
					"dir" => "horizontal",
					"type" => "radio"),

		"icon" => array(
					"title" => esc_html__('Select post icon', 'royal-event'),
					"desc" => wp_kses_data( __('Select icon for output before post/category name in some layouts', 'royal-event') ),
					"override" => "services_group,post,page,custom",
					"std" => "",
					"options" => royal_event_get_options_param('list_icons'),
					"style" => "select",
					"type" => "icons"
					),

		"alter_thumb_size" => array(
					"title" => esc_html__('Alter thumb size (WxH)',  'royal-event'),
					"override" => "page,post",
					"desc" => wp_kses_data( __("Select thumb size for the alternative portfolio layout (number items horizontally x number items vertically)", 'royal-event') ),
					"class" => "",
					"std" => "1_1",
					"type" => "radio",
					"options" => royal_event_get_options_param('list_alter_sizes')
					),
		
		"show_featured_image" => array(
					"title" => esc_html__('Show featured image before post',  'royal-event'),
					"desc" => wp_kses_data( __("Show featured image (if selected) before post content on single pages", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"show_post_title" => array(
					"title" => esc_html__('Show post title', 'royal-event'),
					"desc" => wp_kses_data( __('Show area with post title on single pages', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"show_post_title_on_quotes" => array(
					"title" => esc_html__('Show post title on links, chat, quote, status', 'royal-event'),
					"desc" => wp_kses_data( __('Show area with post title on single and blog pages in specific post formats: links, chat, quote, status', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"show_post_info" => array(
					"title" => esc_html__('Show post info', 'royal-event'),
					"desc" => wp_kses_data( __('Show area with post info on single pages', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"show_text_before_readmore" => array(
					"title" => esc_html__('Show text before "Read more" tag', 'royal-event'),
					"desc" => wp_kses_data( __('Show text before "Read more" tag on single pages', 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
					
		"show_post_author" => array(
					"title" => esc_html__('Show post author details',  'royal-event'),
					"desc" => wp_kses_data( __("Show post author information block on single post page", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"show_post_tags" => array(
					"title" => esc_html__('Show post tags',  'royal-event'),
					"desc" => wp_kses_data( __("Show tags block on single post page", 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

        "show_post_cats" => array(
                "title" => esc_html__('Show post category',  'royal-event'),
                "desc" => wp_kses_data( __("Show category block on single post page", 'royal-event') ),
                "override" => "category,services_group,post,page,custom",
                "std" => "yes",
                "options" => royal_event_get_options_param('list_yes_no'),
                "type" => "switch"),
		
		"show_post_related" => array(
					"title" => esc_html__('Show related posts',  'royal-event'),
					"desc" => wp_kses_data( __("Show related posts block on single post page", 'royal-event') ),
					"override" => "category,services_group,post,custom",
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"post_related_count" => array(
					"title" => esc_html__('Related posts number',  'royal-event'),
					"desc" => wp_kses_data( __("How many related posts showed on single post page", 'royal-event') ),
					"dependency" => array(
						'show_post_related' => array('yes')
					),
					"override" => "category,services_group,post,custom",
					"std" => "2",
					"step" => 1,
					"min" => 2,
					"max" => 8,
					"type" => "spinner"),

		"post_related_columns" => array(
					"title" => esc_html__('Related posts columns',  'royal-event'),
					"desc" => wp_kses_data( __("How many columns used to show related posts on single post page. 1 - use scrolling to show all related posts", 'royal-event') ),
					"override" => "category,services_group,post,custom",
					"dependency" => array(
						'show_post_related' => array('yes')
					),
					"std" => "2",
					"step" => 1,
					"min" => 1,
					"max" => 4,
					"type" => "spinner"),
		
		"post_related_sort" => array(
					"title" => esc_html__('Related posts sorted by', 'royal-event'),
					"desc" => wp_kses_data( __('Select the desired sorting method for related posts', 'royal-event') ),
					"dependency" => array(
						'show_post_related' => array('yes')
					),
					"std" => "date",
					"options" => royal_event_get_options_param('list_sorting'),
					"type" => "select"),
		
		"post_related_order" => array(
					"title" => esc_html__('Related posts order', 'royal-event'),
					"desc" => wp_kses_data( __('Select the desired ordering method for related posts', 'royal-event') ),
					"dependency" => array(
						'show_post_related' => array('yes')
					),
					"std" => "desc",
					"options" => royal_event_get_options_param('list_ordering'),
					"size" => "big",
					"type" => "switch"),
		
		
		
		// Blog -> Other parameters
		//-------------------------------------------------
		
		'blog_tab_other' => array(
					"title" => esc_html__('Other parameters', 'royal-event'),
					"icon" => "iconadmin-newspaper",
					"override" => "category,services_group,page,custom",
					"type" => "tab"),
		
		"info_blog_other_1" => array(
					"title" => esc_html__('Other Blog parameters', 'royal-event'),
					"desc" => wp_kses_data( __('Select excluded categories, substitute parameters, etc.', 'royal-event') ),
					"type" => "info"),
		
		"exclude_cats" => array(
					"title" => esc_html__('Exclude categories', 'royal-event'),
					"desc" => wp_kses_data( __('Select categories, which posts are exclude from blog page', 'royal-event') ),
					"std" => "",
					"options" => royal_event_get_options_param('list_categories'),
					"multiple" => true,
					"style" => "list",
					"type" => "select"),
		
		"blog_pagination" => array(
					"title" => esc_html__('Blog pagination', 'royal-event'),
					"desc" => wp_kses_data( __('Select type of the pagination on blog streampages', 'royal-event') ),
					"std" => "pages",
					"override" => "category,services_group,page,custom",
					"options" => array(
						'pages'    => esc_html__('Standard page numbers', 'royal-event'),
						'slider'   => esc_html__('Slider with page numbers', 'royal-event'),
						'viewmore' => esc_html__('"View more" button', 'royal-event'),
						'infinite' => esc_html__('Infinite scroll', 'royal-event')
					),
					"dir" => "vertical",
					"type" => "radio"),
		
		"blog_counters" => array(
					"title" => esc_html__('Blog counters', 'royal-event'),
					"desc" => wp_kses_data( __('Select counters, displayed near the post title', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "comments",
					"options" => royal_event_get_options_param('list_blog_counters'),
					"dir" => "vertical",
					"multiple" => true,
					"type" => "checklist"),
		
		"close_category" => array(
					"title" => esc_html__("Post's category announce", 'royal-event'),
					"desc" => wp_kses_data( __('What category display in announce block (over posts thumb) - original or nearest parental', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "parental",
					"options" => array(
						'parental' => esc_html__('Nearest parental category', 'royal-event'),
						'original' => esc_html__("Original post's category", 'royal-event')
					),
					"dir" => "vertical",
					"type" => "radio"),
		
		"show_date_after" => array(
					"title" => esc_html__('Show post date after', 'royal-event'),
					"desc" => wp_kses_data( __('Show post date after N days (before - show post age)', 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "30",
					"mask" => "?99",
					"type" => "text"),
		
		
		
		
		
		//###############################
		//#### Reviews               #### 
		//###############################
		// Don't remove this parameter - it used in admin for store marks
		"reviews_marks" => array(
					"std" => "",
					"type" => "hidden"),
		





		//###############################
		//#### Media                #### 
		//###############################
		"partition_media" => array(
					"title" => esc_html__('Media', 'royal-event'),
					"icon" => "iconadmin-picture",
					"override" => "category,services_group,post,page,custom",
					"type" => "partition"),
		
		"info_media_1" => array(
					"title" => esc_html__('Media settings', 'royal-event'),
					"desc" => wp_kses_data( __('Set up parameters to show images, galleries, audio and video posts', 'royal-event') ),
					"override" => "category,services_group,services_group",
					"type" => "info"),
					
		"retina_ready" => array(
					"title" => esc_html__('Image dimensions', 'royal-event'),
					"desc" => wp_kses_data( __('What dimensions use for uploaded image: Original or "Retina ready" (twice enlarged)', 'royal-event') ),
					"std" => "1",
					"size" => "medium",
					"options" => array(
						"1" => esc_html__("Original", 'royal-event'), 
						"2" => esc_html__("Retina", 'royal-event')
					),
					"type" => "switch"),
		
		"images_quality" => array(
					"title" => esc_html__('Quality for cropped images', 'royal-event'),
					"desc" => wp_kses_data( __('Quality (1-100) to save cropped images', 'royal-event') ),
					"std" => "70",
					"min" => 1,
					"max" => 100,
					"type" => "spinner"),
		
		"substitute_gallery" => array(
					"title" => esc_html__('Substitute standard Wordpress gallery', 'royal-event'),
					"desc" => wp_kses_data( __('Substitute standard Wordpress gallery with our slider on the single pages', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"gallery_instead_image" => array(
					"title" => esc_html__('Show gallery instead featured image', 'royal-event'),
					"desc" => wp_kses_data( __('Show slider with gallery instead featured image on blog streampage and in the related posts section for the gallery posts', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"gallery_max_slides" => array(
					"title" => esc_html__('Max images number in the slider', 'royal-event'),
					"desc" => wp_kses_data( __('Maximum images number from gallery into slider', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"dependency" => array(
						'gallery_instead_image' => array('yes')
					),
					"std" => "5",
					"min" => 2,
					"max" => 10,
					"type" => "spinner"),
		
		"popup_engine" => array(
					"title" => esc_html__('Popup engine to zoom images', 'royal-event'),
					"desc" => wp_kses_data( __('Select engine to show popup windows with images and galleries', 'royal-event') ),
					"std" => "magnific",
					"options" => royal_event_get_options_param('list_popups'),
					"type" => "select"),
		
		"substitute_audio" => array(
					"title" => esc_html__('Substitute audio tags', 'royal-event'),
					"desc" => wp_kses_data( __('Substitute audio tag with source from soundcloud to embed player', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"substitute_video" => array(
					"title" => esc_html__('Substitute video tags', 'royal-event'),
					"desc" => wp_kses_data( __('Substitute video tags with embed players or leave video tags unchanged (if you use third party plugins for the video tags)', 'royal-event') ),
					"override" => "category,services_group,post,page,custom",
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"use_mediaelement" => array(
					"title" => esc_html__('Use Media Element script for audio and video tags', 'royal-event'),
					"desc" => wp_kses_data( __('Do you want use the Media Element script for all audio and video tags on your site or leave standard HTML5 behaviour?', 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		
		
		
		//###############################
		//#### Socials               #### 
		//###############################
		"partition_socials" => array(
					"title" => esc_html__('Socials', 'royal-event'),
					"icon" => "iconadmin-users",
					"override" => "category,services_group,page,custom",
					"type" => "partition"),
		
		"info_socials_1" => array(
					"title" => esc_html__('Social networks', 'royal-event'),
					"desc" => wp_kses_data( __("Social networks list for site footer and Social widget", 'royal-event') ),
					"type" => "info"),
		
		"social_icons" => array(
					"title" => esc_html__('Social networks',  'royal-event'),
					"desc" => wp_kses_data( __('Select icon and write URL to your profile in desired social networks.',  'royal-event') ),
					"std" => array(array('url'=>'', 'icon'=>'')),
					"cloneable" => true,
					"size" => "small",
					"style" => $socials_type,
					"options" => $socials_type=='images' ? royal_event_get_options_param('list_socials') : royal_event_get_options_param('list_icons'),
					"type" => "socials"),
		
		"info_socials_2" => array(
					"title" => esc_html__('Share buttons', 'royal-event'),
					"desc" => wp_kses_data( __("Add button's code for each social share network.<br>
					In share url you can use next macro:<br>
					<b>{url}</b> - share post (page) URL,<br>
					<b>{title}</b> - post title,<br>
					<b>{image}</b> - post image,<br>
					<b>{descr}</b> - post description (if supported)<br>
					For example:<br>
					<b>Facebook</b> share string: <em>http://www.facebook.com/sharer.php?u={link}&amp;t={title}</em><br>
					<b>Delicious</b> share string: <em>http://delicious.com/save?url={link}&amp;title={title}&amp;note={descr}</em>", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"type" => "info"),
		
		"show_share" => array(
					"title" => esc_html__('Show social share buttons',  'royal-event'),
					"desc" => wp_kses_data( __("Show social share buttons block", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"std" => "hide",
					"options" => array(
						'hide'		=> esc_html__('Hide', 'royal-event'),
						'vertical'	=> esc_html__('Vertical', 'royal-event'),
						'horizontal'=> esc_html__('Horizontal', 'royal-event')
					),
					"type" => "checklist"),

		"show_share_counters" => array(
					"title" => esc_html__('Show share counters',  'royal-event'),
					"desc" => wp_kses_data( __("Show share counters after social buttons", 'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_share' => array('vertical', 'horizontal')
					),
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"share_caption" => array(
					"title" => esc_html__('Share block caption',  'royal-event'),
					"desc" => wp_kses_data( __('Caption for the block with social share buttons',  'royal-event') ),
					"override" => "category,services_group,page,custom",
					"dependency" => array(
						'show_share' => array('vertical', 'horizontal')
					),
					"std" => esc_html__('Share:', 'royal-event'),
					"type" => "text"),
		
		"share_buttons" => array(
					"title" => esc_html__('Share buttons',  'royal-event'),
					"desc" => wp_kses_data( __('Select icon and write share URL for desired social networks.<br><b>Important!</b> If you leave text field empty - internal theme link will be used (if present).',  'royal-event') ),
					"dependency" => array(
						'show_share' => array('vertical', 'horizontal')
					),
					"std" => array(array('url'=>'', 'icon'=>'')),
					"cloneable" => true,
					"size" => "small",
					"style" => $socials_type,
					"options" => $socials_type=='images' ? royal_event_get_options_param('list_socials') : royal_event_get_options_param('list_icons'),
					"type" => "socials"),
		
		
		"info_socials_3" => array(
					"title" => esc_html__('Twitter API keys', 'royal-event'),
					"desc" => wp_kses_data( __("Put to this section Twitter API 1.1 keys.<br>You can take them after registration your application in <strong>https://apps.twitter.com/</strong>", 'royal-event') ),
					"type" => "info"),
		
		"twitter_username" => array(
					"title" => esc_html__('Twitter username',  'royal-event'),
					"desc" => wp_kses_data( __('Your login (username) in Twitter',  'royal-event') ),
					"divider" => false,
					"std" => "",
					"type" => "text"),
		
		"twitter_consumer_key" => array(
					"title" => esc_html__('Consumer Key',  'royal-event'),
					"desc" => wp_kses_data( __('Twitter API Consumer key',  'royal-event') ),
					"divider" => false,
					"std" => "",
					"type" => "text"),
		
		"twitter_consumer_secret" => array(
					"title" => esc_html__('Consumer Secret',  'royal-event'),
					"desc" => wp_kses_data( __('Twitter API Consumer secret',  'royal-event') ),
					"divider" => false,
					"std" => "",
					"type" => "text"),
		
		"twitter_token_key" => array(
					"title" => esc_html__('Token Key',  'royal-event'),
					"desc" => wp_kses_data( __('Twitter API Token key',  'royal-event') ),
					"divider" => false,
					"std" => "",
					"type" => "text"),
		
		"twitter_token_secret" => array(
					"title" => esc_html__('Token Secret',  'royal-event'),
					"desc" => wp_kses_data( __('Twitter API Token secret',  'royal-event') ),
					"divider" => false,
					"std" => "",
					"type" => "text"),
		
		"info_socials_4" => array(
					"title" => esc_html__('Google API Keys', 'royal-event'),
					"desc" => wp_kses_data( __('API Keys for some Web services', 'royal-event') ),
					"type" => "info"),
		'api_google' => array(
					"title" => esc_html__('Google API Key for browsers', 'royal-event'),
					"desc" => wp_kses_data( __("Insert Google API Key for browsers into the field above to generate Google Maps", 'royal-event') ),
					"std" => "",
					"type" => "text"),

        "info_socials_5" => array(
                    "title" => esc_html__('Login via Social network', 'royal-event'),
                    "desc" => esc_html__("Settings for the Login via Social networks", 'royal-event'),
                    "type" => "info"),

        "social_login" => array(
                    "title" => esc_html__('Social plugin shortcode',  'royal-event'),
                    "desc" => esc_html__('Social plugin shortcode like [plugin_shortcode]',  'royal-event'),
                    "divider" => false,
                    "std" => "wordpress_social_login",
                    "type" => "text"),





        //###############################
		//#### Contact info          #### 
		//###############################
		"partition_contacts" => array(
					"title" => esc_html__('Contact info', 'royal-event'),
					"icon" => "iconadmin-mail",
					"type" => "partition"),
		
		"info_contact_1" => array(
					"title" => esc_html__('Contact information', 'royal-event'),
					"desc" => wp_kses_data( __('Company address, phones and e-mail', 'royal-event') ),
					"type" => "info"),
		
		"contact_info" => array(
					"title" => esc_html__('Contacts in the header', 'royal-event'),
					"desc" => wp_kses_data( __('String with contact info in the left side of the site header', 'royal-event') ),
					"std" => "",
					"before" => array('icon'=>'iconadmin-home'),
					"allow_html" => true,
					"type" => "text"),
		
		"contact_email" => array(
					"title" => esc_html__('Contact form email', 'royal-event'),
					"desc" => wp_kses_data( __('E-mail for send contact form and user registration data', 'royal-event') ),
					"std" => "",
					"before" => array('icon'=>'iconadmin-mail'),
					"type" => "text"),
		
		"contact_address_1" => array(
					"title" => esc_html__('Company address (part 1)', 'royal-event'),
					"desc" => wp_kses_data( __('Company country, post code and city', 'royal-event') ),
					"std" => "",
					"before" => array('icon'=>'iconadmin-home'),
					"type" => "text"),
		
		"contact_address_2" => array(
					"title" => esc_html__('Company address (part 2)', 'royal-event'),
					"desc" => wp_kses_data( __('Street and house number', 'royal-event') ),
					"std" => "",
					"before" => array('icon'=>'iconadmin-home'),
					"type" => "text"),
		
		"contact_phone" => array(
					"title" => esc_html__('Phone', 'royal-event'),
					"desc" => wp_kses_data( __('Phone number', 'royal-event') ),
					"std" => "",
					"before" => array('icon'=>'iconadmin-phone'),
					"allow_html" => true,
					"type" => "text"),
		
		"info_contact_2" => array(
					"title" => esc_html__('Contact and Comments form', 'royal-event'),
					"desc" => wp_kses_data( __('Maximum length of the messages in the contact form shortcode and in the comments form', 'royal-event') ),
					"type" => "info"),
		
		"message_maxlength_contacts" => array(
					"title" => esc_html__('Contact form message', 'royal-event'),
					"desc" => wp_kses_data( __("Message's maxlength in the contact form shortcode", 'royal-event') ),
					"std" => "1000",
					"min" => 0,
					"max" => 10000,
					"step" => 100,
					"type" => "spinner"),
		
		"message_maxlength_comments" => array(
					"title" => esc_html__('Comments form message', 'royal-event'),
					"desc" => wp_kses_data( __("Message's maxlength in the comments form", 'royal-event') ),
					"std" => "1000",
					"min" => 0,
					"max" => 10000,
					"step" => 100,
					"type" => "spinner"),
		
		"info_contact_3" => array(
					"title" => esc_html__('Default mail function', 'royal-event'),
					"desc" => wp_kses_data( __('What function use to send mail: the built-in Wordpress or standard PHP function? Attention! Some plugins may not work with one of them and you always have the ability to switch to alternative.', 'royal-event') ),
					"type" => "info"),
		
		"mail_function" => array(
					"title" => esc_html__("Mail function", 'royal-event'),
					"desc" => wp_kses_data( __("What function use to send mail? Attention! Only wp_mail support attachment in the mail!", 'royal-event') ),
					"std" => "wp_mail",
					"size" => "medium",
					"options" => array(
						'wp_mail' => esc_html__('WP mail', 'royal-event'),
						'mail' => esc_html__('PHP mail', 'royal-event')
					),
					"type" => "switch"),
		
		
		
		
		
		
		
		//###############################
		//#### Search parameters     #### 
		//###############################
		"partition_search" => array(
					"title" => esc_html__('Search', 'royal-event'),
					"icon" => "iconadmin-search",
					"type" => "partition"),
		
		"info_search_1" => array(
					"title" => esc_html__('Search parameters', 'royal-event'),
					"desc" => wp_kses_data( __('Enable/disable AJAX search and output settings for it', 'royal-event') ),
					"type" => "info"),
		
		"show_search" => array(
					"title" => esc_html__('Show search field', 'royal-event'),
					"desc" => wp_kses_data( __('Show search field in the top area and side menus', 'royal-event') ),
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"search_style" => array( 
					"title" => esc_html__('Select search style', 'royal-event'),
					"desc" => wp_kses_data( __('Select style for the search field', 'royal-event') ),
					"std" => "default",
					"type" => "select",
					"options" => royal_event_get_options_param('list_search_styles')),
		
		"use_ajax_search" => array(
					"title" => esc_html__('Enable AJAX search', 'royal-event'),
					"desc" => wp_kses_data( __('Use incremental AJAX search for the search field in top of page', 'royal-event') ),
					"dependency" => array(
						'show_search' => array('yes'),
						'search_style' => array('default', 'slide', 'expand')
					),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"ajax_search_min_length" => array(
					"title" => esc_html__('Min search string length',  'royal-event'),
					"desc" => wp_kses_data( __('The minimum length of the search string',  'royal-event') ),
					"dependency" => array(
						'show_search' => array('yes'),
						'search_style' => array('default', 'slide', 'expand'),
						'use_ajax_search' => array('yes')
					),
					"std" => 4,
					"min" => 3,
					"type" => "spinner"),
		
		"ajax_search_delay" => array(
					"title" => esc_html__('Delay before search (in ms)',  'royal-event'),
					"desc" => wp_kses_data( __('How much time (in milliseconds, 1000 ms = 1 second) must pass after the last character before the start search',  'royal-event') ),
					"dependency" => array(
						'show_search' => array('yes'),
						'search_style' => array('default', 'slide', 'expand'),
						'use_ajax_search' => array('yes')
					),
					"std" => 500,
					"min" => 300,
					"max" => 1000,
					"step" => 100,
					"type" => "spinner"),
		
		"ajax_search_types" => array(
					"title" => esc_html__('Search area', 'royal-event'),
					"desc" => wp_kses_data( __('Select post types, what will be include in search results. If not selected - use all types.', 'royal-event') ),
					"dependency" => array(
						'show_search' => array('yes'),
						'search_style' => array('default', 'slide', 'expand'),
						'use_ajax_search' => array('yes')
					),
					"std" => "",
					"options" => royal_event_get_options_param('list_posts_types'),
					"multiple" => true,
					"style" => "list",
					"type" => "select"),
		
		"ajax_search_posts_count" => array(
					"title" => esc_html__('Posts number in output',  'royal-event'),
					"dependency" => array(
						'show_search' => array('yes'),
						'search_style' => array('default', 'slide', 'expand'),
						'use_ajax_search' => array('yes')
					),
					"desc" => wp_kses_data( __('Number of the posts to show in search results',  'royal-event') ),
					"std" => 5,
					"min" => 1,
					"max" => 10,
					"type" => "spinner"),
		
		"ajax_search_posts_image" => array(
					"title" => esc_html__("Show post's image", 'royal-event'),
					"dependency" => array(
						'show_search' => array('yes'),
						'search_style' => array('default', 'slide', 'expand'),
						'use_ajax_search' => array('yes')
					),
					"desc" => wp_kses_data( __("Show post's thumbnail in the search results", 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"ajax_search_posts_date" => array(
					"title" => esc_html__("Show post's date", 'royal-event'),
					"dependency" => array(
						'show_search' => array('yes'),
						'search_style' => array('default', 'slide', 'expand'),
						'use_ajax_search' => array('yes')
					),
					"desc" => wp_kses_data( __("Show post's publish date in the search results", 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"ajax_search_posts_author" => array(
					"title" => esc_html__("Show post's author", 'royal-event'),
					"dependency" => array(
						'show_search' => array('yes'),
						'search_style' => array('default', 'slide', 'expand'),
						'use_ajax_search' => array('yes')
					),
					"desc" => wp_kses_data( __("Show post's author in the search results", 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"ajax_search_posts_counters" => array(
					"title" => esc_html__("Show post's counters", 'royal-event'),
					"dependency" => array(
						'show_search' => array('yes'),
						'search_style' => array('default', 'slide', 'expand'),
						'use_ajax_search' => array('yes')
					),
					"desc" => wp_kses_data( __("Show post's counters (views, comments, likes) in the search results", 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		
		
		
		
		//###############################
		//#### Service               #### 
		//###############################
		
		"partition_service" => array(
					"title" => esc_html__('Service', 'royal-event'),
					"icon" => "iconadmin-wrench",
					"type" => "partition"),
		
		"info_service_1" => array(
					"title" => esc_html__('Theme functionality', 'royal-event'),
					"desc" => wp_kses_data( __('Basic theme functionality settings', 'royal-event') ),
					"type" => "info"),
		
		"use_ajax_views_counter" => array(
					"title" => esc_html__('Use AJAX post views counter', 'royal-event'),
					"desc" => wp_kses_data( __('Use javascript for post views count (if site work under the caching plugin) or increment views count in single page template', 'royal-event') ),
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"allow_editor" => array(
					"title" => esc_html__('Frontend editor',  'royal-event'),
					"desc" => wp_kses_data( __("Allow authors to edit their posts in frontend area", 'royal-event') ),
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"admin_add_filters" => array(
					"title" => esc_html__('Additional filters in the admin panel', 'royal-event'),
					"desc" => wp_kses_data( __('Show additional filters (on post formats, tags and categories) in admin panel page "Posts". <br>Attention! If you have more than 2.000-3.000 posts, enabling this option may cause slow load of the "Posts" page! If you encounter such slow down, simply open Appearance - Theme Options - Service and set "No" for this option.', 'royal-event') ),
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"show_overriden_taxonomies" => array(
					"title" => esc_html__('Show overriden options for taxonomies', 'royal-event'),
					"desc" => wp_kses_data( __('Show extra column in categories list, where changed (overriden) theme options are displayed.', 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"show_overriden_posts" => array(
					"title" => esc_html__('Show overriden options for posts and pages', 'royal-event'),
					"desc" => wp_kses_data( __('Show extra column in posts and pages list, where changed (overriden) theme options are displayed.', 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		
		"admin_dummy_data" => array(
					"title" => esc_html__('Enable Dummy Data Installer', 'royal-event'),
					"desc" => wp_kses_data( __('Show "Install Dummy Data" in the menu "Appearance". <b>Attention!</b> When you install dummy data all content of your site will be replaced!', 'royal-event') ),
					"std" => "yes",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),

		"admin_dummy_timeout" => array(
					"title" => esc_html__('Dummy Data Installer Timeout',  'royal-event'),
					"desc" => wp_kses_data( __('Web-servers set the time limit for the execution of php-scripts. By default, this is 30 sec. Therefore, the import process will be split into parts. Upon completion of each part - the import will resume automatically! The import process will try to increase this limit to the time, specified in this field.',  'royal-event') ),
					"std" => 120,
					"min" => 30,
					"max" => 1800,
					"type" => "spinner"),

                    "disable_widgets_block_editor" => array(
                        "title" => esc_html__('Disable new Widgets Block Editor', 'royal-event'),
                        "desc" => wp_kses_data( __('Attention! If after the update to WordPress 5.8+ you are having trouble editing widgets or working in Customizer - disable new Widgets Block Editor (used in WordPress 5.8+ instead of a classic widgets panel)', 'royal-event') ),
                        "std" => "no",
                        "options" => royal_event_get_options_param('list_yes_no'),
                        "type" => "switch"),
		
		"debug_mode" => array(
					"title" => esc_html__('Debug mode', 'royal-event'),
					"desc" => wp_kses_data( __('In debug mode we are using unpacked scripts and styles, else - using minified scripts and styles (if present). <b>Attention!</b> If you have modified the source code in the js or css files, regardless of this option will be used latest (modified) version stylesheets and scripts. You can re-create minified versions of files using on-line services or utilities', 'royal-event') ),
					"std" => "no",
					"options" => royal_event_get_options_param('list_yes_no'),
					"type" => "switch"),
		        )
            )
        );
	}
}


// Update all temporary vars (start with $royal_event_) in the Theme Options with actual lists
if ( !function_exists( 'royal_event_options_settings_theme_setup2' ) ) {
	add_action( 'royal_event_action_after_init_theme', 'royal_event_options_settings_theme_setup2', 1 );
	function royal_event_options_settings_theme_setup2() {
		if (royal_event_options_is_used()) {
			// Replace arrays with actual parameters
			$lists = array();
			$tmp = royal_event_storage_get('options');
			if (is_array($tmp) && count($tmp) > 0) {
				$prefix = '$royal_event_';
				$prefix_len = royal_event_strlen($prefix);
				foreach ($tmp as $k=>$v) {
					if (isset($v['options']) && is_array($v['options']) && count($v['options']) > 0) {
						foreach ($v['options'] as $k1=>$v1) {
							if (royal_event_substr($k1, 0, $prefix_len) == $prefix || royal_event_substr($v1, 0, $prefix_len) == $prefix) {
								$list_func = royal_event_substr(royal_event_substr($k1, 0, $prefix_len) == $prefix ? $k1 : $v1, 1);
								$inherit = strpos($list_func, '(true)')!==false;
								$list_func = str_replace('(true)', '', $list_func);
								unset($tmp[$k]['options'][$k1]);
								if (isset($lists[$list_func]))
									$tmp[$k]['options'] = royal_event_array_merge($tmp[$k]['options'], $lists[$list_func]);
								else {
									if (function_exists($list_func)) {
										$tmp[$k]['options'] = $lists[$list_func] = royal_event_array_merge($tmp[$k]['options'], $list_func($inherit));
								   	} else
								   		dfl(sprintf(esc_html__('Wrong function name %s in the theme options array', 'royal-event'), $list_func));
								}
							}
						}
					}
				}
				royal_event_storage_set('options', $tmp);
			}
		}
	}
}



// Reset old Theme Options while theme first run
if ( !function_exists( 'royal_event_options_reset' ) ) {
	function royal_event_options_reset($clear=true) {
		$theme_slug = str_replace(' ', '_', trim(royal_event_strtolower(get_stylesheet())));
		$option_name = royal_event_storage_get('options_prefix') . '_' . trim($theme_slug) . '_options_reset';
		if ( get_option($option_name, false) === false ) {
			if ($clear) {
				// Remove Theme Options from WP Options
				global $wpdb;
				$wpdb->query( $wpdb->prepare(
										"DELETE FROM {$wpdb->options} WHERE option_name LIKE %s",
										royal_event_storage_get('options_prefix').'_%'
										)
							);
				// Add Templates Options
                $txt = royal_event_fgc(royal_event_storage_get('demo_data_url') . 'default/templates_options.txt');
				if (!empty($txt)) {
					$data = royal_event_unserialize($txt);
					// Replace upload url in options
					if (is_array($data) && count($data) > 0) {
						foreach ($data as $k=>$v) {
							if (is_array($v) && count($v) > 0) {
								foreach ($v as $k1=>$v1) {
									$v[$k1] = royal_event_replace_uploads_url(royal_event_replace_uploads_url($v1, 'uploads'), 'imports');
								}
							}
							add_option( $k, $v, '', 'yes' );
						}
					}
				}
			}
			add_option($option_name, 1, '', 'yes');
		}
	}
}
?>