PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.10.2
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.10.2
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 / Configuration / tmpl / subscription.php

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

549 lines 25.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="acym__configuration__subscription acym__content acym_area padding-vertical-1 padding-horizontal-2">
2 <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_SUBSCRIPTION'); ?></div>
3 <div class="grid-x margin-y">
4 <div class="cell grid-x grid-margin-x">
5 <?php echo acym_switch(
6 'config[allow_visitor]',
7 $this->config->get('allow_visitor'),
8 acym_translation('ACYM_ALLOW_VISITOR'),
9 [],
10 'xlarge-3 medium-5 small-9',
11 'auto'
12 ); ?>
13 </div>
14 <div class="cell grid-x grid-margin-x">
15 <?php
16 echo acym_switch(
17 'config[generate_name]',
18 $this->config->get('generate_name'),
19 acym_translation('ACYM_GENERATE_NAME').acym_info(['textShownInTooltip' => 'ACYM_GENERATE_NAME_DESC']),
20 [],
21 'xlarge-3 medium-5 small-9',
22 'auto'
23 );
24 ?>
25 </div>
26 <div class="cell grid-x grid-margin-x">
27 <?php
28 echo acym_switch(
29 'config[require_confirmation]',
30 $this->config->get('require_confirmation'),
31 acym_translation('ACYM_REQUIRE_CONFIRMATION').acym_info(['textShownInTooltip' => 'ACYM_REQUIRE_CONFIRMATION_DESC']),
32 [],
33 'xlarge-3 medium-5 small-9',
34 'auto',
35 '',
36 'confirm_config'
37 );
38 ?>
39 </div>
40 <div class="cell grid-x" id="confirm_config">
41 <div class="cell grid-x">
42 <div class="cell xlarge-3 medium-5"></div>
43 <div class="cell medium-auto">
44 <?php if (acym_isAllowed('mails')) { ?>
45 <a class="button button-secondary margin-bottom-1"
46 href="<?php echo acym_completeLink('mails&task=edit&notification=acy_confirm&return='.urlencode(base64_encode(acym_completeLink('configuration')))); ?>">
47 <?php echo acym_translation('ACYM_EDIT_EMAIL'); ?>
48 </a>
49 <?php } ?>
50 </div>
51 </div>
52 <label for="confirm_redirect" class="cell grid-x margin-bottom-1">
53 <span class="cell xlarge-3 medium-5 acym_vcenter"><?php echo acym_translation('ACYM_CONFIRMATION_REDIRECTION'); ?></span>
54 <input id="confirm_redirect"
55 class="cell xlarge-4 medium-auto margin-bottom-0"
56 type="text"
57 name="config[confirm_redirect]"
58 value="<?php echo acym_escape($this->config->get('confirm_redirect')); ?>">
59 <span class="cell large-auto hide-for-large-only hide-for-medium-only"></span>
60 </label>
61 </div>
62 <div class="cell medium-3">
63 <?php
64 echo acym_translation('ACYM_ALLOW_MODIFICATION_UNAUTH');
65 echo '&nbsp;'.acym_info(['textShownInTooltip' => 'ACYM_ALLOW_MODIFICATION_DESC']);
66 ?>
67 </div>
68 <div class="cell medium-9">
69 <?php
70 $allowModif = [
71 'none' => acym_translation('ACYM_NO'),
72 'data' => acym_translation('ACYM_ALLOW_ONLY_THEIRS'),
73 'all' => acym_translation('ACYM_YES'),
74 ];
75 echo acym_radio($allowModif, 'config[allow_modif]', $this->config->get('allow_modif', 'data'));
76 ?>
77 </div>
78 <div class="cell grid-x grid-margin-x">
79 <?php
80 echo acym_switch(
81 'config[extra_errors]',
82 $this->config->get('extra_errors'),
83 acym_translation('ACYM_EXTRA_ERRORS').acym_info(['textShownInTooltip' => 'ACYM_EXTRA_ERRORS_DESC']),
84 [],
85 'xlarge-3 medium-5 small-9',
86 'auto',
87 '',
88 'extra_errors'
89 );
90 ?>
91 </div>
92 </div>
93 </div>
94
95 <div class="acym__content acym_area padding-vertical-1 padding-horizontal-2">
96 <div class="cell grid-x acym__configuration__showmore-head">
97 <div class="acym__title acym__title__secondary cell auto margin-bottom-0"><?php echo acym_translation('ACYM_CONFIGURATION_ADVANCED'); ?></div>
98 <div class="cell shrink">
99 <?php echo acym_showMore('acym__configuration__subscription__notifications'); ?>
100 </div>
101 </div>
102 <div id="acym__configuration__subscription__notifications" style="display: none;">
103 <div class="cell margin-bottom-2 grid-x margin-y">
104 <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_NOTIFICATIONS'); ?></div>
105 <?php
106 foreach ($data['notifications'] as $identifier => $notification) {
107 ?>
108 <div class="cell grid-x grid-margin-x">
109 <div class="cell xlarge-3">
110 <label for="acym__config__<?php echo acym_escape($identifier); ?>">
111 <?php echo acym_escape(acym_translation($notification['label'])); ?>
112 </label>
113 </div>
114 <div class="cell xlarge-4 large-5 medium-6">
115 <?php
116 $saved = explode(',', $this->config->get($identifier));
117 $selected = [];
118 foreach ($saved as $i => $value) {
119 if (acym_isValidEmail($value)) {
120 $selected[$value] = $value;
121 }
122 }
123
124 echo acym_selectMultiple(
125 $selected,
126 'config['.acym_escape($identifier).']',
127 $selected,
128 [
129 'id' => 'acym__config__'.acym_escape($identifier),
130 'class' => 'acym__multiselect__email',
131 ]
132 );
133 ?>
134 </div>
135 <div class="cell large-2 medium-4 shrink grid-x">
136 <?php if (acym_isAllowed('mails')) { ?>
137 <a class="cell shrink button button-secondary acym__configuration__edit-email"
138 href="<?php echo acym_completeLink(
139 'mails&task=edit&notification='.$identifier.'&return='.urlencode(base64_encode(acym_completeLink('configuration')))
140 ); ?>">
141 <?php echo acym_translation('ACYM_EDIT_EMAIL'); ?>
142 </a>
143 <?php } ?>
144 </div>
145 <div class="cell xxlarge-2 xlarge-1 hide-for-large-only medium-2 hide-for-small-only"></div>
146 </div>
147 <?php
148 }
149 ?>
150 </div>
151 <div class="cell margin-bottom-2">
152 <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_UNSUBSCRIBE_PAGE'); ?></div>
153 <div class="grid-x grid-margin-x margin-y">
154 <div class="cell grid-x margin-top-1">
155 <?php
156 echo acym_switch(
157 'config[unsubscribe_page]',
158 $this->config->get('unsubscribe_page', 1),
159 acym_translation('ACYM_REDIRECT_ON_UNSUBSCRIBE_PAGE'),
160 [],
161 'xlarge-3 medium-5 small-9',
162 'auto',
163 '',
164 'unsubpage_settings'
165 );
166 ?>
167 </div>
168 <div class="cell grid-x margin-bottom-1" id="unsubpage_settings">
169 <div class="cell grid-x margin-bottom-1">
170 <?php
171 echo acym_switch(
172 'config[unsubscribe_campaign_list_only]',
173 $this->config->get('unsubscribe_campaign_list_only', 0),
174 acym_translation('ACYM_CAMPAIGN_LIST_ONLY'),
175 [],
176 'xlarge-3'
177 );
178 ?>
179 </div>
180 <div class="cell grid-x margin-bottom-1">
181 <label for="acym__configuration__subscription__unsub-title" class="cell xlarge-3"><?php echo acym_translation(
182 'ACYM_UNSUBSCRIBE_PAGE_CHANGE'
183 ); ?></label>
184 <input id="acym__configuration__subscription__unsub-title"
185 class="cell xlarge-4 large-5 medium-6"
186 type="text"
187 name="config[unsubscribe_title]"
188 value="<?php echo acym_escape($this->config->get('unsubscribe_title', '')); ?>">
189 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
190 </div>
191 <div class="cell grid-x margin-bottom-1">
192 <label for="acym__config__settings__color-picker" class="cell xlarge-3"><?php echo acym_translation(
193 'ACYM_UNSUBSCRIBE_PAGE_COLOR'
194 ); ?></label>
195 <p class="cell margin-bottom-1 small-6" id="acym__config__settings__unsub-color">
196 <input type="text"
197 name="config[unsubscribe_color]"
198 id="acym__config__settings__color-picker"
199 value="<?php echo acym_escape($this->config->get('unsubscribe_color', '#00a4ff')); ?>" />
200 </p>
201 </div>
202 <div class="cell grid-x margin-bottom-1">
203 <label for="acym__configuration__subscription__unsub-logo" class="cell xlarge-3"><?php echo acym_translation(
204 'ACYM_UNSUBSCRIBE_PAGE_LOGO'
205 ); ?></label>
206 <button type="button" class="cell shrink button button-secondary margin-bottom-0" id="acym__unsubscribe__logo">
207 <?php echo acym_translation('ACYM_UPLOAD_IMAGE'); ?>
208 </button>
209 <span class="cell grid-x acym_vcenter shrink acym__unsub__logo__text margin-left-1">
210 <?php if (!empty($this->config->get('unsubscribe_logo'))) { ?>
211 <?php echo $this->config->get('unsubscribe_logo'); ?>
212 <i class="acymicon-trash-o acym__color__red acym__unsub__logo__remove margin-left-1"></i>
213 <?php } ?>
214 </span>
215 <input type="hidden" id="acym__unsubscribe__logo_value" name="config[unsubscribe_logo]" value="<?php echo $this->config->get('unsubscribe_logo'); ?>">
216 </div>
217 <div class="cell grid-x margin-bottom-1">
218 <?php
219 echo acym_switch(
220 'config[display_unsub_image]',
221 $this->config->get('display_unsub_image', 1),
222 acym_translation('ACYM_DISPLAY_UNSUBSCRIBE_IMAGE'),
223 [],
224 'xlarge-3 medium-5 small-9',
225 'auto',
226 '',
227 'unsub_image'
228 );
229 ?>
230 </div>
231 <div class="cell grid-x margin-bottom-1" id="unsub_image">
232 <label for="acym__configuration__subscription__unsub-image" class="cell xlarge-3"><?php echo acym_translation(
233 'ACYM_UNSUBSCRIBE_PAGE_IMAGE'
234 ); ?></label>
235 <button type="button" class="cell shrink button button-secondary margin-bottom-0" id="acym__unsubscribe__image">
236 <?php echo acym_translation('ACYM_UPLOAD_IMAGE'); ?>
237 </button>
238 <span class="cell shrink grid-x acym_vcenter acym__unsub__image__text margin-left-1">
239 <?php if (!empty($this->config->get('unsubscribe_image'))) { ?>
240 <?php echo $this->config->get('unsubscribe_image'); ?>
241 <i class="acymicon-trash-o acym__color__red acym__unsub__image__remove margin-left-1"></i>
242 <?php } ?>
243 </span>
244 <input type="hidden" id="acym__unsubscribe__image_value" name="config[unsubscribe_image]" value="<?php echo $this->config->get('unsubscribe_image'); ?>">
245 </div>
246 <div class="cell grid-x margin-bottom-1" id="acym__configuration__unsubscription__survey">
247 <?php
248 echo acym_switch(
249 'config[unsubpage_survey]',
250 $this->config->get('unsubpage_survey', 0),
251 acym_translation('ACYM_UNSUBSCRIBE_PAGE_SURVEY'),
252 [],
253 'xlarge-3',
254 'auto',
255 '',
256 'acym__configuration__unsubscription__survey-text'
257 );
258 ?>
259 </div>
260 <div class="cell grid-x margin-bottom-1" id="acym__configuration__unsubscription__survey-text">
261 <?php
262 if (acym_isMultilingual()) { ?>
263 <div class="cell grid-x">
264 <?php
265 if (!empty($data['translation_languages'])) {
266 echo acym_displayLanguageRadio(
267 $data['translation_languages'],
268 'config[unsub_survey_translation]',
269 $this->config->get('unsub_survey_translation', ''),
270 acym_translation('ACYM_CUSTOM_SURVEY_LANGUAGE'),
271 [],
272 'configuration_subscription'
273 );
274 } ?>
275 </div>
276 <?php
277 } ?>
278 <div class="cell grid-x acym__customs__change margin-bottom-1" id="acym__customs__answer">
279 <label class="cell large-3 margin-top-1" for="unsubscribe_survey">
280 <?php echo acym_translation('ACYM_CUSTOM_SURVEY').acym_info(['textShownInTooltip' => 'ACYM_CUSTOM_SURVEY_DESC']); ?>
281 </label>
282 <div class="cell grid-x acym__listing">
283 <div class="acym__customs__answers__listing__sortable cell medium-6 grid-x">
284 <?php if (empty($data['surveyAnswers'])) { ?>
285 <div class="grid-x cell acym__customs__answers acym__content acym_noshadow grid-margin-x margin-y">
286 <input type="text"
287 name="config[unsub_survey][]"
288 class="cell medium-10 acym__customs__answer__answer"
289 data-response="1"
290 value="">
291 </div>
292 <?php } else {
293 $i = 0;
294 foreach ($data['surveyAnswers'] as $answer) { ?>
295 <div class="grid-x cell acym__customs__answers acym__content acym_noshadow grid-margin-x margin-y">
296 <input type="text"
297 name="config[unsub_survey][]"
298 class="cell medium-10 acym__customs__answer__answer"
299 data-response="<?php echo $i; ?>"
300 value="<?php echo acym_escape($answer); ?>">
301 <?php
302 if ($i > 0) { ?>
303 <i class=" cell acymicon-close small-1 acym__color__red cursor-pointer acym__custom__delete__value"></i>
304 <?php } ?>
305 </div>
306 <?php $i++;
307 } ?>
308 <?php } ?>
309 </div>
310 </div>
311 <button type="button" class="cell button button-secondary margin-top-1" id="acym__custom_answer__add-answer"><?php echo acym_translation(
312 'ACYM_ADD_ANSWER'
313 ); ?></button>
314 </div>
315 </div>
316 <?php if (acym_isMultilingual()) { ?>
317 <div class="cell grid-x margin-top-1">
318 <?php
319 echo acym_switch(
320 'config[unsubpage_languages_multi_only]',
321 $this->config->get('unsubpage_languages_multi_only', 0),
322 acym_translation('ACYM_UNSUBSCRIBE_USED_LANGUAGE').acym_info(['textShownInTooltip' => 'ACYM_UNSUBSCRIBE_USED_LANGUAGE_DESC']),
323 [],
324 'xlarge-3 medium-5 small-9'
325 );
326 ?>
327 </div>
328 <?php } ?>
329 <label for="acym__configuration__subscription__unsub-url" class="cell grid-x margin-bottom-1 margin-top-1">
330 <span class="cell xlarge-3 medium-5 acym_vcenter"><?php echo acym_translation('ACYM_REDIRECTION_URL'); ?></span>
331 <input id="acym__configuration__subscription__unsub-url"
332 class="cell xlarge-4 medium-auto margin-bottom-0"
333 type="text"
334 name="config[unsub_redirect_url]"
335 value="<?php echo acym_escape($this->config->get('unsub_redirect_url'), ''); ?>">
336 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
337 </label>
338 </div>
339 <?php if ('joomla' === ACYM_CMS) {
340 include acym_getPartial('joomla', 'media_modal');
341 } ?>
342 </div>
343 </div>
344 </div>
345 </div>
346
347 <!-- CMS Integration -->
348 <div class="acym__configuration__subscription acym__content acym_area padding-vertical-1 padding-horizontal-2">
349 <div class="cell grid-x acym__configuration__showmore-head">
350 <div class="acym__title acym__title__secondary cell auto margin-bottom-0">
351 <?php echo acym_translationSprintf('ACYM_XX_INTEGRATION', ACYM_CMS_TITLE); ?>
352 </div>
353 <div class="cell shrink">
354 <?php echo acym_showMore('acym__configuration__subscription__integration-cms'); ?>
355 </div>
356 </div>
357
358 <?php
359 if (!acym_isPluginActive('acymtriggers')) {
360 acym_display(acym_translationSprintf('ACYM_NEEDS_SYSTEM_PLUGIN', 'AcyMailing - Joomla integration'), 'error', false);
361 }
362 ?>
363
364 <div id="acym__configuration__subscription__integration-cms" style="display:none;">
365 <div class="grid-x margin-y">
366 <div class="cell grid-x grid-margin-x">
367 <?php
368 echo acym_switch(
369 'config[regacy]',
370 $this->config->get('regacy'),
371 acym_translation('ACYM_CREATE_SUBSCRIBER_FOR_CMS_USER'),
372 [],
373 'xlarge-3 medium-5 small-9',
374 'auto',
375 '',
376 'acym__config__regacy'
377 );
378 ?>
379 </div>
380 <div class="cell grid-x margin-y" id="acym__config__regacy">
381 <div class="cell grid-x grid-margin-x">
382 <?php
383 echo acym_switch(
384 'config[regacy_forceconf]',
385 $this->config->get('regacy_forceconf'),
386 acym_translation('ACYM_SEND_CONF_REGACY'),
387 [],
388 'xlarge-3 medium-5 small-9',
389 'auto',
390 '',
391 'regforceconf_config'
392 );
393 ?>
394 </div>
395 <div class="cell grid-x grid-margin-x">
396 <?php
397 echo acym_switch(
398 'config[regacy_delete]',
399 $this->config->get('regacy_delete'),
400 acym_translation('ACYM_DELETE_SUBSCRIBER_OF_CMS_USER'),
401 [],
402 'xlarge-3 medium-5 small-9',
403 'auto',
404 '',
405 'regdelete_config'
406 );
407 ?>
408 </div>
409
410 <?php acym_trigger('onRegacyUseExternalPlugins', []); ?>
411
412 <div class="cell xlarge-3 medium-5">
413 <label for="acym__config__regacy-text" title="<?php echo acym_escape(acym_translation('ACYM_SUBSCRIBE_CAPTION_DESC')); ?>">
414 <?php echo acym_escape(acym_translation('ACYM_SUBSCRIBE_CAPTION')); ?>
415 </label>
416 </div>
417 <div class="cell xlarge-4 medium-7">
418 <input type="text" name="config[regacy_text]" id="acym__config__regacy-text" value="<?php echo acym_escape($this->config->get('regacy_text')); ?>" />
419 </div>
420 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
421 <div class="cell xlarge-3 medium-5">
422 <label for="acym__config__regacy-lists">
423 <?php echo acym_translation('ACYM_DISPLAYED_LISTS').acym_info(['textShownInTooltip' => 'ACYM_DISPLAYED_LISTS_DESC']); ?>
424 </label>
425 </div>
426 <div class="cell xlarge-4 medium-7">
427 <?php
428 echo acym_selectMultiple(
429 $data['lists'],
430 'config[regacy_lists]',
431 explode(',', $this->config->get('regacy_lists', '')),
432 ['class' => 'acym__select', 'id' => 'acym__config__regacy-lists'],
433 'id',
434 'name'
435 );
436 ?>
437 </div>
438 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
439
440 <div class="cell xlarge-3 medium-5">
441 <label for="acym__config__regacy-checkedlists">
442 <?php echo acym_translation('ACYM_LISTS_CHECKED_DEFAULT').acym_info(['textShownInTooltip' => 'ACYM_LISTS_CHECKED_DEFAULT_DESC']); ?>
443 </label>
444 </div>
445 <div class="cell xlarge-4 medium-7">
446 <?php
447 echo acym_selectMultiple(
448 $data['lists'],
449 'config[regacy_checkedlists]',
450 explode(',', $this->config->get('regacy_checkedlists', '')),
451 ['class' => 'acym__select', 'id' => 'acym__config__regacy-checkedlists'],
452 'id',
453 'name'
454 );
455 ?>
456 </div>
457 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
458
459 <div class="cell xlarge-3 medium-5">
460 <label for="acym__config__regacy-autolists">
461 <?php echo acym_translation('ACYM_AUTO_SUBSCRIBE_TO').acym_info(['textShownInTooltip' => 'ACYM_AUTO_SUBSCRIBE_TO_DESC']); ?>
462 </label>
463 </div>
464 <div class="cell xlarge-4 medium-7">
465 <?php
466 echo acym_selectMultiple(
467 $data['lists'],
468 'config[regacy_autolists]',
469 explode(',', $this->config->get('regacy_autolists', '')),
470 ['class' => 'acym__select', 'id' => 'acym__config__regacy-autolists'],
471 'id',
472 'name'
473 );
474 ?>
475 </div>
476 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
477
478
479 <?php
480 if ('joomla' === ACYM_CMS) {
481 ?>
482 <div class="cell xlarge-3 medium-5">
483 <label for="acym__config__regacy-listsposition">
484 <?php echo acym_escape(acym_translation('ACYM_LISTS_POSITION')); ?>
485 </label>
486 </div>
487 <div class="cell xlarge-4 medium-7">
488 <?php
489 echo acym_select(
490 acym_getOptionRegacyPosition(),
491 'config[regacy_listsposition]',
492 $this->config->get('regacy_listsposition', 'password'),
493 [
494 'class' => 'acym__select',
495 'data-toggle-select' => '{"custom":"#acym__config__regacy__custom-list-position"}',
496 ],
497 'value',
498 'text',
499 'acym__config__regacy-listsposition'
500 );
501 ?>
502 </div>
503 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
504
505 <div class="cell grid-x" id="acym__config__regacy__custom-list-position">
506 <div class="cell xlarge-3 medium-5"></div>
507 <div class="cell xlarge-4 medium-7">
508 <input type="text" name="config[regacy_listspositioncustom]" value="<?php echo acym_escape($this->config->get('regacy_listspositioncustom')); ?>" />
509 </div>
510 </div>
511 <div class="cell xlarge-3 medium-5">
512 <label for="acym__config__regacy-listsposition">
513 <?php
514 echo acym_escape(acym_translation('ACYM_HTML_REGISTRATION_FORM_STRUCTURE'));
515 echo acym_info(['textShownInTooltip' => 'ACYM_HTML_REGISTRATION_FORM_STRUCTURE_DESC']);
516 ?>
517 </label>
518 </div>
519 <div class="cell xlarge-4 medium-7">
520 <?php
521 $customHtmlElement = [
522 acym_selectOption('', 'ACYM_AUTOMATIC'),
523 acym_selectOption('li', 'li'),
524 acym_selectOption('div', 'div'),
525 acym_selectOption('p', 'p'),
526 acym_selectOption('dd', 'dd'),
527 ];
528
529 echo acym_select(
530 $customHtmlElement,
531 'config[regacy_customhtmlelement]',
532 $this->config->get('regacy_customhtmlelement', ''),
533 ['class' => 'acym__select'],
534 'value',
535 'text',
536 'acym__config__regacy-customhtmlelement'
537 );
538 ?>
539 </div>
540 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
541 <?php } ?>
542 </div>
543 </div>
544 </div>
545 </div>
546
547 <?php
548 acym_trigger('onRegacyOptionsDisplay', [$data['lists']]);
549