| @@ -1,17 +1,20 @@ | ||
| 1 | +<?php | |
| 2 | +defined('ABSPATH') || die('Restricted Access'); | |
| 3 | +?> | |
| 1 | 4 | <div id="acym__wysid__send__test" class="cell grid-y" style="display: flex"> |
| 2 | 5 | <div class="cell text-center margin-bottom-3 margin-top-1"> |
| 3 | 6 | <i class="acymicon-paper-plane acym__wysid__send__test__icon"></i> |
| 4 | - <div class="acym__wysid__send__test__icon__loader"><?php echo acym_loaderLogo(); ?></div> | |
| 7 | + <div class="acym__wysid__send__test__icon__loader"><?php acym_loaderLogo(); ?></div> | |
| 5 | 8 | </div> |
| 6 | 9 | <i class="acymicon-close acym__wysid__send__test-close"></i> |
| 7 | 10 | <div class="cell acym__wysid__send__test__title margin-bottom-2 acym__title acym__title__secondary"> |
| 8 | - <?php echo acym_translation('ACYM_SEE_HOW_AMAZING_YOUR_EMAIL'); ?> | |
| 11 | + <?php echo esc_html(acym_translation('ACYM_SEE_HOW_AMAZING_YOUR_EMAIL')); ?> | |
| 9 | 12 | </div> |
| 10 | - <label for="acym__wysid__send__test__select"><?php echo acym_translation('ACYM_SEND_TEST_TO'); ?></label> | |
| 13 | + <label for="acym__wysid__send__test__select"><?php echo esc_html(acym_translation('ACYM_SEND_TEST_TO')); ?></label> | |
| 11 | 14 | <?php |
| 12 | 15 | if (acym_isAdmin()) { |
| 13 | - echo acym_selectMultiple( | |
| 16 | + acym_selectMultiple( | |
| 14 | 17 | $this->emailsTest, |
| 15 | 18 | 'emails_test', |
| 16 | 19 | $this->emailsTest, |
| 17 | 20 | [ |
| @@ -16,22 +19,25 @@ | ||
| 16 | 19 | $this->emailsTest, |
| 17 | 20 | [ |
| 18 | 21 | 'class' => 'acym__multiselect__email', |
| 19 | 22 | 'placeholder' => acym_translation('ACYM_TEST_ADDRESS'), |
| 20 | - ] | |
| 23 | + ], | |
| 24 | + 'value', | |
| 25 | + 'text', | |
| 26 | + true | |
| 21 | 27 | ); |
| 22 | 28 | } else { |
| 23 | - echo '<input type="text" name="emails_test" value="'.acym_escape(implode(',', $this->emailsTest)).'">'; | |
| 29 | + echo '<input type="text" name="emails_test" value="'.esc_attr(implode(',', $this->emailsTest)).'">'; | |
| 24 | 30 | } |
| 25 | 31 | ?> |
| 26 | 32 | <label class="margin-top-1"> |
| 27 | - <?php echo acym_translation('ACYM_TEST_NOTE'); ?> | |
| 33 | + <?php echo esc_html(acym_translation('ACYM_TEST_NOTE')); ?> | |
| 28 | 34 | <textarea |
| 29 | 35 | id="acym__wysid__send__test__note" |
| 30 | 36 | name="test_note" |
| 31 | 37 | type="text" |
| 32 | - placeholder="<?php echo acym_translation('ACYM_TEST_NOTE_PLACEHOLDER'); ?>"></textarea> | |
| 38 | + placeholder="<?php echo esc_attr(acym_translation('ACYM_TEST_NOTE_PLACEHOLDER')); ?>"></textarea> | |
| 33 | 39 | </label> |
| 34 | 40 | <div class="cell grid-x align-center acym__wysid__send__test__container__button"> |
| 35 | - <button type="button" class="cell shrink button" id="acym__wysid__send__test__button"><?php echo acym_translation('ACYM_SAVE_AND_SEND_TEST'); ?></button> | |
| 41 | + <button type="button" class="cell shrink button" id="acym__wysid__send__test__button"><?php echo esc_html(acym_translation('ACYM_SAVE_AND_SEND_TEST')); ?></button> | |
| 36 | 42 | </div> |
| 37 | 43 | </div> |