Version Description
Fixes
- Fix fatal error when using
mc4wp_checkbox()
function - No more double API request when integrating with Contact Form 7
Improvements
- Template functions are now always loaded when needed
- A warning will now show when required fields are missing in the form mark-up
- Required form classes can no longer be accidentally removed
- Various checkbox integration improvements
- Various CSS improvements to colored form themes
- Updated Spanish translations
Download this release
Release Info
Developer | DvanKooten |
Plugin | MailChimp for WordPress |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- assets/css/admin.css +4 -10
- assets/css/form-theme-blue.css +1 -1
- assets/css/form-theme-dark.css +1 -1
- assets/css/form-theme-green.css +1 -1
- assets/css/form-theme-light.css +1 -1
- assets/css/form-theme-red.css +1 -1
- assets/js/admin.js +11 -0
- assets/sass/form-theme-blue.scss +3 -3
- assets/sass/form-theme-dark.scss +4 -4
- assets/sass/form-theme-green.scss +3 -3
- assets/sass/form-theme-light.scss +3 -3
- assets/sass/form-theme-red.scss +3 -5
- includes/class-admin.php +64 -17
- includes/class-checkbox-manager.php +13 -11
- includes/class-form-manager.php +8 -11
- includes/class-plugin.php +0 -6
- includes/functions/template.php +7 -1
- includes/integrations/class-bbpress.php +3 -5
- includes/integrations/class-buddypress.php +3 -8
- includes/integrations/class-cf7.php +4 -6
- includes/integrations/class-comment-form.php +4 -9
- includes/integrations/class-general.php +48 -10
- includes/integrations/class-integration.php +59 -28
- includes/integrations/class-multisite.php +3 -8
- includes/integrations/class-registration-form.php +3 -8
- includes/views/form-settings.php +18 -2
- includes/views/parts/admin-field-wizard.php +5 -5
- includes/views/parts/admin-footer.php +1 -1
- includes/views/parts/admin-need-support.php +3 -3
- includes/views/parts/admin-upgrade-to-pro.php +1 -1
- languages/mailchimp-for-wp-es_ES.mo +0 -0
- languages/mailchimp-for-wp-es_ES.po +197 -148
- mailchimp-for-wp.php +3 -2
- readme.txt +19 -3
assets/css/admin.css
CHANGED
@@ -15,13 +15,6 @@
|
|
15 |
box-sizing: border-box;
|
16 |
}
|
17 |
|
18 |
-
.mc4wp-info {
|
19 |
-
padding: 5px 15px;
|
20 |
-
color: #3a87ad;
|
21 |
-
background-color: #d9edf7;
|
22 |
-
border-color: #bce8f1;
|
23 |
-
}
|
24 |
-
|
25 |
.valigntop{
|
26 |
vertical-align: top !important;
|
27 |
}
|
@@ -109,10 +102,11 @@
|
|
109 |
}
|
110 |
|
111 |
.mc4wp-notice{
|
112 |
-
padding:
|
113 |
color: #31708f;
|
114 |
-
background
|
115 |
-
border:1px solid #bce8f1;
|
|
|
116 |
}
|
117 |
|
118 |
.mc4wp-col {
|
15 |
box-sizing: border-box;
|
16 |
}
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
.valigntop{
|
19 |
vertical-align: top !important;
|
20 |
}
|
102 |
}
|
103 |
|
104 |
.mc4wp-notice{
|
105 |
+
padding: 6px 8px;
|
106 |
color: #31708f;
|
107 |
+
background: #d9edf7;
|
108 |
+
border: 1px solid #bce8f1;
|
109 |
+
margin: 1em 0 !important;
|
110 |
}
|
111 |
|
112 |
.mc4wp-col {
|
assets/css/form-theme-blue.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:bold;margin-bottom:5px}.mc4wp-form ul,.mc4wp-form li{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:normal}.mc4wp-form p>label:nth-child(2){margin-top:10px}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa !important}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{cursor:auto;display:block;width:100%;height:auto;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type="checkbox"],.mc4wp-form input[type="radio"]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type="checkbox"]{-webkit-appearance:checkbox}.mc4wp-form input[type="radio"]{-webkit-appearance:radio}.mc4wp-form input[type="submit"],.mc4wp-form button,.mc4wp-form input[type="button"]{cursor:pointer;display:inline-block}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form{box-shadow:none !important;-webkit-box-shadow:none;-moz-box-shadow:none}.mc4wp-form p{margin:0 0 15px !important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555555;vertical-align:middle;background-color:#ffffff;border:1px solid #cccccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;background-image:none;text-shadow:none}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[readonly],.mc4wp-form input[disabled]{background-color:#eeeeee}.mc4wp-form input[type="submit"],.mc4wp-form button{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:none;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#333333;text-decoration:none;background:none}.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.mc4wp-form input[type="submit"],.mc4wp-form button{color:#ffffff !important;background-color:#428bca;border-color:#357ebd}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#ffffff;background-color:#3276b1;border-color:#285e8e}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form input[type="date"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#428bca}
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:bold;margin-bottom:5px}.mc4wp-form ul,.mc4wp-form li{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:normal}.mc4wp-form p>label:nth-child(2){margin-top:10px}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa !important}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{cursor:auto;display:block;width:100%;height:auto;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type="checkbox"],.mc4wp-form input[type="radio"]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type="checkbox"]{-webkit-appearance:checkbox}.mc4wp-form input[type="radio"]{-webkit-appearance:radio}.mc4wp-form input[type="submit"],.mc4wp-form button,.mc4wp-form input[type="button"]{cursor:pointer;display:inline-block}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form{box-shadow:none !important;-webkit-box-shadow:none;-moz-box-shadow:none}.mc4wp-form p{margin:0 0 15px !important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555555;vertical-align:middle;background-color:#ffffff;border:1px solid #cccccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;background-image:none;text-shadow:none}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[readonly],.mc4wp-form input[disabled]{background-color:#eeeeee}.mc4wp-form input[type="submit"],.mc4wp-form button{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:none;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#333333;text-decoration:none;background:none}.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.mc4wp-form input[type="submit"],.mc4wp-form button{color:#ffffff !important;background-color:#428bca !important;border-color:#357ebd}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#ffffff !important;background-color:#3276b1 !important;border-color:#285e8e}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form input[type="date"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#428bca}
|
assets/css/form-theme-dark.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:bold;margin-bottom:5px}.mc4wp-form ul,.mc4wp-form li{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:normal}.mc4wp-form p>label:nth-child(2){margin-top:10px}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa !important}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{cursor:auto;display:block;width:100%;height:auto;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type="checkbox"],.mc4wp-form input[type="radio"]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type="checkbox"]{-webkit-appearance:checkbox}.mc4wp-form input[type="radio"]{-webkit-appearance:radio}.mc4wp-form input[type="submit"],.mc4wp-form button,.mc4wp-form input[type="button"]{cursor:pointer;display:inline-block}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form{box-shadow:none !important;-webkit-box-shadow:none;-moz-box-shadow:none}.mc4wp-form p{margin:0 0 15px !important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555555;vertical-align:middle;background-color:#ffffff;border:1px solid #cccccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;background-image:none;text-shadow:none}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[readonly],.mc4wp-form input[disabled]{background-color:#eeeeee}.mc4wp-form input[type="submit"],.mc4wp-form button{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:none;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#333333;text-decoration:none;background:none}.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.mc4wp-form input[type="submit"],.mc4wp-form button{color:#ffffff !important;background-color:#444444;border-color:#282828}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#ffffff;background-color:#282828;border-color:#111111}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form input[type="date"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#444444}
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:bold;margin-bottom:5px}.mc4wp-form ul,.mc4wp-form li{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:normal}.mc4wp-form p>label:nth-child(2){margin-top:10px}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa !important}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{cursor:auto;display:block;width:100%;height:auto;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type="checkbox"],.mc4wp-form input[type="radio"]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type="checkbox"]{-webkit-appearance:checkbox}.mc4wp-form input[type="radio"]{-webkit-appearance:radio}.mc4wp-form input[type="submit"],.mc4wp-form button,.mc4wp-form input[type="button"]{cursor:pointer;display:inline-block}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form{box-shadow:none !important;-webkit-box-shadow:none;-moz-box-shadow:none}.mc4wp-form p{margin:0 0 15px !important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555555;vertical-align:middle;background-color:#ffffff;border:1px solid #cccccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;background-image:none;text-shadow:none}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[readonly],.mc4wp-form input[disabled]{background-color:#eeeeee}.mc4wp-form input[type="submit"],.mc4wp-form button{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:none;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#333333;text-decoration:none;background:none}.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.mc4wp-form input[type="submit"],.mc4wp-form button{color:#ffffff !important;background-color:#444444 !important;border-color:#282828}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#ffffff !important;background-color:#282828 !important;border-color:#111111}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form input[type="date"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#444444}
|
assets/css/form-theme-green.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:bold;margin-bottom:5px}.mc4wp-form ul,.mc4wp-form li{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:normal}.mc4wp-form p>label:nth-child(2){margin-top:10px}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa !important}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{cursor:auto;display:block;width:100%;height:auto;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type="checkbox"],.mc4wp-form input[type="radio"]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type="checkbox"]{-webkit-appearance:checkbox}.mc4wp-form input[type="radio"]{-webkit-appearance:radio}.mc4wp-form input[type="submit"],.mc4wp-form button,.mc4wp-form input[type="button"]{cursor:pointer;display:inline-block}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form{box-shadow:none !important;-webkit-box-shadow:none;-moz-box-shadow:none}.mc4wp-form p{margin:0 0 15px !important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555555;vertical-align:middle;background-color:#ffffff;border:1px solid #cccccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;background-image:none;text-shadow:none}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[readonly],.mc4wp-form input[disabled]{background-color:#eeeeee}.mc4wp-form input[type="submit"],.mc4wp-form button{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:none;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#333333;text-decoration:none;background:none}.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.mc4wp-form input[type="submit"],.mc4wp-form button{color:#ffffff !important;background-color:#5cb85c;border-color:#4cae4c}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#ffffff;background-color:#47a447;border-color:#398439}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form input[type="date"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#5cb85c}
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:bold;margin-bottom:5px}.mc4wp-form ul,.mc4wp-form li{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:normal}.mc4wp-form p>label:nth-child(2){margin-top:10px}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa !important}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{cursor:auto;display:block;width:100%;height:auto;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type="checkbox"],.mc4wp-form input[type="radio"]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type="checkbox"]{-webkit-appearance:checkbox}.mc4wp-form input[type="radio"]{-webkit-appearance:radio}.mc4wp-form input[type="submit"],.mc4wp-form button,.mc4wp-form input[type="button"]{cursor:pointer;display:inline-block}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form{box-shadow:none !important;-webkit-box-shadow:none;-moz-box-shadow:none}.mc4wp-form p{margin:0 0 15px !important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555555;vertical-align:middle;background-color:#ffffff;border:1px solid #cccccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;background-image:none;text-shadow:none}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[readonly],.mc4wp-form input[disabled]{background-color:#eeeeee}.mc4wp-form input[type="submit"],.mc4wp-form button{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:none;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#333333;text-decoration:none;background:none}.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.mc4wp-form input[type="submit"],.mc4wp-form button{color:#ffffff !important;background-color:#5cb85c !important;border-color:#4cae4c}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#ffffff !important;background-color:#47a447 !important;border-color:#398439}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form input[type="date"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#5cb85c}
|
assets/css/form-theme-light.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:bold;margin-bottom:5px}.mc4wp-form ul,.mc4wp-form li{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:normal}.mc4wp-form p>label:nth-child(2){margin-top:10px}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa !important}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{cursor:auto;display:block;width:100%;height:auto;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type="checkbox"],.mc4wp-form input[type="radio"]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type="checkbox"]{-webkit-appearance:checkbox}.mc4wp-form input[type="radio"]{-webkit-appearance:radio}.mc4wp-form input[type="submit"],.mc4wp-form button,.mc4wp-form input[type="button"]{cursor:pointer;display:inline-block}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form{box-shadow:none !important;-webkit-box-shadow:none;-moz-box-shadow:none}.mc4wp-form p{margin:0 0 15px !important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555555;vertical-align:middle;background-color:#ffffff;border:1px solid #cccccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;background-image:none;text-shadow:none}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[readonly],.mc4wp-form input[disabled]{background-color:#eeeeee}.mc4wp-form input[type="submit"],.mc4wp-form button{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:none;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#333333;text-decoration:none;background:none}.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.mc4wp-form input[type="submit"],.mc4wp-form button{color:#333333 !important;background-color:#ffffff;border-color:#E6E6E6}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#E6E6E6;background-color:#ebebeb;border-color:#CCCCCC}
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:bold;margin-bottom:5px}.mc4wp-form ul,.mc4wp-form li{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:normal}.mc4wp-form p>label:nth-child(2){margin-top:10px}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa !important}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{cursor:auto;display:block;width:100%;height:auto;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type="checkbox"],.mc4wp-form input[type="radio"]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type="checkbox"]{-webkit-appearance:checkbox}.mc4wp-form input[type="radio"]{-webkit-appearance:radio}.mc4wp-form input[type="submit"],.mc4wp-form button,.mc4wp-form input[type="button"]{cursor:pointer;display:inline-block}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form{box-shadow:none !important;-webkit-box-shadow:none;-moz-box-shadow:none}.mc4wp-form p{margin:0 0 15px !important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555555;vertical-align:middle;background-color:#ffffff;border:1px solid #cccccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;background-image:none;text-shadow:none}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[readonly],.mc4wp-form input[disabled]{background-color:#eeeeee}.mc4wp-form input[type="submit"],.mc4wp-form button{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:none;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#333333;text-decoration:none;background:none}.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.mc4wp-form input[type="submit"],.mc4wp-form button{color:#333333 !important;background-color:#ffffff !important;border-color:#E6E6E6}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#E6E6E6 !important;background-color:#ebebeb !important;border-color:#CCCCCC}
|
assets/css/form-theme-red.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:bold;margin-bottom:5px}.mc4wp-form ul,.mc4wp-form li{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:normal}.mc4wp-form p>label:nth-child(2){margin-top:10px}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa !important}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{cursor:auto;display:block;width:100%;height:auto;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type="checkbox"],.mc4wp-form input[type="radio"]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type="checkbox"]{-webkit-appearance:checkbox}.mc4wp-form input[type="radio"]{-webkit-appearance:radio}.mc4wp-form input[type="submit"],.mc4wp-form button,.mc4wp-form input[type="button"]{cursor:pointer;display:inline-block}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form{box-shadow:none !important;-webkit-box-shadow:none;-moz-box-shadow:none}.mc4wp-form p{margin:0 0 15px !important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555555;vertical-align:middle;background-color:#ffffff;border:1px solid #cccccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;background-image:none;text-shadow:none}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[readonly],.mc4wp-form input[disabled]{background-color:#eeeeee}.mc4wp-form input[type="submit"],.mc4wp-form button{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:none;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#333333;text-decoration:none}.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.mc4wp-form input[type="submit"],.mc4wp-form button{color:#ffffff !important;background-color:#d9534f;border-color:#d43f3a}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#ffffff;background-color:#d2322d;border-color:#ac2925}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form input[type="date"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#d9534f}
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:bold;margin-bottom:5px}.mc4wp-form ul,.mc4wp-form li{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:normal}.mc4wp-form p>label:nth-child(2){margin-top:10px}.mc4wp-form input{vertical-align:baseline}.mc4wp-form input.placeholdersjs{color:#aaa !important}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{cursor:auto;display:block;width:100%;height:auto;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mc4wp-form input[type="checkbox"],.mc4wp-form input[type="radio"]{position:relative;margin:0 6px 0 0;padding:0;height:13px;width:13px;display:inline-block;border:0}.mc4wp-form input[type="checkbox"]{-webkit-appearance:checkbox}.mc4wp-form input[type="radio"]{-webkit-appearance:radio}.mc4wp-form input[type="submit"],.mc4wp-form button,.mc4wp-form input[type="button"]{cursor:pointer;display:inline-block}.mc4wp-alert{margin:1em 0;padding:10px 15px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;display:block;position:relative}.mc4wp-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.mc4wp-notice{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.mc4wp-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.mc4wp-form{box-shadow:none !important;-webkit-box-shadow:none;-moz-box-shadow:none}.mc4wp-form p{margin:0 0 15px !important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type="text"],.mc4wp-form input[type="email"],.mc4wp-form input[type="tel"],.mc4wp-form input[type="url"],.mc4wp-form input[type="date"],.mc4wp-form textarea,.mc4wp-form select{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555555;vertical-align:middle;background-color:#ffffff;border:1px solid #cccccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;-webkit-transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;background-image:none;text-shadow:none}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[readonly],.mc4wp-form input[disabled]{background-color:#eeeeee}.mc4wp-form input[type="submit"],.mc4wp-form button{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;box-shadow:none;background:none;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#333333;text-decoration:none;background:none}.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.mc4wp-form input[type="submit"],.mc4wp-form button{color:#ffffff !important;background-color:#d9534f !important;border-color:#d43f3a}.mc4wp-form input[type="submit"]:hover,.mc4wp-form button:hover,.mc4wp-form input[type="submit"]:active,.mc4wp-form button:active,.mc4wp-form input[type="submit"]:focus,.mc4wp-form button:focus{color:#ffffff !important;background-color:#d2322d !important;border-color:#ac2925}.mc4wp-form input[type="text"]:focus,.mc4wp-form input[type="email"]:focus,.mc4wp-form input[type="tel"]:focus,.mc4wp-form input[type="url"]:focus,.mc4wp-form input[type="date"]:focus,.mc4wp-form textarea:focus,.mc4wp-form select:focus{border-color:#d9534f}
|
assets/js/admin.js
CHANGED
@@ -11,6 +11,17 @@
|
|
11 |
event.stopPropagation();
|
12 |
});
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
$(document).delegate('#mc4wpformmarkup', 'keydown', function(e) {
|
15 |
var keyCode = e.keyCode || e.which;
|
16 |
|
11 |
event.stopPropagation();
|
12 |
});
|
13 |
|
14 |
+
(function() {
|
15 |
+
$lists = $("#mc4wp-lists :input");
|
16 |
+
$lists.change( toggleNotices );
|
17 |
+
|
18 |
+
function toggleNotices() {
|
19 |
+
var hasListSelected = $lists.filter(':checked').length > 0;
|
20 |
+
$(".mc4wp-notice.no-lists-selected").toggle( ! hasListSelected );
|
21 |
+
$('#mc4wp-fw-mailchimp-fields').toggle( hasListSelected );
|
22 |
+
}
|
23 |
+
})();
|
24 |
+
|
25 |
$(document).delegate('#mc4wpformmarkup', 'keydown', function(e) {
|
26 |
var keyCode = e.keyCode || e.which;
|
27 |
|
assets/sass/form-theme-blue.scss
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
.mc4wp-form input[type="submit"],
|
5 |
.mc4wp-form button {
|
6 |
color: #ffffff !important;
|
7 |
-
background-color: #428bca;
|
8 |
border-color: #357ebd;
|
9 |
}
|
10 |
|
@@ -14,8 +14,8 @@
|
|
14 |
.mc4wp-form button:active,
|
15 |
.mc4wp-form input[type="submit"]:focus,
|
16 |
.mc4wp-form button:focus {
|
17 |
-
color: #ffffff;
|
18 |
-
background-color: #3276b1;
|
19 |
border-color: #285e8e;
|
20 |
}
|
21 |
|
4 |
.mc4wp-form input[type="submit"],
|
5 |
.mc4wp-form button {
|
6 |
color: #ffffff !important;
|
7 |
+
background-color: #428bca !important;
|
8 |
border-color: #357ebd;
|
9 |
}
|
10 |
|
14 |
.mc4wp-form button:active,
|
15 |
.mc4wp-form input[type="submit"]:focus,
|
16 |
.mc4wp-form button:focus {
|
17 |
+
color: #ffffff !important;
|
18 |
+
background-color: #3276b1 !important;
|
19 |
border-color: #285e8e;
|
20 |
}
|
21 |
|
assets/sass/form-theme-dark.scss
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
.mc4wp-form input[type="submit"],
|
5 |
.mc4wp-form button {
|
6 |
color: #ffffff !important;
|
7 |
-
background-color: #444444;
|
8 |
border-color: #282828;
|
9 |
}
|
10 |
|
@@ -14,8 +14,8 @@
|
|
14 |
.mc4wp-form button:active,
|
15 |
.mc4wp-form input[type="submit"]:focus,
|
16 |
.mc4wp-form button:focus {
|
17 |
-
color: #ffffff;
|
18 |
-
background-color: #282828;
|
19 |
border-color: #111111;
|
20 |
}
|
21 |
|
@@ -27,4 +27,4 @@
|
|
27 |
.mc4wp-form textarea:focus,
|
28 |
.mc4wp-form select:focus {
|
29 |
border-color: #444444;
|
30 |
-
}
|
4 |
.mc4wp-form input[type="submit"],
|
5 |
.mc4wp-form button {
|
6 |
color: #ffffff !important;
|
7 |
+
background-color: #444444 !important;
|
8 |
border-color: #282828;
|
9 |
}
|
10 |
|
14 |
.mc4wp-form button:active,
|
15 |
.mc4wp-form input[type="submit"]:focus,
|
16 |
.mc4wp-form button:focus {
|
17 |
+
color: #ffffff !important;
|
18 |
+
background-color: #282828 !important;
|
19 |
border-color: #111111;
|
20 |
}
|
21 |
|
27 |
.mc4wp-form textarea:focus,
|
28 |
.mc4wp-form select:focus {
|
29 |
border-color: #444444;
|
30 |
+
}
|
assets/sass/form-theme-green.scss
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
.mc4wp-form input[type="submit"],
|
5 |
.mc4wp-form button {
|
6 |
color: #ffffff !important;
|
7 |
-
background-color: #5cb85c;
|
8 |
border-color: #4cae4c;
|
9 |
}
|
10 |
|
@@ -14,8 +14,8 @@
|
|
14 |
.mc4wp-form button:active,
|
15 |
.mc4wp-form input[type="submit"]:focus,
|
16 |
.mc4wp-form button:focus {
|
17 |
-
color: #ffffff;
|
18 |
-
background-color: #47a447;
|
19 |
border-color: #398439;
|
20 |
}
|
21 |
|
4 |
.mc4wp-form input[type="submit"],
|
5 |
.mc4wp-form button {
|
6 |
color: #ffffff !important;
|
7 |
+
background-color: #5cb85c !important;
|
8 |
border-color: #4cae4c;
|
9 |
}
|
10 |
|
14 |
.mc4wp-form button:active,
|
15 |
.mc4wp-form input[type="submit"]:focus,
|
16 |
.mc4wp-form button:focus {
|
17 |
+
color: #ffffff !important;
|
18 |
+
background-color: #47a447 !important;
|
19 |
border-color: #398439;
|
20 |
}
|
21 |
|
assets/sass/form-theme-light.scss
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
.mc4wp-form input[type="submit"],
|
5 |
.mc4wp-form button {
|
6 |
color: #333333 !important;
|
7 |
-
background-color: #ffffff;
|
8 |
border-color: #E6E6E6;
|
9 |
}
|
10 |
|
@@ -14,7 +14,7 @@
|
|
14 |
.mc4wp-form button:active,
|
15 |
.mc4wp-form input[type="submit"]:focus,
|
16 |
.mc4wp-form button:focus {
|
17 |
-
color: #E6E6E6;
|
18 |
-
background-color: #ebebeb;
|
19 |
border-color: #CCCCCC;
|
20 |
}
|
4 |
.mc4wp-form input[type="submit"],
|
5 |
.mc4wp-form button {
|
6 |
color: #333333 !important;
|
7 |
+
background-color: #ffffff !important;
|
8 |
border-color: #E6E6E6;
|
9 |
}
|
10 |
|
14 |
.mc4wp-form button:active,
|
15 |
.mc4wp-form input[type="submit"]:focus,
|
16 |
.mc4wp-form button:focus {
|
17 |
+
color: #E6E6E6 !important;
|
18 |
+
background-color: #ebebeb !important;
|
19 |
border-color: #CCCCCC;
|
20 |
}
|
assets/sass/form-theme-red.scss
CHANGED
@@ -1,12 +1,10 @@
|
|
1 |
@import "form-reset";
|
2 |
@import "form-theme-base";
|
3 |
|
4 |
-
|
5 |
-
|
6 |
.mc4wp-form input[type="submit"],
|
7 |
.mc4wp-form button {
|
8 |
color: #ffffff !important;
|
9 |
-
background-color: #d9534f;
|
10 |
border-color: #d43f3a;
|
11 |
}
|
12 |
|
@@ -16,8 +14,8 @@
|
|
16 |
.mc4wp-form button:active,
|
17 |
.mc4wp-form input[type="submit"]:focus,
|
18 |
.mc4wp-form button:focus {
|
19 |
-
color: #ffffff;
|
20 |
-
background-color: #d2322d;
|
21 |
border-color: #ac2925;
|
22 |
}
|
23 |
|
1 |
@import "form-reset";
|
2 |
@import "form-theme-base";
|
3 |
|
|
|
|
|
4 |
.mc4wp-form input[type="submit"],
|
5 |
.mc4wp-form button {
|
6 |
color: #ffffff !important;
|
7 |
+
background-color: #d9534f !important;
|
8 |
border-color: #d43f3a;
|
9 |
}
|
10 |
|
14 |
.mc4wp-form button:active,
|
15 |
.mc4wp-form input[type="submit"]:focus,
|
16 |
.mc4wp-form button:focus {
|
17 |
+
color: #ffffff !important;
|
18 |
+
background-color: #d2322d !important;
|
19 |
border-color: #ac2925;
|
20 |
}
|
21 |
|
includes/class-admin.php
CHANGED
@@ -32,7 +32,7 @@ class MC4WP_Lite_Admin
|
|
32 |
add_filter( 'quicktags_settings', array( $this, 'set_quicktags_buttons' ), 10, 2 );
|
33 |
|
34 |
// did the user click on upgrade to pro link?
|
35 |
-
if( isset( $_GET['page'] ) && $_GET['page']
|
36 |
header("Location: http://dannyvankooten.com/mailchimp-for-wordpress/#utm_source=lite-plugin&utm_medium=link&utm_campaign=menu-upgrade-link");
|
37 |
exit;
|
38 |
}
|
@@ -154,22 +154,6 @@ class MC4WP_Lite_Admin
|
|
154 |
// strip form tags (to prevent people from adding them)
|
155 |
$settings['markup'] = preg_replace( '/<\/?form(.|\s)*?>/i', '', $settings['markup'] );
|
156 |
|
157 |
-
// check if form contains EMAIL field
|
158 |
-
// <(input|textarea)(?=[^>]*name="EMAIL")[^>]*>
|
159 |
-
$search = preg_match( '/<(input|textarea)(?=[^>]*name="EMAIL")[^>]*>/i', $settings['markup'] );
|
160 |
-
if( ! $search) {
|
161 |
-
add_settings_error( 'mc4wp', 'mc4wp-form', sprintf( __( 'Your form should contain an EMAIL field. Example: <code>%s</code>', 'mailchimp-for-wp' ), '<input type="email" name="EMAIL" />' ), 'updated' );
|
162 |
-
}
|
163 |
-
|
164 |
-
// check if form contains submit button
|
165 |
-
// <(input|button)(?=[^>]*type="submit")[^>]*>
|
166 |
-
$search = preg_match( '/<(input|button)(?=[^>]*type="submit")[^>]*>/i', $settings['markup'] );
|
167 |
-
if( ! $search ) {
|
168 |
-
add_settings_error( 'mc4wp', 'mc4wp-form', sprintf( __( 'Your form should contain a submit button. Example: <code>%s</code>', 'mailchimp-for-wp' ), '<input type="submit" value="'. __( 'Sign Up', 'mailchimp-for-wp' ) .'" />' ), 'updated' );
|
169 |
-
}
|
170 |
-
|
171 |
-
// TODO: Check if form contains all the required form fields
|
172 |
-
|
173 |
}
|
174 |
|
175 |
return $settings;
|
@@ -275,6 +259,52 @@ class MC4WP_Lite_Admin
|
|
275 |
$opts = mc4wp_get_options( 'form' );
|
276 |
$lists = $this->get_mailchimp_lists();
|
277 |
$tab = 'form-settings';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
require MC4WP_LITE_PLUGIN_DIR . 'includes/views/form-settings.php';
|
279 |
}
|
280 |
|
@@ -352,6 +382,23 @@ class MC4WP_Lite_Admin
|
|
352 |
return $cached_lists;
|
353 |
}
|
354 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
355 |
/**
|
356 |
* Build the group array object which will be stored in cache
|
357 |
* @param object $group
|
32 |
add_filter( 'quicktags_settings', array( $this, 'set_quicktags_buttons' ), 10, 2 );
|
33 |
|
34 |
// did the user click on upgrade to pro link?
|
35 |
+
if( isset( $_GET['page'] ) && $_GET['page'] === 'mc4wp-lite-upgrade' && false === headers_sent() ) {
|
36 |
header("Location: http://dannyvankooten.com/mailchimp-for-wordpress/#utm_source=lite-plugin&utm_medium=link&utm_campaign=menu-upgrade-link");
|
37 |
exit;
|
38 |
}
|
154 |
// strip form tags (to prevent people from adding them)
|
155 |
$settings['markup'] = preg_replace( '/<\/?form(.|\s)*?>/i', '', $settings['markup'] );
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
}
|
158 |
|
159 |
return $settings;
|
259 |
$opts = mc4wp_get_options( 'form' );
|
260 |
$lists = $this->get_mailchimp_lists();
|
261 |
$tab = 'form-settings';
|
262 |
+
|
263 |
+
// create array of missing form fields
|
264 |
+
$missing_form_fields = array();
|
265 |
+
|
266 |
+
// check if form contains EMAIL field
|
267 |
+
$search = preg_match( '/<(input|textarea)(?=[^>]*name="EMAIL")[^>]*>/i', $opts['markup'] );
|
268 |
+
if( ! $search) {
|
269 |
+
$missing_form_fields[] = sprintf( __( 'An EMAIL field. Example: <code>%s</code>', 'mailchimp-for-wp' ), '<input type="email" name="EMAIL" />' );
|
270 |
+
}
|
271 |
+
|
272 |
+
// check if form contains submit button
|
273 |
+
$search = preg_match( '/<(input|button)(?=[^>]*type="submit")[^>]*>/i', $opts['markup'] );
|
274 |
+
if( ! $search ) {
|
275 |
+
$missing_form_fields[] = sprintf( __( 'A submit button. Example: <code>%s</code>', 'mailchimp-for-wp' ), '<input type="submit" value="'. __( 'Sign Up', 'mailchimp-for-wp' ) .'" />' );
|
276 |
+
}
|
277 |
+
|
278 |
+
// loop through selected list ids
|
279 |
+
if( isset( $opts['lists'] ) && is_array( $opts['lists'] ) ) {
|
280 |
+
|
281 |
+
foreach( $opts['lists'] as $list_id ) {
|
282 |
+
|
283 |
+
// get list object
|
284 |
+
$list = $this->get_mailchimp_list( $list_id );
|
285 |
+
if( ! is_object( $list ) ) {
|
286 |
+
continue;
|
287 |
+
}
|
288 |
+
|
289 |
+
// loop through merge vars of this list
|
290 |
+
foreach( $list->merge_vars as $merge_var ) {
|
291 |
+
|
292 |
+
// if field is required, make sure it's in the form mark-up
|
293 |
+
if( ! $merge_var->req || $merge_var->tag === 'EMAIL' ) {
|
294 |
+
continue;
|
295 |
+
}
|
296 |
+
|
297 |
+
// search for field tag in form mark-up
|
298 |
+
$search = stristr( $opts['markup'], 'name="'. $merge_var->tag .'"' );
|
299 |
+
if( false === $search ) {
|
300 |
+
$missing_form_fields[] = sprintf( __( 'A \'%s\' field', 'mailchimp-for-wp' ), $merge_var->tag );
|
301 |
+
}
|
302 |
+
|
303 |
+
}
|
304 |
+
|
305 |
+
}
|
306 |
+
}
|
307 |
+
|
308 |
require MC4WP_LITE_PLUGIN_DIR . 'includes/views/form-settings.php';
|
309 |
}
|
310 |
|
382 |
return $cached_lists;
|
383 |
}
|
384 |
|
385 |
+
/**
|
386 |
+
* @param $list_id
|
387 |
+
*
|
388 |
+
* @return bool
|
389 |
+
*/
|
390 |
+
private function get_mailchimp_list( $list_id ) {
|
391 |
+
$lists = $this->get_mailchimp_lists();
|
392 |
+
|
393 |
+
foreach( $lists as $list ) {
|
394 |
+
if( $list->id === $list_id ) {
|
395 |
+
return $list;
|
396 |
+
}
|
397 |
+
}
|
398 |
+
|
399 |
+
return false;
|
400 |
+
}
|
401 |
+
|
402 |
/**
|
403 |
* Build the group array object which will be stored in cache
|
404 |
* @param object $group
|
includes/class-checkbox-manager.php
CHANGED
@@ -8,13 +8,16 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
8 |
|
9 |
class MC4WP_Lite_Checkbox_Manager
|
10 |
{
|
11 |
-
|
|
|
|
|
|
|
|
|
12 |
/**
|
13 |
* Constructor
|
14 |
*/
|
15 |
public function __construct()
|
16 |
{
|
17 |
-
|
18 |
$opts = mc4wp_get_options( 'checkbox' );
|
19 |
|
20 |
// load checkbox css if necessary
|
@@ -23,37 +26,36 @@ class MC4WP_Lite_Checkbox_Manager
|
|
23 |
|
24 |
// Load WP Comment Form Integration
|
25 |
if ( $opts['show_at_comment_form'] ) {
|
26 |
-
new MC4WP_Comment_Form_Integration();
|
27 |
}
|
28 |
|
29 |
// Load WordPress Registration Form Integration
|
30 |
if ( $opts['show_at_registration_form'] ) {
|
31 |
-
new MC4WP_Registration_Form_Integration();
|
32 |
}
|
33 |
|
34 |
// Load BuddyPress Integration
|
35 |
if ( $opts['show_at_buddypress_form'] ) {
|
36 |
-
new MC4WP_BuddyPress_Integration();
|
37 |
}
|
38 |
|
39 |
// Load MultiSite Integration
|
40 |
if ( $opts['show_at_multisite_form'] ) {
|
41 |
-
new MC4WP_MultiSite_Integration();
|
42 |
}
|
43 |
|
44 |
// Load bbPress Integration
|
45 |
if ( $opts['show_at_bbpress_forms'] ) {
|
46 |
-
new MC4WP_bbPress_Integration();
|
47 |
}
|
48 |
|
49 |
// Load CF7 Integration
|
50 |
if( function_exists( 'wpcf7_add_shortcode' ) ) {
|
51 |
-
new MC4WP_CF7_Integration();
|
52 |
}
|
53 |
|
54 |
// Always load General Integration
|
55 |
-
|
56 |
-
|
57 |
}
|
58 |
|
59 |
/**
|
@@ -61,7 +63,7 @@ class MC4WP_Lite_Checkbox_Manager
|
|
61 |
*/
|
62 |
public function load_stylesheet( ) {
|
63 |
|
64 |
-
$opts = mc4wp_get_options('checkbox');
|
65 |
|
66 |
if( $opts['css'] == false ) {
|
67 |
return false;
|
8 |
|
9 |
class MC4WP_Lite_Checkbox_Manager
|
10 |
{
|
11 |
+
/**
|
12 |
+
* @var array Array holding all integration instances
|
13 |
+
*/
|
14 |
+
public $integrations = array();
|
15 |
+
|
16 |
/**
|
17 |
* Constructor
|
18 |
*/
|
19 |
public function __construct()
|
20 |
{
|
|
|
21 |
$opts = mc4wp_get_options( 'checkbox' );
|
22 |
|
23 |
// load checkbox css if necessary
|
26 |
|
27 |
// Load WP Comment Form Integration
|
28 |
if ( $opts['show_at_comment_form'] ) {
|
29 |
+
$this->integrations['comment_form'] = new MC4WP_Comment_Form_Integration();
|
30 |
}
|
31 |
|
32 |
// Load WordPress Registration Form Integration
|
33 |
if ( $opts['show_at_registration_form'] ) {
|
34 |
+
$this->integrations['registration_form'] = new MC4WP_Registration_Form_Integration();
|
35 |
}
|
36 |
|
37 |
// Load BuddyPress Integration
|
38 |
if ( $opts['show_at_buddypress_form'] ) {
|
39 |
+
$this->integrations['buddypress_form'] = new MC4WP_BuddyPress_Integration();
|
40 |
}
|
41 |
|
42 |
// Load MultiSite Integration
|
43 |
if ( $opts['show_at_multisite_form'] ) {
|
44 |
+
$this->integrations['multisite_form'] = new MC4WP_MultiSite_Integration();
|
45 |
}
|
46 |
|
47 |
// Load bbPress Integration
|
48 |
if ( $opts['show_at_bbpress_forms'] ) {
|
49 |
+
$this->integrations['bbpress_forms'] = new MC4WP_bbPress_Integration();
|
50 |
}
|
51 |
|
52 |
// Load CF7 Integration
|
53 |
if( function_exists( 'wpcf7_add_shortcode' ) ) {
|
54 |
+
$this->integrations['contact_form_7'] = new MC4WP_CF7_Integration();
|
55 |
}
|
56 |
|
57 |
// Always load General Integration
|
58 |
+
$this->integrations['general'] = new MC4WP_General_Integration();
|
|
|
59 |
}
|
60 |
|
61 |
/**
|
63 |
*/
|
64 |
public function load_stylesheet( ) {
|
65 |
|
66 |
+
$opts = mc4wp_get_options( 'checkbox' );
|
67 |
|
68 |
if( $opts['css'] == false ) {
|
69 |
return false;
|
includes/class-form-manager.php
CHANGED
@@ -104,22 +104,20 @@ class MC4WP_Lite_Form_Manager {
|
|
104 |
*/
|
105 |
private function get_css_classes() {
|
106 |
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
|
|
111 |
|
112 |
if( $this->error !== '' ) {
|
113 |
$css_classes[] = 'mc4wp-form-error';
|
114 |
}
|
115 |
|
116 |
-
if( $this->success ) {
|
117 |
$css_classes[] = 'mc4wp-form-success';
|
118 |
}
|
119 |
|
120 |
-
// Allow devs to add CSS classes
|
121 |
-
$css_classes = apply_filters( 'mc4wp_form_css_classes', $css_classes );
|
122 |
-
|
123 |
return implode( ' ', $css_classes );
|
124 |
}
|
125 |
|
@@ -369,7 +367,7 @@ class MC4WP_Lite_Form_Manager {
|
|
369 |
|
370 |
// uppercase all variables
|
371 |
$name = trim( strtoupper( $name ) );
|
372 |
-
$value = ( is_scalar( $value ) ) ? trim( $value ) : $value;
|
373 |
|
374 |
if( $name === 'EMAIL' && is_email($value) ) {
|
375 |
// set the email address
|
@@ -393,7 +391,7 @@ class MC4WP_Lite_Form_Manager {
|
|
393 |
if ( is_numeric( $grouping_id_or_name ) ) {
|
394 |
$grouping['id'] = $grouping_id_or_name;
|
395 |
} else {
|
396 |
-
$grouping['name'] = $grouping_id_or_name;
|
397 |
}
|
398 |
|
399 |
// comma separated list should become an array
|
@@ -449,7 +447,6 @@ class MC4WP_Lite_Form_Manager {
|
|
449 |
if( isset( $merge_vars['NAME'] ) && !isset( $merge_vars['FNAME'] ) && ! isset( $merge_vars['LNAME'] ) ) {
|
450 |
|
451 |
$strpos = strpos($merge_vars['NAME'], ' ');
|
452 |
-
|
453 |
if( $strpos !== false ) {
|
454 |
$merge_vars['FNAME'] = substr($merge_vars['NAME'], 0, $strpos);
|
455 |
$merge_vars['LNAME'] = substr($merge_vars['NAME'], $strpos);
|
104 |
*/
|
105 |
private function get_css_classes() {
|
106 |
|
107 |
+
// Allow devs to add CSS classes
|
108 |
+
$css_classes = apply_filters( 'mc4wp_form_css_classes', array( 'form' ) );
|
109 |
+
|
110 |
+
// the following classes MUST be used
|
111 |
+
$css_classes[] = 'mc4wp-form';
|
112 |
|
113 |
if( $this->error !== '' ) {
|
114 |
$css_classes[] = 'mc4wp-form-error';
|
115 |
}
|
116 |
|
117 |
+
if( $this->success === true ) {
|
118 |
$css_classes[] = 'mc4wp-form-success';
|
119 |
}
|
120 |
|
|
|
|
|
|
|
121 |
return implode( ' ', $css_classes );
|
122 |
}
|
123 |
|
367 |
|
368 |
// uppercase all variables
|
369 |
$name = trim( strtoupper( $name ) );
|
370 |
+
$value = ( is_scalar( $value ) ) ? trim( stripslashes( $value ) ) : $value;
|
371 |
|
372 |
if( $name === 'EMAIL' && is_email($value) ) {
|
373 |
// set the email address
|
391 |
if ( is_numeric( $grouping_id_or_name ) ) {
|
392 |
$grouping['id'] = $grouping_id_or_name;
|
393 |
} else {
|
394 |
+
$grouping['name'] = stripslashes( $grouping_id_or_name );
|
395 |
}
|
396 |
|
397 |
// comma separated list should become an array
|
447 |
if( isset( $merge_vars['NAME'] ) && !isset( $merge_vars['FNAME'] ) && ! isset( $merge_vars['LNAME'] ) ) {
|
448 |
|
449 |
$strpos = strpos($merge_vars['NAME'], ' ');
|
|
|
450 |
if( $strpos !== false ) {
|
451 |
$merge_vars['FNAME'] = substr($merge_vars['NAME'], 0, $strpos);
|
452 |
$merge_vars['LNAME'] = substr($merge_vars['NAME'], $strpos);
|
includes/class-plugin.php
CHANGED
@@ -49,12 +49,6 @@ class MC4WP_Lite {
|
|
49 |
|
50 |
// widget
|
51 |
add_action( 'widgets_init', array( $this, 'register_widget' ) );
|
52 |
-
|
53 |
-
if ( ! is_admin() ) {
|
54 |
-
// frontend only
|
55 |
-
include_once MC4WP_LITE_PLUGIN_DIR . 'includes/functions/template.php';
|
56 |
-
|
57 |
-
}
|
58 |
}
|
59 |
|
60 |
/**
|
49 |
|
50 |
// widget
|
51 |
add_action( 'widgets_init', array( $this, 'register_widget' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
|
54 |
/**
|
includes/functions/template.php
CHANGED
@@ -6,12 +6,18 @@ if( ! defined( "MC4WP_LITE_VERSION" ) ) {
|
|
6 |
exit;
|
7 |
}
|
8 |
|
|
|
9 |
/**
|
10 |
* Echoes a sign-up checkbox.
|
11 |
*/
|
12 |
function mc4wp_checkbox() {
|
13 |
global $mc4wp;
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
15 |
}
|
16 |
|
17 |
/**
|
6 |
exit;
|
7 |
}
|
8 |
|
9 |
+
|
10 |
/**
|
11 |
* Echoes a sign-up checkbox.
|
12 |
*/
|
13 |
function mc4wp_checkbox() {
|
14 |
global $mc4wp;
|
15 |
+
|
16 |
+
if( ! isset( $mc4wp->get_checkbox_manager()->integrations['comment_form'] ) ) {
|
17 |
+
$mc4wp->get_checkbox_manager()->integrations['comment_form'] = new MC4WP_Comment_Form_Integration();
|
18 |
+
}
|
19 |
+
|
20 |
+
$mc4wp->get_checkbox_manager()->integrations['comment_form']->output_checkbox();
|
21 |
}
|
22 |
|
23 |
/**
|
includes/integrations/class-bbpress.php
CHANGED
@@ -8,7 +8,9 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
8 |
}
|
9 |
|
10 |
class MC4WP_bbPress_Integration extends MC4WP_Integration {
|
11 |
-
|
|
|
|
|
12 |
public function __construct() {
|
13 |
add_action( 'bbp_theme_after_topic_form_subscriptions', array( $this, 'output_checkbox' ), 10 );
|
14 |
add_action( 'bbp_theme_after_reply_form_subscription', array( $this, 'output_checkbox' ), 10 );
|
@@ -17,10 +19,6 @@ class MC4WP_bbPress_Integration extends MC4WP_Integration {
|
|
17 |
add_action( 'bbp_new_reply', array( $this, 'subscribe_from_bbpress_new_reply' ), 10, 5 );
|
18 |
}
|
19 |
|
20 |
-
public function output_checkbox( $hook = '' ) {
|
21 |
-
return parent::output_checkbox( 'bbpress_forms' );
|
22 |
-
}
|
23 |
-
|
24 |
/**
|
25 |
* @param array $anonymous_data
|
26 |
* @param int $user_id
|
8 |
}
|
9 |
|
10 |
class MC4WP_bbPress_Integration extends MC4WP_Integration {
|
11 |
+
|
12 |
+
protected $type = 'bbpress_forms';
|
13 |
+
|
14 |
public function __construct() {
|
15 |
add_action( 'bbp_theme_after_topic_form_subscriptions', array( $this, 'output_checkbox' ), 10 );
|
16 |
add_action( 'bbp_theme_after_reply_form_subscription', array( $this, 'output_checkbox' ), 10 );
|
19 |
add_action( 'bbp_new_reply', array( $this, 'subscribe_from_bbpress_new_reply' ), 10, 5 );
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
22 |
/**
|
23 |
* @param array $anonymous_data
|
24 |
* @param int $user_id
|
includes/integrations/class-buddypress.php
CHANGED
@@ -8,19 +8,14 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
8 |
}
|
9 |
|
10 |
class MC4WP_BuddyPress_Integration extends MC4WP_Integration {
|
11 |
-
|
|
|
|
|
12 |
public function __construct() {
|
13 |
add_action( 'bp_before_registration_submit_buttons', array( $this, 'output_checkbox' ), 20 );
|
14 |
add_action( 'bp_core_signup_user', array( $this, 'subscribe_from_buddypress' ), 10, 4 );
|
15 |
}
|
16 |
|
17 |
-
/**
|
18 |
-
* Output checkbox for BuddyPress registration form
|
19 |
-
*/
|
20 |
-
public function output_checkbox( $hook = '' ) {
|
21 |
-
return parent::output_checkbox( 'buddypress_form' );
|
22 |
-
}
|
23 |
-
|
24 |
/**
|
25 |
* Subscribes from BuddyPress Registration Form
|
26 |
* @param int $user_id
|
8 |
}
|
9 |
|
10 |
class MC4WP_BuddyPress_Integration extends MC4WP_Integration {
|
11 |
+
|
12 |
+
protected $type = 'buddypress_form';
|
13 |
+
|
14 |
public function __construct() {
|
15 |
add_action( 'bp_before_registration_submit_buttons', array( $this, 'output_checkbox' ), 20 );
|
16 |
add_action( 'bp_core_signup_user', array( $this, 'subscribe_from_buddypress' ), 10, 4 );
|
17 |
}
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
/**
|
20 |
* Subscribes from BuddyPress Registration Form
|
21 |
* @param int $user_id
|
includes/integrations/class-cf7.php
CHANGED
@@ -9,12 +9,9 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
9 |
|
10 |
class MC4WP_CF7_Integration extends MC4WP_General_Integration {
|
11 |
|
12 |
-
protected $
|
13 |
|
14 |
public function __construct() {
|
15 |
-
|
16 |
-
$this->upgrade();
|
17 |
-
|
18 |
add_action( 'init', array( $this, 'init') );
|
19 |
|
20 |
add_action( 'wpcf7_mail_sent', array( $this, 'subscribe_from_cf7' ) );
|
@@ -38,13 +35,13 @@ class MC4WP_CF7_Integration extends MC4WP_General_Integration {
|
|
38 |
/**
|
39 |
* Alter Contact Form 7 data.
|
40 |
*
|
41 |
-
* Adds mc4wp_checkbox to post data so users can use `
|
42 |
*
|
43 |
* @param array $data
|
44 |
* @return array
|
45 |
*/
|
46 |
public function alter_cf7_data( $data = array() ) {
|
47 |
-
$data['mc4wp_checkbox'] = $this->checkbox_was_checked() ? __(
|
48 |
return $data;
|
49 |
}
|
50 |
|
@@ -53,6 +50,7 @@ class MC4WP_CF7_Integration extends MC4WP_General_Integration {
|
|
53 |
* @param array $args
|
54 |
*/
|
55 |
public function subscribe_from_cf7( $args = null ) {
|
|
|
56 |
// was sign-up checkbox checked?
|
57 |
if ( $this->checkbox_was_checked() === false ) {
|
58 |
return false;
|
9 |
|
10 |
class MC4WP_CF7_Integration extends MC4WP_General_Integration {
|
11 |
|
12 |
+
protected $type = 'contact_form_7';
|
13 |
|
14 |
public function __construct() {
|
|
|
|
|
|
|
15 |
add_action( 'init', array( $this, 'init') );
|
16 |
|
17 |
add_action( 'wpcf7_mail_sent', array( $this, 'subscribe_from_cf7' ) );
|
35 |
/**
|
36 |
* Alter Contact Form 7 data.
|
37 |
*
|
38 |
+
* Adds mc4wp_checkbox to post data so users can use `mc4wp_checkbox` in their email templates
|
39 |
*
|
40 |
* @param array $data
|
41 |
* @return array
|
42 |
*/
|
43 |
public function alter_cf7_data( $data = array() ) {
|
44 |
+
$data['mc4wp_checkbox'] = $this->checkbox_was_checked() ? __( 'Yes' ) : __( 'No' );
|
45 |
return $data;
|
46 |
}
|
47 |
|
50 |
* @param array $args
|
51 |
*/
|
52 |
public function subscribe_from_cf7( $args = null ) {
|
53 |
+
|
54 |
// was sign-up checkbox checked?
|
55 |
if ( $this->checkbox_was_checked() === false ) {
|
56 |
return false;
|
includes/integrations/class-comment-form.php
CHANGED
@@ -7,7 +7,9 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
7 |
}
|
8 |
|
9 |
class MC4WP_Comment_Form_Integration extends MC4WP_Integration {
|
10 |
-
|
|
|
|
|
11 |
public function __construct() {
|
12 |
// hooks for outputting the checkbox
|
13 |
add_action( 'thesis_hook_after_comment_box', array( $this, 'output_checkbox' ), 10 );
|
@@ -17,13 +19,6 @@ class MC4WP_Comment_Form_Integration extends MC4WP_Integration {
|
|
17 |
add_action( 'comment_post', array( $this, 'subscribe_from_comment' ), 40, 2 );
|
18 |
}
|
19 |
|
20 |
-
/**
|
21 |
-
* Outputs the checkbox for the comment form
|
22 |
-
*/
|
23 |
-
public function output_checkbox( $hook = '' ) {
|
24 |
-
return parent::output_checkbox( 'comment_form' );
|
25 |
-
}
|
26 |
-
|
27 |
/**
|
28 |
* Grabs data from WP Comment Form
|
29 |
*
|
@@ -50,6 +45,6 @@ class MC4WP_Comment_Form_Integration extends MC4WP_Integration {
|
|
50 |
'OPTIN_IP' => $comment->comment_author_IP
|
51 |
);
|
52 |
|
53 |
-
return $this->subscribe( $email, $merge_vars, 'comment' );
|
54 |
}
|
55 |
}
|
7 |
}
|
8 |
|
9 |
class MC4WP_Comment_Form_Integration extends MC4WP_Integration {
|
10 |
+
|
11 |
+
protected $type = 'comment_form';
|
12 |
+
|
13 |
public function __construct() {
|
14 |
// hooks for outputting the checkbox
|
15 |
add_action( 'thesis_hook_after_comment_box', array( $this, 'output_checkbox' ), 10 );
|
19 |
add_action( 'comment_post', array( $this, 'subscribe_from_comment' ), 40, 2 );
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
/**
|
23 |
* Grabs data from WP Comment Form
|
24 |
*
|
45 |
'OPTIN_IP' => $comment->comment_author_IP
|
46 |
);
|
47 |
|
48 |
+
return $this->subscribe( $email, $merge_vars, 'comment', $comment_ID );
|
49 |
}
|
50 |
}
|
includes/integrations/class-general.php
CHANGED
@@ -9,7 +9,8 @@ if( ! defined( "MC4WP_LITE_VERSION" ) ) {
|
|
9 |
|
10 |
class MC4WP_General_Integration extends MC4WP_Integration {
|
11 |
|
12 |
-
|
|
|
13 |
|
14 |
/**
|
15 |
* Constructor
|
@@ -19,19 +20,57 @@ class MC4WP_General_Integration extends MC4WP_Integration {
|
|
19 |
$this->upgrade();
|
20 |
|
21 |
// hook actions
|
22 |
-
add_action( 'init', array( $this, '
|
23 |
}
|
24 |
|
25 |
/**
|
26 |
* Upgrade routine
|
27 |
-
* - Handles name change of checkbox for third-party form integrations: mc4wp-try-subscribe > mc4wp-subscribe
|
28 |
*/
|
29 |
public function upgrade() {
|
30 |
// set new $_POST trigger value
|
31 |
if( isset( $_POST['mc4wp-try-subscribe'] ) ) {
|
32 |
-
$_POST[
|
33 |
unset( $_POST['mc4wp-try-subscribe'] );
|
34 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
36 |
|
37 |
/**
|
@@ -41,7 +80,7 @@ class MC4WP_General_Integration extends MC4WP_Integration {
|
|
41 |
*/
|
42 |
public function try_subscribe( $trigger = 'other_form' ) {
|
43 |
|
44 |
-
if ( $this->checkbox_was_checked() === false ) {
|
45 |
return false;
|
46 |
}
|
47 |
|
@@ -53,13 +92,12 @@ class MC4WP_General_Integration extends MC4WP_Integration {
|
|
53 |
|
54 |
foreach( $_POST as $key => $value ) {
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
if( $key[0] === '_' || $key === $this->checkbox_name_value ) {
|
59 |
-
continue;
|
60 |
} elseif( strtolower( substr( $key, 0, 6 ) ) === 'mc4wp-' ) {
|
61 |
// find extra fields which should be sent to MailChimp
|
62 |
$key = strtoupper( substr( $key, 6 ) );
|
|
|
63 |
|
64 |
switch( $key ) {
|
65 |
case 'EMAIL':
|
@@ -77,7 +115,7 @@ class MC4WP_General_Integration extends MC4WP_Integration {
|
|
77 |
if(is_numeric($grouping_id_or_name)) {
|
78 |
$grouping['id'] = $grouping_id_or_name;
|
79 |
} else {
|
80 |
-
$grouping['name'] = $grouping_id_or_name;
|
81 |
}
|
82 |
|
83 |
// comma separated list should become an array
|
9 |
|
10 |
class MC4WP_General_Integration extends MC4WP_Integration {
|
11 |
|
12 |
+
|
13 |
+
protected $type = 'general';
|
14 |
|
15 |
/**
|
16 |
* Constructor
|
20 |
$this->upgrade();
|
21 |
|
22 |
// hook actions
|
23 |
+
add_action( 'init', array( $this, 'maybe_subscribe'), 90 );
|
24 |
}
|
25 |
|
26 |
/**
|
27 |
* Upgrade routine
|
|
|
28 |
*/
|
29 |
public function upgrade() {
|
30 |
// set new $_POST trigger value
|
31 |
if( isset( $_POST['mc4wp-try-subscribe'] ) ) {
|
32 |
+
$_POST[ 'mc4wp-subscribe' ] = 1;
|
33 |
unset( $_POST['mc4wp-try-subscribe'] );
|
34 |
}
|
35 |
+
|
36 |
+
if( isset( $_POST['mc4wp-do-subscribe'] ) ) {
|
37 |
+
$_POST['mc4wp-subscribe'] = 1;
|
38 |
+
unset( $_POST['mc4wp-do-subscribe'] );
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Maybe fire a general subscription request
|
44 |
+
*/
|
45 |
+
public function maybe_subscribe() {
|
46 |
+
if ( $this->checkbox_was_checked() === false ) {
|
47 |
+
return;
|
48 |
+
}
|
49 |
+
|
50 |
+
// don't run if this is a CF7 request
|
51 |
+
// @todo handle this in a better way. noob.
|
52 |
+
if( isset( $_POST['_wpcf7'] ) ) {
|
53 |
+
return false;
|
54 |
+
}
|
55 |
+
|
56 |
+
$this->try_subscribe( 'other_form' );
|
57 |
+
}
|
58 |
+
|
59 |
+
/**
|
60 |
+
* @return boolean
|
61 |
+
*/
|
62 |
+
public function checkbox_was_checked() {
|
63 |
+
|
64 |
+
// Check if honeypot was filled (by spam bots)
|
65 |
+
if( isset( $_POST['_mc4wp_required_but_not_really'] ) && ! empty( $_POST['_mc4wp_required_but_not_really'] ) ) {
|
66 |
+
return false;
|
67 |
+
}
|
68 |
+
|
69 |
+
if ( isset( $_POST[ '_mc4wp_subscribe' ] ) && $_POST[ '_mc4wp_subscribe' ] == 1 ) {
|
70 |
+
return true;
|
71 |
+
}
|
72 |
+
|
73 |
+
return ( isset( $_POST['mc4wp-subscribe'] ) && $_POST['mc4wp-subscribe'] == 1 );
|
74 |
}
|
75 |
|
76 |
/**
|
80 |
*/
|
81 |
public function try_subscribe( $trigger = 'other_form' ) {
|
82 |
|
83 |
+
if ( $this->checkbox_was_checked() === false ) {
|
84 |
return false;
|
85 |
}
|
86 |
|
92 |
|
93 |
foreach( $_POST as $key => $value ) {
|
94 |
|
95 |
+
if( $key[0] === '_' || $key === 'mc4wp-subscribe' ) {
|
96 |
+
continue;
|
|
|
|
|
97 |
} elseif( strtolower( substr( $key, 0, 6 ) ) === 'mc4wp-' ) {
|
98 |
// find extra fields which should be sent to MailChimp
|
99 |
$key = strtoupper( substr( $key, 6 ) );
|
100 |
+
$value = ( is_scalar( $value ) ) ? trim( $value ) : $value;
|
101 |
|
102 |
switch( $key ) {
|
103 |
case 'EMAIL':
|
115 |
if(is_numeric($grouping_id_or_name)) {
|
116 |
$grouping['id'] = $grouping_id_or_name;
|
117 |
} else {
|
118 |
+
$grouping['name'] = stripslashes( $grouping_id_or_name );
|
119 |
}
|
120 |
|
121 |
// comma separated list should become an array
|
includes/integrations/class-integration.php
CHANGED
@@ -8,8 +8,10 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
8 |
|
9 |
abstract class MC4WP_Integration {
|
10 |
|
11 |
-
|
12 |
-
|
|
|
|
|
13 |
/**
|
14 |
* Constructor
|
15 |
*/
|
@@ -33,28 +35,27 @@ abstract class MC4WP_Integration {
|
|
33 |
*
|
34 |
* @param string $hook
|
35 |
*/
|
36 |
-
public function output_checkbox(
|
37 |
-
echo $this->get_checkbox(
|
38 |
}
|
39 |
|
40 |
/**
|
41 |
* @param mixed $hook Array or string
|
42 |
* @return string
|
43 |
*/
|
44 |
-
public function get_checkbox( $
|
45 |
|
46 |
-
$args = $hook;
|
47 |
$opts = mc4wp_get_options( 'checkbox' );
|
48 |
|
49 |
$checked = $opts['precheck'] ? "checked" : '';
|
50 |
|
51 |
// set label text
|
52 |
-
if (
|
53 |
-
// custom label text was set
|
54 |
-
$label = __( $opts['text_' . $hook . '_label'] );
|
55 |
-
} elseif ( $args && is_array( $args ) && isset( $args['labels'][0] ) ) {
|
56 |
// cf 7 shortcode
|
57 |
$label = $args['labels'][0];
|
|
|
|
|
|
|
58 |
} else {
|
59 |
// default label text
|
60 |
$label = __( $opts['label'] );
|
@@ -75,11 +76,11 @@ abstract class MC4WP_Integration {
|
|
75 |
|
76 |
}
|
77 |
|
78 |
-
|
79 |
-
$content = "\n<!-- MailChimp for WordPress v". MC4WP_LITE_VERSION ." - http://wordpress.org/plugins/mailchimp-for-wp/ -->\n";
|
80 |
|
81 |
do_action( 'mc4wp_before_checkbox' );
|
82 |
|
|
|
83 |
$content .= '<p id="mc4wp-checkbox">';
|
84 |
$content .= '<label>';
|
85 |
$content .= '<input type="checkbox" name="' . esc_attr( $this->checkbox_name_value ) . '" value="1" '. $checked . ' /> ';
|
@@ -87,16 +88,41 @@ abstract class MC4WP_Integration {
|
|
87 |
$content .= '</label>';
|
88 |
$content .= '</p>';
|
89 |
|
|
|
90 |
$content .= '<textarea type="text" name="_mc4wp_required_but_not_really" style="display: none !important;"></textarea>';
|
91 |
|
92 |
do_action( 'mc4wp_after_checkbox' );
|
93 |
|
94 |
-
// add ending debug marker
|
95 |
-
$content .= "\n<!-- / MailChimp for WordPress -->\n";
|
96 |
-
|
97 |
return $content;
|
98 |
}
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
/**
|
101 |
* Makes a subscription request
|
102 |
*
|
@@ -106,24 +132,26 @@ abstract class MC4WP_Integration {
|
|
106 |
* @param int $comment_ID
|
107 |
* @return boolean
|
108 |
*/
|
109 |
-
protected function subscribe( $email, array $merge_vars = array(), $signup_type = 'comment' ) {
|
|
|
110 |
$api = mc4wp_get_api();
|
111 |
$opts = mc4wp_get_options( 'checkbox' );
|
|
|
112 |
|
113 |
-
if(
|
114 |
-
if( ( ! defined(
|
115 |
wp_die('
|
116 |
-
<h3>MailChimp for
|
117 |
-
<p>Please select a list to subscribe to in the <a href="'. admin_url( 'admin.php?page=mc4wp-
|
118 |
<p style="font-style:italic; font-size:12px;">This message is only visible to administrators for debugging purposes.</p>
|
119 |
-
',
|
120 |
}
|
121 |
|
122 |
return 'no_lists_selected';
|
123 |
}
|
124 |
|
125 |
// maybe guess first and last name
|
126 |
-
if ( isset( $merge_vars['NAME'] ) && !
|
127 |
|
128 |
$strpos = strpos( $merge_vars['NAME'], ' ' );
|
129 |
if ( $strpos !== false ) {
|
@@ -137,18 +165,22 @@ abstract class MC4WP_Integration {
|
|
137 |
$result = false;
|
138 |
$merge_vars = apply_filters( 'mc4wp_merge_vars', $merge_vars, $signup_type );
|
139 |
$email_type = apply_filters( 'mc4wp_email_type', 'html' );
|
140 |
-
$lists = apply_filters( 'mc4wp_lists', $opts['lists'], $merge_vars );
|
141 |
|
142 |
do_action( 'mc4wp_before_subscribe', $email, $merge_vars );
|
143 |
|
144 |
-
foreach( $lists as $
|
145 |
-
$result = $api->subscribe( $
|
146 |
}
|
147 |
|
148 |
do_action( 'mc4wp_after_subscribe', $email, $merge_vars, $result );
|
149 |
|
|
|
|
|
|
|
|
|
|
|
150 |
// check if result succeeded, show debug message to administrators (only in NON-AJAX requests)
|
151 |
-
if ( $result !== true && $api->has_error() && current_user_can( 'manage_options' ) && ( ! defined(
|
152 |
wp_die( "<h3>MailChimp for WP - Error</h3>
|
153 |
<p>The MailChimp server returned the following error message as a response to our sign-up request:</p>
|
154 |
<pre>" . $api->get_error_message() . "</pre>
|
@@ -157,11 +189,10 @@ abstract class MC4WP_Integration {
|
|
157 |
<pre>{$email}</pre>
|
158 |
<strong>Merge variables</strong>
|
159 |
<pre>" . print_r( $merge_vars, true ) . "</pre>
|
160 |
-
<p
|
161 |
", "Error - MailChimp for WP", array( 'back_link' => true ) );
|
162 |
}
|
163 |
|
164 |
-
|
165 |
return $result;
|
166 |
}
|
167 |
}
|
8 |
|
9 |
abstract class MC4WP_Integration {
|
10 |
|
11 |
+
protected $checkbox_name_value = '_mc4wp_subscribe';
|
12 |
+
|
13 |
+
protected $type = 'integration';
|
14 |
+
|
15 |
/**
|
16 |
* Constructor
|
17 |
*/
|
35 |
*
|
36 |
* @param string $hook
|
37 |
*/
|
38 |
+
public function output_checkbox() {
|
39 |
+
echo $this->get_checkbox();
|
40 |
}
|
41 |
|
42 |
/**
|
43 |
* @param mixed $hook Array or string
|
44 |
* @return string
|
45 |
*/
|
46 |
+
public function get_checkbox( $args = array() ) {
|
47 |
|
|
|
48 |
$opts = mc4wp_get_options( 'checkbox' );
|
49 |
|
50 |
$checked = $opts['precheck'] ? "checked" : '';
|
51 |
|
52 |
// set label text
|
53 |
+
if ( isset( $args['labels'][0] ) ) {
|
|
|
|
|
|
|
54 |
// cf 7 shortcode
|
55 |
$label = $args['labels'][0];
|
56 |
+
} else if ( isset( $opts['text_' . $this->type . '_label'] ) && ! empty( $opts['text_' . $this->type . '_label'] ) ) {
|
57 |
+
// custom label text was set
|
58 |
+
$label = __( $opts['text_' . $this->type . '_label'] );
|
59 |
} else {
|
60 |
// default label text
|
61 |
$label = __( $opts['label'] );
|
76 |
|
77 |
}
|
78 |
|
79 |
+
$content = "\n<!-- MailChimp for WP v". MC4WP_LITE_VERSION ." -->\n";
|
|
|
80 |
|
81 |
do_action( 'mc4wp_before_checkbox' );
|
82 |
|
83 |
+
// checkbox
|
84 |
$content .= '<p id="mc4wp-checkbox">';
|
85 |
$content .= '<label>';
|
86 |
$content .= '<input type="checkbox" name="' . esc_attr( $this->checkbox_name_value ) . '" value="1" '. $checked . ' /> ';
|
88 |
$content .= '</label>';
|
89 |
$content .= '</p>';
|
90 |
|
91 |
+
// honeypot
|
92 |
$content .= '<textarea type="text" name="_mc4wp_required_but_not_really" style="display: none !important;"></textarea>';
|
93 |
|
94 |
do_action( 'mc4wp_after_checkbox' );
|
95 |
|
|
|
|
|
|
|
96 |
return $content;
|
97 |
}
|
98 |
|
99 |
+
/**
|
100 |
+
* @return array
|
101 |
+
*/
|
102 |
+
protected function get_lists() {
|
103 |
+
|
104 |
+
// get checkbox lists options
|
105 |
+
$opts = mc4wp_get_options( 'checkbox' );
|
106 |
+
$lists = $opts['lists'];
|
107 |
+
|
108 |
+
// get lists from form, if set.
|
109 |
+
if( isset( $_POST['_mc4wp_lists'] ) && ! empty( $_POST['_mc4wp_lists'] ) ) {
|
110 |
+
|
111 |
+
$lists = $_POST['_mc4wp_lists'];
|
112 |
+
|
113 |
+
// make sure lists is an array
|
114 |
+
if( ! is_array( $lists ) ) {
|
115 |
+
$lists = array( $lists );
|
116 |
+
}
|
117 |
+
|
118 |
+
}
|
119 |
+
|
120 |
+
// allow plugins to filter final
|
121 |
+
$lists = apply_filters( 'mc4wp_lists', $lists );
|
122 |
+
|
123 |
+
return $lists;
|
124 |
+
}
|
125 |
+
|
126 |
/**
|
127 |
* Makes a subscription request
|
128 |
*
|
132 |
* @param int $comment_ID
|
133 |
* @return boolean
|
134 |
*/
|
135 |
+
protected function subscribe( $email, array $merge_vars = array(), $signup_type = 'comment', $comment_id = null ) {
|
136 |
+
|
137 |
$api = mc4wp_get_api();
|
138 |
$opts = mc4wp_get_options( 'checkbox' );
|
139 |
+
$lists = $this->get_lists();
|
140 |
|
141 |
+
if( empty( $lists) ) {
|
142 |
+
if( ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) && current_user_can( 'manage_options' ) ) {
|
143 |
wp_die('
|
144 |
+
<h3>MailChimp for WP - Error</h3>
|
145 |
+
<p>Please select a list to subscribe to in the <a href="'. admin_url( 'admin.php?page=mc4wp-checkbox-settings' ) .'">checkbox settings</a>.</p>
|
146 |
<p style="font-style:italic; font-size:12px;">This message is only visible to administrators for debugging purposes.</p>
|
147 |
+
', 'Error - MailChimp for WP', array( 'back_link' => true ) );
|
148 |
}
|
149 |
|
150 |
return 'no_lists_selected';
|
151 |
}
|
152 |
|
153 |
// maybe guess first and last name
|
154 |
+
if ( isset( $merge_vars['NAME'] ) && !isset( $merge_vars['FNAME'] ) && !isset( $merge_vars['LNAME'] ) ) {
|
155 |
|
156 |
$strpos = strpos( $merge_vars['NAME'], ' ' );
|
157 |
if ( $strpos !== false ) {
|
165 |
$result = false;
|
166 |
$merge_vars = apply_filters( 'mc4wp_merge_vars', $merge_vars, $signup_type );
|
167 |
$email_type = apply_filters( 'mc4wp_email_type', 'html' );
|
|
|
168 |
|
169 |
do_action( 'mc4wp_before_subscribe', $email, $merge_vars );
|
170 |
|
171 |
+
foreach( $lists as $list_id ) {
|
172 |
+
$result = $api->subscribe( $list_id, $email, $merge_vars, $email_type, $opts['double_optin'], false, true, $opts['send_welcome'] );
|
173 |
}
|
174 |
|
175 |
do_action( 'mc4wp_after_subscribe', $email, $merge_vars, $result );
|
176 |
|
177 |
+
if ( $result === true ) {
|
178 |
+
$from_url = ( isset($_SERVER['HTTP_REFERER'] ) ) ? $_SERVER['HTTP_REFERER'] : '';
|
179 |
+
do_action( 'mc4wp_subscribe_checkbox', $email, $lists, $signup_type, $merge_vars, $comment_id, $from_url );
|
180 |
+
}
|
181 |
+
|
182 |
// check if result succeeded, show debug message to administrators (only in NON-AJAX requests)
|
183 |
+
if ( $result !== true && $api->has_error() && current_user_can( 'manage_options' ) && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) && ( ! isset( $_POST['_wpcf7_is_ajax_call'] ) || $_POST['_wpcf7_is_ajax_call'] != 1 ) ) {
|
184 |
wp_die( "<h3>MailChimp for WP - Error</h3>
|
185 |
<p>The MailChimp server returned the following error message as a response to our sign-up request:</p>
|
186 |
<pre>" . $api->get_error_message() . "</pre>
|
189 |
<pre>{$email}</pre>
|
190 |
<strong>Merge variables</strong>
|
191 |
<pre>" . print_r( $merge_vars, true ) . "</pre>
|
192 |
+
<p><small>This message is only visible to administrators for debugging purposes.</small></p>
|
193 |
", "Error - MailChimp for WP", array( 'back_link' => true ) );
|
194 |
}
|
195 |
|
|
|
196 |
return $result;
|
197 |
}
|
198 |
}
|
includes/integrations/class-multisite.php
CHANGED
@@ -8,7 +8,9 @@ if( ! defined("MC4WP_LITE_VERSION" ) ) {
|
|
8 |
}
|
9 |
|
10 |
class MC4WP_MultiSite_Integration extends MC4WP_Integration {
|
11 |
-
|
|
|
|
|
12 |
public function __construct() {
|
13 |
add_action( 'signup_extra_fields', array( $this, 'output_checkbox' ), 20 );
|
14 |
add_action( 'signup_blogform', array( $this, 'add_multisite_hidden_checkbox' ), 20 );
|
@@ -18,13 +20,6 @@ class MC4WP_MultiSite_Integration extends MC4WP_Integration {
|
|
18 |
add_filter( 'add_signup_meta', array( $this, 'add_multisite_usermeta' ) );
|
19 |
}
|
20 |
|
21 |
-
/**
|
22 |
-
* Output sign-up checkbox for MultiSite registration form
|
23 |
-
*/
|
24 |
-
public function output_checkbox( $hook = '' ) {
|
25 |
-
return parent::output_checkbox( 'multsite_form' );
|
26 |
-
}
|
27 |
-
|
28 |
/**
|
29 |
* Add hidden checkbox to 2nd MultiSite registration form
|
30 |
*/
|
8 |
}
|
9 |
|
10 |
class MC4WP_MultiSite_Integration extends MC4WP_Integration {
|
11 |
+
|
12 |
+
protected $type = 'multisite_form';
|
13 |
+
|
14 |
public function __construct() {
|
15 |
add_action( 'signup_extra_fields', array( $this, 'output_checkbox' ), 20 );
|
16 |
add_action( 'signup_blogform', array( $this, 'add_multisite_hidden_checkbox' ), 20 );
|
20 |
add_filter( 'add_signup_meta', array( $this, 'add_multisite_usermeta' ) );
|
21 |
}
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
/**
|
24 |
* Add hidden checkbox to 2nd MultiSite registration form
|
25 |
*/
|
includes/integrations/class-registration-form.php
CHANGED
@@ -8,19 +8,14 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
8 |
}
|
9 |
|
10 |
class MC4WP_Registration_Form_Integration extends MC4WP_Integration {
|
11 |
-
|
|
|
|
|
12 |
public function __construct() {
|
13 |
add_action( 'register_form', array( $this, 'output_checkbox' ), 20 );
|
14 |
add_action( 'user_register', array( $this, 'subscribe_from_registration' ), 90, 1 );
|
15 |
}
|
16 |
|
17 |
-
/**
|
18 |
-
* Outputs the registration form checkbox
|
19 |
-
*/
|
20 |
-
public function output_checkbox( $hook = '' ) {
|
21 |
-
return parent::output_checkbox( 'registration_form' );
|
22 |
-
}
|
23 |
-
|
24 |
/**
|
25 |
* Subscribes from WP Registration Form
|
26 |
*
|
8 |
}
|
9 |
|
10 |
class MC4WP_Registration_Form_Integration extends MC4WP_Integration {
|
11 |
+
|
12 |
+
protected $type = 'registration_form';
|
13 |
+
|
14 |
public function __construct() {
|
15 |
add_action( 'register_form', array( $this, 'output_checkbox' ), 20 );
|
16 |
add_action( 'user_register', array( $this, 'subscribe_from_registration' ), 90, 1 );
|
17 |
}
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
/**
|
20 |
* Subscribes from WP Registration Form
|
21 |
*
|
includes/views/form-settings.php
CHANGED
@@ -48,15 +48,17 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
48 |
?><td colspan="2"><?php printf( __( 'No lists found, %sare you connected to MailChimp?%s', 'mailchimp-for-wp' ), '<a href="'. admin_url( 'admin.php?page=mc4wp-lite' ) .'">', '</a>' ); ?></td><?php
|
49 |
} else { ?>
|
50 |
<td>
|
|
|
51 |
<ul id="mc4wp-lists">
|
52 |
<?php foreach($lists as $list) { ?>
|
53 |
<li>
|
54 |
<label>
|
55 |
-
<input type="checkbox" name="mc4wp_lite_form[lists][<?php echo esc_attr( $list->id ); ?>]" value="<?php echo esc_attr($list->id); ?>" data-list-groupings="<?php echo esc_attr(json_encode($list->interest_groupings)); ?>" data-list-fields="<?php echo esc_attr(json_encode($list->merge_vars)); ?>" <?php if(array_key_exists($list->id, $opts['lists'])) echo 'checked="checked"'; ?>> <?php echo esc_html( $list->name ); ?>
|
56 |
</label>
|
57 |
</li>
|
58 |
<?php } ?>
|
59 |
</ul>
|
|
|
60 |
</td>
|
61 |
<td class="desc"><?php _e( 'Select the list(s) to which people who submit this form should be subscribed.' ,'mailchimp-for-wp' ); ?></td>
|
62 |
<?php } ?>
|
@@ -65,13 +67,27 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
65 |
<tr valign="top">
|
66 |
<td colspan="3">
|
67 |
<h4><?php _e( 'Form mark-up', 'mailchimp-for-wp' ); ?></h4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
<div class="mc4wp-wrapper">
|
69 |
<div class="mc4wp-col mc4wp-first">
|
70 |
<?php
|
71 |
if( function_exists( 'wp_editor' ) ) {
|
72 |
wp_editor( esc_textarea( $opts['markup'] ), 'mc4wpformmarkup', array( 'tinymce' => false, 'media_buttons' => true, 'textarea_name' => 'mc4wp_lite_form[markup]'));
|
73 |
} else {
|
74 |
-
?><textarea class="widefat" cols="160" rows="20" id="mc4wpformmarkup" name="mc4wp_lite_form[markup]"><?php echo esc_textarea($opts['markup']); ?></textarea><?php
|
75 |
} ?>
|
76 |
<p class="mc4wp-form-usage"><?php printf( __( 'Use the shortcode %s to display this form inside a post, page or text widget.' ,'mailchimp-for-wp' ), '<input type="text" onfocus="this.select();" readonly="readonly" value="[mc4wp_form]" class="mc4wp-shortcode-example">' ); ?></p>
|
77 |
</div>
|
48 |
?><td colspan="2"><?php printf( __( 'No lists found, %sare you connected to MailChimp?%s', 'mailchimp-for-wp' ), '<a href="'. admin_url( 'admin.php?page=mc4wp-lite' ) .'">', '</a>' ); ?></td><?php
|
49 |
} else { ?>
|
50 |
<td>
|
51 |
+
|
52 |
<ul id="mc4wp-lists">
|
53 |
<?php foreach($lists as $list) { ?>
|
54 |
<li>
|
55 |
<label>
|
56 |
+
<input type="checkbox" name="mc4wp_lite_form[lists][<?php echo esc_attr( $list->id ); ?>]" value="<?php echo esc_attr( $list->id ); ?>" data-list-groupings="<?php echo esc_attr(json_encode($list->interest_groupings)); ?>" data-list-fields="<?php echo esc_attr(json_encode($list->merge_vars)); ?>" <?php if(array_key_exists($list->id, $opts['lists'])) echo 'checked="checked"'; ?>> <?php echo esc_html( $list->name ); ?>
|
57 |
</label>
|
58 |
</li>
|
59 |
<?php } ?>
|
60 |
</ul>
|
61 |
+
|
62 |
</td>
|
63 |
<td class="desc"><?php _e( 'Select the list(s) to which people who submit this form should be subscribed.' ,'mailchimp-for-wp' ); ?></td>
|
64 |
<?php } ?>
|
67 |
<tr valign="top">
|
68 |
<td colspan="3">
|
69 |
<h4><?php _e( 'Form mark-up', 'mailchimp-for-wp' ); ?></h4>
|
70 |
+
|
71 |
+
<?php if ( ! empty( $missing_form_fields ) ) {
|
72 |
+
|
73 |
+
?><p class="mc4wp-notice missing-form-fields"><?php
|
74 |
+
|
75 |
+
echo __( 'Your form is missing the following (required) form fields:', 'mailchimp-for-wp') . ' <br /><br />';
|
76 |
+
|
77 |
+
foreach( $missing_form_fields as $missing_field ) {
|
78 |
+
echo '- ' . $missing_field . '<br />';
|
79 |
+
}
|
80 |
+
?></p><?php
|
81 |
+
|
82 |
+
} ?>
|
83 |
+
|
84 |
<div class="mc4wp-wrapper">
|
85 |
<div class="mc4wp-col mc4wp-first">
|
86 |
<?php
|
87 |
if( function_exists( 'wp_editor' ) ) {
|
88 |
wp_editor( esc_textarea( $opts['markup'] ), 'mc4wpformmarkup', array( 'tinymce' => false, 'media_buttons' => true, 'textarea_name' => 'mc4wp_lite_form[markup]'));
|
89 |
} else {
|
90 |
+
?><textarea class="widefat" cols="160" rows="20" id="mc4wpformmarkup" name="mc4wp_lite_form[markup]"><?php echo esc_textarea( $opts['markup'] ); ?></textarea><?php
|
91 |
} ?>
|
92 |
<p class="mc4wp-form-usage"><?php printf( __( 'Use the shortcode %s to display this form inside a post, page or text widget.' ,'mailchimp-for-wp' ), '<input type="text" onfocus="this.select();" readonly="readonly" value="[mc4wp_form]" class="mc4wp-shortcode-example">' ); ?></p>
|
93 |
</div>
|
includes/views/parts/admin-field-wizard.php
CHANGED
@@ -9,11 +9,6 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
9 |
|
10 |
<h4 class="mc4wp-title"><?php _e( 'Add a new field', 'mailchimp-for-wp' ); ?></h4>
|
11 |
|
12 |
-
|
13 |
-
<p class="mc4wp-notice no-lists-selected" <?php if(!empty($opts['lists'])) { ?>style="display: none;" <?php } ?>>
|
14 |
-
<?php _e( 'Select at least one list first.', 'mailchimp-for-wp' ); ?>
|
15 |
-
</p>
|
16 |
-
|
17 |
<p><?php _e( 'Use the tool below to generate the HTML for your form fields.', 'mailchimp-for-wp' ); ?></p>
|
18 |
<p>
|
19 |
<select class="widefat" id="mc4wp-fw-mailchimp-fields">
|
@@ -68,4 +63,9 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
68 |
</p>
|
69 |
|
70 |
</div>
|
|
|
|
|
|
|
|
|
|
|
71 |
</div>
|
9 |
|
10 |
<h4 class="mc4wp-title"><?php _e( 'Add a new field', 'mailchimp-for-wp' ); ?></h4>
|
11 |
|
|
|
|
|
|
|
|
|
|
|
12 |
<p><?php _e( 'Use the tool below to generate the HTML for your form fields.', 'mailchimp-for-wp' ); ?></p>
|
13 |
<p>
|
14 |
<select class="widefat" id="mc4wp-fw-mailchimp-fields">
|
63 |
</p>
|
64 |
|
65 |
</div>
|
66 |
+
|
67 |
+
<p class="mc4wp-notice no-lists-selected" <?php if(!empty($opts['lists'])) { ?>style="display: none;" <?php } ?>>
|
68 |
+
<?php _e( 'Select at least one list first.', 'mailchimp-for-wp' ); ?>
|
69 |
+
</p>
|
70 |
+
|
71 |
</div>
|
includes/views/parts/admin-footer.php
CHANGED
@@ -6,6 +6,6 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
6 |
}
|
7 |
?>
|
8 |
<br style="clear:both;" />
|
9 |
-
<p class="help">Enjoying this plugin? <a href="http://dannyvankooten.com/mailchimp-for-wordpress
|
10 |
<p class="help">Submit your feature requests or vote for new features <a href="http://www.google.com/moderator/#15/e=20c6b7&t=20c6b7.40">here</a>.</p>
|
11 |
<p class="help"><?php _e( 'This plugin is not developed by or affiliated with MailChimp in any way.', 'mailchimp-for-wp' ); ?></p>
|
6 |
}
|
7 |
?>
|
8 |
<br style="clear:both;" />
|
9 |
+
<p class="help">Enjoying this plugin? <a href="http://dannyvankooten.com/mailchimp-for-wordpress/#utm_source=lite-plugin&utm_medium=link&utm_campaign=footer-link">Upgrade to MailChimp for WordPress Pro now</a> for an even better plugin, you will love it.</p>
|
10 |
<p class="help">Submit your feature requests or vote for new features <a href="http://www.google.com/moderator/#15/e=20c6b7&t=20c6b7.40">here</a>.</p>
|
11 |
<p class="help"><?php _e( 'This plugin is not developed by or affiliated with MailChimp in any way.', 'mailchimp-for-wp' ); ?></p>
|
includes/views/parts/admin-need-support.php
CHANGED
@@ -8,7 +8,7 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
8 |
<div class="mc4wp-box">
|
9 |
<h4 class="mc4wp-title">Looking for support?</h4>
|
10 |
<p>Make sure to look at the <a href="http://wordpress.org/plugins/mailchimp-for-wp/faq/">frequently asked questions</a> or use the <a href="http://wordpress.org/support/plugin/mailchimp-for-wp">support forums</a> on WordPress.org.</p>
|
11 |
-
<p>If you need priority support, please <a href="http://dannyvankooten.com/mailchimp-for-wordpress
|
12 |
</div>
|
13 |
|
14 |
<div class="mc4wp-box">
|
@@ -16,14 +16,14 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
16 |
<ul class="ul-square">
|
17 |
<li><a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/mailchimp-for-wp?rate=5#postform">Leave a ★★★★★ plugin review on WordPress.org</a></li>
|
18 |
<li><a target="_blank" href="http://twitter.com/?status=Showing%20my%20appreciation%20to%20%40DannyvanKooten%20for%20his%20WordPress%20plugin%3A%20MailChimp%20for%20WP%20%20-%20check%20it%20out!%20http%3A%2F%2Fwordpress.org%2Fplugins%2Fmailchimp-for-wp%2F">Tweet about MailChimp for WordPress</a></li>
|
19 |
-
<li>Review the plugin on your blog and link to <a href="http://dannyvankooten.com/mailchimp-for-wordpress
|
20 |
<li><a target="_blank" href="http://wordpress.org/plugins/mailchimp-for-wp/">Vote "works" on the WordPress.org plugin page</a></li>
|
21 |
</ul>
|
22 |
</div>
|
23 |
<div class="mc4wp-box">
|
24 |
<h4 class="mc4wp-title">About the developer</h4>
|
25 |
<p>My name is <a href="http://dannyvankooten.com/?utm_source=lite-plugin&utm_medium=link&utm_campaign=about">Danny van Kooten</a>. I develop WordPress plugins which help you build your websites. I love simplicity, happy customers and clean code.</p>
|
26 |
-
<p>Take a look at my other <a href="http://dannyvankooten.com/wordpress-plugins
|
27 |
<p><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FCodeToTheChase&width&layout=standard&action=like&show_faces=true&share=false&appId=225994527565061" scrolling="no" frameborder="0" style="border:none; width: 100%; overflow:hidden; height: 80px;" allowTransparency="true"></iframe></p>
|
28 |
<p>You should follow me on Twitter <a href="http://twitter.com/dannyvankooten">here</a>.</p>
|
29 |
</div>
|
8 |
<div class="mc4wp-box">
|
9 |
<h4 class="mc4wp-title">Looking for support?</h4>
|
10 |
<p>Make sure to look at the <a href="http://wordpress.org/plugins/mailchimp-for-wp/faq/">frequently asked questions</a> or use the <a href="http://wordpress.org/support/plugin/mailchimp-for-wp">support forums</a> on WordPress.org.</p>
|
11 |
+
<p>If you need priority support, please <a href="http://dannyvankooten.com/mailchimp-for-wordpress/#utm_source=lite-plugin&utm_medium=link&utm_campaign=support-link">upgrade to the premium version</a>.</p>
|
12 |
</div>
|
13 |
|
14 |
<div class="mc4wp-box">
|
16 |
<ul class="ul-square">
|
17 |
<li><a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/mailchimp-for-wp?rate=5#postform">Leave a ★★★★★ plugin review on WordPress.org</a></li>
|
18 |
<li><a target="_blank" href="http://twitter.com/?status=Showing%20my%20appreciation%20to%20%40DannyvanKooten%20for%20his%20WordPress%20plugin%3A%20MailChimp%20for%20WP%20%20-%20check%20it%20out!%20http%3A%2F%2Fwordpress.org%2Fplugins%2Fmailchimp-for-wp%2F">Tweet about MailChimp for WordPress</a></li>
|
19 |
+
<li>Review the plugin on your blog and link to <a href="http://dannyvankooten.com/mailchimp-for-wordpress/#utm_source=lite-plugin&utm_medium=link&utm_campaign=show-appreciation">the plugin page</a></li>
|
20 |
<li><a target="_blank" href="http://wordpress.org/plugins/mailchimp-for-wp/">Vote "works" on the WordPress.org plugin page</a></li>
|
21 |
</ul>
|
22 |
</div>
|
23 |
<div class="mc4wp-box">
|
24 |
<h4 class="mc4wp-title">About the developer</h4>
|
25 |
<p>My name is <a href="http://dannyvankooten.com/?utm_source=lite-plugin&utm_medium=link&utm_campaign=about">Danny van Kooten</a>. I develop WordPress plugins which help you build your websites. I love simplicity, happy customers and clean code.</p>
|
26 |
+
<p>Take a look at my other <a href="http://dannyvankooten.com/wordpress-plugins/#utm_source=lite-plugin&utm_medium=link&utm_campaign=about">plugins for WordPress</a> or <em>like</em> my Facebook page to stay updated.</p>
|
27 |
<p><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FCodeToTheChase&width&layout=standard&action=like&show_faces=true&share=false&appId=225994527565061" scrolling="no" frameborder="0" style="border:none; width: 100%; overflow:hidden; height: 80px;" allowTransparency="true"></iframe></p>
|
28 |
<p>You should follow me on Twitter <a href="http://twitter.com/dannyvankooten">here</a>.</p>
|
29 |
</div>
|
includes/views/parts/admin-upgrade-to-pro.php
CHANGED
@@ -12,5 +12,5 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
12 |
|
13 |
<p>Pro features include better and multiple forms, advanced and easy form styling, more default themes, detailed statistics and priority support.</p>
|
14 |
|
15 |
-
<p><a href="http://dannyvankooten.com/mailchimp-for-wordpress
|
16 |
</div>
|
12 |
|
13 |
<p>Pro features include better and multiple forms, advanced and easy form styling, more default themes, detailed statistics and priority support.</p>
|
14 |
|
15 |
+
<p><a href="http://dannyvankooten.com/mailchimp-for-wordpress/#utm_source=lite-plugin&utm_medium=link&utm_campaign=upgrade-box">More information about MailChimp for WP Pro »</a></p>
|
16 |
</div>
|
languages/mailchimp-for-wp-es_ES.mo
CHANGED
Binary file
|
languages/mailchimp-for-wp-es_ES.po
CHANGED
@@ -2,14 +2,14 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: MailChimp for WordPress\n"
|
4 |
"POT-Creation-Date: 2014-05-14 22:19+0100\n"
|
5 |
-
"PO-Revision-Date: 2014-05-
|
6 |
"Last-Translator: Danny <hi@dannyvankooten.com>\n"
|
7 |
"Language-Team: Danny van Kooten <hi@dannyvankooten.com>\n"
|
8 |
"Language: en_EN\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.
|
13 |
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
|
14 |
"X-Poedit-Basepath: .\n"
|
15 |
"X-Poedit-SearchPath-0: ..\n"
|
@@ -20,23 +20,23 @@ msgstr "Configuración"
|
|
20 |
|
21 |
#: ../includes/class-admin.php:197
|
22 |
msgid "Documentation"
|
23 |
-
msgstr ""
|
24 |
|
25 |
#: ../includes/class-admin.php:209
|
26 |
msgid "Save Form"
|
27 |
-
msgstr ""
|
28 |
|
29 |
#: ../includes/class-admin.php:211
|
30 |
msgid "Update Form"
|
31 |
-
msgstr ""
|
32 |
|
33 |
#: ../includes/class-admin.php:248
|
34 |
msgid "Your email address"
|
35 |
-
msgstr "Tu dirección de correo"
|
36 |
|
37 |
#: ../includes/class-admin.php:249
|
38 |
msgid "Email address"
|
39 |
-
msgstr "
|
40 |
|
41 |
#: ../includes/class-admin.php:250
|
42 |
msgid "Sign up"
|
@@ -44,33 +44,33 @@ msgstr "Registro"
|
|
44 |
|
45 |
#: ../includes/class-admin.php:261
|
46 |
msgid "Back to general form settings"
|
47 |
-
msgstr ""
|
48 |
|
49 |
#: ../includes/class-admin.php:263
|
50 |
msgid "Form updated."
|
51 |
-
msgstr ""
|
52 |
|
53 |
#: ../includes/class-admin.php:264
|
54 |
msgid "Form saved."
|
55 |
-
msgstr ""
|
56 |
|
57 |
#: ../includes/class-admin.php:321
|
58 |
-
#, fuzzy
|
59 |
msgid "Form settings"
|
60 |
-
msgstr "Ajustes
|
61 |
|
62 |
#: ../includes/class-admin.php:322
|
63 |
-
#, fuzzy
|
64 |
msgid "Optional settings"
|
65 |
-
msgstr "Ajustes
|
66 |
|
67 |
#: ../includes/class-admin.php:323
|
68 |
msgid "Form variables"
|
69 |
-
msgstr ""
|
70 |
|
71 |
#: ../includes/class-admin.php:357
|
72 |
msgid "Use the following variables to add some dynamic content to your form."
|
73 |
msgstr ""
|
|
|
|
|
74 |
|
75 |
#: ../includes/class-admin.php:497
|
76 |
#, php-format
|
@@ -78,11 +78,14 @@ msgid ""
|
|
78 |
"Couldn't create the stylesheet. Manually add the generated CSS to your theme "
|
79 |
"stylesheet by using the %sTheme Editor%s or use FTP and edit <em>%s</em>."
|
80 |
msgstr ""
|
|
|
|
|
|
|
81 |
|
82 |
#: ../includes/class-admin.php:498
|
83 |
#, php-format
|
84 |
msgid "%sShow CSS%s"
|
85 |
-
msgstr ""
|
86 |
|
87 |
#: ../includes/class-admin.php:507
|
88 |
#, php-format
|
@@ -90,31 +93,31 @@ msgid ""
|
|
90 |
"To apply these styles on your website, select \"load custom form styles\" in "
|
91 |
"the %sform settings%s"
|
92 |
msgstr ""
|
|
|
|
|
93 |
|
94 |
#: ../includes/class-admin.php:508
|
95 |
#, php-format
|
96 |
msgid "The %sCSS Stylesheet%s has been created."
|
97 |
-
msgstr ""
|
98 |
|
99 |
#: ../includes/class-admin.php:524
|
100 |
-
#, fuzzy
|
101 |
msgid "General Settings"
|
102 |
-
msgstr "Ajustes
|
103 |
|
104 |
#: ../includes/class-admin.php:525
|
105 |
-
#, fuzzy
|
106 |
msgid "Checkboxes"
|
107 |
-
msgstr "
|
108 |
|
109 |
#: ../includes/class-admin.php:526
|
110 |
#: ../includes/views/pages/admin-form-settings.php:10
|
111 |
msgid "Forms"
|
112 |
-
msgstr ""
|
113 |
|
114 |
#: ../includes/class-admin.php:527
|
115 |
#: ../includes/views/pages/admin-reports.php:10
|
116 |
msgid "Reports"
|
117 |
-
msgstr ""
|
118 |
|
119 |
#: ../includes/class-admin.php:596
|
120 |
msgid "Comment form"
|
@@ -135,7 +138,7 @@ msgstr "Regitro BuddyPress"
|
|
135 |
#: ../includes/class-admin.php:613 ../includes/class-admin.php:617
|
136 |
#, php-format
|
137 |
msgid "%s checkout"
|
138 |
-
msgstr ""
|
139 |
|
140 |
#: ../includes/class-admin.php:653
|
141 |
#, php-format
|
@@ -143,6 +146,8 @@ msgid ""
|
|
143 |
"Please make sure the plugin is connected to MailChimp. <a href=\"%s"
|
144 |
"\">Provide a valid API key.</a>"
|
145 |
msgstr ""
|
|
|
|
|
146 |
|
147 |
#: ../includes/class-admin.php:792
|
148 |
#, php-format
|
@@ -151,11 +156,13 @@ msgid ""
|
|
151 |
"settings you had set in the Lite version, please <a href=\"%s\">deactivate "
|
152 |
"it now</a> to prevent problems"
|
153 |
msgstr ""
|
|
|
|
|
|
|
154 |
|
155 |
#: ../includes/class-admin.php:865
|
156 |
-
#, fuzzy
|
157 |
msgid "Renewed MailChimp cache."
|
158 |
-
msgstr "Renovar
|
159 |
|
160 |
#: ../includes/class-admin.php:867
|
161 |
msgid "Failed to renew MailChimp cache - please try again later."
|
@@ -167,12 +174,16 @@ msgstr ""
|
|
167 |
#, php-format
|
168 |
msgid "<strong>Error:</strong> Please specify a form ID. Example: %s."
|
169 |
msgstr ""
|
|
|
|
|
170 |
|
171 |
#: ../includes/class-form-manager.php:261
|
172 |
msgid ""
|
173 |
"<strong>Error:</strong> Sign-up form not found. Please check if you used the "
|
174 |
"correct form ID."
|
175 |
msgstr ""
|
|
|
|
|
176 |
|
177 |
#: ../includes/class-form-manager.php:370
|
178 |
#, php-format
|
@@ -181,27 +192,32 @@ msgid ""
|
|
181 |
"for this form. <a target=\"_top\" href=\"%s\">Edit this sign-up form</a> and "
|
182 |
"select at least one list."
|
183 |
msgstr ""
|
|
|
|
|
|
|
184 |
|
185 |
#: ../includes/class-form-manager.php:833
|
186 |
msgid "New Sign-Up"
|
187 |
-
msgstr ""
|
188 |
|
189 |
#: ../includes/class-form-manager.php:834
|
190 |
#, php-format
|
191 |
msgid "<strong>%s</strong> signed-up at %s on %s using the form \"%s\"."
|
192 |
msgstr ""
|
|
|
|
|
193 |
|
194 |
#: ../includes/class-form-manager.php:873
|
195 |
msgid "This email was auto-sent by the MailChimp for WordPress plugin."
|
196 |
-
msgstr ""
|
197 |
|
198 |
#: ../includes/class-widget.php:20
|
199 |
msgid "MailChimp for WP Form"
|
200 |
-
msgstr ""
|
201 |
|
202 |
#: ../includes/class-widget.php:21
|
203 |
msgid "Displays one of your MailChimp for WordPress sign-up forms"
|
204 |
-
msgstr ""
|
205 |
|
206 |
#: ../includes/class-widget.php:39
|
207 |
#, php-format
|
@@ -209,6 +225,8 @@ msgid ""
|
|
209 |
"Please select the sign-up form you'd like to show here in the <a href=\"%s"
|
210 |
"\">widget settings</a>."
|
211 |
msgstr ""
|
|
|
|
|
212 |
|
213 |
#: ../includes/class-widget.php:68
|
214 |
msgid "Newsletter"
|
@@ -220,42 +238,47 @@ msgstr "Título:"
|
|
220 |
|
221 |
#: ../includes/class-widget.php:83
|
222 |
msgid "Form:"
|
223 |
-
msgstr ""
|
224 |
|
225 |
#: ../includes/class-widget.php:85
|
226 |
msgid "Select the form to show"
|
227 |
-
msgstr ""
|
228 |
|
229 |
#: ../includes/class-widget.php:93
|
230 |
#, php-format
|
231 |
msgid "You don't have any sign-up forms. <a href=\"%s\">Create one now.</a>"
|
232 |
msgstr ""
|
|
|
|
|
233 |
|
234 |
#: ../includes/functions/general.php:20
|
235 |
msgid "Sign me up for the newsletter!"
|
236 |
-
msgstr ""
|
237 |
|
238 |
#: ../includes/functions/general.php:42
|
239 |
msgid ""
|
240 |
"Thank you, your sign-up request was successful! Please check your e-mail "
|
241 |
"inbox."
|
242 |
msgstr ""
|
|
|
|
|
243 |
|
244 |
#: ../includes/functions/general.php:43
|
245 |
msgid "Oops. Something went wrong. Please try again later."
|
246 |
-
msgstr ""
|
247 |
|
248 |
#: ../includes/functions/general.php:44
|
249 |
msgid "Please provide a valid email address."
|
250 |
-
msgstr ""
|
251 |
|
252 |
#: ../includes/functions/general.php:45
|
253 |
msgid "Given email address is already subscribed, thank you!"
|
254 |
msgstr ""
|
|
|
255 |
|
256 |
#: ../includes/functions/general.php:46
|
257 |
msgid "Please complete the CAPTCHA."
|
258 |
-
msgstr ""
|
259 |
|
260 |
#: ../includes/integrations/class-cf7.php:44
|
261 |
#: ../includes/views/metaboxes/optional-form-settings.php:16
|
@@ -306,21 +329,24 @@ msgid ""
|
|
306 |
"<b>Warning!</b> You're blocking external requests which means you won't be "
|
307 |
"able to get %s updates. Please add %s to %s."
|
308 |
msgstr ""
|
|
|
|
|
|
|
309 |
|
310 |
#: ../includes/library/license-manager/class-license-manager.php:175
|
311 |
#, php-format
|
312 |
msgid "Your %s license has been activated. You have an unlimited license. "
|
313 |
-
msgstr ""
|
314 |
|
315 |
#: ../includes/library/license-manager/class-license-manager.php:177
|
316 |
#, php-format
|
317 |
msgid "Your %s license has been activated. You have used %d/%d activations. "
|
318 |
-
msgstr ""
|
319 |
|
320 |
#: ../includes/library/license-manager/class-license-manager.php:182
|
321 |
#, php-format
|
322 |
msgid "<a href=\"%s\">Did you know you can upgrade your license?</a>"
|
323 |
-
msgstr ""
|
324 |
|
325 |
#: ../includes/library/license-manager/class-license-manager.php:186
|
326 |
#, php-format
|
@@ -328,6 +354,7 @@ msgid ""
|
|
328 |
"<a href=\"%s\">Your license is expiring in %d days, would you like to extend "
|
329 |
"it?</a>"
|
330 |
msgstr ""
|
|
|
331 |
|
332 |
#: ../includes/library/license-manager/class-license-manager.php:195
|
333 |
#, php-format
|
@@ -335,6 +362,8 @@ msgid ""
|
|
335 |
"You've reached your activation limit. You must <a href=\"%s\">upgrade your "
|
336 |
"license</a> to use it on this site."
|
337 |
msgstr ""
|
|
|
|
|
338 |
|
339 |
#: ../includes/library/license-manager/class-license-manager.php:198
|
340 |
#, php-format
|
@@ -342,30 +371,32 @@ msgid ""
|
|
342 |
"Your license has expired. You must <a href=\"%s\">extend your license</a> in "
|
343 |
"order to use it again."
|
344 |
msgstr ""
|
|
|
|
|
345 |
|
346 |
#: ../includes/library/license-manager/class-license-manager.php:201
|
347 |
msgid "Failed to activate your license, your license key seems to be invalid."
|
348 |
-
msgstr ""
|
349 |
|
350 |
#: ../includes/library/license-manager/class-license-manager.php:225
|
351 |
#, php-format
|
352 |
msgid "Your %s license has been deactivated."
|
353 |
-
msgstr ""
|
354 |
|
355 |
#: ../includes/library/license-manager/class-license-manager.php:227
|
356 |
#, php-format
|
357 |
msgid "Failed to deactivate your %s license."
|
358 |
-
msgstr ""
|
359 |
|
360 |
#: ../includes/library/license-manager/class-license-manager.php:262
|
361 |
#, php-format
|
362 |
msgid "Request error: \"%s\""
|
363 |
-
msgstr ""
|
364 |
|
365 |
#: ../includes/library/license-manager/class-license-manager.php:420
|
366 |
#, php-format
|
367 |
msgid "%s: License Settings"
|
368 |
-
msgstr ""
|
369 |
|
370 |
#: ../includes/library/license-manager/class-plugin-license-manager.php:72
|
371 |
#, php-format
|
@@ -373,6 +404,8 @@ msgid ""
|
|
373 |
"%s is network activated, you can manage your license in the <a href=\"%s"
|
374 |
"\">network admin license page</a>."
|
375 |
msgstr ""
|
|
|
|
|
376 |
|
377 |
#: ../includes/library/license-manager/class-plugin-license-manager.php:74
|
378 |
#, php-format
|
@@ -380,12 +413,16 @@ msgid ""
|
|
380 |
"%s is network activated, please contact your site administrator to manage "
|
381 |
"the license."
|
382 |
msgstr ""
|
|
|
|
|
383 |
|
384 |
#: ../includes/library/license-manager/class-update-manager.php:83
|
385 |
#, php-format
|
386 |
msgid ""
|
387 |
"%s failed to check for updates because of the following error: <em>%s</em>"
|
388 |
msgstr ""
|
|
|
|
|
389 |
|
390 |
#: ../includes/library/license-manager/class-update-manager.php:148
|
391 |
msgid ""
|
@@ -393,112 +430,116 @@ msgid ""
|
|
393 |
"cannot check for future updates. Please activate your site with a valid "
|
394 |
"license key."
|
395 |
msgstr ""
|
|
|
|
|
|
|
396 |
|
397 |
#: ../includes/library/license-manager/views/form.php:23
|
398 |
msgid "License status"
|
399 |
-
msgstr ""
|
400 |
|
401 |
#: ../includes/library/license-manager/views/form.php:33
|
402 |
msgid "Toggle license status"
|
403 |
-
msgstr ""
|
404 |
|
405 |
#: ../includes/library/license-manager/views/form.php:38
|
406 |
msgid ""
|
407 |
"(deactivate your license so you can activate it on another WordPress site)"
|
408 |
msgstr ""
|
|
|
409 |
|
410 |
#: ../includes/library/license-manager/views/form.php:44
|
411 |
msgid "Please enter a license key in the field below first."
|
412 |
-
msgstr ""
|
413 |
|
414 |
#: ../includes/library/license-manager/views/form.php:52
|
415 |
msgid "License Key"
|
416 |
-
msgstr ""
|
417 |
|
418 |
#: ../includes/library/license-manager/views/form.php:54
|
419 |
-
#,
|
420 |
msgid "Paste your %s license key here.."
|
421 |
-
msgstr "
|
422 |
|
423 |
#: ../includes/library/license-manager/views/form.php:56
|
424 |
#, php-format
|
425 |
msgid "You defined your license key using the %s PHP constant."
|
426 |
-
msgstr ""
|
427 |
|
428 |
#: ../includes/library/license-manager/views/form.php:73
|
429 |
#, php-format
|
430 |
msgid "Your %s license will expire on %s."
|
431 |
-
msgstr ""
|
432 |
|
433 |
#: ../includes/library/license-manager/views/form.php:76
|
434 |
#, php-format
|
435 |
msgid "%sRenew your license now%s."
|
436 |
-
msgstr ""
|
437 |
|
438 |
#: ../includes/tables/class-forms-table.php:19
|
439 |
msgid "Sign-Up Form"
|
440 |
-
msgstr ""
|
441 |
|
442 |
#: ../includes/tables/class-forms-table.php:20
|
443 |
-
#, fuzzy
|
444 |
msgid "Sign-up Forms"
|
445 |
-
msgstr "
|
446 |
|
447 |
#: ../includes/tables/class-forms-table.php:36
|
448 |
msgid "Form"
|
449 |
-
msgstr ""
|
450 |
|
451 |
#: ../includes/tables/class-forms-table.php:37
|
452 |
msgid "Shortcode"
|
453 |
-
msgstr ""
|
454 |
|
455 |
#: ../includes/tables/class-forms-table.php:38
|
456 |
msgid "List(s)"
|
457 |
-
msgstr ""
|
458 |
|
459 |
#: ../includes/tables/class-forms-table.php:39
|
460 |
msgid "Last edited"
|
461 |
-
msgstr ""
|
462 |
|
463 |
#: ../includes/tables/class-forms-table.php:103
|
464 |
msgid "You have not created any sign-up forms yet. Time to do so!"
|
465 |
msgstr ""
|
|
|
466 |
|
467 |
#: ../includes/tables/class-log-table.php:23
|
468 |
msgid "Subscriber"
|
469 |
-
msgstr ""
|
470 |
|
471 |
#: ../includes/tables/class-log-table.php:24
|
472 |
msgid "Subscribers"
|
473 |
-
msgstr ""
|
474 |
|
475 |
#: ../includes/tables/class-log-table.php:44
|
476 |
msgid "Email"
|
477 |
-
msgstr ""
|
478 |
|
479 |
#: ../includes/tables/class-log-table.php:45
|
480 |
msgid "List"
|
481 |
-
msgstr ""
|
482 |
|
483 |
#: ../includes/tables/class-log-table.php:46
|
484 |
msgid "Type"
|
485 |
-
msgstr ""
|
486 |
|
487 |
#: ../includes/tables/class-log-table.php:47
|
488 |
msgid "Source"
|
489 |
-
msgstr ""
|
490 |
|
491 |
#: ../includes/tables/class-log-table.php:48
|
492 |
msgid "Extra data"
|
493 |
-
msgstr ""
|
494 |
|
495 |
#: ../includes/tables/class-log-table.php:49
|
496 |
msgid "Subscribed"
|
497 |
-
msgstr ""
|
498 |
|
499 |
#: ../includes/tables/class-log-table.php:258
|
500 |
msgid "No subscribe requests found."
|
501 |
-
msgstr ""
|
502 |
|
503 |
#: ../includes/views/metaboxes/optional-form-settings.php:8
|
504 |
#, php-format
|
@@ -507,17 +548,19 @@ msgid ""
|
|
507 |
"settings</a>. If no setting is specified, the corresponding general setting "
|
508 |
"value will be used."
|
509 |
msgstr ""
|
|
|
|
|
|
|
510 |
|
511 |
#: ../includes/views/metaboxes/optional-form-settings.php:10
|
512 |
-
#, fuzzy
|
513 |
msgid "MailChimp Settings"
|
514 |
-
msgstr "
|
515 |
|
516 |
#: ../includes/views/metaboxes/optional-form-settings.php:13
|
517 |
#: ../includes/views/pages/admin-checkbox-settings.php:51
|
518 |
#: ../includes/views/tabs/admin-forms-general-settings.php:55
|
519 |
msgid "Double opt-in?"
|
520 |
-
msgstr ""
|
521 |
|
522 |
#: ../includes/views/metaboxes/optional-form-settings.php:20
|
523 |
#: ../includes/views/metaboxes/optional-form-settings.php:34
|
@@ -526,7 +569,7 @@ msgstr ""
|
|
526 |
#: ../includes/views/metaboxes/optional-form-settings.php:79
|
527 |
#: ../includes/views/metaboxes/optional-form-settings.php:91
|
528 |
msgid "Inherit"
|
529 |
-
msgstr ""
|
530 |
|
531 |
#: ../includes/views/metaboxes/optional-form-settings.php:22
|
532 |
#: ../includes/views/pages/admin-checkbox-settings.php:53
|
@@ -535,13 +578,13 @@ msgid ""
|
|
535 |
"Select \"yes\" if you want people to confirm their email address before "
|
536 |
"being subscribed (recommended)"
|
537 |
msgstr ""
|
538 |
-
"
|
539 |
"correo electrónico antes de suscribirse (recomendado)"
|
540 |
|
541 |
#: ../includes/views/metaboxes/optional-form-settings.php:27
|
542 |
#: ../includes/views/tabs/admin-forms-general-settings.php:76
|
543 |
msgid "Update existing subscribers?"
|
544 |
-
msgstr ""
|
545 |
|
546 |
#: ../includes/views/metaboxes/optional-form-settings.php:36
|
547 |
#: ../includes/views/tabs/admin-forms-general-settings.php:83
|
@@ -549,13 +592,13 @@ msgid ""
|
|
549 |
"Select \"yes\" if you want to update existing subscribers (instead of "
|
550 |
"showing the \"already subscribed\" message)."
|
551 |
msgstr ""
|
552 |
-
"
|
553 |
-
"mostrar el mensaje \"ya suscrito \")."
|
554 |
|
555 |
#: ../includes/views/metaboxes/optional-form-settings.php:41
|
556 |
#: ../includes/views/tabs/admin-forms-general-settings.php:87
|
557 |
msgid "Replace interest groups?"
|
558 |
-
msgstr ""
|
559 |
|
560 |
#: ../includes/views/metaboxes/optional-form-settings.php:50
|
561 |
#: ../includes/views/tabs/admin-forms-general-settings.php:94
|
@@ -564,7 +607,7 @@ msgid ""
|
|
564 |
"provided instead of adding the provided groups to the member's interest "
|
565 |
"groups (only when updating a subscriber)."
|
566 |
msgstr ""
|
567 |
-
"
|
568 |
"previstos en lugar de añadir los grupos previstos para los grupos de interés "
|
569 |
"del usuario (sólo cuando se actualiza un suscriptor)."
|
570 |
|
@@ -572,7 +615,7 @@ msgstr ""
|
|
572 |
#: ../includes/views/pages/admin-checkbox-settings.php:57
|
573 |
#: ../includes/views/tabs/admin-forms-general-settings.php:66
|
574 |
msgid "Send Welcome Email?"
|
575 |
-
msgstr ""
|
576 |
|
577 |
#: ../includes/views/metaboxes/optional-form-settings.php:64
|
578 |
#: ../includes/views/pages/admin-checkbox-settings.php:64
|
@@ -581,8 +624,8 @@ msgid ""
|
|
581 |
"Select \"yes\" if you want to send your lists Welcome Email if a subscribe "
|
582 |
"succeeds (only when double opt-in is disabled)."
|
583 |
msgstr ""
|
584 |
-
"
|
585 |
-
"bienvenida si se realiza una suscripción correctamente (sólo cuando
|
586 |
"proceso de doble opt-in está desactivado)."
|
587 |
|
588 |
#: ../includes/views/metaboxes/optional-form-settings.php:69
|
@@ -592,7 +635,7 @@ msgstr "Configuración de mesajes y formularios"
|
|
592 |
#: ../includes/views/metaboxes/optional-form-settings.php:72
|
593 |
#: ../includes/views/tabs/admin-forms-general-settings.php:103
|
594 |
msgid "Enable AJAX form submission?"
|
595 |
-
msgstr ""
|
596 |
|
597 |
#: ../includes/views/metaboxes/optional-form-settings.php:80
|
598 |
#: ../includes/views/tabs/admin-forms-general-settings.php:105
|
@@ -609,8 +652,8 @@ msgstr "¿Ocultar formulario después de un registro registro satisfactorio?"
|
|
609 |
#: ../includes/views/tabs/admin-forms-general-settings.php:110
|
610 |
msgid "Select \"yes\" to hide the form fields after a successful sign-up."
|
611 |
msgstr ""
|
612 |
-
"
|
613 |
-
"registro satisfactorio"
|
614 |
|
615 |
#: ../includes/views/metaboxes/optional-form-settings.php:97
|
616 |
#: ../includes/views/tabs/admin-forms-general-settings.php:113
|
@@ -628,17 +671,19 @@ msgstr ""
|
|
628 |
|
629 |
#: ../includes/views/metaboxes/optional-form-settings.php:104
|
630 |
msgid "Send an email copy of the form data?"
|
631 |
-
msgstr ""
|
632 |
|
633 |
#: ../includes/views/metaboxes/optional-form-settings.php:108
|
634 |
msgid ""
|
635 |
"Tick \"yes\" if you want to receive an email with the form data for every "
|
636 |
"sign-up request."
|
637 |
msgstr ""
|
|
|
|
|
638 |
|
639 |
#: ../includes/views/metaboxes/optional-form-settings.php:111
|
640 |
msgid "Send the copy to this email:"
|
641 |
-
msgstr ""
|
642 |
|
643 |
#: ../includes/views/metaboxes/optional-form-settings.php:117
|
644 |
#: ../includes/views/tabs/admin-forms-general-settings.php:119
|
@@ -673,7 +718,7 @@ msgstr "Las etiquetas HTML como %s están permitidas en los campos del mensaje."
|
|
673 |
|
674 |
#: ../includes/views/metaboxes/required-form-settings.php:14
|
675 |
msgid "Lists this form subscribes to"
|
676 |
-
msgstr ""
|
677 |
|
678 |
#: ../includes/views/metaboxes/required-form-settings.php:17
|
679 |
#: ../includes/views/pages/admin-checkbox-settings.php:38
|
@@ -687,19 +732,19 @@ msgstr "Añadir un nuevo campo"
|
|
687 |
|
688 |
#: ../includes/views/metaboxes/required-form-settings.php:32
|
689 |
msgid "Select MailChimp field.."
|
690 |
-
msgstr "Seleccione el campo MailChimp ..."
|
691 |
|
692 |
#: ../includes/views/metaboxes/required-form-settings.php:36
|
693 |
msgid "Submit Button"
|
694 |
-
msgstr ""
|
695 |
|
696 |
#: ../includes/views/metaboxes/required-form-settings.php:37
|
697 |
msgid "Lists Choice"
|
698 |
-
msgstr ""
|
699 |
|
700 |
#: ../includes/views/metaboxes/required-form-settings.php:45
|
701 |
msgid "Label"
|
702 |
-
msgstr ""
|
703 |
|
704 |
#: ../includes/views/metaboxes/required-form-settings.php:45
|
705 |
#: ../includes/views/metaboxes/required-form-settings.php:50
|
@@ -709,7 +754,7 @@ msgstr "(opcional)"
|
|
709 |
|
710 |
#: ../includes/views/metaboxes/required-form-settings.php:50
|
711 |
msgid "Placeholder"
|
712 |
-
msgstr ""
|
713 |
|
714 |
#: ../includes/views/metaboxes/required-form-settings.php:55
|
715 |
msgid "Initial value"
|
@@ -717,7 +762,7 @@ msgstr "Valor inicial"
|
|
717 |
|
718 |
#: ../includes/views/metaboxes/required-form-settings.php:60
|
719 |
msgid "Labels"
|
720 |
-
msgstr ""
|
721 |
|
722 |
#: ../includes/views/metaboxes/required-form-settings.php:60
|
723 |
msgid "(leave empty to hide)"
|
@@ -742,26 +787,26 @@ msgstr "Generado HTML"
|
|
742 |
|
743 |
#: ../includes/views/metaboxes/required-form-settings.php:86
|
744 |
msgid "Form usage"
|
745 |
-
msgstr ""
|
746 |
|
747 |
#: ../includes/views/metaboxes/required-form-settings.php:87
|
748 |
#, php-format
|
749 |
msgid ""
|
750 |
"Use the shortcode %s to display this form inside a post, page or text widget."
|
751 |
msgstr ""
|
|
|
|
|
752 |
|
753 |
#: ../includes/views/pages/admin-checkbox-settings.php:11
|
754 |
#: ../includes/views/pages/admin-form-settings.php:10
|
755 |
#: ../includes/views/pages/admin-general-settings.php:10
|
756 |
#: ../includes/views/pages/admin-reports.php:10
|
757 |
-
#, fuzzy
|
758 |
msgid "MailChimp for WordPress"
|
759 |
-
msgstr "
|
760 |
|
761 |
#: ../includes/views/pages/admin-checkbox-settings.php:11
|
762 |
-
#, fuzzy
|
763 |
msgid "Checkbox Settings"
|
764 |
-
msgstr "
|
765 |
|
766 |
#: ../includes/views/pages/admin-checkbox-settings.php:14
|
767 |
msgid ""
|
@@ -785,16 +830,15 @@ msgstr ""
|
|
785 |
"menos una lista de MailChimp a las que la gente se suscribirá."
|
786 |
|
787 |
#: ../includes/views/pages/admin-checkbox-settings.php:34
|
788 |
-
#, fuzzy
|
789 |
msgid "MailChimp Lists"
|
790 |
-
msgstr "
|
791 |
|
792 |
#: ../includes/views/pages/admin-checkbox-settings.php:45
|
793 |
msgid ""
|
794 |
"Select the list(s) to which people who check the checkbox should be "
|
795 |
"subscribed."
|
796 |
msgstr ""
|
797 |
-
"
|
798 |
"casillas de verificación."
|
799 |
|
800 |
#: ../includes/views/pages/admin-checkbox-settings.php:68
|
@@ -840,36 +884,35 @@ msgstr ""
|
|
840 |
#: ../includes/views/tabs/admin-forms-general-settings.php:48
|
841 |
#: ../includes/views/tabs/admin-forms-general-settings.php:146
|
842 |
msgid "Save all changes"
|
843 |
-
msgstr ""
|
844 |
|
845 |
#: ../includes/views/pages/admin-checkbox-settings.php:103
|
846 |
-
#, fuzzy
|
847 |
msgid "Custom label texts"
|
848 |
-
msgstr "
|
849 |
|
850 |
#: ../includes/views/pages/admin-checkbox-settings.php:104
|
851 |
msgid ""
|
852 |
"Override the default checkbox label text for any given checkbox using the "
|
853 |
"fields below."
|
854 |
msgstr ""
|
|
|
|
|
855 |
|
856 |
#: ../includes/views/pages/admin-form-settings.php:13
|
857 |
-
#, fuzzy
|
858 |
msgid "Forms & Settings"
|
859 |
-
msgstr "Ajustes
|
860 |
|
861 |
#: ../includes/views/pages/admin-form-settings.php:14
|
862 |
msgid "CSS Styles Builder"
|
863 |
-
msgstr ""
|
864 |
|
865 |
#: ../includes/views/pages/admin-general-settings.php:10
|
866 |
-
#, fuzzy
|
867 |
msgid "License & API Settings"
|
868 |
-
msgstr "
|
869 |
|
870 |
#: ../includes/views/pages/admin-general-settings.php:19
|
871 |
msgid "API Settings"
|
872 |
-
msgstr "Configuración de
|
873 |
|
874 |
#: ../includes/views/pages/admin-general-settings.php:21
|
875 |
msgid "CONNECTED"
|
@@ -881,11 +924,11 @@ msgstr "NO CONECTADO"
|
|
881 |
|
882 |
#: ../includes/views/pages/admin-general-settings.php:29
|
883 |
msgid "API Key"
|
884 |
-
msgstr ""
|
885 |
|
886 |
#: ../includes/views/pages/admin-general-settings.php:31
|
887 |
msgid "Your MailChimp API key"
|
888 |
-
msgstr ""
|
889 |
|
890 |
#: ../includes/views/pages/admin-general-settings.php:32
|
891 |
msgid "Get your API key here."
|
@@ -912,15 +955,15 @@ msgstr "Renovar las listas de MailChimp"
|
|
912 |
|
913 |
#: ../includes/views/pages/admin-general-settings.php:120
|
914 |
msgid "No lists were found in your MailChimp account."
|
915 |
-
msgstr ""
|
916 |
|
917 |
#: ../includes/views/pages/admin-reports.php:14
|
918 |
msgid "Statistics"
|
919 |
-
msgstr ""
|
920 |
|
921 |
#: ../includes/views/pages/admin-reports.php:15
|
922 |
msgid "Log"
|
923 |
-
msgstr ""
|
924 |
|
925 |
#: ../includes/views/parts/admin-footer.php:8
|
926 |
#, php-format
|
@@ -928,115 +971,118 @@ msgid ""
|
|
928 |
"Need help? Email me directly at <a href=\"%s\">support@dannyvankooten.com</"
|
929 |
"a>. Please include your website URL and as many details as possible."
|
930 |
msgstr ""
|
|
|
|
|
|
|
931 |
|
932 |
#: ../includes/views/parts/admin-text-variables.php:11
|
933 |
msgid "Replaced with the number of subscribers on the selected list(s)"
|
934 |
msgstr ""
|
|
|
935 |
|
936 |
#: ../includes/views/parts/admin-text-variables.php:15
|
937 |
msgid "Replaced with the visitor's IP address"
|
938 |
-
msgstr ""
|
939 |
|
940 |
#: ../includes/views/parts/admin-text-variables.php:19
|
941 |
#, php-format
|
942 |
msgid "Replaced with the current date (yyyy/mm/dd eg: %s)"
|
943 |
-
msgstr ""
|
944 |
|
945 |
#: ../includes/views/parts/admin-text-variables.php:23
|
946 |
#, php-format
|
947 |
msgid "Replaced with the current time (hh:mm:ss eg: %s)"
|
948 |
-
msgstr ""
|
949 |
|
950 |
#: ../includes/views/parts/admin-text-variables.php:27
|
951 |
msgid ""
|
952 |
"Replaced with the logged in user's email (or nothing, if there is no logged "
|
953 |
"in user)"
|
954 |
msgstr ""
|
|
|
|
|
955 |
|
956 |
#: ../includes/views/parts/admin-text-variables.php:31
|
957 |
msgid "Display name of the current user"
|
958 |
-
msgstr ""
|
959 |
|
960 |
#: ../includes/views/parts/admin-text-variables.php:35
|
961 |
msgid "First name of the current user"
|
962 |
-
msgstr ""
|
963 |
|
964 |
#: ../includes/views/parts/admin-text-variables.php:39
|
965 |
msgid "Last name of the current user"
|
966 |
-
msgstr ""
|
967 |
|
968 |
#: ../includes/views/parts/admin-text-variables.php:43
|
969 |
msgid "Current user ID"
|
970 |
-
msgstr ""
|
971 |
|
972 |
#: ../includes/views/parts/admin-text-variables.php:47
|
973 |
msgid "Current URL"
|
974 |
-
msgstr ""
|
975 |
|
976 |
#: ../includes/views/tabs/admin-forms-css-builder.php:10
|
977 |
-
#, fuzzy
|
978 |
msgid "Use the fields below to create custom styling rules for your forms."
|
979 |
msgstr ""
|
980 |
-
"
|
981 |
-
"
|
982 |
|
983 |
#: ../includes/views/tabs/admin-forms-css-builder.php:214
|
984 |
msgid "Build CSS File"
|
985 |
-
msgstr ""
|
986 |
|
987 |
#: ../includes/views/tabs/admin-forms-general-settings.php:8
|
988 |
msgid "Sign-Up Forms"
|
989 |
-
msgstr ""
|
990 |
|
991 |
#: ../includes/views/tabs/admin-forms-general-settings.php:8
|
992 |
msgid "Create New Form"
|
993 |
-
msgstr ""
|
994 |
|
995 |
#: ../includes/views/tabs/admin-forms-general-settings.php:16
|
996 |
-
#, fuzzy
|
997 |
msgid "General form settings"
|
998 |
-
msgstr "
|
999 |
|
1000 |
#: ../includes/views/tabs/admin-forms-general-settings.php:19
|
1001 |
-
#, fuzzy
|
1002 |
msgid "Load form styles (CSS)?"
|
1003 |
-
msgstr "¿Cargamos
|
1004 |
|
1005 |
#: ../includes/views/tabs/admin-forms-general-settings.php:23
|
1006 |
msgid "Yes, load basic form styles"
|
1007 |
-
msgstr ""
|
1008 |
|
1009 |
#: ../includes/views/tabs/admin-forms-general-settings.php:24
|
1010 |
msgid "Yes, load my custom form styles"
|
1011 |
-
msgstr ""
|
1012 |
|
1013 |
#: ../includes/views/tabs/admin-forms-general-settings.php:25
|
1014 |
msgid "Yes, load default form theme"
|
1015 |
-
msgstr ""
|
1016 |
|
1017 |
#: ../includes/views/tabs/admin-forms-general-settings.php:26
|
1018 |
msgid "Light Theme"
|
1019 |
-
msgstr ""
|
1020 |
|
1021 |
#: ../includes/views/tabs/admin-forms-general-settings.php:27
|
1022 |
msgid "Red Theme"
|
1023 |
-
msgstr ""
|
1024 |
|
1025 |
#: ../includes/views/tabs/admin-forms-general-settings.php:28
|
1026 |
msgid "Green Theme"
|
1027 |
-
msgstr ""
|
1028 |
|
1029 |
#: ../includes/views/tabs/admin-forms-general-settings.php:29
|
1030 |