# acymailing/11.0.3/back/Views/Fields/tmpl/edit_information.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 11.0.3. 86 lines.

- Page: https://pluginprobe.com/plugins/acymailing/11.0.3/code/back/Views/Fields/tmpl/edit_information.php
- Raw: https://pluginprobe.com/plugins/acymailing/11.0.3/raw/back/Views/Fields/tmpl/edit_information.php
- Modified: 2026-08-03T10:18:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/11.0.3/code/back/Views/Fields/tmpl/edit_information.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
defined('ABSPATH') || die('Restricted Access');
?>
<h2 class="cell acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_INFORMATION')); ?></h2>
<?php
if (!empty($data['translation_languages'])) {
    acym_displayLanguageRadio(
        $data['translation_languages'],
        'field[translation]',
        empty($data['field']->translation) ? '' : $data['field']->translation,
        acym_translation('ACYM_LANGUAGE_CUSTOM_FIELD_DESC'),
        '',
        'field'
    );
} ?>
<label class="cell xlarge-12 large-6 margin-top-1">
    <?php echo esc_html(acym_translation('ACYM_NAME')); ?>
	<input required type="text" name="field[name]" value="<?php echo empty($data['field']->name) ? '' : esc_attr($data['field']->name); ?>">
</label>
<label class="cell xlarge-12 large-6 margin-top-1">
    <?php
    echo esc_html(acym_translation('ACYM_FIELD_TYPE'));

    $attributes = [
        'acym-data-infinite' => true,
        'class' => 'acym__fields__edit__select acym__select',
    ];
    if (!empty($data['field']->id) && in_array($data['field']->id, [1, 2, $data['languageFieldId']])) {
        $attributes['disabled'] = true;
    }

    acym_select(
        $data['fieldType'],
        'field[type]',
        $data['field']->type,
        $attributes,
        'value',
        'name',
        null,
        false,
        true
    );
    ?>
</label>

<div class="cell large-12 grid-x margin-top-1">
    <?php
    $disableActiveSwitch = !empty($data['field']->core) || in_array($data['field']->id, [2, $data['languageFieldId']]);

    acym_switch([
        'name' => 'field[active]',
        'value' => $data['field']->active,
        'label' => acym_translation('ACYM_ACTIVE'),
        'labelClass' => 'auto',
        'switchContainerClass' => 'shrink',
        'switchClass' => 'margin-0',
        'disabled' => $disableActiveSwitch,
    ]); ?>
</div>

<?php if (empty($data['field']->id) || !in_array($data['field']->id, [2, $data['languageFieldId']])) { ?>
	<div class="cell large-12 grid-x acym__fields__change margin-top-1" id="acym__fields__required">
        <?php
        acym_switch([
            'name' => 'field[required]',
            'value' => $data['field']->required,
            'label' => acym_translation('ACYM_REQUIRED'),
            'tip' => ['textShownInTooltip' => 'ACYM_REQUIRED_DESC'],
            'labelClass' => 'auto',
            'switchContainerClass' => 'shrink',
            'switchClass' => 'margin-0',
            'toggle' => 'required_error_message',
        ]); ?>
	</div>
	<div class="cell margin-top-1 large-11" id="required_error_message">
		<label class="acym__fields__change" id="acym__fields__error-message">
            <?php echo esc_html(acym_translation('ACYM_CUSTOM_ERROR')); ?>
			<input type="text"
			       name="field[option][error_message]"
			       value="<?php echo empty($data['field']->option->error_message) ? '' : esc_attr($data['field']->option->error_message); ?>"
			       placeholder="<?php echo esc_attr(acym_translationSprintf('ACYM_DEFAULT_REQUIRED_MESSAGE', 'xxx')); ?>">
		</label>
	</div>
<?php } ?>

```
