From d4ed7cd8afb46539f88ed3e8e94c0600914a18ad Mon Sep 17 00:00:00 2001 From: andrewmbacon Date: Fri, 7 Aug 2015 12:55:08 -0400 Subject: [PATCH] Adding export of people page settings. --- acf-export.php | 135 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 134 insertions(+), 1 deletion(-) diff --git a/acf-export.php b/acf-export.php index 0c565ce..34d0a2f 100644 --- a/acf-export.php +++ b/acf-export.php @@ -1,4 +1,137 @@ - '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 (