Created
April 20, 2015 06:29
-
-
Save michaelschofield/26ace241cc9862214b63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(function_exists("register_field_group")) | |
{ | |
register_field_group(array ( | |
'id' => 'acf_advwp-events', | |
'title' => 'ADVWP Events', | |
'fields' => array ( | |
array ( | |
'key' => 'field_5519b60c4a3fe', | |
'label' => 'Scheduling Options', | |
'name' => 'advwp_options', | |
'type' => 'checkbox', | |
'choices' => array ( | |
'allday' => 'An all-day event', | |
'multiday' => 'A multi-day event', | |
), | |
'default_value' => '', | |
'layout' => 'vertical', | |
), | |
array ( | |
'key' => 'field_5519ba434a3ff', | |
'label' => 'Day of Event', | |
'name' => 'advwp_start_date', | |
'type' => 'date_picker', | |
'date_format' => 'yymmdd', | |
'display_format' => 'mm/dd/yyyy', | |
'first_day' => 0, | |
), | |
array ( | |
'key' => 'field_5519bbb94a400', | |
'label' => 'Start Time', | |
'name' => 'advwp_start_time', | |
'type' => 'date_time_picker', | |
'conditional_logic' => array ( | |
'status' => 1, | |
'rules' => array ( | |
array ( | |
'field' => 'field_5519b60c4a3fe', | |
'operator' => '!=', | |
'value' => 'allday', | |
), | |
), | |
'allorany' => 'all', | |
), | |
'show_date' => 'false', | |
'date_format' => '', | |
'time_format' => 'H:mm', | |
'show_week_number' => 'false', | |
'picker' => 'slider', | |
'save_as_timestamp' => 'false', | |
'get_as_timestamp' => 'false', | |
), | |
array ( | |
'key' => 'field_5519c426e1646', | |
'label' => 'End Time', | |
'name' => 'advwp_end_time', | |
'type' => 'date_time_picker', | |
'conditional_logic' => array ( | |
'status' => 1, | |
'rules' => array ( | |
array ( | |
'field' => 'field_5519b60c4a3fe', | |
'operator' => '!=', | |
'value' => 'allday', | |
), | |
), | |
'allorany' => 'all', | |
), | |
'show_date' => 'false', | |
'date_format' => '', | |
'time_format' => 'H:mm', | |
'show_week_number' => 'false', | |
'picker' => 'slider', | |
'save_as_timestamp' => 'false', | |
'get_as_timestamp' => 'false', | |
), | |
array ( | |
'key' => 'field_5519c4c6e1647', | |
'label' => 'End Day', | |
'name' => 'advwp_end_date', | |
'type' => 'date_picker', | |
'conditional_logic' => array ( | |
'status' => 1, | |
'rules' => array ( | |
array ( | |
'field' => 'field_5519b60c4a3fe', | |
'operator' => '==', | |
'value' => 'multiday', | |
), | |
), | |
'allorany' => 'all', | |
), | |
'date_format' => 'yymmdd', | |
'display_format' => 'dd/mm/yy', | |
'first_day' => 1, | |
), | |
), | |
'location' => array ( | |
array ( | |
array ( | |
'param' => 'post_type', | |
'operator' => '==', | |
'value' => 'event', | |
'order_no' => 0, | |
'group_no' => 0, | |
), | |
), | |
), | |
'options' => array ( | |
'position' => 'acf_after_title', | |
'layout' => 'default', | |
'hide_on_screen' => array ( | |
), | |
), | |
'menu_order' => 0, | |
)); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment