|
| 1 | +<?php |
| 2 | +if (function_exists('acf_add_local_field_group')): |
| 3 | + acf_add_local_field_group([ |
| 4 | + 'key' => 'group_60b7eb71af170', |
| 5 | + 'title' => 'Groups and subgroups links', |
| 6 | + 'fields' => [ |
| 7 | + [ |
| 8 | + 'key' => 'field_60b7eb76bbdfb', |
| 9 | + 'label' => 'Categories', |
| 10 | + 'name' => 'group_categories', |
| 11 | + 'type' => 'repeater', |
| 12 | + 'instructions' => '', |
| 13 | + 'required' => 0, |
| 14 | + 'conditional_logic' => 0, |
| 15 | + 'wrapper' => [ |
| 16 | + 'width' => '', |
| 17 | + 'class' => '', |
| 18 | + 'id' => '', |
| 19 | + ], |
| 20 | + 'collapsed' => 'field_60b7eba3bbdfc', |
| 21 | + 'min' => 0, |
| 22 | + 'max' => 0, |
| 23 | + 'layout' => 'block', |
| 24 | + 'button_label' => 'Add category', |
| 25 | + 'sub_fields' => [ |
| 26 | + [ |
| 27 | + 'key' => 'field_60b7eba3bbdfc', |
| 28 | + 'label' => 'Category name', |
| 29 | + 'name' => 'group_category_name', |
| 30 | + 'type' => 'text', |
| 31 | + 'instructions' => '', |
| 32 | + 'required' => 1, |
| 33 | + 'conditional_logic' => 0, |
| 34 | + 'wrapper' => [ |
| 35 | + 'width' => '', |
| 36 | + 'class' => '', |
| 37 | + 'id' => '', |
| 38 | + ], |
| 39 | + 'default_value' => '', |
| 40 | + 'placeholder' => '', |
| 41 | + 'prepend' => '', |
| 42 | + 'append' => '', |
| 43 | + 'maxlength' => '', |
| 44 | + ], |
| 45 | + [ |
| 46 | + 'key' => 'field_60b7ebbfbbdfd', |
| 47 | + 'label' => 'Category icon', |
| 48 | + 'name' => 'group_category_icon', |
| 49 | + 'type' => 'image', |
| 50 | + 'instructions' => '', |
| 51 | + 'required' => 0, |
| 52 | + 'conditional_logic' => 0, |
| 53 | + 'wrapper' => [ |
| 54 | + 'width' => '', |
| 55 | + 'class' => '', |
| 56 | + 'id' => '', |
| 57 | + ], |
| 58 | + 'return_format' => 'url', |
| 59 | + 'preview_size' => 'medium', |
| 60 | + 'library' => 'all', |
| 61 | + 'min_width' => '', |
| 62 | + 'min_height' => '', |
| 63 | + 'min_size' => '', |
| 64 | + 'max_width' => '', |
| 65 | + 'max_height' => '', |
| 66 | + 'max_size' => '', |
| 67 | + 'mime_types' => '', |
| 68 | + ], |
| 69 | + [ |
| 70 | + 'key' => 'field_60b7ec42bbdfe', |
| 71 | + 'label' => 'Description', |
| 72 | + 'name' => 'group_content', |
| 73 | + 'type' => 'wysiwyg', |
| 74 | + 'instructions' => '', |
| 75 | + 'required' => 0, |
| 76 | + 'conditional_logic' => 0, |
| 77 | + 'wrapper' => [ |
| 78 | + 'width' => '', |
| 79 | + 'class' => '', |
| 80 | + 'id' => '', |
| 81 | + ], |
| 82 | + 'default_value' => '', |
| 83 | + 'tabs' => 'all', |
| 84 | + 'toolbar' => 'basic', |
| 85 | + 'media_upload' => 0, |
| 86 | + 'delay' => 0, |
| 87 | + ], |
| 88 | + [ |
| 89 | + 'key' => 'field_60b800ba18d02', |
| 90 | + 'label' => 'Links', |
| 91 | + 'name' => 'group_links', |
| 92 | + 'type' => 'repeater', |
| 93 | + 'instructions' => '', |
| 94 | + 'required' => 0, |
| 95 | + 'conditional_logic' => 0, |
| 96 | + 'wrapper' => [ |
| 97 | + 'width' => '', |
| 98 | + 'class' => '', |
| 99 | + 'id' => '', |
| 100 | + ], |
| 101 | + 'collapsed' => 'field_60b800e518d03', |
| 102 | + 'min' => 0, |
| 103 | + 'max' => 0, |
| 104 | + 'layout' => 'table', |
| 105 | + 'button_label' => 'Add link', |
| 106 | + 'sub_fields' => [ |
| 107 | + [ |
| 108 | + 'key' => 'field_60b800e518d03', |
| 109 | + 'label' => 'Link text', |
| 110 | + 'name' => 'title', |
| 111 | + 'type' => 'text', |
| 112 | + 'instructions' => '', |
| 113 | + 'required' => 1, |
| 114 | + 'conditional_logic' => 0, |
| 115 | + 'wrapper' => [ |
| 116 | + 'width' => '', |
| 117 | + 'class' => '', |
| 118 | + 'id' => '', |
| 119 | + ], |
| 120 | + 'default_value' => '', |
| 121 | + 'placeholder' => '', |
| 122 | + 'prepend' => '', |
| 123 | + 'append' => '', |
| 124 | + 'maxlength' => '', |
| 125 | + ], |
| 126 | + [ |
| 127 | + 'key' => 'field_60b8010218d04', |
| 128 | + 'label' => 'Link URL', |
| 129 | + 'name' => 'href', |
| 130 | + 'type' => 'url', |
| 131 | + 'instructions' => '', |
| 132 | + 'required' => 1, |
| 133 | + 'conditional_logic' => 0, |
| 134 | + 'wrapper' => [ |
| 135 | + 'width' => '', |
| 136 | + 'class' => '', |
| 137 | + 'id' => '', |
| 138 | + ], |
| 139 | + 'default_value' => '', |
| 140 | + 'placeholder' => '', |
| 141 | + ], |
| 142 | + ], |
| 143 | + ], |
| 144 | + ], |
| 145 | + ], |
| 146 | + ], |
| 147 | + 'location' => [ |
| 148 | + [ |
| 149 | + [ |
| 150 | + 'param' => 'post_template', |
| 151 | + 'operator' => '==', |
| 152 | + 'value' => 'page-groups.php', |
| 153 | + ], |
| 154 | + ], |
| 155 | + ], |
| 156 | + 'menu_order' => 0, |
| 157 | + 'position' => 'normal', |
| 158 | + 'style' => 'default', |
| 159 | + 'label_placement' => 'top', |
| 160 | + 'instruction_placement' => 'label', |
| 161 | + 'hide_on_screen' => '', |
| 162 | + 'active' => true, |
| 163 | + 'description' => '', |
| 164 | + ]); |
| 165 | +endif; |
0 commit comments