| @@ -1,35 +1,42 @@ | ||
| 1 | +<?php | |
| 2 | +defined('ABSPATH') || die('Restricted Access'); | |
| 3 | +?> | |
| 1 | 4 | <div id="acym__users__import__cms_users" class="grid-x padding-vertical-2 padding-horizontal-2"> |
| 2 | 5 | <div class="cell large-2"></div> |
| 3 | 6 | <div class="cell large-8"> |
| 4 | 7 | <div class="text-center"> |
| 5 | - <h6><?php echo acym_translationSprintf('ACYM_IMPORT_NB_WEBSITE_USERS', $data['nbUsersCMS']); ?></h6> | |
| 6 | - <h6><?php echo acym_translationSprintf('ACYM_IMPORT_NB_ACYM_USERS', $data['nbUsersAcymailing']); ?></h6> | |
| 8 | + <h6><?php echo wp_kses(acym_translationSprintf('ACYM_IMPORT_NB_WEBSITE_USERS', $data['nbUsersCMS']), ['b' => []]); ?></h6> | |
| 9 | + <h6><?php echo wp_kses(acym_translationSprintf('ACYM_IMPORT_NB_ACYM_USERS', $data['nbUsersAcymailing']), ['b' => []]); ?></h6> | |
| 7 | 10 | </div> |
| 8 | 11 | <br> |
| 9 | 12 | <div class="text-left"> |
| 10 | - <?php echo acym_translation('ACYM_IMPORT_CMS_1'); ?> | |
| 13 | + <?php echo esc_html(acym_translation('ACYM_IMPORT_CMS_1')); ?> | |
| 11 | 14 | <ol> |
| 12 | - <li><?php echo acym_translationSprintf('ACYM_IMPORT_CMS_2', ACYM_CMS_TITLE); ?></li> | |
| 13 | - <li><?php echo acym_translationSprintf('ACYM_IMPORT_CMS_3', ACYM_CMS_TITLE); ?></li> | |
| 14 | - <li><?php echo acym_translationSprintf('ACYM_IMPORT_CMS_4', ACYM_CMS_TITLE); ?></li> | |
| 15 | - <li><?php echo acym_translationSprintf('ACYM_IMPORT_CMS_5', ACYM_CMS_TITLE); ?></li> | |
| 15 | + <li><?php echo wp_kses(acym_translationSprintf('ACYM_IMPORT_CMS_2', ACYM_CMS_TITLE), ['b' => []]); ?></li> | |
| 16 | + <li><?php echo wp_kses(acym_translationSprintf('ACYM_IMPORT_CMS_3', ACYM_CMS_TITLE), ['b' => []]); ?></li> | |
| 17 | + <li><?php echo wp_kses(acym_translationSprintf('ACYM_IMPORT_CMS_4', ACYM_CMS_TITLE), ['b' => []]); ?></li> | |
| 18 | + <li><?php echo wp_kses(acym_translationSprintf('ACYM_IMPORT_CMS_5', ACYM_CMS_TITLE), ['b' => []]); ?></li> | |
| 16 | 19 | </ol> |
| 17 | 20 | </div> |
| 18 | 21 | |
| 19 | 22 | <div class="margin-top-1 grid-x"> |
| 20 | 23 | <div class="cell medium-5 acym_vcenter"> |
| 21 | - <?php echo acym_translation('ACYM_IMPORT_CMS_GROUPS').acym_info(['textShownInTooltip' => 'ACYM_IMPORT_CMS_GROUPS_DESC']); ?> | |
| 24 | + <?php echo esc_html(acym_translation('ACYM_IMPORT_CMS_GROUPS')); | |
| 25 | + acym_info(['textShownInTooltip' => 'ACYM_IMPORT_CMS_GROUPS_DESC']); ?> | |
| 22 | 26 | </div> |
| 23 | 27 | <div class="cell medium-7"> |
| 24 | 28 | <?php |
| 25 | - echo acym_selectMultiple( | |
| 29 | + acym_selectMultiple( | |
| 26 | 30 | acym_getGroups(), |
| 27 | 31 | 'groups', |
| 28 | 32 | explode(',', $this->config->get('import_groups', '')), |
| 29 | 33 | [ |
| 30 | 34 | 'class' => 'acym__select', |
| 31 | - ] | |
| 35 | + ], | |
| 36 | + 'value', | |
| 37 | + 'text', | |
| 38 | + true | |
| 32 | 39 | ); |
| 33 | 40 | ?> |
| 34 | 41 | </div> |
| 35 | 42 | </div> |
| @@ -35,11 +42,11 @@ | ||
| 35 | 42 | </div> |
| 36 | 43 | |
| 37 | 44 | <div class="cell grid-x grid-margin-x margin-top-2"> |
| 38 | 45 | <div class="cell hide-for-small-only medium-auto"></div> |
| 39 | - <?php echo acym_cancelButton('ACYM_CANCEL', '', 'button medium-6 large-shrink margin-bottom-0'); ?> | |
| 46 | + <?php acym_cancelButton('ACYM_CANCEL', '', 'button medium-6 large-shrink margin-bottom-0'); ?> | |
| 40 | 47 | <button data-open="acym__user__import__add-subscription__modal" type="button" class="button cell medium-shrink margin-bottom-0"> |
| 41 | - <?php echo acym_translation('ACYM_IMPORT'); ?> | |
| 48 | + <?php echo esc_html(acym_translation('ACYM_IMPORT')); ?> | |
| 42 | 49 | </button> |
| 43 | 50 | <button id="submit_import_cms" class="acym__import__submit is-hidden" data-from="cms"></button> |
| 44 | 51 | <div class="cell hide-for-small-only medium-auto"></div> |
| 45 | 52 | </div> |