| @@ -1,20 +1,22 @@ | ||
| 1 | -<?php if (!empty($form->settings['image']['url'])) { ?> | |
| 1 | +<?php | |
| 2 | +defined('ABSPATH') || die('Restricted Access'); | |
| 3 | +if (!empty($form->settings['image']['url'])) { ?> | |
| 2 | 4 | <div class="acym__subscription__form__image"> |
| 3 | - <img src="<?php echo $form->settings['image']['url']; ?>" | |
| 4 | - alt="" | |
| 5 | - width="<?php echo $form->settings['image']['size']['width']; ?>" | |
| 6 | - height="<?php echo $form->settings['image']['size']['height']; ?>"> | |
| 5 | + <img src="<?php echo esc_url($form->settings['image']['url']); ?>" | |
| 6 | + alt="" | |
| 7 | + width="<?php echo esc_attr($form->settings['image']['size']['width']); ?>" | |
| 8 | + height="<?php echo esc_attr($form->settings['image']['size']['height']); ?>"> | |
| 7 | 9 | </div> |
| 8 | 10 | <style> |
| 9 | - <?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__image{ | |
| 11 | + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name).' '; ?>.acym__subscription__form__image{ | |
| 10 | 12 | text-align: center; |
| 11 | 13 | } |
| 12 | 14 | |
| 13 | - <?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__image img{ | |
| 15 | + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name).' '; ?>.acym__subscription__form__image img{ | |
| 14 | 16 | display: inline-block; |
| 15 | - width: <?php echo $form->settings['image']['size']['width']; ?>px; | |
| 16 | - height: <?php echo $form->settings['image']['size']['height']; ?>px; | |
| 17 | + width: <?php echo esc_html($form->settings['image']['size']['width']); ?>px; | |
| 18 | + height: <?php echo esc_html($form->settings['image']['size']['height']); ?>px; | |
| 17 | 19 | margin: 0 1rem; |
| 18 | 20 | } |
| 19 | 21 | </style> |
| 20 | 22 | <?php } ?> |