<?php
if(function_exists("register_field_group"))
{
	register_field_group(array (
		'id' => 'acf_categories',
		'title' => 'Categories',
		'fields' => array (
			array (
				'key' => 'field_54a2dd2711c87',
				'label' => 'Filter By',
				'name' => 'filter_by',
				'type' => 'select',
				'choices' => array (
					'tags' => 'Tags',
					'categories' => 'Categories',
					'none' => 'Don\'t Show',
				),
				'default_value' => 'categories',
				'allow_null' => 0,
				'multiple' => 0,
			),
			array (
				'key' => 'field_54a2dd1711c86',
				'label' => 'Sticky Posts Section',
				'name' => 'sticky_posts_section',
				'type' => 'true_false',
				'message' => '',
				'default_value' => 1,
			),
			array (
				'key' => 'field_54a2f85a51b32',
				'label' => 'Hide Featured Posts',
				'name' => 'hide_featured',
				'type' => 'true_false',
				'instructions' => 'Hide featured posts from the filter content.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2dd1711c86',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'message' => '',
				'default_value' => 0,
			),
			array (
				'key' => 'field_54a2f373b121f',
				'label' => 'Stick Section Title',
				'name' => 'stick_section_title',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2dd1711c86',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 'Featured Posts',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_54a2f393b1220',
				'label' => 'Stick Section Sub-title',
				'name' => 'stick_section_subtitle',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2dd1711c86',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 'Our Very Best Posts',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_54a2e1701f72e',
				'label' => 'Sticky Section Styling',
				'name' => '_styling',
				'type' => 'true_false',
				'message' => '',
				'default_value' => 0,
			),
			array (
				'key' => 'field_54a2e31b82477',
				'label' => ' Background Color',
				'name' => '_background_color',
				'type' => 'color_picker',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
			),
			array (
				'key' => 'field_54a2e34482479',
				'label' => ' Background Image',
				'name' => '_background_image',
				'type' => 'image',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'save_format' => 'object',
				'preview_size' => 'thumbnail',
				'library' => 'all',
			),
			array (
				'key' => 'field_54a2e36c8247b',
				'label' => 'Background Repeat',
				'name' => 'background_repeat',
				'type' => 'select',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'repeat' => 'Repeat',
					'no-repeat' => 'No Repeat',
					'repeat-x' => 'Repeat Horizontal',
					'repeat-y' => 'Repeat Vertical',
				),
				'default_value' => 'repeat',
				'allow_null' => 0,
				'multiple' => 0,
			),
			array (
				'key' => 'field_54a2e3e782480',
				'label' => 'Background Position',
				'name' => 'background_position',
				'type' => 'select',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'Left Top' => 'Left Top',
					'Left Center' => 'Left Center',
					'Left Bottom' => 'Left Bottom',
					'Right Top' => 'Right Top',
					'Right Center' => 'Right Center',
					'Right Bottom' => 'Right Bottom',
					'Center Top' => 'Center Top',
					'Center Center' => 'Center Center',
					'Center Bottom' => 'Center Bottom',
				),
				'default_value' => 'Left Top',
				'allow_null' => 0,
				'multiple' => 0,
			),
			array (
				'key' => 'field_54a2e49382483',
				'label' => 'Background Scale',
				'name' => 'background_scale',
				'type' => 'select',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'None' => 'None',
					'contain' => 'Fit',
					'cover' => 'Fill',
				),
				'default_value' => 'None',
				'allow_null' => 0,
				'multiple' => 0,
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'ef_taxonomy',
					'operator' => '==',
					'value' => 'category',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'no_box',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_homepage-slide-select',
		'title' => 'Homepage Slide Select',
		'fields' => array (
			array (
				'key' => 'field_549a026b168a3',
				'label' => 'Slides',
				'name' => 'slides',
				'type' => 'relationship',
				'instructions' => 'Select slides to be shown in slider.',
				'return_format' => 'id',
				'post_type' => array (
					0 => 'slide',
				),
				'taxonomy' => array (
					0 => 'all',
				),
				'filters' => array (
					0 => 'search',
				),
				'result_elements' => array (
					0 => 'post_title',
				),
				'max' => '',
			),
			array (
				'key' => 'field_549ef67b68e21',
				'label' => 'Auto Cycle',
				'name' => 'auto_cycle',
				'type' => 'true_false',
				'instructions' => 'Automatically cycle through slides.',
				'message' => '',
				'default_value' => 1,
			),
			array (
				'key' => 'field_549ef64768e20',
				'label' => 'Interval',
				'name' => 'interval',
				'type' => 'number',
				'instructions' => 'The amount of time to delay between automatically cycling an item.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_549ef67b68e21',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 5000,
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'min' => '',
				'max' => '',
				'step' => '',
			),
			array (
				'key' => 'field_549ef6bb68e22',
				'label' => 'Pause',
				'name' => 'pause',
				'type' => 'text',
				'instructions' => 'Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.',
				'default_value' => 'hover',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_549ef6d268e23',
				'label' => 'Wrap',
				'name' => 'wrap',
				'type' => 'true_false',
				'instructions' => 'Whether the carousel should cycle continuously or have hard stops.',
				'message' => '',
				'default_value' => 1,
			),
			array (
				'key' => 'field_549ef6ed68e24',
				'label' => 'Keyboard',
				'name' => 'keyboard',
				'type' => 'true_false',
				'instructions' => 'Whether the carousel should react to keyboard events.',
				'message' => '',
				'default_value' => 0,
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'page_template',
					'operator' => '==',
					'value' => 'page-homepage.php',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'default',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_homepage-styling',
		'title' => 'Homepage Styling',
		'fields' => array (
			array (
				'key' => 'field_54a6c033eae42',
				'label' => ' Styling',
				'name' => 'homepage__styling',
				'type' => 'true_false',
				'message' => '',
				'default_value' => 0,
			),
			array (
				'key' => 'field_550b3f8d7953e',
				'label' => ' Background Image',
				'name' => 'activehost_home_bg',
				'type' => 'image',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a6c033eae42',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'save_format' => 'object',
				'preview_size' => 'thumbnail',
				'library' => 'all',
			),
			array (
				'key' => 'field_54a2e31b82477',
				'label' => ' Background Color',
				'name' => '_background_color',
				'type' => 'color_picker',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
			),
			array (
				'key' => 'field_54a2e36c8247b',
				'label' => 'Background Repeat',
				'name' => 'background_repeat',
				'type' => 'select',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'repeat' => 'Repeat',
					'no-repeat' => 'No Repeat',
					'repeat-x' => 'Repeat Horizontal',
					'repeat-y' => 'Repeat Vertical',
				),
				'default_value' => 'repeat',
				'allow_null' => 0,
				'multiple' => 0,
			),
			array (
				'key' => 'field_54a2e3e782480',
				'label' => 'Background Position',
				'name' => 'background_position',
				'type' => 'select',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'Left Top' => 'Left Top',
					'Left Center' => 'Left Center',
					'Left Bottom' => 'Left Bottom',
					'Right Top' => 'Right Top',
					'Right Center' => 'Right Center',
					'Right Bottom' => 'Right Bottom',
					'Center Top' => 'Center Top',
					'Center Center' => 'Center Center',
					'Center Bottom' => 'Center Bottom',
				),
				'default_value' => 'Left Top',
				'allow_null' => 0,
				'multiple' => 0,
			),
			array (
				'key' => 'field_54a2e49382483',
				'label' => 'Background Scale',
				'name' => 'background_scale',
				'type' => 'select',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'None' => 'None',
					'contain' => 'Fit',
					'cover' => 'Fill',
				),
				'default_value' => 'None',
				'allow_null' => 0,
				'multiple' => 0,
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'page_template',
					'operator' => '==',
					'value' => 'page-homepage.php',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'default',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_hosting-plan',
		'title' => 'Hosting Plan',
		'fields' => array (
			array (
				'key' => 'field_549979cd8d01e',
				'label' => 'Price',
				'name' => 'price',
				'type' => 'text',
				'instructions' => 'Enter the price, including the currency.',
				'default_value' => '',
				'placeholder' => '$9',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_54997a0e8d01f',
				'label' => 'Tagline',
				'name' => 'tagline',
				'type' => 'text',
				'instructions' => 'Enter the text for sub-heading.',
				'default_value' => '',
				'placeholder' => 'Perfect For Your Website',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_54997a4d8d020',
				'label' => 'Color',
				'name' => 'color',
				'type' => 'color_picker',
				'instructions' => 'Select the default color for this plan.',
				'default_value' => '#3c9983',
			),
			array (
				'key' => 'field_54997abf8d021',
				'label' => 'Order Link',
				'name' => 'order_link',
				'type' => 'text',
				'instructions' => 'Link to the order page.',
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'post_type',
					'operator' => '==',
					'value' => 'plan',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'default',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_posts',
		'title' => 'Posts',
		'fields' => array (
			array (
				'key' => 'field_54a6bec87a57a',
				'label' => ' Styling',
				'name' => 'top__styling',
				'type' => 'true_false',
				'message' => '',
				'default_value' => 0,
			),
			array (
				'key' => 'field_54a2e31b82477',
				'label' => ' Background Color',
				'name' => '_background_color',
				'type' => 'color_picker',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
			),
			array (
				'key' => 'field_54a2e34482479',
				'label' => ' Background Image',
				'name' => '_background_image',
				'type' => 'image',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'save_format' => 'object',
				'preview_size' => 'thumbnail',
				'library' => 'all',
			),
			array (
				'key' => 'field_54a2e36c8247b',
				'label' => 'Background Repeat',
				'name' => 'background_repeat',
				'type' => 'select',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'repeat' => 'Repeat',
					'no-repeat' => 'No Repeat',
					'repeat-x' => 'Repeat Horizontal',
					'repeat-y' => 'Repeat Vertical',
				),
				'default_value' => 'repeat',
				'allow_null' => 0,
				'multiple' => 0,
			),
			array (
				'key' => 'field_54a2e3e782480',
				'label' => 'Background Position',
				'name' => 'background_position',
				'type' => 'select',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'Left Top' => 'Left Top',
					'Left Center' => 'Left Center',
					'Left Bottom' => 'Left Bottom',
					'Right Top' => 'Right Top',
					'Right Center' => 'Right Center',
					'Right Bottom' => 'Right Bottom',
					'Center Top' => 'Center Top',
					'Center Center' => 'Center Center',
					'Center Bottom' => 'Center Bottom',
				),
				'default_value' => 'Left Top',
				'allow_null' => 0,
				'multiple' => 0,
			),
			array (
				'key' => 'field_54a2e49382483',
				'label' => 'Background Scale',
				'name' => 'background_scale',
				'type' => 'select',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_54a2e1701f72e',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'None' => 'None',
					'contain' => 'Fit',
					'cover' => 'Fill',
				),
				'default_value' => 'None',
				'allow_null' => 0,
				'multiple' => 0,
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'post_type',
					'operator' => '==',
					'value' => 'post',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'default',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_testimonial',
		'title' => 'Testimonial',
		'fields' => array (
			array (
				'key' => 'field_549f3dc4ed08a',
				'label' => 'Website URL',
				'name' => 'website',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_549f3dd8ed08b',
				'label' => 'Website Name',
				'name' => 'name',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'post_type',
					'operator' => '==',
					'value' => 'testimonial',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
			array (
				array (
					'param' => 'post_type',
					'operator' => '==',
					'value' => 'client-website',
					'order_no' => 0,
					'group_no' => 1,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'no_box',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
}
