HEX
Server: Apache
System: Linux pdx1-shared-a1-31 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: dh_5jabqq (6436002)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/dh_5jabqq/bermudashipwreckarchive.com/wp-content/themes/loquet/includes/meta-boxes.php
<?php
if( class_exists( 'loquet_core_plugin' ) ) {

	/*======
	*
	* Museum Settings
	*
	======*/
	if( !function_exists( 'loquet_museum_settings_meta_boxes' ) ) {

		function loquet_museum_settings_meta_boxes( $meta_boxes ) {

			$meta_boxes[] = array(
				'id' => 'loquet-museum-settings',
				'title' => esc_html__( 'Museum Details', 'loquet' ),
				'post_types' => array( 'museum' ),
				'context' => 'normal',
				'priority' => 'high',
				'tab_style' => 'left',
				'tab_wrapper' => true,
				'tabs' => array(
					'details' => array(
						'label' => esc_html__( 'Details', 'loquet' ),
						'icon' => 'dashicons-edit-page',
					),
					'media' => array(
						'label' => esc_html__( 'Media', 'loquet' ),
						'icon' => 'dashicons-format-image',
					),
					'contact' => array(
						'label' => esc_html__( 'Contact', 'loquet' ),
						'icon' => 'dashicons-phone',
					),
					'sponsors' => array(
						'label' => esc_html__( 'Sponsors', 'loquet' ),
						'icon' => 'dashicons-screenoptions',
					),
				),
				'fields' => array(
					/*====== Details ======*/
					array(
						'type' => 'date',
						'id' => 'loquet-museum-establishment-date',
						'name' => esc_html__( 'Date of Establishment', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-museum-collection-size',
						'name' => esc_html__( 'Collection Size', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-museum-area',
						'name' => esc_html__( 'Area', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-museum-visitors',
						'name' => esc_html__( 'Visitors', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-museum-opening-hours',
						'name' => esc_html__( 'Opening Hours', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-museum-opening-hours-weekdays',
						'name' => esc_html__( 'Opening Hours on Weekdays', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-museum-opening-hours-saturday',
						'name' => esc_html__( 'Opening Hours on Saturday', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-museum-opening-hours-sunday',
						'name' => esc_html__( 'Opening Hours on Sunday', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'switch',
						'id' => 'loquet-museum-accessible-for-free',
						'name' => esc_html__( 'Accessible for Free', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'switch',
						'id' => 'loquet-museum-public-access',
						'name' => esc_html__( 'Public Access', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'switch',
						'id' => 'loquet-museum-smoking-allowed',
						'name' => esc_html__( 'Smoking Allowed', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-museum-maximum-attendee-capacity',
						'name' => esc_html__( 'Maximum Attendee Capacity', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'group',
						'id' => 'loquet-museum-content-sections',
						'name' => esc_html__( 'Content Sections', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'wysiwyg',
								'id' => 'content',
								'name' => esc_html__( 'Content', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'group',
						'id' => 'loquet-museum-extra-details',
						'name' => esc_html__( 'Extra Details', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'text',
								'id' => 'content',
								'name' => esc_html__( 'Content', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'select',
						'id' => 'loquet-museum-extra-details-position',
						'name' => esc_html__( 'Position of Extra Details', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'multiple' => false,
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'before' => esc_html__( 'Before Current Items', 'loquet' ),
							'after' => esc_html__( 'After Current Items', 'loquet' ),
						),
					),
					array(
						'type' => 'group',
						'id' => 'loquet-museum-info-boxes',
						'name' => esc_html__( 'Info Boxes', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'wysiwyg',
								'id' => 'content',
								'name' => esc_html__( 'Content', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'select',
								'id' => 'style',
								'name' => esc_html__( 'Style', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => array(
									'default' => esc_html__( 'Default', 'loquet' ),
									'style-1' => esc_html__( 'Style 1', 'loquet' ),
									'style-2' => esc_html__( 'Style 2', 'loquet' ),
									'style-3' => esc_html__( 'Style 3', 'loquet' ),
									'style-4' => esc_html__( 'Style 4', 'loquet' ),
								),
							),
						),
					),
					array(
						'type' => 'group',
						'id' => 'loquet-museum-buttons',
						'name' => esc_html__( 'Buttons', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'text',
								'id' => 'link',
								'name' => esc_html__( 'Link', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'select',
								'id' => 'target',
								'name' => esc_html__( 'Target', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => array(
									'_blank' => esc_html__( 'New Tab', 'loquet' ),
									'_self' => esc_html__( 'Same Frame', 'loquet' ),
								),
							),
							array(
								'type' => 'select',
								'id' => 'style',
								'name' => esc_html__( 'Style', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => array(
									'default' => esc_html__( 'Default', 'loquet' ),
									'style-1' => esc_html__( 'Style 1', 'loquet' ),
									'style-2' => esc_html__( 'Style 2', 'loquet' ),
									'style-3' => esc_html__( 'Style 3', 'loquet' ),
									'style-4' => esc_html__( 'Style 4', 'loquet' ),
								),
							),
						),
					),

					/*====== Media ======*/
					array(
						'type' => 'image_advanced',
						'id' => 'loquet-museum-logo',
						'name' => esc_html__( 'Logo', 'loquet' ),
						'tab' => 'media',
						'force_delete' => false,
						'max_file_uploads' => 1,
						'max_status' => 'false',
						'image_size' => 'thumbnail',
					),
					array(
						'type' => 'image_advanced',
						'id' => 'loquet-museum-photos',
						'name' => esc_html__( 'Photos', 'loquet' ),
						'tab' => 'media',
						'force_delete' => false,
						'max_status' => 'false',
						'image_size' => 'thumbnail',
					),
					array(
						'type' => 'oembed',
						'id' => 'loquet-museum-video',
						'name' => esc_html__( 'Video', 'loquet' ),
						'tab' => 'media',
						'inline' => true,
					),
					array(
						'type' => 'group',
						'id' => 'loquet-museum-videos',
						'name' => esc_html__( 'Videos', 'loquet' ),
						'tab' => 'media',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'oembed',
								'id' => 'video',
								'name' => esc_html__( 'Video', 'loquet' ),
								'desc' => esc_html__( 'Use only Vimeo or YouTube.', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'image_advanced',
								'id' => 'cover',
								'name' => esc_html__( 'Video Cover', 'loquet' ),
								'force_delete' => false,
								'max_file_uploads' => 1,
								'max_status' => 'false',
								'image_size' => 'thumbnail',
							),
							array(
								'type' => 'text',
								'id' => 'description',
								'name' => esc_html__( 'Description', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-museum-photos-column',
						'name' => esc_html__( 'Photos Column', 'loquet' ),
						'tab' => 'media',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( '1', 'loquet' ),
							'2' => esc_html__( '2', 'loquet' ),
							'3' => esc_html__( '3', 'loquet' ),
							'4' => esc_html__( '4', 'loquet' ),
							'5' => esc_html__( '5', 'loquet' ),
							'6' => esc_html__( '6', 'loquet' ),
							'7' => esc_html__( '7', 'loquet' ),
							'8' => esc_html__( '8', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-museum-photos-column-space',
						'name' => esc_html__( 'Photos Column Space', 'loquet' ),
						'tab' => 'media',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'0' => esc_html__( '0', 'loquet' ),
							'5' => esc_html__( '5', 'loquet' ),
							'10' => esc_html__( '10', 'loquet' ),
							'15' => esc_html__( '15', 'loquet' ),
							'20' => esc_html__( '20', 'loquet' ),
							'25' => esc_html__( '25', 'loquet' ),
							'30' => esc_html__( '30', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-museum-videos-column',
						'name' => esc_html__( 'Videos Column', 'loquet' ),
						'tab' => 'media',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( '1', 'loquet' ),
							'2' => esc_html__( '2', 'loquet' ),
							'3' => esc_html__( '3', 'loquet' ),
							'4' => esc_html__( '4', 'loquet' ),
							'5' => esc_html__( '5', 'loquet' ),
							'6' => esc_html__( '6', 'loquet' ),
							'7' => esc_html__( '7', 'loquet' ),
							'8' => esc_html__( '8', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-museum-videos-column-space',
						'name' => esc_html__( 'Videos Column Space', 'loquet' ),
						'tab' => 'media',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'0' => esc_html__( '0', 'loquet' ),
							'5' => esc_html__( '5', 'loquet' ),
							'10' => esc_html__( '10', 'loquet' ),
							'15' => esc_html__( '15', 'loquet' ),
							'20' => esc_html__( '20', 'loquet' ),
							'25' => esc_html__( '25', 'loquet' ),
							'30' => esc_html__( '30', 'loquet' ),
						),
					),

					/*====== Contact ======*/
					array(
						'type' => 'text',
						'id' => 'loquet-museum-address',
						'name' => esc_html__( 'Address', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-museum-postal-code',
						'name' => esc_html__( 'Postal Code', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'map',
						'id' => 'loquet-museum-map-view',
						'name' => esc_html__( 'Map View', 'loquet' ),
						'tab' => 'contact',
						'address_field' => 'loquet-museum-address',
						'std' => '-6.233406,-35.049906,15',
						'api_key' => esc_attr( get_theme_mod( 'loquet_google_maps_api' ) ),
					),
					array(
						'type' => 'tel',
						'id' => 'loquet-museum-phone',
						'name' => esc_html__( 'Phone Number', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'email',
						'id' => 'loquet-museum-email',
						'name' => esc_html__( 'Email Address', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'url',
						'id' => 'loquet-museum-website',
						'name' => esc_html__( 'Website', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'group',
						'id' => 'loquet-museum-social-media-sites',
						'name' => esc_html__( 'Social Media Sites', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{link_title}',
						'fields' => array(
							array(
								'type' => 'select',
								'id' => 'icon',
								'name' => esc_html__( 'Icon', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => loquet_social_media_sites( $array_direction = "left" ),
							),
							array(
								'type' => 'text',
								'id' => 'link_title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'url',
								'id' => 'link_url',
								'name' => esc_html__( 'URL', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'select',
								'id' => 'link_target',
								'name' => esc_html__( 'Target', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => array(
									'_blank' => esc_html__( 'New Tab', 'loquet' ),
									'_self' => esc_html__( 'Same Frame', 'loquet' ),
								),
							),
						),
					),

					/*====== Sponsors ======*/
					array(
						'type' => 'group',
						'id' => 'loquet-museum-sponsors',
						'name' => esc_html__( 'Sponsors', 'loquet' ),
						'tab' => 'sponsors',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'image_advanced',
								'id' => 'logo',
								'name' => esc_html__( 'Logo', 'loquet' ),
								'force_delete' => false,
								'max_file_uploads' => 1,
								'max_status' => 'false',
								'image_size' => 'thumbnail',
							),
							array(
								'type' => 'url',
								'id' => 'url',
								'name' => esc_html__( 'URL', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-museum-sponsors-column',
						'name' => esc_html__( 'Sponsors Column', 'loquet' ),
						'tab' => 'sponsors',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( '1', 'loquet' ),
							'2' => esc_html__( '2', 'loquet' ),
							'3' => esc_html__( '3', 'loquet' ),
							'4' => esc_html__( '4', 'loquet' ),
							'5' => esc_html__( '5', 'loquet' ),
							'6' => esc_html__( '6', 'loquet' ),
							'7' => esc_html__( '7', 'loquet' ),
							'8' => esc_html__( '8', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-museum-sponsors-column-space',
						'name' => esc_html__( 'Sponsors Column Space', 'loquet' ),
						'tab' => 'sponsors',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'0' => esc_html__( '0', 'loquet' ),
							'5' => esc_html__( '5', 'loquet' ),
							'10' => esc_html__( '10', 'loquet' ),
							'15' => esc_html__( '15', 'loquet' ),
							'20' => esc_html__( '20', 'loquet' ),
							'25' => esc_html__( '25', 'loquet' ),
							'30' => esc_html__( '30', 'loquet' ),
						),
					),
				)
			);

			return $meta_boxes;

		}
		add_filter( 'rwmb_meta_boxes', 'loquet_museum_settings_meta_boxes' );

	}



	/*======
	*
	* Exhibition Settings
	*
	======*/
	if( !function_exists( 'loquet_exhibition_settings_meta_boxes' ) ) {

		function loquet_exhibition_settings_meta_boxes( $meta_boxes ) {

			$meta_boxes[] = array(
				'id' => 'loquet-exhibition-settings',
				'title' => esc_html__( 'Exhibition Details', 'loquet' ),
				'post_types' => array( 'exhibition' ),
				'context' => 'normal',
				'priority' => 'high',
				'tab_style' => 'left',
				'tab_wrapper' => true,
				'tabs' => array(
					'details' => array(
						'label' => esc_html__( 'Details', 'loquet' ),
						'icon' => 'dashicons-edit-page',
					),
					'media' => array(
						'label' => esc_html__( 'Media', 'loquet' ),
						'icon' => 'dashicons-format-image',
					),
					'contact' => array(
						'label' => esc_html__( 'Contact', 'loquet' ),
						'icon' => 'dashicons-phone',
					),
					'sponsors' => array(
						'label' => esc_html__( 'Sponsors', 'loquet' ),
						'icon' => 'dashicons-screenoptions',
					),
				),
				'fields' => array(
					/*====== Details ======*/
					array(
						'type' => 'post',
						'id' => 'loquet-exhibition-museum',
						'name' => esc_html__( 'Museum', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'post_type' => 'museum',
					),
					array(
						'type' => 'datetime',
						'id' => 'loquet-exhibition-start-date',
						'name' => esc_html__( 'Start Date', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'datetime',
						'id' => 'loquet-exhibition-end-date',
						'name' => esc_html__( 'End Date', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'time',
						'id' => 'loquet-exhibition-duration',
						'name' => esc_html__( 'Duration', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'switch',
						'id' => 'loquet-exhibition-accessible-for-free',
						'name' => esc_html__( 'Accessible for Free', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-exhibition-maximum-attendee-capacity',
						'name' => esc_html__( 'Maximum Attendee Capacity', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'select',
						'id' => 'loquet-exhibition-attendance-mode',
						'name' => esc_html__( 'Attendance Mode', 'loquet' ),
						'tab' => 'offline',
						'inline' => true,
						'multiple' => false,
						'options' => array(
							'offline' => esc_html__( 'Offline', 'loquet' ),
							'online' => esc_html__( 'Online', 'loquet' ),
							'mixed' => esc_html__( 'Mixed', 'loquet' ),
						),
					),
					array(
						'type' => 'select',
						'id' => 'loquet-exhibition-attendance-mode',
						'name' => esc_html__( 'Status', 'loquet' ),
						'tab' => 'offline',
						'inline' => true,
						'multiple' => false,
						'options' => array(
							'scheduled' => esc_html__( 'Scheduled', 'loquet' ),
							'cancelled' => esc_html__( 'Cancelled', 'loquet' ),
							'postponed' => esc_html__( 'Postponed', 'loquet' ),
							'rescheduled' => esc_html__( 'Rescheduled', 'loquet' ),
							'moved-online' => esc_html__( 'Moved Online', 'loquet' ),
						),
					),
					array(
						'type' => 'group',
						'id' => 'loquet-exhibition-content-sections',
						'name' => esc_html__( 'Content Sections', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'wysiwyg',
								'id' => 'content',
								'name' => esc_html__( 'Content', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'group',
						'id' => 'loquet-exhibition-extra-details',
						'name' => esc_html__( 'Extra Details', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'text',
								'id' => 'content',
								'name' => esc_html__( 'Content', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'select',
						'id' => 'loquet-exhibition-extra-details-position',
						'name' => esc_html__( 'Position of Extra Details', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'multiple' => false,
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'before' => esc_html__( 'Before Current Items', 'loquet' ),
							'after' => esc_html__( 'After Current Items', 'loquet' ),
						),
					),

					/*====== Media ======*/
					array(
						'type' => 'image_advanced',
						'id' => 'loquet-exhibition-logo',
						'name' => esc_html__( 'Logo', 'loquet' ),
						'tab' => 'media',
						'force_delete' => false,
						'max_file_uploads' => 1,
						'max_status' => 'false',
						'image_size' => 'thumbnail',
					),

					/*====== Contact ======*/
					array(
						'type' => 'text',
						'id' => 'loquet-exhibition-address',
						'name' => esc_html__( 'Address', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-exhibition-postal-code',
						'name' => esc_html__( 'Postal Code', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'map',
						'id' => 'loquet-exhibition-map-view',
						'name' => esc_html__( 'Map View', 'loquet' ),
						'tab' => 'contact',
						'address_field' => 'loquet-exhibition-address',
						'api_key' => esc_attr( get_theme_mod( 'loquet_google_maps_api' ) ),
					),
					array(
						'type' => 'tel',
						'id' => 'loquet-exhibition-phone',
						'name' => esc_html__( 'Phone Number', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'email',
						'id' => 'loquet-exhibition-email',
						'name' => esc_html__( 'Email Address', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'url',
						'id' => 'loquet-exhibition-website',
						'name' => esc_html__( 'Website', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'group',
						'id' => 'loquet-exhibition-social-media-sites',
						'name' => esc_html__( 'Social Media Sites', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{link_title}',
						'fields' => array(
							array(
								'type' => 'select',
								'id' => 'icon',
								'name' => esc_html__( 'Icon', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => loquet_social_media_sites( $array_direction = "left" ),
							),
							array(
								'type' => 'text',
								'id' => 'link_title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'url',
								'id' => 'link_url',
								'name' => esc_html__( 'URL', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'select',
								'id' => 'link_target',
								'name' => esc_html__( 'Target', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => array(
									'_blank' => esc_html__( 'New Tab', 'loquet' ),
									'_self' => esc_html__( 'Same Frame', 'loquet' ),
								),
							),
						),
					),

					/*====== Sponsors ======*/
					array(
						'type' => 'group',
						'id' => 'loquet-exhibition-sponsors',
						'name' => esc_html__( 'Sponsors', 'loquet' ),
						'tab' => 'sponsors',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'image_advanced',
								'id' => 'logo',
								'name' => esc_html__( 'Logo', 'loquet' ),
								'force_delete' => false,
								'max_file_uploads' => 1,
								'max_status' => 'false',
								'image_size' => 'thumbnail',
							),
							array(
								'type' => 'url',
								'id' => 'url',
								'name' => esc_html__( 'URL', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-exhibition-sponsors-column',
						'name' => esc_html__( 'Sponsors Column', 'loquet' ),
						'tab' => 'sponsors',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( '1', 'loquet' ),
							'2' => esc_html__( '2', 'loquet' ),
							'3' => esc_html__( '3', 'loquet' ),
							'4' => esc_html__( '4', 'loquet' ),
							'5' => esc_html__( '5', 'loquet' ),
							'6' => esc_html__( '6', 'loquet' ),
							'7' => esc_html__( '7', 'loquet' ),
							'8' => esc_html__( '8', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-exhibition-sponsors-column-space',
						'name' => esc_html__( 'Sponsors Column Space', 'loquet' ),
						'tab' => 'sponsors',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'0' => esc_html__( '0', 'loquet' ),
							'5' => esc_html__( '5', 'loquet' ),
							'10' => esc_html__( '10', 'loquet' ),
							'15' => esc_html__( '15', 'loquet' ),
							'20' => esc_html__( '20', 'loquet' ),
							'25' => esc_html__( '25', 'loquet' ),
							'30' => esc_html__( '30', 'loquet' ),
						),
					),
				)
			);

			return $meta_boxes;

		}
		add_filter( 'rwmb_meta_boxes', 'loquet_exhibition_settings_meta_boxes' );

	}



	/*======
	*
	* Collection Settings
	*
	======*/
	if( !function_exists( 'loquet_collection_settings_meta_boxes' ) ) {

		function loquet_collection_settings_meta_boxes( $meta_boxes ) {

			$meta_boxes[] = array(
				'id' => 'loquet-collection-settings',
				'title' => esc_html__( 'Collection Details', 'loquet' ),
				'post_types' => array( 'collection' ),
				'context' => 'normal',
				'context' => 'normal',
				'priority' => 'high',
				'tab_style' => 'left',
				'tab_wrapper' => true,
				'tabs' => array(
					'details' => array(
						'label' => esc_html__( 'Details', 'loquet' ),
						'icon' => 'dashicons-edit-page',
					),
					'contact' => array(
						'label' => esc_html__( 'Contact', 'loquet' ),
						'icon' => 'dashicons-phone',
					),
					'sponsors' => array(
						'label' => esc_html__( 'Sponsors', 'loquet' ),
						'icon' => 'dashicons-screenoptions',
					),
				),
				'fields' => array(
					/*====== Details ======*/
					array(
						'type' => 'text',
						'id' => 'loquet-collection-size',
						'name' => esc_html__( 'Collection Size', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'datetime',
						'id' => 'loquet-collection-date',
						'name' => esc_html__( 'Date', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-collection-period',
						'name' => esc_html__( 'Period', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-collection-classification',
						'name' => esc_html__( 'Classification', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-collection-dimensions',
						'name' => esc_html__( 'Dimensions', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'post',
						'field_type' => 'select_advanced',
						'id' => 'loquet-collection-posts',
						'name' => esc_html__( 'Collection Contents', 'loquet' ),
						'desc' => esc_html__( 'Select the museums and exhibitions you want to add to the collection.', 'loquet' ),
						'tab' => 'details',
						'select_all_none' => esc_html__( 'Toggle All', 'loquet' ),
						'post_type' => array( 'museum', 'exhibition' ),
						'multiple' => true,
						'ajax' => true,
						'query_args' => array(
							'posts_per_page' => 10,
						),
					),
					array(
						'type' => 'switch',
						'id' => 'loquet-collection-accessible-for-free',
						'name' => esc_html__( 'Accessible for Free', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'group',
						'id' => 'loquet-collection-content-sections',
						'name' => esc_html__( 'Content Sections', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'wysiwyg',
								'id' => 'content',
								'name' => esc_html__( 'Content', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'group',
						'id' => 'loquet-collection-extra-details',
						'name' => esc_html__( 'Extra Details', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'text',
								'id' => 'content',
								'name' => esc_html__( 'Content', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'select',
						'id' => 'loquet-collection-extra-details-position',
						'name' => esc_html__( 'Position of Extra Details', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'multiple' => false,
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'before' => esc_html__( 'Before Current Items', 'loquet' ),
							'after' => esc_html__( 'After Current Items', 'loquet' ),
						),
					),

					/*====== Contact ======*/
					array(
						'type' => 'text',
						'id' => 'loquet-collection-address',
						'name' => esc_html__( 'Address', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-collection-postal-code',
						'name' => esc_html__( 'Postal Code', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'map',
						'id' => 'loquet-collection-map-view',
						'name' => esc_html__( 'Map View', 'loquet' ),
						'tab' => 'contact',
						'address_field' => 'loquet-collection-address',
						'api_key' => esc_attr( get_theme_mod( 'loquet_google_maps_api' ) ),
					),

					/*====== Sponsors ======*/
					array(
						'type' => 'group',
						'id' => 'loquet-collection-sponsors',
						'name' => esc_html__( 'Sponsors', 'loquet' ),
						'tab' => 'sponsors',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'image_advanced',
								'id' => 'logo',
								'name' => esc_html__( 'Logo', 'loquet' ),
								'force_delete' => false,
								'max_file_uploads' => 1,
								'max_status' => 'false',
								'image_size' => 'thumbnail',
							),
							array(
								'type' => 'url',
								'id' => 'url',
								'name' => esc_html__( 'URL', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-collection-sponsors-column',
						'name' => esc_html__( 'Sponsors Column', 'loquet' ),
						'tab' => 'sponsors',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( '1', 'loquet' ),
							'2' => esc_html__( '2', 'loquet' ),
							'3' => esc_html__( '3', 'loquet' ),
							'4' => esc_html__( '4', 'loquet' ),
							'5' => esc_html__( '5', 'loquet' ),
							'6' => esc_html__( '6', 'loquet' ),
							'7' => esc_html__( '7', 'loquet' ),
							'8' => esc_html__( '8', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-collection-sponsors-column-space',
						'name' => esc_html__( 'Sponsors Column Space', 'loquet' ),
						'tab' => 'sponsors',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'0' => esc_html__( '0', 'loquet' ),
							'5' => esc_html__( '5', 'loquet' ),
							'10' => esc_html__( '10', 'loquet' ),
							'15' => esc_html__( '15', 'loquet' ),
							'20' => esc_html__( '20', 'loquet' ),
							'25' => esc_html__( '25', 'loquet' ),
							'30' => esc_html__( '30', 'loquet' ),
						),
					),
				)
			);

			return $meta_boxes;

		}
		add_filter( 'rwmb_meta_boxes', 'loquet_collection_settings_meta_boxes' );

	}



	/*======
	*
	* Magazine Settings
	*
	======*/
	if( !function_exists( 'loquet_magazine_settings_meta_boxes' ) ) {

		function loquet_magazine_settings_meta_boxes( $meta_boxes ) {

			$meta_boxes[] = array(
				'id' => 'loquet-magazine-settings',
				'title' => esc_html__( 'Magazine Details', 'loquet' ),
				'post_types' => array( 'magazine' ),
				'context' => 'normal',
				'priority' => 'high',
				'tab_style' => 'left',
				'tab_wrapper' => true,
				'tabs' => array(
					'details' => array(
						'label' => esc_html__( 'Details', 'loquet' ),
						'icon' => 'dashicons-edit-page',
					),
					'files' => array(
						'label' => esc_html__( 'Files', 'loquet' ),
						'icon' => 'dashicons-pdf',
					),
					'media' => array(
						'label' => esc_html__( 'Media', 'loquet' ),
						'icon' => 'dashicons-format-image',
					),
					'contact' => array(
						'label' => esc_html__( 'Contact', 'loquet' ),
						'icon' => 'dashicons-phone',
					),
				),
				'fields' => array(
					/*====== Details ======*/
					array(
						'type' => 'datetime',
						'id' => 'loquet-magazine-release-date',
						'name' => esc_html__( 'Release Date', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'datetime',
						'id' => 'loquet-magazine-end-date',
						'name' => esc_html__( 'End Date', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-magazine-frequency',
						'name' => esc_html__( 'Frequency', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-magazine-price',
						'name' => esc_html__( 'Price', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'select',
						'id' => 'loquet-magazine-stock-status',
						'name' => esc_html__( 'Stock Status', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'multiple' => false,
						'options' => array(
							'in-stock' => esc_html__( 'In Stock', 'loquet' ),
							'out-of-stock' => esc_html__( 'Out of Stock', 'loquet' ),
							'pre-order' => esc_html__( 'Pre Order', 'loquet' ),
							'sold-out' => esc_html__( 'Sold Out', 'loquet' ),
							'discontinued' => esc_html__( 'Discontinued', 'loquet' ),
							'back-order' => esc_html__( 'Back Order', 'loquet' ),
							'in-store-only' => esc_html__( 'In Store Only', 'loquet' ),
							'limited-availability' => esc_html__( 'Limited Availability', 'loquet' ),
							'online-only' => esc_html__( 'Online Only', 'loquet' ),
							'pre-sale' => esc_html__( 'Pre Sale', 'loquet' ),
						),
					),
					array(
						'type' => 'text',
						'id' => 'loquet-magazine-issn',
						'name' => esc_html__( 'ISSN', 'loquet' ),
						'tab' => 'details',
						'inline' => false,
					),
					array(
						'type' => 'select',
						'id' => 'loquet-magazine-type',
						'name' => esc_html__( 'Type', 'loquet' ),
						'desc' => sprintf( '<ul><li>%s</li> <li>%s <li>%s</li></ul>', esc_html__( 'Periodical: A publication in any medium issued in successive parts bearing numerical or chronological designations and intended to continue indefinitely, such as a magazine, scholarly journal, or newspaper.', 'loquet' ), esc_html__( 'Publication Issue: A part of a successively published publication such as a periodical or publication volume, often numbered, usually containing a grouping of works such as articles.', 'loquet' ), esc_html__( 'Newspaper: A publication containing information about varied topics that are pertinent to general information, a geographic area, or a specific subject matter (i.e. business, culture, education). Often published daily.', 'loquet' ) ),
						'tab' => 'details',
						'inline' => true,
						'multiple' => false,
						'options' => array(
							'periodical' => esc_html__( 'Periodical', 'loquet' ),
							'iframe-link' => esc_html__( 'Publication Issue', 'loquet' ),
							'book' => esc_html__( 'Book', 'loquet' ),
							'newspaper' => esc_html__( 'Newspaper', 'loquet' ),
						),
					),
					array(
						'type' => 'switch',
						'id' => 'loquet-magazine-accessible-for-free',
						'name' => esc_html__( 'Accessible for Free', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
					),
					array(
						'type' => 'group',
						'id' => 'loquet-magazine-content-sections',
						'name' => esc_html__( 'Content Sections', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'wysiwyg',
								'id' => 'content',
								'name' => esc_html__( 'Content', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'group',
						'id' => 'loquet-magazine-extra-details',
						'name' => esc_html__( 'Extra Details', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'text',
								'id' => 'content',
								'name' => esc_html__( 'Content', 'loquet' ),
								'inline' => true,
							),
						),
					),
					array(
						'type' => 'select',
						'id' => 'loquet-magazine-extra-details-position',
						'name' => esc_html__( 'Position of Extra Details', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'multiple' => false,
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'before' => esc_html__( 'Before Current Items', 'loquet' ),
							'after' => esc_html__( 'After Current Items', 'loquet' ),
						),
					),
					array(
						'type' => 'group',
						'id' => 'loquet-magazine-info-boxes',
						'name' => esc_html__( 'Info Boxes', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'wysiwyg',
								'id' => 'content',
								'name' => esc_html__( 'Content', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'select',
								'id' => 'style',
								'name' => esc_html__( 'Style', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => array(
									'default' => esc_html__( 'Default', 'loquet' ),
									'style-1' => esc_html__( 'Style 1', 'loquet' ),
									'style-2' => esc_html__( 'Style 2', 'loquet' ),
									'style-3' => esc_html__( 'Style 3', 'loquet' ),
									'style-4' => esc_html__( 'Style 4', 'loquet' ),
								),
							),
						),
					),
					array(
						'type' => 'group',
						'id' => 'loquet-magazine-buttons',
						'name' => esc_html__( 'Buttons', 'loquet' ),
						'tab' => 'details',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{title}',
						'fields' => array(
							array(
								'type' => 'text',
								'id' => 'title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'text',
								'id' => 'link',
								'name' => esc_html__( 'Link', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'select',
								'id' => 'target',
								'name' => esc_html__( 'Target', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => array(
									'_blank' => esc_html__( 'New Tab', 'loquet' ),
									'_self' => esc_html__( 'Same Frame', 'loquet' ),
								),
							),
							array(
								'type' => 'select',
								'id' => 'style',
								'name' => esc_html__( 'Style', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => array(
									'default' => esc_html__( 'Default', 'loquet' ),
									'style-1' => esc_html__( 'Style 1', 'loquet' ),
									'style-2' => esc_html__( 'Style 2', 'loquet' ),
									'style-3' => esc_html__( 'Style 3', 'loquet' ),
									'style-4' => esc_html__( 'Style 4', 'loquet' ),
								),
							),
						),
					),

					/*====== Files ======*/
					array(
						'type' => 'select',
						'id' => 'loquet-magazine-publish-method',
						'name' => esc_html__( 'Magazine Publish Method', 'loquet' ),
						'tab' => 'files',
						'inline' => true,
						'multiple' => false,
						'options' => array(
							'file-upload' => esc_html__( 'File Upload', 'loquet' ),
							'iframe-link' => esc_html__( 'Iframe Link', 'loquet' ),
						),
					),
					array(
						'type' => 'file_advanced',
						'id' => 'loquet-magazine-pdf-file',
						'name' => esc_html__( 'File Upload (PDF)', 'loquet' ),
						'tab' => 'files',
						'false' => true,
						'force_delete' => false,
						'max_file_uploads' => 1,
						'max_status' => 'false',
					),
					array(
						'type' => 'url',
						'id' => 'loquet-magazine-iframe-link',
						'name' => esc_html__( 'Iframe Link', 'loquet' ),
						'tab' => 'files',
						'false' => true,
					),

					/*====== Media ======*/
					array(
						'type' => 'image_advanced',
						'id' => 'loquet-magazine-cover',
						'name' => esc_html__( 'Cover', 'loquet' ),
						'tab' => 'media',
						'force_delete' => false,
						'max_file_uploads' => 1,
						'max_status' => 'false',
						'image_size' => 'thumbnail',
					),
					array(
						'type' => 'image_advanced',
						'id' => 'loquet-magazine-logo',
						'name' => esc_html__( 'Logo', 'loquet' ),
						'tab' => 'media',
						'force_delete' => false,
						'max_file_uploads' => 1,
						'max_status' => 'false',
						'image_size' => 'thumbnail',
					),

					/*====== Contact ======*/
					array(
						'type' => 'text',
						'id' => 'loquet-magazine-address',
						'name' => esc_html__( 'Address', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'text',
						'id' => 'loquet-magazine-postal-code',
						'name' => esc_html__( 'Postal Code', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'map',
						'id' => 'loquet-magazine-map-view',
						'name' => esc_html__( 'Map View', 'loquet' ),
						'tab' => 'contact',
						'address_field' => 'loquet-magazine-address',
						'std' => '-6.233406,-35.049906,15',
						'api_key' => esc_attr( get_theme_mod( 'loquet_google_maps_api' ) ),
					),
					array(
						'type' => 'tel',
						'id' => 'loquet-magazine-phone',
						'name' => esc_html__( 'Phone Number', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'email',
						'id' => 'loquet-magazine-email',
						'name' => esc_html__( 'Email Address', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'url',
						'id' => 'loquet-magazine-website',
						'name' => esc_html__( 'Website', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
					),
					array(
						'type' => 'group',
						'id' => 'loquet-magazine-social-media-sites',
						'name' => esc_html__( 'Social Media Sites', 'loquet' ),
						'tab' => 'contact',
						'inline' => true,
						'clone' => true,
						'sort_clone' => true,
						'clone_default' => true,
						'collapsible' => true,
						'default_state' => 'collapsed',
						'group_title' => '{link_title}',
						'fields' => array(
							array(
								'type' => 'select',
								'id' => 'icon',
								'name' => esc_html__( 'Icon', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => loquet_social_media_sites( $array_direction = "left" ),
							),
							array(
								'type' => 'text',
								'id' => 'link_title',
								'name' => esc_html__( 'Title', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'text',
								'id' => 'link_url',
								'name' => esc_html__( 'URL', 'loquet' ),
								'inline' => true,
							),
							array(
								'type' => 'select',
								'id' => 'link_target',
								'name' => esc_html__( 'Target', 'loquet' ),
								'inline' => true,
								'multiple' => false,
								'options' => array(
									'_blank' => esc_html__( 'New Tab', 'loquet' ),
									'_self' => esc_html__( 'Same Frame', 'loquet' ),
								),
							),
						),
					),
				)
			);

			return $meta_boxes;

		}
		add_filter( 'rwmb_meta_boxes', 'loquet_magazine_settings_meta_boxes' );

	}



	/*======
	*
	* Page Settings
	*
	======*/
	if( !function_exists( 'loquet_page_settings_meta_boxes' ) ) {

		function loquet_page_settings_meta_boxes( $meta_boxes ) {

			$meta_boxes[] = array(
				'id' => 'loquet-page-settings',
				'title' => esc_html__( 'Page Settings', 'loquet' ),
				'post_types' => array( 'post', 'page', 'museum', 'exhibition', 'collection', 'magazine', 'tribe_events' ),
				'context' => 'normal',
				'priority' => 'high',
				'tab_style' => 'left',
				'tab_wrapper' => true,
				'tabs' => array(
					'layout' => array(
						'label' => esc_html__( 'Layout', 'loquet' ),
						'icon' => 'dashicons-grid-view',
					),
					'post' => array(
						'label' => esc_html__( 'Post', 'loquet' ),
						'icon' => 'dashicons-media-text',
					),
					'featured-header' => array(
						'label' => esc_html__( 'Featured Header', 'loquet' ),
						'icon' => 'dashicons-format-image',
					),
					'header' => array(
						'label' => esc_html__( 'Header', 'loquet' ),
						'icon' => 'dashicons-editor-kitchensink',
					),
					'mobile-header' => array(
						'label' => esc_html__( 'Mobile Header', 'loquet' ),
						'icon' => 'dashicons-editor-kitchensink',
					),
					'footer' => array(
						'label' => esc_html__( 'Footer', 'loquet' ),
						'icon' => 'dashicons-feedback',
					),
					'title-bar' => array(
						'label' => esc_html__( 'Title Bar', 'loquet' ),
						'icon' => 'dashicons-align-center',
					),
					'sidebar' => array(
						'label' => esc_html__( 'Sidebar', 'loquet' ),
						'icon' => 'dashicons-layout',
					),
				),
				'fields' => array(
					/*====== Layout ======*/
					array(
						'type' => 'button_group',
						'id' => 'loquet-comments',
						'name' => esc_html__( 'Comments Area', 'loquet' ),
						'tab' => 'layout',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-social-sharing-box',
						'name' => esc_html__( 'Social Sharing Box', 'loquet' ),
						'tab' => 'layout',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-content-inner-padding',
						'name' => esc_html__( 'Content Inner Padding', 'loquet' ),
						'tab' => 'layout',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'none' => esc_html__( 'None', 'loquet' ),
							'left' => esc_html__( 'Left', 'loquet' ),
							'right' => esc_html__( 'Right', 'loquet' ),
							'both' => esc_html__( 'Both', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-page-navigation',
						'name' => esc_html__( 'Page Navigation', 'loquet' ),
						'tab' => 'layout',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-page-container-width',
						'name' => esc_html__( 'Page Container Width', 'loquet' ),
						'tab' => 'layout',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'fluid' => esc_html__( 'Fluid', 'loquet' ),
							'wide' => esc_html__( 'Wide', 'loquet' ),
							'narrow' => esc_html__( 'Narrow', 'loquet' ),
						),
					),
					array(
						'type' => 'fieldset_text',
						'id' => 'loquet-page-wrapper-padding',
						'name' => esc_html__( 'Page Wrapper Padding', 'loquet' ),
						'desc' => esc_html__( 'In pixel. You can change default value from the Appearance > Customize > Layouts page.', 'loquet' ),
						'tab' => 'layout',
						'options' => array(
							'top' => esc_html__( 'Top', 'loquet' ),
							'bottom' => esc_html__( 'Bottom', 'loquet' ),
						),
					),
					array(
						'type' => 'background',
						'id' => 'loquet-body-background',
						'name' => esc_html__( 'Body Background', 'loquet' ),
						'desc' => esc_html__( 'You can customize default background image from the Appearance > Customize > Background Image page and default background color from the Appearance > Customize > Colors page.', 'loquet' ),
						'tab' => 'layout',
					),

					/*====== Post ======*/
					array(
						'type' => 'button_group',
						'id' => 'loquet-post-category-info',
						'name' => esc_html__( 'Category Info', 'loquet' ),
						'tab' => 'post',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-post-author-info',
						'name' => esc_html__( 'Author Info', 'loquet' ),
						'tab' => 'post',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-post-date-info',
						'name' => esc_html__( 'Date Info', 'loquet' ),
						'tab' => 'post',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-post-comment-info',
						'name' => esc_html__( 'Comment Info', 'loquet' ),
						'tab' => 'post',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-post-reading-time-info',
						'name' => esc_html__( 'Reading Time Info', 'loquet' ),
						'tab' => 'post',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-tags',
						'name' => esc_html__( 'Tags', 'loquet' ),
						'tab' => 'post',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-author-info-box',
						'name' => esc_html__( 'Author Info Box', 'loquet' ),
						'tab' => 'post',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-related-posts',
						'name' => esc_html__( 'Related Posts', 'loquet' ),
						'tab' => 'post',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),

					/*====== Featured Header ======*/
					array(
						'type' => 'button_group',
						'id' => 'loquet-featured-header',
						'name' => esc_html__( 'Featured Header', 'loquet' ),
						'tab' => 'featured-header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-featured-header-position',
						'name' => esc_html__( 'Featured Header Position', 'loquet' ),
						'tab' => 'featured-header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'position-1' => esc_html__( 'Position 1', 'loquet' ),
							'position-2' => esc_html__( 'Position 2', 'loquet' ),
							'position-3' => esc_html__( 'Position 3', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-featured-header-style',
						'name' => esc_html__( 'Featured Header Style', 'loquet' ),
						'tab' => 'featured-header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'image' => esc_html__( 'Image', 'loquet' ),
							'image-slider' => esc_html__( 'Image Slider', 'loquet' ),
							'image-gallery' => esc_html__( 'Image Gallery', 'loquet' ),
							'video' => esc_html__( 'Video', 'loquet' ),
							'audio' => esc_html__( 'Audio', 'loquet' ),
							'code' => esc_html__( 'Code', 'loquet' ),
						),
					),
					array(
						'type' => 'image_advanced',
						'id' => 'loquet-featured-header-image',
						'name' => esc_html__( 'Image', 'loquet' ),
						'desc' => esc_html__( 'If you leave it blank, the image will come from the Featured Image field.', 'loquet' ),
						'tab' => 'featured-header',
						'inline' => true,
						'force_delete' => false,
						'max_file_uploads' => 1,
						'max_status' => 'false',
						'image_size' => 'thumbnail',
					),
					array(
						'type' => 'image_advanced',
						'id' => 'loquet-featured-header-images',
						'name' => esc_html__( 'Images', 'loquet' ),
						'desc' => esc_html__( 'Upload images for image gallery or image slider styles.', 'loquet' ),
						'tab' => 'featured-header',
						'inline' => true,
						'force_delete' => false,
						'max_status' => 'false',
						'image_size' => 'thumbnail',
					),
					array(
						'type' => 'oembed',
						'id' => 'loquet-featured-header-video',
						'name' => esc_html__( 'Video', 'loquet' ),
						'desc' => esc_html__( 'Enter a video URL for video style.', 'loquet' ),
						'tab' => 'featured-header',
						'inline' => true,
					),
					array(
						'type' => 'textarea',
						'id' => 'loquet-featured-header-code',
						'name' => esc_html__( 'Code', 'loquet' ),
						'desc' => esc_html__( 'Enter embed or HTML codes for audio and code styles.', 'loquet' ),
						'tab' => 'featured-header',
						'inline' => true,
						'sanitize_callback' => 'none',
					),

					/*====== Header ======*/
					array(
						'type' => 'button_group',
						'id' => 'loquet-header',
						'name' => esc_html__( 'Header', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-header-style',
						'name' => esc_html__( 'Header Style', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'style-1' => esc_html__( 'Style 1', 'loquet' ),
							'style-2' => esc_html__( 'Style 2', 'loquet' ),
							'style-3' => esc_html__( 'Style 3', 'loquet' ),
							'style-4' => esc_html__( 'Style 4', 'loquet' ),
							'style-5' => esc_html__( 'Style 5', 'loquet' ),
							'style-6' => esc_html__( 'Style 6', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-header-skin',
						'name' => esc_html__( 'Header Skin', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'light' => esc_html__( 'Light', 'loquet' ),
							'dark' => esc_html__( 'Dark', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-header-width',
						'name' => esc_html__( 'Header Width', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'wide' => esc_html__( 'Wide', 'loquet' ),
							'narrow' => esc_html__( 'Narrow', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-transparent-header',
						'name' => esc_html__( 'Transparent Header', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'true' => esc_html__( 'True', 'loquet' ),
							'false' => esc_html__( 'False', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-header-position',
						'name' => esc_html__( 'Header Position', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'standard' => esc_html__( 'Standard', 'loquet' ),
							'absolute' => esc_html__( 'Absolute', 'loquet' ),
							'fixed' => esc_html__( 'Fixed', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-transparent-separator',
						'name' => esc_html__( 'Header Separator', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'true' => esc_html__( 'True', 'loquet' ),
							'false' => esc_html__( 'False', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-top-bar',
						'name' => esc_html__( 'Top Bar', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-top-bar-skin',
						'name' => esc_html__( 'Top Bar Skin', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'light' => esc_html__( 'Light', 'loquet' ),
							'dark' => esc_html__( 'Dark', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-top-bar-width',
						'name' => esc_html__( 'Top Bar Width', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'wide' => esc_html__( 'Wide', 'loquet' ),
							'narrow' => esc_html__( 'Narrow', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-sticky-header',
						'name' => esc_html__( 'Sticky Header', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-sticky-header-skin',
						'name' => esc_html__( 'Sticky Header Skin', 'loquet' ),
						'tab' => 'header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'light' => esc_html__( 'Light', 'loquet' ),
							'dark' => esc_html__( 'Dark', 'loquet' ),
						),
					),
					array(
						'type' => 'background',
						'id' => 'loquet-header-background',
						'name' => esc_html__( 'Header Background', 'loquet' ),
						'tab' => 'header',
					),

					/*====== Mobile Header ======*/
					array(
						'type' => 'button_group',
						'id' => 'loquet-mobile-header',
						'name' => esc_html__( 'Mobile Header', 'loquet' ),
						'tab' => 'mobile-header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-mobile-header-style',
						'name' => esc_html__( 'Mobile Header Style', 'loquet' ),
						'tab' => 'mobile-header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'style-1' => esc_html__( 'Style 1', 'loquet' ),
							'style-2' => esc_html__( 'Style 2', 'loquet' ),
							'style-3' => esc_html__( 'Style 3', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-mobile-header-skin',
						'name' => esc_html__( 'Mobile Header Skin', 'loquet' ),
						'tab' => 'mobile-header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'light' => esc_html__( 'Light', 'loquet' ),
							'dark' => esc_html__( 'Dark', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-transparent-mobile-header',
						'name' => esc_html__( 'Transparent Mobile Header', 'loquet' ),
						'tab' => 'mobile-header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'true' => esc_html__( 'True', 'loquet' ),
							'false' => esc_html__( 'False', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-mobile-header-position',
						'name' => esc_html__( 'Mobile Header Position', 'loquet' ),
						'tab' => 'mobile-header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'standard' => esc_html__( 'Standard', 'loquet' ),
							'absolute' => esc_html__( 'Absolute', 'loquet' ),
							'fixed' => esc_html__( 'Fixed', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-sticky-mobile-header',
						'name' => esc_html__( 'Sticky Mobile Header', 'loquet' ),
						'tab' => 'mobile-header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-sticky-mobile-header-skin',
						'name' => esc_html__( 'Mobile Header Skin', 'loquet' ),
						'tab' => 'mobile-header',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'light' => esc_html__( 'Light', 'loquet' ),
							'dark' => esc_html__( 'Dark', 'loquet' ),
						),
					),
					array(
						'type' => 'background',
						'id' => 'loquet-mobile-header-background',
						'name' => esc_html__( 'Header Background', 'loquet' ),
						'tab' => 'mobile-header',
					),

					/*====== Footer ======*/
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer',
						'name' => esc_html__( 'Footer', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-copyright',
						'name' => esc_html__( 'Copyright', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-copyright-style',
						'name' => esc_html__( 'Copyright Style', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'style-1' => esc_html__( 'Style 1', 'loquet' ),
							'style-2' => esc_html__( 'Style 2', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-copyright-skin',
						'name' => esc_html__( 'Copyright Skin', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'light' => esc_html__( 'Light', 'loquet' ),
							'dark' => esc_html__( 'Dark', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-copyright-width',
						'name' => esc_html__( 'Copyright Width', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',	
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'wide' => esc_html__( 'Wide', 'loquet' ),
							'narrow' => esc_html__( 'Narrow', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-logo',
						'name' => esc_html__( 'Footer Logo', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-menu',
						'name' => esc_html__( 'Footer Menu', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-menu-skin',
						'name' => esc_html__( 'Footer Menu Skin', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'light' => esc_html__( 'Light', 'loquet' ),
							'dark' => esc_html__( 'Dark', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-menu-width',
						'name' => esc_html__( 'Footer Menu Width', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',	
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'wide' => esc_html__( 'Wide', 'loquet' ),
							'narrow' => esc_html__( 'Narrow', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-social-media',
						'name' => esc_html__( 'Social Media Links', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-newsletter',
						'name' => esc_html__( 'Newsletter', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-newsletter-style',
						'name' => esc_html__( 'Newsletter Style', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'style-1' => esc_html__( 'Style 1', 'loquet' ),
							'style-2' => esc_html__( 'Style 2', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-newsletter-skin',
						'name' => esc_html__( 'Newsletter Skin', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'light' => esc_html__( 'Light', 'loquet' ),
							'dark' => esc_html__( 'Dark', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-newsletter-width',
						'name' => esc_html__( 'Newsletter Width', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',	
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'wide' => esc_html__( 'Wide', 'loquet' ),
							'narrow' => esc_html__( 'Narrow', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-widgets',
						'name' => esc_html__( 'Widgets', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-widgets-style',
						'name' => esc_html__( 'Widgets Style', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'style-1' => esc_html__( 'Style 1', 'loquet' ),
							'style-2' => esc_html__( 'Style 2', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-widgets-skin',
						'name' => esc_html__( 'Widgets Skin', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'light' => esc_html__( 'Light', 'loquet' ),
							'dark' => esc_html__( 'Dark', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-widgets-width',
						'name' => esc_html__( 'Widgets Width', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',	
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'wide' => esc_html__( 'Wide', 'loquet' ),
							'narrow' => esc_html__( 'Narrow', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-instagram',
						'name' => esc_html__( 'Instagram', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-instagram-skin',
						'name' => esc_html__( 'Instagram Skin', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'light' => esc_html__( 'Light', 'loquet' ),
							'dark' => esc_html__( 'Dark', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-footer-instagram-width',
						'name' => esc_html__( 'Instagram Width', 'loquet' ),
						'tab' => 'footer',
						'inline' => true,
						'std' => 'default',	
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'fluid' => esc_html__( 'Fluid', 'loquet' ),
							'wide' => esc_html__( 'Wide', 'loquet' ),
							'narrow' => esc_html__( 'Narrow', 'loquet' ),
						),
					),
					array(
						'type' => 'background',
						'id' => 'loquet-footer-background',
						'name' => esc_html__( 'Footer Background', 'loquet' ),
						'tab' => 'footer',
					),

					/*====== Title Bar ======*/
					array(
						'type' => 'button_group',
						'id' => 'loquet-title-bar',
						'name' => esc_html__( 'Title Bar', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-title-bar-style',
						'name' => esc_html__( 'Title Bar Style', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'style-1' => esc_html__( 'Style 1', 'loquet' ),
							'style-2' => esc_html__( 'Style 2', 'loquet' ),
							'style-3' => esc_html__( 'Style 3', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-title-bar-skin',
						'name' => esc_html__( 'Title Bar Skin', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'light' => esc_html__( 'Light', 'loquet' ),
							'dark' => esc_html__( 'Dark', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-title-bar-width',
						'name' => esc_html__( 'Title Bar Width', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'wide' => esc_html__( 'Wide', 'loquet' ),
							'narrow' => esc_html__( 'Narrow', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-title-bar-alignment',
						'name' => esc_html__( 'Title Bar Alignment', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'left' => esc_html__( 'Left', 'loquet' ),
							'center' => esc_html__( 'Center', 'loquet' ),
							'right' => esc_html__( 'Right', 'loquet' ),
						),
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-title-bar-title',
						'name' => esc_html__( 'Title', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'text',
						'id' => 'loquet-title-bar-custom-title',
						'name' => esc_html__( 'Custom Title', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-title-bar-subtitle',
						'name' => esc_html__( 'Subtitle', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'text',
						'id' => 'loquet-title-bar-custom-subtitle',
						'name' => esc_html__( 'Custom Subtitle', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
					),
					array(
						'type' => 'button_group',
						'id' => 'loquet-title-bar-text',
						'name' => esc_html__( 'Text', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'1' => esc_html__( 'Show', 'loquet' ),
							'0' => esc_html__( 'Hide', 'loquet' ),
						),
					),
					array(
						'type' => 'text',
						'id' => 'loquet-title-bar-custom-text',
						'name' => esc_html__( 'Custom Text', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
					),
					array(
						'type' => 'background',
						'id' => 'loquet-title-bar-background',
						'name' => esc_html__( 'Background', 'loquet' ),
						'tab' => 'title-bar',
					),
					array(
						'type' => 'color',
						'id' => 'loquet-title-background-overlay',
						'name' => esc_html__( 'Background Overlay', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
						'alpha_channel' => true,
					),
					array(
						'type' => 'fieldset_text',
						'id' => 'loquet-title-bar-padding',
						'name' => esc_html__( 'Paddings', 'loquet' ),
						'desc' => esc_html__( 'In pixel.', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
						'options' => array(
							'top' => esc_html__( 'Top', 'loquet' ),
							'bottom' => esc_html__( 'Bottom', 'loquet' ),
						),
					),
					array(
						'type' => 'color',
						'id' => 'loquet-title-bar-title-color',
						'name' => esc_html__( 'Title Color', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
					),
					array(
						'type' => 'color',
						'id' => 'loquet-title-bar-subtitle-color',
						'name' => esc_html__( 'Subtitle Color', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
					),
					array(
						'type' => 'color',
						'id' => 'loquet-title-bar-text-color',
						'name' => esc_html__( 'Text Color', 'loquet' ),
						'tab' => 'title-bar',
						'inline' => true,
					),

					/*====== Sidebar ======*/
					array(
						'type' => 'button_group',
						'id' => 'loquet-sidebar-position',
						'name' => esc_html__( 'Sidebar Position', 'loquet' ),
						'tab' => 'sidebar',
						'inline' => true,
						'std' => 'default',
						'options' => array(
							'default' => esc_html__( 'Default', 'loquet' ),
							'left-sidebar' => esc_html__( 'Left Sidebar', 'loquet' ),
							'no-sidebar' => esc_html__( 'No Sidebar', 'loquet' ),
							'right-sidebar' => esc_html__( 'Right Sidebar', 'loquet' ),
						),
					),
					array(
						'type' => 'sidebar',
						'id' => 'loquet-sidebar',
						'name' => esc_html__( 'Sidebar', 'loquet' ),
						'tab' => 'sidebar',
						'inline' => true,
					),
				)
			);

			return $meta_boxes;

		}
		add_filter( 'rwmb_meta_boxes', 'loquet_page_settings_meta_boxes' );

	}



	/*======
	*
	* Meta Boxes Conditions
	*
	======*/
	if( !function_exists( 'loquet_meta_boxes_conditions' ) ) {

		function loquet_meta_boxes_conditions( $conditions ) {

			$conditions['.rwmb-tab-post'] = array(
				'visible' => array( 'post_type', 'post' ),
			);

			$conditions['.rwmb-tab-title-bar'] = array(
				'hidden' => array( 'post_type', 'museum' ),
			);

			return $conditions;

		}
		add_filter( 'rwmb_outside_conditions', 'loquet_meta_boxes_conditions' );

	}

}