"acf-field-object acf-field-object-{$field['type']}", 'data-id' => $field['ID'], 'data-key' => $field['key'], 'data-type' => $field['type'], ); $meta = array( 'ID' => $field['ID'], 'key' => $field['key'], 'parent' => $field['parent'], 'menu_order' => $field['menu_order'], 'save' => '', ); // replace $atts['class'] = str_replace('_', '-', $atts['class']); ?>
>
$v ): acf_hidden_input(array( 'class' => "input-{$k}", 'name' => "{$field['prefix']}[{$k}]", 'value' => $v )); endforeach; ?>
__('Field Label','acf'), 'instructions' => __('This is the name which will appear on the EDIT page','acf'), 'required' => 1, 'type' => 'text', 'name' => 'label', 'prefix' => $field['prefix'], 'value' => $field['label'], 'class' => 'field-label' ), 'tr'); // name acf_render_field_wrap(array( 'label' => __('Field Name','acf'), 'instructions' => __('Single word, no spaces. Underscores and dashes allowed','acf'), 'required' => 1, 'type' => 'text', 'name' => 'name', 'prefix' => $field['prefix'], 'value' => $field['name'], 'class' => 'field-name' ), 'tr'); // type acf_render_field_wrap(array( 'label' => __('Field Type','acf'), 'instructions' => '', 'required' => 1, 'type' => 'select', 'name' => 'type', 'prefix' => $field['prefix'], 'value' => $field['type'], 'choices' => acf_get_field_types(), 'class' => 'field-type' ), 'tr'); // instructions acf_render_field_wrap(array( 'label' => __('Instructions','acf'), 'instructions' => __('Instructions for authors. Shown when submitting data','acf'), 'type' => 'textarea', 'name' => 'instructions', 'prefix' => $field['prefix'], 'value' => $field['instructions'], 'rows' => 5 ), 'tr'); // required acf_render_field_wrap(array( 'label' => __('Required?','acf'), 'instructions' => '', 'type' => 'radio', 'name' => 'required', 'prefix' => $field['prefix'], 'value' => $field['required'], 'choices' => array( 1 => __("Yes",'acf'), 0 => __("No",'acf'), ), 'layout' => 'horizontal', 'class' => 'field-required' ), 'tr'); // type specific settings do_action("acf/render_field_settings/type={$field['type']}", $field); // 3rd party settings do_action('acf/render_field_settings', $field); // conditional logic acf_get_view('field-group-field-conditional-logic', array( 'field' => $field )); // wrapper acf_render_field_wrap(array( 'label' => __('Wrapper Attributes','acf'), 'instructions' => '', 'type' => 'text', 'name' => 'width', 'prefix' => $field['prefix'] . '[wrapper]', 'value' => $field['wrapper']['width'], 'prepend' => __('width', 'acf'), 'append' => '%', 'wrapper' => array( 'data-name' => 'wrapper' ) ), 'tr'); acf_render_field_wrap(array( 'label' => '', 'instructions' => '', 'type' => 'text', 'name' => 'class', 'prefix' => $field['prefix'] . '[wrapper]', 'value' => $field['wrapper']['class'], 'prepend' => __('class', 'acf'), 'wrapper' => array( 'data-append' => 'wrapper' ) ), 'tr'); acf_render_field_wrap(array( 'label' => '', 'instructions' => '', 'type' => 'text', 'name' => 'id', 'prefix' => $field['prefix'] . '[wrapper]', 'value' => $field['wrapper']['id'], 'prepend' => __('id', 'acf'), 'wrapper' => array( 'data-append' => 'wrapper' ) ), 'tr'); ?>