Created
March 23, 2015 21:44
-
-
Save projoomexperts/c97b123e4b7dcdf62306 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if( function_exists('register_field_group') ): | |
register_field_group(array ( | |
'key' => 'group_5510816f2274e', | |
'title' => 'Portfolio Options', | |
'fields' => array ( | |
array ( | |
'key' => 'field_5510818e3a75c', | |
'label' => 'Sub Title', | |
'name' => 'sub_title', | |
'prefix' => '', | |
'type' => 'text', | |
'instructions' => '', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'maxlength' => '', | |
'readonly' => 0, | |
'disabled' => 0, | |
), | |
array ( | |
'key' => 'field_551081a23a75d', | |
'label' => 'Slider Images', | |
'name' => 'slider_images', | |
'prefix' => '', | |
'type' => 'repeater', | |
'instructions' => '', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'min' => '', | |
'max' => '', | |
'layout' => 'table', | |
'button_label' => 'Add Row', | |
'sub_fields' => array ( | |
array ( | |
'key' => 'field_551081b83a75e', | |
'label' => 'Image', | |
'name' => 'image', | |
'prefix' => '', | |
'type' => 'image', | |
'instructions' => '', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'return_format' => 'array', | |
'preview_size' => 'thumbnail', | |
'library' => 'all', | |
'min_width' => '', | |
'min_height' => '', | |
'min_size' => '', | |
'max_width' => '', | |
'max_height' => '', | |
'max_size' => '', | |
'mime_types' => '', | |
), | |
), | |
), | |
array ( | |
'key' => 'field_551082163a760', | |
'label' => 'Background Image', | |
'name' => 'background_image', | |
'prefix' => '', | |
'type' => 'image', | |
'instructions' => '', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'return_format' => 'url', | |
'preview_size' => 'thumbnail', | |
'library' => 'all', | |
'min_width' => '', | |
'min_height' => '', | |
'min_size' => '', | |
'max_width' => '', | |
'max_height' => '', | |
'max_size' => '', | |
'mime_types' => '', | |
), | |
array ( | |
'key' => 'field_551082613a761', | |
'label' => 'Background Image Options', | |
'name' => 'background_image_options', | |
'prefix' => '', | |
'type' => 'checkbox', | |
'instructions' => '', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'choices' => array ( | |
1 => 'Blur Image', | |
2 => 'Set Cover', | |
3 => 'Set 100%', | |
), | |
'default_value' => array ( | |
'' => '', | |
), | |
'layout' => 'vertical', | |
), | |
array ( | |
'key' => 'field_551082b03a762', | |
'label' => 'Background Color', | |
'name' => 'background_color', | |
'prefix' => '', | |
'type' => 'color_picker', | |
'instructions' => '', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'default_value' => '', | |
), | |
array ( | |
'key' => 'field_551082d53a763', | |
'label' => 'Statistics', | |
'name' => 'statistics', | |
'prefix' => '', | |
'type' => 'repeater', | |
'instructions' => 'Maximum 4', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'min' => '', | |
'max' => 4, | |
'layout' => 'table', | |
'button_label' => 'Add Row', | |
'sub_fields' => array ( | |
array ( | |
'key' => 'field_551082f43a764', | |
'label' => 'Label', | |
'name' => 'label', | |
'prefix' => '', | |
'type' => 'text', | |
'instructions' => '', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'maxlength' => '', | |
'readonly' => 0, | |
'disabled' => 0, | |
), | |
array ( | |
'key' => 'field_551082fd3a765', | |
'label' => 'Value', | |
'name' => 'value', | |
'prefix' => '', | |
'type' => 'text', | |
'instructions' => '', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'maxlength' => '', | |
'readonly' => 0, | |
'disabled' => 0, | |
), | |
), | |
), | |
array ( | |
'key' => 'field_551083123a766', | |
'label' => 'Project Info', | |
'name' => 'project_info', | |
'prefix' => '', | |
'type' => 'repeater', | |
'instructions' => '', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'min' => '', | |
'max' => 4, | |
'layout' => 'table', | |
'button_label' => 'Add Row', | |
'sub_fields' => array ( | |
array ( | |
'key' => 'field_5510831e3a767', | |
'label' => 'Label', | |
'name' => 'label', | |
'prefix' => '', | |
'type' => 'text', | |
'instructions' => '', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'maxlength' => '', | |
'readonly' => 0, | |
'disabled' => 0, | |
), | |
array ( | |
'key' => 'field_5510833f3a768', | |
'label' => 'Value', | |
'name' => 'value', | |
'prefix' => '', | |
'type' => 'text', | |
'instructions' => '', | |
'required' => 0, | |
'conditional_logic' => 0, | |
'wrapper' => array ( | |
'width' => '', | |
'class' => '', | |
'id' => '', | |
), | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'maxlength' => '', | |
'readonly' => 0, | |
'disabled' => 0, | |
), | |
), | |
), | |
), | |
'location' => array ( | |
array ( | |
array ( | |
'param' => 'post_type', | |
'operator' => '==', | |
'value' => 'portfolio', | |
), | |
), | |
), | |
'menu_order' => 0, | |
'position' => 'normal', | |
'style' => 'seamless', | |
'label_placement' => 'top', | |
'instruction_placement' => 'label', | |
'hide_on_screen' => '', | |
)); | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment