Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<?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_55c37831dabc9',
'label' => 'Number of people Per Row',
'name' => 'persons_per_row',
'type' => 'select',
'required' => 1,
'choices' => array (
'2' => '2',
'3' => '3',
'4' => '4',
'6' => '6',
'' => '',
),
'default_value' => '4',
'allow_null' => 0,
'multiple' => 0,
),
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' => 'id',
'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',
'department' => 'Department',
'about' => 'About',
'file' => 'Link to File',
//'filelabel' => 'File Label',
'email' => 'Email',
'phone' => 'Phone',
'phone_(alternate)' => 'Phone (Alternate)',
'fax' => 'Fax',
'mailing_address' => 'Mailing Address',
'office_location' => 'Office Location',
'campus' => 'Campus',
'office_hours' => 'Office Hours',
'courses' => 'Courses',
'url' => 'Link',
),
'default_value' => array('photo','first_name','last_name','email'),
'layout' => 'vertical',
),
),
'location' => array (
array (
array (
'param' => 'page_template',
'operator' => '==',
'value' => 'user-people.php',
'order_no' => 0,
'group_no' => 0,
),
),
array (
array (
'param' => 'widget',
'operator' => '==',
'value' => 'uc_people_widget',
),
),
),
'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 (
'id' => 'acf_person',
'title' => 'Person',
'fields' => array (
array (
'key' => 'field_first_name',
'label' => 'First Name',
'name' => 'first_name',
'type' => 'text',
'required' => 1,
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_middle_name',
'label' => 'Middle Name',
'name' => 'middle_name',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_last_name',
'label' => 'Last Name',
'name' => 'last_name',
'type' => 'text',
'required' => 1,
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_title',
'label' => 'Title',
'name' => 'title',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_department',
'label' => 'Department',
'name' => 'department',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_about',
'label' => 'About',
'name' => 'about',
'type' => 'wysiwyg',
'default_value' => '',
'toolbar' => 'full',
'media_upload' => 'yes',
),
array (
'key' => 'field_file',
'label' => 'File',
'name' => 'file',
'type' => 'file',
'save_format' => 'object',
'library' => 'all',
),
array (
'key' => 'field_filelabel',
'label' => 'File Label',
'name' => 'filelabel',
'type' => 'text',
'default_value' => 'File',
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array (
'key' => 'field_email',
'label' => 'Email',
'name' => 'email',
'type' => 'email',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array (
'key' => 'field_phone',
'label' => 'Phone',
'name' => 'phone',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_phone_(alternate)',
'label' => 'Phone (alternate)',
'name' => 'phone_(alternate)',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_fax',
'label' => 'Fax',
'name' => 'fax',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_mailing_address',
'label' => 'Mailing Address',
'name' => 'mailing_address',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_office_location',
'label' => 'Office Location',
'name' => 'office_location',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_campus',
'label' => 'Campus',
'name' => 'campus',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_office_hours',
'label' => 'Office Hours',
'name' => 'office_hours',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_courses',
'label' => 'Courses',
'name' => 'courses',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_url',
'label' => 'Link',
'name' => 'url',
'type' => 'url',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
),
array (
'key' => 'field_external_url',
'label' => 'Profile Redirection Link',
'name' => 'external_url',
'type' => 'url',
'default_value' => '',
'placeholder' => 'e.g. http://google.com (The profile page will redirect to the link entered here)',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
),
'location' => array (
array (
array (
'param' => 'post_type',
'operator' => '==',
'value' => 'person',
'order_no' => 0,
'group_no' => 0,
),
),
),
'options' => array (
'position' => 'normal',
'layout' => 'no_box',
'hide_on_screen' => array (
),
),
'menu_order' => 0,
));
}
?>