Version Description
Download this release
Release Info
Developer | eherman24 |
Plugin | Easy Forms for MailChimp |
Version | 6.1.3 |
Comparing to | |
See all releases |
Code changes from version 6.1.2 to 6.1.3
- admin/class-yikes-inc-easy-mailchimp-extender-admin.php +20 -0
- admin/partials/menu/options.php +1 -1
- includes/images/yikes-customizer-upsell-banner.jpg +0 -0
- public/class-yikes-inc-easy-mailchimp-extender-public.php +0 -7
- public/css/yikes-inc-easy-mailchimp-extender-public.css +1 -2
- public/css/yikes-inc-easy-mailchimp-extender-public.min.css +1 -1
- public/partials/shortcodes/process_form_shortcode.php +46 -35
- readme.txt +14 -1
- yikes-inc-easy-mailchimp-extender.php +11 -1
admin/class-yikes-inc-easy-mailchimp-extender-admin.php
CHANGED
@@ -1189,6 +1189,8 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1189 |
$body = json_decode( wp_remote_retrieve_body( $api_key_response ), true );
|
1190 |
if( isset( $body['msg'] ) && $body['msg'] == "Everything's Chimpy!" ) {
|
1191 |
update_option( 'yikes-mc-api-validation' , 'valid_api_key' );
|
|
|
|
|
1192 |
}
|
1193 |
} else {
|
1194 |
require_once YIKES_MC_PATH . 'includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php';
|
@@ -3012,4 +3014,22 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
3012 |
echo wp_kses_post( $ad_content );
|
3013 |
}
|
3014 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3015 |
}
|
1189 |
$body = json_decode( wp_remote_retrieve_body( $api_key_response ), true );
|
1190 |
if( isset( $body['msg'] ) && $body['msg'] == "Everything's Chimpy!" ) {
|
1191 |
update_option( 'yikes-mc-api-validation' , 'valid_api_key' );
|
1192 |
+
// Clear the API key transient data
|
1193 |
+
$this->delete_yikes_mailchimp_transients();
|
1194 |
}
|
1195 |
} else {
|
1196 |
require_once YIKES_MC_PATH . 'includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php';
|
3014 |
echo wp_kses_post( $ad_content );
|
3015 |
}
|
3016 |
|
3017 |
+
/***
|
3018 |
+
* Helper function to clear out transients stored by this plugin
|
3019 |
+
*
|
3020 |
+
* Mainly used when the API key is altered, changed or removed.
|
3021 |
+
* @since 6.1.3
|
3022 |
+
*/
|
3023 |
+
public function delete_yikes_mailchimp_transients() {
|
3024 |
+
/* Clear All Transient Data */
|
3025 |
+
// Delete list data transient data
|
3026 |
+
delete_transient( 'yikes-easy-mailchimp-list-data' );
|
3027 |
+
// Delete list account data transient data
|
3028 |
+
delete_transient( 'yikes-easy-mailchimp-account-data' );
|
3029 |
+
// Delete profile data transient data
|
3030 |
+
delete_transient( 'yikes-easy-mailchimp-profile-data' );
|
3031 |
+
// Delete account activity transient data
|
3032 |
+
delete_transient( 'yikes-easy-mailchimp-account-activity' );
|
3033 |
+
}
|
3034 |
+
|
3035 |
}
|
admin/partials/menu/options.php
CHANGED
@@ -76,7 +76,7 @@
|
|
76 |
} else if( isset( $_GET['error_log_created'] ) && $_GET['error_log_created'] == 'false' ) {
|
77 |
?>
|
78 |
<div class="error">
|
79 |
-
<p><?php
|
80 |
</div>
|
81 |
<?php
|
82 |
}
|
76 |
} else if( isset( $_GET['error_log_created'] ) && $_GET['error_log_created'] == 'false' ) {
|
77 |
?>
|
78 |
<div class="error">
|
79 |
+
<p><?php echo esc_attr( urldecode( $_GET['error_message'] ) , 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
80 |
</div>
|
81 |
<?php
|
82 |
}
|
includes/images/yikes-customizer-upsell-banner.jpg
DELETED
Binary file
|
public/class-yikes-inc-easy-mailchimp-extender-public.php
CHANGED
@@ -41,13 +41,6 @@ class Yikes_Inc_Easy_Mailchimp_Extender_Public {
|
|
41 |
public function __construct( $yikes_inc_easy_mailchimp_extender, $version ) {
|
42 |
$this->yikes_inc_easy_mailchimp_extender = $yikes_inc_easy_mailchimp_extender;
|
43 |
$this->version = $version;
|
44 |
-
/**
|
45 |
-
* Define version of this plugin
|
46 |
-
* @since 6.0.0
|
47 |
-
*/
|
48 |
-
if ( ! defined( 'YIKES_MC_VERSION' ) ) {
|
49 |
-
define( 'YIKES_MC_VERSION' , $version );
|
50 |
-
}
|
51 |
/*
|
52 |
* Include our helper functions
|
53 |
* @since 6.0.3.4
|
41 |
public function __construct( $yikes_inc_easy_mailchimp_extender, $version ) {
|
42 |
$this->yikes_inc_easy_mailchimp_extender = $yikes_inc_easy_mailchimp_extender;
|
43 |
$this->version = $version;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
/*
|
45 |
* Include our helper functions
|
46 |
* @since 6.0.3.4
|
public/css/yikes-inc-easy-mailchimp-extender-public.css
CHANGED
@@ -1,2 +1 @@
|
|
1 |
-
/**
|
2 |
* All of the CSS for your public-facing functionality should be
|
3 |
* included in this file.
|
4 |
*/
|
5 |
.yikes-easy-mc-form {
|
6 |
}
|
7 |
/* Input heights */
|
8 |
.yikes-easy-mc-form select,
|
9 |
.yikes-easy-mc-form input[type="text"],
|
10 |
.yikes-easy-mc-form input[type="url"],
|
11 |
.yikes-easy-mc-form input[type="email"],
|
12 |
.yikes-easy-mc-form input[type="number"] {
|
13 |
}
|
14 |
.yikes-easy-mc-form select:focus,
|
15 |
.yikes-easy-mc-form input[type="text"]:focus,
|
16 |
.yikes-easy-mc-form input[type="url"]:focus,
|
17 |
.yikes-easy-mc-form input[type="email"]:focus,
|
18 |
.yikes-easy-mc-form input[type="number"]:focus {
|
19 |
}
|
20 |
/* Datepicker */
|
21 |
}
|
22 |
/* Submit Button */
|
23 |
.yikes-easy-mc-form .yikes-easy-mc-submit-button {
|
24 |
}
|
25 |
/* Form Description */
|
26 |
.yikes-easy-mc-form .form-field-description {
|
27 |
/* Labels & Descriptions */
|
28 |
.yikes-easy-mc-form label,
|
29 |
.yikes-easy-mc-form .field-no-label {
|
30 |
}
|
31 |
/* Interest Group Required Error Notice */
|
32 |
p.yikes-mailchimp-required-interest-group-error {
|
33 |
}
|
34 |
/* No Label Descriptions */
|
35 |
.yikes-easy-mc-form select,
|
36 |
.yikes-easy-mc-form input[type="number"],
|
37 |
.yikes-easy-mc-form input[type="text"],
|
38 |
.yikes-easy-mc-form input[type="email"],
|
39 |
.yikes-easy-mc-form input[type="url"],
|
40 |
.yikes-easy-mc-form input[type="password"],
|
41 |
.yikes-easy-mc-form textarea {
|
42 |
}
|
43 |
/** Radio Form Buttons **/
|
44 |
.checkbox-parent-label {
|
45 |
}
|
46 |
.yikes-easy-mc-form .yikes-easy-mc-checkbox-label {
|
47 |
}
|
48 |
.yikes-easy-mc-display-none,
|
49 |
.mailchimp-field-hidden {
|
50 |
}
|
51 |
.yikes-easy-mc-text-align-right {
|
52 |
}
|
53 |
/******************************************/
|
54 |
/* Front End Pre-defined Classes */
|
55 |
/******************************************/
|
56 |
-
|
57 |
* All of the CSS for your public-facing functionality should be
|
58 |
* included in this file.
|
59 |
*/
|
60 |
.yikes-easy-mc-form {
|
61 |
}
|
62 |
/* Input heights */
|
63 |
.yikes-easy-mc-form select,
|
64 |
.yikes-easy-mc-form input[type="text"],
|
65 |
.yikes-easy-mc-form input[type="url"],
|
66 |
.yikes-easy-mc-form input[type="email"],
|
67 |
.yikes-easy-mc-form input[type="number"] {
|
68 |
}
|
69 |
.yikes-easy-mc-form select:focus,
|
70 |
.yikes-easy-mc-form input[type="text"]:focus,
|
71 |
.yikes-easy-mc-form input[type="url"]:focus,
|
72 |
.yikes-easy-mc-form input[type="email"]:focus,
|
73 |
.yikes-easy-mc-form input[type="number"]:focus {
|
74 |
}
|
75 |
/* Datepicker */
|
76 |
}
|
77 |
/* Submit Button */
|
78 |
.yikes-easy-mc-form .yikes-easy-mc-submit-button {
|
79 |
}
|
80 |
/* Form Description */
|
81 |
.yikes-easy-mc-form .form-field-description {
|
82 |
/* Labels & Descriptions */
|
83 |
.yikes-easy-mc-form label,
|
84 |
.yikes-easy-mc-form .field-no-label {
|
85 |
}
|
86 |
/* Interest Group Required Error Notice */
|
87 |
p.yikes-mailchimp-required-interest-group-error {
|
88 |
}
|
89 |
/* No Label Descriptions */
|
90 |
.yikes-easy-mc-form select,
|
91 |
.yikes-easy-mc-form input[type="number"],
|
92 |
.yikes-easy-mc-form input[type="text"],
|
93 |
.yikes-easy-mc-form input[type="email"],
|
94 |
.yikes-easy-mc-form input[type="url"],
|
95 |
.yikes-easy-mc-form input[type="password"],
|
96 |
.yikes-easy-mc-form textarea {
|
97 |
}
|
98 |
/** Radio Form Buttons **/
|
99 |
.checkbox-parent-label {
|
100 |
}
|
101 |
.yikes-easy-mc-form .yikes-easy-mc-checkbox-label {
|
102 |
}
|
103 |
.yikes-easy-mc-display-none,
|
104 |
.mailchimp-field-hidden {
|
105 |
}
|
106 |
.yikes-easy-mc-text-align-right {
|
107 |
}
|
108 |
/******************************************/
|
109 |
/* Front End Pre-defined Classes */
|
110 |
/******************************************/
|
|
|
1 |
* All of the CSS for your public-facing functionality should be
|
2 |
* included in this file.
|
3 |
*/
|
4 |
.yikes-easy-mc-form {
|
5 |
}
|
6 |
/* Input heights */
|
7 |
.yikes-easy-mc-form select,
|
8 |
.yikes-easy-mc-form input[type="text"],
|
9 |
.yikes-easy-mc-form input[type="url"],
|
10 |
.yikes-easy-mc-form input[type="email"],
|
11 |
.yikes-easy-mc-form input[type="number"] {
|
12 |
}
|
13 |
.yikes-easy-mc-form select:focus,
|
14 |
.yikes-easy-mc-form input[type="text"]:focus,
|
15 |
.yikes-easy-mc-form input[type="url"]:focus,
|
16 |
.yikes-easy-mc-form input[type="email"]:focus,
|
17 |
.yikes-easy-mc-form input[type="number"]:focus {
|
18 |
}
|
19 |
/* Datepicker */
|
20 |
}
|
21 |
/* Submit Button */
|
22 |
.yikes-easy-mc-form .yikes-easy-mc-submit-button {
|
23 |
}
|
24 |
/* Form Description */
|
25 |
.yikes-easy-mc-form .form-field-description {
|
26 |
/* Labels & Descriptions */
|
27 |
.yikes-easy-mc-form label,
|
28 |
.yikes-easy-mc-form .field-no-label {
|
29 |
}
|
30 |
/* Interest Group Required Error Notice */
|
31 |
p.yikes-mailchimp-required-interest-group-error {
|
32 |
}
|
33 |
/* No Label Descriptions */
|
34 |
.yikes-easy-mc-form select,
|
35 |
.yikes-easy-mc-form input[type="number"],
|
36 |
.yikes-easy-mc-form input[type="text"],
|
37 |
.yikes-easy-mc-form input[type="email"],
|
38 |
.yikes-easy-mc-form input[type="url"],
|
39 |
.yikes-easy-mc-form input[type="password"],
|
40 |
.yikes-easy-mc-form textarea {
|
41 |
}
|
42 |
/** Radio Form Buttons **/
|
43 |
.checkbox-parent-label {
|
44 |
}
|
45 |
.yikes-easy-mc-form .yikes-easy-mc-checkbox-label {
|
46 |
}
|
47 |
.yikes-easy-mc-display-none,
|
48 |
.mailchimp-field-hidden {
|
49 |
}
|
50 |
.yikes-easy-mc-text-align-right {
|
51 |
}
|
52 |
/******************************************/
|
53 |
/* Front End Pre-defined Classes */
|
54 |
/******************************************/
|
55 |
+
/**
|
56 |
* All of the CSS for your public-facing functionality should be
|
57 |
* included in this file.
|
58 |
*/
|
59 |
.yikes-easy-mc-form {
|
60 |
}
|
61 |
/* Input heights */
|
62 |
.yikes-easy-mc-form select,
|
63 |
.yikes-easy-mc-form input[type="text"],
|
64 |
.yikes-easy-mc-form input[type="url"],
|
65 |
.yikes-easy-mc-form input[type="email"],
|
66 |
.yikes-easy-mc-form input[type="number"] {
|
67 |
}
|
68 |
.yikes-easy-mc-form select:focus,
|
69 |
.yikes-easy-mc-form input[type="text"]:focus,
|
70 |
.yikes-easy-mc-form input[type="url"]:focus,
|
71 |
.yikes-easy-mc-form input[type="email"]:focus,
|
72 |
.yikes-easy-mc-form input[type="number"]:focus {
|
73 |
}
|
74 |
/* Datepicker */
|
75 |
}
|
76 |
/* Submit Button */
|
77 |
.yikes-easy-mc-form .yikes-easy-mc-submit-button {
|
78 |
}
|
79 |
/* Form Description */
|
80 |
.yikes-easy-mc-form .form-field-description {
|
81 |
/* Labels & Descriptions */
|
82 |
.yikes-easy-mc-form label,
|
83 |
.yikes-easy-mc-form .field-no-label {
|
84 |
}
|
85 |
/* Interest Group Required Error Notice */
|
86 |
p.yikes-mailchimp-required-interest-group-error {
|
87 |
}
|
88 |
/* No Label Descriptions */
|
89 |
.yikes-easy-mc-form select,
|
90 |
.yikes-easy-mc-form input[type="number"],
|
91 |
.yikes-easy-mc-form input[type="text"],
|
92 |
.yikes-easy-mc-form input[type="email"],
|
93 |
.yikes-easy-mc-form input[type="url"],
|
94 |
.yikes-easy-mc-form input[type="password"],
|
95 |
.yikes-easy-mc-form textarea {
|
96 |
}
|
97 |
/** Radio Form Buttons **/
|
98 |
.checkbox-parent-label {
|
99 |
}
|
100 |
.yikes-easy-mc-form .yikes-easy-mc-checkbox-label {
|
101 |
}
|
102 |
.yikes-easy-mc-display-none,
|
103 |
.mailchimp-field-hidden {
|
104 |
}
|
105 |
.yikes-easy-mc-text-align-right {
|
106 |
}
|
107 |
/******************************************/
|
108 |
/* Front End Pre-defined Classes */
|
109 |
/******************************************/
|
public/css/yikes-inc-easy-mailchimp-extender-public.min.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
.yikes-easy-mc-form{display:block;width:100%}.yikes-easy-mailchimp-edit-form-link{display:block;margin-bottom:1em}.yikes-easy-mc-form.yikes-mailchimp-form-inline{display:inline-block;width:100%}.yikes-easy-mc-form input[type=text],.yikes-easy-mc-form input[type=url],.yikes-easy-mc-form input[type=email],.yikes-easy-mc-form input[type=number],.yikes-easy-mc-form select{padding:.5278em;background-color:#F1F1F1;border:2px solid rgba(51,51,51,.1);-moz-box-sizing:border-box;margin-bottom:8px}.yikes-easy-mc-form input[type=text]:focus,.yikes-easy-mc-form input[type=url]:focus,.yikes-easy-mc-form input[type=email]:focus,.yikes-easy-mc-form input[type=number]:focus,.yikes-easy-mc-form select:focus{outline:rgba(51,51,51,.3) solid 2px}.datepicker.datepicker-dropdown.dropdown-menu.datepicker-orient-left.datepicker-orient-top{min-width:258px}.yikes-easy-mc-form .yikes-easy-mc-submit-button{display:block;width:100%;margin-top:.5em;min-height:40px;padding:10px;cursor:pointer}.yikes-easy-mc-form .yikes-easy-mc-submit-button.admin-logged-in{margin-bottom:1em}.yikes-easy-mc-form .empty-form-inline-label .empty-label{display:none}.yikes-easy-mc-form .submit-button-inline-label{width:20%;min-width:90px;float:left}.yikes-easy-mc-form .submit-button-inline-label .yikes-easy-mc-submit-button{margin-top:0;margin-bottom:.5em}.yikes-easy-mc-form .form-field-description{display:block;margin-top:-.25em;margin-bottom:.75em;font-style:italic}.yikes-easy-mc-form label>.form-field-description{display:block;margin-bottom:5px;font-style:italic}.yikes-easy-mc-error-message{color:rgba(216,48,57,.87);background:#FFBABA;padding:12px;position:relative}.yikes-easy-mc-success-message{color:#4F8A10;background:#DFF2BF;padding:12px;position:relative}.yikes-easy-mc-form .field-no-label,.yikes-easy-mc-form label{display:inline-block;margin-bottom:.5em;width:100%}p.yikes-mailchimp-required-interest-group-error{color:rgba(216,48,57,.87);margin:8px 0}.yikes-easy-mc-form input[type=text],.yikes-easy-mc-form input[type=url],.yikes-easy-mc-form input[type=email],.yikes-easy-mc-form input[type=number],.yikes-easy-mc-form input[type=password],.yikes-easy-mc-form select,.yikes-easy-mc-form textarea{box-sizing:border-box;display:block;width:100%;max-width:100%}.yikes-easy-mc-form .yikes-easy-mc-submit-button-image{padding:0;width:16%;min-width:140px;max-width:200px}.yikes-easy-mc-form .submit-button-inline-label .yikes-easy-mc-submit-button-image{width:100%;max-width:100%}.checkbox-parent-label{width:100%;display:block}.yikes-easy-mc-form .yikes-easy-mc-checkbox-label{display:inline-block}.mailchimp-field-hidden,.yikes-easy-mc-display-none{display:none!important}.yikes-easy-mc-text-align-right{text-align:right}#yikes-mailchimp-container .yikes-form-title{margin-top:0}.yikes-mailchimp-disclaimer-text{display:block;margin-top:1em}.update-email-preloader,.yikes-mailchimp-preloader{position:absolute;top:40%;left:0;right:0;bottom:0;margin:0 auto}.g-recaptcha{transform:scale(.81);-webkit-transform:scale(.81);transform-origin:0 0;-webkit-transform-origin:0 0;margin:7px 0 -3px}@media screen and (max-height:575px){#rc-imageselect,.g-recaptcha{transform:scale(.81);-webkit-transform:scale(.81);transform-origin:0 0;-webkit-transform-origin:0 0}}.yikes-easy-mc-form label.option-inline>label{display:inline-block;float:left;width:auto!important;margin-right:15px}.yikes-easy-mc-form label.option-height-25{height:25px}.yikes-easy-mc-form label.option-height-50{height:50px}.yikes-easy-mc-form label.option-height-75{height:75px}.yikes-easy-mc-form label.option-height-100{height:100px}.yikes-easy-mc-form label.option-height-125{height:125px}.yikes-easy-mc-form label.option-height-150{height:150px}.yikes-easy-mc-form label.option-2-col>label{display:inline-block;float:left;width:50%}.yikes-easy-mc-form label.option-3-col>label{display:inline-block;float:left;width:33%}.yikes-easy-mc-form label.option-4-col>label{display:inline-block;float:left;width:25%}.yikes-easy-mc-form input.field-left-half,.yikes-easy-mc-form label.field-left-half{width:48%;float:left;margin-right:2%}.yikes-easy-mc-form input.field-right-half,.yikes-easy-mc-form label.field-right-half{width:48%;float:right;margin-left:2%}.yikes-easy-mc-form input.field-third,.yikes-easy-mc-form label.field-third{width:32%;float:left;margin-right:1.33333%}@media only screen and (max-width:525px){.yikes-easy-mc-form input.field-left-half,.yikes-easy-mc-form input.field-right-half,.yikes-easy-mc-form label.field-left-half,.yikes-easy-mc-form label.field-right-half{width:100%}}@media only screen and (max-width:955px){.yikes-easy-mc-form input.field-third:nth-child(odd),.yikes-easy-mc-form label.field-third:nth-child(odd){width:48%;float:left;margin-right:2%}.yikes-easy-mc-form input.field-third:nth-child(even),.yikes-easy-mc-form label.field-third:nth-child(even){width:48%;float:right;margin-left:0}}@media only screen and (max-width:525px){.yikes-easy-mc-form input.field-third,.yikes-easy-mc-form label.field-third{width:100%!important;margin-right:0;margin-left:0;float:none}.datepicker.datepicker-dropdown.dropdown-menu.datepicker-orient-left.datepicker-orient-top{min-width:84%}}
|
2 |
/*# sourceMappingURL=data:application/json;base64,e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dDpyaWdodDttYXJnaW4tbGVmdDowfX1AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6NTI1cHgpey55aWtlcy1lYXN5LW1jLWZvcm0gaW5wdXQuZmllbGQtdGhpcmQsLnlpa2VzLWVhc3ktbWMtZm9ybSBsYWJlbC5maWVsZC10aGlyZHt3aWR0aDoxMDAlIWltcG9ydGFudDttYXJnaW4tcmlnaHQ6MDttYXJnaW4tbGVmdDowO2Zsb2F0Om5vbmV9LmRhdGVwaWNrZXIuZGF0ZXBpY2tlci1kcm9wZG93bi5kcm9wZG93bi1tZW51LmRhdGVwaWNrZXItb3JpZW50LWxlZnQuZGF0ZXBpY2tlci1vcmllbnQtdG9we21pbi13aWR0aDo4NCV9fSJdfQ== */
|
1 |
+
.yikes-easy-mc-form{display:block;width:100%}.yikes-easy-mailchimp-edit-form-link{display:block;margin-bottom:1em}.yikes-easy-mc-form.yikes-mailchimp-form-inline{display:inline-block;width:100%}.yikes-easy-mc-form input[type=text],.yikes-easy-mc-form input[type=url],.yikes-easy-mc-form input[type=email],.yikes-easy-mc-form input[type=number],.yikes-easy-mc-form select{padding:.5278em;background-color:#F1F1F1;border:2px solid rgba(51,51,51,.1);-moz-box-sizing:border-box;margin-bottom:8px}.yikes-easy-mc-form input[type=text]:focus,.yikes-easy-mc-form input[type=url]:focus,.yikes-easy-mc-form input[type=email]:focus,.yikes-easy-mc-form input[type=number]:focus,.yikes-easy-mc-form select:focus{outline:rgba(51,51,51,.3) solid 2px}.datepicker.datepicker-dropdown.dropdown-menu.datepicker-orient-left.datepicker-orient-top{min-width:258px}.yikes-easy-mc-form .yikes-easy-mc-submit-button{display:block;width:100%;margin-top:.5em;min-height:40px;padding:10px;cursor:pointer}.yikes-easy-mc-form .yikes-easy-mc-submit-button.admin-logged-in{margin-bottom:1em}.yikes-easy-mc-form .empty-form-inline-label .empty-label.labels-hidden{display:none}.yikes-easy-mc-form .submit-button-inline-label{width:20%;min-width:90px;float:left}.yikes-easy-mc-form .submit-button-inline-label .yikes-easy-mc-submit-button{margin-top:0;margin-bottom:.5em}.yikes-easy-mc-form .form-field-description{display:block;margin-top:-.25em;margin-bottom:.75em;font-style:italic}.yikes-easy-mc-form label>.form-field-description{display:block;margin-bottom:5px;font-style:italic}.yikes-easy-mc-error-message{color:rgba(216,48,57,.87);background:#FFBABA;padding:12px;position:relative}.yikes-easy-mc-success-message{color:#4F8A10;background:#DFF2BF;padding:12px;position:relative}.yikes-easy-mc-form .field-no-label,.yikes-easy-mc-form label{display:inline-block;margin-bottom:.5em;width:100%}p.yikes-mailchimp-required-interest-group-error{color:rgba(216,48,57,.87);margin:8px 0}.yikes-easy-mc-form input[type=text],.yikes-easy-mc-form input[type=url],.yikes-easy-mc-form input[type=email],.yikes-easy-mc-form input[type=number],.yikes-easy-mc-form input[type=password],.yikes-easy-mc-form select,.yikes-easy-mc-form textarea{box-sizing:border-box;display:block;width:100%;max-width:100%}.yikes-easy-mc-form .yikes-easy-mc-submit-button-image{padding:0;width:16%;min-width:140px;max-width:200px}.yikes-easy-mc-form .submit-button-inline-label .yikes-easy-mc-submit-button-image{width:100%;max-width:100%}.checkbox-parent-label{width:100%;display:block}.yikes-easy-mc-form .yikes-easy-mc-checkbox-label{display:inline-block}.mailchimp-field-hidden,.yikes-easy-mc-display-none{display:none!important}.yikes-easy-mc-text-align-right{text-align:right}#yikes-mailchimp-container .yikes-form-title{margin-top:0}.yikes-mailchimp-disclaimer-text{display:block;margin-top:1em}.update-email-preloader,.yikes-mailchimp-preloader{position:absolute;top:40%;left:0;right:0;bottom:0;margin:0 auto}.g-recaptcha{transform:scale(.81);-webkit-transform:scale(.81);transform-origin:0 0;-webkit-transform-origin:0 0;margin:7px 0 -3px}@media screen and (max-height:575px){#rc-imageselect,.g-recaptcha{transform:scale(.81);-webkit-transform:scale(.81);transform-origin:0 0;-webkit-transform-origin:0 0}}.yikes-easy-mc-form label.option-inline>label{display:inline-block;float:left;width:auto!important;margin-right:15px}.yikes-easy-mc-form label.option-height-25{height:25px}.yikes-easy-mc-form label.option-height-50{height:50px}.yikes-easy-mc-form label.option-height-75{height:75px}.yikes-easy-mc-form label.option-height-100{height:100px}.yikes-easy-mc-form label.option-height-125{height:125px}.yikes-easy-mc-form label.option-height-150{height:150px}.yikes-easy-mc-form label.option-2-col>label{display:inline-block;float:left;width:50%}.yikes-easy-mc-form label.option-3-col>label{display:inline-block;float:left;width:33%}.yikes-easy-mc-form label.option-4-col>label{display:inline-block;float:left;width:25%}.yikes-easy-mc-form input.field-left-half,.yikes-easy-mc-form label.field-left-half{width:48%;float:left;margin-right:2%}.yikes-easy-mc-form input.field-right-half,.yikes-easy-mc-form label.field-right-half{width:48%;float:right;margin-left:2%}.yikes-easy-mc-form input.field-third,.yikes-easy-mc-form label.field-third{width:32%;float:left;margin-right:1.33333%}@media only screen and (max-width:525px){.yikes-easy-mc-form input.field-left-half,.yikes-easy-mc-form input.field-right-half,.yikes-easy-mc-form label.field-left-half,.yikes-easy-mc-form label.field-right-half{width:100%}}@media only screen and (max-width:955px){.yikes-easy-mc-form input.field-third:nth-child(odd),.yikes-easy-mc-form label.field-third:nth-child(odd){width:48%;float:left;margin-right:2%}.yikes-easy-mc-form input.field-third:nth-child(even),.yikes-easy-mc-form label.field-third:nth-child(even){width:48%;float:right;margin-left:0}}@media only screen and (max-width:525px){.yikes-easy-mc-form input.field-third,.yikes-easy-mc-form label.field-third{width:100%!important;margin-right:0;margin-left:0;float:none}.datepicker.datepicker-dropdown.dropdown-menu.datepicker-orient-left.datepicker-orient-top{min-width:84%}}
|
2 |
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInlpa2VzLWluYy1lYXN5LW1haWxjaGltcC1leHRlbmRlci1wdWJsaWMubWluLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQkFBb0IsY0FBYyxVQUFVLENBQUMscUNBQXFDLGNBQWMsaUJBQWlCLENBQUMsZ0R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cG9ydGFudDttYXJnaW4tcmlnaHQ6MDttYXJnaW4tbGVmdDowO2Zsb2F0Om5vbmV9LmRhdGVwaWNrZXIuZGF0ZXBpY2tlci1kcm9wZG93bi5kcm9wZG93bi1tZW51LmRhdGVwaWNrZXItb3JpZW50LWxlZnQuZGF0ZXBpY2tlci1vcmllbnQtdG9we21pbi13aWR0aDo4NCV9fSJdfQ== */
|
public/partials/shortcodes/process_form_shortcode.php
CHANGED
@@ -241,6 +241,39 @@ function process_mailchimp_shortcode( $atts ) {
|
|
241 |
if( ! $form_inline ) {
|
242 |
$form_inline = ( isset( $additional_form_settings['yikes-easy-mc-inline-form'] ) && $additional_form_settings['yikes-easy-mc-inline-form'] == 1 ) ? true : false;
|
243 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
if( $form_inline ) {
|
245 |
$field_width = (float) ( 100 / $field_count );
|
246 |
$submit_button_width = (float) ( 20 / $field_count );
|
@@ -268,39 +301,6 @@ function process_mailchimp_shortcode( $atts ) {
|
|
268 |
|
269 |
<section id="yikes-mailchimp-container-<?php echo $form_id; ?>" class="yikes-mailchimp-container yikes-mailchimp-container-<?php echo $form_id; ?> <?php echo apply_filters( 'yikes-mailchimp-form-container-class', '', $form_id ); ?>">
|
270 |
<?php
|
271 |
-
|
272 |
-
/* If the current user is logged in, and an admin...lets display our 'Edit Form' link */
|
273 |
-
if( is_user_logged_in() ) {
|
274 |
-
if( current_user_can( apply_filters( 'yikes-mailchimp-user-role-access' , 'manage_options' ) ) ) {
|
275 |
-
$edit_form_link = '<span class="edit-link">';
|
276 |
-
$edit_form_link .= '<a class="post-edit-link" href="' . esc_url( admin_url( 'admin.php?page=yikes-mailchimp-edit-form&id=' . $form ) ) . '" title="' . __( 'Edit' , 'yikes-inc-easy-mailchimp-extender' ) . ' ' . ucwords( $form_settings['form_name'] ) . '">' . __( 'Edit Form' , 'yikes-inc-easy-mailchimp-extender' ) . '</a>';
|
277 |
-
$edit_form_link .= '</span>';
|
278 |
-
$edit_form_link = apply_filters( 'yikes-mailchimp-front-end-form-action-links', $edit_form_link, $form, ucwords( $form_settings['form_name'] ) );
|
279 |
-
} else {
|
280 |
-
$edit_form_link = '';
|
281 |
-
}
|
282 |
-
}
|
283 |
-
|
284 |
-
// ensure there is an 'email' field the user can fill out
|
285 |
-
// or else MailChimp throws errors at you
|
286 |
-
// extract our array keys
|
287 |
-
if( isset( $form_settings['fields'] ) && ! empty( $form_settings['fields'] ) ) {
|
288 |
-
$array_keys = array_keys( $form_settings['fields'] );
|
289 |
-
// check for EMAIL in that array
|
290 |
-
if( !in_array( 'EMAIL', $array_keys ) && !in_array( 'email', $array_keys ) ) {
|
291 |
-
return '<p>' . __( "An email field is required for all MailChimp forms. Please add an email field to this form." , 'yikes-inc-easy-mailchimp-extender' ) . '</p><p>' . $edit_form_link . '</p>';
|
292 |
-
}
|
293 |
-
} else {
|
294 |
-
$error = '<p>' . __( "Whoops, it looks like you forgot to assign fields to this form." , 'yikes-inc-easy-mailchimp-extender' ) . '</p>';
|
295 |
-
if( is_user_logged_in() ) {
|
296 |
-
if( current_user_can( apply_filters( 'yikes-mailchimp-user-role-access' , 'manage_options' ) ) ) {
|
297 |
-
return $error . $edit_form_link;
|
298 |
-
}
|
299 |
-
} else {
|
300 |
-
return $error;
|
301 |
-
}
|
302 |
-
}
|
303 |
-
|
304 |
/*
|
305 |
* pre-form action hooks
|
306 |
* check readme for usage examples
|
@@ -361,6 +361,10 @@ function process_mailchimp_shortcode( $atts ) {
|
|
361 |
<form id="<?php echo sanitize_title( $form_settings['form_name'] ); ?>-<?php echo $form_id; ?>" class="yikes-easy-mc-form yikes-easy-mc-form-<?php echo $form_id . ' '; if ( $form_inline ) { echo 'yikes-mailchimp-form-inline '; } echo ' ' . apply_filters( 'yikes-mailchimp-form-class', $form_classes, $form_id ); if( !empty( $_POST ) && $form_submitted == 1 && $form_settings['submission_settings']['hide_form_post_signup'] == 1 ) { echo ' yikes-easy-mc-display-none'; } ?>" action="" method="POST" data-attr-form-id="<?php echo $form_id; ?>">
|
362 |
|
363 |
<?php
|
|
|
|
|
|
|
|
|
364 |
foreach( $form_settings['fields'] as $field ) {
|
365 |
// input array
|
366 |
$field_array = array();
|
@@ -427,7 +431,8 @@ function process_mailchimp_shortcode( $atts ) {
|
|
427 |
}
|
428 |
|
429 |
if( isset( $field['hide-label'] ) ) {
|
430 |
-
if( $field['hide-label']
|
|
|
431 |
$custom_classes[] = 'field-no-label';
|
432 |
}
|
433 |
}
|
@@ -1167,7 +1172,13 @@ function process_mailchimp_shortcode( $atts ) {
|
|
1167 |
<!-- Submit Button -->
|
1168 |
<?php
|
1169 |
if( $form_inline ) {
|
1170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1171 |
}
|
1172 |
// display the image or text based button
|
1173 |
if( $submit_button_type == 'text' ) {
|
241 |
if( ! $form_inline ) {
|
242 |
$form_inline = ( isset( $additional_form_settings['yikes-easy-mc-inline-form'] ) && $additional_form_settings['yikes-easy-mc-inline-form'] == 1 ) ? true : false;
|
243 |
}
|
244 |
+
|
245 |
+
/* If the current user is logged in, and an admin...lets display our 'Edit Form' link */
|
246 |
+
if( is_user_logged_in() ) {
|
247 |
+
if( current_user_can( apply_filters( 'yikes-mailchimp-user-role-access' , 'manage_options' ) ) ) {
|
248 |
+
$edit_form_link = '<span class="edit-link">';
|
249 |
+
$edit_form_link .= '<a class="post-edit-link" href="' . esc_url( admin_url( 'admin.php?page=yikes-mailchimp-edit-form&id=' . $form ) ) . '" title="' . __( 'Edit' , 'yikes-inc-easy-mailchimp-extender' ) . ' ' . ucwords( $form_settings['form_name'] ) . '">' . __( 'Edit Form' , 'yikes-inc-easy-mailchimp-extender' ) . '</a>';
|
250 |
+
$edit_form_link .= '</span>';
|
251 |
+
$edit_form_link = apply_filters( 'yikes-mailchimp-front-end-form-action-links', $edit_form_link, $form, ucwords( $form_settings['form_name'] ) );
|
252 |
+
} else {
|
253 |
+
$edit_form_link = '';
|
254 |
+
}
|
255 |
+
}
|
256 |
+
|
257 |
+
// ensure there is an 'email' field the user can fill out
|
258 |
+
// or else MailChimp throws errors at you
|
259 |
+
// extract our array keys
|
260 |
+
if( isset( $form_settings['fields'] ) && ! empty( $form_settings['fields'] ) ) {
|
261 |
+
$array_keys = array_keys( $form_settings['fields'] );
|
262 |
+
// check for EMAIL in that array
|
263 |
+
if( !in_array( 'EMAIL', $array_keys ) && !in_array( 'email', $array_keys ) ) {
|
264 |
+
return '<p>' . __( "An email field is required for all MailChimp forms. Please add an email field to this form." , 'yikes-inc-easy-mailchimp-extender' ) . '</p><p>' . $edit_form_link . '</p>';
|
265 |
+
}
|
266 |
+
} else {
|
267 |
+
$error = '<p>' . __( "Whoops, it looks like you forgot to assign fields to this form." , 'yikes-inc-easy-mailchimp-extender' ) . '</p>';
|
268 |
+
if( is_user_logged_in() ) {
|
269 |
+
if( current_user_can( apply_filters( 'yikes-mailchimp-user-role-access' , 'manage_options' ) ) ) {
|
270 |
+
return $error . $edit_form_link;
|
271 |
+
}
|
272 |
+
} else {
|
273 |
+
return $error;
|
274 |
+
}
|
275 |
+
}
|
276 |
+
|
277 |
if( $form_inline ) {
|
278 |
$field_width = (float) ( 100 / $field_count );
|
279 |
$submit_button_width = (float) ( 20 / $field_count );
|
301 |
|
302 |
<section id="yikes-mailchimp-container-<?php echo $form_id; ?>" class="yikes-mailchimp-container yikes-mailchimp-container-<?php echo $form_id; ?> <?php echo apply_filters( 'yikes-mailchimp-form-container-class', '', $form_id ); ?>">
|
303 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
/*
|
305 |
* pre-form action hooks
|
306 |
* check readme for usage examples
|
361 |
<form id="<?php echo sanitize_title( $form_settings['form_name'] ); ?>-<?php echo $form_id; ?>" class="yikes-easy-mc-form yikes-easy-mc-form-<?php echo $form_id . ' '; if ( $form_inline ) { echo 'yikes-mailchimp-form-inline '; } echo ' ' . apply_filters( 'yikes-mailchimp-form-class', $form_classes, $form_id ); if( !empty( $_POST ) && $form_submitted == 1 && $form_settings['submission_settings']['hide_form_post_signup'] == 1 ) { echo ' yikes-easy-mc-display-none'; } ?>" action="" method="POST" data-attr-form-id="<?php echo $form_id; ?>">
|
362 |
|
363 |
<?php
|
364 |
+
// Set a default constant for hidden fields
|
365 |
+
$hidden_label_count = 0;
|
366 |
+
|
367 |
+
// Loop over our form fields
|
368 |
foreach( $form_settings['fields'] as $field ) {
|
369 |
// input array
|
370 |
$field_array = array();
|
431 |
}
|
432 |
|
433 |
if( isset( $field['hide-label'] ) ) {
|
434 |
+
if( absint( $field['hide-label'] ) === 1 ) {
|
435 |
+
$hidden_label_count++;
|
436 |
$custom_classes[] = 'field-no-label';
|
437 |
}
|
438 |
}
|
1172 |
<!-- Submit Button -->
|
1173 |
<?php
|
1174 |
if( $form_inline ) {
|
1175 |
+
$submit_button_label_classes = array( 'empty-label' );
|
1176 |
+
// If the number of fields, is equal to the hidden label count, add our class
|
1177 |
+
// eg: All field labels are set to hidden.
|
1178 |
+
if ( absint( $field_count ) === absint( $hidden_label_count ) ) {
|
1179 |
+
$submit_button_label_classes[] = 'labels-hidden';
|
1180 |
+
}
|
1181 |
+
echo '<label class="empty-form-inline-label submit-button-inline-label"><span class="' . implode( ' ', $submit_button_label_classes ) . '"> </span>';
|
1182 |
}
|
1183 |
// display the image or text based button
|
1184 |
if( $submit_button_type == 'text' ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=dona
|
|
4 |
Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 6.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -235,6 +235,12 @@ Below you'll find a complete list of the hooks and filters available in Easy For
|
|
235 |
|
236 |
== Changelog ==
|
237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
= Easy Forms for MailChimp 6.1.2 - July 21st, 2016 =
|
239 |
* Fixed incorrect date format on date picker for birthday fields (Front end).
|
240 |
* Ensure that hidden fields don't become visible when forms are submitted (.fadeTo() bug)
|
@@ -651,6 +657,13 @@ We have added brand new functionality, allowing users to easily customize forms
|
|
651 |
|
652 |
== Upgrade Notice ==
|
653 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
654 |
= Easy Forms for MailChimp 6.1.2 - July 21st, 2016 =
|
655 |
|
656 |
* Fixed incorrect date format on date picker for birthday fields (Front end).
|
4 |
Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 6.1.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
235 |
|
236 |
== Changelog ==
|
237 |
|
238 |
+
= Easy Forms for MailChimp 6.1.3 - July 26th, 2016 =
|
239 |
+
* Minor security patch - Thanks goes to the Wordfence Research Team for locating and disclosing the issue.
|
240 |
+
* Cleared API/Account transient data when API key has changed.
|
241 |
+
* Refactored our shortcode function to abort early, when no fields are present (inline or not).
|
242 |
+
* Added `labels-hidden` class to the submit button `<span></span>` element so we can better style inline forms when <strong>all</strong> labels are hidden.
|
243 |
+
|
244 |
= Easy Forms for MailChimp 6.1.2 - July 21st, 2016 =
|
245 |
* Fixed incorrect date format on date picker for birthday fields (Front end).
|
246 |
* Ensure that hidden fields don't become visible when forms are submitted (.fadeTo() bug)
|
657 |
|
658 |
== Upgrade Notice ==
|
659 |
|
660 |
+
= Easy Forms for MailChimp 6.1.3 - July 26th, 2016 =
|
661 |
+
|
662 |
+
* Minor security patch - Thanks goes to the Wordfence Research Team for locating and disclosing the issue.
|
663 |
+
* Cleared API/Account transient data when API key has changed.
|
664 |
+
* Refactored our shortcode function to abort early, when no fields are present (inline or not).
|
665 |
+
* Added `labels-hidden` class to the submit button `<span></span>` element so we can better style inline forms when <strong>all</strong> labels are hidden.
|
666 |
+
|
667 |
= Easy Forms for MailChimp 6.1.2 - July 21st, 2016 =
|
668 |
|
669 |
* Fixed incorrect date format on date picker for birthday fields (Front end).
|
yikes-inc-easy-mailchimp-extender.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Easy Forms for MailChimp by YIKES
|
4 |
* Plugin URI: http://www.yikesinc.com/services/yikes-inc-easy-mailchimp-extender/
|
5 |
* Description: YIKES Easy Forms for MailChimp links your site to MailChimp and allows you to generate and display mailing list opt-in forms anywhere on your site with ease.
|
6 |
-
* Version: 6.1.
|
7 |
* Author: YIKES
|
8 |
* Author URI: http://www.yikesinc.com/
|
9 |
* License: GPL-3.0+
|
@@ -36,6 +36,16 @@ if ( ! defined( 'WPINC' ) ) {
|
|
36 |
die;
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
/**
|
40 |
* Define path constant to our plugin directory.
|
41 |
*
|
3 |
* Plugin Name: Easy Forms for MailChimp by YIKES
|
4 |
* Plugin URI: http://www.yikesinc.com/services/yikes-inc-easy-mailchimp-extender/
|
5 |
* Description: YIKES Easy Forms for MailChimp links your site to MailChimp and allows you to generate and display mailing list opt-in forms anywhere on your site with ease.
|
6 |
+
* Version: 6.1.3
|
7 |
* Author: YIKES
|
8 |
* Author URI: http://www.yikesinc.com/
|
9 |
* License: GPL-3.0+
|
36 |
die;
|
37 |
}
|
38 |
|
39 |
+
/**
|
40 |
+
* Define version constant
|
41 |
+
*
|
42 |
+
* @since 6.1.3
|
43 |
+
* @return void
|
44 |
+
*/
|
45 |
+
if ( ! defined( 'YIKES_MC_VERSION' ) ) {
|
46 |
+
define( 'YIKES_MC_VERSION' , '6.1.3' );
|
47 |
+
}
|
48 |
+
|
49 |
/**
|
50 |
* Define path constant to our plugin directory.
|
51 |
*
|