Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Adding export of people page settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Aug 7, 2015
1 parent f31c788 commit d4ed7cd
Showing 1 changed file with 134 additions and 1 deletion.
135 changes: 134 additions & 1 deletion acf-export.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,137 @@
<?php
<?php
//adds boxes on the user-people page template

if(function_exists("register_field_group"))
{
register_field_group(array (
'id' => 'acf_people-page',
'title' => 'People Page',
'fields' => array (
array (
'key' => 'field_55c37831dccb9',
'label' => 'Layout',
'name' => 'layout',
'type' => 'select',
'required' => 1,
'choices' => array (
'grid' => 'Grid',
'table' => 'Table',
'' => '',
),
'default_value' => 'grid',
'allow_null' => 0,
'multiple' => 0,
),
array (
'key' => 'field_55c3a7424451c',
'label' => 'Specific People',
'name' => 'specific_people',
'type' => 'relationship',
'instructions' => 'Choose specific people to display. Leave right side blank to display all People.',
'return_format' => 'object',
'post_type' => array (
0 => 'person',
),
'taxonomy' => array (
0 => 'all',
),
'filters' => array (
0 => 'search',
),
'result_elements' => array (
0 => 'featured_image',
1 => 'post_type',
2 => 'post_title',
),
'max' => '',
),
array (
'key' => 'field_55c3a8d1071bf',
'label' => 'Specific Groups',
'name' => 'specific_groups',
'type' => 'taxonomy',
'instructions' => 'Selecting one or more groups will only display people that belong to those groups. ',
'taxonomy' => 'group',
'field_type' => 'checkbox',
'allow_null' => 0,
'load_save_terms' => 0,
'return_format' => 'id',
'multiple' => 0,
),
array (
'key' => 'field_55c3a91e071c0',
'label' => 'Specific Tags',
'name' => 'specific_tags',
'type' => 'taxonomy',
'instructions' => 'Selecting one or more tags will only display people with those tags. ',
'taxonomy' => 'persontag',
'field_type' => 'checkbox',
'allow_null' => 0,
'load_save_terms' => 0,
'return_format' => 'id',
'multiple' => 0,
),
array (
'key' => 'field_55c3ab294705d',
'label' => 'Break into Groups',
'name' => 'break_into_groups',
'type' => 'true_false',
'instructions' => 'When selected, people will be displayed in multiple lists, grids, or tables based on their group. ',
'message' => '',
'default_value' => 0,
),
array (
'key' => 'field_55c3abb4e4e6b',
'label' => 'Information to Display',
'name' => 'information_to_display',
'type' => 'checkbox',
'instructions' => 'All checked fields will display in the output. ',
'choices' => array (
'photo' => 'Photo',
'first_name' => 'First Name',
'middle_name' => 'Middle Name',
'last_name' => 'Last Name',
'title' => 'Title',
'about' => 'About',
'file' => 'Link to File',
'email' => 'Email',
'phone' => 'Phone',
'phone_(alternate)' => 'Phone (Alternate)',
'fax' => 'Fax',
'mailing_address' => 'Mailing Address',
'office_location' => 'Office Location',
'office_hours' => 'Office Hours',
'courses' => 'Courses',
),
'default_value' => 'photo
first
last
email',
'layout' => 'vertical',
),
),
'location' => array (
array (
array (
'param' => 'page_template',
'operator' => '==',
'value' => 'user-people.php',
'order_no' => 0,
'group_no' => 0,
),
),
),
'options' => array (
'position' => 'normal',
'layout' => 'default',
'hide_on_screen' => array (
),
),
'menu_order' => 0,
));
}

//adds boxes to the "People" pages.
if(function_exists("register_field_group"))
{
register_field_group(array (
Expand Down

0 comments on commit d4ed7cd

Please sign in to comment.