<?php
/**
 * Array that stores the custom fields for WooCommerce
 *
 * @package WordPress
 * @subpackage Edition
 * @since Edition 1.0
 */
if(function_exists("register_field_group"))
{
	register_field_group(array (
		'id' => 'acf_custom-category-page',
		'title' => 'Custom Category Page',
		'fields' => array (
			array (
				'key' => 'field_5322538bb4bf4',
				'label' => 'Custom Category Image',
				'name' => 'custom_category_image',
				'type' => 'image',
				'save_format' => 'url',
				'preview_size' => 'fullslideshow',
				'library' => 'all',
			),
			array (
				'key' => 'field_532253e233fde',
				'label' => 'Use Sections for your Category Page',
				'name' => 'cat_custom_page',
				'type' => 'radio',
				'instructions' => 'Create a custom page instead of using the default layout?',
				'choices' => array (
					'no' => 'No',
					'yes' => 'Yes',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'no',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53224f8c5339a',
				'label' => 'Sections',
				'name' => 'sections',
				'type' => 'relationship',
				'instructions' => 'Add sections to your category page instead of using the default page layout. If you need to, you can <a href="post-new.php?post_type=section">add more sections →</a>',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_532253e233fde',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'return_format' => 'object',
				'post_type' => array (
					0 => 'section',
				),
				'taxonomy' => array (
					0 => 'all',
				),
				'filters' => array (
					0 => 'search',
				),
				'result_elements' => array (
					0 => 'post_type',
					1 => 'post_title',
				),
				'max' => '',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'ef_taxonomy',
					'operator' => '!=',
					'value' => 'product_cat',
					'order_no' => 0,
					'group_no' => 0,
				),
				array (
					'param' => 'ef_taxonomy',
					'operator' => '!=',
					'value' => 'product_tag',
					'order_no' => 1,
					'group_no' => 0,
				),
				array (
					'param' => 'ef_taxonomy',
					'operator' => '!=',
					'value' => 'product_shipping_class',
					'order_no' => 2,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'no_box',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_custom-product-category-page',
		'title' => 'Custom Product Category Page',
		'fields' => array (
			array (
				'key' => 'field_553130c18057f',
				'label' => 'Use Sections for your Category Page',
				'name' => 'cat_custom_page',
				'type' => 'radio',
				'instructions' => 'Create a custom page instead of using the default layout?',
				'choices' => array (
					'no' => 'No',
					'yes' => 'Yes',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'no',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_553130eb80580',
				'label' => 'Sections',
				'name' => 'sections',
				'type' => 'relationship',
				'instructions' => 'Add sections to your category page instead of using the default page layout. If you need to, you can <a href="post-new.php?post_type=section">add more sections →</a>',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_553130c18057f',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'return_format' => 'object',
				'post_type' => array (
					0 => 'section',
				),
				'taxonomy' => array (
					0 => 'all',
				),
				'filters' => array (
					0 => 'search',
				),
				'result_elements' => array (
					0 => 'post_type',
					1 => 'post_title',
				),
				'max' => '',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'ef_taxonomy',
					'operator' => '==',
					'value' => 'product_cat',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
			array (
				array (
					'param' => 'ef_taxonomy',
					'operator' => '==',
					'value' => 'product_tag',
					'order_no' => 0,
					'group_no' => 1,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'no_box',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_featured',
		'title' => 'Featured',
		'fields' => array (
			array (
				'key' => 'field_532241d73814d',
				'label' => 'Featured',
				'name' => 'featured',
				'type' => 'radio',
				'instructions' => 'Select if you want to feature this post.',
				'choices' => array (
					'Yes' => 'Featured',
					'No' => 'Not Featured',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'No',
				'layout' => 'horizontal',
			),
		),
		'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_homepage-layout',
		'title' => 'Homepage Layout',
		'fields' => array (
			array (
				'key' => 'field_52f1423c30acf',
				'label' => 'Homepage Layout',
				'name' => 'homepage_layout',
				'type' => 'radio',
				'instructions' => 'Use the default layout of the page. Choose your options below. To create a custom layout using sections, choose "Custom Layout".',
				'required' => 1,
				'choices' => array (
					'default' => 'Default Layout',
					'custom' => 'Custom Layout',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'default',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_52f031017e83d',
				'label' => 'Sections',
				'name' => 'sections',
				'type' => 'relationship',
				'instructions' => 'To create a custom layout, <a href="post-new.php?post_type=section">create a new section</a> or select and order the sections from the list below. You can even drag and drop the order!',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'custom',
						),
					),
					'allorany' => 'all',
				),
				'return_format' => 'object',
				'post_type' => array (
					0 => 'section',
				),
				'taxonomy' => array (
					0 => 'all',
				),
				'filters' => array (
					0 => 'search',
				),
				'result_elements' => array (
					0 => 'post_type',
					1 => 'post_title',
				),
				'max' => '',
			),
			array (
				'key' => 'field_52f14bd36cc06',
				'label' => 'Edit Section',
				'name' => '',
				'type' => 'message',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'custom',
						),
					),
					'allorany' => 'all',
				),
				'message' => 'To edit an existing section, select the section you want to edit from your <a href="edit.php?post_type=section"> edit section screen</a>.',
			),
			array (
				'key' => 'field_5334b24437da6',
				'label' => 'Slideshow Section',
				'name' => '',
				'type' => 'tab',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
			),
			array (
				'key' => 'field_5334b21c37da5',
				'label' => 'Slideshow Posts',
				'name' => 'full_width_query_type',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'latest' => 'Latest',
					'featured' => 'Featured',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'featured',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_5334b27637da7',
				'label' => 'Slideshow Taxonomy',
				'name' => 'full_width_query',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'all' => 'All',
					'category' => 'Category',
					'tag' => 'Tag',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'all',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_5334b3443247e',
				'label' => 'Slideshow Category',
				'name' => 'full_width_category',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the categories you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_5334b27637da7',
							'operator' => '==',
							'value' => 'category',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 17, 10',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_5334bc7f6a2bb',
				'label' => 'Slideshow Tag',
				'name' => 'full_width_tag',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the tags you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_5334b27637da7',
							'operator' => '==',
							'value' => 'tag',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 17, 10',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_5340449302dfb',
				'label' => 'Grid Section',
				'name' => '',
				'type' => 'tab',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
			),
			array (
				'key' => 'field_53404806a8d2b',
				'label' => 'Grid Section Title',
				'name' => 'grid_section_title',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 'Latest Posts',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_5340481da8d2c',
				'label' => 'Grid Section Subtitle',
				'name' => 'grid_section_subtitle',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 'Latest posts from our site.',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_534043e42674c',
				'label' => 'Grid Posts',
				'name' => 'grid_query_type',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'latest' => 'Latest',
					'featured' => 'Featured',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'latest',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_534043f62674d',
				'label' => 'Grid Taxonomy',
				'name' => 'grid_query',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'all' => 'All',
					'category' => 'Category',
					'tag' => 'Tag',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'all',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_534044062674e',
				'label' => 'Grid Category',
				'name' => 'grid_category',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the categories you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_534043f62674d',
							'operator' => '==',
							'value' => 'category',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 17, 10',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_534044332674f',
				'label' => 'Grid Tag',
				'name' => 'grid_tag',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the tags you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_534043f62674d',
							'operator' => '==',
							'value' => 'tag',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 17, 10',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_53404957da3b3',
				'label' => 'Grid Sidebar',
				'name' => 'grid_sidebar',
				'type' => 'widget_field',
				'instructions' => 'Click widgets you want to include and drag and drop the order. You can add more available widgets in the <a href="widgets.php">Widgets Page</a>.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'sidebar' => 'grid-section-sidebar',
				'inherit_from' => '',
				'menu_location' => '',
			),
			array (
				'key' => 'field_53404a9a3fe16',
				'label' => 'Ad Section',
				'name' => '',
				'type' => 'tab',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
			),
			array (
				'key' => 'field_53404abc3fe17',
				'label' => 'Ad Type',
				'name' => 'ad_type',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'code' => 'Ad Code',
					'image' => 'Image Upload',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53404ae23fe18',
				'label' => 'Ad Code',
				'name' => 'ad_code',
				'type' => 'textarea',
				'instructions' => 'Copy and paste your ad code here. Recommended size: 728x90 (Leaderboard).',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_53404abc3fe17',
							'operator' => '==',
							'value' => 'code',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'maxlength' => '',
				'rows' => '',
				'formatting' => 'html',
			),
			array (
				'key' => 'field_53404b003fe19',
				'label' => 'Ad Image',
				'name' => 'ad_image',
				'type' => 'image',
				'instructions' => 'Recommended Size 728x90 (leaderboard).',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_53404abc3fe17',
							'operator' => '==',
							'value' => 'image',
						),
					),
					'allorany' => 'all',
				),
				'save_format' => 'object',
				'preview_size' => 'full',
				'library' => 'all',
			),
			array (
				'key' => 'field_53404b393fe1b',
				'label' => 'Ad URL',
				'name' => 'ad_url',
				'type' => 'text',
				'instructions' => 'Must begin with http://',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_53404abc3fe17',
							'operator' => '==',
							'value' => 'image',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_53404f5e19d80',
				'label' => 'Category Feature Section',
				'name' => '',
				'type' => 'tab',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
			),
			array (
				'key' => 'field_5361679de0077',
				'label' => 'Full Feature Type',
				'name' => 'full_feature_type',
				'type' => 'radio',
				'choices' => array (
					'category' => 'Link to Category',
					'tag' => 'Link to Tag',
					'page' => 'Link to Page',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_536169dae0079',
				'label' => 'Featured Tag',
				'name' => 'featured_tag_link',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the tags you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_5361679de0077',
							'operator' => '==',
							'value' => 'tag',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 10, 17',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_5361699ce0078',
				'label' => 'Featured Category',
				'name' => 'featured_category_link',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the categories you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_5361679de0077',
							'operator' => '==',
							'value' => 'category',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 17, 10',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_53617bbfbe1bd',
				'label' => 'Featured Page',
				'name' => 'featured_page_link',
				'type' => 'page_link',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_5361679de0077',
							'operator' => '==',
							'value' => 'page',
						),
					),
					'allorany' => 'all',
				),
				'post_type' => array (
					0 => 'post',
					1 => 'page',
				),
				'allow_null' => 0,
				'multiple' => 0,
			),
			array (
				'key' => 'field_53616a2c44a1e',
				'label' => 'Section Background Image',
				'name' => 'taxonomy_image',
				'type' => 'image',
				'save_format' => 'object',
				'preview_size' => 'fullslideshow',
				'library' => 'all',
			),
			array (
				'key' => 'field_53616a81d1fb2',
				'label' => 'Headline',
				'name' => 'taxonomy_headline',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_53616a99d1fb3',
				'label' => 'SubHeadline',
				'name' => 'taxonomy_subheadline',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_53616aaad1fb4',
				'label' => 'Button Text',
				'name' => 'taxonomy_button_text',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_536d2887f501a',
				'label' => 'Carousel Section',
				'name' => '',
				'type' => 'tab',
			),
			array (
				'key' => 'field_536d2b17d1c2d',
				'label' => 'Carousel Section Title',
				'name' => 'carousel_section_title',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 'Latest Posts',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_536d2b3fd1c2e',
				'label' => 'Carousel Section Subtitle',
				'name' => 'carousel_section_subtitle',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 'Latest posts from our site.',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_536d2b64d1c2f',
				'label' => 'Carousel Posts',
				'name' => 'carousel_query_type',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'latest' => 'Latest',
					'featured' => 'Featured',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'latest',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_536d2bafd1c30',
				'label' => 'Carousel Taxonomy',
				'name' => 'carousel_query',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'all' => 'All',
					'category' => 'Category',
					'tag' => 'Tag',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'all',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_536d2be1d1c31',
				'label' => 'Carousel Category',
				'name' => 'carousel_category',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the categories you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_536d2bafd1c30',
							'operator' => '==',
							'value' => 'category',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 17, 10',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_536d2c2bd1c32',
				'label' => 'Carousel Tag',
				'name' => 'carousel_tag',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the tags you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_536d2bafd1c30',
							'operator' => '==',
							'value' => 'tag',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 17, 10',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'page_template',
					'operator' => '==',
					'value' => 'template-home.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_page-options',
		'title' => 'Page Options',
		'fields' => array (
			array (
				'key' => 'field_5340850b1e711',
				'label' => 'Page Subtitle',
				'name' => 'page_subtitle',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_537d06380da4e',
				'label' => 'Breadcrumbs',
				'name' => 'breadcrumbs',
				'type' => 'radio',
				'instructions' => 'Show breadcrumbs on your page.',
				'required' => 1,
				'choices' => array (
					'on' => 'On',
					'off' => 'Off',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'on',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_537d067175da5',
				'label' => 'Right Area Content',
				'name' => 'right_area_content',
				'type' => 'wysiwyg',
				'instructions' => 'Enter what you want to appear in place of breadcrumbs in the right side of the title.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_537d06380da4e',
							'operator' => '==',
							'value' => 'off',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'toolbar' => 'full',
				'media_upload' => 'yes',
			),
			array (
				'key' => 'field_52f14031b6c42',
				'label' => 'Page Sections',
				'name' => 'sections',
				'type' => 'relationship',
				'instructions' => 'Select which sections you want to appear on your page. You can drag and drop the order to your liking!',
				'return_format' => 'object',
				'post_type' => array (
					0 => 'section',
				),
				'taxonomy' => array (
					0 => 'all',
				),
				'filters' => array (
					0 => 'search',
				),
				'result_elements' => array (
					0 => 'post_type',
					1 => 'post_title',
				),
				'max' => '',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'post_type',
					'operator' => '==',
					'value' => 'page',
					'order_no' => 0,
					'group_no' => 0,
				),
				array (
					'param' => 'page_template',
					'operator' => '!=',
					'value' => 'template-home.php',
					'order_no' => 1,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'default',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_post-options',
		'title' => 'Post Options',
		'fields' => array (
			array (
				'key' => 'field_53a464fe0fbc4',
				'label' => 'Media Post',
				'name' => 'media',
				'type' => 'textarea',
				'instructions' => 'Enter a <a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">supported url</a>, shortcode or embed code for Video, Audio or any other media. This will replace your featured image on the single page and change your layout to regular width. ',
				'default_value' => '',
				'placeholder' => 'Enter a URL, Shortcode, or Embed Code. Even add WordPress galleries!',
				'maxlength' => '',
				'rows' => 4,
				'formatting' => 'html',
			),
			array (
				'key' => 'field_530b7106ce6ec',
				'label' => 'Post Subtitle',
				'name' => 'post_subtitle',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => 'Enter an optional subtitle for your post. Great for SEO.',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_53234fe7b7dd6',
				'label' => 'Customize Post',
				'name' => 'customize',
				'type' => 'radio',
				'instructions' => 'Customize the items in this post?',
				'required' => 1,
				'choices' => array (
					1 => 'Yes',
					0 => 'No',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 0,
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53dfb9969a6b4',
				'label' => 'Post Layout',
				'name' => 'post_columns',
				'type' => 'radio',
				'instructions' => 'Select a layout for your post.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_53234fe7b7dd6',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					1 => 'Full Width without Sidebar',
					2 => 'Regular Width with Sidebar',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 2,
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53237e2077b2a',
				'label' => 'Image Size',
				'name' => 'featured_image',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_53234fe7b7dd6',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					1 => 'Full Width Image',
					0 => 'Regular Image',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53234c9e79355',
				'label' => 'Sharing',
				'name' => 'sharing',
				'type' => 'radio',
				'instructions' => 'Select if you want the sharing sidebar enabled. This will overwrite the theme options for this post.',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_53234fe7b7dd6',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					1 => 'On',
					0 => 'Off',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 1,
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53c0529dc5037',
				'label' => 'Author Box',
				'name' => 'author_box',
				'type' => 'radio',
				'instructions' => 'Select if you want and author box on your post enabled. This will overwrite the theme options for this post.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_53234fe7b7dd6',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					0 => 'Off',
					1 => 'On',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 0,
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53234cd779356',
				'label' => 'Related',
				'name' => 'related',
				'type' => 'radio',
				'instructions' => 'Select if you want related posts enabled. This will overwrite the theme options for this post.',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_53234fe7b7dd6',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					1 => 'On',
					0 => 'Off',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 1,
				'layout' => 'horizontal',
			),
		),
		'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_review',
		'title' => 'Review',
		'fields' => array (
			array (
				'key' => 'field_530b7892f8ab5',
				'label' => 'Review Post',
				'name' => 'review_post',
				'type' => 'radio',
				'instructions' => 'Is this a review post?',
				'choices' => array (
					'yes' => 'Yes',
					'no' => 'No',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'no',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_530b86b280cb3',
				'label' => 'Review Placement',
				'name' => 'review_placement',
				'type' => 'radio',
				'instructions' => 'Select where you want your review to show up.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'bottom' => 'Bottom',
					'top-bottom' => 'Top and Bottom',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_530b74a3b4508',
				'label' => 'Review Criteria',
				'name' => 'review_criteria',
				'type' => 'repeater',
				'instructions' => 'Click \'Add Review Criteria\' to add to your review. You can drag and drop the order to your liking.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'sub_fields' => array (
					array (
						'key' => 'field_530b74b9b4509',
						'label' => 'Criteria',
						'name' => 'criteria',
						'type' => 'text',
						'required' => 1,
						'column_width' => 50,
						'default_value' => '',
						'placeholder' => 'Enter your review criteria',
						'prepend' => '',
						'append' => '',
						'formatting' => 'html',
						'maxlength' => '',
					),
					array (
						'key' => 'field_530b74d9b450a',
						'label' => 'Rating',
						'name' => 'rating',
						'type' => 'number',
						'instructions' => 'Enter a number 0-10',
						'required' => 1,
						'column_width' => 50,
						'default_value' => '',
						'placeholder' => 'Enter a number 0-10',
						'prepend' => '',
						'append' => '',
						'min' => 0,
						'max' => 10,
						'step' => 1,
					),
				),
				'row_min' => '',
				'row_limit' => '',
				'layout' => 'row',
				'button_label' => 'Add Review Criteria',
			),
			array (
				'key' => 'field_530b7e9272afc',
				'label' => 'Review Title',
				'name' => 'review_title',
				'type' => 'text',
				'instructions' => 'One word summary of the review.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => 'i.e. Excellent',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_530b7ec672afd',
				'label' => 'Review Summary',
				'name' => 'review_summary',
				'type' => 'wysiwyg',
				'instructions' => 'A couple sentence summary of the review.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'toolbar' => 'basic',
				'media_upload' => 'yes',
			),
			array (
				'key' => 'field_530ce5efb6834',
				'label' => 'Breakdown Title',
				'name' => 'breakdown_title',
				'type' => 'text',
				'instructions' => 'Enter an optional title for your breakdown area.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => 'i.e. The Breakdown',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_530ce611b6835',
				'label' => 'Breakdown Post Title',
				'name' => 'breakdown_post_title',
				'type' => 'radio',
				'instructions' => 'Also add the post title to your breakdown text.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'yes' => 'Yes',
					'no' => 'No',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'horizontal',
			),
		),
		'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 (
				0 => 'custom_fields',
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_section-options',
		'title' => 'Section Options',
		'fields' => array (
			array (
				'key' => 'field_52f025326176c',
				'label' => 'Display Title',
				'name' => 'section_title',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => 'Optional',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f0255e6176d',
				'label' => 'Display Subtitle',
				'name' => 'section_subtitle',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => 'Optional',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f13460b852e',
				'label' => 'Choose a section type.',
				'name' => '',
				'type' => 'message',
				'message' => 'Select the type of section you want to create.',
			),
			array (
				'key' => 'field_52f047bc5b703',
				'label' => 'Section Type',
				'name' => 'section_type',
				'type' => 'radio',
				'required' => 1,
				'choices' => array (
					'section-slider' => 'Slideshow',
					'section-grid' => 'Grid',
					'section-regular' => 'Regular Posts',
					'section-full-post' => 'Full Post',
					'section-full' => 'Full Image Link',
					'section-ad' => 'Ad',
					'section-content' => 'Content',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'section-slider',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_52f02d5fce6be',
				'label' => 'Full Feature Type',
				'name' => 'full_feature_type',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'category' => 'Link to Category',
					'tag' => 'Link to Tag',
					'page' => 'Link to Post/Page',
					'external' => 'Custom Link',
					'nolink' => 'No Link',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_53a35ebb80843',
				'label' => 'Full Feature Link',
				'name' => 'full_feature_link',
				'type' => 'text',
				'instructions' => 'Enter a url for you link, starting with http://',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '==',
							'value' => 'external',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f02bdecc9a7',
				'label' => 'Full Width Slideshow Type',
				'name' => 'full_slide_type',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'full' => 'Tabbed Slideshow',
					'carousel' => 'Carousel Slideshow',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_5303bec1b5eac',
				'label' => 'Carousel Width',
				'name' => 'carousel_width',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
						array (
							'field' => 'field_52f02bdecc9a7',
							'operator' => '==',
							'value' => 'carousel',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'full' => 'Full Width',
					'fixed' => 'Fixed Width',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_5303bf20b5eae',
				'label' => 'Carousel Item Size',
				'name' => 'carousel_size',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
						array (
							'field' => 'field_52f02bdecc9a7',
							'operator' => '==',
							'value' => 'carousel',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'half' => 'Square',
					'big' => 'Letterbox',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_52f02ce51c98e',
				'label' => 'Grid Type',
				'name' => 'grid_type',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-grid',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'full' => 'Full Width Grid',
					'sidebar' => 'Grid With Sidebar',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_52f1333fcc005',
				'label' => 'Ad Type',
				'name' => 'ad_type',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-ad',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'code' => 'Ad Code',
					'image' => 'Image Upload',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_53613e00e565f',
				'label' => 'Type of Post',
				'name' => 'section_query_type',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-content',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-ad',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_536035f683f88',
							'operator' => '!=',
							'value' => 'products',
						),
						array (
							'field' => 'field_536035f683f88',
							'operator' => '!=',
							'value' => 'product-tag',
						),
						array (
							'field' => 'field_536035f683f88',
							'operator' => '!=',
							'value' => 'product-cat',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'latest' => 'Latest',
					'featured' => 'Featured',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'latest',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_536035f683f88',
				'label' => 'Posts to Show',
				'name' => 'section_query_tax',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-grid',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-regular',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full-post',
						),
					),
					'allorany' => 'any',
				),
				'choices' => array (
					'all' => 'All',
					'category' => 'Category',
					'tag' => 'Tag',
					'products' => 'Products',
					'product-cat' => 'Product Category',
					'product-tag' => 'Product Tag',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'all',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53614a406eb74',
				'label' => 'Category',
				'name' => 'section_category',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the categories you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_536035f683f88',
							'operator' => '==',
							'value' => 'category',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-content',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-ad',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-full',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 17, 10',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_5360364d4bc38',
				'label' => 'Tag',
				'name' => 'section_tag',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the tags you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_536035f683f88',
							'operator' => '==',
							'value' => 'tag',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-content',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-ad',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 17, 10',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_552eacd337ba8',
				'label' => 'Product Category',
				'name' => 'section_product_category',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the categories you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_536035f683f88',
							'operator' => '==',
							'value' => 'product-cat',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-full',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 10, 17',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_552eae0cb12ab',
				'label' => 'Product Tag',
				'name' => 'section_product_tag',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the tags you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_536035f683f88',
							'operator' => '==',
							'value' => 'product-tag',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-full',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 10, 17',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f025d26176f',
				'label' => 'Number of Posts',
				'name' => 'section_post_number',
				'type' => 'number',
				'instructions' => 'Enter the maximum number of posts you want on your page',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-content',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-ad',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-full-post',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 8,
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'min' => 4,
				'max' => '',
				'step' => '',
			),
			array (
				'key' => 'field_531e509c64601',
				'label' => 'Autoplay',
				'name' => 'autoplay',
				'type' => 'radio',
				'instructions' => 'Select if you want your slideshow to automatically play by default.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'autoplay' => 'Yes',
					'no-autoplay' => 'No',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'no-autoplay',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_531e52da70547',
				'label' => 'Autplay Delay',
				'name' => 'delay',
				'type' => 'number',
				'instructions' => 'Number of seconds before the next slide.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
						array (
							'field' => 'field_531e509c64601',
							'operator' => '==',
							'value' => 'autoplay',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 5,
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'min' => 1,
				'max' => '',
				'step' => '',
			),
			array (
				'key' => 'field_52f90441fab6f',
				'label' => 'Number of Posts',
				'name' => 'full_section_post_number',
				'type' => 'number',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full-post',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 5,
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'min' => '',
				'max' => '',
				'step' => '',
			),
			array (
				'key' => 'field_52f4202095ea0',
				'label' => 'Featured Category Link',
				'name' => 'featured_category_link',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the categories you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '==',
							'value' => 'category',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 10, 17',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f901296fe49',
				'label' => 'Featured Tag Link',
				'name' => 'featured_tag_link',
				'type' => 'text',
				'instructions' => 'Enter the IDs of the tags you want to show. ',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '==',
							'value' => 'tag',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '48, 10, 17',
				'prepend' => '',
				'append' => '',
				'formatting' => 'none',
				'maxlength' => '',
			),
			array (
				'key' => 'field_53616c968f0d0',
				'label' => 'Featured Page Link',
				'name' => 'featured_page_link',
				'type' => 'page_link',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '==',
							'value' => 'page',
						),
					),
					'allorany' => 'all',
				),
				'post_type' => array (
					0 => 'post',
					1 => 'page',
					2 => 'product',
				),
				'allow_null' => 0,
				'multiple' => 0,
			),
			array (
				'key' => 'field_52f02e3e77281',
				'label' => 'Section Background Image',
				'name' => 'taxonomy_image',
				'type' => 'image',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
					),
					'allorany' => 'all',
				),
				'save_format' => 'object',
				'preview_size' => 'fullslideshow',
				'library' => 'all',
			),
			array (
				'key' => 'field_52f1330fcc003',
				'label' => 'Ad Code',
				'name' => 'ad_code',
				'type' => 'textarea',
				'instructions' => 'Copy and paste your ad code here. Recommended size: 728x90 (Leaderboard).',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-ad',
						),
						array (
							'field' => 'field_52f1333fcc005',
							'operator' => '==',
							'value' => 'code',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'maxlength' => '',
				'rows' => '',
				'formatting' => 'html',
			),
			array (
				'key' => 'field_52f13330cc004',
				'label' => 'Ad Image',
				'name' => 'ad_image',
				'type' => 'image',
				'instructions' => 'Recommended Size 728x90 (leaderboard).',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-ad',
						),
						array (
							'field' => 'field_52f1333fcc005',
							'operator' => '==',
							'value' => 'image',
						),
					),
					'allorany' => 'all',
				),
				'save_format' => 'object',
				'preview_size' => 'full',
				'library' => 'all',
			),
			array (
				'key' => 'field_52f13397cc008',
				'label' => 'Ad Url',
				'name' => 'ad_url',
				'type' => 'text',
				'instructions' => 'Must begin with http://',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-ad',
						),
						array (
							'field' => 'field_52f1333fcc005',
							'operator' => '==',
							'value' => 'image',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f13bc8f15da',
				'label' => 'Content Layout',
				'name' => 'content_layout',
				'type' => 'radio',
				'instructions' => 'Choose your content layout',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-content',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'sidebar' => 'Sidebar',
					'full' => 'Full Width',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'sidebar',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_52f13498511aa',
				'label' => 'Section Content',
				'name' => 'section_content',
				'type' => 'wysiwyg',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-content',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'toolbar' => 'full',
				'media_upload' => 'yes',
			),
			array (
				'key' => 'field_52f525ce632de',
				'label' => 'Ajax Pagination',
				'name' => 'section_pagination',
				'type' => 'radio',
				'instructions' => 'Show or hide the pagination of the section.',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-grid',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-regular',
						),
					),
					'allorany' => 'any',
				),
				'choices' => array (
					'on' => 'On',
					'off' => 'Off',
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'on',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_52f13bb7f15d9',
				'label' => 'Content Sidebar',
				'name' => 'content_sidebar',
				'type' => 'widget_field',
				'instructions' => 'Click widgets you want to include and drag and drop the order. You can add more available widgets in the <a href="widgets.php">Widgets Page</a>.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-content',
						),
						array (
							'field' => 'field_52f13bc8f15da',
							'operator' => '==',
							'value' => 'sidebar',
						),
					),
					'allorany' => 'all',
				),
				'sidebar' => 'grid-section-sidebar',
				'inherit_from' => '',
				'menu_location' => '',
			),
			array (
				'key' => 'field_5304f6cb3f8f0',
				'label' => 'Posts Section Sidebar',
				'name' => 'posts_section_sidebar',
				'type' => 'widget_field',
				'instructions' => 'Click widgets you want to include and drag and drop the order. You can add more available widgets in the <a href="widgets.php">Widgets Page</a>.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-regular',
						),
					),
					'allorany' => 'all',
				),
				'sidebar' => 'grid-section-sidebar',
				'inherit_from' => '',
				'menu_location' => '',
			),
			array (
				'key' => 'field_52f12f8e8f3b4',
				'label' => 'Grid Sidebar',
				'name' => 'grid_sidebar',
				'type' => 'widget_field',
				'instructions' => 'Click widgets you want to include and drag and drop the order. You can add more available widgets in the <a href="widgets.php">Widgets Page</a>.',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-grid',
						),
						array (
							'field' => 'field_52f02ce51c98e',
							'operator' => '==',
							'value' => 'sidebar',
						),
					),
					'allorany' => 'all',
				),
				'sidebar' => 'grid-section-sidebar',
				'inherit_from' => '',
				'menu_location' => '',
			),
			array (
				'key' => 'field_52f9121edc1bd',
				'label' => 'Headline',
				'name' => 'taxonomy_headline',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '!=',
							'value' => 'post',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f9124bc7484',
				'label' => 'SubHeadline',
				'name' => 'taxonomy_subheadline',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '!=',
							'value' => 'post',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f91260c7485',
				'label' => 'Button Text',
				'name' => 'taxonomy_button_text',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '!=',
							'value' => 'post',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'post_type',
					'operator' => '==',
					'value' => 'section',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'no_box',
			'hide_on_screen' => array (
				0 => 'permalink',
				1 => 'the_content',
				2 => 'excerpt',
				3 => 'custom_fields',
				4 => 'discussion',
				5 => 'comments',
				6 => 'revisions',
				7 => 'author',
				8 => 'format',
				9 => 'featured_image',
				10 => 'categories',
				11 => 'tags',
				12 => 'send-trackbacks',
			),
		),
		'menu_order' => 0,
	));
}
