# acymailing/trunk/back/Views/Automation/tmpl/info.php

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

- Page: https://pluginprobe.com/plugins/acymailing/trunk/code/back/Views/Automation/tmpl/info.php
- Raw: https://pluginprobe.com/plugins/acymailing/trunk/raw/back/Views/Automation/tmpl/info.php
- Modified: 2026-09-24T14:59:06+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/trunk/code/back/Views/Automation/tmpl/info.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');
?>
<form id="acym_form" action="<?php echo esc_url(acym_completeLink(acym_getVar('cmd', 'ctrl'))); ?>" method="post" name="acyForm" data-abide novalidate>
	<input type="hidden" name="id" value="<?php echo !empty($data['automation']->id) ? intval($data['automation']->id) : ''; ?>">
	<input type="hidden" name="stepAutomationId" value="<?php echo empty($data['step']->id) ? '' : intval($data['step']->id); ?>">
	<input type="hidden" name="automation[admin]" value="<?php echo empty($data['automation']->admin) ? '' : intval($data['automation']->admin); ?>">
	<div class="acym__content cell grid-x" id="acym__automation__info">
        <?php
        if (empty($data['automation']->id)) {
            $data['workflowHelper']->disabledAfter = 'info';
        }
        $data['workflowHelper']->display($this->steps, $this->step);
        ?>
		<div class="cell grid-x grid-margin-x">
			<div class="medium-12 small-12 cell grid-x acym__content acym__automation__info__first margin-top-2 margin-y">
				<div class="cell medium-6">
					<label for="automation_name"><?php echo esc_html(acym_translation('ACYM_NAME')); ?></label>
                    <?php if (empty($data['automation']->admin)) { ?>
						<input required
							   type="text"
							   id="automation_name"
							   name="automation[name]"
							   value="<?php echo !empty($data['automation']->name) ? esc_attr($data['automation']->name) : ''; ?>">
                    <?php } else { ?>
						<input required
							   type="text"
							   id="automation_name"
							   name="automation[name]"
							   disabled
							   value="<?php echo esc_attr(acym_translation($data['automation']->name)); ?>">
                    <?php } ?>
				</div>
				<div class="cell medium-shrink grid-x acym_vcenter margin-left-2" <?php echo empty($data['automation']->id) ? 'style="display: none"' : ''; ?>>
                    <?php acym_switch([
                        'name' => 'automation[active]',
                        'value' => $data['automation']->active,
                        'label' => acym_translation('ACYM_ACTIVE'),
                    ]); ?>
				</div>
				<label class="cell">
					<h6 id="acym__automation__info__desc__button" class="cursor-pointer">
                        <?php echo esc_html(acym_translation('ACYM_DESCRIPTION')); ?>
						<i class="acymicon-keyboard-arrow-down"></i>
					</h6>
                    <?php if (!empty($data['automation']->admin)) $data['automation']->description = esc_html(acym_translation($data['automation']->description)); ?>
					<textarea style="display: none"
							  name="automation[description]" <?php echo empty($data['automation']->admin) ? '' : 'disabled'; ?>  rows="6"
							  class="margin-top-1"><?php echo !empty($data['automation']->description) ? esc_html(
                            $data['automation']->description
                        ) : ''; ?></textarea>
				</label>
			</div>
			<div class="medium-12 cell grid-x acym__content acym__automation__info__trigger margin-top-2">
				<div class="cell grid-x margin-bottom-2" id="acym__automation__info__choose__trigger__type">
					<input type="hidden"
						   name="type_trigger"
						   value="<?php echo !empty($data['type_trigger']) ? esc_attr($data['type_trigger']) : 'classic'; ?>"
						   id="acym__automation__trigger__type__input">
					<div class="cell auto"></div>
                    <?php
                    $class = '';
                    if (!empty($data['type_trigger']) && $data['type_trigger'] == 'classic') {
                        $class = 'selected-trigger';
                    } elseif (empty($data['type_trigger'])) {
                        $class = 'selected-trigger';
                    }
                    ?>
					<p id="acym__automation__info__group"
					   data-trigger-type="classic"
					   class="shrink cell <?php echo esc_attr($class); ?> margin-right-2">
                        <?php echo esc_html(acym_translation('ACYM_CLASSIC_TRIGGER')); ?>
					</p>
					<p id="acym__automation__info__one-user"
					   data-trigger-type="user"
					   class="shrink cell <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'user') ? 'selected-trigger' : ''; ?>"><?php echo esc_html(
                            acym_translation(
                                'ACYM_TRIGGER_BASED_ON_USER_ACTIONS'
                            )
                        ); ?></p>
					<div class="cell auto"></div>
				</div>
				<div class="acym__automation__info__choose__trigger cell grid-x grid-margin-x grid-margin-y"
					 id="acym__automation__info__choose__trigger__classic" <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'classic') ? ''
                    : (empty($data['type_trigger']) ? '' : 'style="display: none"'); ?>>
					<div class="cell large-6 acym__content grid-x acym__automation__draggable">
						<h6 class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_ALL_TRIGGER')); ?></h6>
						<div class="cell acym__automation__all-trigger__classic grid-x">
                            <?php
                            foreach ($data['classic'] as $key => $classic) {
                                ?>
								<div
                                    <?php echo in_array($key, $data['defaultValues']) ? 'style="display: none"' : ''; ?>
										class="acym__automation__trigger__droppable__classic margin-top-1 cell"
										data-trigger="<?php echo esc_attr($key); ?>">
									<span class="acym__automation__trigger__name">
										<?php echo esc_html($classic->name); ?>
									</span>
									<span class="acym__automation__trigger__action">
										<?php acym_displayAddonOption($classic); ?>
									</span>
								</div>
                            <?php } ?>
						</div>
					</div>

					<div class="cell large-6 acym__content grid-x acym__automation__droppable__classic">
						<h6 class="acym__title acym__title__secondary cell"><?php echo esc_html(acym_translation('ACYM_EXECUTE_AUTOMATION')); ?></h6>
						<div class="cell acym__automation__user-trigger__classic acym__automation__trigger__sortable">
                            <?php
                            if (count($data['defaultValues']) < 2) {
                                echo '<div class="cell margin-top-1 acym__automation__drag-here-text">'.esc_html(acym_translation('ACYM_DRAG_YOUR_TRIGGERS')).'</div>';
                            }
                            foreach ($data['classic'] as $key => $classic) {
                                if (!in_array($key, $data['defaultValues'])) continue;
                                ?>
								<div class="acym__automation__droppable__trigger margin-top-1">
									<div class="acym__automation__one__trigger">
										<span class="acym__automation__trigger__name">
											<?php echo esc_html($classic->name); ?>
										</span>
										<span class="acym__automation__trigger__action">
											<?php acym_displayAddonOption($classic); ?>
										</span>
									</div>
									<i data-trigger-show="<?php echo esc_attr($key); ?>"
									   class="acymicon-close acym__color__red acym__automation__delete__trigger cursor-pointer"></i>
								</div>
                                <?php
                            }
                            ?>
						</div>
					</div>
				</div>
				<div class="acym__automation__info__choose__trigger cell grid-x grid-margin-x grid-margin-y"
					 id="acym__automation__info__choose__trigger__user" <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'user') ? ''
                    : 'style="display: none"'; ?>>
					<div class="cell large-6 acym__content grid-x acym__automation__draggable">
						<h6 class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_ALL_TRIGGER')); ?></h6>
						<div class="cell acym__automation__all-trigger__action grid-x">
                            <?php
                            foreach ($data['user'] as $key => $triggerUser) {
                                ?>
								<div
                                    <?php echo in_array($key, $data['defaultValues']) ? 'style="display: none"' : ''; ?>
										class="acym__automation__trigger__droppable__action margin-top-1 cell"
										data-trigger="<?php echo esc_attr($key); ?>">
									<span class="acym__automation__trigger__name">
										<?php echo esc_html($triggerUser->name); ?>
									</span>
									<span class="acym__automation__trigger__action">
										<?php acym_displayAddonOption($triggerUser); ?>
									</span>
								</div>
                            <?php } ?>
						</div>
					</div>

					<div class="cell large-6 acym__content grid-x acym__automation__droppable__action">
						<h6 class="acym__title acym__title__secondary cell"><?php echo esc_html(acym_translation('ACYM_EXECUTE_AUTOMATION')); ?></h6>
						<div class="cell acym__automation__user-trigger__action acym__automation__trigger__sortable">
                            <?php
                            if (count($data['defaultValues']) < 2) {
                                echo '<div class="cell margin-top-1 acym__automation__drag-here-text">'.esc_html(acym_translation('ACYM_DRAG_YOUR_TRIGGERS')).'</div>';
                            }
                            foreach ($data['user'] as $key => $triggerUser) {
                                if (!in_array($key, $data['defaultValues'])) continue;
                                ?>
								<div class="acym__automation__droppable__trigger margin-top-1">
									<div class="acym__automation__one__trigger">
										<span class="acym__automation__trigger__name">
											<?php echo esc_html($triggerUser->name); ?>
										</span>
										<span class="acym__automation__trigger__action">
											<?php acym_displayAddonOption($triggerUser); ?>
										</span>
									</div>
									<i data-trigger-show="<?php echo esc_attr($key); ?>"
									   class="acymicon-close acym__color__red acym__automation__delete__trigger cursor-pointer"></i>
								</div>
                                <?php
                            }
                            ?>
						</div>
					</div>
				</div>
			</div>
			<div class="cell grid-x margin-top-2">
				<div class="cell medium-shrink medium-margin-bottom-0 margin-bottom-1 text-left">
                    <?php acym_backToListing('automation'); ?>
				</div>
				<div class="cell medium-auto grid-x grid-margin-x text-right">
					<div class="cell auto"></div>
					<button class="cell medium-shrink button medium-margin-bottom-0 margin-bottom-1 acy_button_submit button-secondary"
							type="button"
							data-task="saveExitInfo"><?php echo esc_html(acym_translation('ACYM_SAVE_EXIT')); ?></button>
					<button class="cell medium-shrink button margin-bottom-0 acy_button_submit" type="button" data-task="saveInfo">
                        <?php echo esc_html(acym_translation('ACYM_SAVE_CONTINUE')); ?>
					</button>
				</div>
			</div>
		</div>
	</div>
    <?php acym_formOptions(); ?>
</form>

```
