PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.1
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Views/Automation/tmpl/info.php +0 -175 10.10.2 → 11.1.1 View file →
@@ -1,175 +1,0 @@
1 -<form id="acym_form" action="<?php echo acym_completeLink(acym_getVar('cmd', 'ctrl')); ?>" method="post" name="acyForm" data-abide novalidate>
2 - <input type="hidden" name="id" value="<?php echo !empty($data['automation']->id) ? intval($data['automation']->id) : ''; ?>">
3 - <input type="hidden" name="stepAutomationId" value="<?php echo empty($data['step']->id) ? '' : intval($data['step']->id); ?>">
4 - <input type="hidden" name="automation[admin]" value="<?php echo empty($data['automation']->admin) ? '' : intval($data['automation']->admin); ?>">
5 - <div class="acym__content cell grid-x" id="acym__automation__info">
6 - <?php
7 - if (empty($data['automation']->id)) {
8 - $data['workflowHelper']->disabledAfter = 'info';
9 - }
10 - echo $data['workflowHelper']->display($this->steps, $this->step);
11 - ?>
12 - <div class="cell grid-x grid-margin-x">
13 - <div class="medium-12 small-12 cell grid-x acym__content acym__automation__info__first margin-top-2 margin-y">
14 - <div class="cell medium-6">
15 - <label for="automation_name"><?php echo acym_translation('ACYM_NAME'); ?></label>
16 - <?php if (empty($data['automation']->admin)) { ?>
17 - <input required
18 - type="text"
19 - id="automation_name"
20 - name="automation[name]"
21 - value="<?php echo !empty($data['automation']->name) ? acym_escape($data['automation']->name) : ''; ?>">
22 - <?php } else { ?>
23 - <input required
24 - type="text"
25 - id="automation_name"
26 - name="automation[name]"
27 - disabled
28 - value="<?php echo acym_escape(acym_translation($data['automation']->name)); ?>">
29 - <?php } ?>
30 - </div>
31 - <div class="cell medium-shrink grid-x acym_vcenter margin-left-2" <?php echo empty($data['automation']->id) ? 'style="display: none"' : ''; ?>>
32 - <?php echo acym_switch('automation[active]', $data['automation']->active, acym_translation('ACYM_ACTIVE')); ?>
33 - </div>
34 - <label class="cell">
35 - <h6 id="acym__automation__info__desc__button" class="cursor-pointer">
36 - <?php echo acym_translation('ACYM_DESCRIPTION'); ?>
37 - <i class="acymicon-keyboard-arrow-down"></i>
38 - </h6>
39 - <?php if (!empty($data['automation']->admin)) $data['automation']->description = acym_escape(acym_translation($data['automation']->description)); ?>
40 - <textarea style="display: none"
41 - name="automation[description]" <?php echo empty($data['automation']->admin) ? '' : 'disabled'; ?> rows="6"
42 - class="margin-top-1"><?php echo !empty($data['automation']->description) ? acym_escape(
43 - $data['automation']->description
44 - ) : ''; ?></textarea>
45 - </label>
46 - </div>
47 - <div class="medium-12 cell grid-x acym__content acym__automation__info__trigger margin-top-2">
48 - <div class="cell grid-x margin-bottom-2" id="acym__automation__info__choose__trigger__type">
49 - <input type="hidden"
50 - name="type_trigger"
51 - value="<?php echo !empty($data['type_trigger']) ? $data['type_trigger'] : 'classic'; ?>"
52 - id="acym__automation__trigger__type__input">
53 - <div class="cell auto"></div>
54 - <?php
55 - $class = '';
56 - if (!empty($data['type_trigger']) && $data['type_trigger'] == 'classic') {
57 - $class = 'selected-trigger';
58 - } elseif (empty($data['type_trigger'])) {
59 - $class = 'selected-trigger';
60 - }
61 - ?>
62 - <p id="acym__automation__info__group"
63 - data-trigger-type="classic"
64 - class="shrink cell <?php echo $class; ?> margin-right-2">
65 - <?php echo acym_translation('ACYM_CLASSIC_TRIGGER'); ?>
66 - </p>
67 - <p id="acym__automation__info__one-user"
68 - data-trigger-type="user"
69 - class="shrink cell <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'user') ? 'selected-trigger' : ''; ?>"><?php echo acym_translation(
70 - 'ACYM_TRIGGER_BASED_ON_USER_ACTIONS'
71 - ); ?></p>
72 - <div class="cell auto"></div>
73 - </div>
74 - <div class="acym__automation__info__choose__trigger cell grid-x grid-margin-x grid-margin-y"
75 - id="acym__automation__info__choose__trigger__classic" <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'classic') ? ''
76 - : (empty($data['type_trigger']) ? '' : 'style="display: none"'); ?>>
77 - <div class="cell large-6 acym__content grid-x acym__automation__draggable">
78 - <h6 class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_ALL_TRIGGER'); ?></h6>
79 - <div class="cell acym__automation__all-trigger__classic grid-x">
80 - <?php foreach ($data['classic'] as $key => $classic) {
81 - echo '<div '.(in_array(
82 - $key,
83 - $data['defaultValues']
84 - ) ? 'style="display: none"' : '').' class="acym__automation__trigger__droppable__classic margin-top-1 cell" data-trigger="'.acym_escape(
85 - $key
86 - ).'"><span class="acym__automation__trigger__name">'.$classic->name.'</span><span class="acym__automation__trigger__action">'.$classic->option.'</span></div>';
87 - } ?>
88 - </div>
89 - </div>
90 -
91 - <div class="cell large-6 acym__content grid-x acym__automation__droppable__classic">
92 - <h6 class="acym__title acym__title__secondary cell"><?php echo acym_translation('ACYM_EXECUTE_AUTOMATION'); ?></h6>
93 - <div class="cell acym__automation__user-trigger__classic acym__automation__trigger__sortable">
94 - <?php
95 - if (count($data['defaultValues']) < 2) {
96 - echo '<div class="cell margin-top-1 acym__automation__drag-here-text">'.acym_translation('ACYM_DRAG_YOUR_TRIGGERS').'</div>';
97 - }
98 - foreach ($data['classic'] as $key => $classic) {
99 - if (!in_array($key, $data['defaultValues'])) continue;
100 - ?>
101 - <div class="acym__automation__droppable__trigger margin-top-1">
102 - <div class="acym__automation__one__trigger">
103 - <span class="acym__automation__trigger__name"><?php echo $classic->name; ?></span>
104 - <span class="acym__automation__trigger__action"><?php echo $classic->option; ?></span>
105 - </div>
106 - <i data-trigger-show="<?php echo acym_escape($key); ?>"
107 - class="acymicon-close acym__color__red acym__automation__delete__trigger cursor-pointer"></i>
108 - </div>
109 - <?php
110 - }
111 - ?>
112 - </div>
113 - </div>
114 - </div>
115 - <div class="acym__automation__info__choose__trigger cell grid-x grid-margin-x grid-margin-y"
116 - id="acym__automation__info__choose__trigger__user" <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'user') ? ''
117 - : 'style="display: none"'; ?>>
118 - <div class="cell large-6 acym__content grid-x acym__automation__draggable">
119 - <h6 class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_ALL_TRIGGER'); ?></h6>
120 - <div class="cell acym__automation__all-trigger__action grid-x">
121 - <?php
122 - foreach ($data['user'] as $key => $triggerUser) {
123 - echo '<div '.(in_array(
124 - $key,
125 - $data['defaultValues']
126 - ) ? 'style="display: none"' : '').' class="acym__automation__trigger__droppable__action margin-top-1 cell" data-trigger="'.acym_escape(
127 - $key
128 - ).'"><span class="acym__automation__trigger__name">'.$triggerUser->name.'</span><span class="acym__automation__trigger__action">'.$triggerUser->option.'</span></div>';
129 - }
130 - ?>
131 - </div>
132 - </div>
133 -
134 - <div class="cell large-6 acym__content grid-x acym__automation__droppable__action">
135 - <h6 class="acym__title acym__title__secondary cell"><?php echo acym_translation('ACYM_EXECUTE_AUTOMATION'); ?></h6>
136 - <div class="cell acym__automation__user-trigger__action acym__automation__trigger__sortable">
137 - <?php
138 - if (count($data['defaultValues']) < 2) {
139 - echo '<div class="cell margin-top-1 acym__automation__drag-here-text">'.acym_translation('ACYM_DRAG_YOUR_TRIGGERS').'</div>';
140 - }
141 - foreach ($data['user'] as $key => $triggerUser) {
142 - if (!in_array($key, $data['defaultValues'])) continue;
143 - ?>
144 - <div class="acym__automation__droppable__trigger margin-top-1">
145 - <div class="acym__automation__one__trigger"><span class="acym__automation__trigger__name"><?php echo $triggerUser->name; ?></span></b>
146 - <span class="acym__automation__trigger__action"><?php echo $triggerUser->option; ?></span>
147 - </div>
148 - <i data-trigger-show="<?php echo acym_escape($key); ?>"
149 - class="acymicon-close acym__color__red acym__automation__delete__trigger cursor-pointer"></i>
150 - </div>
151 - <?php
152 - }
153 - ?>
154 - </div>
155 - </div>
156 - </div>
157 - </div>
158 - <div class="cell grid-x margin-top-2">
159 - <div class="cell medium-shrink medium-margin-bottom-0 margin-bottom-1 text-left">
160 - <?php echo acym_backToListing('automation'); ?>
161 - </div>
162 - <div class="cell medium-auto grid-x grid-margin-x text-right">
163 - <div class="cell auto"></div>
164 - <button class="cell medium-shrink button medium-margin-bottom-0 margin-bottom-1 acy_button_submit button-secondary"
165 - type="button"
166 - data-task="saveExitInfo"><?php echo acym_translation('ACYM_SAVE_EXIT'); ?></button>
167 - <button class="cell medium-shrink button margin-bottom-0 acy_button_submit" type="button" data-task="saveInfo">
168 - <?php echo acym_translation('ACYM_SAVE_CONTINUE'); ?>
169 - </button>
170 - </div>
171 - </div>
172 - </div>
173 - </div>
174 - <?php acym_formOptions(); ?>
175 -</form>