PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.1
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Partial/forms/button.php +0 -41 10.2.2 → 11.1.1 View file →
@@ -1,41 +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 - $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>