| 1 |
<div class="acym__subscription__form__button"> |
| 2 |
<?php |
| 3 |
if (empty($form->settings['button']['text'])) { |
| 4 |
$form->settings['button']['text'] = 'ACYM_SUBSCRIBE'; |
| 5 |
} |
| 6 |
|
| 7 |
if (acym_isMultilingual()) { |
| 8 |
$defaultLanguage = $this->config->get('multilingual_default'); |
| 9 |
$currentLanguageTag = acym_getLanguageTag(); |
| 10 |
|
| 11 |
if (!empty($form->settings['button']['lang'][$currentLanguageTag])) { |
| 12 |
$form->settings['button']['text'] = $form->settings['button']['lang'][$currentLanguageTag]; |
| 13 |
} elseif (!empty($form->settings['button']['lang'][$defaultLanguage])) { |
| 14 |
$form->settings['button']['text'] = $form->settings['button']['lang'][$defaultLanguage]; |
| 15 |
} |
| 16 |
} |
| 17 |
|
| 18 |
$onclick = $edition ? '' |
| 19 |
: 'onclick="try{ return submitAcymForm(\'subscribe\',\''.$form->form_tag_name.'\', \'acymSubmitSubForm\'); }catch(err){alert(\'The form could not be submitted \'+err);return false;}"'; |
| 20 |
?> |
| 21 |
<button type="button" <?php echo $onclick; ?>> |
| 22 |
<?php echo $button_value = acym_translation($form->settings['button']['text']); ?> |
| 23 |
</button> |
| 24 |
<style> |
| 25 |
<?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__button{ |
| 26 |
display: flex; |
| 27 |
justify-content: center; |
| 28 |
align-items: center |
| 29 |
} |
| 30 |
|
| 31 |
<?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__button button{ |
| 32 |
background-color: <?php echo $form->settings['button']['background_color']; ?>; |
| 33 |
color: <?php echo $form->settings['button']['text_color']; ?>; |
| 34 |
border-width: <?php echo $form->settings['button']['border_size']; ?>px; |
| 35 |
border-style: <?php echo $form->settings['button']['border_type']; ?>; |
| 36 |
border-color: <?php echo $form->settings['button']['border_color']; ?>; |
| 37 |
border-radius: <?php echo $form->settings['button']['border_radius']; ?>px; |
| 38 |
padding: <?php echo $form->settings['button']['size']['height']; ?>px <?php echo $form->settings['button']['size']['width']; ?>px; |
| 39 |
} |
| 40 |
</style> |
| 41 |
</div> |
| 42 |
|