| @@ -1,70 +1,0 @@ | ||
| 1 | -<?php | |
| 2 | -defined('ABSPATH') || die('Restricted Access'); | |
| 3 | -?> | |
| 4 | -<div id="acym_fulldiv_<?php echo esc_attr($form->form_tag_name); ?>" class="acym__subscription__form__shortcode acym__subscription__form-erase"> | |
| 5 | - <?php | |
| 6 | - if ($edition) { | |
| 7 | - echo '<form action="#" onsubmit="return false;" id="'.esc_attr($form->form_tag_name).'">'; | |
| 8 | - } else { | |
| 9 | - echo '<form action="'.esc_url($form->form_tag_action).'" id="'.esc_attr($form->form_tag_name).'" name="'.esc_attr( | |
| 10 | - $form->form_tag_name | |
| 11 | - ).'" enctype="multipart/form-data" onsubmit="return submitAcymForm(\'subscribe\',\''.esc_attr($form->form_tag_name).'\', \'acymSubmitSubForm\')">'; | |
| 12 | - } | |
| 13 | - include acym_getPartial('forms', 'fields'); | |
| 14 | - include acym_getPartial('forms', 'button'); | |
| 15 | - include acym_getPartial('forms', 'hidden_params'); | |
| 16 | - ?> | |
| 17 | - </form> | |
| 18 | -</div> | |
| 19 | -<style> | |
| 20 | - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode{ | |
| 21 | - height: <?php echo esc_html($form->settings['style']['size']['height']); ?>px; | |
| 22 | - max-width: <?php echo esc_html($form->settings['style']['size']['width']); ?>px; | |
| 23 | - background-color: <?php echo esc_html($form->settings['style']['background_color']); ?>; | |
| 24 | - color: <?php echo esc_html($form->settings['style']['text_color']); ?> !important; | |
| 25 | - padding: .5rem; | |
| 26 | - text-align: center; | |
| 27 | - display: flex; | |
| 28 | - justify-content: center; | |
| 29 | - align-items: center; | |
| 30 | - margin: 1rem auto; | |
| 31 | - } | |
| 32 | - | |
| 33 | - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode .responseContainer{ | |
| 34 | - margin-bottom: 0 !important; | |
| 35 | - padding: .4rem !important; | |
| 36 | - } | |
| 37 | - | |
| 38 | - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode <?php echo '#'.esc_html($form->form_tag_name); ?>{ | |
| 39 | - margin: 0; | |
| 40 | - } | |
| 41 | - | |
| 42 | - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode .acym__subscription__form__fields, <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode .acym__subscription__form__button{ | |
| 43 | - display: block; | |
| 44 | - width: 100%; | |
| 45 | - margin: 1rem 0 !important; | |
| 46 | - } | |
| 47 | - | |
| 48 | - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode .acym__subscription__form__fields .acym__subscription__form__lists{ | |
| 49 | - display: block; | |
| 50 | - width: 100%; | |
| 51 | - margin: 1rem 10px !important; | |
| 52 | - } | |
| 53 | - | |
| 54 | - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode .acym__subscription__form__fields > *:not(style){ | |
| 55 | - display: block; | |
| 56 | - } | |
| 57 | - | |
| 58 | - <?php if (!empty($form->settings['style']['position']) && in_array($form->settings['style']['position'], ['image-right', 'image-left'])) { ?> | |
| 59 | - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode <?php echo '#'.esc_html($form->form_tag_name); ?>{ | |
| 60 | - display: flex; | |
| 61 | - justify-content: center; | |
| 62 | - align-items: center | |
| 63 | - } | |
| 64 | - | |
| 65 | - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name).' '; ?>.acym__subscription__form__shortcode__fields-button, <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name).' '; ?>.acym__subscription__form__image{ | |
| 66 | - display: inline-block; | |
| 67 | - } | |
| 68 | - | |
| 69 | - <?php } ?> | |
| 70 | -</style> | |