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