PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
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 +59 -45 11.0.0 → 11.1.0 View file →
@@ -18,19 +18,19 @@
18 18 <div class="cell medium-6">
19 19 <label for="automation_name"><?php echo esc_html(acym_translation('ACYM_NAME')); ?></label>
20 20 <?php if (empty($data['automation']->admin)) { ?>
21 21 <input required
22 - type="text"
23 - id="automation_name"
24 - name="automation[name]"
25 - value="<?php echo !empty($data['automation']->name) ? esc_attr($data['automation']->name) : ''; ?>">
22 + type="text"
23 + id="automation_name"
24 + name="automation[name]"
25 + value="<?php echo !empty($data['automation']->name) ? esc_attr($data['automation']->name) : ''; ?>">
26 26 <?php } else { ?>
27 27 <input required
28 - type="text"
29 - id="automation_name"
30 - name="automation[name]"
31 - disabled
32 - value="<?php echo esc_attr(acym_translation($data['automation']->name)); ?>">
28 + type="text"
29 + id="automation_name"
30 + name="automation[name]"
31 + disabled
32 + value="<?php echo esc_attr(acym_translation($data['automation']->name)); ?>">
33 33 <?php } ?>
34 34 </div>
35 35 <div class="cell medium-shrink grid-x acym_vcenter margin-left-2" <?php echo empty($data['automation']->id) ? 'style="display: none"' : ''; ?>>
36 36 <?php acym_switch([
@@ -45,10 +45,10 @@
45 45 <i class="acymicon-keyboard-arrow-down"></i>
46 46 </h6>
47 47 <?php if (!empty($data['automation']->admin)) $data['automation']->description = esc_html(acym_translation($data['automation']->description)); ?>
48 48 <textarea style="display: none"
49 - name="automation[description]" <?php echo empty($data['automation']->admin) ? '' : 'disabled'; ?> rows="6"
50 - class="margin-top-1"><?php echo !empty($data['automation']->description) ? esc_html(
49 + name="automation[description]" <?php echo empty($data['automation']->admin) ? '' : 'disabled'; ?> rows="6"
50 + class="margin-top-1"><?php echo !empty($data['automation']->description) ? esc_html(
51 51 $data['automation']->description
52 52 ) : ''; ?></textarea>
53 53 </label>
54 54 </div>
@@ -54,11 +54,11 @@
54 54 </div>
55 55 <div class="medium-12 cell grid-x acym__content acym__automation__info__trigger margin-top-2">
56 56 <div class="cell grid-x margin-bottom-2" id="acym__automation__info__choose__trigger__type">
57 57 <input type="hidden"
58 - name="type_trigger"
59 - value="<?php echo !empty($data['type_trigger']) ? esc_attr($data['type_trigger']) : 'classic'; ?>"
60 - id="acym__automation__trigger__type__input">
58 + name="type_trigger"
59 + value="<?php echo !empty($data['type_trigger']) ? esc_attr($data['type_trigger']) : 'classic'; ?>"
60 + id="acym__automation__trigger__type__input">
61 61 <div class="cell auto"></div>
62 62 <?php
63 63 $class = '';
64 64 if (!empty($data['type_trigger']) && $data['type_trigger'] == 'classic') {
@@ -81,24 +81,28 @@
81 81 ); ?></p>
82 82 <div class="cell auto"></div>
83 83 </div>
84 84 <div class="acym__automation__info__choose__trigger cell grid-x grid-margin-x grid-margin-y"
85 - id="acym__automation__info__choose__trigger__classic" <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'classic') ? ''
85 + id="acym__automation__info__choose__trigger__classic" <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'classic') ? ''
86 86 : (empty($data['type_trigger']) ? '' : 'style="display: none"'); ?>>
87 87 <div class="cell large-6 acym__content grid-x acym__automation__draggable">
88 88 <h6 class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_ALL_TRIGGER')); ?></h6>
89 89 <div class="cell acym__automation__all-trigger__classic grid-x">
90 - <!-- TODO : Handle the escape of ->option var in the addons themself -->
91 - <?php foreach ($data['classic'] as $key => $classic) {
92 - echo '<div '.(in_array(
93 - $key,
94 - $data['defaultValues']
95 - ) ? 'style="display: none"' : '').' class="acym__automation__trigger__droppable__classic margin-top-1 cell" data-trigger="'.esc_attr(
96 - $key
97 - ).'"><span class="acym__automation__trigger__name">'.esc_html(
98 - $classic->name
99 - ).'</span><span class="acym__automation__trigger__action">'.$classic->option.'</span></div>';
100 - } ?>
90 + <?php
91 + foreach ($data['classic'] as $key => $classic) {
92 + ?>
93 + <div
94 + <?php echo in_array($key, $data['defaultValues']) ? 'style="display: none"' : ''; ?>
95 + class="acym__automation__trigger__droppable__classic margin-top-1 cell"
96 + data-trigger="<?php echo esc_attr($key); ?>">
97 + <span class="acym__automation__trigger__name">
98 + <?php echo esc_html($classic->name); ?>
99 + </span>
100 + <span class="acym__automation__trigger__action">
101 + <?php acym_displayAddonOption($classic); ?>
102 + </span>
103 + </div>
104 + <?php } ?>
101 105 </div>
102 106 </div>
103 107
104 108 <div class="cell large-6 acym__content grid-x acym__automation__droppable__classic">
@@ -112,10 +116,14 @@
112 116 if (!in_array($key, $data['defaultValues'])) continue;
113 117 ?>
114 118 <div class="acym__automation__droppable__trigger margin-top-1">
115 119 <div class="acym__automation__one__trigger">
116 - <span class="acym__automation__trigger__name"><?php echo esc_html($classic->name); ?></span>
117 - <span class="acym__automation__trigger__action"><?php echo $classic->option; ?></span>
120 + <span class="acym__automation__trigger__name">
121 + <?php echo esc_html($classic->name); ?>
122 + </span>
123 + <span class="acym__automation__trigger__action">
124 + <?php acym_displayAddonOption($classic); ?>
125 + </span>
118 126 </div>
119 127 <i data-trigger-show="<?php echo esc_attr($key); ?>"
120 128 class="acymicon-close acym__color__red acym__automation__delete__trigger cursor-pointer"></i>
121 129 </div>
@@ -125,9 +133,9 @@
125 133 </div>
126 134 </div>
127 135 </div>
128 136 <div class="acym__automation__info__choose__trigger cell grid-x grid-margin-x grid-margin-y"
129 - id="acym__automation__info__choose__trigger__user" <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'user') ? ''
137 + id="acym__automation__info__choose__trigger__user" <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'user') ? ''
130 138 : 'style="display: none"'; ?>>
131 139 <div class="cell large-6 acym__content grid-x acym__automation__draggable">
132 140 <h6 class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_ALL_TRIGGER')); ?></h6>
133 141 <div class="cell acym__automation__all-trigger__action grid-x">
@@ -132,18 +140,21 @@
132 140 <h6 class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_ALL_TRIGGER')); ?></h6>
133 141 <div class="cell acym__automation__all-trigger__action grid-x">
134 142 <?php
135 143 foreach ($data['user'] as $key => $triggerUser) {
136 - echo '<div '.(in_array(
137 - $key,
138 - $data['defaultValues']
139 - ) ? 'style="display: none"' : '').' class="acym__automation__trigger__droppable__action margin-top-1 cell" data-trigger="'.esc_attr(
140 - $key
141 - ).'"><span class="acym__automation__trigger__name">'.esc_html(
142 - $triggerUser->name
143 - ).'</span><span class="acym__automation__trigger__action">'.$triggerUser->option.'</span></div>';
144 - }
145 - ?>
144 + ?>
145 + <div
146 + <?php echo in_array($key, $data['defaultValues']) ? 'style="display: none"' : ''; ?>
147 + class="acym__automation__trigger__droppable__action margin-top-1 cell"
148 + data-trigger="<?php echo esc_attr($key); ?>">
149 + <span class="acym__automation__trigger__name">
150 + <?php echo esc_html($triggerUser->name); ?>
151 + </span>
152 + <span class="acym__automation__trigger__action">
153 + <?php acym_displayAddonOption($triggerUser); ?>
154 + </span>
155 + </div>
156 + <?php } ?>
146 157 </div>
147 158 </div>
148 159
149 160 <div class="cell large-6 acym__content grid-x acym__automation__droppable__action">
@@ -156,12 +167,15 @@
156 167 foreach ($data['user'] as $key => $triggerUser) {
157 168 if (!in_array($key, $data['defaultValues'])) continue;
158 169 ?>
159 170 <div class="acym__automation__droppable__trigger margin-top-1">
160 - <div class="acym__automation__one__trigger"><span class="acym__automation__trigger__name"><?php echo esc_html(
161 - $triggerUser->name
162 - ); ?></span></b>
163 - <span class="acym__automation__trigger__action"><?php echo $triggerUser->option; ?></span>
171 + <div class="acym__automation__one__trigger">
172 + <span class="acym__automation__trigger__name">
173 + <?php echo esc_html($triggerUser->name); ?>
174 + </span>
175 + <span class="acym__automation__trigger__action">
176 + <?php acym_displayAddonOption($triggerUser); ?>
177 + </span>
164 178 </div>
165 179 <i data-trigger-show="<?php echo esc_attr($key); ?>"
166 180 class="acymicon-close acym__color__red acym__automation__delete__trigger cursor-pointer"></i>
167 181 </div>
@@ -178,10 +192,10 @@
178 192 </div>
179 193 <div class="cell medium-auto grid-x grid-margin-x text-right">
180 194 <div class="cell auto"></div>
181 195 <button class="cell medium-shrink button medium-margin-bottom-0 margin-bottom-1 acy_button_submit button-secondary"
182 - type="button"
183 - data-task="saveExitInfo"><?php echo esc_html(acym_translation('ACYM_SAVE_EXIT')); ?></button>
196 + type="button"
197 + data-task="saveExitInfo"><?php echo esc_html(acym_translation('ACYM_SAVE_EXIT')); ?></button>
184 198 <button class="cell medium-shrink button margin-bottom-0 acy_button_submit" type="button" data-task="saveInfo">
185 199 <?php echo esc_html(acym_translation('ACYM_SAVE_CONTINUE')); ?>
186 200 </button>
187 201 </div>