Version Description
- July 29, 2014 =
Fixes
- Some fields lost its value when a form error occured
Improvements
- Minified all CSS and JS files
- Required MailChimp fields are now validated server side as well.
- Birthday and address fields are now automatically formatted in the correct format
- Improved code, memory usage and class documentation
Additions
- Brazilian translations, thanks to Felipe Scuissiatto of Evonline
-
mc4wp_form_messages
filter to register custom error messages -
mc4wp_form_message_position
filter to set position of error messages (before or after fields) - Option to set the text for when a required field is missing
Download this release
Release Info
Developer | DvanKooten |
Plugin | MailChimp for WordPress |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.5 to 2.1
- assets/css/admin.min.css +1 -0
- assets/css/checkbox.css +23 -1
- assets/css/checkbox.min.css +1 -0
- assets/css/form-theme-blue.css +263 -1
- assets/css/form-theme-blue.min.css +1 -0
- assets/css/form-theme-dark.css +263 -1
- assets/css/form-theme-dark.min.css +1 -0
- assets/css/form-theme-green.css +263 -1
- assets/css/form-theme-green.min.css +1 -0
- assets/css/form-theme-light.css +253 -1
- assets/css/form-theme-light.min.css +1 -0
- assets/css/form-theme-red.css +263 -1
- assets/css/form-theme-red.min.css +1 -0
- assets/css/form.css +112 -1
- assets/css/form.min.css +1 -0
- assets/js/admin.min.js +1 -0
- assets/js/beautify-html.min.js +1 -0
- assets/js/form-request.js +177 -0
- assets/js/form-request.min.js +1 -0
- assets/js/forms.js +0 -136
- includes/class-admin.php +6 -4
- includes/class-checkbox-manager.php +3 -1
- includes/class-form-manager.php +149 -385
- includes/class-form-request.php +448 -0
- includes/class-mailchimp.php +8 -3
- includes/class-plugin.php +1 -0
- includes/functions/general.php +1 -0
- includes/views/form-settings.php +8 -4
- languages/mailchimp-for-wp-pt_BR.mo +0 -0
- languages/mailchimp-for-wp-pt_BR.po +1100 -0
- mailchimp-for-wp.php +2 -2
- readme.txt +24 -3
assets/css/admin.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
#mc4wp-content{float:left;width:65%}#mc4wp-sidebar{float:left;width:33%;margin-left:2%;border-left:1px solid #ccc;padding:0 0 0 2%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.valigntop{vertical-align:top!important}#mc4wp .mc4wp-box{margin-bottom:20px}#mc4wp-upgrade-box{background:#222;color:#ddd;padding:20px}#mc4wp-upgrade-box h3{margin:0;color:#fff}#mc4wp-fw h4{margin-top:0}#mc4wp-fw p{margin-bottom:1em}#mc4wp-fw-fields{display:none}#mc4wp-fw-preview{font-family:"Courier New",Courier,monospace;min-height:200px;font-size:11px;background:#fff;z-index:99}#mc4wp-lists{margin:0}#mc4wp-lists input{margin-right:5px}.mc4wp-settings tr.pro-feature td,.mc4wp-settings tr.pro-feature th,.pro-feature{color:#aaa}#mc4wp span.status{display:inline-block;padding:3px 6px;color:#fff;font-size:12px;font-weight:700}#mc4wp span.positive{background-color:green}#mc4wp span.negative{background-color:lightGrey}#mc4wp table th{text-align:left}#mc4wp table.form-table tr td:first-child,#mc4wp table.form-table tr th:first-child{padding-left:0}#mc4wptd.nowrap{white-space:nowrap}#mc4wp td.desc{font-style:italic;font-size:11px}.mc4wp-notice{padding:6px 8px;color:#31708f;background:#d9edf7;border:1px solid #bce8f1;margin:1em 0!important}#mc4wp .mc4wp-col{float:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:50%;padding:0 5px}#mc4wp .mc4wp-first{padding-left:0}#mc4wp .mc4wp-last{padding-right:0}.mc4wp-well{background:#fff;padding:10px;border:1px solid #ccc}.mc4wp-title{font-size:1.4em;margin:1.6em 0 1em;padding:0 0 6px;border-bottom:1px solid #ddd}table.mc4wp-help,table.mc4wp-help td,table.mc4wp-help th{border:1px solid #ddd;border-collapse:collapse;font-size:12px}table.mc4wp-help td,table.mc4wp-help th{vertical-align:text-top;text-align:left;padding:5px 10px}table.mc4wp-help tr:hover{background-color:#ddd}#mc4wp .wp-list-table code{float:right}@media(max-width:1279px){#mc4wp-content,#mc4wp-sidebar{float:none;width:100%;padding:0;margin:0}#mc4wp-sidebar{border-left:0;border-top:1px solid #ccc;margin-top:25px;padding-top:25px}#mc4wp .wp-list-table code{float:none}}@media(max-width:719px){.mc4wp-hide-smallscreens{display:none}}
|
assets/css/checkbox.css
CHANGED
@@ -1 +1,23 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* MailChimp for WP - Checkbox Styles */
|
2 |
+
#mc4wp-checkbox {
|
3 |
+
clear: both;
|
4 |
+
display: block;
|
5 |
+
}
|
6 |
+
#mc4wp-checkbox input {
|
7 |
+
position: relative;
|
8 |
+
margin: 0 6px 0 0;
|
9 |
+
padding: 0;
|
10 |
+
vertical-align: middle;
|
11 |
+
display: inline-block !important;
|
12 |
+
max-width: 21px;
|
13 |
+
}
|
14 |
+
#mc4wp-checkbox label {
|
15 |
+
display: block;
|
16 |
+
cursor: pointer;
|
17 |
+
width: auto;
|
18 |
+
position: static;
|
19 |
+
}
|
20 |
+
|
21 |
+
#registerform #mc4wp-checkbox {
|
22 |
+
margin-bottom: 10px;
|
23 |
+
}
|
assets/css/checkbox.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
#mc4wp-checkbox{clear:both;display:block}#mc4wp-checkbox input{position:relative;margin:0 6px 0 0;padding:0;vertical-align:middle;display:inline-block!important;max-width:21px}#mc4wp-checkbox label{display:block;cursor:pointer;width:auto;position:static}#registerform #mc4wp-checkbox{margin-bottom:10px}
|
assets/css/form-theme-blue.css
CHANGED
@@ -1 +1,263 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* MailChimp for WP - Default Form Styles */
|
2 |
+
.mc4wp-form {
|
3 |
+
margin: 1em 0;
|
4 |
+
}
|
5 |
+
|
6 |
+
form.mc4wp-form,
|
7 |
+
.mc4wp-form form {
|
8 |
+
width: auto;
|
9 |
+
}
|
10 |
+
|
11 |
+
.mc4wp-form label {
|
12 |
+
display: block;
|
13 |
+
font-weight: bold;
|
14 |
+
margin-bottom: 5px;
|
15 |
+
}
|
16 |
+
|
17 |
+
.mc4wp-form ul,
|
18 |
+
.mc4wp-form li {
|
19 |
+
list-style: none;
|
20 |
+
margin: 0;
|
21 |
+
padding: 0;
|
22 |
+
}
|
23 |
+
|
24 |
+
.mc4wp-form label > span,
|
25 |
+
.mc4wp-form li > label {
|
26 |
+
font-weight: normal;
|
27 |
+
}
|
28 |
+
|
29 |
+
.mc4wp-form p > label:nth-child(2) {
|
30 |
+
margin-top: 10px;
|
31 |
+
}
|
32 |
+
|
33 |
+
.mc4wp-form input {
|
34 |
+
vertical-align: baseline;
|
35 |
+
}
|
36 |
+
|
37 |
+
.mc4wp-form input.placeholdersjs {
|
38 |
+
color: #aaa !important;
|
39 |
+
}
|
40 |
+
|
41 |
+
.mc4wp-form input[type="text"],
|
42 |
+
.mc4wp-form input[type="email"],
|
43 |
+
.mc4wp-form input[type="tel"],
|
44 |
+
.mc4wp-form input[type="url"],
|
45 |
+
.mc4wp-form input[type="date"],
|
46 |
+
.mc4wp-form textarea,
|
47 |
+
.mc4wp-form select {
|
48 |
+
cursor: auto;
|
49 |
+
display: block;
|
50 |
+
width: 100%;
|
51 |
+
height: auto;
|
52 |
+
box-sizing: border-box;
|
53 |
+
-webkit-box-sizing: border-box;
|
54 |
+
-moz-box-sizing: border-box;
|
55 |
+
}
|
56 |
+
|
57 |
+
.mc4wp-form input[type="checkbox"],
|
58 |
+
.mc4wp-form input[type="radio"] {
|
59 |
+
position: relative;
|
60 |
+
margin: 0 6px 0 0;
|
61 |
+
padding: 0;
|
62 |
+
height: 13px;
|
63 |
+
width: 13px;
|
64 |
+
display: inline-block;
|
65 |
+
border: 0;
|
66 |
+
}
|
67 |
+
|
68 |
+
.mc4wp-form input[type="checkbox"] {
|
69 |
+
-webkit-appearance: checkbox;
|
70 |
+
}
|
71 |
+
|
72 |
+
.mc4wp-form input[type="radio"] {
|
73 |
+
-webkit-appearance: radio;
|
74 |
+
}
|
75 |
+
|
76 |
+
.mc4wp-form input[type="submit"],
|
77 |
+
.mc4wp-form button,
|
78 |
+
.mc4wp-form input[type="button"] {
|
79 |
+
cursor: pointer;
|
80 |
+
display: inline-block;
|
81 |
+
}
|
82 |
+
|
83 |
+
.mc4wp-alert {
|
84 |
+
margin: 1em 0;
|
85 |
+
padding: 10px 15px;
|
86 |
+
color: #c09853;
|
87 |
+
background-color: #fcf8e3;
|
88 |
+
border: 1px solid #fbeed5;
|
89 |
+
border-radius: 2px;
|
90 |
+
-moz-border-radius: 2px;
|
91 |
+
-webkit-border-radius: 2px;
|
92 |
+
display: block;
|
93 |
+
position: relative;
|
94 |
+
}
|
95 |
+
|
96 |
+
.mc4wp-success {
|
97 |
+
color: #468847;
|
98 |
+
background-color: #dff0d8;
|
99 |
+
border-color: #d6e9c6;
|
100 |
+
}
|
101 |
+
|
102 |
+
.mc4wp-notice {
|
103 |
+
color: #3a87ad;
|
104 |
+
background-color: #d9edf7;
|
105 |
+
border-color: #bce8f1;
|
106 |
+
}
|
107 |
+
|
108 |
+
.mc4wp-error {
|
109 |
+
color: #b94a48;
|
110 |
+
background-color: #f2dede;
|
111 |
+
border-color: #eed3d7;
|
112 |
+
}
|
113 |
+
|
114 |
+
/* Form base theme */
|
115 |
+
form.mc4wp-form,
|
116 |
+
.mc4wp-form form {
|
117 |
+
box-shadow: none !important;
|
118 |
+
-webkit-box-shadow: none;
|
119 |
+
-moz-box-shadow: none;
|
120 |
+
width: auto;
|
121 |
+
}
|
122 |
+
|
123 |
+
.mc4wp-form p {
|
124 |
+
margin: 0 0 15px !important;
|
125 |
+
padding: 0;
|
126 |
+
}
|
127 |
+
|
128 |
+
.mc4wp-form label {
|
129 |
+
font-size: 1em;
|
130 |
+
margin: 6px 0;
|
131 |
+
}
|
132 |
+
|
133 |
+
.mc4wp-form input[type="text"],
|
134 |
+
.mc4wp-form input[type="email"],
|
135 |
+
.mc4wp-form input[type="tel"],
|
136 |
+
.mc4wp-form input[type="url"],
|
137 |
+
.mc4wp-form input[type="date"],
|
138 |
+
.mc4wp-form textarea,
|
139 |
+
.mc4wp-form select {
|
140 |
+
width: 100%;
|
141 |
+
height: 34px;
|
142 |
+
margin: 0;
|
143 |
+
padding: 6px 12px;
|
144 |
+
font-size: 14px;
|
145 |
+
line-height: 1.428571429;
|
146 |
+
color: #555555;
|
147 |
+
vertical-align: middle;
|
148 |
+
background-color: #ffffff;
|
149 |
+
border: 1px solid #cccccc;
|
150 |
+
-moz-border-radius: 2px;
|
151 |
+
-webkit-border-radius: 2px;
|
152 |
+
border-radius: 2px;
|
153 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
154 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
155 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
156 |
+
-moz-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
157 |
+
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
158 |
+
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
159 |
+
background-image: none;
|
160 |
+
text-shadow: none;
|
161 |
+
}
|
162 |
+
|
163 |
+
.mc4wp-form input[type="text"]:focus,
|
164 |
+
.mc4wp-form input[type="email"]:focus,
|
165 |
+
.mc4wp-form input[type="tel"]:focus,
|
166 |
+
.mc4wp-form input[type="url"]:focus,
|
167 |
+
.mc4wp-form textarea:focus,
|
168 |
+
.mc4wp-form select:focus {
|
169 |
+
border-color: #66afe9;
|
170 |
+
outline: 0;
|
171 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
172 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
173 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
174 |
+
}
|
175 |
+
|
176 |
+
.mc4wp-form textarea {
|
177 |
+
height: auto;
|
178 |
+
}
|
179 |
+
|
180 |
+
.mc4wp-form input[readonly],
|
181 |
+
.mc4wp-form input[disabled] {
|
182 |
+
background-color: #eeeeee;
|
183 |
+
}
|
184 |
+
|
185 |
+
.mc4wp-form input[type="submit"],
|
186 |
+
.mc4wp-form button {
|
187 |
+
display: inline-block;
|
188 |
+
padding: 6px 12px;
|
189 |
+
margin: 0;
|
190 |
+
font-size: 14px;
|
191 |
+
font-weight: normal;
|
192 |
+
line-height: 1.428571429;
|
193 |
+
text-align: center;
|
194 |
+
white-space: nowrap;
|
195 |
+
vertical-align: middle;
|
196 |
+
cursor: pointer;
|
197 |
+
border: 1px solid transparent;
|
198 |
+
border-radius: 2px;
|
199 |
+
-webkit-user-select: none;
|
200 |
+
-moz-user-select: none;
|
201 |
+
-ms-user-select: none;
|
202 |
+
-o-user-select: none;
|
203 |
+
user-select: none;
|
204 |
+
box-shadow: none;
|
205 |
+
background: none;
|
206 |
+
text-shadow: none;
|
207 |
+
filter: none;
|
208 |
+
height: auto;
|
209 |
+
width: auto;
|
210 |
+
}
|
211 |
+
|
212 |
+
.mc4wp-form input[type="submit"]:focus,
|
213 |
+
.mc4wp-form button:focus {
|
214 |
+
outline: thin dotted #333;
|
215 |
+
outline: 5px auto -webkit-focus-ring-color;
|
216 |
+
outline-offset: -2px;
|
217 |
+
}
|
218 |
+
|
219 |
+
.mc4wp-form input[type="submit"]:hover,
|
220 |
+
.mc4wp-form button:hover,
|
221 |
+
.mc4wp-form input[type="submit"]:focus,
|
222 |
+
.mc4wp-form button:focus {
|
223 |
+
color: #333333;
|
224 |
+
text-decoration: none;
|
225 |
+
background: none;
|
226 |
+
}
|
227 |
+
|
228 |
+
.mc4wp-form input[type="submit"]:active,
|
229 |
+
.mc4wp-form button:active {
|
230 |
+
background-image: none;
|
231 |
+
outline: 0;
|
232 |
+
-moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
233 |
+
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
234 |
+
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
235 |
+
}
|
236 |
+
|
237 |
+
.mc4wp-form input[type="submit"],
|
238 |
+
.mc4wp-form button {
|
239 |
+
color: #ffffff !important;
|
240 |
+
background-color: #428bca !important;
|
241 |
+
border-color: #357ebd;
|
242 |
+
}
|
243 |
+
|
244 |
+
.mc4wp-form input[type="submit"]:hover,
|
245 |
+
.mc4wp-form button:hover,
|
246 |
+
.mc4wp-form input[type="submit"]:active,
|
247 |
+
.mc4wp-form button:active,
|
248 |
+
.mc4wp-form input[type="submit"]:focus,
|
249 |
+
.mc4wp-form button:focus {
|
250 |
+
color: #ffffff !important;
|
251 |
+
background-color: #3276b1 !important;
|
252 |
+
border-color: #285e8e;
|
253 |
+
}
|
254 |
+
|
255 |
+
.mc4wp-form input[type="text"]:focus,
|
256 |
+
.mc4wp-form input[type="email"]:focus,
|
257 |
+
.mc4wp-form input[type="tel"]:focus,
|
258 |
+
.mc4wp-form input[type="url"]:focus,
|
259 |
+
.mc4wp-form input[type="date"]:focus,
|
260 |
+
.mc4wp-form textarea:focus,
|
261 |
+
.mc4wp-form select:focus {
|
262 |
+
border-color: #428bca;
|
263 |
+
}
|
assets/css/form-theme-blue.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.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=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{cursor:auto;display:block;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 button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{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 form,form.mc4wp-form{box-shadow:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;width:auto}.mc4wp-form p{margin:0 0 15px!important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;background-image:none;text-shadow:none}.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[disabled],.mc4wp-form input[readonly]{background-color:#eee}.mc4wp-form button,.mc4wp-form input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;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:0 0;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form button:focus,.mc4wp-form input[type=submit]:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#333;text-decoration:none;background:0 0}.mc4wp-form button:active,.mc4wp-form input[type=submit]:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.mc4wp-form button,.mc4wp-form input[type=submit]{color:#fff!important;background-color:#428bca!important;border-color:#357ebd}.mc4wp-form button:active,.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:active,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#fff!important;background-color:#3276b1!important;border-color:#285e8e}.mc4wp-form input[type=date]:focus,.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{border-color:#428bca}
|
assets/css/form-theme-dark.css
CHANGED
@@ -1 +1,263 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* MailChimp for WP - Default Form Styles */
|
2 |
+
.mc4wp-form {
|
3 |
+
margin: 1em 0;
|
4 |
+
}
|
5 |
+
|
6 |
+
form.mc4wp-form,
|
7 |
+
.mc4wp-form form {
|
8 |
+
width: auto;
|
9 |
+
}
|
10 |
+
|
11 |
+
.mc4wp-form label {
|
12 |
+
display: block;
|
13 |
+
font-weight: bold;
|
14 |
+
margin-bottom: 5px;
|
15 |
+
}
|
16 |
+
|
17 |
+
.mc4wp-form ul,
|
18 |
+
.mc4wp-form li {
|
19 |
+
list-style: none;
|
20 |
+
margin: 0;
|
21 |
+
padding: 0;
|
22 |
+
}
|
23 |
+
|
24 |
+
.mc4wp-form label > span,
|
25 |
+
.mc4wp-form li > label {
|
26 |
+
font-weight: normal;
|
27 |
+
}
|
28 |
+
|
29 |
+
.mc4wp-form p > label:nth-child(2) {
|
30 |
+
margin-top: 10px;
|
31 |
+
}
|
32 |
+
|
33 |
+
.mc4wp-form input {
|
34 |
+
vertical-align: baseline;
|
35 |
+
}
|
36 |
+
|
37 |
+
.mc4wp-form input.placeholdersjs {
|
38 |
+
color: #aaa !important;
|
39 |
+
}
|
40 |
+
|
41 |
+
.mc4wp-form input[type="text"],
|
42 |
+
.mc4wp-form input[type="email"],
|
43 |
+
.mc4wp-form input[type="tel"],
|
44 |
+
.mc4wp-form input[type="url"],
|
45 |
+
.mc4wp-form input[type="date"],
|
46 |
+
.mc4wp-form textarea,
|
47 |
+
.mc4wp-form select {
|
48 |
+
cursor: auto;
|
49 |
+
display: block;
|
50 |
+
width: 100%;
|
51 |
+
height: auto;
|
52 |
+
box-sizing: border-box;
|
53 |
+
-webkit-box-sizing: border-box;
|
54 |
+
-moz-box-sizing: border-box;
|
55 |
+
}
|
56 |
+
|
57 |
+
.mc4wp-form input[type="checkbox"],
|
58 |
+
.mc4wp-form input[type="radio"] {
|
59 |
+
position: relative;
|
60 |
+
margin: 0 6px 0 0;
|
61 |
+
padding: 0;
|
62 |
+
height: 13px;
|
63 |
+
width: 13px;
|
64 |
+
display: inline-block;
|
65 |
+
border: 0;
|
66 |
+
}
|
67 |
+
|
68 |
+
.mc4wp-form input[type="checkbox"] {
|
69 |
+
-webkit-appearance: checkbox;
|
70 |
+
}
|
71 |
+
|
72 |
+
.mc4wp-form input[type="radio"] {
|
73 |
+
-webkit-appearance: radio;
|
74 |
+
}
|
75 |
+
|
76 |
+
.mc4wp-form input[type="submit"],
|
77 |
+
.mc4wp-form button,
|
78 |
+
.mc4wp-form input[type="button"] {
|
79 |
+
cursor: pointer;
|
80 |
+
display: inline-block;
|
81 |
+
}
|
82 |
+
|
83 |
+
.mc4wp-alert {
|
84 |
+
margin: 1em 0;
|
85 |
+
padding: 10px 15px;
|
86 |
+
color: #c09853;
|
87 |
+
background-color: #fcf8e3;
|
88 |
+
border: 1px solid #fbeed5;
|
89 |
+
border-radius: 2px;
|
90 |
+
-moz-border-radius: 2px;
|
91 |
+
-webkit-border-radius: 2px;
|
92 |
+
display: block;
|
93 |
+
position: relative;
|
94 |
+
}
|
95 |
+
|
96 |
+
.mc4wp-success {
|
97 |
+
color: #468847;
|
98 |
+
background-color: #dff0d8;
|
99 |
+
border-color: #d6e9c6;
|
100 |
+
}
|
101 |
+
|
102 |
+
.mc4wp-notice {
|
103 |
+
color: #3a87ad;
|
104 |
+
background-color: #d9edf7;
|
105 |
+
border-color: #bce8f1;
|
106 |
+
}
|
107 |
+
|
108 |
+
.mc4wp-error {
|
109 |
+
color: #b94a48;
|
110 |
+
background-color: #f2dede;
|
111 |
+
border-color: #eed3d7;
|
112 |
+
}
|
113 |
+
|
114 |
+
/* Form base theme */
|
115 |
+
form.mc4wp-form,
|
116 |
+
.mc4wp-form form {
|
117 |
+
box-shadow: none !important;
|
118 |
+
-webkit-box-shadow: none;
|
119 |
+
-moz-box-shadow: none;
|
120 |
+
width: auto;
|
121 |
+
}
|
122 |
+
|
123 |
+
.mc4wp-form p {
|
124 |
+
margin: 0 0 15px !important;
|
125 |
+
padding: 0;
|
126 |
+
}
|
127 |
+
|
128 |
+
.mc4wp-form label {
|
129 |
+
font-size: 1em;
|
130 |
+
margin: 6px 0;
|
131 |
+
}
|
132 |
+
|
133 |
+
.mc4wp-form input[type="text"],
|
134 |
+
.mc4wp-form input[type="email"],
|
135 |
+
.mc4wp-form input[type="tel"],
|
136 |
+
.mc4wp-form input[type="url"],
|
137 |
+
.mc4wp-form input[type="date"],
|
138 |
+
.mc4wp-form textarea,
|
139 |
+
.mc4wp-form select {
|
140 |
+
width: 100%;
|
141 |
+
height: 34px;
|
142 |
+
margin: 0;
|
143 |
+
padding: 6px 12px;
|
144 |
+
font-size: 14px;
|
145 |
+
line-height: 1.428571429;
|
146 |
+
color: #555555;
|
147 |
+
vertical-align: middle;
|
148 |
+
background-color: #ffffff;
|
149 |
+
border: 1px solid #cccccc;
|
150 |
+
-moz-border-radius: 2px;
|
151 |
+
-webkit-border-radius: 2px;
|
152 |
+
border-radius: 2px;
|
153 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
154 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
155 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
156 |
+
-moz-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
157 |
+
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
158 |
+
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
159 |
+
background-image: none;
|
160 |
+
text-shadow: none;
|
161 |
+
}
|
162 |
+
|
163 |
+
.mc4wp-form input[type="text"]:focus,
|
164 |
+
.mc4wp-form input[type="email"]:focus,
|
165 |
+
.mc4wp-form input[type="tel"]:focus,
|
166 |
+
.mc4wp-form input[type="url"]:focus,
|
167 |
+
.mc4wp-form textarea:focus,
|
168 |
+
.mc4wp-form select:focus {
|
169 |
+
border-color: #66afe9;
|
170 |
+
outline: 0;
|
171 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
172 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
173 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
174 |
+
}
|
175 |
+
|
176 |
+
.mc4wp-form textarea {
|
177 |
+
height: auto;
|
178 |
+
}
|
179 |
+
|
180 |
+
.mc4wp-form input[readonly],
|
181 |
+
.mc4wp-form input[disabled] {
|
182 |
+
background-color: #eeeeee;
|
183 |
+
}
|
184 |
+
|
185 |
+
.mc4wp-form input[type="submit"],
|
186 |
+
.mc4wp-form button {
|
187 |
+
display: inline-block;
|
188 |
+
padding: 6px 12px;
|
189 |
+
margin: 0;
|
190 |
+
font-size: 14px;
|
191 |
+
font-weight: normal;
|
192 |
+
line-height: 1.428571429;
|
193 |
+
text-align: center;
|
194 |
+
white-space: nowrap;
|
195 |
+
vertical-align: middle;
|
196 |
+
cursor: pointer;
|
197 |
+
border: 1px solid transparent;
|
198 |
+
border-radius: 2px;
|
199 |
+
-webkit-user-select: none;
|
200 |
+
-moz-user-select: none;
|
201 |
+
-ms-user-select: none;
|
202 |
+
-o-user-select: none;
|
203 |
+
user-select: none;
|
204 |
+
box-shadow: none;
|
205 |
+
background: none;
|
206 |
+
text-shadow: none;
|
207 |
+
filter: none;
|
208 |
+
height: auto;
|
209 |
+
width: auto;
|
210 |
+
}
|
211 |
+
|
212 |
+
.mc4wp-form input[type="submit"]:focus,
|
213 |
+
.mc4wp-form button:focus {
|
214 |
+
outline: thin dotted #333;
|
215 |
+
outline: 5px auto -webkit-focus-ring-color;
|
216 |
+
outline-offset: -2px;
|
217 |
+
}
|
218 |
+
|
219 |
+
.mc4wp-form input[type="submit"]:hover,
|
220 |
+
.mc4wp-form button:hover,
|
221 |
+
.mc4wp-form input[type="submit"]:focus,
|
222 |
+
.mc4wp-form button:focus {
|
223 |
+
color: #333333;
|
224 |
+
text-decoration: none;
|
225 |
+
background: none;
|
226 |
+
}
|
227 |
+
|
228 |
+
.mc4wp-form input[type="submit"]:active,
|
229 |
+
.mc4wp-form button:active {
|
230 |
+
background-image: none;
|
231 |
+
outline: 0;
|
232 |
+
-moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
233 |
+
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
234 |
+
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
235 |
+
}
|
236 |
+
|
237 |
+
.mc4wp-form input[type="submit"],
|
238 |
+
.mc4wp-form button {
|
239 |
+
color: #ffffff !important;
|
240 |
+
background-color: #444444 !important;
|
241 |
+
border-color: #282828;
|
242 |
+
}
|
243 |
+
|
244 |
+
.mc4wp-form input[type="submit"]:hover,
|
245 |
+
.mc4wp-form button:hover,
|
246 |
+
.mc4wp-form input[type="submit"]:active,
|
247 |
+
.mc4wp-form button:active,
|
248 |
+
.mc4wp-form input[type="submit"]:focus,
|
249 |
+
.mc4wp-form button:focus {
|
250 |
+
color: #ffffff !important;
|
251 |
+
background-color: #282828 !important;
|
252 |
+
border-color: #111111;
|
253 |
+
}
|
254 |
+
|
255 |
+
.mc4wp-form input[type="text"]:focus,
|
256 |
+
.mc4wp-form input[type="email"]:focus,
|
257 |
+
.mc4wp-form input[type="tel"]:focus,
|
258 |
+
.mc4wp-form input[type="url"]:focus,
|
259 |
+
.mc4wp-form input[type="date"]:focus,
|
260 |
+
.mc4wp-form textarea:focus,
|
261 |
+
.mc4wp-form select:focus {
|
262 |
+
border-color: #444444;
|
263 |
+
}
|
assets/css/form-theme-dark.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.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=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{cursor:auto;display:block;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 button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{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 form,form.mc4wp-form{box-shadow:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;width:auto}.mc4wp-form p{margin:0 0 15px!important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;background-image:none;text-shadow:none}.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[disabled],.mc4wp-form input[readonly]{background-color:#eee}.mc4wp-form button,.mc4wp-form input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;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:0 0;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form button:focus,.mc4wp-form input[type=submit]:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#333;text-decoration:none;background:0 0}.mc4wp-form button:active,.mc4wp-form input[type=submit]:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.mc4wp-form button,.mc4wp-form input[type=submit]{color:#fff!important;background-color:#444!important;border-color:#282828}.mc4wp-form button:active,.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:active,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#fff!important;background-color:#282828!important;border-color:#111}.mc4wp-form input[type=date]:focus,.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{border-color:#444}
|
assets/css/form-theme-green.css
CHANGED
@@ -1 +1,263 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* MailChimp for WP - Default Form Styles */
|
2 |
+
.mc4wp-form {
|
3 |
+
margin: 1em 0;
|
4 |
+
}
|
5 |
+
|
6 |
+
form.mc4wp-form,
|
7 |
+
.mc4wp-form form {
|
8 |
+
width: auto;
|
9 |
+
}
|
10 |
+
|
11 |
+
.mc4wp-form label {
|
12 |
+
display: block;
|
13 |
+
font-weight: bold;
|
14 |
+
margin-bottom: 5px;
|
15 |
+
}
|
16 |
+
|
17 |
+
.mc4wp-form ul,
|
18 |
+
.mc4wp-form li {
|
19 |
+
list-style: none;
|
20 |
+
margin: 0;
|
21 |
+
padding: 0;
|
22 |
+
}
|
23 |
+
|
24 |
+
.mc4wp-form label > span,
|
25 |
+
.mc4wp-form li > label {
|
26 |
+
font-weight: normal;
|
27 |
+
}
|
28 |
+
|
29 |
+
.mc4wp-form p > label:nth-child(2) {
|
30 |
+
margin-top: 10px;
|
31 |
+
}
|
32 |
+
|
33 |
+
.mc4wp-form input {
|
34 |
+
vertical-align: baseline;
|
35 |
+
}
|
36 |
+
|
37 |
+
.mc4wp-form input.placeholdersjs {
|
38 |
+
color: #aaa !important;
|
39 |
+
}
|
40 |
+
|
41 |
+
.mc4wp-form input[type="text"],
|
42 |
+
.mc4wp-form input[type="email"],
|
43 |
+
.mc4wp-form input[type="tel"],
|
44 |
+
.mc4wp-form input[type="url"],
|
45 |
+
.mc4wp-form input[type="date"],
|
46 |
+
.mc4wp-form textarea,
|
47 |
+
.mc4wp-form select {
|
48 |
+
cursor: auto;
|
49 |
+
display: block;
|
50 |
+
width: 100%;
|
51 |
+
height: auto;
|
52 |
+
box-sizing: border-box;
|
53 |
+
-webkit-box-sizing: border-box;
|
54 |
+
-moz-box-sizing: border-box;
|
55 |
+
}
|
56 |
+
|
57 |
+
.mc4wp-form input[type="checkbox"],
|
58 |
+
.mc4wp-form input[type="radio"] {
|
59 |
+
position: relative;
|
60 |
+
margin: 0 6px 0 0;
|
61 |
+
padding: 0;
|
62 |
+
height: 13px;
|
63 |
+
width: 13px;
|
64 |
+
display: inline-block;
|
65 |
+
border: 0;
|
66 |
+
}
|
67 |
+
|
68 |
+
.mc4wp-form input[type="checkbox"] {
|
69 |
+
-webkit-appearance: checkbox;
|
70 |
+
}
|
71 |
+
|
72 |
+
.mc4wp-form input[type="radio"] {
|
73 |
+
-webkit-appearance: radio;
|
74 |
+
}
|
75 |
+
|
76 |
+
.mc4wp-form input[type="submit"],
|
77 |
+
.mc4wp-form button,
|
78 |
+
.mc4wp-form input[type="button"] {
|
79 |
+
cursor: pointer;
|
80 |
+
display: inline-block;
|
81 |
+
}
|
82 |
+
|
83 |
+
.mc4wp-alert {
|
84 |
+
margin: 1em 0;
|
85 |
+
padding: 10px 15px;
|
86 |
+
color: #c09853;
|
87 |
+
background-color: #fcf8e3;
|
88 |
+
border: 1px solid #fbeed5;
|
89 |
+
border-radius: 2px;
|
90 |
+
-moz-border-radius: 2px;
|
91 |
+
-webkit-border-radius: 2px;
|
92 |
+
display: block;
|
93 |
+
position: relative;
|
94 |
+
}
|
95 |
+
|
96 |
+
.mc4wp-success {
|
97 |
+
color: #468847;
|
98 |
+
background-color: #dff0d8;
|
99 |
+
border-color: #d6e9c6;
|
100 |
+
}
|
101 |
+
|
102 |
+
.mc4wp-notice {
|
103 |
+
color: #3a87ad;
|
104 |
+
background-color: #d9edf7;
|
105 |
+
border-color: #bce8f1;
|
106 |
+
}
|
107 |
+
|
108 |
+
.mc4wp-error {
|
109 |
+
color: #b94a48;
|
110 |
+
background-color: #f2dede;
|
111 |
+
border-color: #eed3d7;
|
112 |
+
}
|
113 |
+
|
114 |
+
/* Form base theme */
|
115 |
+
form.mc4wp-form,
|
116 |
+
.mc4wp-form form {
|
117 |
+
box-shadow: none !important;
|
118 |
+
-webkit-box-shadow: none;
|
119 |
+
-moz-box-shadow: none;
|
120 |
+
width: auto;
|
121 |
+
}
|
122 |
+
|
123 |
+
.mc4wp-form p {
|
124 |
+
margin: 0 0 15px !important;
|
125 |
+
padding: 0;
|
126 |
+
}
|
127 |
+
|
128 |
+
.mc4wp-form label {
|
129 |
+
font-size: 1em;
|
130 |
+
margin: 6px 0;
|
131 |
+
}
|
132 |
+
|
133 |
+
.mc4wp-form input[type="text"],
|
134 |
+
.mc4wp-form input[type="email"],
|
135 |
+
.mc4wp-form input[type="tel"],
|
136 |
+
.mc4wp-form input[type="url"],
|
137 |
+
.mc4wp-form input[type="date"],
|
138 |
+
.mc4wp-form textarea,
|
139 |
+
.mc4wp-form select {
|
140 |
+
width: 100%;
|
141 |
+
height: 34px;
|
142 |
+
margin: 0;
|
143 |
+
padding: 6px 12px;
|
144 |
+
font-size: 14px;
|
145 |
+
line-height: 1.428571429;
|
146 |
+
color: #555555;
|
147 |
+
vertical-align: middle;
|
148 |
+
background-color: #ffffff;
|
149 |
+
border: 1px solid #cccccc;
|
150 |
+
-moz-border-radius: 2px;
|
151 |
+
-webkit-border-radius: 2px;
|
152 |
+
border-radius: 2px;
|
153 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
154 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
155 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
156 |
+
-moz-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
157 |
+
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
158 |
+
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
159 |
+
background-image: none;
|
160 |
+
text-shadow: none;
|
161 |
+
}
|
162 |
+
|
163 |
+
.mc4wp-form input[type="text"]:focus,
|
164 |
+
.mc4wp-form input[type="email"]:focus,
|
165 |
+
.mc4wp-form input[type="tel"]:focus,
|
166 |
+
.mc4wp-form input[type="url"]:focus,
|
167 |
+
.mc4wp-form textarea:focus,
|
168 |
+
.mc4wp-form select:focus {
|
169 |
+
border-color: #66afe9;
|
170 |
+
outline: 0;
|
171 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
172 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
173 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
174 |
+
}
|
175 |
+
|
176 |
+
.mc4wp-form textarea {
|
177 |
+
height: auto;
|
178 |
+
}
|
179 |
+
|
180 |
+
.mc4wp-form input[readonly],
|
181 |
+
.mc4wp-form input[disabled] {
|
182 |
+
background-color: #eeeeee;
|
183 |
+
}
|
184 |
+
|
185 |
+
.mc4wp-form input[type="submit"],
|
186 |
+
.mc4wp-form button {
|
187 |
+
display: inline-block;
|
188 |
+
padding: 6px 12px;
|
189 |
+
margin: 0;
|
190 |
+
font-size: 14px;
|
191 |
+
font-weight: normal;
|
192 |
+
line-height: 1.428571429;
|
193 |
+
text-align: center;
|
194 |
+
white-space: nowrap;
|
195 |
+
vertical-align: middle;
|
196 |
+
cursor: pointer;
|
197 |
+
border: 1px solid transparent;
|
198 |
+
border-radius: 2px;
|
199 |
+
-webkit-user-select: none;
|
200 |
+
-moz-user-select: none;
|
201 |
+
-ms-user-select: none;
|
202 |
+
-o-user-select: none;
|
203 |
+
user-select: none;
|
204 |
+
box-shadow: none;
|
205 |
+
background: none;
|
206 |
+
text-shadow: none;
|
207 |
+
filter: none;
|
208 |
+
height: auto;
|
209 |
+
width: auto;
|
210 |
+
}
|
211 |
+
|
212 |
+
.mc4wp-form input[type="submit"]:focus,
|
213 |
+
.mc4wp-form button:focus {
|
214 |
+
outline: thin dotted #333;
|
215 |
+
outline: 5px auto -webkit-focus-ring-color;
|
216 |
+
outline-offset: -2px;
|
217 |
+
}
|
218 |
+
|
219 |
+
.mc4wp-form input[type="submit"]:hover,
|
220 |
+
.mc4wp-form button:hover,
|
221 |
+
.mc4wp-form input[type="submit"]:focus,
|
222 |
+
.mc4wp-form button:focus {
|
223 |
+
color: #333333;
|
224 |
+
text-decoration: none;
|
225 |
+
background: none;
|
226 |
+
}
|
227 |
+
|
228 |
+
.mc4wp-form input[type="submit"]:active,
|
229 |
+
.mc4wp-form button:active {
|
230 |
+
background-image: none;
|
231 |
+
outline: 0;
|
232 |
+
-moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
233 |
+
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
234 |
+
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
235 |
+
}
|
236 |
+
|
237 |
+
.mc4wp-form input[type="submit"],
|
238 |
+
.mc4wp-form button {
|
239 |
+
color: #ffffff !important;
|
240 |
+
background-color: #5cb85c !important;
|
241 |
+
border-color: #4cae4c;
|
242 |
+
}
|
243 |
+
|
244 |
+
.mc4wp-form input[type="submit"]:hover,
|
245 |
+
.mc4wp-form button:hover,
|
246 |
+
.mc4wp-form input[type="submit"]:active,
|
247 |
+
.mc4wp-form button:active,
|
248 |
+
.mc4wp-form input[type="submit"]:focus,
|
249 |
+
.mc4wp-form button:focus {
|
250 |
+
color: #ffffff !important;
|
251 |
+
background-color: #47a447 !important;
|
252 |
+
border-color: #398439;
|
253 |
+
}
|
254 |
+
|
255 |
+
.mc4wp-form input[type="text"]:focus,
|
256 |
+
.mc4wp-form input[type="email"]:focus,
|
257 |
+
.mc4wp-form input[type="tel"]:focus,
|
258 |
+
.mc4wp-form input[type="url"]:focus,
|
259 |
+
.mc4wp-form input[type="date"]:focus,
|
260 |
+
.mc4wp-form textarea:focus,
|
261 |
+
.mc4wp-form select:focus {
|
262 |
+
border-color: #5cb85c;
|
263 |
+
}
|
assets/css/form-theme-green.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.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=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{cursor:auto;display:block;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 button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{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 form,form.mc4wp-form{box-shadow:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;width:auto}.mc4wp-form p{margin:0 0 15px!important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;background-image:none;text-shadow:none}.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[disabled],.mc4wp-form input[readonly]{background-color:#eee}.mc4wp-form button,.mc4wp-form input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;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:0 0;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form button:focus,.mc4wp-form input[type=submit]:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#333;text-decoration:none;background:0 0}.mc4wp-form button:active,.mc4wp-form input[type=submit]:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.mc4wp-form button,.mc4wp-form input[type=submit]{color:#fff!important;background-color:#5cb85c!important;border-color:#4cae4c}.mc4wp-form button:active,.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:active,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#fff!important;background-color:#47a447!important;border-color:#398439}.mc4wp-form input[type=date]:focus,.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{border-color:#5cb85c}
|
assets/css/form-theme-light.css
CHANGED
@@ -1 +1,253 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* MailChimp for WP - Default Form Styles */
|
2 |
+
.mc4wp-form {
|
3 |
+
margin: 1em 0;
|
4 |
+
}
|
5 |
+
|
6 |
+
form.mc4wp-form,
|
7 |
+
.mc4wp-form form {
|
8 |
+
width: auto;
|
9 |
+
}
|
10 |
+
|
11 |
+
.mc4wp-form label {
|
12 |
+
display: block;
|
13 |
+
font-weight: bold;
|
14 |
+
margin-bottom: 5px;
|
15 |
+
}
|
16 |
+
|
17 |
+
.mc4wp-form ul,
|
18 |
+
.mc4wp-form li {
|
19 |
+
list-style: none;
|
20 |
+
margin: 0;
|
21 |
+
padding: 0;
|
22 |
+
}
|
23 |
+
|
24 |
+
.mc4wp-form label > span,
|
25 |
+
.mc4wp-form li > label {
|
26 |
+
font-weight: normal;
|
27 |
+
}
|
28 |
+
|
29 |
+
.mc4wp-form p > label:nth-child(2) {
|
30 |
+
margin-top: 10px;
|
31 |
+
}
|
32 |
+
|
33 |
+
.mc4wp-form input {
|
34 |
+
vertical-align: baseline;
|
35 |
+
}
|
36 |
+
|
37 |
+
.mc4wp-form input.placeholdersjs {
|
38 |
+
color: #aaa !important;
|
39 |
+
}
|
40 |
+
|
41 |
+
.mc4wp-form input[type="text"],
|
42 |
+
.mc4wp-form input[type="email"],
|
43 |
+
.mc4wp-form input[type="tel"],
|
44 |
+
.mc4wp-form input[type="url"],
|
45 |
+
.mc4wp-form input[type="date"],
|
46 |
+
.mc4wp-form textarea,
|
47 |
+
.mc4wp-form select {
|
48 |
+
cursor: auto;
|
49 |
+
display: block;
|
50 |
+
width: 100%;
|
51 |
+
height: auto;
|
52 |
+
box-sizing: border-box;
|
53 |
+
-webkit-box-sizing: border-box;
|
54 |
+
-moz-box-sizing: border-box;
|
55 |
+
}
|
56 |
+
|
57 |
+
.mc4wp-form input[type="checkbox"],
|
58 |
+
.mc4wp-form input[type="radio"] {
|
59 |
+
position: relative;
|
60 |
+
margin: 0 6px 0 0;
|
61 |
+
padding: 0;
|
62 |
+
height: 13px;
|
63 |
+
width: 13px;
|
64 |
+
display: inline-block;
|
65 |
+
border: 0;
|
66 |
+
}
|
67 |
+
|
68 |
+
.mc4wp-form input[type="checkbox"] {
|
69 |
+
-webkit-appearance: checkbox;
|
70 |
+
}
|
71 |
+
|
72 |
+
.mc4wp-form input[type="radio"] {
|
73 |
+
-webkit-appearance: radio;
|
74 |
+
}
|
75 |
+
|
76 |
+
.mc4wp-form input[type="submit"],
|
77 |
+
.mc4wp-form button,
|
78 |
+
.mc4wp-form input[type="button"] {
|
79 |
+
cursor: pointer;
|
80 |
+
display: inline-block;
|
81 |
+
}
|
82 |
+
|
83 |
+
.mc4wp-alert {
|
84 |
+
margin: 1em 0;
|
85 |
+
padding: 10px 15px;
|
86 |
+
color: #c09853;
|
87 |
+
background-color: #fcf8e3;
|
88 |
+
border: 1px solid #fbeed5;
|
89 |
+
border-radius: 2px;
|
90 |
+
-moz-border-radius: 2px;
|
91 |
+
-webkit-border-radius: 2px;
|
92 |
+
display: block;
|
93 |
+
position: relative;
|
94 |
+
}
|
95 |
+
|
96 |
+
.mc4wp-success {
|
97 |
+
color: #468847;
|
98 |
+
background-color: #dff0d8;
|
99 |
+
border-color: #d6e9c6;
|
100 |
+
}
|
101 |
+
|
102 |
+
.mc4wp-notice {
|
103 |
+
color: #3a87ad;
|
104 |
+
background-color: #d9edf7;
|
105 |
+
border-color: #bce8f1;
|
106 |
+
}
|
107 |
+
|
108 |
+
.mc4wp-error {
|
109 |
+
color: #b94a48;
|
110 |
+
background-color: #f2dede;
|
111 |
+
border-color: #eed3d7;
|
112 |
+
}
|
113 |
+
|
114 |
+
/* Form base theme */
|
115 |
+
form.mc4wp-form,
|
116 |
+
.mc4wp-form form {
|
117 |
+
box-shadow: none !important;
|
118 |
+
-webkit-box-shadow: none;
|
119 |
+
-moz-box-shadow: none;
|
120 |
+
width: auto;
|
121 |
+
}
|
122 |
+
|
123 |
+
.mc4wp-form p {
|
124 |
+
margin: 0 0 15px !important;
|
125 |
+
padding: 0;
|
126 |
+
}
|
127 |
+
|
128 |
+
.mc4wp-form label {
|
129 |
+
font-size: 1em;
|
130 |
+
margin: 6px 0;
|
131 |
+
}
|
132 |
+
|
133 |
+
.mc4wp-form input[type="text"],
|
134 |
+
.mc4wp-form input[type="email"],
|
135 |
+
.mc4wp-form input[type="tel"],
|
136 |
+
.mc4wp-form input[type="url"],
|
137 |
+
.mc4wp-form input[type="date"],
|
138 |
+
.mc4wp-form textarea,
|
139 |
+
.mc4wp-form select {
|
140 |
+
width: 100%;
|
141 |
+
height: 34px;
|
142 |
+
margin: 0;
|
143 |
+
padding: 6px 12px;
|
144 |
+
font-size: 14px;
|
145 |
+
line-height: 1.428571429;
|
146 |
+
color: #555555;
|
147 |
+
vertical-align: middle;
|
148 |
+
background-color: #ffffff;
|
149 |
+
border: 1px solid #cccccc;
|
150 |
+
-moz-border-radius: 2px;
|
151 |
+
-webkit-border-radius: 2px;
|
152 |
+
border-radius: 2px;
|
153 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
154 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
155 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
156 |
+
-moz-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
157 |
+
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
158 |
+
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
159 |
+
background-image: none;
|
160 |
+
text-shadow: none;
|
161 |
+
}
|
162 |
+
|
163 |
+
.mc4wp-form input[type="text"]:focus,
|
164 |
+
.mc4wp-form input[type="email"]:focus,
|
165 |
+
.mc4wp-form input[type="tel"]:focus,
|
166 |
+
.mc4wp-form input[type="url"]:focus,
|
167 |
+
.mc4wp-form textarea:focus,
|
168 |
+
.mc4wp-form select:focus {
|
169 |
+
border-color: #66afe9;
|
170 |
+
outline: 0;
|
171 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
172 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
173 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
174 |
+
}
|
175 |
+
|
176 |
+
.mc4wp-form textarea {
|
177 |
+
height: auto;
|
178 |
+
}
|
179 |
+
|
180 |
+
.mc4wp-form input[readonly],
|
181 |
+
.mc4wp-form input[disabled] {
|
182 |
+
background-color: #eeeeee;
|
183 |
+
}
|
184 |
+
|
185 |
+
.mc4wp-form input[type="submit"],
|
186 |
+
.mc4wp-form button {
|
187 |
+
display: inline-block;
|
188 |
+
padding: 6px 12px;
|
189 |
+
margin: 0;
|
190 |
+
font-size: 14px;
|
191 |
+
font-weight: normal;
|
192 |
+
line-height: 1.428571429;
|
193 |
+
text-align: center;
|
194 |
+
white-space: nowrap;
|
195 |
+
vertical-align: middle;
|
196 |
+
cursor: pointer;
|
197 |
+
border: 1px solid transparent;
|
198 |
+
border-radius: 2px;
|
199 |
+
-webkit-user-select: none;
|
200 |
+
-moz-user-select: none;
|
201 |
+
-ms-user-select: none;
|
202 |
+
-o-user-select: none;
|
203 |
+
user-select: none;
|
204 |
+
box-shadow: none;
|
205 |
+
background: none;
|
206 |
+
text-shadow: none;
|
207 |
+
filter: none;
|
208 |
+
height: auto;
|
209 |
+
width: auto;
|
210 |
+
}
|
211 |
+
|
212 |
+
.mc4wp-form input[type="submit"]:focus,
|
213 |
+
.mc4wp-form button:focus {
|
214 |
+
outline: thin dotted #333;
|
215 |
+
outline: 5px auto -webkit-focus-ring-color;
|
216 |
+
outline-offset: -2px;
|
217 |
+
}
|
218 |
+
|
219 |
+
.mc4wp-form input[type="submit"]:hover,
|
220 |
+
.mc4wp-form button:hover,
|
221 |
+
.mc4wp-form input[type="submit"]:focus,
|
222 |
+
.mc4wp-form button:focus {
|
223 |
+
color: #333333;
|
224 |
+
text-decoration: none;
|
225 |
+
background: none;
|
226 |
+
}
|
227 |
+
|
228 |
+
.mc4wp-form input[type="submit"]:active,
|
229 |
+
.mc4wp-form button:active {
|
230 |
+
background-image: none;
|
231 |
+
outline: 0;
|
232 |
+
-moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
233 |
+
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
234 |
+
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
235 |
+
}
|
236 |
+
|
237 |
+
.mc4wp-form input[type="submit"],
|
238 |
+
.mc4wp-form button {
|
239 |
+
color: #333333 !important;
|
240 |
+
background-color: #ffffff !important;
|
241 |
+
border-color: #E6E6E6;
|
242 |
+
}
|
243 |
+
|
244 |
+
.mc4wp-form input[type="submit"]:hover,
|
245 |
+
.mc4wp-form button:hover,
|
246 |
+
.mc4wp-form input[type="submit"]:active,
|
247 |
+
.mc4wp-form button:active,
|
248 |
+
.mc4wp-form input[type="submit"]:focus,
|
249 |
+
.mc4wp-form button:focus {
|
250 |
+
color: #E6E6E6 !important;
|
251 |
+
background-color: #ebebeb !important;
|
252 |
+
border-color: #CCCCCC;
|
253 |
+
}
|
assets/css/form-theme-light.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.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=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{cursor:auto;display:block;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 button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{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 form,form.mc4wp-form{box-shadow:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;width:auto}.mc4wp-form p{margin:0 0 15px!important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;background-image:none;text-shadow:none}.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{border-color:#66afe9;outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[disabled],.mc4wp-form input[readonly]{background-color:#eee}.mc4wp-form button,.mc4wp-form input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;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:0 0;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form button:focus,.mc4wp-form input[type=submit]:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#333;text-decoration:none;background:0 0}.mc4wp-form button:active,.mc4wp-form input[type=submit]:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.mc4wp-form button,.mc4wp-form input[type=submit]{color:#333!important;background-color:#fff!important;border-color:#E6E6E6}.mc4wp-form button:active,.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:active,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#E6E6E6!important;background-color:#ebebeb!important;border-color:#CCC}
|
assets/css/form-theme-red.css
CHANGED
@@ -1 +1,263 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* MailChimp for WP - Default Form Styles */
|
2 |
+
.mc4wp-form {
|
3 |
+
margin: 1em 0;
|
4 |
+
}
|
5 |
+
|
6 |
+
form.mc4wp-form,
|
7 |
+
.mc4wp-form form {
|
8 |
+
width: auto;
|
9 |
+
}
|
10 |
+
|
11 |
+
.mc4wp-form label {
|
12 |
+
display: block;
|
13 |
+
font-weight: bold;
|
14 |
+
margin-bottom: 5px;
|
15 |
+
}
|
16 |
+
|
17 |
+
.mc4wp-form ul,
|
18 |
+
.mc4wp-form li {
|
19 |
+
list-style: none;
|
20 |
+
margin: 0;
|
21 |
+
padding: 0;
|
22 |
+
}
|
23 |
+
|
24 |
+
.mc4wp-form label > span,
|
25 |
+
.mc4wp-form li > label {
|
26 |
+
font-weight: normal;
|
27 |
+
}
|
28 |
+
|
29 |
+
.mc4wp-form p > label:nth-child(2) {
|
30 |
+
margin-top: 10px;
|
31 |
+
}
|
32 |
+
|
33 |
+
.mc4wp-form input {
|
34 |
+
vertical-align: baseline;
|
35 |
+
}
|
36 |
+
|
37 |
+
.mc4wp-form input.placeholdersjs {
|
38 |
+
color: #aaa !important;
|
39 |
+
}
|
40 |
+
|
41 |
+
.mc4wp-form input[type="text"],
|
42 |
+
.mc4wp-form input[type="email"],
|
43 |
+
.mc4wp-form input[type="tel"],
|
44 |
+
.mc4wp-form input[type="url"],
|
45 |
+
.mc4wp-form input[type="date"],
|
46 |
+
.mc4wp-form textarea,
|
47 |
+
.mc4wp-form select {
|
48 |
+
cursor: auto;
|
49 |
+
display: block;
|
50 |
+
width: 100%;
|
51 |
+
height: auto;
|
52 |
+
box-sizing: border-box;
|
53 |
+
-webkit-box-sizing: border-box;
|
54 |
+
-moz-box-sizing: border-box;
|
55 |
+
}
|
56 |
+
|
57 |
+
.mc4wp-form input[type="checkbox"],
|
58 |
+
.mc4wp-form input[type="radio"] {
|
59 |
+
position: relative;
|
60 |
+
margin: 0 6px 0 0;
|
61 |
+
padding: 0;
|
62 |
+
height: 13px;
|
63 |
+
width: 13px;
|
64 |
+
display: inline-block;
|
65 |
+
border: 0;
|
66 |
+
}
|
67 |
+
|
68 |
+
.mc4wp-form input[type="checkbox"] {
|
69 |
+
-webkit-appearance: checkbox;
|
70 |
+
}
|
71 |
+
|
72 |
+
.mc4wp-form input[type="radio"] {
|
73 |
+
-webkit-appearance: radio;
|
74 |
+
}
|
75 |
+
|
76 |
+
.mc4wp-form input[type="submit"],
|
77 |
+
.mc4wp-form button,
|
78 |
+
.mc4wp-form input[type="button"] {
|
79 |
+
cursor: pointer;
|
80 |
+
display: inline-block;
|
81 |
+
}
|
82 |
+
|
83 |
+
.mc4wp-alert {
|
84 |
+
margin: 1em 0;
|
85 |
+
padding: 10px 15px;
|
86 |
+
color: #c09853;
|
87 |
+
background-color: #fcf8e3;
|
88 |
+
border: 1px solid #fbeed5;
|
89 |
+
border-radius: 2px;
|
90 |
+
-moz-border-radius: 2px;
|
91 |
+
-webkit-border-radius: 2px;
|
92 |
+
display: block;
|
93 |
+
position: relative;
|
94 |
+
}
|
95 |
+
|
96 |
+
.mc4wp-success {
|
97 |
+
color: #468847;
|
98 |
+
background-color: #dff0d8;
|
99 |
+
border-color: #d6e9c6;
|
100 |
+
}
|
101 |
+
|
102 |
+
.mc4wp-notice {
|
103 |
+
color: #3a87ad;
|
104 |
+
background-color: #d9edf7;
|
105 |
+
border-color: #bce8f1;
|
106 |
+
}
|
107 |
+
|
108 |
+
.mc4wp-error {
|
109 |
+
color: #b94a48;
|
110 |
+
background-color: #f2dede;
|
111 |
+
border-color: #eed3d7;
|
112 |
+
}
|
113 |
+
|
114 |
+
/* Form base theme */
|
115 |
+
form.mc4wp-form,
|
116 |
+
.mc4wp-form form {
|
117 |
+
box-shadow: none !important;
|
118 |
+
-webkit-box-shadow: none;
|
119 |
+
-moz-box-shadow: none;
|
120 |
+
width: auto;
|
121 |
+
}
|
122 |
+
|
123 |
+
.mc4wp-form p {
|
124 |
+
margin: 0 0 15px !important;
|
125 |
+
padding: 0;
|
126 |
+
}
|
127 |
+
|
128 |
+
.mc4wp-form label {
|
129 |
+
font-size: 1em;
|
130 |
+
margin: 6px 0;
|
131 |
+
}
|
132 |
+
|
133 |
+
.mc4wp-form input[type="text"],
|
134 |
+
.mc4wp-form input[type="email"],
|
135 |
+
.mc4wp-form input[type="tel"],
|
136 |
+
.mc4wp-form input[type="url"],
|
137 |
+
.mc4wp-form input[type="date"],
|
138 |
+
.mc4wp-form textarea,
|
139 |
+
.mc4wp-form select {
|
140 |
+
width: 100%;
|
141 |
+
height: 34px;
|
142 |
+
margin: 0;
|
143 |
+
padding: 6px 12px;
|
144 |
+
font-size: 14px;
|
145 |
+
line-height: 1.428571429;
|
146 |
+
color: #555555;
|
147 |
+
vertical-align: middle;
|
148 |
+
background-color: #ffffff;
|
149 |
+
border: 1px solid #cccccc;
|
150 |
+
-moz-border-radius: 2px;
|
151 |
+
-webkit-border-radius: 2px;
|
152 |
+
border-radius: 2px;
|
153 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
154 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
155 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
156 |
+
-moz-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
157 |
+
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
158 |
+
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
159 |
+
background-image: none;
|
160 |
+
text-shadow: none;
|
161 |
+
}
|
162 |
+
|
163 |
+
.mc4wp-form input[type="text"]:focus,
|
164 |
+
.mc4wp-form input[type="email"]:focus,
|
165 |
+
.mc4wp-form input[type="tel"]:focus,
|
166 |
+
.mc4wp-form input[type="url"]:focus,
|
167 |
+
.mc4wp-form textarea:focus,
|
168 |
+
.mc4wp-form select:focus {
|
169 |
+
border-color: #66afe9;
|
170 |
+
outline: 0;
|
171 |
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
172 |
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
173 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
174 |
+
}
|
175 |
+
|
176 |
+
.mc4wp-form textarea {
|
177 |
+
height: auto;
|
178 |
+
}
|
179 |
+
|
180 |
+
.mc4wp-form input[readonly],
|
181 |
+
.mc4wp-form input[disabled] {
|
182 |
+
background-color: #eeeeee;
|
183 |
+
}
|
184 |
+
|
185 |
+
.mc4wp-form input[type="submit"],
|
186 |
+
.mc4wp-form button {
|
187 |
+
display: inline-block;
|
188 |
+
padding: 6px 12px;
|
189 |
+
margin: 0;
|
190 |
+
font-size: 14px;
|
191 |
+
font-weight: normal;
|
192 |
+
line-height: 1.428571429;
|
193 |
+
text-align: center;
|
194 |
+
white-space: nowrap;
|
195 |
+
vertical-align: middle;
|
196 |
+
cursor: pointer;
|
197 |
+
border: 1px solid transparent;
|
198 |
+
border-radius: 2px;
|
199 |
+
-webkit-user-select: none;
|
200 |
+
-moz-user-select: none;
|
201 |
+
-ms-user-select: none;
|
202 |
+
-o-user-select: none;
|
203 |
+
user-select: none;
|
204 |
+
box-shadow: none;
|
205 |
+
background: none;
|
206 |
+
text-shadow: none;
|
207 |
+
filter: none;
|
208 |
+
height: auto;
|
209 |
+
width: auto;
|
210 |
+
}
|
211 |
+
|
212 |
+
.mc4wp-form input[type="submit"]:focus,
|
213 |
+
.mc4wp-form button:focus {
|
214 |
+
outline: thin dotted #333;
|
215 |
+
outline: 5px auto -webkit-focus-ring-color;
|
216 |
+
outline-offset: -2px;
|
217 |
+
}
|
218 |
+
|
219 |
+
.mc4wp-form input[type="submit"]:hover,
|
220 |
+
.mc4wp-form button:hover,
|
221 |
+
.mc4wp-form input[type="submit"]:focus,
|
222 |
+
.mc4wp-form button:focus {
|
223 |
+
color: #333333;
|
224 |
+
text-decoration: none;
|
225 |
+
background: none;
|
226 |
+
}
|
227 |
+
|
228 |
+
.mc4wp-form input[type="submit"]:active,
|
229 |
+
.mc4wp-form button:active {
|
230 |
+
background-image: none;
|
231 |
+
outline: 0;
|
232 |
+
-moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
233 |
+
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
234 |
+
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
235 |
+
}
|
236 |
+
|
237 |
+
.mc4wp-form input[type="submit"],
|
238 |
+
.mc4wp-form button {
|
239 |
+
color: #ffffff !important;
|
240 |
+
background-color: #d9534f !important;
|
241 |
+
border-color: #d43f3a;
|
242 |
+
}
|
243 |
+
|
244 |
+
.mc4wp-form input[type="submit"]:hover,
|
245 |
+
.mc4wp-form button:hover,
|
246 |
+
.mc4wp-form input[type="submit"]:active,
|
247 |
+
.mc4wp-form button:active,
|
248 |
+
.mc4wp-form input[type="submit"]:focus,
|
249 |
+
.mc4wp-form button:focus {
|
250 |
+
color: #ffffff !important;
|
251 |
+
background-color: #d2322d !important;
|
252 |
+
border-color: #ac2925;
|
253 |
+
}
|
254 |
+
|
255 |
+
.mc4wp-form input[type="text"]:focus,
|
256 |
+
.mc4wp-form input[type="email"]:focus,
|
257 |
+
.mc4wp-form input[type="tel"]:focus,
|
258 |
+
.mc4wp-form input[type="url"]:focus,
|
259 |
+
.mc4wp-form input[type="date"]:focus,
|
260 |
+
.mc4wp-form textarea:focus,
|
261 |
+
.mc4wp-form select:focus {
|
262 |
+
border-color: #d9534f;
|
263 |
+
}
|
assets/css/form-theme-red.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form label{display:block;font-weight:700}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.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=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{cursor:auto;display:block;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 button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{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 form,form.mc4wp-form{box-shadow:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;width:auto}.mc4wp-form p{margin:0 0 15px!important;padding:0}.mc4wp-form label{font-size:1em;margin:6px 0}.mc4wp-form input[type=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{width:100%;height:34px;margin:0;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;background-image:none;text-shadow:none}.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{outline:0;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.mc4wp-form textarea{height:auto}.mc4wp-form input[disabled],.mc4wp-form input[readonly]{background-color:#eee}.mc4wp-form button,.mc4wp-form input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;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:0 0;text-shadow:none;filter:none;height:auto;width:auto}.mc4wp-form button:focus,.mc4wp-form input[type=submit]:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#333;text-decoration:none;background:0 0}.mc4wp-form button:active,.mc4wp-form input[type=submit]:active{background-image:none;outline:0;-moz-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.mc4wp-form button,.mc4wp-form input[type=submit]{color:#fff!important;background-color:#d9534f!important;border-color:#d43f3a}.mc4wp-form button:active,.mc4wp-form button:focus,.mc4wp-form button:hover,.mc4wp-form input[type=submit]:active,.mc4wp-form input[type=submit]:focus,.mc4wp-form input[type=submit]:hover{color:#fff!important;background-color:#d2322d!important;border-color:#ac2925}.mc4wp-form input[type=date]:focus,.mc4wp-form input[type=email]:focus,.mc4wp-form input[type=tel]:focus,.mc4wp-form input[type=text]:focus,.mc4wp-form input[type=url]:focus,.mc4wp-form select:focus,.mc4wp-form textarea:focus{border-color:#d9534f}
|
assets/css/form.css
CHANGED
@@ -1 +1,112 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* MailChimp for WP - Default Form Styles */
|
2 |
+
.mc4wp-form {
|
3 |
+
margin: 1em 0;
|
4 |
+
}
|
5 |
+
|
6 |
+
form.mc4wp-form,
|
7 |
+
.mc4wp-form form {
|
8 |
+
width: auto;
|
9 |
+
}
|
10 |
+
|
11 |
+
.mc4wp-form label {
|
12 |
+
display: block;
|
13 |
+
font-weight: bold;
|
14 |
+
margin-bottom: 5px;
|
15 |
+
}
|
16 |
+
|
17 |
+
.mc4wp-form ul,
|
18 |
+
.mc4wp-form li {
|
19 |
+
list-style: none;
|
20 |
+
margin: 0;
|
21 |
+
padding: 0;
|
22 |
+
}
|
23 |
+
|
24 |
+
.mc4wp-form label > span,
|
25 |
+
.mc4wp-form li > label {
|
26 |
+
font-weight: normal;
|
27 |
+
}
|
28 |
+
|
29 |
+
.mc4wp-form p > label:nth-child(2) {
|
30 |
+
margin-top: 10px;
|
31 |
+
}
|
32 |
+
|
33 |
+
.mc4wp-form input {
|
34 |
+
vertical-align: baseline;
|
35 |
+
}
|
36 |
+
|
37 |
+
.mc4wp-form input.placeholdersjs {
|
38 |
+
color: #aaa !important;
|
39 |
+
}
|
40 |
+
|
41 |
+
.mc4wp-form input[type="text"],
|
42 |
+
.mc4wp-form input[type="email"],
|
43 |
+
.mc4wp-form input[type="tel"],
|
44 |
+
.mc4wp-form input[type="url"],
|
45 |
+
.mc4wp-form input[type="date"],
|
46 |
+
.mc4wp-form textarea,
|
47 |
+
.mc4wp-form select {
|
48 |
+
cursor: auto;
|
49 |
+
display: block;
|
50 |
+
width: 100%;
|
51 |
+
height: auto;
|
52 |
+
box-sizing: border-box;
|
53 |
+
-webkit-box-sizing: border-box;
|
54 |
+
-moz-box-sizing: border-box;
|
55 |
+
}
|
56 |
+
|
57 |
+
.mc4wp-form input[type="checkbox"],
|
58 |
+
.mc4wp-form input[type="radio"] {
|
59 |
+
position: relative;
|
60 |
+
margin: 0 6px 0 0;
|
61 |
+
padding: 0;
|
62 |
+
height: 13px;
|
63 |
+
width: 13px;
|
64 |
+
display: inline-block;
|
65 |
+
border: 0;
|
66 |
+
}
|
67 |
+
|
68 |
+
.mc4wp-form input[type="checkbox"] {
|
69 |
+
-webkit-appearance: checkbox;
|
70 |
+
}
|
71 |
+
|
72 |
+
.mc4wp-form input[type="radio"] {
|
73 |
+
-webkit-appearance: radio;
|
74 |
+
}
|
75 |
+
|
76 |
+
.mc4wp-form input[type="submit"],
|
77 |
+
.mc4wp-form button,
|
78 |
+
.mc4wp-form input[type="button"] {
|
79 |
+
cursor: pointer;
|
80 |
+
display: inline-block;
|
81 |
+
}
|
82 |
+
|
83 |
+
.mc4wp-alert {
|
84 |
+
margin: 1em 0;
|
85 |
+
padding: 10px 15px;
|
86 |
+
color: #c09853;
|
87 |
+
background-color: #fcf8e3;
|
88 |
+
border: 1px solid #fbeed5;
|
89 |
+
border-radius: 2px;
|
90 |
+
-moz-border-radius: 2px;
|
91 |
+
-webkit-border-radius: 2px;
|
92 |
+
display: block;
|
93 |
+
position: relative;
|
94 |
+
}
|
95 |
+
|
96 |
+
.mc4wp-success {
|
97 |
+
color: #468847;
|
98 |
+
background-color: #dff0d8;
|
99 |
+
border-color: #d6e9c6;
|
100 |
+
}
|
101 |
+
|
102 |
+
.mc4wp-notice {
|
103 |
+
color: #3a87ad;
|
104 |
+
background-color: #d9edf7;
|
105 |
+
border-color: #bce8f1;
|
106 |
+
}
|
107 |
+
|
108 |
+
.mc4wp-error {
|
109 |
+
color: #b94a48;
|
110 |
+
background-color: #f2dede;
|
111 |
+
border-color: #eed3d7;
|
112 |
+
}
|
assets/css/form.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.mc4wp-form{margin:1em 0}.mc4wp-form form,form.mc4wp-form{width:auto}.mc4wp-form label{display:block;font-weight:700;margin-bottom:5px}.mc4wp-form li,.mc4wp-form ul{list-style:none;margin:0;padding:0}.mc4wp-form label>span,.mc4wp-form li>label{font-weight:400}.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=date],.mc4wp-form input[type=email],.mc4wp-form input[type=tel],.mc4wp-form input[type=text],.mc4wp-form input[type=url],.mc4wp-form select,.mc4wp-form textarea{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 button,.mc4wp-form input[type=button],.mc4wp-form input[type=submit]{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}
|
assets/js/admin.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a){a("tr.pro-feature, tr.pro-feature td :radio").change(function(){this.checked=!1,alert("This option is only available in the premium version of MailChimp for WordPress."),event.stopPropagation()}),a("tr.pro-feature, tr.pro-feature label").click(function(){alert("This option is only available in the premium version of MailChimp for WordPress."),event.stopPropagation()}),function(){function b(){var b=$lists.filter(":checked").length>0;a(".mc4wp-notice.no-lists-selected").toggle(!b),a("#mc4wp-fw-mailchimp-fields").toggle(b)}$lists=a("#mc4wp-lists :input"),$lists.change(b)}(),a(document).delegate("#mc4wpformmarkup","keydown",function(b){var c=b.keyCode||b.which;if(9==c){b.preventDefault();var d=this.selectionStart,e=this.selectionEnd;a(this).val(a(this).val().substring(0,d)+" "+a(this).val().substring(e)),this.selectionStart=this.selectionEnd=d+1}}),function(){void 0!=window.QTags&&(QTags.addButton("mc4wp_paragraph","<p>","<p>","</p>","p","Paragraph tag",1),QTags.addButton("mc4wp_label","label","<label>","</label>","l","Label tag",2),QTags.addButton("mc4wp_subscriber_count","# of subscribers","{subscriber_count}","","s","Shows number of subscribers of selected list(s)"),1==window.mc4wp.has_captcha_plugin&&QTags.addButton("mc4wp_captcha","CAPTCHA","[captcha]","","c","Display a CAPTCHA field"))}(),function(){function b(){o.find("option").not(".default").remove(),n.filter(":checked").each(function(){for(var b=a(this).data("list-fields"),c=a(this).data("list-groupings"),d=0,e=b.length;e>d;d++){var f=b[d];if(0==p.find("option[value='"+f.tag+"']").length){var g=f.name.length>25?f.name.substring(0,25)+"..":f.name;f.req&&(g+="*");var h=a("<option />").text(g).val(f.tag).data("list-field",f);d>3&&h.text("(PRO ONLY) "+g).attr("disabled","disabled").data("field",null),p.append(h)}}for(var d=0,i=c.length;i>d;d++){var j=c[d];if(0==q.find("option[value='"+j.id+"']").length){var g=j.name.length>25?j.name.substring(0,25)+"..":j.name,h=a("<option />").text(g).val(j.id).data("list-grouping",j);d>=1&&h.text("(PRO ONLY) "+g).attr("disabled","disabled").data("list-grouping",null),q.append(h)}}})}function c(){d();var b=a(this).find(":selected");switch(b.val()){case"submit":l="submit",t.text("Button text"),r.find("p.row").filter(".value, .wrap-p").show();break;case"lists":l="lists",r.find(".wrap-p").show(),j();break;default:var c=b.data("list-field");if(c)return h(c);var c=b.data("list-grouping");if(c)return f(c)}j()}function d(){r.find(".row :input").each(function(){a(this).is(":checkbox")?this.checked=!0:this.value=""}),r.find("p.row").hide(),u.find(":input").remove(),r.show(),l="text",m="",t.html("Initial value <small>(optional)</small>")}function e(b){for(var c=0,d=b.length;d>c;c++)a("<input />").attr("type","text").addClass("widefat").data("value",b[c].name).attr("placeholder",'Label for "'+b[c].name+'" (or leave empty)').attr("value",b[c].name).appendTo(u)}function f(a){switch(r.find("p.row").filter(".values, .label, .wrap-p").show(),v.val(a.name+":"),m="GROUPINGS["+a.id+"]",e(a.groups),a.form_field){case"radio":l="radio";break;case"hidden":r.find("p.row").filter(".values, .label, .wrap-p").hide(),r.find("p.row.value").show();for(var b=0,c=a.groups.length;c>b;b++)s.val(s.val()+a.groups[b].name+",");l="hidden";break;case"dropdown":l="select";break;default:l="checkbox",m+="[]"}j()}function g(){var b="";return n.each(function(){var c=a(this).val(),d=a(this).parent("label").text(),e="";a(this).is(":checked")&&(e+="checked "),b+="<label>\n",b+=' <input type="checkbox" name="_mc4wp_lists[]" value="'+c+'" '+e+" /> "+d+"\n",b+="</label>\n"}),b}function h(b){var c={"default":["label","value","placeholder","required","wrap-p"],select:["label","required","wrap-p","values"],radio:["label","required","wrap-p","values"],date:["label","required","wrap-p","value"]},d={text:"text",email:"email",phone:"tel",address:"text",number:"number",dropdown:"select",date:"date",birthday:"date",radio:"radio",checkbox:"checkbox"};if(l=void 0!=d[b.field_type]?d[b.field_type]:"text",void 0!=c[l])var e=c[l];else var e=c["default"];for(var f=0,g=e.length;g>f;f++)r.find("p.row."+e[f]).show();if(l=l,m=b.tag,w.val("Your "+b.name.toLowerCase()),v.val(b.name+":"),x.attr("checked",b.req),u.is(":visible")&&b.choices)for(var f=0,g=b.choices.length;g>f;f++)a("<input />").attr("type","text").addClass("widefat").data("value",b.choices[f]).attr("placeholder",'Label for "'+b.choices[f]+'" (or leave empty)').attr("value",b.choices[f]).appendTo(u);j()}function i(a){a=html_beautify(a),z.val(a)}function j(){var b,c=a("<div></div>");switch(l){case"lists":var d=g();return y.is(":visible:checked")&&(d="<p>"+d+"</p>"),i(d);case"select":b=a("<select />"),u.find(":input").each(function(){a(this).val().length>0&&($el=a("<option />").val(a(this).data("value")).text(a(this).val()),$el.appendTo(b))});break;case"radio":case"checkbox":u.find(":input").each(function(){a(this).val().length>0&&(b=a("<input />").attr("type",l).attr("name",m).val(a(this).data("value")),x.is(":visible:checked")&&b.attr("required",!0),c.append(b),b.wrap("<label />"),a("<span />").text(a(this).val()+" ").insertAfter(b))});break;case"textarea":b=a("<textarea />");break;default:b=a("<input />").attr("type",l)}"radio"!=l&&"checkbox"!=l&&(m.length>0&&b.attr("name",m),s.is(":visible")&&s.val().length>0&&("textarea"==l?b.text(s.val()):b.attr("value",s.val())),w.is(":visible")&&w.val().length>0&&b.attr("placeholder",w.val()),x.is(":visible:checked")&&b.attr("required",!0),c.append(b)),v.is(":visible")&&v.val().length>0&&a("<label />").text(v.val()).prependTo(c),y.is(":visible:checked")&&c.wrapInner(a("<p />"));var d=c.html();i(d)}function k(){var b=!1;"undefined"!=typeof wpActiveEditor&&"undefined"!=typeof QTags&&QTags.insertContent&&(b=QTags.insertContent(z.val())),b||($formContent=a("#mc4wpformmarkup"),$formContent.val($formContent.val()+"\n"+z.val()))}var l,m,n=a("#mc4wp-lists :input"),o=a("#mc4wp-fw-mailchimp-fields"),p=a("#mc4wp-fw-mailchimp-fields .merge-fields"),q=a("#mc4wp-fw-mailchimp-fields .groupings"),r=a("#mc4wp-fw-fields"),s=a("#mc4wp-fw-value"),t=a("#mc4wp-fw-value-label"),u=a("#mc4wp-fw-values"),v=a("#mc4wp-fw-label"),w=a("#mc4wp-fw-placeholder"),x=a("#mc4wp-fw-required"),y=a("#mc4wp-fw-wrap-p"),z=a("#mc4wp-fw-preview");n.change(b),o.change(c),r.change(j),a("#mc4wp-fw-add-to-form").click(k),b()}()}(jQuery);
|
assets/js/beautify-html.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(){function a(a){return a.replace(/^\s+|\s+$/g,"")}function b(a){return a.replace(/^\s+/g,"")}function c(c,d,e,f){function g(){return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=i,this.Utils={whitespace:"\n\r ".split(""),single_token:"br,input,link,meta,!doctype,basefont,base,area,hr,wbr,param,img,isindex,?xml,embed,?php,?,?=".split(","),extra_liners:"head,body,/html".split(","),in_array:function(a,b){for(var c=0;c<b.length;c++)if(a===b[c])return!0;return!1}},this.traverse_whitespace=function(){var a="";if(a=this.input.charAt(this.pos),this.Utils.in_array(a,this.Utils.whitespace)){for(this.newlines=0;this.Utils.in_array(a,this.Utils.whitespace);)o&&"\n"===a&&this.newlines<=p&&(this.newlines+=1),this.pos++,a=this.input.charAt(this.pos);return!0}return!1},this.get_content=function(){for(var a="",b=[],c=!1;"<"!==this.input.charAt(this.pos);){if(this.pos>=this.input.length)return b.length?b.join(""):["","TK_EOF"];if(this.traverse_whitespace())b.length&&(c=!0);else{if(indent_handlebars){var d=this.input.substr(this.pos,3);if("{{#"===d||"{{/"===d)break;if("{{"===this.input.substr(this.pos,2)&&"{{else}}"===this.get_tag(!0))break}a=this.input.charAt(this.pos),this.pos++,c&&(this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,b),this.print_indentation(b)):(this.line_char_count++,b.push(" ")),c=!1),this.line_char_count++,b.push(a)}}return b.length?b.join(""):""},this.get_contents_to=function(a){if(this.pos===this.input.length)return["","TK_EOF"];var b="",c=new RegExp("</"+a+"\\s*>","igm");c.lastIndex=this.pos;var d=c.exec(this.input),e=d?d.index:this.input.length;return this.pos<e&&(b=this.input.substring(this.pos,e),this.pos=e),b},this.record_tag=function(a){this.tags[a+"count"]?(this.tags[a+"count"]++,this.tags[a+this.tags[a+"count"]]=this.indent_level):(this.tags[a+"count"]=1,this.tags[a+this.tags[a+"count"]]=this.indent_level),this.tags[a+this.tags[a+"count"]+"parent"]=this.tags.parent,this.tags.parent=a+this.tags[a+"count"]},this.retrieve_tag=function(a){if(this.tags[a+"count"]){for(var b=this.tags.parent;b&&a+this.tags[a+"count"]!==b;)b=this.tags[b+"parent"];b&&(this.indent_level=this.tags[a+this.tags[a+"count"]],this.tags.parent=this.tags[b+"parent"]),delete this.tags[a+this.tags[a+"count"]+"parent"],delete this.tags[a+this.tags[a+"count"]],1===this.tags[a+"count"]?delete this.tags[a+"count"]:this.tags[a+"count"]--}},this.indent_to_tag=function(a){if(this.tags[a+"count"]){for(var b=this.tags.parent;b&&a+this.tags[a+"count"]!==b;)b=this.tags[b+"parent"];b&&(this.indent_level=this.tags[a+this.tags[a+"count"]])}},this.get_tag=function(a){var b,c,d,e="",f=[],g="",h=!1,i=this.pos,j=this.line_char_count;a=void 0!==a?a:!1;do{if(this.pos>=this.input.length)return a&&(this.pos=i,this.line_char_count=j),f.length?f.join(""):["","TK_EOF"];if(e=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(e,this.Utils.whitespace))h=!0;else{if(("'"===e||'"'===e)&&(e+=this.get_unformatted(e),h=!0),"="===e&&(h=!1),f.length&&"="!==f[f.length-1]&&">"!==e&&h&&(this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,f),this.print_indentation(f)):(f.push(" "),this.line_char_count++),h=!1),indent_handlebars&&"<"===d&&e+this.input.charAt(this.pos)==="{{"&&(e+=this.get_unformatted("}}"),f.length&&" "!==f[f.length-1]&&"<"!==f[f.length-1]&&(e=" "+e),h=!0),"<"!==e||d||(b=this.pos-1,d="<"),indent_handlebars&&!d&&f.length>=2&&"{"===f[f.length-1]&&"{"==f[f.length-2]&&(b="#"===e||"/"===e?this.pos-3:this.pos-2,d="{"),this.line_char_count++,f.push(e),f[1]&&"!"===f[1]){f=[this.get_comment(b)];break}if(indent_handlebars&&"{"===d&&f.length>2&&"}"===f[f.length-2]&&"}"===f[f.length-1])break}}while(">"!==e);var k,l,m=f.join("");k=m.indexOf(-1!==m.indexOf(" ")?" ":"{"===m[0]?"}":">"),l="<"!==m[0]&&indent_handlebars?"#"===m[2]?3:2:1;var o=m.substring(l,k).toLowerCase();return"/"===m.charAt(m.length-2)||this.Utils.in_array(o,this.Utils.single_token)?a||(this.tag_type="SINGLE"):indent_handlebars&&"{"===m[0]&&"else"===o?a||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):"script"===o?a||(this.record_tag(o),this.tag_type="SCRIPT"):"style"===o?a||(this.record_tag(o),this.tag_type="STYLE"):this.is_unformatted(o,n)?(g=this.get_unformatted("</"+o+">",m),f.push(g),b>0&&this.Utils.in_array(this.input.charAt(b-1),this.Utils.whitespace)&&f.splice(0,0,this.input.charAt(b-1)),c=this.pos-1,this.Utils.in_array(this.input.charAt(c+1),this.Utils.whitespace)&&f.push(this.input.charAt(c+1)),this.tag_type="SINGLE"):"!"===o.charAt(0)?a||(this.tag_type="SINGLE",this.traverse_whitespace()):a||("/"===o.charAt(0)?(this.retrieve_tag(o.substring(1)),this.tag_type="END",this.traverse_whitespace()):(this.record_tag(o),"html"!==o.toLowerCase()&&(this.indent_content=!0),this.tag_type="START",this.traverse_whitespace()),this.Utils.in_array(o,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&"\n"!==this.output[this.output.length-2]&&this.print_newline(!0,this.output))),a&&(this.pos=i,this.line_char_count=j),f.join("")},this.get_comment=function(a){var b="",c=">",d=!1;for(this.pos=a,input_char=this.input.charAt(this.pos),this.pos++;this.pos<=this.input.length&&(b+=input_char,b[b.length-1]!==c[c.length-1]||-1===b.indexOf(c));)!d&&b.length<10&&(0===b.indexOf("<![if")?(c="<![endif]>",d=!0):0===b.indexOf("<![cdata[")?(c="]]>",d=!0):0===b.indexOf("<![")?(c="]>",d=!0):0===b.indexOf("<!--")&&(c="-->",d=!0)),input_char=this.input.charAt(this.pos),this.pos++;return b},this.get_unformatted=function(a,b){if(b&&-1!==b.toLowerCase().indexOf(a))return"";var c="",d="",e=0,f=!0;do{if(this.pos>=this.input.length)return d;if(c=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(c,this.Utils.whitespace)){if(!f){this.line_char_count--;continue}if("\n"===c||"\r"===c){d+="\n",this.line_char_count=0;continue}}d+=c,this.line_char_count++,f=!0,indent_handlebars&&"{"===c&&d.length&&"{"===d[d.length-2]&&(d+=this.get_unformatted("}}"),e=d.length)}while(-1===d.toLowerCase().indexOf(a,e));return d},this.get_token=function(){var a;if("TK_TAG_SCRIPT"===this.last_token||"TK_TAG_STYLE"===this.last_token){var b=this.last_token.substr(7);return a=this.get_contents_to(b),"string"!=typeof a?a:[a,"TK_"+b]}if("CONTENT"===this.current_mode)return a=this.get_content(),"string"!=typeof a?a:[a,"TK_CONTENT"];if("TAG"===this.current_mode){if(a=this.get_tag(),"string"!=typeof a)return a;var c="TK_TAG_"+this.tag_type;return[a,c]}},this.get_full_indent=function(a){return a=this.indent_level+a||0,1>a?"":Array(a+1).join(this.indent_string)},this.is_unformatted=function(a,b){if(!this.Utils.in_array(a,b))return!1;if("a"!==a.toLowerCase()||!this.Utils.in_array("a",b))return!0;var c=this.get_tag(!0),d=(c||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!d||this.Utils.in_array(d,b)?!0:!1},this.printer=function(a,c,d,e,f){this.input=a||"",this.output=[],this.indent_character=c,this.indent_string="",this.indent_size=d,this.brace_style=f,this.indent_level=0,this.wrap_line_length=e,this.line_char_count=0;for(var g=0;g<this.indent_size;g++)this.indent_string+=this.indent_character;this.print_newline=function(a,b){this.line_char_count=0,b&&b.length&&(a||"\n"!==b[b.length-1])&&b.push("\n")},this.print_indentation=function(a){for(var b=0;b<this.indent_level;b++)a.push(this.indent_string),this.line_char_count+=this.indent_string.length},this.print_token=function(a){(a||""!==a)&&this.output.length&&"\n"===this.output[this.output.length-1]&&(this.print_indentation(this.output),a=b(a)),this.print_token_raw(a)},this.print_token_raw=function(a){a&&""!==a&&(a.length>1&&"\n"===a[a.length-1]?(this.output.push(a.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(a));for(var b=0;b<this.newlines;b++)this.print_newline(b>0,this.output);this.newlines=0},this.indent=function(){this.indent_level++},this.unindent=function(){this.indent_level>0&&this.indent_level--}},this}var h,i,j,k,l,m,n,o,p;for(d=d||{},void 0!==d.wrap_line_length&&0!==parseInt(d.wrap_line_length,10)||void 0!==d.max_char&&0!==parseInt(d.max_char,10)||(d.wrap_line_length=d.max_char),i=d.indent_inner_html||!1,j=parseInt(d.indent_size||4,10),k=d.indent_char||" ",m=d.brace_style||"collapse",l=0===parseInt(d.wrap_line_length,10)?32786:parseInt(d.wrap_line_length||250,10),n=d.unformatted||["a","span","bdo","em","strong","dfn","code","samp","kbd","var","cite","abbr","acronym","q","sub","sup","tt","i","b","big","small","u","s","strike","font","ins","del","pre","address","dt","h1","h2","h3","h4","h5","h6"],o=d.preserve_newlines||!0,p=o?parseInt(d.max_preserve_newlines||32786,10):0,indent_handlebars=d.indent_handlebars||!1,h=new g,h.printer(c,k,j,l,m);;){var q=h.get_token();if(h.token_text=q[0],h.token_type=q[1],"TK_EOF"===h.token_type)break;switch(h.token_type){case"TK_TAG_START":h.print_newline(!1,h.output),h.print_token(h.token_text),h.indent_content&&(h.indent(),h.indent_content=!1),h.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":h.print_newline(!1,h.output),h.print_token(h.token_text),h.current_mode="CONTENT";break;case"TK_TAG_END":if("TK_CONTENT"===h.last_token&&""===h.last_text){var r=h.token_text.match(/\w+/)[0],s=null;h.output.length&&(s=h.output[h.output.length-1].match(/(?:<|{{#)\s*(\w+)/)),(null===s||s[1]!==r)&&h.print_newline(!1,h.output)}h.print_token(h.token_text),h.current_mode="CONTENT";break;case"TK_TAG_SINGLE":var t=h.token_text.match(/^\s*<([a-z]+)/i);t&&h.Utils.in_array(t[1],n)||h.print_newline(!1,h.output),h.print_token(h.token_text),h.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":h.print_token(h.token_text),h.indent_content&&(h.indent(),h.indent_content=!1),h.current_mode="CONTENT";break;case"TK_CONTENT":h.print_token(h.token_text),h.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(""!==h.token_text){h.print_newline(!1,h.output);var u,v=h.token_text,w=1;"TK_SCRIPT"===h.token_type?u="function"==typeof e&&e:"TK_STYLE"===h.token_type&&(u="function"==typeof f&&f),"keep"===d.indent_scripts?w=0:"separate"===d.indent_scripts&&(w=-h.indent_level);var x=h.get_full_indent(w);if(u)v=u(v.replace(/^\s*/,x),d);else{var y=v.match(/^\s*/)[0],z=y.match(/[^\n\r]*$/)[0].split(h.indent_string).length-1,A=h.get_full_indent(w-z);v=v.replace(/^\s*/,x).replace(/\r\n|\r|\n/g,"\n"+A).replace(/\s+$/,"")}v&&(h.print_token_raw(x+a(v)),h.print_newline(!1,h.output))}h.current_mode="TAG"}h.last_token=h.token_type,h.last_text=h.token_text}return h.output.join("")}if("function"==typeof define)define(["./beautify.js","./beautify-css.js"],function(a,b){return{html_beautify:function(d,e){return c(d,e,a,b)}}});else if("undefined"!=typeof exports){var d=require("./beautify.js").js_beautify,e=require("./beautify-css.js").css_beautify;exports.html_beautify=function(a,b){return c(a,b,d,e)}}else"undefined"!=typeof window?window.html_beautify=function(a,b){return c(a,b,window.js_beautify,window.css_beautify)}:"undefined"!=typeof global&&(global.html_beautify=function(a,b){return c(a,b,global.js_beautify,global.css_beautify)})}();
|
assets/js/form-request.js
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
window.mc4wpFormRequest = (function() {
|
2 |
+
|
3 |
+
var formElement;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Initializes the stuff to do
|
7 |
+
*/
|
8 |
+
function init() {
|
9 |
+
addEvent( window, 'load', act );
|
10 |
+
}
|
11 |
+
|
12 |
+
function act() {
|
13 |
+
|
14 |
+
// Find element of submitted form
|
15 |
+
formElement = document.getElementById('mc4wp-form-' + mc4wpFormRequestData.submittedFormId);
|
16 |
+
if( ! formElement ) {
|
17 |
+
return;
|
18 |
+
}
|
19 |
+
|
20 |
+
// If an error occured, re-populate form fields
|
21 |
+
// only populate fields on error
|
22 |
+
if( mc4wpFormRequestData.success == false ) {
|
23 |
+
populateFields( formElement, mc4wpFormRequestData.postData );
|
24 |
+
}
|
25 |
+
|
26 |
+
// Scroll to form element
|
27 |
+
var scrollToHeight = 0;
|
28 |
+
var obj = formElement;
|
29 |
+
var windowHeight = window.innerHeight;
|
30 |
+
|
31 |
+
if (obj.offsetParent) {
|
32 |
+
do {
|
33 |
+
scrollToHeight += obj.offsetTop;
|
34 |
+
} while (obj = obj.offsetParent);
|
35 |
+
} else {
|
36 |
+
scrollToHeight = formElement.offsetTop;
|
37 |
+
}
|
38 |
+
|
39 |
+
if((windowHeight - 80) > formElement.clientHeight) {
|
40 |
+
// vertically center the form, but only if there's enough space for a decent margin
|
41 |
+
scrollToHeight = scrollToHeight - ((windowHeight - formElement.clientHeight) / 2);
|
42 |
+
} else {
|
43 |
+
// the form doesn't fit, scroll a little above the form
|
44 |
+
scrollToHeight = scrollToHeight - 80;
|
45 |
+
}
|
46 |
+
|
47 |
+
// scroll there. if jQuery is loaded, do it with an animation.
|
48 |
+
if(window.jQuery !== undefined) {
|
49 |
+
jQuery('html, body').animate({ scrollTop: scrollToHeight }, 800);
|
50 |
+
} else {
|
51 |
+
window.scrollTo(0, scrollToHeight);
|
52 |
+
}
|
53 |
+
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Adds a browser event, IE compatible.
|
58 |
+
*
|
59 |
+
* @param element
|
60 |
+
* @param eventName
|
61 |
+
* @param callback
|
62 |
+
*/
|
63 |
+
function addEvent( element, eventName, callback ) {
|
64 |
+
if (element.addEventListener) {
|
65 |
+
element.addEventListener(eventName, callback, false);
|
66 |
+
} else {
|
67 |
+
element.attachEvent("on" + eventName, callback);
|
68 |
+
}
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* Populate the form elements in a given container from a JSON object
|
73 |
+
*
|
74 |
+
* @param DOMElement container
|
75 |
+
* @param object data
|
76 |
+
* @param string basename
|
77 |
+
*/
|
78 |
+
function populateFields( container, data, basename ) {
|
79 |
+
|
80 |
+
for( var key in data ) {
|
81 |
+
|
82 |
+
var name = key;
|
83 |
+
var value = data[key];
|
84 |
+
|
85 |
+
// no need to set empty values
|
86 |
+
if( value == '' ) {
|
87 |
+
continue;
|
88 |
+
}
|
89 |
+
|
90 |
+
// handle array name attributes
|
91 |
+
if(typeof(basename) !== "undefined") {
|
92 |
+
name = basename + "[" + key + "]";
|
93 |
+
}
|
94 |
+
|
95 |
+
if( value.constructor == Array ) {
|
96 |
+
name += '[]';
|
97 |
+
} else if(typeof value == "object") {
|
98 |
+
populateFields(container, value, name);
|
99 |
+
continue;
|
100 |
+
}
|
101 |
+
|
102 |
+
// populate field
|
103 |
+
var elements = container.querySelectorAll('input[name="'+ name +'"], select[name="'+ name +'"], textarea[name="'+ name +'"]');
|
104 |
+
|
105 |
+
// Dirty: abandon if we did not find the element
|
106 |
+
if( ! elements ) {
|
107 |
+
return;
|
108 |
+
}
|
109 |
+
|
110 |
+
// loop through found elements to set their values
|
111 |
+
for(var i = 0; i < elements.length; i++) {
|
112 |
+
|
113 |
+
var element = elements[i];
|
114 |
+
|
115 |
+
// check element type
|
116 |
+
switch(element.type || element.tagName) {
|
117 |
+
case 'text':
|
118 |
+
case 'email':
|
119 |
+
case 'date':
|
120 |
+
case 'tel':
|
121 |
+
element.value = value;
|
122 |
+
|
123 |
+
// remove IE placeholder fallback class
|
124 |
+
element.className = element.className.replace('placeholdersjs','');
|
125 |
+
break;
|
126 |
+
|
127 |
+
case 'radio':
|
128 |
+
element.checked = (element.value === value);
|
129 |
+
break;
|
130 |
+
|
131 |
+
case 'checkbox':
|
132 |
+
for(var j = 0; j < value.length; j++) {
|
133 |
+
|
134 |
+
// check element if its in the values array
|
135 |
+
var checked = (element.value === value[j]);
|
136 |
+
if( checked ) {
|
137 |
+
element.checked = (element.value === value[j]);
|
138 |
+
break;
|
139 |
+
}
|
140 |
+
|
141 |
+
// uncheck if it isn't
|
142 |
+
element.checked = false;
|
143 |
+
}
|
144 |
+
break;
|
145 |
+
|
146 |
+
case 'select-multiple':
|
147 |
+
var values = value.constructor == Array ? value : [value];
|
148 |
+
|
149 |
+
for(var k = 0; k < element.options.length; k++)
|
150 |
+
{
|
151 |
+
for(var l = 0; l < values.length; l++)
|
152 |
+
{
|
153 |
+
element.options[k].selected |= (element.options[k].value == values[l]);
|
154 |
+
}
|
155 |
+
}
|
156 |
+
break;
|
157 |
+
|
158 |
+
case 'select':
|
159 |
+
case 'select-one':
|
160 |
+
element.value = value.toString() || value;
|
161 |
+
break;
|
162 |
+
}
|
163 |
+
}
|
164 |
+
|
165 |
+
|
166 |
+
}
|
167 |
+
|
168 |
+
}
|
169 |
+
|
170 |
+
return {
|
171 |
+
init: function() {
|
172 |
+
init();
|
173 |
+
}
|
174 |
+
}
|
175 |
+
|
176 |
+
})();
|
177 |
+
mc4wpFormRequest.init();
|
assets/js/form-request.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
window.mc4wpFormRequest=function(){function a(){c(window,"load",b)}function b(){if(e=document.getElementById("mc4wp-form-"+mc4wpFormRequestData.submittedFormId)){0==mc4wpFormRequestData.success&&d(e,mc4wpFormRequestData.postData);var a=0,b=e,c=window.innerHeight;if(b.offsetParent){do a+=b.offsetTop;while(b=b.offsetParent)}else a=e.offsetTop;a-=c-80>e.clientHeight?(c-e.clientHeight)/2:80,void 0!==window.jQuery?jQuery("html, body").animate({scrollTop:a},800):window.scrollTo(0,a)}}function c(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c)}function d(a,b,c){for(var e in b){var f=e,g=b[e];if(""!=g){if("undefined"!=typeof c&&(f=c+"["+e+"]"),g.constructor==Array)f+="[]";else if("object"==typeof g){d(a,g,f);continue}var h=a.querySelectorAll('input[name="'+f+'"], select[name="'+f+'"], textarea[name="'+f+'"]');if(!h)return;for(var i=0;i<h.length;i++){var j=h[i];switch(j.type||j.tagName){case"text":case"email":case"date":case"tel":j.value=g,j.className=j.className.replace("placeholdersjs","");break;case"radio":j.checked=j.value===g;break;case"checkbox":for(var k=0;k<g.length;k++){var l=j.value===g[k];if(l){j.checked=j.value===g[k];break}j.checked=!1}break;case"select-multiple":for(var m=g.constructor==Array?g:[g],n=0;n<j.options.length;n++)for(var o=0;o<m.length;o++)j.options[n].selected|=j.options[n].value==m[o];break;case"select":case"select-one":j.value=g.toString()||g}}}}}var e;return{init:function(){a()}}}(),mc4wpFormRequest.init();
|
assets/js/forms.js
DELETED
@@ -1,136 +0,0 @@
|
|
1 |
-
function mc4wpAddEvent(element, eventName, callback) {
|
2 |
-
if (element.addEventListener) {
|
3 |
-
element.addEventListener(eventName, callback, false);
|
4 |
-
} else {
|
5 |
-
element.attachEvent("on" + eventName, callback);
|
6 |
-
}
|
7 |
-
}
|
8 |
-
|
9 |
-
mc4wpAddEvent(window, "load", function() {
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Populate the form elements in a given container from a JSON object
|
13 |
-
*/
|
14 |
-
function populateFields(container, data, basename) {
|
15 |
-
|
16 |
-
for(var key in data) {
|
17 |
-
|
18 |
-
var name = key;
|
19 |
-
var value = data[key];
|
20 |
-
|
21 |
-
// no need to set empty values
|
22 |
-
if(value == "") {
|
23 |
-
continue;
|
24 |
-
}
|
25 |
-
|
26 |
-
// handle array name attributes
|
27 |
-
if(typeof(basename) !== "undefined") {
|
28 |
-
name = basename + "[" + key + "]";
|
29 |
-
}
|
30 |
-
|
31 |
-
if(value.constructor == Array) {
|
32 |
-
name += '[]';
|
33 |
-
} else if(typeof value == "object") {
|
34 |
-
populateFields(container, value, name);
|
35 |
-
continue;
|
36 |
-
}
|
37 |
-
|
38 |
-
// populate field
|
39 |
-
var elements = container.querySelectorAll('input[name="'+ name +'"], select[name="'+ name +'"], textarea[name="'+ name +'"]');
|
40 |
-
|
41 |
-
// Dirty: abandon if we did not find the element
|
42 |
-
if(!elements) {
|
43 |
-
return;
|
44 |
-
}
|
45 |
-
|
46 |
-
// loop through found elements to set their values
|
47 |
-
for(var i = 0; i < elements.length; i++) {
|
48 |
-
|
49 |
-
var element = elements[i];
|
50 |
-
|
51 |
-
// check element type
|
52 |
-
switch(element.type || element.tagName) {
|
53 |
-
case 'text':
|
54 |
-
case 'email':
|
55 |
-
case 'date':
|
56 |
-
case 'tel':
|
57 |
-
element.value = value;
|
58 |
-
|
59 |
-
// remove IE placeholder fallback class
|
60 |
-
element.className = element.className.replace('placeholdersjs','');
|
61 |
-
break;
|
62 |
-
|
63 |
-
case 'radio':
|
64 |
-
element.checked = (element.value === value);
|
65 |
-
break;
|
66 |
-
|
67 |
-
case 'checkbox':
|
68 |
-
for(var j = 0; j < value.length; j++) {
|
69 |
-
element.checked = (element.value === value[j]);
|
70 |
-
}
|
71 |
-
break;
|
72 |
-
|
73 |
-
case 'select-multiple':
|
74 |
-
var values = value.constructor == Array ? value : [value];
|
75 |
-
|
76 |
-
for(var k = 0; k < element.options.length; k++)
|
77 |
-
{
|
78 |
-
for(var l = 0; l < values.length; l++)
|
79 |
-
{
|
80 |
-
element.options[k].selected |= (element.options[k].value == values[l]);
|
81 |
-
}
|
82 |
-
}
|
83 |
-
break;
|
84 |
-
|
85 |
-
case 'select':
|
86 |
-
case 'select-one':
|
87 |
-
element.value = value.toString() || value;
|
88 |
-
break;
|
89 |
-
}
|
90 |
-
}
|
91 |
-
|
92 |
-
|
93 |
-
}
|
94 |
-
|
95 |
-
}
|
96 |
-
|
97 |
-
// scroll to submitted form element
|
98 |
-
var formElement = document.getElementById('mc4wp-form-' + mc4wp.submittedFormId);
|
99 |
-
|
100 |
-
if(!formElement) {
|
101 |
-
return;
|
102 |
-
}
|
103 |
-
|
104 |
-
// only populate fields on error
|
105 |
-
if(mc4wp.success == false) {
|
106 |
-
populateFields(formElement, mc4wp.postData);
|
107 |
-
}
|
108 |
-
|
109 |
-
// calculate window height to scroll to
|
110 |
-
var scrollToHeight = 0;
|
111 |
-
var obj = formElement;
|
112 |
-
var windowHeight = window.innerHeight;
|
113 |
-
|
114 |
-
if (obj.offsetParent) {
|
115 |
-
do {
|
116 |
-
scrollToHeight += obj.offsetTop;
|
117 |
-
} while (obj = obj.offsetParent);
|
118 |
-
} else {
|
119 |
-
scrollToHeight = formElement.offsetTop;
|
120 |
-
}
|
121 |
-
|
122 |
-
if((windowHeight - 80) > formElement.clientHeight) {
|
123 |
-
// vertically center the form, but only if there's enough space for a decent margin
|
124 |
-
scrollToHeight = scrollToHeight - ((windowHeight - formElement.clientHeight) / 2);
|
125 |
-
} else {
|
126 |
-
// the form doesn't fit, scroll a little above the form
|
127 |
-
scrollToHeight = scrollToHeight - 80;
|
128 |
-
}
|
129 |
-
|
130 |
-
// scroll there. if jQuery is loaded, do it with an animation.
|
131 |
-
if(window.jQuery !== undefined) {
|
132 |
-
jQuery('html, body').animate({ scrollTop: scrollToHeight }, 800);
|
133 |
-
} else {
|
134 |
-
window.scrollTo(0, scrollToHeight);
|
135 |
-
}
|
136 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/class-admin.php
CHANGED
@@ -187,13 +187,15 @@ class MC4WP_Lite_Admin
|
|
187 |
if( false === isset( $_GET['page'] ) || false === stristr( $_GET['page'], 'mc4wp-lite' ) ) {
|
188 |
return;
|
189 |
}
|
190 |
-
|
|
|
|
|
191 |
// css
|
192 |
-
wp_enqueue_style( 'mc4wp-admin-css', MC4WP_LITE_PLUGIN_URL . 'assets/css/admin.css' );
|
193 |
|
194 |
// js
|
195 |
-
wp_register_script( 'mc4wp-beautifyhtml', MC4WP_LITE_PLUGIN_URL . 'assets/js/beautify-html.js', array( 'jquery' ), MC4WP_LITE_VERSION, true );
|
196 |
-
wp_register_script( 'mc4wp-admin', MC4WP_LITE_PLUGIN_URL . 'assets/js/admin.js', array( 'jquery' ), MC4WP_LITE_VERSION, true );
|
197 |
wp_enqueue_script( array( 'jquery', 'mc4wp-beautifyhtml', 'mc4wp-admin' ) );
|
198 |
wp_localize_script( 'mc4wp-admin', 'mc4wp',
|
199 |
array(
|
187 |
if( false === isset( $_GET['page'] ) || false === stristr( $_GET['page'], 'mc4wp-lite' ) ) {
|
188 |
return;
|
189 |
}
|
190 |
+
|
191 |
+
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
|
192 |
+
|
193 |
// css
|
194 |
+
wp_enqueue_style( 'mc4wp-admin-css', MC4WP_LITE_PLUGIN_URL . 'assets/css/admin' . $suffix . '.css' );
|
195 |
|
196 |
// js
|
197 |
+
wp_register_script( 'mc4wp-beautifyhtml', MC4WP_LITE_PLUGIN_URL . 'assets/js/beautify-html'. $suffix .'.js', array( 'jquery' ), MC4WP_LITE_VERSION, true );
|
198 |
+
wp_register_script( 'mc4wp-admin', MC4WP_LITE_PLUGIN_URL . 'assets/js/admin' . $suffix . '.js', array( 'jquery' ), MC4WP_LITE_VERSION, true );
|
199 |
wp_enqueue_script( array( 'jquery', 'mc4wp-beautifyhtml', 'mc4wp-admin' ) );
|
200 |
wp_localize_script( 'mc4wp-admin', 'mc4wp',
|
201 |
array(
|
includes/class-checkbox-manager.php
CHANGED
@@ -69,7 +69,9 @@ class MC4WP_Lite_Checkbox_Manager
|
|
69 |
return false;
|
70 |
}
|
71 |
|
72 |
-
|
|
|
|
|
73 |
return true;
|
74 |
}
|
75 |
|
69 |
return false;
|
70 |
}
|
71 |
|
72 |
+
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
|
73 |
+
|
74 |
+
wp_enqueue_style( 'mailchimp-for-wp-checkbox', MC4WP_LITE_PLUGIN_URL . 'assets/css/checkbox' . $suffix . '.css', array(), MC4WP_LITE_VERSION, 'all' );
|
75 |
return true;
|
76 |
}
|
77 |
|
includes/class-form-manager.php
CHANGED
@@ -8,28 +8,18 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
8 |
|
9 |
/**
|
10 |
* This class takes care of all form related functionality
|
11 |
-
*/
|
12 |
class MC4WP_Lite_Form_Manager {
|
13 |
-
|
14 |
/**
|
15 |
* @var int
|
16 |
*/
|
17 |
private $form_instance_number = 1;
|
18 |
|
19 |
/**
|
20 |
-
|
21 |
-
|
22 |
-
private $
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @var boolean
|
26 |
-
*/
|
27 |
-
private $success = false;
|
28 |
-
|
29 |
-
/**
|
30 |
-
* @var int
|
31 |
-
*/
|
32 |
-
private $submitted_form_instance = 0;
|
33 |
|
34 |
/**
|
35 |
* Constructor
|
@@ -49,8 +39,7 @@ class MC4WP_Lite_Form_Manager {
|
|
49 |
|
50 |
// has a MC4WP form been submitted?
|
51 |
if ( isset( $_POST['_mc4wp_form_submit'] ) ) {
|
52 |
-
$this->
|
53 |
-
add_action( 'init', array( $this, 'submit' ) );
|
54 |
}
|
55 |
|
56 |
/**
|
@@ -66,11 +55,13 @@ class MC4WP_Lite_Form_Manager {
|
|
66 |
*/
|
67 |
public function initialize()
|
68 |
{
|
|
|
|
|
69 |
// register placeholder script, which will later be enqueued for IE only
|
70 |
wp_register_script( 'mc4wp-placeholders', MC4WP_LITE_PLUGIN_URL . 'assets/js/placeholders.min.js', array(), MC4WP_LITE_VERSION, true );
|
71 |
-
|
72 |
// register non-AJAX script (that handles form submissions)
|
73 |
-
wp_register_script( 'mc4wp-
|
74 |
}
|
75 |
|
76 |
/**
|
@@ -83,15 +74,17 @@ class MC4WP_Lite_Form_Manager {
|
|
83 |
return false;
|
84 |
}
|
85 |
|
|
|
|
|
86 |
if( $opts['css'] != 1 && $opts['css'] !== 'default' ) {
|
87 |
|
88 |
$form_theme = $opts['css'];
|
89 |
if( in_array( $form_theme, array( 'blue', 'green', 'dark', 'light', 'red' ) ) ) {
|
90 |
-
wp_enqueue_style( 'mailchimp-for-wp-form-theme-' . $opts['css'], MC4WP_LITE_PLUGIN_URL .
|
91 |
}
|
92 |
|
93 |
} else {
|
94 |
-
wp_enqueue_style( 'mailchimp-for-wp-form', MC4WP_LITE_PLUGIN_URL .
|
95 |
}
|
96 |
|
97 |
return true;
|
@@ -110,12 +103,15 @@ class MC4WP_Lite_Form_Manager {
|
|
110 |
// the following classes MUST be used
|
111 |
$css_classes[] = 'mc4wp-form';
|
112 |
|
113 |
-
if
|
114 |
-
|
115 |
-
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
-
if( $this->success === true ) {
|
118 |
-
$css_classes[] = 'mc4wp-form-success';
|
119 |
}
|
120 |
|
121 |
return implode( ' ', $css_classes );
|
@@ -129,23 +125,58 @@ class MC4WP_Lite_Form_Manager {
|
|
129 |
*
|
130 |
* @return string
|
131 |
*/
|
132 |
-
public function form( $atts, $content =
|
|
|
133 |
$opts = mc4wp_get_options('form');
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
if ( ! function_exists( 'mc4wp_replace_variables' ) ) {
|
136 |
include_once MC4WP_LITE_PLUGIN_DIR . 'includes/functions/template.php';
|
137 |
}
|
138 |
|
139 |
-
|
140 |
-
|
141 |
-
|
|
|
|
|
|
|
142 |
$form_action = apply_filters( 'mc4wp_form_action', mc4wp_get_current_url() );
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
$content = "\n<!-- Form by MailChimp for WordPress plugin v". MC4WP_LITE_VERSION ." - https://dannyvankooten.com/mailchimp-for-wordpress/ -->\n";
|
145 |
-
$content .= '<form method="post" action="'. $form_action .'" id="mc4wp-form-'.$this->form_instance_number.'" class="'
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
-
//
|
148 |
-
if
|
|
|
|
|
149 |
$form_markup = __( $opts['markup'] );
|
150 |
|
151 |
// replace special values
|
@@ -161,7 +192,13 @@ class MC4WP_Lite_Form_Manager {
|
|
161 |
// allow plugins to add form fieldsq
|
162 |
do_action( 'mc4wp_before_form_fields', 0 );
|
163 |
|
164 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
$content .= apply_filters( 'mc4wp_form_content', $form_markup );
|
166 |
|
167 |
// allow plugins to add form fields
|
@@ -174,34 +211,9 @@ class MC4WP_Lite_Form_Manager {
|
|
174 |
$content .= '<input type="hidden" name="_mc4wp_form_nonce" value="'. wp_create_nonce( '_mc4wp_form_nonce' ) .'" />';
|
175 |
}
|
176 |
|
177 |
-
if
|
178 |
-
|
179 |
-
|
180 |
-
$content .= '<div class="mc4wp-alert mc4wp-success">' . __( $opts['text_success'] ) . '</div>';
|
181 |
-
} elseif ( $this->error !== '' ) {
|
182 |
-
|
183 |
-
$api = mc4wp_get_api();
|
184 |
-
$e = $this->error;
|
185 |
-
|
186 |
-
$error_type = ( $e === 'already_subscribed' ) ? 'notice' : 'error';
|
187 |
-
$error_message = isset( $opts['text_' . $e] ) ? $opts['text_' . $e] : $opts['text_error'];
|
188 |
-
|
189 |
-
// allow developers to customize error message
|
190 |
-
$error_message = apply_filters('mc4wp_form_error_message', $error_message, $e );
|
191 |
-
|
192 |
-
$content .= '<div class="mc4wp-alert mc4wp-'. $error_type .'">'. __( $error_message, 'mailchimp-for-wp' ) . '</div>';
|
193 |
-
|
194 |
-
// show the eror returned by MailChimp?
|
195 |
-
if ( $api->has_error() && current_user_can( 'manage_options' ) ) {
|
196 |
-
$content .= '<div class="mc4wp-alert mc4wp-error"><strong>Admin notice:</strong> '. $api->get_error_message() . '</div>';
|
197 |
-
}
|
198 |
-
|
199 |
-
}
|
200 |
-
// endif
|
201 |
-
}
|
202 |
-
|
203 |
-
if ( current_user_can( 'manage_options' ) && empty( $opts['lists'] ) ) {
|
204 |
-
$content .= '<div class="mc4wp-alert mc4wp-error"><strong>Admin notice:</strong> you have not selected a MailChimp list for this sign-up form to subscribe to yet. <a href="'. admin_url( 'admin.php?page=mc4wp-lite-form-settings' ) .'">Edit your form settings</a> and select at least 1 list.</div>';
|
205 |
}
|
206 |
|
207 |
$content .= "</form>";
|
@@ -220,348 +232,100 @@ class MC4WP_Lite_Form_Manager {
|
|
220 |
}
|
221 |
|
222 |
/**
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
public function submit() {
|
229 |
-
// store number of submitted form
|
230 |
-
$this->submitted_form_instance = absint( $_POST['_mc4wp_form_instance'] );
|
231 |
-
|
232 |
-
// validate form nonce
|
233 |
-
if ( ! isset( $_POST['_mc4wp_form_nonce'] ) || ! wp_verify_nonce( $_POST['_mc4wp_form_nonce'], '_mc4wp_form_nonce' ) ) {
|
234 |
-
$this->error = 'invalid_nonce';
|
235 |
-
return false;
|
236 |
-
}
|
237 |
-
|
238 |
-
// ensure honeypot was not filed
|
239 |
-
if ( isset( $_POST['_mc4wp_required_but_not_really'] ) && ! empty( $_POST['_mc4wp_required_but_not_really'] ) ) {
|
240 |
-
$this->error = 'spam';
|
241 |
-
return false;
|
242 |
-
}
|
243 |
-
|
244 |
-
// check if captcha was present and valid
|
245 |
-
if( isset( $_POST['_mc4wp_has_captcha'] ) && $_POST['_mc4wp_has_captcha'] == 1 && function_exists( 'cptch_check_custom_form' ) && cptch_check_custom_form() !== true ) {
|
246 |
-
$this->error = 'invalid_captcha';
|
247 |
-
return false;
|
248 |
-
}
|
249 |
|
250 |
-
//
|
251 |
-
|
252 |
-
|
253 |
-
$this->error = $valid_form_request;
|
254 |
-
return false;
|
255 |
}
|
256 |
|
257 |
-
//
|
258 |
-
|
259 |
-
$data = $this->get_posted_form_data();
|
260 |
-
|
261 |
-
$success = $this->subscribe($data);
|
262 |
|
263 |
-
//
|
264 |
-
|
265 |
-
|
266 |
-
'success' => ( $success ) ? 1 : 0,
|
267 |
-
'submittedFormId' => $this->submitted_form_instance,
|
268 |
-
'postData' => $data
|
269 |
-
)
|
270 |
-
);
|
271 |
-
|
272 |
-
if ($success) {
|
273 |
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
}
|
281 |
-
|
282 |
-
return true;
|
283 |
-
} else {
|
284 |
-
|
285 |
-
return false;
|
286 |
}
|
|
|
|
|
287 |
}
|
288 |
|
289 |
/**
|
290 |
-
*
|
291 |
*
|
292 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
*
|
294 |
* @return array
|
295 |
*/
|
296 |
-
public function
|
297 |
-
|
298 |
-
$data = array();
|
299 |
-
$ignored_fields = array( 'CPTCH_NUMBER', 'CNTCTFRM_CONTACT_ACTION', 'CPTCH_RESULT', 'CPTCH_TIME' );
|
300 |
-
|
301 |
-
foreach( $_POST as $name => $value ) {
|
302 |
-
|
303 |
-
if( $name[0] === '_' || in_array( strtoupper( $name ), $ignored_fields ) ) {
|
304 |
-
continue;
|
305 |
-
}
|
306 |
-
|
307 |
-
$data[$name] = $value;
|
308 |
-
}
|
309 |
-
|
310 |
-
// store data somewhere safe
|
311 |
-
$this->posted_data = $data;
|
312 |
-
|
313 |
-
return $data;
|
314 |
-
}
|
315 |
-
|
316 |
-
/*
|
317 |
-
Ensure backwards compatibility so sign-up forms that contain old form mark-up rules don't break
|
318 |
-
- Uppercase $_POST variables that should be sent to MailChimp
|
319 |
-
- Format GROUPINGS in one of the following formats.
|
320 |
-
$_POST[GROUPINGS][$group_id] = "Group 1, Group 2"
|
321 |
-
$_POST[GROUPINGS][$group_name] = array("Group 1", "Group 2")
|
322 |
-
*/
|
323 |
-
public function ensure_backwards_compatibility() {
|
324 |
-
|
325 |
-
// detect old style GROUPINGS, then fix it.
|
326 |
-
if ( isset( $_POST['GROUPINGS'] ) && is_array( $_POST['GROUPINGS'] ) && isset( $_POST['GROUPINGS'][0] ) ) {
|
327 |
-
|
328 |
-
$old_groupings = $_POST['GROUPINGS'];
|
329 |
-
unset( $_POST['GROUPINGS'] );
|
330 |
-
$new_groupings = array();
|
331 |
-
|
332 |
-
foreach ( $old_groupings as $grouping ) {
|
333 |
-
|
334 |
-
if( ! isset( $grouping['groups'] ) ) {
|
335 |
-
continue;
|
336 |
-
}
|
337 |
-
|
338 |
-
if ( isset( $grouping['id'] ) ) {
|
339 |
-
$key = $grouping['id'];
|
340 |
-
} elseif( isset( $grouping['name'] ) ) {
|
341 |
-
$key = $grouping['name'];
|
342 |
-
} else {
|
343 |
-
continue;
|
344 |
-
}
|
345 |
-
|
346 |
-
$new_groupings[$key] = $grouping['groups'];
|
347 |
-
|
348 |
-
}
|
349 |
-
|
350 |
-
// re-fill $_POST array with new groupings
|
351 |
-
if ( ! empty( $new_groupings ) ) {
|
352 |
-
$_POST['GROUPINGS'] = $new_groupings;
|
353 |
-
}
|
354 |
-
|
355 |
-
}
|
356 |
-
|
357 |
-
return;
|
358 |
-
}
|
359 |
|
360 |
-
/**
|
361 |
-
* Act on posted data
|
362 |
-
*
|
363 |
-
* @var array $data
|
364 |
-
*/
|
365 |
-
public function subscribe( array $data ) {
|
366 |
-
|
367 |
-
$email = null;
|
368 |
-
$merge_vars = array();
|
369 |
-
|
370 |
-
foreach ( $data as $name => $value ) {
|
371 |
-
|
372 |
-
// uppercase all variables
|
373 |
-
$name = trim( strtoupper( $name ) );
|
374 |
-
$value = ( is_scalar( $value ) ) ? trim( stripslashes( $value ) ) : $value;
|
375 |
-
|
376 |
-
if( $name === 'EMAIL' && is_email($value) ) {
|
377 |
-
// set the email address
|
378 |
-
$email = $value;
|
379 |
-
} else if ( $name === 'GROUPINGS' ) {
|
380 |
-
|
381 |
-
$groupings = $value;
|
382 |
-
|
383 |
-
// malformed
|
384 |
-
if ( ! is_array( $groupings ) ) {
|
385 |
-
continue;
|
386 |
-
}
|
387 |
-
|
388 |
-
// setup groupings array
|
389 |
-
$merge_vars['GROUPINGS'] = array();
|
390 |
-
|
391 |
-
foreach ( $groupings as $grouping_id_or_name => $groups ) {
|
392 |
-
|
393 |
-
$grouping = array();
|
394 |
-
|
395 |
-
if ( is_numeric( $grouping_id_or_name ) ) {
|
396 |
-
$grouping['id'] = $grouping_id_or_name;
|
397 |
-
} else {
|
398 |
-
$grouping['name'] = stripslashes( $grouping_id_or_name );
|
399 |
-
}
|
400 |
-
|
401 |
-
// comma separated list should become an array
|
402 |
-
if( ! is_array( $groups ) ) {
|
403 |
-
$groups = explode( ',', $groups );
|
404 |
-
}
|
405 |
-
|
406 |
-
$grouping['groups'] = array_map( 'stripslashes', $groups );
|
407 |
-
|
408 |
-
// add grouping to array
|
409 |
-
$merge_vars['GROUPINGS'][] = $grouping;
|
410 |
-
}
|
411 |
-
|
412 |
-
if ( empty( $merge_vars['GROUPINGS'] ) ) {
|
413 |
-
unset( $merge_vars['GROUPINGS'] );
|
414 |
-
}
|
415 |
-
|
416 |
-
} else if( $name === 'BIRTHDAY' ) {
|
417 |
-
// format birthdays in the DD/MM format required by MailChimp
|
418 |
-
$merge_vars['BIRTHDAY'] = date( 'm/d', strtotime( $value ) );
|
419 |
-
} else if( $name === 'ADDRESS' ) {
|
420 |
-
|
421 |
-
if( ! isset( $value['addr1'] ) ) {
|
422 |
-
// addr1, addr2, city, state, zip, country
|
423 |
-
$addr_pieces = explode( ',', $value );
|
424 |
-
|
425 |
-
// try to fill it.... this is a long shot
|
426 |
-
$merge_vars['ADDRESS'] = array(
|
427 |
-
'addr1' => $addr_pieces[0],
|
428 |
-
'city' => (isset($addr_pieces[1])) ? $addr_pieces[1] : '',
|
429 |
-
'state' => (isset($addr_pieces[2])) ? $addr_pieces[2] : '',
|
430 |
-
'zip' => (isset($addr_pieces[3])) ? $addr_pieces[3] : ''
|
431 |
-
);
|
432 |
-
|
433 |
-
} else {
|
434 |
-
// form contains the necessary fields already: perfection
|
435 |
-
$merge_vars['ADDRESS'] = $value;
|
436 |
-
}
|
437 |
-
|
438 |
-
} else {
|
439 |
-
// just add to merge vars array
|
440 |
-
$merge_vars[$name] = $value;
|
441 |
-
}
|
442 |
-
}
|
443 |
-
|
444 |
-
// check if an email address has been found
|
445 |
-
if( ! $email ) {
|
446 |
-
$this->error = 'invalid_email';
|
447 |
-
return false;
|
448 |
-
}
|
449 |
-
|
450 |
-
// Try to guess FNAME and LNAME if they are not given, but NAME is
|
451 |
-
if( isset( $merge_vars['NAME'] ) && !isset( $merge_vars['FNAME'] ) && ! isset( $merge_vars['LNAME'] ) ) {
|
452 |
-
|
453 |
-
$strpos = strpos($merge_vars['NAME'], ' ');
|
454 |
-
if( $strpos !== false ) {
|
455 |
-
$merge_vars['FNAME'] = substr($merge_vars['NAME'], 0, $strpos);
|
456 |
-
$merge_vars['LNAME'] = substr($merge_vars['NAME'], $strpos);
|
457 |
-
} else {
|
458 |
-
$merge_vars['FNAME'] = $merge_vars['NAME'];
|
459 |
-
}
|
460 |
-
}
|
461 |
-
|
462 |
-
// set ip address
|
463 |
-
if( ! isset( $merge_vars['OPTIN_IP'] ) && isset( $_SERVER['REMOTE_ADDR'] ) ) {
|
464 |
-
$merge_vars['OPTIN_IP'] = $_SERVER['REMOTE_ADDR'];
|
465 |
-
}
|
466 |
-
|
467 |
-
$api = mc4wp_get_api();
|
468 |
$opts = mc4wp_get_options( 'form' );
|
469 |
|
470 |
-
$
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
$this->error = $result;
|
497 |
-
return false;
|
498 |
-
}
|
499 |
-
|
500 |
-
// store user email in a cookie
|
501 |
-
$this->set_email_cookie( $email );
|
502 |
-
|
503 |
-
// Store success result
|
504 |
-
$this->success = true;
|
505 |
-
|
506 |
-
return true;
|
507 |
-
}
|
508 |
-
|
509 |
-
/**
|
510 |
-
* Gets the email_type
|
511 |
-
*
|
512 |
-
* @return string The email type to use for subscription coming from this form
|
513 |
-
*/
|
514 |
-
public function get_email_type( ) {
|
515 |
-
|
516 |
-
$email_type = 'html';
|
517 |
-
|
518 |
-
// get email type from form
|
519 |
-
if( isset( $_POST['_mc4wp_email_type'] ) ) {
|
520 |
-
$email_type = trim( $_POST['_mc4wp_email_type'] );
|
521 |
-
}
|
522 |
-
|
523 |
-
// allow plugins to override this email type
|
524 |
-
$email_type = apply_filters( 'mc4wp_email_type', $email_type );
|
525 |
-
|
526 |
-
return $email_type;
|
527 |
-
}
|
528 |
-
|
529 |
-
/**
|
530 |
-
* Get MailChimp Lists to subscribe to
|
531 |
-
*
|
532 |
-
* @return array Array of selected MailChimp lists
|
533 |
-
*/
|
534 |
-
public function get_lists( ) {
|
535 |
-
|
536 |
-
$opts = mc4wp_get_options('form');
|
537 |
-
|
538 |
-
$lists = $opts['lists'];
|
539 |
-
|
540 |
-
// get lists from form, if set.
|
541 |
-
if( isset( $_POST['_mc4wp_lists'] ) && ! empty( $_POST['_mc4wp_lists'] ) ) {
|
542 |
-
|
543 |
-
$lists = $_POST['_mc4wp_lists'];
|
544 |
-
|
545 |
-
// make sure lists is an array
|
546 |
-
if( ! is_array( $lists ) ) {
|
547 |
-
$lists = array( trim( $lists ) );
|
548 |
-
}
|
549 |
-
|
550 |
-
}
|
551 |
-
|
552 |
-
// allow plugins to alter the lists to subscribe to
|
553 |
-
$lists = apply_filters( 'mc4wp_lists', $lists );
|
554 |
|
555 |
-
|
556 |
-
|
|
|
|
|
|
|
|
|
557 |
|
558 |
-
|
559 |
-
* Stores the given email in a cookie for 30 days
|
560 |
-
*
|
561 |
-
* @param string $email
|
562 |
-
*/
|
563 |
-
public function set_email_cookie( $email ) {
|
564 |
-
setcookie( 'mc4wp_email', $email, strtotime( '+30 days' ), '/' );
|
565 |
}
|
566 |
|
567 |
}
|
8 |
|
9 |
/**
|
10 |
* This class takes care of all form related functionality
|
11 |
+
*/
|
12 |
class MC4WP_Lite_Form_Manager {
|
13 |
+
|
14 |
/**
|
15 |
* @var int
|
16 |
*/
|
17 |
private $form_instance_number = 1;
|
18 |
|
19 |
/**
|
20 |
+
* @var MC4WP_Form_Request|boolean
|
21 |
+
*/
|
22 |
+
private $form_request = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
/**
|
25 |
* Constructor
|
39 |
|
40 |
// has a MC4WP form been submitted?
|
41 |
if ( isset( $_POST['_mc4wp_form_submit'] ) ) {
|
42 |
+
$this->form_request = new MC4WP_Lite_Form_Request;
|
|
|
43 |
}
|
44 |
|
45 |
/**
|
55 |
*/
|
56 |
public function initialize()
|
57 |
{
|
58 |
+
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
|
59 |
+
|
60 |
// register placeholder script, which will later be enqueued for IE only
|
61 |
wp_register_script( 'mc4wp-placeholders', MC4WP_LITE_PLUGIN_URL . 'assets/js/placeholders.min.js', array(), MC4WP_LITE_VERSION, true );
|
62 |
+
|
63 |
// register non-AJAX script (that handles form submissions)
|
64 |
+
wp_register_script( 'mc4wp-form-request', MC4WP_LITE_PLUGIN_URL . 'assets/js/form-request' . $suffix . '.js', array(), MC4WP_LITE_VERSION, true );
|
65 |
}
|
66 |
|
67 |
/**
|
74 |
return false;
|
75 |
}
|
76 |
|
77 |
+
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
|
78 |
+
|
79 |
if( $opts['css'] != 1 && $opts['css'] !== 'default' ) {
|
80 |
|
81 |
$form_theme = $opts['css'];
|
82 |
if( in_array( $form_theme, array( 'blue', 'green', 'dark', 'light', 'red' ) ) ) {
|
83 |
+
wp_enqueue_style( 'mailchimp-for-wp-form-theme-' . $opts['css'], MC4WP_LITE_PLUGIN_URL . 'assets/css/form-theme-' . $opts['css'] . $suffix . '.css', array(), MC4WP_LITE_VERSION, 'all' );
|
84 |
}
|
85 |
|
86 |
} else {
|
87 |
+
wp_enqueue_style( 'mailchimp-for-wp-form', MC4WP_LITE_PLUGIN_URL . 'assets/css/form' . $suffix . '.css', array(), MC4WP_LITE_VERSION, 'all' );
|
88 |
}
|
89 |
|
90 |
return true;
|
103 |
// the following classes MUST be used
|
104 |
$css_classes[] = 'mc4wp-form';
|
105 |
|
106 |
+
// Add form classes if a Form Request was captured
|
107 |
+
if( is_object( $this->form_request ) ) {
|
108 |
+
|
109 |
+
if( $this->form_request->is_successful() ) {
|
110 |
+
$css_classes[] = 'mc4wp-form-success';
|
111 |
+
} else {
|
112 |
+
$css_classes[] = 'mc4wp-form-error';
|
113 |
+
}
|
114 |
|
|
|
|
|
115 |
}
|
116 |
|
117 |
return implode( ' ', $css_classes );
|
125 |
*
|
126 |
* @return string
|
127 |
*/
|
128 |
+
public function form( $atts = array(), $content = '' ) {
|
129 |
+
|
130 |
$opts = mc4wp_get_options('form');
|
131 |
|
132 |
+
// was this form submitted?
|
133 |
+
$was_submitted = ( is_object( $this->form_request ) && $this->form_request->get_form_instance_number() === $this->form_instance_number );
|
134 |
+
|
135 |
+
// enqueue scripts (in footer) if form was submitted
|
136 |
+
if( $was_submitted ) {
|
137 |
+
wp_enqueue_script( 'mc4wp-form-request' );
|
138 |
+
wp_localize_script( 'mc4wp-form-request', 'mc4wpFormRequestData', array(
|
139 |
+
'success' => ( $this->form_request->is_successful() ) ? 1 : 0,
|
140 |
+
'submittedFormId' => $this->form_request->get_form_instance_number(),
|
141 |
+
'postData' => stripslashes_deep( $_POST )
|
142 |
+
)
|
143 |
+
);
|
144 |
+
}
|
145 |
+
|
146 |
if ( ! function_exists( 'mc4wp_replace_variables' ) ) {
|
147 |
include_once MC4WP_LITE_PLUGIN_DIR . 'includes/functions/template.php';
|
148 |
}
|
149 |
|
150 |
+
/**
|
151 |
+
* @filter mc4wp_form_action
|
152 |
+
* @expects string
|
153 |
+
*
|
154 |
+
* Sets the `action` attribute of the form element. Defaults to the current URL.
|
155 |
+
*/
|
156 |
$form_action = apply_filters( 'mc4wp_form_action', mc4wp_get_current_url() );
|
157 |
|
158 |
+
/**
|
159 |
+
* @filter mc4wp_form_message_position
|
160 |
+
* @expects string before|after
|
161 |
+
*
|
162 |
+
* Can be used to change the position of the form success & error messages.
|
163 |
+
* Valid options are 'before' or 'after'
|
164 |
+
*/
|
165 |
+
$message_position = apply_filters( 'mc4wp_form_message_position', 'after' );
|
166 |
+
|
167 |
+
// Start building content string
|
168 |
$content = "\n<!-- Form by MailChimp for WordPress plugin v". MC4WP_LITE_VERSION ." - https://dannyvankooten.com/mailchimp-for-wordpress/ -->\n";
|
169 |
+
$content .= '<form method="post" action="'. $form_action .'" id="mc4wp-form-'.$this->form_instance_number.'" class="'. $this->get_css_classes() .'">';
|
170 |
+
|
171 |
+
// show message if form was submitted and message position is before
|
172 |
+
if( $was_submitted && $message_position === 'before' ) {
|
173 |
+
$content .= $this->get_form_message_html();
|
174 |
+
}
|
175 |
|
176 |
+
// do not add form fields if form was submitted and hide_after_success is enabled
|
177 |
+
if( ! ( $opts['hide_after_success'] && $was_submitted && $this->form_request->is_successful() ) ) {
|
178 |
+
|
179 |
+
// add form fields from settings
|
180 |
$form_markup = __( $opts['markup'] );
|
181 |
|
182 |
// replace special values
|
192 |
// allow plugins to add form fieldsq
|
193 |
do_action( 'mc4wp_before_form_fields', 0 );
|
194 |
|
195 |
+
/**
|
196 |
+
* @filter mc4wp_form_content
|
197 |
+
* @param int $form_id The ID of the form that is being shown
|
198 |
+
* @expects string
|
199 |
+
*
|
200 |
+
* Can be used to customize the content of the form mark-up, eg adding additional fields.
|
201 |
+
*/
|
202 |
$content .= apply_filters( 'mc4wp_form_content', $form_markup );
|
203 |
|
204 |
// allow plugins to add form fields
|
211 |
$content .= '<input type="hidden" name="_mc4wp_form_nonce" value="'. wp_create_nonce( '_mc4wp_form_nonce' ) .'" />';
|
212 |
}
|
213 |
|
214 |
+
// show message if form was submitted and message position is after
|
215 |
+
if( $was_submitted && $message_position === 'after' ) {
|
216 |
+
$content .= $this->get_form_message_html();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
}
|
218 |
|
219 |
$content .= "</form>";
|
232 |
}
|
233 |
|
234 |
/**
|
235 |
+
* Returns the HTML for success or error messages
|
236 |
+
*
|
237 |
+
* @return string
|
238 |
+
*/
|
239 |
+
private function get_form_message_html( $form_id = 0 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
|
241 |
+
// don't show message if form wasn't submitted
|
242 |
+
if( ! is_object( $this->form_request ) ) {
|
243 |
+
return '';
|
|
|
|
|
244 |
}
|
245 |
|
246 |
+
// get all form messages
|
247 |
+
$messages = $this->get_form_messages( $form_id );
|
|
|
|
|
|
|
248 |
|
249 |
+
// retrieve correct message
|
250 |
+
$type = ( $this->form_request->is_successful() ) ? 'success' : $this->form_request->get_error_code();
|
251 |
+
$message = ( isset( $messages[ $type ] ) ) ? $messages[ $type ] : $messages['error'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
|
253 |
+
/**
|
254 |
+
* @filter mc4wp_form_error_message
|
255 |
+
* @deprecated 2.0.5
|
256 |
+
* @use mc4wp_form_messages
|
257 |
+
*
|
258 |
+
* Used to alter the error message, don't use. Use `mc4wp_form_messages` instead.
|
259 |
+
*/
|
260 |
+
$message['text'] = apply_filters('mc4wp_form_error_message', $message['text'], $this->form_request->get_error_code() );
|
261 |
+
|
262 |
+
$html = '<div class="mc4wp-alert mc4wp-'. $message['type'].'">' . $message['text'] . '</div>';
|
263 |
+
|
264 |
+
// show additional MailChimp API errors to administrators
|
265 |
+
if( false === $this->form_request->is_successful() && current_user_can( 'manage_options' ) ) {
|
266 |
+
// show MailChimp error message (if any) to administrators
|
267 |
+
$api = mc4wp_get_api();
|
268 |
+
if( $api->has_error() ) {
|
269 |
+
$html .= '<div class="mc4wp-alert mc4wp-error"><strong>Admin notice:</strong> '. $api->get_error_message() . '</div>';
|
270 |
}
|
|
|
|
|
|
|
|
|
|
|
271 |
}
|
272 |
+
|
273 |
+
return $html;
|
274 |
}
|
275 |
|
276 |
/**
|
277 |
+
* Returns the various error and success messages in array format
|
278 |
*
|
279 |
+
* Example:
|
280 |
+
* array(
|
281 |
+
* 'invalid_email' => array(
|
282 |
+
* 'type' => 'css-class',
|
283 |
+
* 'text' => 'Message text'
|
284 |
+
* ),
|
285 |
+
* ...
|
286 |
+
* );
|
287 |
*
|
288 |
* @return array
|
289 |
*/
|
290 |
+
public function get_form_messages( $form_id = 0 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
$opts = mc4wp_get_options( 'form' );
|
293 |
|
294 |
+
$messages = array(
|
295 |
+
'already_subscribed' => array(
|
296 |
+
'type' => 'notice',
|
297 |
+
'text' => $opts['text_already_subscribed']
|
298 |
+
),
|
299 |
+
'error' => array(
|
300 |
+
'type' => 'error',
|
301 |
+
'text' => $opts['text_error']
|
302 |
+
),
|
303 |
+
'invalid_email' => array(
|
304 |
+
'type' => 'error',
|
305 |
+
'text' => $opts['text_invalid_email']
|
306 |
+
),
|
307 |
+
'success' => array(
|
308 |
+
'type' => 'success',
|
309 |
+
'text' => $opts['text_success']
|
310 |
+
),
|
311 |
+
'invalid_captcha' => array(
|
312 |
+
'type' => 'error',
|
313 |
+
'text' => $opts['text_invalid_captcha']
|
314 |
+
),
|
315 |
+
'required_field_missing' => array(
|
316 |
+
'type' => 'error',
|
317 |
+
'text' => $opts['text_required_field_missing']
|
318 |
+
)
|
319 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
320 |
|
321 |
+
/**
|
322 |
+
* @filter mc4wp_form_messages
|
323 |
+
*
|
324 |
+
* Allows registering custom form messages, useful if you're using custom validation using the `mc4wp_valid_form_request` filter.
|
325 |
+
*/
|
326 |
+
$messages = apply_filters( 'mc4wp_form_messages', $messages );
|
327 |
|
328 |
+
return $messages;
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
}
|
330 |
|
331 |
}
|
includes/class-form-request.php
ADDED
@@ -0,0 +1,448 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if( ! defined( 'MC4WP_LITE_VERSION' ) ) {
|
3 |
+
header( 'Status: 403 Forbidden' );
|
4 |
+
header( 'HTTP/1.1 403 Forbidden' );
|
5 |
+
exit;
|
6 |
+
}
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Handles form submissions
|
10 |
+
*/
|
11 |
+
class MC4WP_Lite_Form_Request {
|
12 |
+
|
13 |
+
/**
|
14 |
+
* @var int
|
15 |
+
*/
|
16 |
+
private $form_instance_number = 0;
|
17 |
+
|
18 |
+
/**
|
19 |
+
* @var array
|
20 |
+
*/
|
21 |
+
private $posted_data = array();
|
22 |
+
|
23 |
+
/**
|
24 |
+
* @var bool
|
25 |
+
*/
|
26 |
+
private $success = false;
|
27 |
+
|
28 |
+
/**
|
29 |
+
* @var string
|
30 |
+
*/
|
31 |
+
private $error_code = 'error';
|
32 |
+
|
33 |
+
/**
|
34 |
+
* @var array The form options
|
35 |
+
*/
|
36 |
+
private $options;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Constructor
|
40 |
+
*
|
41 |
+
* Hooks into the `init` action to start the process of subscribing the person who filled out the form
|
42 |
+
*/
|
43 |
+
public function __construct() {
|
44 |
+
add_action( 'init', array( $this, 'act' ) );
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* @return bool
|
49 |
+
*/
|
50 |
+
public function is_successful() {
|
51 |
+
return $this->success;
|
52 |
+
}
|
53 |
+
|
54 |
+
/**
|
55 |
+
* @return string
|
56 |
+
*/
|
57 |
+
public function get_error_code() {
|
58 |
+
return $this->error_code;
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* @return array
|
63 |
+
*/
|
64 |
+
public function get_posted_data() {
|
65 |
+
return $this->posted_data;
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* @return int
|
70 |
+
*/
|
71 |
+
public function get_form_instance_number() {
|
72 |
+
return $this->form_instance_number;
|
73 |
+
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Acts on the submitted data
|
77 |
+
* - Validates internal fields
|
78 |
+
* - Formats email and merge_vars
|
79 |
+
* - Sends off the subscribe request to MailChimp
|
80 |
+
* - Returns state
|
81 |
+
*
|
82 |
+
* @return bool True on success, false on failure.
|
83 |
+
*/
|
84 |
+
public function act() {
|
85 |
+
|
86 |
+
// store number of submitted form
|
87 |
+
$this->form_instance_number = absint( $_POST['_mc4wp_form_instance'] );
|
88 |
+
|
89 |
+
// store form options
|
90 |
+
$this->form_options = mc4wp_get_options( 'form' );
|
91 |
+
|
92 |
+
// validate form nonce
|
93 |
+
if ( ! isset( $_POST['_mc4wp_form_nonce'] ) || ! wp_verify_nonce( $_POST['_mc4wp_form_nonce'], '_mc4wp_form_nonce' ) ) {
|
94 |
+
$this->error_code = 'invalid_nonce';
|
95 |
+
return false;
|
96 |
+
}
|
97 |
+
|
98 |
+
// ensure honeypot was not filed
|
99 |
+
if ( isset( $_POST['_mc4wp_required_but_not_really'] ) && ! empty( $_POST['_mc4wp_required_but_not_really'] ) ) {
|
100 |
+
$this->error_code = 'spam';
|
101 |
+
return false;
|
102 |
+
}
|
103 |
+
|
104 |
+
// check if captcha was present and valid
|
105 |
+
if( isset( $_POST['_mc4wp_has_captcha'] ) && $_POST['_mc4wp_has_captcha'] == 1 && function_exists( 'cptch_check_custom_form' ) && cptch_check_custom_form() !== true ) {
|
106 |
+
$this->error_code = 'invalid_captcha';
|
107 |
+
return false;
|
108 |
+
}
|
109 |
+
|
110 |
+
/**
|
111 |
+
* @filter mc4wp_valid_form_request
|
112 |
+
*
|
113 |
+
* Use this to perform custom form validation.
|
114 |
+
* Return true if the form is valid or an error string if it isn't.
|
115 |
+
* Use the `mc4wp_form_messages` filter to register custom error messages.
|
116 |
+
*/
|
117 |
+
$valid_form_request = apply_filters( 'mc4wp_valid_form_request', true );
|
118 |
+
if( $valid_form_request !== true ) {
|
119 |
+
$this->error_code = $valid_form_request;
|
120 |
+
return false;
|
121 |
+
}
|
122 |
+
|
123 |
+
// get entered form data (sanitized)
|
124 |
+
$this->sanitize_form_data();
|
125 |
+
$data = $this->get_posted_data();
|
126 |
+
|
127 |
+
// validate email
|
128 |
+
if( ! isset( $data['EMAIL'] ) || ! is_email( $data['EMAIL'] ) ) {
|
129 |
+
$this->error_code = 'invalid_email';
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
|
133 |
+
// setup merge_vars array
|
134 |
+
$merge_vars = $data;
|
135 |
+
|
136 |
+
// take email out of $data array, use the rest as merge_vars
|
137 |
+
$email = $merge_vars['EMAIL'];
|
138 |
+
unset( $merge_vars['EMAIL'] );
|
139 |
+
|
140 |
+
// validate groupings
|
141 |
+
if( isset( $data['GROUPINGS'] ) && is_array( $data['GROUPINGS'] ) ) {
|
142 |
+
$merge_vars['GROUPINGS'] = $this->format_groupings_data( $data['GROUPINGS'] );
|
143 |
+
}
|
144 |
+
|
145 |
+
// subscribe the given email / data combination
|
146 |
+
$this->success = $this->subscribe( $email, $merge_vars );
|
147 |
+
|
148 |
+
// do stuff on success
|
149 |
+
if( true === $this->success ) {
|
150 |
+
|
151 |
+
// check if we want to redirect the visitor
|
152 |
+
if ( ! empty( $this->form_options['redirect'] ) ) {
|
153 |
+
wp_redirect( $this->form_options['redirect'] );
|
154 |
+
exit;
|
155 |
+
}
|
156 |
+
|
157 |
+
// return true on success
|
158 |
+
return true;
|
159 |
+
}
|
160 |
+
|
161 |
+
// return false on failure
|
162 |
+
return false;
|
163 |
+
}
|
164 |
+
|
165 |
+
/**
|
166 |
+
* Format GROUPINGS data according to the MailChimp API requirements
|
167 |
+
*
|
168 |
+
* @param $data
|
169 |
+
*
|
170 |
+
* @return array
|
171 |
+
*/
|
172 |
+
private function format_groupings_data( $data ) {
|
173 |
+
|
174 |
+
$sanitized_data = array();
|
175 |
+
|
176 |
+
foreach ( $data as $grouping_id_or_name => $groups ) {
|
177 |
+
|
178 |
+
$grouping = array();
|
179 |
+
|
180 |
+
// set key: grouping id or name
|
181 |
+
if ( is_numeric( $grouping_id_or_name ) ) {
|
182 |
+
$grouping['id'] = $grouping_id_or_name;
|
183 |
+
} else {
|
184 |
+
$grouping['name'] = $grouping_id_or_name;
|
185 |
+
}
|
186 |
+
|
187 |
+
// comma separated list should become an array
|
188 |
+
if( ! is_array( $groups ) ) {
|
189 |
+
$groups = explode( ',', $groups );
|
190 |
+
}
|
191 |
+
|
192 |
+
$grouping['groups'] = $groups;
|
193 |
+
|
194 |
+
// add grouping to array
|
195 |
+
$sanitized_data[] = $grouping;
|
196 |
+
}
|
197 |
+
|
198 |
+
return $sanitized_data;
|
199 |
+
}
|
200 |
+
|
201 |
+
/**
|
202 |
+
* Get and sanitize posted form data
|
203 |
+
*
|
204 |
+
* - Strips internal MailChimp for WP variables from the posted data array
|
205 |
+
* - Strips ignored fields
|
206 |
+
* - Converts keys to uppercase
|
207 |
+
* - Trims scalar values and strips slashes
|
208 |
+
*
|
209 |
+
* @return array
|
210 |
+
*/
|
211 |
+
private function sanitize_form_data() {
|
212 |
+
|
213 |
+
$data = array();
|
214 |
+
|
215 |
+
// Ignore those fields, we don't need them
|
216 |
+
$ignored_fields = array( 'CPTCH_NUMBER', 'CNTCTFRM_CONTACT_ACTION', 'CPTCH_RESULT', 'CPTCH_TIME' );
|
217 |
+
|
218 |
+
foreach( $_POST as $key => $value ) {
|
219 |
+
|
220 |
+
// Sanitize key
|
221 |
+
$key = trim( strtoupper( $key ) );
|
222 |
+
|
223 |
+
// Skip field if it starts with _ or if it's in ignored_fields array
|
224 |
+
if( $key[0] === '_' || in_array( strtoupper( $key ), $ignored_fields ) ) {
|
225 |
+
continue;
|
226 |
+
}
|
227 |
+
|
228 |
+
// Sanitize value
|
229 |
+
$value = ( is_scalar( $value ) ) ? trim( $value ) : $value;
|
230 |
+
|
231 |
+
// Add value to array
|
232 |
+
$data[ $key ] = $value;
|
233 |
+
}
|
234 |
+
|
235 |
+
// strip slashes on everything
|
236 |
+
$data = stripslashes_deep( $data );
|
237 |
+
|
238 |
+
// store data somewhere safe
|
239 |
+
$this->posted_data = $data;
|
240 |
+
}
|
241 |
+
|
242 |
+
/**
|
243 |
+
* Subscribes the given email and additional list fields
|
244 |
+
*
|
245 |
+
* - Guesses FNAME and LNAME, if not set but NAME is.
|
246 |
+
* - Adds OPTIN_IP field
|
247 |
+
* - Validates merge_vars according to selected list(s) requirements
|
248 |
+
* - Checks if a list was selected or given in form
|
249 |
+
*
|
250 |
+
* @param string $email
|
251 |
+
* @param array $merge_vars
|
252 |
+
*
|
253 |
+
* @return bool
|
254 |
+
*/
|
255 |
+
private function subscribe( $email, $merge_vars = array() ) {
|
256 |
+
|
257 |
+
// Try to guess FNAME and LNAME if they are not given, but NAME is
|
258 |
+
if( isset( $merge_vars['NAME'] ) && !isset( $merge_vars['FNAME'] ) && ! isset( $merge_vars['LNAME'] ) ) {
|
259 |
+
|
260 |
+
$strpos = strpos($merge_vars['NAME'], ' ');
|
261 |
+
if( $strpos !== false ) {
|
262 |
+
$merge_vars['FNAME'] = substr($merge_vars['NAME'], 0, $strpos);
|
263 |
+
$merge_vars['LNAME'] = substr($merge_vars['NAME'], $strpos);
|
264 |
+
} else {
|
265 |
+
$merge_vars['FNAME'] = $merge_vars['NAME'];
|
266 |
+
}
|
267 |
+
}
|
268 |
+
|
269 |
+
// set ip address
|
270 |
+
if( ! isset( $merge_vars['OPTIN_IP'] ) && isset( $_SERVER['REMOTE_ADDR'] ) ) {
|
271 |
+
$merge_vars['OPTIN_IP'] = $_SERVER['REMOTE_ADDR'];
|
272 |
+
}
|
273 |
+
|
274 |
+
$api = mc4wp_get_api();
|
275 |
+
|
276 |
+
// get lists to subscribe to
|
277 |
+
$lists = $this->get_lists();
|
278 |
+
|
279 |
+
if ( empty( $lists ) ) {
|
280 |
+
$this->error_code = 'no_lists_selected';
|
281 |
+
return false;
|
282 |
+
}
|
283 |
+
|
284 |
+
// validate fields according to mailchimp list field types
|
285 |
+
$merge_vars = $this->validate_merge_vars( $merge_vars );
|
286 |
+
if( false === $merge_vars ) {
|
287 |
+
return false;
|
288 |
+
}
|
289 |
+
|
290 |
+
do_action( 'mc4wp_before_subscribe', $email, $merge_vars, 0 );
|
291 |
+
|
292 |
+
$result = false;
|
293 |
+
$email_type = $this->get_email_type();
|
294 |
+
|
295 |
+
foreach ( $lists as $list_id ) {
|
296 |
+
// allow plugins to alter merge vars for each individual list
|
297 |
+
$list_merge_vars = apply_filters( 'mc4wp_merge_vars', $merge_vars, 0, $list_id );
|
298 |
+
|
299 |
+
// send a subscribe request to MailChimp for each list
|
300 |
+
$result = $api->subscribe( $list_id, $email, $list_merge_vars, $email_type, $this->form_options['double_optin'] );
|
301 |
+
}
|
302 |
+
|
303 |
+
do_action( 'mc4wp_after_subscribe', $email, $merge_vars, 0, $result );
|
304 |
+
|
305 |
+
if ( $result !== true ) {
|
306 |
+
// subscribe request failed, store error.
|
307 |
+
$this->success = false;
|
308 |
+
$this->error_code = $result;
|
309 |
+
return false;
|
310 |
+
}
|
311 |
+
|
312 |
+
// store user email in a cookie
|
313 |
+
$this->set_email_cookie( $email );
|
314 |
+
|
315 |
+
// Store success result
|
316 |
+
$this->success = true;
|
317 |
+
|
318 |
+
return true;
|
319 |
+
}
|
320 |
+
|
321 |
+
/**
|
322 |
+
* Validates the posted fields against merge_vars of selected list(s)
|
323 |
+
*
|
324 |
+
* @param array $data
|
325 |
+
*
|
326 |
+
* @return array|boolean Array of data on success, false on error
|
327 |
+
*/
|
328 |
+
private function validate_merge_vars( array $data ) {
|
329 |
+
|
330 |
+
$list_ids = $this->get_lists();
|
331 |
+
$mailchimp = new MC4WP_MailChimp();
|
332 |
+
|
333 |
+
foreach( $list_ids as $list_id ) {
|
334 |
+
|
335 |
+
$list = $mailchimp->get_list( $list_id, false, true );
|
336 |
+
|
337 |
+
// make sure list was found
|
338 |
+
if( ! is_object( $list ) ) {
|
339 |
+
continue;
|
340 |
+
}
|
341 |
+
|
342 |
+
// loop through list fields
|
343 |
+
foreach( $list->merge_vars as $merge_var ) {
|
344 |
+
|
345 |
+
// skip email field, it's validated elsewhere
|
346 |
+
if( $merge_var->tag === 'EMAIL' ) {
|
347 |
+
continue;
|
348 |
+
}
|
349 |
+
|
350 |
+
$posted_value = ( isset( $data[ $merge_var->tag ] ) && '' !== $data[ $merge_var->tag ] ) ? $data[ $merge_var->tag ] : '';
|
351 |
+
|
352 |
+
// check if required field is given
|
353 |
+
if( $merge_var->req && '' === $posted_value ) {
|
354 |
+
$this->error_code = 'required_field_missing';
|
355 |
+
return false;
|
356 |
+
}
|
357 |
+
|
358 |
+
// format birthday fields in MM/DD format, required by MailChimp
|
359 |
+
if( $merge_var->field_type === 'birthday' && $posted_value !== '' ) {
|
360 |
+
$data[ $merge_var->tag ] = date( 'm/d', strtotime( $data[ $merge_var->tag ] ) );
|
361 |
+
}
|
362 |
+
|
363 |
+
// format address fields
|
364 |
+
if( $merge_var->field_type === 'address' && $posted_value !== '' ) {
|
365 |
+
|
366 |
+
if( ! isset( $posted_value['addr1'] ) ) {
|
367 |
+
|
368 |
+
// addr1, addr2, city, state, zip, country
|
369 |
+
$address_pieces = explode( ',', $posted_value );
|
370 |
+
|
371 |
+
// try to fill it.... this is a long shot
|
372 |
+
$data[ $merge_var->tag ] = array(
|
373 |
+
'addr1' => $address_pieces[0],
|
374 |
+
'city' => ( isset( $address_pieces[1] ) ) ? $address_pieces[1] : '',
|
375 |
+
'state' => ( isset( $address_pieces[2] ) ) ? $address_pieces[2] : '',
|
376 |
+
'zip' => ( isset( $address_pieces[3] ) ) ? $address_pieces[3] : ''
|
377 |
+
);
|
378 |
+
|
379 |
+
} else {
|
380 |
+
// form contains the necessary fields already: perfection
|
381 |
+
$data[ $merge_var->tag ] = $posted_value;
|
382 |
+
}
|
383 |
+
}
|
384 |
+
|
385 |
+
|
386 |
+
}
|
387 |
+
}
|
388 |
+
|
389 |
+
return $data;
|
390 |
+
}
|
391 |
+
|
392 |
+
/**
|
393 |
+
* Gets the email_type
|
394 |
+
*
|
395 |
+
* @return string The email type to use for subscription coming from this form
|
396 |
+
*/
|
397 |
+
private function get_email_type( ) {
|
398 |
+
|
399 |
+
$email_type = 'html';
|
400 |
+
|
401 |
+
// get email type from form
|
402 |
+
if( isset( $_POST['_mc4wp_email_type'] ) ) {
|
403 |
+
$email_type = trim( $_POST['_mc4wp_email_type'] );
|
404 |
+
}
|
405 |
+
|
406 |
+
// allow plugins to override this email type
|
407 |
+
$email_type = apply_filters( 'mc4wp_email_type', $email_type );
|
408 |
+
|
409 |
+
return $email_type;
|
410 |
+
}
|
411 |
+
|
412 |
+
/**
|
413 |
+
* Get MailChimp List(s) to subscribe to
|
414 |
+
*
|
415 |
+
* @return array Array of selected MailChimp lists
|
416 |
+
*/
|
417 |
+
private function get_lists() {
|
418 |
+
|
419 |
+
$lists = $this->form_options['lists'];
|
420 |
+
|
421 |
+
// get lists from form, if set.
|
422 |
+
if( isset( $_POST['_mc4wp_lists'] ) && ! empty( $_POST['_mc4wp_lists'] ) ) {
|
423 |
+
|
424 |
+
$lists = $_POST['_mc4wp_lists'];
|
425 |
+
|
426 |
+
// make sure lists is an array
|
427 |
+
if( ! is_array( $lists ) ) {
|
428 |
+
$lists = array( trim( $lists ) );
|
429 |
+
}
|
430 |
+
|
431 |
+
}
|
432 |
+
|
433 |
+
// allow plugins to alter the lists to subscribe to
|
434 |
+
$lists = apply_filters( 'mc4wp_lists', $lists );
|
435 |
+
|
436 |
+
return $lists;
|
437 |
+
}
|
438 |
+
|
439 |
+
/**
|
440 |
+
* Stores the given email in a cookie for 30 days
|
441 |
+
*
|
442 |
+
* @param string $email
|
443 |
+
*/
|
444 |
+
private function set_email_cookie( $email ) {
|
445 |
+
setcookie( 'mc4wp_email', $email, strtotime( '+30 days' ), '/' );
|
446 |
+
}
|
447 |
+
|
448 |
+
}
|
includes/class-mailchimp.php
CHANGED
@@ -13,10 +13,15 @@ class MC4WP_MailChimp {
|
|
13 |
*
|
14 |
* @return array
|
15 |
*/
|
16 |
-
public function get_lists( $force_renewal = false ) {
|
17 |
|
18 |
$cached_lists = get_transient( 'mc4wp_mailchimp_lists' );
|
19 |
|
|
|
|
|
|
|
|
|
|
|
20 |
if ( true === $force_renewal || false === $cached_lists || empty( $cached_lists ) ) {
|
21 |
|
22 |
// make api request for lists
|
@@ -80,8 +85,8 @@ class MC4WP_MailChimp {
|
|
80 |
*
|
81 |
* @return bool
|
82 |
*/
|
83 |
-
public function get_list( $list_id ) {
|
84 |
-
$lists = $this->get_lists();
|
85 |
|
86 |
if( isset( $lists[$list_id] ) ) {
|
87 |
return $lists[$list_id];
|
13 |
*
|
14 |
* @return array
|
15 |
*/
|
16 |
+
public function get_lists( $force_renewal = false, $force_fallback = false ) {
|
17 |
|
18 |
$cached_lists = get_transient( 'mc4wp_mailchimp_lists' );
|
19 |
|
20 |
+
// if force_fallback is true, get lists from older transient
|
21 |
+
if( true === $force_fallback ) {
|
22 |
+
$cached_lists = get_transient( 'mc4wp_mailchimp_lists_fallback' );
|
23 |
+
}
|
24 |
+
|
25 |
if ( true === $force_renewal || false === $cached_lists || empty( $cached_lists ) ) {
|
26 |
|
27 |
// make api request for lists
|
85 |
*
|
86 |
* @return bool
|
87 |
*/
|
88 |
+
public function get_list( $list_id, $force_renewal = false, $force_fallback = false ) {
|
89 |
+
$lists = $this->get_lists( $force_renewal, $force_fallback );
|
90 |
|
91 |
if( isset( $lists[$list_id] ) ) {
|
92 |
return $lists[$list_id];
|
includes/class-plugin.php
CHANGED
@@ -67,6 +67,7 @@ class MC4WP_Lite {
|
|
67 |
'mc4wp_lite_checkbox_manager' => $include_path . 'class-checkbox-manager.php',
|
68 |
'mc4wp_lite_form_manager' => $include_path . 'class-form-manager.php',
|
69 |
'mc4wp_lite_widget' => $include_path . 'class-widget.php',
|
|
|
70 |
'mc4wp_mailchimp' => $include_path . 'class-mailchimp.php',
|
71 |
|
72 |
// integrations
|
67 |
'mc4wp_lite_checkbox_manager' => $include_path . 'class-checkbox-manager.php',
|
68 |
'mc4wp_lite_form_manager' => $include_path . 'class-form-manager.php',
|
69 |
'mc4wp_lite_widget' => $include_path . 'class-widget.php',
|
70 |
+
'mc4wp_lite_form_request' => $include_path . 'class-form-request.php',
|
71 |
'mc4wp_mailchimp' => $include_path . 'class-mailchimp.php',
|
72 |
|
73 |
// integrations
|
includes/functions/general.php
CHANGED
@@ -46,6 +46,7 @@ function mc4wp_get_options( $key = null ) {
|
|
46 |
'text_invalid_email' => __( 'Please provide a valid email address.', 'mailchimp-for-wp' ),
|
47 |
'text_already_subscribed' => __( 'Given email address is already subscribed, thank you!', 'mailchimp-for-wp' ),
|
48 |
'text_invalid_captcha' => __( 'Please complete the CAPTCHA.', 'mailchimp-for-wp' ),
|
|
|
49 |
'redirect' => '',
|
50 |
'lists' => array(),
|
51 |
'double_optin' => 1,
|
46 |
'text_invalid_email' => __( 'Please provide a valid email address.', 'mailchimp-for-wp' ),
|
47 |
'text_already_subscribed' => __( 'Given email address is already subscribed, thank you!', 'mailchimp-for-wp' ),
|
48 |
'text_invalid_captcha' => __( 'Please complete the CAPTCHA.', 'mailchimp-for-wp' ),
|
49 |
+
'text_required_field_missing' => __( 'Please fill in the required fields.', 'mailchimp-for-wp' ),
|
50 |
'redirect' => '',
|
51 |
'lists' => array(),
|
52 |
'double_optin' => 1,
|
includes/views/form-settings.php
CHANGED
@@ -169,14 +169,14 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
169 |
<th scope="row"><label for="mc4wp_form_text_success"><?php _e( 'Success message', 'mailchimp-for-wp' ); ?></label></th>
|
170 |
<td colspan="2" ><input type="text" class="widefat" id="mc4wp_form_text_success" name="mc4wp_lite_form[text_success]" value="<?php echo esc_attr( $opts['text_success'] ); ?>" required /></td>
|
171 |
</tr>
|
172 |
-
<tr valign="top">
|
173 |
-
<th scope="row"><label for="mc4wp_form_text_error"><?php _e( 'General error message' ,'mailchimp-for-wp' ); ?></label></th>
|
174 |
-
<td colspan="2" ><input type="text" class="widefat" id="mc4wp_form_text_error" name="mc4wp_lite_form[text_error]" value="<?php echo esc_attr( $opts['text_error'] ); ?>" required /></td>
|
175 |
-
</tr>
|
176 |
<tr valign="top">
|
177 |
<th scope="row"><label for="mc4wp_form_text_invalid_email"><?php _e( 'Invalid email address message', 'mailchimp-for-wp' ); ?></label></th>
|
178 |
<td colspan="2" ><input type="text" class="widefat" id="mc4wp_form_text_invalid_email" name="mc4wp_lite_form[text_invalid_email]" value="<?php echo esc_attr( $opts['text_invalid_email'] ); ?>" required /></td>
|
179 |
</tr>
|
|
|
|
|
|
|
|
|
180 |
<tr valign="top">
|
181 |
<th scope="row"><label for="mc4wp_form_text_already_subscribed"><?php _e( 'Already subscribed message', 'mailchimp-for-wp' ); ?></label></th>
|
182 |
<td colspan="2" ><input type="text" class="widefat" id="mc4wp_form_text_already_subscribed" name="mc4wp_lite_form[text_already_subscribed]" value="<?php echo esc_attr( $opts['text_already_subscribed'] ); ?>" required /></td>
|
@@ -187,6 +187,10 @@ if( ! defined("MC4WP_LITE_VERSION") ) {
|
|
187 |
<td colspan="2" ><input type="text" class="widefat" id="mc4wp_form_text_invalid_captcha" name="mc4wp_lite_form[text_invalid_captcha]" value="<?php echo esc_attr( $opts['text_invalid_captcha'] ); ?>" required /></td>
|
188 |
</tr>
|
189 |
<?php } ?>
|
|
|
|
|
|
|
|
|
190 |
<tr>
|
191 |
<th></th>
|
192 |
<td colspan="2">
|
169 |
<th scope="row"><label for="mc4wp_form_text_success"><?php _e( 'Success message', 'mailchimp-for-wp' ); ?></label></th>
|
170 |
<td colspan="2" ><input type="text" class="widefat" id="mc4wp_form_text_success" name="mc4wp_lite_form[text_success]" value="<?php echo esc_attr( $opts['text_success'] ); ?>" required /></td>
|
171 |
</tr>
|
|
|
|
|
|
|
|
|
172 |
<tr valign="top">
|
173 |
<th scope="row"><label for="mc4wp_form_text_invalid_email"><?php _e( 'Invalid email address message', 'mailchimp-for-wp' ); ?></label></th>
|
174 |
<td colspan="2" ><input type="text" class="widefat" id="mc4wp_form_text_invalid_email" name="mc4wp_lite_form[text_invalid_email]" value="<?php echo esc_attr( $opts['text_invalid_email'] ); ?>" required /></td>
|
175 |
</tr>
|
176 |
+
<tr valign="top">
|
177 |
+
<th scope="row"><label for="mc4wp_form_text_required_field_missing"><?php _e( 'Required field missing message', 'mailchimp-for-wp' ); ?></label></th>
|
178 |
+
<td colspan="2" ><input type="text" class="widefat" id="mc4wp_form_text_required_field_missing" name="mc4wp_lite_form[text_required_field_missing]" value="<?php echo esc_attr( $opts['text_required_field_missing'] ); ?>" required /></td>
|
179 |
+
</tr>
|
180 |
<tr valign="top">
|
181 |
<th scope="row"><label for="mc4wp_form_text_already_subscribed"><?php _e( 'Already subscribed message', 'mailchimp-for-wp' ); ?></label></th>
|
182 |
<td colspan="2" ><input type="text" class="widefat" id="mc4wp_form_text_already_subscribed" name="mc4wp_lite_form[text_already_subscribed]" value="<?php echo esc_attr( $opts['text_already_subscribed'] ); ?>" required /></td>
|
187 |
<td colspan="2" ><input type="text" class="widefat" id="mc4wp_form_text_invalid_captcha" name="mc4wp_lite_form[text_invalid_captcha]" value="<?php echo esc_attr( $opts['text_invalid_captcha'] ); ?>" required /></td>
|
188 |
</tr>
|
189 |
<?php } ?>
|
190 |
+
<tr valign="top">
|
191 |
+
<th scope="row"><label for="mc4wp_form_text_error"><?php _e( 'General error message' ,'mailchimp-for-wp' ); ?></label></th>
|
192 |
+
<td colspan="2" ><input type="text" class="widefat" id="mc4wp_form_text_error" name="mc4wp_lite_form[text_error]" value="<?php echo esc_attr( $opts['text_error'] ); ?>" required /></td>
|
193 |
+
</tr>
|
194 |
<tr>
|
195 |
<th></th>
|
196 |
<td colspan="2">
|
languages/mailchimp-for-wp-pt_BR.mo
ADDED
Binary file
|
languages/mailchimp-for-wp-pt_BR.po
ADDED
@@ -0,0 +1,1100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: MailChimp for WordPress\n"
|
4 |
+
"POT-Creation-Date: 2014-05-14 22:11+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-07-24 18:04-0300\n"
|
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.5.5\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Poedit-SearchPath-0: ..\n"
|
16 |
+
|
17 |
+
#: ../includes/class-admin.php:178
|
18 |
+
msgid "Settings"
|
19 |
+
msgstr "Configurações"
|
20 |
+
|
21 |
+
#: ../includes/class-admin.php:197
|
22 |
+
msgid "Documentation"
|
23 |
+
msgstr "Documentação"
|
24 |
+
|
25 |
+
#: ../includes/class-admin.php:209
|
26 |
+
msgid "Save Form"
|
27 |
+
msgstr "Salvar"
|
28 |
+
|
29 |
+
#: ../includes/class-admin.php:211
|
30 |
+
msgid "Update Form"
|
31 |
+
msgstr "Atualizar"
|
32 |
+
|
33 |
+
#: ../includes/class-admin.php:248
|
34 |
+
msgid "Your email address"
|
35 |
+
msgstr "Seu endereço de email"
|
36 |
+
|
37 |
+
#: ../includes/class-admin.php:249
|
38 |
+
msgid "Email address"
|
39 |
+
msgstr "Email"
|
40 |
+
|
41 |
+
#: ../includes/class-admin.php:250
|
42 |
+
msgid "Sign up"
|
43 |
+
msgstr "Cadastrar"
|
44 |
+
|
45 |
+
#: ../includes/class-admin.php:261
|
46 |
+
msgid "Back to general form settings"
|
47 |
+
msgstr "Voltar para as configurações gerais do form"
|
48 |
+
|
49 |
+
#: ../includes/class-admin.php:263
|
50 |
+
msgid "Form updated."
|
51 |
+
msgstr "Formulário atualizado."
|
52 |
+
|
53 |
+
#: ../includes/class-admin.php:264
|
54 |
+
msgid "Form saved."
|
55 |
+
msgstr "Formulário salvo."
|
56 |
+
|
57 |
+
#: ../includes/class-admin.php:321
|
58 |
+
msgid "Form settings"
|
59 |
+
msgstr "Configurações do formulário"
|
60 |
+
|
61 |
+
#: ../includes/class-admin.php:322
|
62 |
+
msgid "Optional settings"
|
63 |
+
msgstr "Configurações opcionais"
|
64 |
+
|
65 |
+
#: ../includes/class-admin.php:323
|
66 |
+
msgid "Form variables"
|
67 |
+
msgstr "Variáveis do Formulário"
|
68 |
+
|
69 |
+
#: ../includes/class-admin.php:357
|
70 |
+
msgid "Use the following variables to add some dynamic content to your form."
|
71 |
+
msgstr "Use as variáveis para adicionar conteúdo dinâmico em seu formulário."
|
72 |
+
|
73 |
+
#: ../includes/class-admin.php:497
|
74 |
+
#, php-format
|
75 |
+
msgid ""
|
76 |
+
"Couldn't create the stylesheet. Manually add the generated CSS to your theme "
|
77 |
+
"stylesheet by using the %sTheme Editor%s or use FTP and edit <em>%s</em>."
|
78 |
+
msgstr ""
|
79 |
+
"Não foi possível criar a folha de estilos. Adicione manualmente o CSS gerado "
|
80 |
+
"na folha de estilos do seu tema usando o %sEditor de Tema%s ou use o FTP e "
|
81 |
+
"edite <em>%s</em>."
|
82 |
+
|
83 |
+
#: ../includes/class-admin.php:498
|
84 |
+
#, php-format
|
85 |
+
msgid "%sShow CSS%s"
|
86 |
+
msgstr "%sMostrar CSS%s"
|
87 |
+
|
88 |
+
#: ../includes/class-admin.php:507
|
89 |
+
#, php-format
|
90 |
+
msgid ""
|
91 |
+
"To apply these styles on your website, select \"load custom form styles\" in "
|
92 |
+
"the %sform settings%s"
|
93 |
+
msgstr ""
|
94 |
+
"Para aplicar estes estilos em seu site, selecione \"carregar estilos "
|
95 |
+
"customizados\" nas %sconfigurações de formulário%s"
|
96 |
+
|
97 |
+
#: ../includes/class-admin.php:508
|
98 |
+
#, php-format
|
99 |
+
msgid "The %sCSS Stylesheet%s has been created."
|
100 |
+
msgstr "A %sFolha de Estilos CSS%s foi criada."
|
101 |
+
|
102 |
+
#: ../includes/class-admin.php:524
|
103 |
+
msgid "General Settings"
|
104 |
+
msgstr "Configurações Gerais"
|
105 |
+
|
106 |
+
#: ../includes/class-admin.php:525
|
107 |
+
msgid "Checkboxes"
|
108 |
+
msgstr "Caixas de Seleção"
|
109 |
+
|
110 |
+
#: ../includes/class-admin.php:526
|
111 |
+
#: ../includes/views/pages/admin-form-settings.php:10
|
112 |
+
msgid "Forms"
|
113 |
+
msgstr "Formulários"
|
114 |
+
|
115 |
+
#: ../includes/class-admin.php:527
|
116 |
+
#: ../includes/views/pages/admin-reports.php:10
|
117 |
+
msgid "Reports"
|
118 |
+
msgstr "Relatórios"
|
119 |
+
|
120 |
+
#: ../includes/class-admin.php:596
|
121 |
+
msgid "Comment form"
|
122 |
+
msgstr "Formulário de comentário"
|
123 |
+
|
124 |
+
#: ../includes/class-admin.php:597
|
125 |
+
msgid "Registration form"
|
126 |
+
msgstr "Formulário de Registro"
|
127 |
+
|
128 |
+
#: ../includes/class-admin.php:601
|
129 |
+
msgid "MultiSite forms"
|
130 |
+
msgstr "Formulários Multisite"
|
131 |
+
|
132 |
+
#: ../includes/class-admin.php:605
|
133 |
+
msgid "BuddyPress registration"
|
134 |
+
msgstr "Registro no BuddyPress"
|
135 |
+
|
136 |
+
#: ../includes/class-admin.php:613 ../includes/class-admin.php:617
|
137 |
+
#, php-format
|
138 |
+
msgid "%s checkout"
|
139 |
+
msgstr "%s finalização"
|
140 |
+
|
141 |
+
#: ../includes/class-admin.php:653
|
142 |
+
#, php-format
|
143 |
+
msgid ""
|
144 |
+
"Please make sure the plugin is connected to MailChimp. <a href=\"%s"
|
145 |
+
"\">Provide a valid API key.</a>"
|
146 |
+
msgstr ""
|
147 |
+
"Por favor certifique que o plugin está conectado ao MailChimp. <a href=\"%s"
|
148 |
+
"\">Insira uma chave API válida.</a>"
|
149 |
+
|
150 |
+
#: ../includes/class-admin.php:792
|
151 |
+
#, php-format
|
152 |
+
msgid ""
|
153 |
+
"<strong>Welcome to MailChimp for WordPress Pro!</strong> We transfered the "
|
154 |
+
"settings you had set in the Lite version, please <a href=\"%s\">deactivate "
|
155 |
+
"it now</a> to prevent problems"
|
156 |
+
msgstr ""
|
157 |
+
"<strong>Bem-vindo ao MailChimp for WordPress Pro!</strong> Nós transferimos "
|
158 |
+
"as configurações feitas na versão Lite, por favor <a href=\"%s\">desative-o</"
|
159 |
+
"a> para evitar problemas"
|
160 |
+
|
161 |
+
#: ../includes/class-admin.php:865
|
162 |
+
msgid "Renewed MailChimp cache."
|
163 |
+
msgstr "Cache MailChimp renovado."
|
164 |
+
|
165 |
+
#: ../includes/class-admin.php:867
|
166 |
+
msgid "Failed to renew MailChimp cache - please try again later."
|
167 |
+
msgstr "Falha ao renovar o cache MailChimp - por favor tente novamente."
|
168 |
+
|
169 |
+
#: ../includes/class-form-manager.php:248
|
170 |
+
#, php-format
|
171 |
+
msgid "<strong>Error:</strong> Please specify a form ID. Example: %s."
|
172 |
+
msgstr ""
|
173 |
+
"<strong>Erro:</strong> Por favor especifique um ID de formulário. Exemplo %s."
|
174 |
+
|
175 |
+
#: ../includes/class-form-manager.php:261
|
176 |
+
msgid ""
|
177 |
+
"<strong>Error:</strong> Sign-up form not found. Please check if you used the "
|
178 |
+
"correct form ID."
|
179 |
+
msgstr ""
|
180 |
+
"<strong>Erro:</strong> Formulário de cadastro não encontrado. Por favor "
|
181 |
+
"verifique se você usou o ID de formulário correto."
|
182 |
+
|
183 |
+
#: ../includes/class-form-manager.php:370
|
184 |
+
#, php-format
|
185 |
+
msgid ""
|
186 |
+
"<strong>Admin notice:</strong> you have not yet selected a MailChimp list(s) "
|
187 |
+
"for this form. <a target=\"_top\" href=\"%s\">Edit this sign-up form</a> and "
|
188 |
+
"select at least one list."
|
189 |
+
msgstr ""
|
190 |
+
"<strong>Nota do admin:</strong> você não selecionou ainda uma lista "
|
191 |
+
"MailChimp para este formulário. <a target=\"_top\" href=\"%s\">Edite este "
|
192 |
+
"formulário de cadastro</a> e selecione pelo menos uma lista."
|
193 |
+
|
194 |
+
#: ../includes/class-form-manager.php:833
|
195 |
+
msgid "New Sign-Up"
|
196 |
+
msgstr "Novo cadastro"
|
197 |
+
|
198 |
+
#: ../includes/class-form-manager.php:834
|
199 |
+
#, php-format
|
200 |
+
msgid "<strong>%s</strong> signed-up at %s on %s using the form \"%s\"."
|
201 |
+
msgstr "<strong>%s</strong> cadastrado no %s em %s usando o formulário \"%s\"."
|
202 |
+
|
203 |
+
#: ../includes/class-form-manager.php:873
|
204 |
+
msgid "This email was auto-sent by the MailChimp for WordPress plugin."
|
205 |
+
msgstr "Este email foi auto-enviado pelo plugin MailChimp for WordPress."
|
206 |
+
|
207 |
+
#: ../includes/class-widget.php:20
|
208 |
+
msgid "MailChimp for WP Form"
|
209 |
+
msgstr "Formulário MailChimp for WP"
|
210 |
+
|
211 |
+
#: ../includes/class-widget.php:21
|
212 |
+
msgid "Displays one of your MailChimp for WordPress sign-up forms"
|
213 |
+
msgstr "Exibe um dos seus formulários de cadastro do MailChimp for WordPress"
|
214 |
+
|
215 |
+
#: ../includes/class-widget.php:39
|
216 |
+
#, php-format
|
217 |
+
msgid ""
|
218 |
+
"Please select the sign-up form you'd like to show here in the <a href=\"%s"
|
219 |
+
"\">widget settings</a>."
|
220 |
+
msgstr ""
|
221 |
+
"Por favor selecione um formulário de cadastro que você deseja mostrar aqui "
|
222 |
+
"nas <a href=\"%s\">configurações de widgets</a>."
|
223 |
+
|
224 |
+
#: ../includes/class-widget.php:68
|
225 |
+
msgid "Newsletter"
|
226 |
+
msgstr "Newsletter"
|
227 |
+
|
228 |
+
#: ../includes/class-widget.php:79
|
229 |
+
msgid "Title:"
|
230 |
+
msgstr "Título:"
|
231 |
+
|
232 |
+
#: ../includes/class-widget.php:83
|
233 |
+
msgid "Form:"
|
234 |
+
msgstr "Formulário:"
|
235 |
+
|
236 |
+
#: ../includes/class-widget.php:85
|
237 |
+
msgid "Select the form to show"
|
238 |
+
msgstr "Selecione o formulário para mostrar"
|
239 |
+
|
240 |
+
#: ../includes/class-widget.php:93
|
241 |
+
#, php-format
|
242 |
+
msgid "You don't have any sign-up forms. <a href=\"%s\">Create one now.</a>"
|
243 |
+
msgstr ""
|
244 |
+
"Você não tem nenhum formulário de cadastro. <a href=\"%s\">Criar um agora.</"
|
245 |
+
"a>"
|
246 |
+
|
247 |
+
#: ../includes/functions/general.php:20
|
248 |
+
msgid "Sign me up for the newsletter!"
|
249 |
+
msgstr "Cadastrar na newsletter!"
|
250 |
+
|
251 |
+
#: ../includes/functions/general.php:42
|
252 |
+
msgid ""
|
253 |
+
"Thank you, your sign-up request was successful! Please check your e-mail "
|
254 |
+
"inbox."
|
255 |
+
msgstr ""
|
256 |
+
"Obrigado, sua solicitação de cadastro foi um sucesso! Por favor verifique "
|
257 |
+
"sua caixa de entrada."
|
258 |
+
|
259 |
+
#: ../includes/functions/general.php:43
|
260 |
+
msgid "Oops. Something went wrong. Please try again later."
|
261 |
+
msgstr "Oops. Alguma coisa deu errado. Por favor tente novamente."
|
262 |
+
|
263 |
+
#: ../includes/functions/general.php:44
|
264 |
+
msgid "Please provide a valid email address."
|
265 |
+
msgstr "Por favor insira um email válido."
|
266 |
+
|
267 |
+
#: ../includes/functions/general.php:45
|
268 |
+
msgid "Given email address is already subscribed, thank you!"
|
269 |
+
msgstr "Este email já está cadastrado, obrigado!"
|
270 |
+
|
271 |
+
#: ../includes/functions/general.php:46
|
272 |
+
msgid "Please complete the CAPTCHA."
|
273 |
+
msgstr "Por favor insira o CAPTCHA."
|
274 |
+
|
275 |
+
#: ../includes/integrations/class-cf7.php:44
|
276 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:16
|
277 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:30
|
278 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:44
|
279 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:58
|
280 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:75
|
281 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:87
|
282 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:106
|
283 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:52
|
284 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:60
|
285 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:90
|
286 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:95
|
287 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:58
|
288 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:69
|
289 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:79
|
290 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:90
|
291 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:104
|
292 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:109
|
293 |
+
msgid "Yes"
|
294 |
+
msgstr "Sim"
|
295 |
+
|
296 |
+
#: ../includes/integrations/class-cf7.php:44
|
297 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:18
|
298 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:32
|
299 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:46
|
300 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:60
|
301 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:77
|
302 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:89
|
303 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:107
|
304 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:52
|
305 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:62
|
306 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:90
|
307 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:95
|
308 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:22
|
309 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:60
|
310 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:71
|
311 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:81
|
312 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:92
|
313 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:104
|
314 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:109
|
315 |
+
msgid "No"
|
316 |
+
msgstr "Não"
|
317 |
+
|
318 |
+
#: ../includes/library/license-manager/class-license-manager.php:132
|
319 |
+
#, php-format
|
320 |
+
msgid ""
|
321 |
+
"<b>Warning!</b> You're blocking external requests which means you won't be "
|
322 |
+
"able to get %s updates. Please add %s to %s."
|
323 |
+
msgstr ""
|
324 |
+
"<b>Aviso!</b> Você está bloqueando requisições externas que significam que "
|
325 |
+
"você não poderá ter os %s updates. Por favor adicione %s em %s."
|
326 |
+
|
327 |
+
#: ../includes/library/license-manager/class-license-manager.php:175
|
328 |
+
#, php-format
|
329 |
+
msgid "Your %s license has been activated. You have an unlimited license. "
|
330 |
+
msgstr "Sua %s licença foi ativada. Você tem uma licença ilimitada."
|
331 |
+
|
332 |
+
#: ../includes/library/license-manager/class-license-manager.php:177
|
333 |
+
#, php-format
|
334 |
+
msgid "Your %s license has been activated. You have used %d/%d activations. "
|
335 |
+
msgstr "Sua %s licença foi ativada. Você usou %d/%d ativações."
|
336 |
+
|
337 |
+
#: ../includes/library/license-manager/class-license-manager.php:182
|
338 |
+
#, php-format
|
339 |
+
msgid "<a href=\"%s\">Did you know you can upgrade your license?</a>"
|
340 |
+
msgstr "<a href=\"%s\">Você sabia que você pode atualizar sua licença?</a>"
|
341 |
+
|
342 |
+
#: ../includes/library/license-manager/class-license-manager.php:186
|
343 |
+
#, php-format
|
344 |
+
msgid ""
|
345 |
+
"<a href=\"%s\">Your license is expiring in %d days, would you like to extend "
|
346 |
+
"it?</a>"
|
347 |
+
msgstr ""
|
348 |
+
"<a href=\"%s\">Sua licença irá expirar em %d dias, você quer extendê-la?</a>"
|
349 |
+
|
350 |
+
#: ../includes/library/license-manager/class-license-manager.php:195
|
351 |
+
#, php-format
|
352 |
+
msgid ""
|
353 |
+
"You've reached your activation limit. You must <a href=\"%s\">upgrade your "
|
354 |
+
"license</a> to use it on this site."
|
355 |
+
msgstr ""
|
356 |
+
"Você alcançou o limite de ativações. Você deve <a href=\"%s\">atualizar sua "
|
357 |
+
"licença</a> para usá-la neste site."
|
358 |
+
|
359 |
+
#: ../includes/library/license-manager/class-license-manager.php:198
|
360 |
+
#, php-format
|
361 |
+
msgid ""
|
362 |
+
"Your license has expired. You must <a href=\"%s\">extend your license</a> in "
|
363 |
+
"order to use it again."
|
364 |
+
msgstr ""
|
365 |
+
"Sua licença expirou. Você deve <a href=\"%s\">extender sua licença</a> para "
|
366 |
+
"continuar usando."
|
367 |
+
|
368 |
+
#: ../includes/library/license-manager/class-license-manager.php:201
|
369 |
+
msgid "Failed to activate your license, your license key seems to be invalid."
|
370 |
+
msgstr "Falha ao ativar sua licença, a chave parece estar inválida."
|
371 |
+
|
372 |
+
#: ../includes/library/license-manager/class-license-manager.php:225
|
373 |
+
#, php-format
|
374 |
+
msgid "Your %s license has been deactivated."
|
375 |
+
msgstr "Sua %s licença foi desativada."
|
376 |
+
|
377 |
+
#: ../includes/library/license-manager/class-license-manager.php:227
|
378 |
+
#, php-format
|
379 |
+
msgid "Failed to deactivate your %s license."
|
380 |
+
msgstr "Falha ao desativar sua %s licença."
|
381 |
+
|
382 |
+
#: ../includes/library/license-manager/class-license-manager.php:262
|
383 |
+
#, php-format
|
384 |
+
msgid "Request error: \"%s\""
|
385 |
+
msgstr "Erro de solicitação: \"%s\""
|
386 |
+
|
387 |
+
#: ../includes/library/license-manager/class-license-manager.php:420
|
388 |
+
#, php-format
|
389 |
+
msgid "%s: License Settings"
|
390 |
+
msgstr "%s: Configurações de Licença"
|
391 |
+
|
392 |
+
#: ../includes/library/license-manager/class-plugin-license-manager.php:72
|
393 |
+
#, php-format
|
394 |
+
msgid ""
|
395 |
+
"%s is network activated, you can manage your license in the <a href=\"%s"
|
396 |
+
"\">network admin license page</a>."
|
397 |
+
msgstr ""
|
398 |
+
"%s é ativada via rede, você pode gerenciar sua licença na <a href=\"%s"
|
399 |
+
"\">página de licenças</a>."
|
400 |
+
|
401 |
+
#: ../includes/library/license-manager/class-plugin-license-manager.php:74
|
402 |
+
#, php-format
|
403 |
+
msgid ""
|
404 |
+
"%s is network activated, please contact your site administrator to manage "
|
405 |
+
"the license."
|
406 |
+
msgstr ""
|
407 |
+
"%s é ativada via rede, por favor entre em contato com o administrador de seu "
|
408 |
+
"site para gerenciar a licença."
|
409 |
+
|
410 |
+
#: ../includes/library/license-manager/class-update-manager.php:83
|
411 |
+
#, php-format
|
412 |
+
msgid ""
|
413 |
+
"%s failed to check for updates because of the following error: <em>%s</em>"
|
414 |
+
msgstr ""
|
415 |
+
"%s falha para verificar atualizações por causa do seguint erro: <em>%s</em>"
|
416 |
+
|
417 |
+
#: ../includes/library/license-manager/class-update-manager.php:148
|
418 |
+
msgid ""
|
419 |
+
"This site has not been activated properly on dannyvankooten.com and thus "
|
420 |
+
"cannot check for future updates. Please activate your site with a valid "
|
421 |
+
"license key."
|
422 |
+
msgstr ""
|
423 |
+
"Este site não foi devidamente ativado em dannyvankooten.com e não pode "
|
424 |
+
"verificar por atualizações. Por favor ative seu site com uma licença válida."
|
425 |
+
|
426 |
+
#: ../includes/library/license-manager/views/form.php:23
|
427 |
+
msgid "License status"
|
428 |
+
msgstr "Status da Licença"
|
429 |
+
|
430 |
+
#: ../includes/library/license-manager/views/form.php:33
|
431 |
+
msgid "Toggle license status"
|
432 |
+
msgstr "Chave do status da Licença"
|
433 |
+
|
434 |
+
#: ../includes/library/license-manager/views/form.php:38
|
435 |
+
msgid ""
|
436 |
+
"(deactivate your license so you can activate it on another WordPress site)"
|
437 |
+
msgstr "(desative sua licença para poder ativar em outro site WordPress)"
|
438 |
+
|
439 |
+
#: ../includes/library/license-manager/views/form.php:44
|
440 |
+
msgid "Please enter a license key in the field below first."
|
441 |
+
msgstr "Por favor insira uma licença no campo abaixo."
|
442 |
+
|
443 |
+
#: ../includes/library/license-manager/views/form.php:52
|
444 |
+
msgid "License Key"
|
445 |
+
msgstr "Chave da Licença"
|
446 |
+
|
447 |
+
#: ../includes/library/license-manager/views/form.php:54
|
448 |
+
#, php-format
|
449 |
+
msgid "Paste your %s license key here.."
|
450 |
+
msgstr "Cole sua %s chave de licença aqui.."
|
451 |
+
|
452 |
+
#: ../includes/library/license-manager/views/form.php:56
|
453 |
+
#, php-format
|
454 |
+
msgid "You defined your license key using the %s PHP constant."
|
455 |
+
msgstr "Você definiu sua licença usando a %s constante PHP."
|
456 |
+
|
457 |
+
#: ../includes/library/license-manager/views/form.php:73
|
458 |
+
#, php-format
|
459 |
+
msgid "Your %s license will expire on %s."
|
460 |
+
msgstr "Sua %s licença vai expirar em %s."
|
461 |
+
|
462 |
+
#: ../includes/library/license-manager/views/form.php:76
|
463 |
+
#, php-format
|
464 |
+
msgid "%sRenew your license now%s."
|
465 |
+
msgstr "%sRenove sua licença agora%s."
|
466 |
+
|
467 |
+
#: ../includes/tables/class-forms-table.php:19
|
468 |
+
msgid "Sign-Up Form"
|
469 |
+
msgstr "Formulário de Cadastro"
|
470 |
+
|
471 |
+
#: ../includes/tables/class-forms-table.php:20
|
472 |
+
msgid "Sign-up Forms"
|
473 |
+
msgstr "Formulários de Cadastro"
|
474 |
+
|
475 |
+
#: ../includes/tables/class-forms-table.php:36
|
476 |
+
msgid "Form"
|
477 |
+
msgstr "Formulário"
|
478 |
+
|
479 |
+
#: ../includes/tables/class-forms-table.php:37
|
480 |
+
msgid "Shortcode"
|
481 |
+
msgstr "Shortcode"
|
482 |
+
|
483 |
+
#: ../includes/tables/class-forms-table.php:38
|
484 |
+
msgid "List(s)"
|
485 |
+
msgstr "Lista(s)"
|
486 |
+
|
487 |
+
#: ../includes/tables/class-forms-table.php:39
|
488 |
+
msgid "Last edited"
|
489 |
+
msgstr "Editado"
|
490 |
+
|
491 |
+
#: ../includes/tables/class-forms-table.php:103
|
492 |
+
msgid "You have not created any sign-up forms yet. Time to do so!"
|
493 |
+
msgstr "Você não criou nenhum formulário de cadastro ainda. É hora de fazê-lo!"
|
494 |
+
|
495 |
+
#: ../includes/tables/class-log-table.php:23
|
496 |
+
msgid "Subscriber"
|
497 |
+
msgstr "Inscrito"
|
498 |
+
|
499 |
+
#: ../includes/tables/class-log-table.php:24
|
500 |
+
msgid "Subscribers"
|
501 |
+
msgstr "Inscritos"
|
502 |
+
|
503 |
+
#: ../includes/tables/class-log-table.php:44
|
504 |
+
msgid "Email"
|
505 |
+
msgstr "Email"
|
506 |
+
|
507 |
+
#: ../includes/tables/class-log-table.php:45
|
508 |
+
msgid "List"
|
509 |
+
msgstr "Lista"
|
510 |
+
|
511 |
+
#: ../includes/tables/class-log-table.php:46
|
512 |
+
msgid "Type"
|
513 |
+
msgstr "Tipo"
|
514 |
+
|
515 |
+
#: ../includes/tables/class-log-table.php:47
|
516 |
+
msgid "Source"
|
517 |
+
msgstr "Fonte"
|
518 |
+
|
519 |
+
#: ../includes/tables/class-log-table.php:48
|
520 |
+
msgid "Extra data"
|
521 |
+
msgstr "Data Extra"
|
522 |
+
|
523 |
+
#: ../includes/tables/class-log-table.php:49
|
524 |
+
msgid "Subscribed"
|
525 |
+
msgstr "Inscrito"
|
526 |
+
|
527 |
+
#: ../includes/tables/class-log-table.php:258
|
528 |
+
msgid "No subscribe requests found."
|
529 |
+
msgstr "Nenhuma solicitação encontrada."
|
530 |
+
|
531 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:8
|
532 |
+
#, php-format
|
533 |
+
msgid ""
|
534 |
+
"Any settings you specify here will override the <a href=\"%s\">general form "
|
535 |
+
"settings</a>. If no setting is specified, the corresponding general setting "
|
536 |
+
"value will be used."
|
537 |
+
msgstr ""
|
538 |
+
"As configurações definidas aqui irão sobrescrever as <a href=\"%s"
|
539 |
+
"\">configurações gerais</a>. Se nenhuma configuração for feita, a "
|
540 |
+
"configuração geral respectiva será usada."
|
541 |
+
|
542 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:10
|
543 |
+
msgid "MailChimp Settings"
|
544 |
+
msgstr "Configurações MailChimp"
|
545 |
+
|
546 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:13
|
547 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:51
|
548 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:55
|
549 |
+
msgid "Double opt-in?"
|
550 |
+
msgstr "Verificação dupla?"
|
551 |
+
|
552 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:20
|
553 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:34
|
554 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:48
|
555 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:62
|
556 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:79
|
557 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:91
|
558 |
+
msgid "Inherit"
|
559 |
+
msgstr "Incluir"
|
560 |
+
|
561 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:22
|
562 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:53
|
563 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:62
|
564 |
+
msgid ""
|
565 |
+
"Select \"yes\" if you want people to confirm their email address before "
|
566 |
+
"being subscribed (recommended)"
|
567 |
+
msgstr ""
|
568 |
+
"Selecione \"sim\" se você deseja que as pessoas confirme o email ao se "
|
569 |
+
"inscreverem (recomendado)"
|
570 |
+
|
571 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:27
|
572 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:76
|
573 |
+
msgid "Update existing subscribers?"
|
574 |
+
msgstr "Atualizar os inscritos existentes?"
|
575 |
+
|
576 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:36
|
577 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:83
|
578 |
+
msgid ""
|
579 |
+
"Select \"yes\" if you want to update existing subscribers (instead of "
|
580 |
+
"showing the \"already subscribed\" message)."
|
581 |
+
msgstr ""
|
582 |
+
"Selecione \"sim\" se você deseja atualizar os inscritos existentes (ao invés "
|
583 |
+
"de mostrar a mensagem \"já inscrito\")."
|
584 |
+
|
585 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:41
|
586 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:87
|
587 |
+
msgid "Replace interest groups?"
|
588 |
+
msgstr "Substituir grupos de interesse?"
|
589 |
+
|
590 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:50
|
591 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:94
|
592 |
+
msgid ""
|
593 |
+
"Select \"yes\" if you want to replace the interest groups with the groups "
|
594 |
+
"provided instead of adding the provided groups to the member's interest "
|
595 |
+
"groups (only when updating a subscriber)."
|
596 |
+
msgstr ""
|
597 |
+
"Selecione \"sim\" se você deseja substituir os grupos de interesse com os "
|
598 |
+
"grupos dados ao invés de adicionar os grupos dados para os grupos de "
|
599 |
+
"interesse do membro (apenas quando atualizar um inscrito)."
|
600 |
+
|
601 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:55
|
602 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:57
|
603 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:66
|
604 |
+
msgid "Send Welcome Email?"
|
605 |
+
msgstr "Enviar email de Boas Vindas?"
|
606 |
+
|
607 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:64
|
608 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:64
|
609 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:73
|
610 |
+
msgid ""
|
611 |
+
"Select \"yes\" if you want to send your lists Welcome Email if a subscribe "
|
612 |
+
"succeeds (only when double opt-in is disabled)."
|
613 |
+
msgstr ""
|
614 |
+
"Selecione \"sim\" se você deseja enviar um emai de Boas Vindas se uma "
|
615 |
+
"inscrição for completada (apenas com Verificação dupla estiver desabilitada)."
|
616 |
+
|
617 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:69
|
618 |
+
msgid "Form Settings & Messages"
|
619 |
+
msgstr "Mensagens e configurações do Formulário"
|
620 |
+
|
621 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:72
|
622 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:103
|
623 |
+
msgid "Enable AJAX form submission?"
|
624 |
+
msgstr "Habilitar envio de formulários usando AJAX?"
|
625 |
+
|
626 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:80
|
627 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:105
|
628 |
+
msgid "Select \"yes\" if you want to use AJAX (JavaScript) to submit forms."
|
629 |
+
msgstr ""
|
630 |
+
"Selecione \"sim\" se você deseja usar o envio dos formulários usando AJAX "
|
631 |
+
"(JavaScript)."
|
632 |
+
|
633 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:84
|
634 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:108
|
635 |
+
msgid "Hide form after a successful sign-up?"
|
636 |
+
msgstr "Esconder formulário após cadastro completado?"
|
637 |
+
|
638 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:93
|
639 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:110
|
640 |
+
msgid "Select \"yes\" to hide the form fields after a successful sign-up."
|
641 |
+
msgstr ""
|
642 |
+
"Selecione \"sim\" se você deseja para esconder os campos do formulário após "
|
643 |
+
"a finalização do cadastro."
|
644 |
+
|
645 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:97
|
646 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:113
|
647 |
+
msgid "Redirect to URL after successful sign-ups"
|
648 |
+
msgstr "Redirecionar para URL após finalização"
|
649 |
+
|
650 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:100
|
651 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:116
|
652 |
+
msgid ""
|
653 |
+
"Leave empty or enter 0 for no redirection. Use complete (absolute) URLs, "
|
654 |
+
"including <code>http://</code>"
|
655 |
+
msgstr ""
|
656 |
+
"Deixe em branco ou insira 0 para não redirecionar. Use a URL completa "
|
657 |
+
"(absoluta), incluíndo <code>http://</code>"
|
658 |
+
|
659 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:104
|
660 |
+
msgid "Send an email copy of the form data?"
|
661 |
+
msgstr "Enviar uma cópia dos dados do formulário?"
|
662 |
+
|
663 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:108
|
664 |
+
msgid ""
|
665 |
+
"Tick \"yes\" if you want to receive an email with the form data for every "
|
666 |
+
"sign-up request."
|
667 |
+
msgstr ""
|
668 |
+
"Marque \"sim\" se você deseja receber um email com os dados preenchidos de "
|
669 |
+
"cada cadastro realizado."
|
670 |
+
|
671 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:111
|
672 |
+
msgid "Send the copy to this email:"
|
673 |
+
msgstr "Envie a cópia para este email:"
|
674 |
+
|
675 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:117
|
676 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:119
|
677 |
+
msgid "Success message"
|
678 |
+
msgstr "Mensagem de sucesso"
|
679 |
+
|
680 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:121
|
681 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:123
|
682 |
+
msgid "General error message"
|
683 |
+
msgstr "Mensagem de Erro Geral"
|
684 |
+
|
685 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:125
|
686 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:127
|
687 |
+
msgid "Invalid email address message"
|
688 |
+
msgstr "Mensagem de email incorreto"
|
689 |
+
|
690 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:129
|
691 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:131
|
692 |
+
msgid "Already subscribed message"
|
693 |
+
msgstr "Mensagem de cadastro já encontrado"
|
694 |
+
|
695 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:134
|
696 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:136
|
697 |
+
msgid "Invalid CAPTCHA message"
|
698 |
+
msgstr "Mensagem de CAPTCHA inválido"
|
699 |
+
|
700 |
+
#: ../includes/views/metaboxes/optional-form-settings.php:141
|
701 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:142
|
702 |
+
#, php-format
|
703 |
+
msgid "HTML tags like %s are allowed in the message fields."
|
704 |
+
msgstr "tags HTML como %s são permitidos nos campos de mensagem."
|
705 |
+
|
706 |
+
#: ../includes/views/metaboxes/required-form-settings.php:14
|
707 |
+
msgid "Lists this form subscribes to"
|
708 |
+
msgstr "Lista os inscritos deste formulário para"
|
709 |
+
|
710 |
+
#: ../includes/views/metaboxes/required-form-settings.php:17
|
711 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:38
|
712 |
+
#, php-format
|
713 |
+
msgid "No lists found, %sare you connected to MailChimp?%s"
|
714 |
+
msgstr "Nenhuma lista encontrada, \"%svocê está conectado ao MailChimp?%s"
|
715 |
+
|
716 |
+
#: ../includes/views/metaboxes/required-form-settings.php:29
|
717 |
+
msgid "Add a new field"
|
718 |
+
msgstr "Adicionar campo"
|
719 |
+
|
720 |
+
#: ../includes/views/metaboxes/required-form-settings.php:32
|
721 |
+
msgid "Select MailChimp field.."
|
722 |
+
msgstr "Selecione campo MailChimp.."
|
723 |
+
|
724 |
+
#: ../includes/views/metaboxes/required-form-settings.php:36
|
725 |
+
msgid "Submit Button"
|
726 |
+
msgstr "Botão Enviar"
|
727 |
+
|
728 |
+
#: ../includes/views/metaboxes/required-form-settings.php:37
|
729 |
+
msgid "Lists Choice"
|
730 |
+
msgstr "Escolha de Listas"
|
731 |
+
|
732 |
+
#: ../includes/views/metaboxes/required-form-settings.php:45
|
733 |
+
msgid "Label"
|
734 |
+
msgstr "Etiqueta"
|
735 |
+
|
736 |
+
#: ../includes/views/metaboxes/required-form-settings.php:45
|
737 |
+
#: ../includes/views/metaboxes/required-form-settings.php:50
|
738 |
+
#: ../includes/views/metaboxes/required-form-settings.php:55
|
739 |
+
msgid "(optional)"
|
740 |
+
msgstr "(opcional)"
|
741 |
+
|
742 |
+
#: ../includes/views/metaboxes/required-form-settings.php:50
|
743 |
+
msgid "Placeholder"
|
744 |
+
msgstr "Espaço reservado"
|
745 |
+
|
746 |
+
#: ../includes/views/metaboxes/required-form-settings.php:55
|
747 |
+
msgid "Initial value"
|
748 |
+
msgstr "Valor inicial"
|
749 |
+
|
750 |
+
#: ../includes/views/metaboxes/required-form-settings.php:60
|
751 |
+
msgid "Labels"
|
752 |
+
msgstr "Etiquetas"
|
753 |
+
|
754 |
+
#: ../includes/views/metaboxes/required-form-settings.php:60
|
755 |
+
msgid "(leave empty to hide)"
|
756 |
+
msgstr "(deixe em branco para esconder)"
|
757 |
+
|
758 |
+
#: ../includes/views/metaboxes/required-form-settings.php:65
|
759 |
+
#, php-format
|
760 |
+
msgid "Wrap in paragraph %s tags?"
|
761 |
+
msgstr "amarrar nas tags %s do parágrafo?"
|
762 |
+
|
763 |
+
#: ../includes/views/metaboxes/required-form-settings.php:69
|
764 |
+
msgid "Required field?"
|
765 |
+
msgstr "Campo obrigatório?"
|
766 |
+
|
767 |
+
#: ../includes/views/metaboxes/required-form-settings.php:73
|
768 |
+
msgid "Add to form"
|
769 |
+
msgstr "Adicionar ao formulário"
|
770 |
+
|
771 |
+
#: ../includes/views/metaboxes/required-form-settings.php:77
|
772 |
+
msgid "Generated HTML"
|
773 |
+
msgstr "HTML gerado"
|
774 |
+
|
775 |
+
#: ../includes/views/metaboxes/required-form-settings.php:86
|
776 |
+
msgid "Form usage"
|
777 |
+
msgstr "Uso do formulário"
|
778 |
+
|
779 |
+
#: ../includes/views/metaboxes/required-form-settings.php:87
|
780 |
+
#, php-format
|
781 |
+
msgid ""
|
782 |
+
"Use the shortcode %s to display this form inside a post, page or text widget."
|
783 |
+
msgstr ""
|
784 |
+
"Use o shortcode %s para exibir este formulário dentro de um post, página ou "
|
785 |
+
"um widget de texto."
|
786 |
+
|
787 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:11
|
788 |
+
#: ../includes/views/pages/admin-form-settings.php:10
|
789 |
+
#: ../includes/views/pages/admin-general-settings.php:10
|
790 |
+
#: ../includes/views/pages/admin-reports.php:10
|
791 |
+
msgid "MailChimp for WordPress"
|
792 |
+
msgstr "MailChimp for WordPress"
|
793 |
+
|
794 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:11
|
795 |
+
msgid "Checkbox Settings"
|
796 |
+
msgstr "Configurações do Checkbox"
|
797 |
+
|
798 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:14
|
799 |
+
msgid ""
|
800 |
+
"To use sign-up checkboxes, select at least one list and one form to add the "
|
801 |
+
"checkbox to."
|
802 |
+
msgstr ""
|
803 |
+
"Para usar os checkbox do cadastro, selecione pelo menos uma lista e um "
|
804 |
+
"formulário para adicionar ao checkbox."
|
805 |
+
|
806 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:21
|
807 |
+
msgid "MailChimp settings for checkboxes"
|
808 |
+
msgstr "Configurações MailChimp para checkbox"
|
809 |
+
|
810 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:26
|
811 |
+
msgid ""
|
812 |
+
"If you want to use sign-up checkboxes, select at least one MailChimp list to "
|
813 |
+
"subscribe people to."
|
814 |
+
msgstr ""
|
815 |
+
"Se você deseja usar os checkbox de cadastro, selecione pelo menos uma lista "
|
816 |
+
"MailChimp para cadastrar as pessoas."
|
817 |
+
|
818 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:34
|
819 |
+
msgid "MailChimp Lists"
|
820 |
+
msgstr "Listas MailChimp"
|
821 |
+
|
822 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:45
|
823 |
+
msgid ""
|
824 |
+
"Select the list(s) to which people who check the checkbox should be "
|
825 |
+
"subscribed."
|
826 |
+
msgstr ""
|
827 |
+
"Selecione a(s) lista(s) que as pessoas que marcaram o checkbox serão "
|
828 |
+
"inscritas."
|
829 |
+
|
830 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:68
|
831 |
+
msgid "Checkbox settings"
|
832 |
+
msgstr "configurações de checkbox"
|
833 |
+
|
834 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:71
|
835 |
+
msgid "Add the checkbox to these forms"
|
836 |
+
msgstr "Adicionar o checkbox nestes formulários"
|
837 |
+
|
838 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:78
|
839 |
+
msgid "Selecting a form will automatically add the sign-up checkbox to it."
|
840 |
+
msgstr ""
|
841 |
+
"Selecionando um formulário irá automaticamente adicionar o checkbox de "
|
842 |
+
"cadastro nele."
|
843 |
+
|
844 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:82
|
845 |
+
msgid "Checkbox label text"
|
846 |
+
msgstr "texto de etiqueta do checkbox"
|
847 |
+
|
848 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:85
|
849 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:115
|
850 |
+
#, php-format
|
851 |
+
msgid "HTML tags like %s are allowed in the label text."
|
852 |
+
msgstr "tags HTML como %s são permitidas no texto da etiqueta."
|
853 |
+
|
854 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:89
|
855 |
+
msgid "Pre-check the checkbox?"
|
856 |
+
msgstr "checkbox pré-selecionado?"
|
857 |
+
|
858 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:94
|
859 |
+
msgid "Load some default CSS?"
|
860 |
+
msgstr "Carregar CSS padrão?"
|
861 |
+
|
862 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:96
|
863 |
+
msgid "Select \"yes\" if the checkbox appears in a weird place."
|
864 |
+
msgstr "Selecione \"sim\" se o checkbox aparece num lugar estranho."
|
865 |
+
|
866 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:100
|
867 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:120
|
868 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:48
|
869 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:146
|
870 |
+
msgid "Save all changes"
|
871 |
+
msgstr "Salvar tudo"
|
872 |
+
|
873 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:103
|
874 |
+
msgid "Custom label texts"
|
875 |
+
msgstr "textos customizados de etiquetas"
|
876 |
+
|
877 |
+
#: ../includes/views/pages/admin-checkbox-settings.php:104
|
878 |
+
msgid ""
|
879 |
+
"Override the default checkbox label text for any given checkbox using the "
|
880 |
+
"fields below."
|
881 |
+
msgstr ""
|
882 |
+
"Sobrescreve o texto de etiqueta padrão do checkbox para todos os checkbox "
|
883 |
+
"usados nos campos abaixo."
|
884 |
+
|
885 |
+
#: ../includes/views/pages/admin-form-settings.php:13
|
886 |
+
msgid "Forms & Settings"
|
887 |
+
msgstr "Formulários & Configurações"
|
888 |
+
|
889 |
+
#: ../includes/views/pages/admin-form-settings.php:14
|
890 |
+
msgid "CSS Styles Builder"
|
891 |
+
msgstr "Construtor CSS"
|
892 |
+
|
893 |
+
#: ../includes/views/pages/admin-general-settings.php:10
|
894 |
+
msgid "License & API Settings"
|
895 |
+
msgstr "Config Licenças & API"
|
896 |
+
|
897 |
+
#: ../includes/views/pages/admin-general-settings.php:19
|
898 |
+
msgid "API Settings"
|
899 |
+
msgstr "Config API"
|
900 |
+
|
901 |
+
#: ../includes/views/pages/admin-general-settings.php:21
|
902 |
+
msgid "CONNECTED"
|
903 |
+
msgstr "CONECTADO"
|
904 |
+
|
905 |
+
#: ../includes/views/pages/admin-general-settings.php:23
|
906 |
+
msgid "NOT CONNECTED"
|
907 |
+
msgstr "NÃO CONECTADO"
|
908 |
+
|
909 |
+
#: ../includes/views/pages/admin-general-settings.php:29
|
910 |
+
msgid "API Key"
|
911 |
+
msgstr "Chave API"
|
912 |
+
|
913 |
+
#: ../includes/views/pages/admin-general-settings.php:31
|
914 |
+
msgid "Your MailChimp API key"
|
915 |
+
msgstr "sua chave API MailChimp"
|
916 |
+
|
917 |
+
#: ../includes/views/pages/admin-general-settings.php:32
|
918 |
+
msgid "Get your API key here."
|
919 |
+
msgstr "Pegue sua chave aqui."
|
920 |
+
|
921 |
+
#: ../includes/views/pages/admin-general-settings.php:48
|
922 |
+
msgid "MailChimp Data"
|
923 |
+
msgstr "Dados MailChimp"
|
924 |
+
|
925 |
+
#: ../includes/views/pages/admin-general-settings.php:49
|
926 |
+
msgid ""
|
927 |
+
"The table below shows your MailChimp lists data. If you applied changes to "
|
928 |
+
"your MailChimp lists, please use the following button to renew your cached "
|
929 |
+
"data."
|
930 |
+
msgstr ""
|
931 |
+
"A tabela abaixo mostra os dados de listas MailChimp. Se você aplicou "
|
932 |
+
"alterações nas listas, por favor use o botão abaixo para renovar os dados em "
|
933 |
+
"cache."
|
934 |
+
|
935 |
+
#: ../includes/views/pages/admin-general-settings.php:55
|
936 |
+
#: ../includes/views/pages/admin-general-settings.php:133
|
937 |
+
msgid "Renew MailChimp lists"
|
938 |
+
msgstr "Renovar listas MailChimp"
|
939 |
+
|
940 |
+
#: ../includes/views/pages/admin-general-settings.php:120
|
941 |
+
msgid "No lists were found in your MailChimp account."
|
942 |
+
msgstr "Nenhuma lista encontrada na sua conta."
|
943 |
+
|
944 |
+
#: ../includes/views/pages/admin-reports.php:14
|
945 |
+
msgid "Statistics"
|
946 |
+
msgstr "Estatísticas"
|
947 |
+
|
948 |
+
#: ../includes/views/pages/admin-reports.php:15
|
949 |
+
msgid "Log"
|
950 |
+
msgstr "Log"
|
951 |
+
|
952 |
+
#: ../includes/views/parts/admin-footer.php:8
|
953 |
+
#, php-format
|
954 |
+
msgid ""
|
955 |
+
"Need help? Email me directly at <a href=\"%s\">support@dannyvankooten.com</"
|
956 |
+
"a>. Please include your website URL and as many details as possible."
|
957 |
+
msgstr ""
|
958 |
+
"Precisa de ajuda? envie um email para <a href=\"%s\">support@dannyvankooten."
|
959 |
+
"com</a>. Por favor inclua a URL de seu site e quantos detalhes puder "
|
960 |
+
"fornecer."
|
961 |
+
|
962 |
+
#: ../includes/views/parts/admin-text-variables.php:11
|
963 |
+
msgid "Replaced with the number of subscribers on the selected list(s)"
|
964 |
+
msgstr "Substituido com o número de inscritos na(s) lista(s) selecionada(s)"
|
965 |
+
|
966 |
+
#: ../includes/views/parts/admin-text-variables.php:15
|
967 |
+
msgid "Replaced with the visitor's IP address"
|
968 |
+
msgstr "Substituído com o IP do visitante"
|
969 |
+
|
970 |
+
#: ../includes/views/parts/admin-text-variables.php:19
|
971 |
+
#, php-format
|
972 |
+
msgid "Replaced with the current date (yyyy/mm/dd eg: %s)"
|
973 |
+
msgstr "Substituído com a data atual (yyyy/mm/dd ex: %s)"
|
974 |
+
|
975 |
+
#: ../includes/views/parts/admin-text-variables.php:23
|
976 |
+
#, php-format
|
977 |
+
msgid "Replaced with the current time (hh:mm:ss eg: %s)"
|
978 |
+
msgstr "Substituído com a hora atual (hh:mm:ss ex: %s)"
|
979 |
+
|
980 |
+
#: ../includes/views/parts/admin-text-variables.php:27
|
981 |
+
msgid ""
|
982 |
+
"Replaced with the logged in user's email (or nothing, if there is no logged "
|
983 |
+
"in user)"
|
984 |
+
msgstr ""
|
985 |
+
"Substituído com o email do usuário autenticado (ou nada, se não houver "
|
986 |
+
"usuário autenticado)"
|
987 |
+
|
988 |
+
#: ../includes/views/parts/admin-text-variables.php:31
|
989 |
+
msgid "Display name of the current user"
|
990 |
+
msgstr "Mostra o nome do usuário atual"
|
991 |
+
|
992 |
+
#: ../includes/views/parts/admin-text-variables.php:35
|
993 |
+
msgid "First name of the current user"
|
994 |
+
msgstr "Nome do usuário atual"
|
995 |
+
|
996 |
+
#: ../includes/views/parts/admin-text-variables.php:39
|
997 |
+
msgid "Last name of the current user"
|
998 |
+
msgstr "Sobrenome do usuário atual"
|
999 |
+
|
1000 |
+
#: ../includes/views/parts/admin-text-variables.php:43
|
1001 |
+
msgid "Current user ID"
|
1002 |
+
msgstr "ID do usuário atual"
|
1003 |
+
|
1004 |
+
#: ../includes/views/parts/admin-text-variables.php:47
|
1005 |
+
msgid "Current URL"
|
1006 |
+
msgstr "URL atual"
|
1007 |
+
|
1008 |
+
#: ../includes/views/tabs/admin-forms-css-builder.php:10
|
1009 |
+
msgid "Use the fields below to create custom styling rules for your forms."
|
1010 |
+
msgstr ""
|
1011 |
+
"Use os campos abaixo para criar regras de estilização customizadas para os "
|
1012 |
+
"formulários."
|
1013 |
+
|
1014 |
+
#: ../includes/views/tabs/admin-forms-css-builder.php:214
|
1015 |
+
msgid "Build CSS File"
|
1016 |
+
msgstr "Construir Arquivo CSS"
|
1017 |
+
|
1018 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:8
|
1019 |
+
msgid "Sign-Up Forms"
|
1020 |
+
msgstr "Formulários de Cadastro"
|
1021 |
+
|
1022 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:8
|
1023 |
+
msgid "Create New Form"
|
1024 |
+
msgstr "Criar novo"
|
1025 |
+
|
1026 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:16
|
1027 |
+
msgid "General form settings"
|
1028 |
+
msgstr "Configurações gerais de Formulário"
|
1029 |
+
|
1030 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:19
|
1031 |
+
msgid "Load form styles (CSS)?"
|
1032 |
+
msgstr "Carregar estilos (CSS)?"
|
1033 |
+
|
1034 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:23
|
1035 |
+
msgid "Yes, load basic form styles"
|
1036 |
+
msgstr "Sim, carregue os básicos"
|
1037 |
+
|
1038 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:24
|
1039 |
+
msgid "Yes, load my custom form styles"
|
1040 |
+
msgstr "Sim, carregue os customizados"
|
1041 |
+
|
1042 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:25
|
1043 |
+
msgid "Yes, load default form theme"
|
1044 |
+
msgstr "Sim, carregue o tema padrão"
|
1045 |
+
|
1046 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:26
|
1047 |
+
msgid "Light Theme"
|
1048 |
+
msgstr "Tema claro"
|
1049 |
+
|
1050 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:27
|
1051 |
+
msgid "Red Theme"
|
1052 |
+
msgstr "Tema vermelho"
|
1053 |
+
|
1054 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:28
|
1055 |
+
msgid "Green Theme"
|
1056 |
+
msgstr "Tema Verde"
|
1057 |
+
|
1058 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:29
|
1059 |
+
msgid "Blue Theme"
|
1060 |
+
msgstr "Tema Azul"
|
1061 |
+
|
1062 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:30
|
1063 |
+
msgid "Dark Theme"
|
1064 |
+
msgstr "Tema escuro"
|
1065 |
+
|
1066 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:31
|
1067 |
+
msgid "Custom Color Theme"
|
1068 |
+
msgstr "Tema Cor personalizada"
|
1069 |
+
|
1070 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:36
|
1071 |
+
#, php-format
|
1072 |
+
msgid ""
|
1073 |
+
"If you %screated a custom stylesheet%s and want it to be loaded, select "
|
1074 |
+
"\"custom form styles\". Otherwise, choose the basic formatting styles or one "
|
1075 |
+
"of the default themes."
|
1076 |
+
msgstr ""
|
1077 |
+
"Se você %scriou uma folha de estilos%s e quer que seja carregada, selecione "
|
1078 |
+
"\"estilos customizados\". Caso contrário, escolha a formatação básica ou um "
|
1079 |
+
"tema padrão."
|
1080 |
+
|
1081 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:40
|
1082 |
+
msgid "Select Color"
|
1083 |
+
msgstr "Selecione Cor"
|
1084 |
+
|
1085 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:50
|
1086 |
+
msgid "Default MailChimp settings"
|
1087 |
+
msgstr "Configurações Padrão MailChimp"
|
1088 |
+
|
1089 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:51
|
1090 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:99
|
1091 |
+
msgid ""
|
1092 |
+
"The following settings apply to <strong>all</strong> forms but can be "
|
1093 |
+
"overridden on a per-form basis."
|
1094 |
+
msgstr ""
|
1095 |
+
"As configurações abaixo são aplicadas em <strong>todos</strong> os "
|
1096 |
+
"formulários mas podem ser sobrescritas numa base individual."
|
1097 |
+
|
1098 |
+
#: ../includes/views/tabs/admin-forms-general-settings.php:98
|
1099 |
+
msgid "Default form settings"
|
1100 |
+
msgstr "Configuração padrão de formulário"
|
mailchimp-for-wp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: MailChimp for WordPress Lite
|
4 |
Plugin URI: https://dannyvankooten.com/mailchimp-for-wordpress/
|
5 |
Description: Lite version of MailChimp for WordPress. Adds various sign-up methods to your website.
|
6 |
-
Version: 2.
|
7 |
Author: Danny van Kooten
|
8 |
Author URI: http://dannyvankooten.com
|
9 |
Text Domain: mailchimp-for-wp
|
@@ -47,7 +47,7 @@ function mc4wp_load_plugin() {
|
|
47 |
}
|
48 |
|
49 |
// bootstrap the lite plugin
|
50 |
-
define( 'MC4WP_LITE_VERSION', '2.
|
51 |
define( 'MC4WP_LITE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
52 |
define( 'MC4WP_LITE_PLUGIN_URL', plugins_url( '/' , __FILE__ ) );
|
53 |
define( 'MC4WP_LITE_PLUGIN_FILE', __FILE__ );
|
3 |
Plugin Name: MailChimp for WordPress Lite
|
4 |
Plugin URI: https://dannyvankooten.com/mailchimp-for-wordpress/
|
5 |
Description: Lite version of MailChimp for WordPress. Adds various sign-up methods to your website.
|
6 |
+
Version: 2.1
|
7 |
Author: Danny van Kooten
|
8 |
Author URI: http://dannyvankooten.com
|
9 |
Text Domain: mailchimp-for-wp
|
47 |
}
|
48 |
|
49 |
// bootstrap the lite plugin
|
50 |
+
define( 'MC4WP_LITE_VERSION', '2.1' );
|
51 |
define( 'MC4WP_LITE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
52 |
define( 'MC4WP_LITE_PLUGIN_URL', plugins_url( '/' , __FILE__ ) );
|
53 |
define( 'MC4WP_LITE_PLUGIN_FILE', __FILE__ );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://dannyvankooten.com/mailchimp-for-wordpress/
|
|
4 |
Tags: mailchimp,form,shortcode,widget,checkbox,comment,newsletter,buddypress,multisite,bbpress,woocommerce,easy digital downloads,contact form,contact form 7
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -51,6 +51,7 @@ Add sign-up checkboxes to *any* form on your website. The plugin offers built-in
|
|
51 |
- English (en_US) - Danny van Kooten
|
52 |
- Dutch (nl_NL) - Danny van Kooten
|
53 |
- Spanish (es_ES) - [Paul Benitez - Tecnofilos](http://www.tecnofilos.net/)
|
|
|
54 |
|
55 |
If you have created your own language pack (or have an update of an existing one) you can send in your .PO and .MO files so we can bundle it into MailChimp for WordPress. You can [download the latest POT file](http://plugins.svn.wordpress.org/mailchimp-for-wp/trunk/languages/mailchimp-for-wp.po), and [PO files in each language](http://plugins.svn.wordpress.org/mailchimp-for-wp/trunk/languages/).
|
56 |
|
@@ -217,6 +218,26 @@ Your theme folder can be found by browsing to `/wp-content/themes/your-theme-nam
|
|
217 |
|
218 |
== Changelog ==
|
219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
= 2.0.5 - July 21, 2014 =
|
221 |
|
222 |
**Improvements**
|
@@ -460,5 +481,5 @@ Your theme folder can be found by browsing to `/wp-content/themes/your-theme-nam
|
|
460 |
|
461 |
== Upgrade Notice ==
|
462 |
|
463 |
-
= 2.
|
464 |
-
|
4 |
Tags: mailchimp,form,shortcode,widget,checkbox,comment,newsletter,buddypress,multisite,bbpress,woocommerce,easy digital downloads,contact form,contact form 7
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
51 |
- English (en_US) - Danny van Kooten
|
52 |
- Dutch (nl_NL) - Danny van Kooten
|
53 |
- Spanish (es_ES) - [Paul Benitez - Tecnofilos](http://www.tecnofilos.net/)
|
54 |
+
- Brazilian (pt_BR) - [Felipe Scuissiatto - Evonline](http://www.evonline.com.br/)
|
55 |
|
56 |
If you have created your own language pack (or have an update of an existing one) you can send in your .PO and .MO files so we can bundle it into MailChimp for WordPress. You can [download the latest POT file](http://plugins.svn.wordpress.org/mailchimp-for-wp/trunk/languages/mailchimp-for-wp.po), and [PO files in each language](http://plugins.svn.wordpress.org/mailchimp-for-wp/trunk/languages/).
|
57 |
|
218 |
|
219 |
== Changelog ==
|
220 |
|
221 |
+
= 2.1 - July 29, 2014 =
|
222 |
+
|
223 |
+
**Fixes**
|
224 |
+
|
225 |
+
- Some fields lost its value when a form error occured
|
226 |
+
|
227 |
+
**Improvements**
|
228 |
+
|
229 |
+
- Minified all CSS and JS files
|
230 |
+
- Required MailChimp fields are now validated server side as well.
|
231 |
+
- Birthday and address fields are now automatically formatted in the correct format
|
232 |
+
- Improved code, memory usage and class documentation
|
233 |
+
|
234 |
+
**Additions**
|
235 |
+
|
236 |
+
- Brazilian translations, thanks to [Felipe Scuissiatto of Evonline](http://www.evonline.com.br/)
|
237 |
+
- `mc4wp_form_messages` filter to register custom error messages
|
238 |
+
- `mc4wp_form_message_position` filter to set position of error messages (before or after fields)
|
239 |
+
- Option to set the text for when a required field is missing
|
240 |
+
|
241 |
= 2.0.5 - July 21, 2014 =
|
242 |
|
243 |
**Improvements**
|
481 |
|
482 |
== Upgrade Notice ==
|
483 |
|
484 |
+
= 2.1 =
|
485 |
+
Improved server-side field validation, minified all assets, added Brazilian translations.
|