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 -76 11.0.2 → 11.1.1 View file →
@@ -1,76 +1,0 @@
1 -<?php
2 -// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
3 -defined('ABSPATH') || die('Restricted Access');
4 -?>
5 -<div id="acym_fulldiv_<?php echo esc_attr($form->form_tag_name); ?>" class="acym__subscription__form__header acym__subscription__form-erase full-width">
6 - <?php
7 - if ($edition) {
8 - echo '<form action="#" onsubmit="return false;" id="'.esc_attr($form->form_tag_name).'">';
9 - } else {
10 - $cookieExpiration = empty($form->settings['cookie']['cookie_expiration']) ? '1' : $form->settings['cookie']['cookie_expiration'];
11 - echo '<form
12 - acym-data-id="'.esc_attr($form->id).'"
13 - acym-data-cookie="'.intval($cookieExpiration).'"
14 - action="'.esc_url($form->form_tag_action).'"
15 - id="'.esc_attr($form->form_tag_name).'"
16 - name="'.esc_attr($form->form_tag_name).'"
17 - enctype="multipart/form-data"
18 - onsubmit="return submitAcymForm(\'subscribe\',\''.esc_attr($form->form_tag_name).'\', \'acymSubmitSubForm\');">';
19 - }
20 - $files = [
21 - 0 => $form->settings['style']['position'] == 'button-right' ? 'fields' : 'button',
22 - 1 => $form->settings['style']['position'] == 'button-right' ? 'button' : 'fields',
23 - ];
24 -
25 - include acym_getPartial('forms', $files[0]);
26 - include acym_getPartial('forms', $files[1]);
27 - include acym_getPartial('forms', 'hidden_params');
28 -
29 - echo '</form>';
30 - ?>
31 -</div>
32 -<style>
33 - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__header{
34 - <?php echo esc_html(!empty($form->settings['style']['size']['width'])? 'width: '.$form->settings['style']['size']['width'].'%': ''); ?>;
35 - height: <?php echo esc_html($form->settings['style']['size']['height']); ?>px;
36 - background-color: <?php echo esc_html($form->settings['style']['background_color']); ?>;
37 - color: <?php echo esc_html($form->settings['style']['text_color']); ?> !important;
38 - padding: .5rem;
39 - z-index: 999999;
40 - text-align: center;
41 - display: flex;
42 - justify-content: center;
43 - align-items: center;
44 - margin-left: auto;
45 - margin-right: auto;
46 - }
47 -
48 - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__header .responseContainer{
49 - margin-bottom: 0 !important;
50 - padding: .4rem !important;
51 - }
52 -
53 - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__header <?php echo '#'.esc_html($form->form_tag_name); ?>{
54 - margin: 0;
55 - display: flex;
56 - justify-content: center;
57 - align-items: center
58 - }
59 -
60 - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__header .acym__subscription__form__fields, <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__header .acym__subscription__form__button{
61 - display: flex;
62 - justify-content: center;
63 - align-items: center
64 - }
65 -
66 - <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>
67 - .acym__users__creation__fields__title{
68 - margin: 0.5rem
69 - }
70 -</style>
71 -<?php if (!$edition) { ?>
72 - <script type="text/javascript">
73 - document.body.prepend(document.querySelector('#acym_fulldiv_<?php echo esc_html($form->form_tag_name); ?>'));
74 - </script>
75 - <?php include acym_getPartial('forms', 'cookie');
76 -} ?>