| @@ -1,38 +1,0 @@ | ||
| 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 | - <button type="submit"> | |
| 19 | - <?php echo acym_escape(acym_translation($form->settings['button']['text'])); ?> | |
| 20 | - </button> | |
| 21 | - <style> | |
| 22 | - <?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__button{ | |
| 23 | - display: flex; | |
| 24 | - justify-content: center; | |
| 25 | - align-items: center | |
| 26 | - } | |
| 27 | - | |
| 28 | - <?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__button button{ | |
| 29 | - background-color: <?php echo $form->settings['button']['background_color']; ?>; | |
| 30 | - color: <?php echo $form->settings['button']['text_color']; ?>; | |
| 31 | - border-width: <?php echo $form->settings['button']['border_size']; ?>px; | |
| 32 | - border-style: <?php echo $form->settings['button']['border_type']; ?>; | |
| 33 | - border-color: <?php echo $form->settings['button']['border_color']; ?>; | |
| 34 | - border-radius: <?php echo $form->settings['button']['border_radius']; ?>px; | |
| 35 | - padding: <?php echo $form->settings['button']['size']['height']; ?>px <?php echo $form->settings['button']['size']['width']; ?>px; | |
| 36 | - } | |
| 37 | - </style> | |
| 38 | -</div> | |