223 lines
5.0 KiB
PHP
223 lines
5.0 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
if( function_exists('acf_add_local_field_group') ):
|
||
|
|
|
||
|
|
acf_add_local_field_group(array(
|
||
|
|
'key' => 'group_65d513bb359a3',
|
||
|
|
'title' => 'Рекламный формат',
|
||
|
|
'fields' => array(
|
||
|
|
array(
|
||
|
|
'key' => 'field-65d50ea759ef7',
|
||
|
|
'label' => 'Документы',
|
||
|
|
'name' => 'documents',
|
||
|
|
'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-65d511ba47bd7',
|
||
|
|
'label' => 'Документ',
|
||
|
|
'name' => 'document',
|
||
|
|
'aria-label' => '',
|
||
|
|
'type' => 'file',
|
||
|
|
'instructions' => '',
|
||
|
|
'required' => 0,
|
||
|
|
'conditional_logic' => 0,
|
||
|
|
'wrapper' => array(
|
||
|
|
'width' => '',
|
||
|
|
'class' => '',
|
||
|
|
'id' => '',
|
||
|
|
),
|
||
|
|
'relevanssi_exclude' => 0,
|
||
|
|
'uploader' => '',
|
||
|
|
'return_format' => 'array',
|
||
|
|
'min_size' => '',
|
||
|
|
'max_size' => '',
|
||
|
|
'mime_types' => '',
|
||
|
|
'library' => 'all',
|
||
|
|
'parent_repeater' => 'field-65d50ea759ef7',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
array(
|
||
|
|
'key' => 'field-65d512380557a',
|
||
|
|
'label' => 'Контакты',
|
||
|
|
'name' => 'contacts',
|
||
|
|
'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-65d512f31f6e4',
|
||
|
|
'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-65d512380557a',
|
||
|
|
),
|
||
|
|
array(
|
||
|
|
'key' => 'field-65d512fd1f6e5',
|
||
|
|
'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-65d512380557a',
|
||
|
|
),
|
||
|
|
array(
|
||
|
|
'key' => 'field-65d513031f6e6',
|
||
|
|
'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-65d512380557a',
|
||
|
|
),
|
||
|
|
array(
|
||
|
|
'key' => 'field-65d5130d1f6e7',
|
||
|
|
'label' => 'Телефон',
|
||
|
|
'name' => 'phone',
|
||
|
|
'aria-label' => '',
|
||
|
|
'type' => 'text',
|
||
|
|
'instructions' => '',
|
||
|
|
'required' => 0,
|
||
|
|
'conditional_logic' => 0,
|
||
|
|
'wrapper' => array(
|
||
|
|
'width' => '',
|
||
|
|
'class' => '',
|
||
|
|
'id' => '',
|
||
|
|
),
|
||
|
|
'default_value' => '',
|
||
|
|
'maxlength' => '',
|
||
|
|
'placeholder' => '',
|
||
|
|
'prepend' => '',
|
||
|
|
'append' => '',
|
||
|
|
'parent_repeater' => 'field-65d512380557a',
|
||
|
|
),
|
||
|
|
array(
|
||
|
|
'key' => 'field-65d513131f6e8',
|
||
|
|
'label' => 'Email',
|
||
|
|
'name' => 'email',
|
||
|
|
'aria-label' => '',
|
||
|
|
'type' => 'text',
|
||
|
|
'instructions' => '',
|
||
|
|
'required' => 0,
|
||
|
|
'conditional_logic' => 0,
|
||
|
|
'wrapper' => array(
|
||
|
|
'width' => '',
|
||
|
|
'class' => '',
|
||
|
|
'id' => '',
|
||
|
|
),
|
||
|
|
'default_value' => '',
|
||
|
|
'maxlength' => '',
|
||
|
|
'placeholder' => '',
|
||
|
|
'prepend' => '',
|
||
|
|
'append' => '',
|
||
|
|
'parent_repeater' => 'field-65d512380557a',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
'location' => array(
|
||
|
|
array(
|
||
|
|
array(
|
||
|
|
'param' => 'post_type',
|
||
|
|
'operator' => '==',
|
||
|
|
'value' => 'advertiser',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
'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' => 1709227831,
|
||
|
|
));
|
||
|
|
|
||
|
|
endif;
|