PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.1.4
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.1.4
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.1.4, at back/Views/Configuration/tmpl/subscription.php

544 lines 24.7 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('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('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'); ?>">
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('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('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('mails&task=edit&notification='.$identifier); ?>">
139 <?php echo acym_translation('ACYM_EDIT_EMAIL'); ?>
140 </a>
141 <?php } ?>
142 </div>
143 <div class="cell xxlarge-2 xlarge-1 hide-for-large-only medium-2 hide-for-small-only"></div>
144 </div>
145 <?php
146 }
147 ?>
148 </div>
149 <div class="cell margin-bottom-2">
150 <div class="acym__title acym__title__secondary"><?php echo acym_translation('ACYM_UNSUBSCRIBE_PAGE'); ?></div>
151 <div class="grid-x grid-margin-x margin-y">
152 <div class="cell grid-x margin-top-1">
153 <?php
154 echo acym_switch(
155 'config[unsubscribe_page]',
156 $this->config->get('unsubscribe_page', 1),
157 acym_translation('ACYM_REDIRECT_ON_UNSUBSCRIBE_PAGE'),
158 [],
159 'xlarge-3 medium-5 small-9',
160 'auto',
161 '',
162 'unsubpage_settings'
163 );
164 ?>
165 </div>
166 <div class="cell grid-x margin-bottom-1" id="unsubpage_settings">
167 <div class="cell grid-x margin-bottom-1">
168 <?php
169 echo acym_switch(
170 'config[unsubscribe_campaign_list_only]',
171 $this->config->get('unsubscribe_campaign_list_only', 0),
172 acym_translation('ACYM_CAMPAIGN_LIST_ONLY'),
173 [],
174 'xlarge-3'
175 );
176 ?>
177 </div>
178 <div class="cell grid-x margin-bottom-1">
179 <label for="acym__configuration__subscription__unsub-title" class="cell xlarge-3"><?php echo acym_translation(
180 'ACYM_UNSUBSCRIBE_PAGE_CHANGE'
181 ); ?></label>
182 <input id="acym__configuration__subscription__unsub-title"
183 class="cell xlarge-4 large-5 medium-6"
184 type="text"
185 name="config[unsubscribe_title]"
186 value="<?php echo acym_escape($this->config->get('unsubscribe_title', '')); ?>">
187 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
188 </div>
189 <div class="cell grid-x margin-bottom-1">
190 <label for="acym__config__settings__color-picker" class="cell xlarge-3"><?php echo acym_translation(
191 'ACYM_UNSUBSCRIBE_PAGE_COLOR'
192 ); ?></label>
193 <p class="cell margin-bottom-1 small-6" id="acym__config__settings__unsub-color">
194 <input type="text"
195 name="config[unsubscribe_color]"
196 id="acym__config__settings__color-picker"
197 value="<?php echo acym_escape($this->config->get('unsubscribe_color', '#00a4ff')); ?>" />
198 </p>
199 </div>
200 <div class="cell grid-x margin-bottom-1">
201 <label for="acym__configuration__subscription__unsub-logo" class="cell xlarge-3"><?php echo acym_translation(
202 'ACYM_UNSUBSCRIBE_PAGE_LOGO'
203 ); ?></label>
204 <button type="button" class="cell shrink button button-secondary margin-bottom-0" id="acym__unsubscribe__logo">
205 <?php echo acym_translation('ACYM_UPLOAD_IMAGE'); ?>
206 </button>
207 <span class="cell grid-x acym_vcenter shrink acym__unsub__logo__text margin-left-1">
208 <?php if (!empty($this->config->get('unsubscribe_logo'))) { ?>
209 <?php echo $this->config->get('unsubscribe_logo'); ?>
210 <i class="acymicon-trash-o acym__color__red acym__unsub__logo__remove margin-left-1"></i>
211 <?php } ?>
212 </span>
213 <input type="hidden" id="acym__unsubscribe__logo_value" name="config[unsubscribe_logo]" value="<?php echo $this->config->get('unsubscribe_logo'); ?>">
214 </div>
215 <div class="cell grid-x margin-bottom-1">
216 <?php
217 echo acym_switch(
218 'config[display_unsub_image]',
219 $this->config->get('display_unsub_image', 1),
220 acym_translation('ACYM_DISPLAY_UNSUBSCRIBE_IMAGE'),
221 [],
222 'xlarge-3 medium-5 small-9',
223 'auto',
224 '',
225 'unsub_image'
226 );
227 ?>
228 </div>
229 <div class="cell grid-x margin-bottom-1" id="unsub_image">
230 <label for="acym__configuration__subscription__unsub-image" class="cell xlarge-3"><?php echo acym_translation(
231 'ACYM_UNSUBSCRIBE_PAGE_IMAGE'
232 ); ?></label>
233 <button type="button" class="cell shrink button button-secondary margin-bottom-0" id="acym__unsubscribe__image">
234 <?php echo acym_translation('ACYM_UPLOAD_IMAGE'); ?>
235 </button>
236 <span class="cell shrink grid-x acym_vcenter acym__unsub__image__text margin-left-1">
237 <?php if (!empty($this->config->get('unsubscribe_image'))) { ?>
238 <?php echo $this->config->get('unsubscribe_image'); ?>
239 <i class="acymicon-trash-o acym__color__red acym__unsub__image__remove margin-left-1"></i>
240 <?php } ?>
241 </span>
242 <input type="hidden" id="acym__unsubscribe__image_value" name="config[unsubscribe_image]" value="<?php echo $this->config->get('unsubscribe_image'); ?>">
243 </div>
244 <div class="cell grid-x margin-bottom-1" id="acym__configuration__unsubscription__survey">
245 <?php
246 echo acym_switch(
247 'config[unsubpage_survey]',
248 $this->config->get('unsubpage_survey', 0),
249 acym_translation('ACYM_UNSUBSCRIBE_PAGE_SURVEY'),
250 [],
251 'xlarge-3',
252 'auto',
253 '',
254 'acym__configuration__unsubscription__survey-text'
255 );
256 ?>
257 </div>
258 <div class="cell grid-x margin-bottom-1" id="acym__configuration__unsubscription__survey-text">
259 <?php
260 if (acym_isMultilingual()) { ?>
261 <div class="cell grid-x">
262 <?php
263 if (!empty($data['translation_languages'])) {
264 echo acym_displayLanguageRadio(
265 $data['translation_languages'],
266 'config[unsub_survey_translation]',
267 $this->config->get('unsub_survey_translation', ''),
268 acym_translation('ACYM_CUSTOM_SURVEY_LANGUAGE'),
269 [],
270 'configuration_subscription'
271 );
272 } ?>
273 </div>
274 <?php
275 } ?>
276 <div class="cell grid-x acym__customs__change margin-bottom-1" id="acym__customs__answer">
277 <label class="cell large-3 margin-top-1" for="unsubscribe_survey">
278 <?php echo acym_translation('ACYM_CUSTOM_SURVEY').acym_info('ACYM_CUSTOM_SURVEY_DESC'); ?>
279 </label>
280 <div class="cell grid-x acym__listing">
281 <div class="acym__customs__answers__listing__sortable cell medium-6 grid-x">
282 <?php if (empty($data['surveyAnswers'])) { ?>
283 <div class="grid-x cell acym__customs__answers acym__content acym_noshadow grid-margin-x margin-y">
284 <input type="text"
285 name="config[unsub_survey][]"
286 class="cell medium-10 acym__customs__answer__answer"
287 data-response="1"
288 value="">
289 </div>
290 <?php } else {
291 $i = 0;
292 foreach ($data['surveyAnswers'] as $answer) { ?>
293 <div class="grid-x cell acym__customs__answers acym__content acym_noshadow grid-margin-x margin-y">
294 <input type="text"
295 name="config[unsub_survey][]"
296 class="cell medium-10 acym__customs__answer__answer"
297 data-response="<?php echo $i; ?>"
298 value="<?php echo acym_escape($answer); ?>">
299 <?php
300 if ($i > 0) { ?>
301 <i class=" cell acymicon-close small-1 acym__color__red cursor-pointer acym__custom__delete__value"></i>
302 <?php } ?>
303 </div>
304 <?php $i++;
305 } ?>
306 <?php } ?>
307 </div>
308 </div>
309 <button type="button" class="cell button button-secondary margin-top-1" id="acym__custom_answer__add-answer"><?php echo acym_translation(
310 'ACYM_ADD_ANSWER'
311 ); ?></button>
312 </div>
313 </div>
314 <?php if (acym_isMultilingual()) { ?>
315 <div class="cell grid-x margin-top-1">
316 <?php
317 echo acym_switch(
318 'config[unsubpage_languages_multi_only]',
319 $this->config->get('unsubpage_languages_multi_only', 0),
320 acym_translation('ACYM_UNSUBSCRIBE_USED_LANGUAGE').acym_info('ACYM_UNSUBSCRIBE_USED_LANGUAGE_DESC'),
321 [],
322 'xlarge-3 medium-5 small-9'
323 );
324 ?>
325 </div>
326 <?php } ?>
327 <label for="acym__configuration__subscription__unsub-url" class="cell grid-x margin-bottom-1 margin-top-1">
328 <span class="cell xlarge-3 medium-5 acym_vcenter"><?php echo acym_translation('ACYM_REDIRECTION_URL'); ?></span>
329 <input id="acym__configuration__subscription__unsub-url"
330 class="cell xlarge-4 medium-auto margin-bottom-0"
331 type="text"
332 name="config[unsub_redirect_url]"
333 value="<?php echo acym_escape($this->config->get('unsub_redirect_url'), ''); ?>">
334 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
335 </label>
336 </div>
337 <?php if ('joomla' === ACYM_CMS) {
338 include acym_getPartial('joomla', 'media_modal');
339 } ?>
340 </div>
341 </div>
342 </div>
343 </div>
344
345 <!-- CMS Integration -->
346 <div class="acym__configuration__subscription acym__content acym_area padding-vertical-1 padding-horizontal-2">
347 <div class="cell grid-x acym__configuration__showmore-head">
348 <div class="acym__title acym__title__secondary cell auto margin-bottom-0">
349 <?php echo acym_translationSprintf('ACYM_XX_INTEGRATION', ACYM_CMS_TITLE); ?>
350 </div>
351 <div class="cell shrink">
352 <?php echo acym_showMore('acym__configuration__subscription__integration-cms'); ?>
353 </div>
354 </div>
355
356 <?php
357 if (!acym_isPluginActive('acymtriggers')) {
358 acym_display(acym_translationSprintf('ACYM_NEEDS_SYSTEM_PLUGIN', 'AcyMailing - Joomla integration'), 'error', false);
359 }
360 ?>
361
362 <div id="acym__configuration__subscription__integration-cms" style="display:none;">
363 <div class="grid-x margin-y">
364 <div class="cell grid-x grid-margin-x">
365 <?php
366 echo acym_switch(
367 'config[regacy]',
368 $this->config->get('regacy'),
369 acym_translation('ACYM_CREATE_SUBSCRIBER_FOR_CMS_USER'),
370 [],
371 'xlarge-3 medium-5 small-9',
372 'auto',
373 '',
374 'acym__config__regacy'
375 );
376 ?>
377 </div>
378 <div class="cell grid-x margin-y" id="acym__config__regacy">
379 <div class="cell grid-x grid-margin-x">
380 <?php
381 echo acym_switch(
382 'config[regacy_forceconf]',
383 $this->config->get('regacy_forceconf'),
384 acym_translation('ACYM_SEND_CONF_REGACY'),
385 [],
386 'xlarge-3 medium-5 small-9',
387 'auto',
388 '',
389 'regforceconf_config'
390 );
391 ?>
392 </div>
393 <div class="cell grid-x grid-margin-x">
394 <?php
395 echo acym_switch(
396 'config[regacy_delete]',
397 $this->config->get('regacy_delete'),
398 acym_translation('ACYM_DELETE_SUBSCRIBER_OF_CMS_USER'),
399 [],
400 'xlarge-3 medium-5 small-9',
401 'auto',
402 '',
403 'regdelete_config'
404 );
405 ?>
406 </div>
407
408 <?php acym_trigger('onRegacyUseExternalPlugins', []); ?>
409
410 <div class="cell xlarge-3 medium-5">
411 <label for="acym__config__regacy-text" title="<?php echo acym_escape(acym_translation('ACYM_SUBSCRIBE_CAPTION_DESC')); ?>">
412 <?php echo acym_escape(acym_translation('ACYM_SUBSCRIBE_CAPTION')); ?>
413 </label>
414 </div>
415 <div class="cell xlarge-4 medium-7">
416 <input type="text" name="config[regacy_text]" id="acym__config__regacy-text" value="<?php echo acym_escape($this->config->get('regacy_text')); ?>" />
417 </div>
418 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
419 <div class="cell xlarge-3 medium-5">
420 <label for="acym__config__regacy-lists">
421 <?php echo acym_translation('ACYM_DISPLAYED_LISTS').acym_info('ACYM_DISPLAYED_LISTS_DESC'); ?>
422 </label>
423 </div>
424 <div class="cell xlarge-4 medium-7">
425 <?php
426 echo acym_selectMultiple(
427 $data['lists'],
428 'config[regacy_lists]',
429 explode(',', $this->config->get('regacy_lists', '')),
430 ['class' => 'acym__select', 'id' => 'acym__config__regacy-lists'],
431 'id',
432 'name'
433 );
434 ?>
435 </div>
436 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
437
438 <div class="cell xlarge-3 medium-5">
439 <label for="acym__config__regacy-checkedlists">
440 <?php echo acym_translation('ACYM_LISTS_CHECKED_DEFAULT').acym_info('ACYM_LISTS_CHECKED_DEFAULT_DESC'); ?>
441 </label>
442 </div>
443 <div class="cell xlarge-4 medium-7">
444 <?php
445 echo acym_selectMultiple(
446 $data['lists'],
447 'config[regacy_checkedlists]',
448 explode(',', $this->config->get('regacy_checkedlists', '')),
449 ['class' => 'acym__select', 'id' => 'acym__config__regacy-checkedlists'],
450 'id',
451 'name'
452 );
453 ?>
454 </div>
455 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
456
457 <div class="cell xlarge-3 medium-5">
458 <label for="acym__config__regacy-autolists">
459 <?php echo acym_translation('ACYM_AUTO_SUBSCRIBE_TO').acym_info('ACYM_AUTO_SUBSCRIBE_TO_DESC'); ?>
460 </label>
461 </div>
462 <div class="cell xlarge-4 medium-7">
463 <?php
464 echo acym_selectMultiple(
465 $data['lists'],
466 'config[regacy_autolists]',
467 explode(',', $this->config->get('regacy_autolists', '')),
468 ['class' => 'acym__select', 'id' => 'acym__config__regacy-autolists'],
469 'id',
470 'name'
471 );
472 ?>
473 </div>
474 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
475
476
477 <?php
478 if ('joomla' === ACYM_CMS) {
479 ?>
480 <div class="cell xlarge-3 medium-5">
481 <label for="acym__config__regacy-listsposition">
482 <?php echo acym_escape(acym_translation('ACYM_LISTS_POSITION')); ?>
483 </label>
484 </div>
485 <div class="cell xlarge-4 medium-7">
486 <?php
487 echo acym_select(
488 acym_getOptionRegacyPosition(),
489 'config[regacy_listsposition]',
490 $this->config->get('regacy_listsposition', 'password'),
491 [
492 'class' => 'acym__select',
493 'data-toggle-select' => '{"custom":"#acym__config__regacy__custom-list-position"}',
494 ],
495 'value',
496 'text',
497 'acym__config__regacy-listsposition'
498 );
499 ?>
500 </div>
501 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
502
503 <div class="cell grid-x" id="acym__config__regacy__custom-list-position">
504 <div class="cell xlarge-3 medium-5"></div>
505 <div class="cell xlarge-4 medium-7">
506 <input type="text" name="config[regacy_listspositioncustom]" value="<?php echo acym_escape($this->config->get('regacy_listspositioncustom')); ?>" />
507 </div>
508 </div>
509 <div class="cell xlarge-3 medium-5">
510 <label for="acym__config__regacy-listsposition">
511 <?php echo acym_escape(acym_translation('ACYM_HTML_REGISTRATION_FORM_STRUCTURE')).acym_info('ACYM_HTML_REGISTRATION_FORM_STRUCTURE_DESC'); ?>
512 </label>
513 </div>
514 <div class="cell xlarge-4 medium-7">
515 <?php
516 $customHtmlElement = [
517 acym_selectOption('', 'ACYM_AUTOMATIC'),
518 acym_selectOption('li', 'li'),
519 acym_selectOption('div', 'div'),
520 acym_selectOption('p', 'p'),
521 acym_selectOption('dd', 'dd'),
522 ];
523
524 echo acym_select(
525 $customHtmlElement,
526 'config[regacy_customhtmlelement]',
527 $this->config->get('regacy_customhtmlelement', ''),
528 ['class' => 'acym__select'],
529 'value',
530 'text',
531 'acym__config__regacy-customhtmlelement'
532 );
533 ?>
534 </div>
535 <div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div>
536 <?php } ?>
537 </div>
538 </div>
539 </div>
540 </div>
541
542 <?php
543 acym_trigger('onRegacyOptionsDisplay', [$data['lists']]);
544