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/summary.php +0 -204 trunk → 11.1.1 View file →
@@ -1,204 +1,0 @@
1 -<?php
2 -// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
3 -defined('ABSPATH') || die('Restricted Access');
4 -
5 -$summaryAllowedTags = [
6 - 'br' => [],
7 - 'b' => [],
8 - 'strong' => [],
9 - 'i' => [],
10 - 'em' => [],
11 - 'p' => [],
12 - 'span' => ['class' => true],
13 -];
14 -?>
15 -<form id="acym_form" action="<?php echo esc_url(acym_completeLink(acym_getVar('cmd', 'ctrl'))); ?>" method="post" name="acyForm" data-abide novalidate>
16 - <input type="hidden" name="id" value="<?php echo empty($data['id']) ? '' : intval($data['id']); ?>">
17 - <div class="cell grid-x">
18 - <div class="cell auto"></div>
19 - <div class="acym__content grid-x cell xxlarge-7 xlarge-9" id="acym__automation__summary">
20 - <?php
21 - $data['workflowHelper']->display($this->steps, 'summary');
22 - if (!empty($data['id'])) {
23 - ?>
24 - <div class="acym__automation__summary__info cell grid-x acym__content margin-top-2">
25 - <h6 class="cell acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_INFORMATION')); ?></h6>
26 - <?php if (!empty($data['automation']->admin)) {
27 - $data['automation']->name = acym_translation($data['automation']->name);
28 - $data['automation']->description = acym_translation($data['automation']->description);
29 - } ?>
30 - <div class="cell acym__automation__summary__information__one"><span class="acym__automation__summary__information__one__title"><?php echo esc_html(
31 - acym_translation(
32 - 'ACYM_NAME_SUMMARY'
33 - )
34 - ); ?></span> : <?php echo esc_html($data['automation']->name); ?></div>
35 - <div class="cell acym__automation__summary__information__one"><span class="acym__automation__summary__information__one__title"><?php echo esc_html(
36 - acym_translation(
37 - 'ACYM_DESCRIPTION'
38 - )
39 - ); ?></span> : <?php echo esc_html($data['automation']->description); ?></div>
40 - </div>
41 - <div class="acym__automation__summary__filters cell grid-x margin-top-2 acym__content">
42 - <h6 class="cell acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_TRIGGERS')); ?></h6>
43 - <div class="cell acym__automation__summary__information__one"><span class="acym__automation__summary__information__one__title"><?php echo esc_html(
44 - acym_translation(
45 - 'ACYM_AUTOMATION_TRIGGER'
46 - )
47 - ); ?></span></div>
48 - <br />
49 - <div class="cell acym__automation__summary__information__one">
50 - <?php
51 - $triggerNum = 0;
52 - foreach ($data['step']->triggers as $oneTrigger) {
53 - if ($triggerNum > 0) {
54 - echo '<br /><span class="acym__automation__summary__information__one__title">'.esc_html(
55 - acym_translation('ACYM_OR')
56 - ).'</span><br />';
57 - }
58 -
59 - echo wp_kses(
60 - is_string($oneTrigger) ? $oneTrigger : acym_translation('ACYM_UNKNOWN'),
61 - $summaryAllowedTags
62 - );
63 - $triggerNum++;
64 - }
65 - ?>
66 - </div>
67 - </div>
68 - <div class="acym__automation__summary__actions cell grid-x margin-top-2 acym__content">
69 - <h6 class="cell acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_CONDITIONS')); ?></h6>
70 - <div class="cell acym__automation__summary__information__one grid-x">
71 - <?php
72 - if (!empty($data['condition']->conditions)) {
73 - $orNum = 0;
74 - $andNum = 0;
75 - $typeTrigger = $data['condition']->conditions['type_condition'];
76 - unset($data['condition']->conditions['type_condition']);
77 - if (empty($data['condition']->conditions)) {
78 - echo '<span class="acym__automation__summary__information__one__title">'.esc_html(
79 - acym_translation(
80 - 'ACYM_YOU_DID_NOT_SET_CONDITION'
81 - )
82 - ).'</span></div><div class="acym__automation__summary__information__one">';
83 - } else {
84 - echo '<span class="acym__automation__summary__information__one__title">'.esc_html(
85 - acym_translationSprintf(
86 - 'ACYM_CONDITIONS_APPLY_TO',
87 - acym_translation($typeTrigger == 'classic' ? '' : 'ACYM_ONE_ACYMAILING_SUBSCRIBER_CONDITION')
88 - )
89 - ).'</span></div><div class="acym__automation__summary__information__one">';
90 - foreach ($data['condition']->conditions as $or => $orValues) {
91 - if ($or === 'type_condition') continue;
92 - $andNum = 0;
93 - if ($orNum > 0) {
94 - echo '<span class="acym__automation__summary__information__one__title">'.esc_html(
95 - acym_translation('ACYM_OR')
96 - ).'</span><br />';
97 - }
98 - foreach ($orValues as $and => $andValue) {
99 - if (is_array($andValue)) continue;
100 - if ($andNum > 0) {
101 - echo '<span class="acym__automation__summary__information__one__title">'.esc_html(acym_translation('ACYM_AND')).'</span><br />';
102 - }
103 - echo wp_kses((string)$andValue, $summaryAllowedTags).'<br />';
104 - $andNum++;
105 - }
106 - $orNum++;
107 - }
108 - }
109 - } else {
110 - echo '<strong class="acym__color__red cell text-center">'.esc_html(acym_translation('ACYM_SELECT_CONDITIONS')).'</strong>';
111 - }
112 - ?>
113 - </div>
114 - </div>
115 - <?php } ?>
116 - <div class="acym__automation__summary__actions cell grid-x margin-top-2 margin-bottom-2 acym__content">
117 - <h6 class="cell acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_ACTIONS')); ?></h6>
118 - <div class="cell acym__automation__summary__information__one grid-x">
119 - <?php
120 - if (!empty($data['action']->actions)) {
121 - echo '<span class="acym__automation__summary__information__one__title">'.esc_html(
122 - acym_translationSprintf(
123 - 'ACYM_ACTIONS_SUBSCRIBER_WILL',
124 - acym_strtolower(acym_translation(empty($data['id']) ? 'ACYM_MASS_ACTION' : 'ACYM_AUTOMATION'))
125 - )
126 - ).'</span></div><div class="acym__automation__summary__information__one">';
127 - $andNum = 0;
128 - foreach ($data['action']->actions as $and => $andValue) {
129 - if (is_array($andValue)) continue;
130 - if ($andNum > 0) echo '<span class="acym__automation__summary__information__one__title">'.esc_html(acym_translation('ACYM_AND')).'</span><br />';
131 - echo wp_kses((string)$andValue, $summaryAllowedTags).'<br />';
132 - $andNum++;
133 - }
134 - } else {
135 - echo '<strong class="acym__color__red cell text-center">'.esc_html(acym_translation('ACYM_SELECT_ACTIONS')).'</strong>';
136 - }
137 - ?>
138 - </div>
139 - </div>
140 - <div class="acym__automation__summary__actions cell grid-x margin-top-1 margin-bottom-2 acym__content">
141 - <h6 class="cell acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_ACTIONS_TARGETS')); ?></h6>
142 - <div class="cell acym__automation__summary__information__one grid-x">
143 - <?php
144 - if (!empty($data['action']->filters)) {
145 - $orNum = 0;
146 - $andNum = 0;
147 - echo '<span class="acym__automation__summary__information__one__title">'.esc_html(
148 - acym_translationSprintf(
149 - 'ACYM_FILTERS_APPLY_TO',
150 - acym_strtolower(acym_translation(empty($data['id']) ? 'ACYM_MASS_ACTION' : 'ACYM_AUTOMATION')),
151 - acym_translation($data['action']->filters['type_filter'] == 'classic' ? 'ACYM_ALL_ACYMAILING_USERS' : 'ACYM_ONE_ACYMAILING_USER')
152 - )
153 - ).'</span></div><div class="acym__automation__summary__information__one">';
154 - foreach ($data['action']->filters as $or => $orValues) {
155 - if ($or === 'type_filter') continue;
156 - $andNum = 0;
157 - if ($orNum > 0) echo '<span class="acym__automation__summary__information__one__title">'.esc_html(acym_translation('ACYM_OR')).'</span><br />';
158 - foreach ($orValues as $and => $andValue) {
159 - if (is_array($andValue)) continue;
160 - if ($andNum > 0) {
161 - echo '<span class="acym__automation__summary__information__one__title">'.esc_html(
162 - acym_translation('ACYM_AND')
163 - ).'</span><br />';
164 - }
165 - echo wp_kses((string)$andValue, $summaryAllowedTags).'<br />';
166 - $andNum++;
167 - }
168 - $orNum++;
169 - }
170 - } else {
171 - echo '<strong class="acym__color__red cell text-center">'.esc_html(acym_translation('ACYM_SELECT_FILTERS')).'</strong>';
172 - }
173 - ?>
174 - </div>
175 - </div>
176 - <div class="cell grid-x grid-margin-x">
177 - <div class="auto cell"></div>
178 - <?php if (empty($data['id'])) { ?>
179 - <button type="button" data-task="listing" class="cell shrink button-secondary button acy_button_submit"><?php echo esc_html(
180 - acym_translation('ACYM_CANCEL')
181 - ); ?></button>
182 - <button type="button" data-task="processMassAction" class="cell shrink button acy_button_submit"><?php echo esc_html(
183 - acym_translation(
184 - 'ACYM_PROCESS_MASS_ACTION'
185 - )
186 - ); ?></button>
187 - <?php } else { ?>
188 - <button type="button" data-task="listing" class="cell shrink button button-secondary acy_button_submit"><?php echo esc_html(
189 - acym_translation(
190 - 'ACYM_SAVE_EXIT'
191 - )
192 - ); ?></button>
193 - <button type="button" data-task="activeAutomation" class="cell shrink button acy_button_submit"><?php echo esc_html(
194 - acym_translation(
195 - 'ACYM_ACTIVE_AUTOMATION'
196 - )
197 - ); ?></button>
198 - <?php } ?>
199 - </div>
200 - </div>
201 - <div class="cell auto"></div>
202 - </div>
203 - <?php acym_formOptions(); ?>
204 -</form>