| @@ -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 class="acym__subscription__form__button"> |
| 2 | 6 | <?php |
| 3 | 7 | if (empty($form->settings['button']['text'])) { |
| 4 | 8 | $form->settings['button']['text'] = 'ACYM_SUBSCRIBE'; |
| @@ -15,24 +19,24 @@ | ||
| 15 | 19 | } |
| 16 | 20 | } |
| 17 | 21 | ?> |
| 18 | 22 | <button type="submit"> |
| 19 | - <?php echo acym_escape(acym_translation($form->settings['button']['text'])); ?> | |
| 23 | + <?php echo esc_html(acym_translation($form->settings['button']['text'])); ?> | |
| 20 | 24 | </button> |
| 21 | 25 | <style> |
| 22 | - <?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__button{ | |
| 26 | + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name).' '; ?>.acym__subscription__form__button{ | |
| 23 | 27 | display: flex; |
| 24 | 28 | justify-content: center; |
| 25 | 29 | align-items: center |
| 26 | 30 | } |
| 27 | 31 | |
| 28 | - <?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__button button{ | |
| 29 | - background-color: <?php echo $form->settings['button']['background_color']; ?>; | |
| 30 | - color: <?php echo $form->settings['button']['text_color']; ?>; | |
| 31 | - border-width: <?php echo $form->settings['button']['border_size']; ?>px; | |
| 32 | - border-style: <?php echo $form->settings['button']['border_type']; ?>; | |
| 33 | - border-color: <?php echo $form->settings['button']['border_color']; ?>; | |
| 34 | - border-radius: <?php echo $form->settings['button']['border_radius']; ?>px; | |
| 35 | - padding: <?php echo $form->settings['button']['size']['height']; ?>px <?php echo $form->settings['button']['size']['width']; ?>px; | |
| 32 | + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name).' '; ?>.acym__subscription__form__button button{ | |
| 33 | + background-color: <?php echo esc_html($form->settings['button']['background_color']); ?>; | |
| 34 | + color: <?php echo esc_html($form->settings['button']['text_color']); ?>; | |
| 35 | + border-width: <?php echo esc_html($form->settings['button']['border_size']); ?>px; | |
| 36 | + border-style: <?php echo esc_html($form->settings['button']['border_type']); ?>; | |
| 37 | + border-color: <?php echo esc_html($form->settings['button']['border_color']); ?>; | |
| 38 | + border-radius: <?php echo esc_html($form->settings['button']['border_radius']); ?>px; | |
| 39 | + padding: <?php echo esc_html($form->settings['button']['size']['height']); ?>px <?php echo esc_html($form->settings['button']['size']['width']); ?>px; | |
| 36 | 40 | } |
| 37 | 41 | </style> |
| 38 | 42 | </div> |