133 lines
3.0 KiB
PHP
133 lines
3.0 KiB
PHP
|
|
<?php
|
|||
|
|
|
|||
|
|
if( function_exists('acf_add_local_field_group') ):
|
|||
|
|
|
|||
|
|
acf_add_local_field_group(array(
|
|||
|
|
'key' => 'group_65d5e33ea5255',
|
|||
|
|
'title' => 'Редакция ( Для страницы о проекте )',
|
|||
|
|
'fields' => array(
|
|||
|
|
array(
|
|||
|
|
'key' => 'field_65d5e33eb8886',
|
|||
|
|
'label' => 'Люди редакции',
|
|||
|
|
'name' => 'editorial-people',
|
|||
|
|
'aria-label' => '',
|
|||
|
|
'type' => 'repeater',
|
|||
|
|
'instructions' => '',
|
|||
|
|
'required' => 0,
|
|||
|
|
'conditional_logic' => 0,
|
|||
|
|
'wrapper' => array(
|
|||
|
|
'width' => '',
|
|||
|
|
'class' => '',
|
|||
|
|
'id' => '',
|
|||
|
|
),
|
|||
|
|
'acfe_repeater_stylised_button' => 0,
|
|||
|
|
'layout' => 'table',
|
|||
|
|
'pagination' => 0,
|
|||
|
|
'min' => 0,
|
|||
|
|
'max' => 0,
|
|||
|
|
'collapsed' => '',
|
|||
|
|
'button_label' => 'Добавить',
|
|||
|
|
'rows_per_page' => 20,
|
|||
|
|
'sub_fields' => array(
|
|||
|
|
array(
|
|||
|
|
'key' => 'field_65d5e41fb8889',
|
|||
|
|
'label' => 'Изображение',
|
|||
|
|
'name' => 'image',
|
|||
|
|
'aria-label' => '',
|
|||
|
|
'type' => 'image',
|
|||
|
|
'instructions' => '',
|
|||
|
|
'required' => 0,
|
|||
|
|
'conditional_logic' => 0,
|
|||
|
|
'wrapper' => array(
|
|||
|
|
'width' => '',
|
|||
|
|
'class' => '',
|
|||
|
|
'id' => '',
|
|||
|
|
),
|
|||
|
|
'uploader' => '',
|
|||
|
|
'return_format' => 'array',
|
|||
|
|
'acfe_thumbnail' => 0,
|
|||
|
|
'min_width' => '',
|
|||
|
|
'min_height' => '',
|
|||
|
|
'min_size' => '',
|
|||
|
|
'max_width' => '',
|
|||
|
|
'max_height' => '',
|
|||
|
|
'max_size' => '',
|
|||
|
|
'mime_types' => '',
|
|||
|
|
'preview_size' => 'medium',
|
|||
|
|
'library' => 'all',
|
|||
|
|
'parent_repeater' => 'field_65d5e33eb8886',
|
|||
|
|
),
|
|||
|
|
array(
|
|||
|
|
'key' => 'field_65d5e3e9b8887',
|
|||
|
|
'label' => 'ФИО',
|
|||
|
|
'name' => 'name',
|
|||
|
|
'aria-label' => '',
|
|||
|
|
'type' => 'text',
|
|||
|
|
'instructions' => '',
|
|||
|
|
'required' => 0,
|
|||
|
|
'conditional_logic' => 0,
|
|||
|
|
'wrapper' => array(
|
|||
|
|
'width' => '',
|
|||
|
|
'class' => '',
|
|||
|
|
'id' => '',
|
|||
|
|
),
|
|||
|
|
'default_value' => '',
|
|||
|
|
'maxlength' => '',
|
|||
|
|
'placeholder' => '',
|
|||
|
|
'prepend' => '',
|
|||
|
|
'append' => '',
|
|||
|
|
'parent_repeater' => 'field_65d5e33eb8886',
|
|||
|
|
),
|
|||
|
|
array(
|
|||
|
|
'key' => 'field_65d5e40db8888',
|
|||
|
|
'label' => 'Должность',
|
|||
|
|
'name' => 'position',
|
|||
|
|
'aria-label' => '',
|
|||
|
|
'type' => 'text',
|
|||
|
|
'instructions' => '',
|
|||
|
|
'required' => 0,
|
|||
|
|
'conditional_logic' => 0,
|
|||
|
|
'wrapper' => array(
|
|||
|
|
'width' => '',
|
|||
|
|
'class' => '',
|
|||
|
|
'id' => '',
|
|||
|
|
),
|
|||
|
|
'default_value' => '',
|
|||
|
|
'maxlength' => '',
|
|||
|
|
'placeholder' => '',
|
|||
|
|
'prepend' => '',
|
|||
|
|
'append' => '',
|
|||
|
|
'parent_repeater' => 'field_65d5e33eb8886',
|
|||
|
|
),
|
|||
|
|
),
|
|||
|
|
),
|
|||
|
|
),
|
|||
|
|
'location' => array(
|
|||
|
|
array(
|
|||
|
|
array(
|
|||
|
|
'param' => 'post_type',
|
|||
|
|
'operator' => '==',
|
|||
|
|
'value' => 'page',
|
|||
|
|
),
|
|||
|
|
),
|
|||
|
|
),
|
|||
|
|
'menu_order' => 0,
|
|||
|
|
'position' => 'normal',
|
|||
|
|
'style' => 'default',
|
|||
|
|
'label_placement' => 'left',
|
|||
|
|
'instruction_placement' => 'label',
|
|||
|
|
'hide_on_screen' => '',
|
|||
|
|
'active' => true,
|
|||
|
|
'description' => '',
|
|||
|
|
'show_in_rest' => 0,
|
|||
|
|
'acfe_display_title' => '',
|
|||
|
|
'acfe_autosync' => array(
|
|||
|
|
0 => 'php',
|
|||
|
|
),
|
|||
|
|
'acfe_form' => 0,
|
|||
|
|
'acfe_meta' => '',
|
|||
|
|
'acfe_note' => '',
|
|||
|
|
'modified' => 1708516426,
|
|||
|
|
));
|
|||
|
|
|
|||
|
|
endif;
|