| @@ -1,4 +1,8 @@ | ||
| 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 | +?> | |
| 1 | 5 | <div id="acym__wysid__top-toolbar" class="grid-x cell"> |
| 2 | 6 | <div class="cell grid-x" id="acym__wysid__top-toolbar__actions"> |
| 3 | 7 | <div class="cell grid-x align-left small-4 acym_vcenter "> |
| 4 | 8 | <i id="acym__wysid__top-toolbar__undo" class="cell shrink acymicon-rotate-left acym__wysid__top-toolbar__icon"></i> |
| @@ -5,16 +9,18 @@ | ||
| 5 | 9 | <p class="cell shrink">|</p> |
| 6 | 10 | <i id="acym__wysid__top-toolbar__redo" class="cell shrink acymicon-repeat acym__wysid__top-toolbar__icon"></i> |
| 7 | 11 | </div> |
| 8 | 12 | <div class="cell grid-x auto small-4 hide-for-small-only align-center acym_vcenter"> |
| 9 | - <p class="cell shrink acym__wysid__top-toolbar__icon margin-right-1"><?php echo acym_translation('ACYM_PREVIEW'); ?></p> | |
| 13 | + <p class="cell shrink acym__wysid__top-toolbar__icon margin-right-1"><?php echo esc_html(acym_translation('ACYM_PREVIEW')); ?></p> | |
| 10 | 14 | <i id="acym__wysid__view__desktop" class="cell shrink acymicon-desktop text-center acym__wysid__top-toolbar__icon"></i> |
| 11 | 15 | <i id="acym__wysid__view__smartphone" class="cell shrink acymicon-mobile text-center acym__wysid__top-toolbar__icon"></i> |
| 12 | 16 | </div> |
| 13 | 17 | <div class="cell grid-x small-4 align-right"> |
| 14 | 18 | <?php if (!empty($data['mail']) && $data['mail']->type == $data['mailClass']::TYPE_OVERRIDE) { ?> |
| 15 | - <a href="<?php echo ACYM_DOCUMENTATION.'main-pages/email-overrides/edition'; ?>" class="cell small-6 medium-shrink margin-bottom-0 acym_vcenter" target="_blank"> | |
| 16 | - <i class="acymicon-book acym__wysid__top-toolbar__button__icon" data-acym-tooltip="<?php echo acym_translation('ACYM_DOCUMENTATION'); ?>"></i> | |
| 19 | + <a href="<?php echo esc_url(ACYM_DOCUMENTATION.'main-pages/email-overrides/edition'); ?>" | |
| 20 | + class="cell small-6 medium-shrink margin-bottom-0 acym_vcenter" | |
| 21 | + target="_blank"> | |
| 22 | + <i class="acymicon-book acym__wysid__top-toolbar__button__icon" data-acym-tooltip="<?php echo esc_attr(acym_translation('ACYM_DOCUMENTATION')); ?>"></i> | |
| 17 | 23 | </a> |
| 18 | 24 | <?php } ?> |
| 19 | 25 | <?php |
| 20 | 26 | $ctrl = acym_getVar('cmd', 'ctrl', 'dashboard'); |
| @@ -25,22 +31,23 @@ | ||
| 25 | 31 | |
| 26 | 32 | if (acym_isAdmin() && ($isCampaign || $isWelcomeOrUnsub) && acym_isAllowed('mails')) { |
| 27 | 33 | ?> |
| 28 | 34 | <button id="acym__wysid__saveastmpl__button" type="button" class="cell small-6 medium-shrink margin-bottom-0 margin-right-0"> |
| 29 | - <i class="acymicon-content-copy acym__wysid__top-toolbar__button__icon" data-acym-tooltip="<?php echo acym_translation('ACYM_SAVE_AS_TMPL'); ?>"></i> | |
| 35 | + <i class="acymicon-content-copy acym__wysid__top-toolbar__button__icon" | |
| 36 | + data-acym-tooltip="<?php echo esc_attr(acym_translation('ACYM_SAVE_AS_TMPL')); ?>"></i> | |
| 30 | 37 | </button> |
| 31 | 38 | <?php } ?> |
| 32 | 39 | <?php if (acym_isAllowed('mails')) { ?> |
| 33 | 40 | <button id="acym__wysid__test__button" type="button" class="cell small-6 medium-shrink margin-bottom-0"> |
| 34 | - <i class="acymicon-paper-plane acym__wysid__top-toolbar__button__icon" data-acym-tooltip="<?php echo acym_translation('ACYM_SEND_TEST'); ?>"></i> | |
| 41 | + <i class="acymicon-paper-plane acym__wysid__top-toolbar__button__icon" data-acym-tooltip="<?php echo esc_attr(acym_translation('ACYM_SEND_TEST')); ?>"></i> | |
| 35 | 42 | </button> |
| 36 | 43 | <?php } ?> |
| 37 | 44 | <p class="acym__color__white margin-bottom-0 margin-right-1" style="font-size: 26px">|</p> |
| 38 | 45 | <button id="acym__wysid__cancel__button" type="button" class="cell small-6 medium-shrink margin-bottom-0 margin-right-1"> |
| 39 | - <i class="acymicon-ban acym__wysid__top-toolbar__button__icon" data-acym-tooltip="<?php echo acym_translation('ACYM_CANCEL'); ?>"></i> | |
| 46 | + <i class="acymicon-ban acym__wysid__top-toolbar__button__icon" data-acym-tooltip="<?php echo esc_attr(acym_translation('ACYM_CANCEL')); ?>"></i> | |
| 40 | 47 | </button> |
| 41 | 48 | <button id="acym__wysid__save__button" type="button" class="cell small-6 medium-shrink margin-bottom-0"> |
| 42 | - <i class="acymicon-floppy-o acym__wysid__top-toolbar__button__icon" data-acym-tooltip="<?php echo acym_translation('ACYM_APPLY'); ?>"></i> | |
| 49 | + <i class="acymicon-floppy-o acym__wysid__top-toolbar__button__icon" data-acym-tooltip="<?php echo esc_attr(acym_translation('ACYM_APPLY')); ?>"></i> | |
| 43 | 50 | </button> |
| 44 | 51 | </div> |
| 45 | 52 | </div> |
| 46 | 53 | <div class="cell grid-x align-left acym_vcenter" id="acym__wysid__top-toolbar__notification"> |