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/header.php +0 -64 10.2.2 → 11.1.1 View file →
@@ -1,64 +1,0 @@
1 -<div id="acym_fulldiv_<?php echo $form->form_tag_name; ?>" class="acym__subscription__form__header acym__subscription__form-erase full-width">
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
8 - acym-data-id="'.$form->id.'" '.$cookieExpirationAttr.'
9 - action="'.$form->form_tag_action.'"
10 - id="'.$form->form_tag_name.'"
11 - name="'.$form->form_tag_name.'"
12 - enctype="multipart/form-data"
13 - onsubmit="return submitAcymForm(\'subscribe\',\''.$form->form_tag_name.'\', \'acymSubmitSubForm\');">';
14 - }
15 - $files = [
16 - 0 => $form->settings['style']['position'] == 'button-right' ? 'fields' : 'button',
17 - 1 => $form->settings['style']['position'] == 'button-right' ? 'button' : 'fields',
18 - ];
19 - include acym_getPartial('forms', $files[0]);
20 - include acym_getPartial('forms', $files[1]);
21 - include acym_getPartial('forms', 'hidden_params');
22 - ?>
23 - </form>
24 -</div>
25 -<style>
26 - <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__header{
27 - <?php echo !empty($form->settings['style']['size']['width'])? 'width: '.$form->settings['style']['size']['width'].'%': '';?>;
28 - height: <?php echo $form->settings['style']['size']['height'];?>px;
29 - background-color: <?php echo $form->settings['style']['background_color'];?>;
30 - color: <?php echo $form->settings['style']['text_color'];?> !important;
31 - padding: .5rem;
32 - z-index: 999999;
33 - text-align: center;
34 - display: flex;
35 - justify-content: center;
36 - align-items: center;
37 - margin-left: auto;
38 - margin-right: auto;
39 - }
40 -
41 - <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__header .responseContainer{
42 - margin-bottom: 0 !important;
43 - padding: .4rem !important;
44 - }
45 -
46 - <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__header <?php echo '#'.$form->form_tag_name;?>{
47 - margin: 0;
48 - display: flex;
49 - justify-content: center;
50 - align-items: center
51 - }
52 -
53 - <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__header .acym__subscription__form__fields, <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__header .acym__subscription__form__button{
54 - display: flex;
55 - justify-content: center;
56 - align-items: center
57 - }
58 -</style>
59 -<?php if (!$edition) { ?>
60 - <script type="text/javascript">
61 - document.body.prepend(document.querySelector('#acym_fulldiv_<?php echo $form->form_tag_name; ?>'));
62 - </script>
63 - <?php include acym_getPartial('forms', 'cookie');
64 -} ?>