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/Configuration/tmpl/data.php +0 -286 11.0.2 → 11.1.1 View file →
@@ -1,286 +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 -<div class="acym__content acym_area padding-vertical-1 padding-horizontal-2 margin-bottom-2">
6 - <div class="cell margin-bottom-2">
7 - <div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_CONFIDENTIALITY')); ?></div>
8 - <div class="grid-x grid-margin-x">
9 - <?php acym_switch([
10 - 'name' => 'config[gdpr_export]',
11 - 'value' => $this->config->get('gdpr_export'),
12 - 'label' => acym_translation('ACYM_GDPR_EXPORT_BUTTON'),
13 - 'labelClass' => 'xlarge-3 medium-5 small-9',
14 - 'toggle' => 'export_config',
15 - ]); ?>
16 - </div>
17 - <div class="grid-x grid-margin-x margin-top-1">
18 - <?php acym_switch([
19 - 'name' => 'config[gdpr_delete]',
20 - 'value' => $this->config->get('gdpr_delete'),
21 - 'label' => acym_translation('ACYM_GDPR_DELETE_BUTTON'),
22 - 'labelClass' => 'xlarge-3 medium-5 small-9',
23 - ]); ?>
24 - </div>
25 - <div class="grid-x grid-margin-x margin-top-1">
26 - <?php acym_switch([
27 - 'name' => 'config[dont_track_by_default]',
28 - 'value' => $this->config->get('dont_track_by_default', 0),
29 - 'label' => acym_translation('ACYM_DONT_TRACK_BY_DEFAULT'),
30 - 'labelClass' => 'xlarge-3 medium-5 small-9',
31 - 'tip' => ['textShownInTooltip' => 'ACYM_DONT_TRACK_BY_DEFAULT_DESC'],
32 - ]); ?>
33 - </div>
34 - <div class="grid-x grid-margin-x margin-top-1">
35 - <?php acym_switch([
36 - 'name' => 'config[user_tracking_control]',
37 - 'value' => $this->config->get('user_tracking_control', 0),
38 - 'label' => acym_translation('ACYM_USER_TRACKING_CONTROL'),
39 - 'labelClass' => 'xlarge-3 medium-5 small-9',
40 - ]); ?>
41 - </div>
42 - <div class="grid-x grid-margin-x margin-top-1">
43 - <label class="cell large-3" for="security_key">
44 - <?php echo esc_html(acym_translation('ACYM_IP_COLLECTION'));
45 - acym_info(['textShownInTooltip' => 'ACYM_IP_COLLECTION_DESC']); ?>
46 - </label>
47 - <div class="cell large-9">
48 - <div>
49 - <?php
50 - acym_select(
51 - [
52 - 'yes' => acym_translation('ACYM_YES'),
53 - 'anonymised' => acym_translation('ACYM_ANONYMISED'),
54 - 'no' => acym_translation('ACYM_NO'),
55 - ],
56 - 'config[ip_collection]',
57 - $this->config->get('ip_collection', 'yes'),
58 - [
59 - 'class' => 'acym__select intext_select',
60 - ],
61 - 'value',
62 - 'text',
63 - null,
64 - false,
65 - true
66 - );
67 - ?>
68 - </div>
69 - </div>
70 - </div>
71 - </div>
72 -
73 - <div class="cell margin-bottom-2">
74 - <div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_TRACKING')); ?></div>
75 -
76 - <div class="grid-x grid-margin-x margin-y">
77 - <label class="cell xlarge-3 small-5" for="from_as_replyto">
78 - <?php echo esc_html(acym_translation('ACYM_TRACKINGSYSTEM')); ?>
79 - </label>
80 - <div class="cell xlarge-9 small-7 acym_vcenter">
81 - <?php $trackingMode = $this->config->get('trackingsystem', 'acymailing'); ?>
82 -
83 - <input
84 - type="checkbox"
85 - name="config[trackingsystem][]"
86 - id="trackingsystem[0]"
87 - value="acymailing"
88 - <?php acym_checked(stripos($trackingMode, 'acymailing') !== false); ?>
89 - />
90 - <label for="trackingsystem[0]">AcyMailing<?php acym_info(['textShownInTooltip' => 'ACYM_TRACKINGSYSTEM_ACY_DESC']); ?></label>
91 -
92 - <input
93 - type="checkbox"
94 - name="config[trackingsystem][]"
95 - id="trackingsystem[1]"
96 - value="google"
97 - <?php acym_checked(stripos($trackingMode, 'google') !== false); ?>
98 - />
99 - <label for="trackingsystem[1]">Google Analytics<?php acym_info(['textShownInTooltip' => 'ACYM_TRACKINGSYSTEM_GA_DESC']); ?></label>
100 -
101 - <input type="hidden" name="config[trackingsystem][]" value="1" />
102 - </div>
103 - </div>
104 -
105 - <div class="grid-x grid-margin-x margin-y margin-top-1">
106 - <?php
107 - acym_switch([
108 - 'name' => 'config[trackingsystemexternalwebsite]',
109 - 'value' => $this->config->get('trackingsystemexternalwebsite'),
110 - 'label' => acym_translation('ACYM_TRACKINGSYSTEM_EXTERNAL_LINKS'),
111 - 'tip' => ['textShownInTooltip' => 'ACYM_TRACKINGSYSTEM_EXTERNAL_LINKS_DESC'],
112 - 'labelClass' => 'xlarge-3 medium-5 small-9',
113 - 'toggle' => 'external_config',
114 - ]);
115 - ?>
116 - </div>
117 - <div class="cell grid-x margin-y margin-top-1">
118 - <div class="cell medium-3">
119 - <label for="tracking_delay">
120 - <?php
121 - echo esc_html(acym_translation('ACYM_TRACKING_DELAY'));
122 - acym_info(
123 - [
124 - 'textShownInTooltip' => 'ACYM_TRACKING_DELAY_DESC',
125 - ]
126 - );
127 - ?>
128 - </label>
129 - </div>
130 - <div class="cell medium-9 grid-x">
131 - <div class="cell medium-6 large-4 xlarge-3 xxlarge-2">
132 - <input
133 - id="tracking_delay"
134 - type="number"
135 - class="intext_input"
136 - min="0"
137 - name="config[tracking_delay]"
138 - value="<?php echo intval($this->config->get('tracking_delay', 0)); ?>"
139 - />
140 - </div>
141 - </div>
142 - </div>
143 - </div>
144 - <div class="cell margin-bottom-2">
145 - <div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_DATA_MANAGEMENT')); ?></div>
146 - <?php if (acym_level(ACYM_ESSENTIAL)) { ?>
147 - <div class="grid-x grid-margin-x margin-y">
148 - <?php
149 - acym_switch([
150 - 'name' => 'config[delete_stats_enabled]',
151 - 'value' => $this->config->get('delete_stats_enabled', 0),
152 - 'label' => acym_translation('ACYM_DELETE_DETAILED_STATS_AFTER'),
153 - 'tip' => ['textShownInTooltip' => 'ACYM_DELETE_DETAILED_STATS_AFTER_DESC'],
154 - 'labelClass' => 'xlarge-3 medium-5 small-9',
155 - 'toggle' => 'delete_stats_enabled',
156 - ]); ?>
157 - <div class="cell grid-x" id="delete_stats_enabled">
158 - <?php
159 - $delayTypeAuto = $data['typeDelay'];
160 - $delayTypeAuto->display('config[delete_stats]', $this->config->get('delete_stats', 86400 * 360), \AcyMailing\Types\DelayType::TYPE_WEEKS_MONTHS);
161 - ?>
162 - </div>
163 - </div>
164 - <?php } ?>
165 - <div class="grid-x grid-margin-x margin-y margin-top-1">
166 - <?php
167 - acym_switch([
168 - 'name' => 'config[delete_user_history_enabled]',
169 - 'value' => $this->config->get('delete_user_history_enabled', 0),
170 - 'label' => acym_translation('ACYM_DELETE_USER_HISTORY_AFTER'),
171 - 'labelClass' => 'xlarge-3 medium-5 small-9',
172 - 'toggle' => 'delete_user_history_enabled',
173 - ]); ?>
174 - <div class="cell grid-x" id="delete_user_history_enabled">
175 - <?php
176 - $delayTypeAuto = $data['typeDelay'];
177 - $delayTypeAuto->display('config[delete_user_history]', $this->config->get('delete_user_history', 0), \AcyMailing\Types\DelayType::TYPE_WEEKS_MONTHS);
178 - ?>
179 - </div>
180 - </div>
181 - <div class="grid-x grid-margin-x margin-y margin-top-1">
182 - <?php
183 - acym_switch([
184 - 'name' => 'config[delete_archive_history_enabled]',
185 - 'value' => $this->config->get('delete_archive_history_enabled', 1),
186 - 'label' => acym_translation('ACYM_DELETE_ARCHIVE_HISTORY_AFTER'),
187 - 'labelClass' => 'xlarge-3 medium-5 small-9',
188 - 'toggle' => 'delete_archive_history_enabled',
189 - ]); ?>
190 - <div class="cell grid-x" id="delete_archive_history_enabled">
191 - <?php
192 - $delayTypeAuto = $data['typeDelay'];
193 - $delayTypeAuto->display(
194 - 'config[delete_archive_history_after]',
195 - $this->config->get('delete_archive_history_after', 86400 * 90),
196 - \AcyMailing\Types\DelayType::TYPE_WEEKS_MONTHS
197 - );
198 - ?>
199 - </div>
200 - </div>
201 - </div>
202 - <div class="cell margin-bottom-2">
203 - <div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_USER_DATA_MANAGEMENT')); ?></div>
204 - <div class="grid-x grid-margin-x margin-y">
205 - <?php
206 - acym_switch([
207 - 'name' => 'config[export_data_changes]',
208 - 'value' => $this->config->get('export_data_changes', 0),
209 - 'label' => acym_translation('ACYM_EXPORT_DATA_CHANGES'),
210 - 'tip' => ['textShownInTooltip' => 'ACYM_EXPORT_DATA_CHANGES_DESC'],
211 - 'labelClass' => 'xlarge-3 medium-5 small-9',
212 - 'toggle' => 'export_data_changes',
213 - ]); ?>
214 - <div id="export_data_changes" class="cell grid-x margin-top-1">
215 - <div class="cell grid-x">
216 - <label class="xlarge-3 medium-5 small-9"><?php echo esc_html(acym_translation('ACYM_SELECT_FIELDS_TO_EXPORT')); ?></label>
217 - <div class="cell xlarge-3 medium-5 small-9">
218 - <?php
219 - $exportDataFields = [];
220 - foreach ($data['fields'] as $oneExportField) {
221 - $exportDataFields[$oneExportField->id] = acym_translation($oneExportField->name);
222 - }
223 - acym_selectMultiple(
224 - $exportDataFields,
225 - 'config[export_data_changes_fields]',
226 - $data['export_data_changes_fields'],
227 - ['class' => 'acym__select'],
228 - 'value',
229 - 'text',
230 - true
231 - );
232 - ?>
233 - </div>
234 - </div>
235 - <div class="cell grid-x margin-top-1">
236 - <div class="cell xlarge-3 medium-5 small-9 grid-x">
237 - <button type="button" class="button button-secondary acy_button_submit cell shrink" data-task="downloadExportChangesFile">
238 - <?php echo esc_html(acym_translation('ACYM_EXPORT')); ?>
239 - </button>
240 - </div>
241 - <div class="cell xlarge-3 medium-5 small-9">
242 - <?php
243 - $choices = [1 => acym_translation('ACYM_CURRENT_MONTH'), 0 => acym_translation('ACYM_PREVIOUS_MONTH')];
244 - acym_select($choices, 'export_changes_file_current', 1, ['class' => 'acym__select'], 'value', 'text', null, false, true);
245 - ?>
246 - </div>
247 - </div>
248 - </div>
249 - </div>
250 - </div>
251 - <div class="cell margin-bottom-2">
252 - <div class="acym__title acym__title__secondary">
253 - <?php echo esc_html(acym_translation('ACYM_DATA_EXPORT_MANAGEMENT')); ?>
254 - </div>
255 -
256 - <div class="grid-x grid-margin-x margin-y">
257 - <label class="cell xlarge-3 medium-5 small-9">
258 - <?php
259 - echo esc_html(acym_translation('ACYM_CSV_SEPARATOR_CHOICE'));
260 - acym_info(
261 - [
262 - 'textShownInTooltip' => acym_translation('ACYM_CSV_SEPARATOR_CHOICE_DESC'),
263 - ]
264 - );
265 - ?>
266 - </label>
267 - <div class="cell xlarge-9 medium-7 small-12 acym_vcenter">
268 - <label class="margin-right-1">
269 - <input type="radio"
270 - name="config[csv_separator]"
271 - value=";"
272 - <?php acym_checked($this->config->get('csv_separator', ',') === ';'); ?> />
273 - ;
274 - </label>
275 -
276 - <label>
277 - <input type="radio"
278 - name="config[csv_separator]"
279 - value=","
280 - <?php acym_checked($this->config->get('csv_separator', ',') === ','); ?> />
281 - ,
282 - </label>
283 - </div>
284 - </div>
285 - </div>
286 -</div>