<?php

if( function_exists('acf_add_local_field_group') ):

acf_add_local_field_group(array(
	'key' => 'group_5ed68868a5a8b',
	'title' => 'Page section settings',
	'fields' => array(
		array(
			'key' => 'field_5ed689da46a46',
			'label' => 'Width',
			'name' => 'page_section_width',
			'type' => 'select',
			'instructions' => 'Choose the width of this section',
			'required' => 0,
			'conditional_logic' => 0,
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'choices' => array(
				'fullwidth' => 'Full width',
				'boxed' => 'Boxed',
			),
			'default_value' => 'boxed',
			'allow_null' => 0,
			'multiple' => 0,
			'ui' => 0,
			'return_format' => 'array',
			'ajax' => 0,
			'placeholder' => '',
		),
		array(
			'key' => 'field_5ed6887e8c1ea',
			'label' => 'Layout',
			'name' => 'page_section_layout',
			'type' => 'select',
			'instructions' => 'Choose the layout for this section',
			'required' => 0,
			'conditional_logic' => 0,
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'choices' => array(
				'one_col' => 'Single Column',
				'two_col' => 'Two Columns',
			),
			'default_value' => 'fullwidth',
			'allow_null' => 0,
			'multiple' => 0,
			'ui' => 0,
			'return_format' => 'array',
			'ajax' => 0,
			'placeholder' => '',
		),
		array(
			'key' => 'field_5ed68cdb037d4',
			'label' => 'Columns layout',
			'name' => 'page_section_cols_layout',
			'type' => 'select',
			'instructions' => 'Choose the columns layout',
			'required' => 0,
			'conditional_logic' => array(
				array(
					array(
						'field' => 'field_5ed6887e8c1ea',
						'operator' => '==',
						'value' => 'two_col',
					),
				),
			),
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'choices' => array(
				'equal' => '1/2 - 1/2 (Equal columns)',
				'three-nine' => '1/3 - 2/3',
				'nine-three' => '2/3 - 1/3',
			),
			'default_value' => 'equal',
			'allow_null' => 0,
			'multiple' => 0,
			'ui' => 0,
			'return_format' => 'array',
			'ajax' => 0,
			'placeholder' => '',
		),
		array(
			'key' => 'field_5ed688f1b1ed4',
			'label' => 'Column 2 content',
			'name' => 'page_section_col_2_content',
			'type' => 'wysiwyg',
			'instructions' => 'Content for column 2',
			'required' => 0,
			'conditional_logic' => array(
				array(
					array(
						'field' => 'field_5ed6887e8c1ea',
						'operator' => '==',
						'value' => 'two_col',
					),
				),
			),
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'default_value' => '',
			'tabs' => 'all',
			'toolbar' => 'full',
			'media_upload' => 1,
			'delay' => 0,
		),
		array(
			'key' => 'field_5ed68e827d7de',
			'label' => 'CSS class',
			'name' => 'page_section_css_class',
			'type' => 'text',
			'instructions' => 'Add CSS classes separated by a comma',
			'required' => 0,
			'conditional_logic' => 0,
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'default_value' => '',
			'placeholder' => '',
			'prepend' => '',
			'append' => '',
			'maxlength' => '',
		),
	),
	'location' => array(
		array(
			array(
				'param' => 'post_type',
				'operator' => '==',
				'value' => 'page-section',
			),
		),
	),
	'menu_order' => 0,
	'position' => 'normal',
	'style' => 'default',
	'label_placement' => 'left',
	'instruction_placement' => 'label',
	'hide_on_screen' => '',
	'active' => true,
	'description' => '',
));

acf_add_local_field_group(array(
	'key' => 'group_5ed7812066e73',
	'title' => 'Slider settings',
	'fields' => array(
		array(
			'key' => 'field_5ed785a632ea7',
			'label' => 'Slides',
			'name' => 'slider_slides',
			'type' => 'relationship',
			'instructions' => 'Choose the slides to be displayed in this slider.<br>To define the slides, go to the "Slides" tab in the left-hand menu.<br>After you choose the slides, you can drag and drop them to change the order.',
			'required' => 0,
			'conditional_logic' => 0,
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'post_type' => array(
				0 => 'slide',
			),
			'taxonomy' => '',
			'filters' => '',
			'elements' => array(
				0 => 'featured_image',
			),
			'min' => 1,
			'max' => 10,
			'return_format' => 'object',
		),
	),
	'location' => array(
		array(
			array(
				'param' => 'post_type',
				'operator' => '==',
				'value' => 'slider',
			),
		),
	),
	'menu_order' => 0,
	'position' => 'normal',
	'style' => 'default',
	'label_placement' => 'left',
	'instruction_placement' => 'label',
	'hide_on_screen' => '',
	'active' => true,
	'description' => '',
));

acf_add_local_field_group(array(
	'key' => 'group_5ed4ca593073c',
	'title' => 'Vehicle settings',
	'fields' => array(
		array(
			'key' => 'field_5ed4ca6968698',
			'label' => 'Passenger capacity',
			'name' => 'vehicle_passenger_capacity',
			'type' => 'number',
			'instructions' => 'Set the passenger capacity',
			'required' => 0,
			'conditional_logic' => 0,
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'default_value' => 1,
			'placeholder' => '',
			'prepend' => '',
			'append' => 'passengers',
			'min' => 1,
			'max' => 100,
			'step' => '',
		),
		array(
			'key' => 'field_5ed4caa468699',
			'label' => 'Luggage capacity',
			'name' => 'vehicle_luggage_capacity',
			'type' => 'number',
			'instructions' => 'Set the luggage capacity',
			'required' => 0,
			'conditional_logic' => 0,
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'default_value' => 0,
			'placeholder' => '',
			'prepend' => '',
			'append' => 'bags',
			'min' => 0,
			'max' => 100,
			'step' => '',
		),
		array(
			'key' => 'field_5ed4d035f09d5',
			'label' => 'Category',
			'name' => 'vehicle_category',
			'type' => 'select',
			'instructions' => 'Choose the vehicle category',
			'required' => 0,
			'conditional_logic' => 0,
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'choices' => array(
				'sedan' => 'Sedan',
				'luxury_sedan' => 'Luxury Sedan',
				'suv' => 'SUV',
				'luxury_suv' => 'Luxury SUV',
				'van' => 'Van',
				'luxury_van' => 'Luxury Van',
			),
			'default_value' => 'sedan',
			'allow_null' => 0,
			'multiple' => 0,
			'ui' => 0,
			'return_format' => 'array',
			'ajax' => 0,
			'placeholder' => '',
		),
		array(
			'key' => 'field_5ed4d097f09d6',
			'label' => 'Gallery',
			'name' => 'vehicle_gallery',
			'type' => 'photo_gallery',
			'instructions' => 'Choose the images you want in the photo gallery',
			'required' => 0,
			'conditional_logic' => 0,
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'fields[vehicle_gallery' => array(
				'edit_modal' => 'Native',
				'images_limit' => '',
			),
			'edit_modal' => 'Default',
		),
	),
	'location' => array(
		array(
			array(
				'param' => 'post_type',
				'operator' => '==',
				'value' => 'vehicle',
			),
		),
	),
	'menu_order' => 0,
	'position' => 'normal',
	'style' => 'default',
	'label_placement' => 'left',
	'instruction_placement' => 'label',
	'hide_on_screen' => '',
	'active' => true,
	'description' => '',
));

endif;
