PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.0.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.0.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 / info.php

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

166 lines 10.1 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['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 <p id="acym__automation__info__group"
55 data-trigger-type="classic"
56 class="shrink cell <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'classic') ? 'selected-trigger' : (empty($data['type_trigger']) ? 'selected-trigger' : ''); ?> margin-right-2"><?php echo acym_translation(
57 'ACYM_CLASSIC_TRIGGER'
58 ); ?></p>
59 <p id="acym__automation__info__one-user"
60 data-trigger-type="user"
61 class="shrink cell <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'user') ? 'selected-trigger' : ''; ?>"><?php echo acym_translation(
62 'ACYM_TRIGGER_BASED_ON_USER_ACTIONS'
63 ); ?></p>
64 <div class="cell auto"></div>
65 </div>
66 <div class="acym__automation__info__choose__trigger cell grid-x grid-margin-x grid-margin-y"
67 id="acym__automation__info__choose__trigger__classic" <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'classic') ? '' : (empty($data['type_trigger']) ? '' : 'style="display: none"'); ?>>
68 <div class="cell large-6 acym__content acym_noshadow grid-x acym__automation__draggable">
69 <h6 class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_ALL_TRIGGER'); ?></h6>
70 <div class="cell acym__automation__all-trigger__classic grid-x">
71 <?php foreach ($data['classic'] as $key => $classic) {
72 echo '<div '.(in_array(
73 $key,
74 $data['defaultValues']
75 ) ? 'style="display: none"' : '').' class="acym__automation__trigger__droppable__classic margin-top-1 cell" data-trigger="'.acym_escape(
76 $key
77 ).'"><span class="acym__automation__trigger__name">'.$classic->name.'</span><span class="acym__automation__trigger__action">'.$classic->option.'</span></div>';
78 } ?>
79 </div>
80 </div>
81
82 <div class="cell large-6 acym__content acym_noshadow grid-x acym__automation__droppable__classic">
83 <h6 class="acym__title acym__title__secondary cell"><?php echo acym_translation('ACYM_EXECUTE_AUTOMATION'); ?></h6>
84 <div class="cell acym__automation__user-trigger__classic acym__automation__trigger__sortable">
85 <?php
86 if (count($data['defaultValues']) < 2) {
87 echo '<div class="cell margin-top-1 acym__automation__drag-here-text">'.acym_translation('ACYM_DRAG_YOUR_TRIGGERS').'</div>';
88 }
89 foreach ($data['classic'] as $key => $classic) {
90 if (!in_array($key, $data['defaultValues'])) continue;
91 ?>
92 <div class="acym__automation__droppable__trigger margin-top-1">
93 <div class="acym__automation__one__trigger">
94 <span class="acym__automation__trigger__name"><?php echo $classic->name; ?></span>
95 <span class="acym__automation__trigger__action"><?php echo $classic->option; ?></span>
96 </div>
97 <i data-trigger-show="<?php echo acym_escape($key); ?>"
98 class="acymicon-close acym__color__red acym__automation__delete__trigger cursor-pointer"></i>
99 </div>
100 <?php
101 }
102 ?>
103 </div>
104 </div>
105 </div>
106 <div class="acym__automation__info__choose__trigger cell grid-x grid-margin-x grid-margin-y"
107 id="acym__automation__info__choose__trigger__user" <?php echo (!empty($data['type_trigger']) && $data['type_trigger'] == 'user') ? '' : 'style="display: none"'; ?>>
108 <div class="cell large-6 acym__content grid-x acym__automation__draggable">
109 <h6 class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_ALL_TRIGGER'); ?></h6>
110 <div class="cell acym__automation__all-trigger__action grid-x">
111 <?php
112 foreach ($data['user'] as $key => $triggerUser) {
113 echo '<div '.(in_array(
114 $key,
115 $data['defaultValues']
116 ) ? 'style="display: none"' : '').' class="acym__automation__trigger__droppable__action margin-top-1 cell" data-trigger="'.acym_escape(
117 $key
118 ).'"><span class="acym__automation__trigger__name">'.$triggerUser->name.'</span><span class="acym__automation__trigger__action">'.$triggerUser->option.'</span></div>';
119 }
120 ?>
121 </div>
122 </div>
123
124 <div class="cell large-6 acym__content grid-x acym__automation__droppable__action">
125 <h6 class="acym__title acym__title__secondary cell"><?php echo acym_translation('ACYM_EXECUTE_AUTOMATION'); ?></h6>
126 <div class="cell acym__automation__user-trigger__action acym__automation__trigger__sortable">
127 <?php
128 if (count($data['defaultValues']) < 2) {
129 echo '<div class="cell margin-top-1 acym__automation__drag-here-text">'.acym_translation('ACYM_DRAG_YOUR_TRIGGERS').'</div>';
130 }
131 foreach ($data['user'] as $key => $triggerUser) {
132 if (!in_array($key, $data['defaultValues'])) continue;
133 ?>
134 <div class="acym__automation__droppable__trigger margin-top-1">
135 <div class="acym__automation__one__trigger"><span class="acym__automation__trigger__name"><?php echo $triggerUser->name; ?></span></b>
136 <span class="acym__automation__trigger__action"><?php echo $triggerUser->option; ?></span>
137 </div>
138 <i data-trigger-show="<?php echo acym_escape($key); ?>"
139 class="acymicon-close acym__color__red acym__automation__delete__trigger cursor-pointer"></i>
140 </div>
141 <?php
142 }
143 ?>
144 </div>
145 </div>
146 </div>
147 </div>
148 <div class="cell grid-x margin-top-2">
149 <div class="cell medium-shrink medium-margin-bottom-0 margin-bottom-1 text-left">
150 <?php echo acym_backToListing('automation'); ?>
151 </div>
152 <div class="cell medium-auto grid-x grid-margin-x text-right">
153 <div class="cell auto"></div>
154 <button class="cell medium-shrink button medium-margin-bottom-0 margin-bottom-1 acy_button_submit button-secondary"
155 type="button"
156 data-task="saveExitInfo"><?php echo acym_translation('ACYM_SAVE_EXIT'); ?></button>
157 <button class="cell medium-shrink button margin-bottom-0 acy_button_submit" type="button" data-task="saveInfo">
158 <?php echo acym_translation('ACYM_SAVE_CONTINUE'); ?>
159 </button>
160 </div>
161 </div>
162 </div>
163 </div>
164 <?php acym_formOptions(); ?>
165 </form>
166