PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
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/shortcode.php +20 -15 10.11.1 → 11.1.0 View file →
@@ -1,10 +1,15 @@
1 -<div id="acym_fulldiv_<?php echo $form->form_tag_name; ?>" class="acym__subscription__form__shortcode acym__subscription__form-erase">
1 +<?php
2 +defined('ABSPATH') || die('Restricted Access');
3 +?>
4 +<div id="acym_fulldiv_<?php echo esc_attr($form->form_tag_name); ?>" class="acym__subscription__form__shortcode acym__subscription__form-erase">
2 5 <?php
3 6 if ($edition) {
4 - echo '<form action="#" onsubmit="return false;" id="'.$form->form_tag_name.'">';
7 + echo '<form action="#" onsubmit="return false;" id="'.esc_attr($form->form_tag_name).'">';
5 8 } else {
6 - echo '<form action="'.$form->form_tag_action.'" id="'.$form->form_tag_name.'" name="'.$form->form_tag_name.'" enctype="multipart/form-data" onsubmit="return submitAcymForm(\'subscribe\',\''.$form->form_tag_name.'\', \'acymSubmitSubForm\')">';
9 + echo '<form action="'.esc_url($form->form_tag_action).'" id="'.esc_attr($form->form_tag_name).'" name="'.esc_attr(
10 + $form->form_tag_name
11 + ).'" aria-label="'.esc_attr(acym_translation('ACYM_SUBSCRIPTION')).'" enctype="multipart/form-data" onsubmit="return submitAcymForm(\'subscribe\',\''.esc_attr($form->form_tag_name).'\', \'acymSubmitSubForm\')">';
7 12 }
8 13 include acym_getPartial('forms', 'fields');
9 14 include acym_getPartial('forms', 'button');
10 15 include acym_getPartial('forms', 'hidden_params');
@@ -11,13 +16,13 @@
11 16 ?>
12 17 </form>
13 18 </div>
14 19 <style>
15 - <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__shortcode{
16 - height: <?php echo $form->settings['style']['size']['height']; ?>px;
17 - max-width: <?php echo $form->settings['style']['size']['width']; ?>px;
18 - background-color: <?php echo $form->settings['style']['background_color']; ?>;
19 - color: <?php echo $form->settings['style']['text_color']; ?> !important;
20 + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode{
21 + height: <?php echo esc_html($form->settings['style']['size']['height']); ?>px;
22 + max-width: <?php echo esc_html($form->settings['style']['size']['width']); ?>px;
23 + background-color: <?php echo esc_html($form->settings['style']['background_color']); ?>;
24 + color: <?php echo esc_html($form->settings['style']['text_color']); ?> !important;
20 25 padding: .5rem;
21 26 text-align: center;
22 27 display: flex;
23 28 justify-content: center;
@@ -24,41 +29,41 @@
24 29 align-items: center;
25 30 margin: 1rem auto;
26 31 }
27 32
28 - <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__shortcode .responseContainer{
33 + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode .responseContainer{
29 34 margin-bottom: 0 !important;
30 35 padding: .4rem !important;
31 36 }
32 37
33 - <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__shortcode <?php echo '#'.$form->form_tag_name; ?>{
38 + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode <?php echo '#'.esc_html($form->form_tag_name); ?>{
34 39 margin: 0;
35 40 }
36 41
37 - <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__shortcode .acym__subscription__form__fields, <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__shortcode .acym__subscription__form__button{
42 + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode .acym__subscription__form__fields, <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode .acym__subscription__form__button{
38 43 display: block;
39 44 width: 100%;
40 45 margin: 1rem 0 !important;
41 46 }
42 47
43 - <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__shortcode .acym__subscription__form__fields .acym__subscription__form__lists{
48 + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode .acym__subscription__form__fields .acym__subscription__form__lists{
44 49 display: block;
45 50 width: 100%;
46 51 margin: 1rem 10px !important;
47 52 }
48 53
49 - <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__shortcode .acym__subscription__form__fields > *:not(style){
54 + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode .acym__subscription__form__fields > *:not(style){
50 55 display: block;
51 56 }
52 57
53 58 <?php if (!empty($form->settings['style']['position']) && in_array($form->settings['style']['position'], ['image-right', 'image-left'])) { ?>
54 - <?php echo '#acym_fulldiv_'.$form->form_tag_name; ?>.acym__subscription__form__shortcode <?php echo '#'.$form->form_tag_name; ?>{
59 + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name); ?>.acym__subscription__form__shortcode <?php echo '#'.esc_html($form->form_tag_name); ?>{
55 60 display: flex;
56 61 justify-content: center;
57 62 align-items: center
58 63 }
59 64
60 - <?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__shortcode__fields-button, <?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__image{
65 + <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name).' '; ?>.acym__subscription__form__shortcode__fields-button, <?php echo '#acym_fulldiv_'.esc_html($form->form_tag_name).' '; ?>.acym__subscription__form__image{
61 66 display: inline-block;
62 67 }
63 68
64 69 <?php } ?>