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