Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( function_exists('acf_add_local_field_group') ):
- acf_add_local_field_group(array(
- 'key' => 'group_5f6480d09ed3f',
- 'title' => 'Footer Settings',
- 'fields' => array(
- array(
- 'key' => 'field_5f6480dbf9583',
- 'label' => 'Social Media',
- 'name' => 'social_media',
- 'aria-label' => '',
- 'type' => 'repeater',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'collapsed' => 'field_5f6480e7f9584',
- 'min' => 0,
- 'max' => 0,
- 'layout' => 'table',
- 'button_label' => 'Add Social Media',
- 'rows_per_page' => 20,
- 'sub_fields' => array(
- array(
- 'key' => 'field_5f6480e7f9584',
- 'label' => 'Title',
- 'name' => 'title',
- 'aria-label' => '',
- 'type' => 'text',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'default_value' => '',
- 'placeholder' => '',
- 'prepend' => '',
- 'append' => '',
- 'maxlength' => '',
- 'parent_repeater' => 'field_5f6480dbf9583',
- ),
- array(
- 'key' => 'field_5f6480eff9585',
- 'label' => 'URL',
- 'name' => 'url',
- 'aria-label' => '',
- 'type' => 'url',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'default_value' => '',
- 'placeholder' => '',
- 'parent_repeater' => 'field_5f6480dbf9583',
- ),
- ),
- ),
- array(
- 'key' => 'field_5f6480f9f9586',
- 'label' => 'Offices',
- 'name' => 'offices',
- 'aria-label' => '',
- 'type' => 'repeater',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'collapsed' => 'field_5f648130f9587',
- 'min' => 0,
- 'max' => 0,
- 'layout' => 'table',
- 'button_label' => 'Add Office',
- 'rows_per_page' => 20,
- 'sub_fields' => array(
- array(
- 'key' => 'field_5f648130f9587',
- 'label' => 'Title',
- 'name' => 'title',
- 'aria-label' => '',
- 'type' => 'textarea',
- 'instructions' => '',
- 'required' => 1,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'default_value' => '',
- 'placeholder' => '',
- 'maxlength' => '',
- 'rows' => 2,
- 'new_lines' => 'br',
- 'parent_repeater' => 'field_5f6480f9f9586',
- ),
- array(
- 'key' => 'field_5f648171f9589',
- 'label' => 'Address',
- 'name' => 'address',
- 'aria-label' => '',
- 'type' => 'textarea',
- 'instructions' => '',
- 'required' => 1,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'default_value' => '',
- 'placeholder' => '',
- 'maxlength' => '',
- 'rows' => 2,
- 'new_lines' => 'br',
- 'parent_repeater' => 'field_5f6480f9f9586',
- ),
- array(
- 'key' => 'field_5f64818ff958a',
- 'label' => 'Contact Information',
- 'name' => 'contact_information',
- 'aria-label' => '',
- 'type' => 'textarea',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'default_value' => '',
- 'placeholder' => '',
- 'maxlength' => '',
- 'rows' => 2,
- 'new_lines' => 'br',
- 'parent_repeater' => 'field_5f6480f9f9586',
- ),
- ),
- ),
- array(
- 'key' => 'field_60e45da863086',
- 'label' => 'Logotypes Section',
- 'name' => 'logotypes_section',
- 'aria-label' => '',
- 'type' => 'group',
- 'instructions' => 'Logotypes that will be added above the footer on every page.',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'layout' => 'block',
- 'sub_fields' => array(
- array(
- 'key' => 'field_60e45e9263087',
- 'label' => 'Title',
- 'name' => 'logotypes_title',
- 'aria-label' => '',
- 'type' => 'text',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'default_value' => '',
- 'placeholder' => '',
- 'prepend' => '',
- 'append' => '',
- 'maxlength' => '',
- ),
- array(
- 'key' => 'field_60e45e9763088',
- 'label' => 'Logotypes',
- 'name' => 'logotypes',
- 'aria-label' => '',
- 'type' => 'repeater',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'collapsed' => 'field_60e45ea163089',
- 'min' => 0,
- 'max' => 0,
- 'layout' => 'table',
- 'button_label' => 'Add Row',
- 'rows_per_page' => 20,
- 'sub_fields' => array(
- array(
- 'key' => 'field_60e45ea163089',
- 'label' => 'Logotype',
- 'name' => 'logotype',
- 'aria-label' => '',
- 'type' => 'image',
- 'instructions' => 'Aspect Ratio should be 2:1 (for example 2560x1280 pixels).',
- 'required' => 1,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'return_format' => 'array',
- 'preview_size' => 'medium',
- 'library' => 'all',
- 'min_width' => '',
- 'min_height' => '',
- 'min_size' => '',
- 'max_width' => '',
- 'max_height' => '',
- 'max_size' => '',
- 'mime_types' => '',
- 'parent_repeater' => 'field_60e45e9763088',
- ),
- array(
- 'key' => 'field_60e45f286308a',
- 'label' => 'URL',
- 'name' => 'url',
- 'aria-label' => '',
- 'type' => 'url',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'default_value' => '',
- 'placeholder' => '',
- 'parent_repeater' => 'field_60e45e9763088',
- ),
- ),
- ),
- array(
- 'key' => 'field_60e5646036b52',
- 'label' => 'Column Amount',
- 'name' => 'column_amount',
- 'aria-label' => '',
- 'type' => 'select',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'choices' => array(
- 3 => '3',
- 4 => '4',
- 5 => '5',
- 6 => '6',
- ),
- 'default_value' => 6,
- 'allow_null' => 0,
- 'multiple' => 0,
- 'ui' => 0,
- 'return_format' => 'value',
- 'ajax' => 0,
- 'placeholder' => '',
- ),
- ),
- ),
- ),
- 'location' => array(
- array(
- array(
- 'param' => 'options_page',
- 'operator' => '==',
- 'value' => 'footer-settings',
- ),
- ),
- ),
- 'menu_order' => 0,
- 'position' => 'normal',
- 'style' => 'default',
- 'label_placement' => 'top',
- 'instruction_placement' => 'label',
- 'hide_on_screen' => '',
- 'active' => true,
- 'description' => '',
- 'show_in_rest' => false,
- ));
- acf_add_local_field_group(array(
- 'key' => 'group_5f634538994a0',
- 'title' => 'Modules',
- 'fields' => array(
- array(
- 'key' => 'field_5f63453b94f9d',
- 'label' => 'Columns',
- 'name' => 'columns',
- 'aria-label' => '',
- 'type' => 'text',
- 'instructions' => '',
- 'required' => false,
- 'conditional_logic' => false,
- 'wrapper' => array(
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 0 => false,
- 'default_value' => '',
- 'maxlength' => '',
- 'placeholder' => '',
- 'prepend' => '',
- 'append' => '',
- ),
- ),
- 'location' => array(
- array(
- array(
- 'param' => 'page_template',
- 'operator' => '==',
- 'value' => 'page-modules.php',
- ),
- ),
- ),
- 'menu_order' => 0,
- 'position' => 'normal',
- 'style' => 'default',
- 'label_placement' => 'top',
- 'instruction_placement' => 'label',
- 'hide_on_screen' => '',
- 'active' => true,
- 'description' => '',
- 'show_in_rest' => false,
- ));
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement