PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.11.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.11.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
acymailing / back / Views / Automation / tmpl / summary.php

summary.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.11.1, at back/Views/Automation/tmpl/summary.php

152 lines 9.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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['id']) ? '' : intval($data['id']); ?>">
3 <div class="cell grid-x">
4 <div class="cell auto"></div>
5 <div class="acym__content grid-x cell xxlarge-7 xlarge-9" id="acym__automation__summary">
6 <?php
7 echo $data['workflowHelper']->display($this->steps, 'summary');
8 if (!empty($data['id'])) {
9 ?>
10 <div class="acym__automation__summary__info cell grid-x acym__content margin-top-2">
11 <h6 class="cell acym__title acym__title__secondary"><?php echo acym_translation('ACYM_INFORMATION'); ?></h6>
12 <?php if (!empty($data['automation']->admin)) {
13 $data['automation']->name = acym_translation($data['automation']->name);
14 $data['automation']->description = acym_translation($data['automation']->description);
15 } ?>
16 <div class="cell acym__automation__summary__information__one"><span class="acym__automation__summary__information__one__title"><?php echo acym_translation(
17 'ACYM_NAME_SUMMARY'
18 ); ?></span> : <?php echo acym_escape($data['automation']->name); ?></div>
19 <div class="cell acym__automation__summary__information__one"><span class="acym__automation__summary__information__one__title"><?php echo acym_translation(
20 'ACYM_DESCRIPTION'
21 ); ?></span> : <?php echo acym_escape($data['automation']->description); ?></div>
22 </div>
23 <div class="acym__automation__summary__filters cell grid-x margin-top-2 acym__content">
24 <h6 class="cell acym__title acym__title__secondary"><?php echo acym_translation('ACYM_TRIGGERS'); ?></h6>
25 <div class="cell acym__automation__summary__information__one"><span class="acym__automation__summary__information__one__title"><?php echo acym_translation(
26 'ACYM_AUTOMATION_TRIGGER'
27 ); ?></span></div>
28 <br />
29 <div class="cell acym__automation__summary__information__one">
30 <?php
31 foreach ($data['step']->triggers as $name => $oneTrigger) {
32 if (!is_string($oneTrigger)) {
33 $data['step']->triggers[$name] = acym_translation('ACYM_UNKNOWN');
34 }
35 }
36
37 echo implode(
38 '<br /><span class="acym__automation__summary__information__one__title">'.acym_translation('ACYM_OR').'</span><br />',
39 $data['step']->triggers
40 );
41 ?>
42 </div>
43 </div>
44 <div class="acym__automation__summary__actions cell grid-x margin-top-2 acym__content">
45 <h6 class="cell acym__title acym__title__secondary"><?php echo acym_translation('ACYM_CONDITIONS'); ?></h6>
46 <div class="cell acym__automation__summary__information__one grid-x">
47 <?php
48 if (!empty($data['condition']->conditions)) {
49 $orNum = 0;
50 $andNum = 0;
51 $typeTrigger = $data['condition']->conditions['type_condition'];
52 unset($data['condition']->conditions['type_condition']);
53 if (empty($data['condition']->conditions)) {
54 echo '<span class="acym__automation__summary__information__one__title">'.acym_translation(
55 'ACYM_YOU_DID_NOT_SET_CONDITION'
56 ).'</span></div><div class="acym__automation__summary__information__one">';
57 } else {
58 echo '<span class="acym__automation__summary__information__one__title">'.acym_translationSprintf(
59 'ACYM_CONDITIONS_APPLY_TO',
60 acym_translation($typeTrigger == 'classic' ? '' : 'ACYM_ONE_ACYMAILING_SUBSCRIBER_CONDITION')
61 ).'</span></div><div class="acym__automation__summary__information__one">';
62 foreach ($data['condition']->conditions as $or => $orValues) {
63 if ($or === 'type_condition') continue;
64 $andNum = 0;
65 if ($orNum > 0) echo '<span class="acym__automation__summary__information__one__title">'.acym_translation('ACYM_OR').'</span><br />';
66 foreach ($orValues as $and => $andValue) {
67 if ($andNum > 0) echo '<span class="acym__automation__summary__information__one__title">'.acym_translation('ACYM_AND').'</span><br />';
68 echo $andValue.'<br />';
69 $andNum++;
70 }
71 $orNum++;
72 }
73 }
74 } else {
75 echo '<strong class="acym__color__red cell text-center">'.acym_translation('ACYM_SELECT_CONDITIONS').'</strong>';
76 }
77 ?>
78 </div>
79 </div>
80 <?php } ?>
81 <div class="acym__automation__summary__actions cell grid-x margin-top-2 margin-bottom-2 acym__content">
82 <h6 class="cell acym__title acym__title__secondary"><?php echo acym_translation('ACYM_ACTIONS'); ?></h6>
83 <div class="cell acym__automation__summary__information__one grid-x">
84 <?php
85 if (!empty($data['action']->actions)) {
86 echo '<span class="acym__automation__summary__information__one__title">'.acym_translationSprintf(
87 'ACYM_ACTIONS_SUBSCRIBER_WILL',
88 acym_strtolower(acym_translation(empty($data['id']) ? 'ACYM_MASS_ACTION' : 'ACYM_AUTOMATION'))
89 ).'</span></div><div class="acym__automation__summary__information__one">';
90 $andNum = 0;
91 foreach ($data['action']->actions as $and => $andValue) {
92 if ($andNum > 0) echo '<span class="acym__automation__summary__information__one__title">'.acym_translation('ACYM_AND').'</span><br />';
93 echo $andValue.'<br />';
94 $andNum++;
95 }
96 } else {
97 echo '<strong class="acym__color__red cell text-center">'.acym_translation('ACYM_SELECT_ACTIONS').'</strong>';
98 }
99 ?>
100 </div>
101 </div>
102 <div class="acym__automation__summary__actions cell grid-x margin-top-1 margin-bottom-2 acym__content">
103 <h6 class="cell acym__title acym__title__secondary"><?php echo acym_translation('ACYM_ACTIONS_TARGETS'); ?></h6>
104 <div class="cell acym__automation__summary__information__one grid-x">
105 <?php
106 if (!empty($data['action']->filters)) {
107 $orNum = 0;
108 $andNum = 0;
109 echo '<span class="acym__automation__summary__information__one__title">'.acym_translationSprintf(
110 'ACYM_FILTERS_APPLY_TO',
111 acym_strtolower(acym_translation(empty($data['id']) ? 'ACYM_MASS_ACTION' : 'ACYM_AUTOMATION')),
112 acym_translation($data['action']->filters['type_filter'] == 'classic' ? 'ACYM_ALL_ACYMAILING_USERS' : 'ACYM_ONE_ACYMAILING_USER')
113 ).'</span></div><div class="acym__automation__summary__information__one">';
114 foreach ($data['action']->filters as $or => $orValues) {
115 if ($or === 'type_filter') continue;
116 $andNum = 0;
117 if ($orNum > 0) echo '<span class="acym__automation__summary__information__one__title">'.acym_translation('ACYM_OR').'</span><br />';
118 foreach ($orValues as $and => $andValue) {
119 if ($andNum > 0) echo '<span class="acym__automation__summary__information__one__title">'.acym_translation('ACYM_AND').'</span><br />';
120 echo $andValue.'<br />';
121 $andNum++;
122 }
123 $orNum++;
124 }
125 } else {
126 echo '<strong class="acym__color__red cell text-center">'.acym_translation('ACYM_SELECT_FILTERS').'</strong>';
127 }
128 ?>
129 </div>
130 </div>
131 <div class="cell grid-x grid-margin-x">
132 <div class="auto cell"></div>
133 <?php if (empty($data['id'])) { ?>
134 <button type="button" data-task="listing" class="cell shrink button-secondary button acy_button_submit"><?php echo acym_translation('ACYM_CANCEL'); ?></button>
135 <button type="button" data-task="processMassAction" class="cell shrink button acy_button_submit"><?php echo acym_translation(
136 'ACYM_PROCESS_MASS_ACTION'
137 ); ?></button>
138 <?php } else { ?>
139 <button type="button" data-task="listing" class="cell shrink button button-secondary acy_button_submit"><?php echo acym_translation(
140 'ACYM_SAVE_EXIT'
141 ); ?></button>
142 <button type="button" data-task="activeAutomation" class="cell shrink button acy_button_submit"><?php echo acym_translation(
143 'ACYM_ACTIVE_AUTOMATION'
144 ); ?></button>
145 <?php } ?>
146 </div>
147 </div>
148 <div class="cell auto"></div>
149 </div>
150 <?php acym_formOptions(); ?>
151 </form>
152