| 1 |
<div id="acym_fulldiv_<?php echo $form->form_tag_name; ?>" class="acym__subscription__form__footer acym__subscription__form-erase"> |
| 2 |
<?php |
| 3 |
if ($edition) { |
| 4 |
echo '<form action="#" onsubmit="return false;" id="'.$form->form_tag_name.'">'; |
| 5 |
} else { |
| 6 |
$cookieExpirationAttr = empty($form->settings['cookie']['cookie_expiration']) ? 'acym-data-cookie="1"' : 'acym-data-cookie="'.$form->settings['cookie']['cookie_expiration'].'"'; |
| 7 |
echo '<form acym-data-id="'.$form->id.'" '.$cookieExpirationAttr.' action="'.$form->form_tag_action.'" id="'.$form->form_tag_name.'" name="'.$form->form_tag_name.'" enctype="multipart/form-data" onsubmit="return submitAcymForm(\'subscribe\',\''.$form->form_tag_name.'\', \'acymSubmitSubForm\')">'; |
| 8 |
} |
| 9 |
$files = [ |
| 10 |
0 => $form->settings['style']['position'] == 'button-right' ? 'fields' : 'button', |
| 11 |
1 => $form->settings['style']['position'] == 'button-right' ? 'button' : 'fields', |
| 12 |
]; |
| 13 |
include acym_getPartial('forms', $files[0]); |
| 14 |
include acym_getPartial('forms', $files[1]); |
| 15 |
include acym_getPartial('forms', 'hidden_params'); |
| 16 |
?> |
| 17 |
</form> |
| 18 |
</div> |
| 19 |
<style> |
| 20 |
<?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__footer{ |
| 21 |
position: fixed; |
| 22 |
bottom: 0; |
| 23 |
right: 0; |
| 24 |
left: 0; |
| 25 |
height: <?php echo $form->settings['style']['size']['height'];?>px; |
| 26 |
background-color: <?php echo $form->settings['style']['background_color'];?>; |
| 27 |
color: <?php echo $form->settings['style']['text_color'];?> !important; |
| 28 |
padding: .5rem; |
| 29 |
z-index: 999999; |
| 30 |
text-align: center; |
| 31 |
display: flex; |
| 32 |
justify-content: center; |
| 33 |
align-items: center |
| 34 |
} |
| 35 |
|
| 36 |
<?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__footer .responseContainer{ |
| 37 |
margin-bottom: 0 !important; |
| 38 |
padding: .4rem !important; |
| 39 |
} |
| 40 |
|
| 41 |
<?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__footer <?php echo '#'.$form->form_tag_name;?>{ |
| 42 |
margin: 0; |
| 43 |
display: flex; |
| 44 |
justify-content: center; |
| 45 |
align-items: center |
| 46 |
} |
| 47 |
|
| 48 |
<?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__footer .acym__subscription__form__fields, <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__footer .acym__subscription__form__button{ |
| 49 |
display: flex; |
| 50 |
justify-content: center; |
| 51 |
align-items: center |
| 52 |
} |
| 53 |
</style> |
| 54 |
<?php if (!$edition) include acym_getPartial('forms', 'cookie'); ?> |
| 55 |
|