| 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 |
]); ?> |
| 15 |
</div> |
| 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 |
]); |
| 25 |
?> |
| 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"> |
| 43 |
<?php if (acym_isAllowed('mails')) { ?> |
| 44 |
<a class="button button-secondary margin-bottom-1" |
| 45 |
href="<?php echo esc_url( |
| 46 |
acym_completeLink('mails&task=edit¬ification=acy_confirm&return='.urlencode(base64_encode(acym_completeLink('configuration')))) |
| 47 |
); ?>"> |
| 48 |
<?php echo esc_html(acym_translation('ACYM_EDIT_EMAIL')); ?> |
| 49 |
</a> |
| 50 |
<?php } ?> |
| 51 |
</div> |
| 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"> |
| 64 |
<?php |
| 65 |
echo esc_html(acym_translation('ACYM_ALLOW_MODIFICATION_UNAUTH')); |
| 66 |
echo ' '; |
| 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> |
| 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 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¬ification='.$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> |
| 152 |
<?php |
| 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"> |
| 160 |
<?php |
| 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 |
]); |
| 168 |
?> |
| 169 |
</div> |
| 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"> |
| 217 |
<?php if (!empty($this->config->get('unsubscribe_logo'))) { ?> |
| 218 |
<?php echo esc_html($this->config->get('unsubscribe_logo')); ?> |
| 219 |
<i class="acymicon-trash-o acym__color__red acym__unsub__logo__remove margin-left-1"></i> |
| 220 |
<?php } ?> |
| 221 |
</span> |
| 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"> |
| 248 |
<?php if (!empty($this->config->get('unsubscribe_image'))) { ?> |
| 249 |
<?php echo esc_html($this->config->get('unsubscribe_image')); ?> |
| 250 |
<i class="acymicon-trash-o acym__color__red acym__unsub__image__remove margin-left-1"></i> |
| 251 |
<?php } ?> |
| 252 |
</span> |
| 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> |
| 285 |
<?php |
| 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 |
<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="1" |
| 300 |
value=""> |
| 301 |
</div> |
| 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> |
| 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> |
| 326 |
</div> |
| 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> |
| 350 |
</div> |
| 351 |
<?php if ('joomla' === ACYM_CMS) { |
| 352 |
include acym_getPartial('joomla', 'media_modal'); |
| 353 |
} ?> |
| 354 |
</div> |
| 355 |
</div> |
| 356 |
</div> |
| 357 |
</div> |
| 358 |
|
| 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> |
| 368 |
</div> |
| 369 |
|
| 370 |
<?php |
| 371 |
if (!acym_isPluginActive('acymtriggers')) { |
| 372 |
acym_display(acym_translationSprintf('ACYM_NEEDS_SYSTEM_PLUGIN', 'AcyMailing - Joomla integration'), 'error', false); |
| 373 |
} |
| 374 |
?> |
| 375 |
|
| 376 |
<div id="acym__configuration__subscription__integration-cms" style="display:none;"> |
| 377 |
<div class="grid-x margin-y"> |
| 378 |
<div class="cell grid-x grid-margin-x"> |
| 379 |
<?php |
| 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 |
]); |
| 387 |
?> |
| 388 |
</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> |
| 412 |
|
| 413 |
<?php acym_trigger('onRegacyUseExternalPlugins', []); ?> |
| 414 |
|
| 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> |
| 444 |
|
| 445 |
<div class="cell xlarge-3 medium-5"> |
| 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']); ?> |
| 449 |
</label> |
| 450 |
</div> |
| 451 |
<div class="cell xlarge-4 medium-7"> |
| 452 |
<?php |
| 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 |
| 461 |
); |
| 462 |
?> |
| 463 |
</div> |
| 464 |
<div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div> |
| 465 |
|
| 466 |
<div class="cell xlarge-3 medium-5"> |
| 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']); ?> |
| 470 |
</label> |
| 471 |
</div> |
| 472 |
<div class="cell xlarge-4 medium-7"> |
| 473 |
<?php |
| 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 |
| 482 |
); |
| 483 |
?> |
| 484 |
</div> |
| 485 |
<div class="cell xlarge-5 hide-for-medium-only hide-for-small-only"></div> |
| 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> |
| 556 |
</div> |
| 557 |
</div> |
| 558 |
</div> |
| 559 |
|
| 560 |
<?php |
| 561 |
acym_trigger('onRegacyOptionsDisplay', [$data['lists']]); |
| 562 |
|