Contact Form 7 - Version 1.7.7

Version Description

Download this release

Release Info

Developer takayukister
Plugin Icon 128x128 Contact Form 7
Version 1.7.7
Comparing to
See all releases

Code changes from version 1.7.6.1 to 1.7.7

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: takayukister
3
Donate link: http://takayukister.chipin.com/contact-form-7-20
4
Tags: contact form, email, ajax, captcha, akismet
5
Requires at least: 2.2
6
- Tested up to: 2.5-RC1.1
7
- Stable tag: 1.7.6.1
8
9
Just another contact form plugin. Simple but flexible.
10
@@ -23,10 +23,12 @@ Just another contact form plugin. Simple but flexible.
23
1. Upload whole `contact-form-7` folder to the `/wp-content/plugins/` directory
24
1. Activate the plugin through the 'Plugins' menu in WordPress
25
26
- See also: [plugin homepage](http://ideasilo.wordpress.com/2007/04/30/contact-form-7/)
27
28
== Frequently Asked Questions ==
29
30
If you have questions about Contact Form 7,
31
please submit it [to the support forum](http://wordpress.org/tags/contact-form-7#postform) or
32
comment [on my blog](http://ideasilo.wordpress.com/2007/04/30/contact-form-7/).
@@ -43,15 +45,18 @@ Contact Form 7 has been translated into the following languages.
43
* Bulgarian, by [Iliyan Darganov](http://www.darganov.com/)
44
* Catalan, by [Jordi Sancho](http://www.qasolutions.net/blog)
45
* Czech, by Korry
46
* Dutch, by [Chris Devriese](http://www.100it.be/)
47
* French, by [Jillij](http://www.jillij.com/)
48
* German, by [Marcel Spitau](http://blog.spitau.de)
49
* Italian, by [Bruno](http://www.brunosalzano.com)
50
* Japanese, by [Takayuki Miyoshi](http://ideasilo.wordpress.com) (plugin author)
51
* Norwegian, by Kjetil M. Bergem
52
* Polish, by [Zbigniew Czernik](http://zibik.jogger.pl/)
53
* Russian, by [Dmitry Volotovich](http://www.volnov.com)
54
* Spanish, by [Jordi Sancho](http://www.qasolutions.net/blog)
55
* Turkish, by [Roman Neumuller](http://katpatuka.wordpress.com)
56
57
These language files are included in the plugin.
3
Donate link: http://takayukister.chipin.com/contact-form-7-20
4
Tags: contact form, email, ajax, captcha, akismet
5
Requires at least: 2.2
6
+ Tested up to: 2.6-bleeding
7
+ Stable tag: 1.7.7
8
9
Just another contact form plugin. Simple but flexible.
10
23
1. Upload whole `contact-form-7` folder to the `/wp-content/plugins/` directory
24
1. Activate the plugin through the 'Plugins' menu in WordPress
25
26
+ See also: [plugin homepage](http://ideasilo.wordpress.com/2007/04/30/contact-form-7/) and [FAQ](http://ideasilo.wordpress.com/2008/03/29/contact-form-7-faq/)
27
28
== Frequently Asked Questions ==
29
30
+ See [Contact Form 7 FAQ](http://ideasilo.wordpress.com/2008/03/29/contact-form-7-faq/)
31
+
32
If you have questions about Contact Form 7,
33
please submit it [to the support forum](http://wordpress.org/tags/contact-form-7#postform) or
34
comment [on my blog](http://ideasilo.wordpress.com/2007/04/30/contact-form-7/).
45
* Bulgarian, by [Iliyan Darganov](http://www.darganov.com/)
46
* Catalan, by [Jordi Sancho](http://www.qasolutions.net/blog)
47
* Czech, by Korry
48
+ * Danish, by [Jens Griebel](http://www.kompas-it.dk/)
49
* Dutch, by [Chris Devriese](http://www.100it.be/)
50
* French, by [Jillij](http://www.jillij.com/)
51
* German, by [Marcel Spitau](http://blog.spitau.de)
52
* Italian, by [Bruno](http://www.brunosalzano.com)
53
* Japanese, by [Takayuki Miyoshi](http://ideasilo.wordpress.com) (plugin author)
54
+ * Latvian, by [Sandis Veinbergs](http://www.kleofass.lv/)
55
* Norwegian, by Kjetil M. Bergem
56
* Polish, by [Zbigniew Czernik](http://zibik.jogger.pl/)
57
* Russian, by [Dmitry Volotovich](http://www.volnov.com)
58
* Spanish, by [Jordi Sancho](http://www.qasolutions.net/blog)
59
+ * Swedish, by [Fredrik Jonsson](http://www.fredda-o-ac.se/)
60
* Turkish, by [Roman Neumuller](http://katpatuka.wordpress.com)
61
62
These language files are included in the plugin.
contact-form-7.js CHANGED
@@ -40,16 +40,16 @@ function wpcf7BeforeSubmit(formData, jqForm, options) {
40
return true;
41
}
42
43
- function wpcf7NotValidTip(input, message) {
44
- jQuery(input).after('<span class="wpcf7-not-valid-tip">' + message + '</span>');
45
jQuery('span.wpcf7-not-valid-tip').mouseover(function() {
46
jQuery(this).fadeOut('fast');
47
});
48
- jQuery(input).mouseover(function() {
49
- jQuery(input).siblings('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
50
});
51
- jQuery(input).focus(function() {
52
- jQuery(input).siblings('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
53
});
54
}
55
40
return true;
41
}
42
43
+ function wpcf7NotValidTip(into, message) {
44
+ jQuery(into).append('<span class="wpcf7-not-valid-tip">' + message + '</span>');
45
jQuery('span.wpcf7-not-valid-tip').mouseover(function() {
46
jQuery(this).fadeOut('fast');
47
});
48
+ jQuery(into).find(':input').mouseover(function() {
49
+ jQuery(into).find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
50
});
51
+ jQuery(into).find(':input').focus(function() {
52
+ jQuery(into).find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
53
});
54
}
55
languages/wpcf7-da_DK.mo ADDED
Binary file
languages/wpcf7-da_DK.po ADDED
@@ -0,0 +1,308 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Contact Form 7\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-03-29 18:22+0900\n"
6
+ "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
7
+ "Language-Team: Kjetil M. Bergem\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-SourceCharset: utf-8\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: ../..\n"
14
+ "X-Poedit-Language: Danish\n"
15
+ "X-Poedit-Country: DENMARK\n"
16
+ "X-Poedit-SearchPath-0: contact-form-7\n"
17
+
18
+ #: contact-form-7/wp-contact-form-7.php:271
19
+ msgid "Contact form"
20
+ msgstr "Contact form"
21
+
22
+ #: contact-form-7/wp-contact-form-7.php:356
23
+ #: contact-form-7/includes/admin-panel.php:5
24
+ msgid "Contact Form 7"
25
+ msgstr "Contact Form 7"
26
+
27
+ #: contact-form-7/wp-contact-form-7.php:372
28
+ msgid "optional"
29
+ msgstr "valgfrit"
30
+
31
+ #: contact-form-7/wp-contact-form-7.php:373
32
+ msgid "Generate Tag"
33
+ msgstr "Lav stikord"
34
+
35
+ #: contact-form-7/wp-contact-form-7.php:374
36
+ msgid "Text field"
37
+ msgstr "Tekstfelt"
38
+
39
+ #: contact-form-7/wp-contact-form-7.php:375
40
+ msgid "Email field"
41
+ msgstr "Email felt"
42
+
43
+ #: contact-form-7/wp-contact-form-7.php:376
44
+ msgid "Text area"
45
+ msgstr "Tekstboks"
46
+
47
+ #: contact-form-7/wp-contact-form-7.php:377
48
+ msgid "Drop-down menu"
49
+ msgstr "Drop-down menu"
50
+
51
+ #: contact-form-7/wp-contact-form-7.php:378
52
+ msgid "Checkboxes"
53
+ msgstr ""
54
+
55
+ #: contact-form-7/wp-contact-form-7.php:379
56
+ msgid "Radio buttons"
57
+ msgstr "Radio buttons"
58
+
59
+ #: contact-form-7/wp-contact-form-7.php:380
60
+ msgid "Acceptance"
61
+ msgstr ""
62
+
63
+ #: contact-form-7/wp-contact-form-7.php:381
64
+ msgid "Make this checkbox checked by default?"
65
+ msgstr ""
66
+
67
+ #: contact-form-7/wp-contact-form-7.php:382
68
+ msgid "Make this checkbox work inversely?"
69
+ msgstr ""
70
+
71
+ #: contact-form-7/wp-contact-form-7.php:383
72
+ msgid "* That means visitor who accepts the term unchecks it."
73
+ msgstr ""
74
+
75
+ #: contact-form-7/wp-contact-form-7.php:384
76
+ msgid "CAPTCHA"
77
+ msgstr "CAPTCHA"
78
+
79
+ #: contact-form-7/wp-contact-form-7.php:385
80
+ msgid "Submit button"
81
+ msgstr "Send"
82
+
83
+ #: contact-form-7/wp-contact-form-7.php:386
84
+ msgid "Name"
85
+ msgstr "Navn"
86
+
87
+ #: contact-form-7/wp-contact-form-7.php:387
88
+ msgid "Required field?"
89
+ msgstr "Påkrævet felt"
90
+
91
+ #: contact-form-7/wp-contact-form-7.php:388
92
+ msgid "Allow multiple selections?"
93
+ msgstr ""
94
+
95
+ #: contact-form-7/wp-contact-form-7.php:389
96
+ msgid "Insert a blank item as the first option?"
97
+ msgstr ""
98
+
99
+ #: contact-form-7/wp-contact-form-7.php:390
100
+ msgid "Make checkboxes exclusive?"
101
+ msgstr ""
102
+
103
+ #: contact-form-7/wp-contact-form-7.php:391
104
+ msgid "Choices"
105
+ msgstr "Valg"
106
+
107
+ #: contact-form-7/wp-contact-form-7.php:392
108
+ msgid "Label"
109
+ msgstr "Mærke"
110
+
111
+ #: contact-form-7/wp-contact-form-7.php:393
112
+ msgid "Default value"
113
+ msgstr "Standardværdi"
114
+
115
+ #: contact-form-7/wp-contact-form-7.php:394
116
+ msgid "Akismet"
117
+ msgstr "Akismet"
118
+
119
+ #: contact-form-7/wp-contact-form-7.php:395
120
+ msgid "This field requires author's name"
121
+ msgstr "Skriv venligst dit navn"
122
+
123
+ #: contact-form-7/wp-contact-form-7.php:396
124
+ msgid "This field requires author's URL"
125
+ msgstr "Skriv venligst din URL"
126
+
127
+ #: contact-form-7/wp-contact-form-7.php:397
128
+ msgid "This field requires author's email address"
129
+ msgstr "Skriv venligst din email adresse"
130
+
131
+ #: contact-form-7/wp-contact-form-7.php:398
132
+ msgid "Copy and paste this code into the form"
133
+ msgstr "Kopier og indsæt denne kode i formularen"
134
+
135
+ #: contact-form-7/wp-contact-form-7.php:399
136
+ msgid "Foreground color"
137
+ msgstr "Forgrundsfarve"
138
+
139
+ #: contact-form-7/wp-contact-form-7.php:400
140
+ msgid "Background color"
141
+ msgstr "Bakgrundsfarve"
142
+
143
+ #: contact-form-7/wp-contact-form-7.php:401
144
+ msgid "Image size"
145
+ msgstr "Bildestørrelse"
146
+
147
+ #: contact-form-7/wp-contact-form-7.php:402
148
+ msgid "Small"
149
+ msgstr "Lille"
150
+
151
+ #: contact-form-7/wp-contact-form-7.php:403
152
+ msgid "Medium"
153
+ msgstr "Medium"
154
+
155
+ #: contact-form-7/wp-contact-form-7.php:404
156
+ msgid "Large"
157
+ msgstr "Stor"
158
+
159
+ #: contact-form-7/wp-contact-form-7.php:405
160
+ msgid "Image settings"
161
+ msgstr "Billedeindstillinger"
162
+
163
+ #: contact-form-7/wp-contact-form-7.php:406
164
+ msgid "Input field settings"
165
+ msgstr "Indstillinger for feltet"
166
+
167
+ #: contact-form-7/wp-contact-form-7.php:407
168
+ msgid "For image"
169
+ msgstr "For billedet"
170
+
171
+ #: contact-form-7/wp-contact-form-7.php:408
172
+ msgid "For input field"
173
+ msgstr "For indtastningsfeltet"
174
+
175
+ #: contact-form-7/wp-contact-form-7.php:409
176
+ msgid "* One choice per line."
177
+ msgstr "* Et valg per linje."
178
+
179
+ #: contact-form-7/wp-contact-form-7.php:428
180
+ msgid "Contact form created."
181
+ msgstr "Kontakt formular oprettet."
182
+
183
+ #: contact-form-7/wp-contact-form-7.php:431
184
+ msgid "Contact form saved."
185
+ msgstr "Kontakt formular gemt."
186
+
187
+ #: contact-form-7/wp-contact-form-7.php:434
188
+ msgid "Contact form deleted."
189
+ msgstr "KKontakt formular slettet."
190
+
191
+ #: contact-form-7/wp-contact-form-7.php:441
192
+ msgid "Untitled"
193
+ msgstr "Uden tittel"
194
+
195
+ #: contact-form-7/wp-contact-form-7.php:465
196
+ msgid "Your Name"
197
+ msgstr "Dit navn"
198
+
199
+ #: contact-form-7/wp-contact-form-7.php:465
200
+ #: contact-form-7/wp-contact-form-7.php:467
201
+ msgid "(required)"
202
+ msgstr "(påkrævet)"
203
+
204
+ #: contact-form-7/wp-contact-form-7.php:467
205
+ msgid "Your Email"
206
+ msgstr "Din email"
207
+
208
+ #: contact-form-7/wp-contact-form-7.php:469
209
+ msgid "Subject"
210
+ msgstr "Emne"
211
+
212
+ #: contact-form-7/wp-contact-form-7.php:471
213
+ msgid "Your Message"
214
+ msgstr "Din besked"
215
+
216
+ #: contact-form-7/wp-contact-form-7.php:473
217
+ #: contact-form-7/wp-contact-form-7.php:956
218
+ msgid "Send"
219
+ msgstr "Send"
220
+
221
+ #: contact-form-7/wp-contact-form-7.php:502
222
+ msgid "Your message was sent successfully. Thanks."
223
+ msgstr "Din besked blev sendt. Tak."
224
+
225
+ #: contact-form-7/wp-contact-form-7.php:504
226
+ msgid "Failed to send your message. Please try later or contact administrator by other way."
227
+ msgstr "Beskeden blev ikke sendt. Prøv venligst senere eller kontakt administratoren på en anden måde. "
228
+
229
+ #: contact-form-7/wp-contact-form-7.php:506
230
+ msgid "Validation errors occurred. Please confirm the fields and submit it again."
231
+ msgstr "Fejl ved validering. Gennemgå venligst felter og send det igen"
232
+
233
+ #: contact-form-7/wp-contact-form-7.php:508
234
+ msgid "Please accept the terms to proceed."
235
+ msgstr ""
236
+
237
+ #: contact-form-7/wp-contact-form-7.php:510
238
+ msgid "Email address seems invalid."
239
+ msgstr "Email adressen er ikke gyldig."
240
+
241
+ #: contact-form-7/wp-contact-form-7.php:512
242
+ msgid "Please fill the required field."
243
+ msgstr "Udfyld venligst de påkrævede felter."
244
+
245
+ #: contact-form-7/wp-contact-form-7.php:514
246
+ msgid "Your entered code is incorrect."
247
+ msgstr "Din indtastede kode er forkert."
248
+
249
+ #: contact-form-7/includes/admin-panel.php:15
250
+ msgid "Add new"
251
+ msgstr "Tilføj"
252
+
253
+ #: contact-form-7/includes/admin-panel.php:28
254
+ msgid "Copy and paste this code into your post content."
255
+ msgstr "Kopier og indsæt denne kode i dit indlæg."
256
+
257
+ #: contact-form-7/includes/admin-panel.php:33
258
+ msgid "Form"
259
+ msgstr "Formular"
260
+
261
+ #: contact-form-7/includes/admin-panel.php:37
262
+ msgid "Mail"
263
+ msgstr "Email"
264
+
265
+ #: contact-form-7/includes/admin-panel.php:39
266
+ #: contact-form-7/includes/admin-panel.php:60
267
+ msgid "To:"
268
+ msgstr "Til:"
269
+
270
+ #: contact-form-7/includes/admin-panel.php:43
271
+ #: contact-form-7/includes/admin-panel.php:64
272
+ msgid "From:"
273
+ msgstr "Fra:"
274
+
275
+ #: contact-form-7/includes/admin-panel.php:47
276
+ #: contact-form-7/includes/admin-panel.php:68
277
+ msgid "Subject:"
278
+ msgstr "Emne:"
279
+
280
+ #: contact-form-7/includes/admin-panel.php:51
281
+ #: contact-form-7/includes/admin-panel.php:72
282
+ msgid "Message body:"
283
+ msgstr "Besked:"
284
+
285
+ #: contact-form-7/includes/admin-panel.php:56
286
+ msgid "Mail (2)"
287
+ msgstr "Email (2)"
288
+
289
+ #: contact-form-7/includes/admin-panel.php:58
290
+ msgid "Use mail (2)"
291
+ msgstr "Brug email (2)"
292
+
293
+ #: contact-form-7/includes/admin-panel.php:80
294
+ msgid "Save"
295
+ msgstr "Gem"
296
+
297
+ #: contact-form-7/includes/admin-panel.php:86
298
+ msgid "Delete this contact form"
299
+ msgstr "Slet denne kontakt formular"
300
+
301
+ #: contact-form-7/includes/admin-panel.php:87
302
+ msgid ""
303
+ "You are about to delete this contact form.\n"
304
+ " 'Cancel' to stop, 'OK' to delete."
305
+ msgstr ""
306
+ "Du er ved at slette din kontakt formular.\n"
307
+ "Tryk 'Afbryd' for at stoppe, 'OK' for at slette."
308
+
languages/wpcf7-lv.mo ADDED
Binary file
languages/wpcf7-lv.po ADDED
@@ -0,0 +1,305 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: wpcf7-lv_LV\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-03-29 18:18+0900\n"
6
+ "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
7
+ "Language-Team: Kleofass.lv <spam@kleofass.lv>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: Latvian\n"
12
+ "X-Poedit-Country: LATVIA\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+
15
+ #: contact-form-7/wp-contact-form-7.php:271
16
+ msgid "Contact form"
17
+ msgstr "Kontaktu forma"
18
+
19
+ #: contact-form-7/wp-contact-form-7.php:356
20
+ #: contact-form-7/includes/admin-panel.php:5
21
+ msgid "Contact Form 7"
22
+ msgstr "Kontaktu Forma 7"
23
+
24
+ #: contact-form-7/wp-contact-form-7.php:372
25
+ msgid "optional"
26
+ msgstr "neobligāts"
27
+
28
+ #: contact-form-7/wp-contact-form-7.php:373
29
+ msgid "Generate Tag"
30
+ msgstr "Ģenerēt Birku"
31
+
32
+ #: contact-form-7/wp-contact-form-7.php:374
33
+ msgid "Text field"
34
+ msgstr "Teksta lauks"
35
+
36
+ #: contact-form-7/wp-contact-form-7.php:375
37
+ msgid "Email field"
38
+ msgstr "E-pasta lauks"
39
+
40
+ #: contact-form-7/wp-contact-form-7.php:376
41
+ msgid "Text area"
42
+ msgstr "Teksta apgabals"
43
+
44
+ #: contact-form-7/wp-contact-form-7.php:377
45
+ msgid "Drop-down menu"
46
+ msgstr "Nolaižamā izvēlne"
47
+
48
+ #: contact-form-7/wp-contact-form-7.php:378
49
+ msgid "Checkboxes"
50
+ msgstr "Izvēles rūtiņas"
51
+
52
+ #: contact-form-7/wp-contact-form-7.php:379
53
+ msgid "Radio buttons"
54
+ msgstr "Radio pogas"
55
+
56
+ #: contact-form-7/wp-contact-form-7.php:380
57
+ msgid "Acceptance"
58
+ msgstr "Pieņemšana"
59
+
60
+ #: contact-form-7/wp-contact-form-7.php:381
61
+ msgid "Make this checkbox checked by default?"
62
+ msgstr "Izveidot pēc noklusējuma, kā atzīmētu šo izvēles rūtiņu?"
63
+
64
+ #: contact-form-7/wp-contact-form-7.php:382
65
+ msgid "Make this checkbox work inversely?"
66
+ msgstr "Izveidot šo rūtiņu kā pretēji proporcionālu?"
67
+
68
+ #: contact-form-7/wp-contact-form-7.php:383
69
+ msgid "* That means visitor who accepts the term unchecks it."
70
+ msgstr "* Tas nozīmē, ka apmeklētājam ir jāizķeksē to, lai apstiprinātu noteikumus."
71
+
72
+ #: contact-form-7/wp-contact-form-7.php:384
73
+ msgid "CAPTCHA"
74
+ msgstr "CAPTCHA"
75
+
76
+ #: contact-form-7/wp-contact-form-7.php:385
77
+ msgid "Submit button"
78
+ msgstr "Apstiprināšanas poga"
79
+
80
+ #: contact-form-7/wp-contact-form-7.php:386
81
+ msgid "Name"
82
+ msgstr "Vārds"
83
+
84
+ #: contact-form-7/wp-contact-form-7.php:387
85
+ msgid "Required field?"
86
+ msgstr "Nepieciešamais lauks?"
87
+
88
+ #: contact-form-7/wp-contact-form-7.php:388
89
+ msgid "Allow multiple selections?"
90
+ msgstr "Atļaut daudzkārtīgas izvēles?"
91
+
92
+ #: contact-form-7/wp-contact-form-7.php:389
93
+ msgid "Insert a blank item as the first option?"
94
+ msgstr "Ievietot tukšu ziņu, kā pirmo izvēli?"
95
+
96
+ #: contact-form-7/wp-contact-form-7.php:390
97
+ msgid "Make checkboxes exclusive?"
98
+ msgstr "Izveidot izvēles rūtiņas, kā izņēmumus?"
99
+
100
+ #: contact-form-7/wp-contact-form-7.php:391
101
+ msgid "Choices"
102
+ msgstr "Izvēles"
103
+
104
+ #: contact-form-7/wp-contact-form-7.php:392
105
+ msgid "Label"
106
+ msgstr "Etiķete"
107
+
108
+ #: contact-form-7/wp-contact-form-7.php:393
109
+ msgid "Default value"
110
+ msgstr "Noklusējuma vērtība"
111
+
112
+ #: contact-form-7/wp-contact-form-7.php:394
113
+ msgid "Akismet"
114
+ msgstr "Akismet"
115
+
116
+ #: contact-form-7/wp-contact-form-7.php:395
117
+ msgid "This field requires author's name"
118
+ msgstr "Šajā laukā nepieciešams autora vārds"
119
+
120
+ #: contact-form-7/wp-contact-form-7.php:396
121
+ msgid "This field requires author's URL"
122
+ msgstr "Šajā laukā nepieciešams autora URL"
123
+
124
+ #: contact-form-7/wp-contact-form-7.php:397
125
+ msgid "This field requires author's email address"
126
+ msgstr "Šajā laukā nepieciešama autora e-pasta adrese"
127
+
128
+ #: contact-form-7/wp-contact-form-7.php:398
129
+ msgid "Copy and paste this code into the form"
130
+ msgstr "Nokopēt un ievietot šo kodu formā"
131
+
132
+ #: contact-form-7/wp-contact-form-7.php:399
133
+ msgid "Foreground color"
134
+ msgstr "Priekšplāna krāsa"
135
+
136
+ #: contact-form-7/wp-contact-form-7.php:400
137
+ msgid "Background color"
138
+ msgstr "Fona krāsa"
139
+
140
+ #: contact-form-7/wp-contact-form-7.php:401
141
+ msgid "Image size"
142
+ msgstr "Bildes izmērs"
143
+
144
+ #: contact-form-7/wp-contact-form-7.php:402
145
+ msgid "Small"
146
+ msgstr "Mazs"
147
+
148
+ #: contact-form-7/wp-contact-form-7.php:403
149
+ msgid "Medium"
150
+ msgstr "Vidējs"
151
+
152
+ #: contact-form-7/wp-contact-form-7.php:404
153
+ msgid "Large"
154
+ msgstr "Liels"
155
+
156
+ #: contact-form-7/wp-contact-form-7.php:405
157
+ msgid "Image settings"
158
+ msgstr "Bildes iestatījumi"
159
+
160
+ #: contact-form-7/wp-contact-form-7.php:406
161
+ msgid "Input field settings"
162
+ msgstr "Ievadlauka iestatījumi"
163
+
164
+ #: contact-form-7/wp-contact-form-7.php:407
165
+ msgid "For image"
166
+ msgstr "Priekš bildes"
167
+
168
+ #: contact-form-7/wp-contact-form-7.php:408
169
+ msgid "For input field"
170
+ msgstr "Priekš ievadlauka"
171
+
172
+ #: contact-form-7/wp-contact-form-7.php:409
173
+ msgid "* One choice per line."
174
+ msgstr "* Viena izvēle uz līniju."
175
+
176
+ #: contact-form-7/wp-contact-form-7.php:428
177
+ msgid "Contact form created."
178
+ msgstr "Kontaktu forma izveidota."
179
+
180
+ #: contact-form-7/wp-contact-form-7.php:431
181
+ msgid "Contact form saved."
182
+ msgstr "Kontaktu forma saglabāta."
183
+
184
+ #: contact-form-7/wp-contact-form-7.php:434
185
+ msgid "Contact form deleted."
186
+ msgstr "Kontaktu forma dzēsta."
187
+
188
+ #: contact-form-7/wp-contact-form-7.php:441
189
+ msgid "Untitled"
190
+ msgstr "Bez nosaukuma"
191
+
192
+ #: contact-form-7/wp-contact-form-7.php:465
193
+ msgid "Your Name"
194
+ msgstr "Jūsu Vārds"
195
+
196
+ #: contact-form-7/wp-contact-form-7.php:465
197
+ #: contact-form-7/wp-contact-form-7.php:467
198
+ msgid "(required)"
199
+ msgstr "(nepieciešams)"
200
+
201
+ #: contact-form-7/wp-contact-form-7.php:467
202
+ msgid "Your Email"
203
+ msgstr "Jūsu E-pasts"
204
+
205
+ #: contact-form-7/wp-contact-form-7.php:469
206
+ msgid "Subject"
207
+ msgstr "Temats"
208
+
209
+ #: contact-form-7/wp-contact-form-7.php:471
210
+ msgid "Your Message"
211
+ msgstr "Jūsu Ziņa"
212
+
213
+ #: contact-form-7/wp-contact-form-7.php:473
214
+ #: contact-form-7/wp-contact-form-7.php:956
215
+ msgid "Send"
216
+ msgstr "Nosūtīt"
217
+
218
+ #: contact-form-7/wp-contact-form-7.php:502
219
+ msgid "Your message was sent successfully. Thanks."
220
+ msgstr "Jūsu ziņa ir veiksmīgi nosūtīta. Paldies."
221
+
222
+ #: contact-form-7/wp-contact-form-7.php:504
223
+ msgid "Failed to send your message. Please try later or contact administrator by other way."
224
+ msgstr "Kļūda nosūtot jūsu ziņu. Lūdzu mēģiniet vēlāk vai sazinieties ar administratoru citādā veidā."
225
+
226
+ #: contact-form-7/wp-contact-form-7.php:506
227
+ msgid "Validation errors occurred. Please confirm the fields and submit it again."
228
+ msgstr "Atgadījās apstiprināšanas kļūda. Lūdzu apstipriniet laukus un nosūtiet to atkal."
229
+
230
+ #: contact-form-7/wp-contact-form-7.php:508
231
+ msgid "Please accept the terms to proceed."
232
+ msgstr "Lūdzu apstipriniet noteikumus, lai turpinātu."
233
+
234
+ #: contact-form-7/wp-contact-form-7.php:510
235
+ msgid "Email address seems invalid."
236
+ msgstr "E-pasta adrese ir nederīga."
237
+
238
+ #: contact-form-7/wp-contact-form-7.php:512
239
+ msgid "Please fill the required field."
240
+ msgstr "Lūdzu aizpildiet nepieciešamos laukus."
241
+
242
+ #: contact-form-7/wp-contact-form-7.php:514
243
+ msgid "Your entered code is incorrect."
244
+ msgstr "Jūsu ievadītais kods ir nekorekts."
245
+
246
+ #: contact-form-7/includes/admin-panel.php:15
247
+ msgid "Add new"
248
+ msgstr "Pievienot jaunu"
249
+
250
+ #: contact-form-7/includes/admin-panel.php:28
251
+ msgid "Copy and paste this code into your post content."
252
+ msgstr "Nokopēt un ievietot šo kodu jūsu ziņas saturā."
253
+
254
+ #: contact-form-7/includes/admin-panel.php:33
255
+ msgid "Form"
256
+ msgstr "Forma"
257
+
258
+ #: contact-form-7/includes/admin-panel.php:37
259
+ msgid "Mail"
260
+ msgstr "E-pasts"
261
+
262
+ #: contact-form-7/includes/admin-panel.php:39
263
+ #: contact-form-7/includes/admin-panel.php:60
264
+ msgid "To:"
265
+ msgstr "Kam:"
266
+
267
+ #: contact-form-7/includes/admin-panel.php:43
268
+ #: contact-form-7/includes/admin-panel.php:64
269
+ msgid "From:"
270
+ msgstr "No:"
271
+
272
+ #: contact-form-7/includes/admin-panel.php:47
273
+ #: contact-form-7/includes/admin-panel.php:68
274
+ msgid "Subject:"
275
+ msgstr "Temats:"
276
+
277
+ #: contact-form-7/includes/admin-panel.php:51
278
+ #: contact-form-7/includes/admin-panel.php:72
279
+ msgid "Message body:"
280
+ msgstr "Ziņa:"
281
+
282
+ #: contact-form-7/includes/admin-panel.php:56
283
+ msgid "Mail (2)"
284
+ msgstr "E-pasts (2)"
285
+
286
+ #: contact-form-7/includes/admin-panel.php:58
287
+ msgid "Use mail (2)"
288
+ msgstr "Lietot e-pastu (2)"
289
+
290
+ #: contact-form-7/includes/admin-panel.php:80
291
+ msgid "Save"
292
+ msgstr "Saglabāt"
293
+
294
+ #: contact-form-7/includes/admin-panel.php:86
295
+ msgid "Delete this contact form"
296
+ msgstr "Dzēst šo kontaktu formu"
297
+
298
+ #: contact-form-7/includes/admin-panel.php:87
299
+ msgid ""
300
+ "You are about to delete this contact form.\n"
301
+ " 'Cancel' to stop, 'OK' to delete."
302
+ msgstr ""
303
+ "Tiks izdzēsta šī kontaktu forma.\n"
304
+ " 'Cancel' - lai apturētu, 'OK' - lai dzēstu."
305
+
languages/wpcf7-sv_SE.mo ADDED
Binary file
languages/wpcf7-sv_SE.po ADDED
@@ -0,0 +1,306 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Contact Form 7\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-03-02 16:52+0900\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Swedish\n"
13
+ "X-Poedit-Country: SWEDEN\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+
16
+ #: contact-form-7/wp-contact-form-7.php:271
17
+ msgid "Contact form"
18
+ msgstr "Kontaktformulär"
19
+
20
+ #: contact-form-7/wp-contact-form-7.php:356
21
+ #: contact-form-7/includes/admin-panel.php:5
22
+ msgid "Contact Form 7"
23
+ msgstr "Contact Form 7"
24
+
25
+ #: contact-form-7/wp-contact-form-7.php:372
26
+ msgid "optional"
27
+ msgstr "valfri"
28
+
29
+ #: contact-form-7/wp-contact-form-7.php:373
30
+ msgid "Generate Tag"
31
+ msgstr "Generera tagg"
32
+
33
+ #: contact-form-7/wp-contact-form-7.php:374
34
+ msgid "Text field"
35
+ msgstr "Textfält"
36
+
37
+ #: contact-form-7/wp-contact-form-7.php:375
38
+ msgid "Email field"
39
+ msgstr "Mejlfält"
40
+
41
+ #: contact-form-7/wp-contact-form-7.php:376
42
+ msgid "Text area"
43
+ msgstr "Textområde"
44
+
45
+ #: contact-form-7/wp-contact-form-7.php:377
46
+ msgid "Drop-down menu"
47
+ msgstr "Nedrullningsmeny"
48
+
49
+ #: contact-form-7/wp-contact-form-7.php:378
50
+ msgid "Checkboxes"
51
+ msgstr "Checkboxar"
52
+
53
+ #: contact-form-7/wp-contact-form-7.php:379
54
+ msgid "Radio buttons"
55
+ msgstr "Radioknappar"
56
+
57
+ #: contact-form-7/wp-contact-form-7.php:380
58
+ msgid "Acceptance"
59
+ msgstr "Acceptera"
60
+
61
+ #: contact-form-7/wp-contact-form-7.php:381
62
+ msgid "Make this checkbox checked by default?"
63
+ msgstr "Skall denna checkbox vara ifylld som standard?"
64
+
65
+ #: contact-form-7/wp-contact-form-7.php:382
66
+ msgid "Make this checkbox work inversely?"
67
+ msgstr "Gör så att denna checkbox måste kryssas av?"
68
+
69
+ #: contact-form-7/wp-contact-form-7.php:383
70
+ msgid "* That means visitor who accepts the term unchecks it."
71
+ msgstr "* Det betyder att besökare som accepterar villkoren måste ta bort krysset i den"
72
+
73
+ #: contact-form-7/wp-contact-form-7.php:384
74
+ msgid "CAPTCHA"
75
+ msgstr "CAPTCHA"
76
+
77
+ #: contact-form-7/wp-contact-form-7.php:385
78
+ msgid "Submit button"
79
+ msgstr "Skicka-knapp"
80
+
81
+ #: contact-form-7/wp-contact-form-7.php:386
82
+ msgid "Name"
83
+ msgstr "Namn"
84
+
85
+ #: contact-form-7/wp-contact-form-7.php:387
86
+ msgid "Required field?"
87
+ msgstr "Nödvändigt fält?"
88
+
89
+ #: contact-form-7/wp-contact-form-7.php:388
90
+ msgid "Allow multiple selections?"
91
+ msgstr "Tillåt flera val?"
92
+
93
+ #: contact-form-7/wp-contact-form-7.php:389
94
+ msgid "Insert a blank item as the first option?"
95
+ msgstr "Lägg in ett blankt objekt som första val?"
96
+
97
+ #: contact-form-7/wp-contact-form-7.php:390
98
+ msgid "Make checkboxes exclusive?"
99
+ msgstr "Ska checkboxarna vara exklusiva?"
100
+
101
+ #: contact-form-7/wp-contact-form-7.php:391
102
+ msgid "Choices"
103
+ msgstr "Val"
104
+
105
+ #: contact-form-7/wp-contact-form-7.php:392
106
+ msgid "Label"
107
+ msgstr "Märka upp"
108
+
109
+ #: contact-form-7/wp-contact-form-7.php:393
110
+ msgid "Default value"
111
+ msgstr "Default värde"
112
+
113
+ #: contact-form-7/wp-contact-form-7.php:394
114
+ msgid "Akismet"
115
+ msgstr "Akismet"
116
+
117
+ #: contact-form-7/wp-contact-form-7.php:395
118
+ msgid "This field requires author's name"
119
+ msgstr "Det här fältet kräver författarens namn"
120
+
121
+ #: contact-form-7/wp-contact-form-7.php:396
122
+ msgid "This field requires author's URL"
123
+ msgstr "Det här fältet kräver författarens webbadress"
124
+
125
+ #: contact-form-7/wp-contact-form-7.php:397
126
+ msgid "This field requires author's email address"
127
+ msgstr "Det här fältet kräver författarens mejladress"
128
+
129
+ #: contact-form-7/wp-contact-form-7.php:398
130
+ msgid "Copy and paste this code into the form"
131
+ msgstr "Kopiera och klistra sedan in denna kod i formuläret"
132
+
133
+ #: contact-form-7/wp-contact-form-7.php:399
134
+ msgid "Foreground color"
135
+ msgstr "Förgrundsfärg"
136
+
137
+ #: contact-form-7/wp-contact-form-7.php:400
138
+ msgid "Background color"
139
+ msgstr "Bakgrundsfärg"
140
+
141
+ #: contact-form-7/wp-contact-form-7.php:401
142
+ msgid "Image size"
143
+ msgstr "Bildstorlek"
144
+
145
+ #: contact-form-7/wp-contact-form-7.php:402
146
+ msgid "Small"
147
+ msgstr "Liten"
148
+
149
+ #: contact-form-7/wp-contact-form-7.php:403
150
+ msgid "Medium"
151
+ msgstr "Mellan"
152
+
153
+ #: contact-form-7/wp-contact-form-7.php:404
154
+ msgid "Large"
155
+ msgstr "Stor"
156
+
157
+ #: contact-form-7/wp-contact-form-7.php:405
158
+ msgid "Image settings"
159
+ msgstr "Bildinställningar"
160
+
161
+ #: contact-form-7/wp-contact-form-7.php:406
162
+ msgid "Input field settings"
163
+ msgstr "Skriv in fält-inställningar"
164
+
165
+ #: contact-form-7/wp-contact-form-7.php:407
166
+ msgid "For image"
167
+ msgstr "För bild"
168
+
169
+ #: contact-form-7/wp-contact-form-7.php:408
170
+ msgid "For input field"
171
+ msgstr "För input-fält"
172
+
173
+ #: contact-form-7/wp-contact-form-7.php:409
174
+ msgid "* One choice per line."
175
+ msgstr "* Ett val per linje."
176
+
177
+ #: contact-form-7/wp-contact-form-7.php:428
178
+ msgid "Contact form created."
179
+ msgstr "Kontaktformulär skapat."
180
+
181
+ #: contact-form-7/wp-contact-form-7.php:431
182
+ msgid "Contact form saved."
183
+ msgstr "Kontaktformulär sparat."
184
+
185
+ #: contact-form-7/wp-contact-form-7.php:434
186
+ msgid "Contact form deleted."
187
+ msgstr "Kontaktformulär raderat."
188
+
189
+ #: contact-form-7/wp-contact-form-7.php:441
190
+ msgid "Untitled"
191
+ msgstr "Namnlös"
192
+
193
+ #: contact-form-7/wp-contact-form-7.php:465
194
+ msgid "Your Name"
195
+ msgstr "Ditt namn"
196
+
197
+ #: contact-form-7/wp-contact-form-7.php:465
198
+ #: contact-form-7/wp-contact-form-7.php:467
199
+ msgid "(required)"
200
+ msgstr "(nödvändigt)"
201
+
202
+ #: contact-form-7/wp-contact-form-7.php:467
203
+ msgid "Your Email"
204
+ msgstr "Din mejladress"
205
+
206
+ #: contact-form-7/wp-contact-form-7.php:469
207
+ msgid "Subject"
208
+ msgstr "Ämne"
209
+
210
+ #: contact-form-7/wp-contact-form-7.php:471
211
+ msgid "Your Message"
212
+ msgstr "Ditt meddelande"
213
+
214
+ #: contact-form-7/wp-contact-form-7.php:473
215
+ #: contact-form-7/wp-contact-form-7.php:956
216
+ msgid "Send"
217
+ msgstr "Skicka"
218
+
219
+ #: contact-form-7/wp-contact-form-7.php:502
220
+ msgid "Your message was sent successfully. Thanks."
221
+ msgstr "Ditt meddelande skickades framgångsrikt! Tack!."
222
+
223
+ #: contact-form-7/wp-contact-form-7.php:504
224
+ msgid "Failed to send your message. Please try later or contact administrator by other way."
225
+ msgstr "Det har blivit något fel med ditt meddelande. Var god försök senare."
226
+
227
+ #: contact-form-7/wp-contact-form-7.php:506
228
+ msgid "Validation errors occurred. Please confirm the fields and submit it again."
229
+ msgstr "Det blev ett validationsproblem. Var vänlig och kolla igenom fälten du fyllt i och tryck på Skicka igen."
230
+
231
+ #: contact-form-7/wp-contact-form-7.php:508
232
+ msgid "Please accept the terms to proceed."
233
+ msgstr "Acceptera villkoren för att fortsätta."
234
+
235
+ #: contact-form-7/wp-contact-form-7.php:510
236
+ msgid "Email address seems invalid."
237
+ msgstr "Mejladressen verkar felaktig. Vänligen korrigera."
238
+
239
+ #: contact-form-7/wp-contact-form-7.php:512
240
+ msgid "Please fill the required field."
241
+ msgstr "Vänligen fyll i nödvändigt fält."
242
+
243
+ #: contact-form-7/wp-contact-form-7.php:514
244
+ msgid "Your entered code is incorrect."
245
+ msgstr "Koden du skrev in är felaktig."
246
+
247
+ #: contact-form-7/includes/admin-panel.php:15
248
+ msgid "Add new"
249
+ msgstr "Lägg till ny"
250
+
251
+ #: contact-form-7/includes/admin-panel.php:28
252
+ msgid "Copy and paste this code into your post content."
253
+ msgstr "Lägg till denna kod i ditt meddelande."
254
+
255
+ #: contact-form-7/includes/admin-panel.php:33
256
+ msgid "Form"
257
+ msgstr "Formulär"
258
+
259
+ #: contact-form-7/includes/admin-panel.php:37
260
+ msgid "Mail"
261
+ msgstr "Mejl"
262
+
263
+ #: contact-form-7/includes/admin-panel.php:39
264
+ #: contact-form-7/includes/admin-panel.php:60
265
+ msgid "To:"
266
+ msgstr "Till:"
267
+
268
+ #: contact-form-7/includes/admin-panel.php:43
269
+ #: contact-form-7/includes/admin-panel.php:64
270
+ msgid "From:"
271
+ msgstr "Från:"
272
+
273
+ #: contact-form-7/includes/admin-panel.php:47
274
+ #: contact-form-7/includes/admin-panel.php:68
275
+ msgid "Subject:"
276
+ msgstr "Ämne:"
277
+
278
+ #: contact-form-7/includes/admin-panel.php:51
279
+ #: contact-form-7/includes/admin-panel.php:72
280
+ msgid "Message body:"
281
+ msgstr "Meddelandefält:"
282
+
283
+ #: contact-form-7/includes/admin-panel.php:56
284
+ msgid "Mail (2)"
285
+ msgstr "Mejl (2)"
286
+
287
+ #: contact-form-7/includes/admin-panel.php:58
288
+ msgid "Use mail (2)"
289
+ msgstr "Använd mail (2)"
290
+
291
+ #: contact-form-7/includes/admin-panel.php:80
292
+ msgid "Save"
293
+ msgstr "Spara"
294
+
295
+ #: contact-form-7/includes/admin-panel.php:86
296
+ msgid "Delete this contact form"
297
+ msgstr "Radera detta formulär"
298
+
299
+ #: contact-form-7/includes/admin-panel.php:87
300
+ msgid ""
301
+ "You are about to delete this contact form.\n"
302
+ " 'Cancel' to stop, 'OK' to delete."
303
+ msgstr ""
304
+ "Du håller på att radera detta forumlär. Tryck \n"
305
+ " 'Avbryt' för att avbryta, 'OK' för att radera."
306
+
stylesheet.css CHANGED
@@ -24,6 +24,10 @@ div.wpcf7-validation-errors {
24
border: 2px solid #f7e700;
25
}
26
27
span.wpcf7-not-valid-tip {
28
position: absolute;
29
top: 20%;
24
border: 2px solid #f7e700;
25
}
26
27
+ span.wpcf7-form-control-wrap {
28
+ position: relative;
29
+ }
30
+
31
span.wpcf7-not-valid-tip {
32
position: absolute;
33
top: 20%;
wp-contact-form-7.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Form 7
4
Plugin URI: http://ideasilo.wordpress.com/2007/04/30/contact-form-7/
5
Description: Just another contact form plugin. Simple but flexible.
6
Author: Takayuki Miyoshi
7
- Version: 1.7.6.1
8
Author URI: http://ideasilo.wordpress.com/
9
*/
10
@@ -116,7 +116,7 @@ class tam_contact_form_seven {
116
if (! $validation['valid']) { // Validation error occured
117
$invalids = array();
118
foreach ($validation['reason'] as $name => $reason) {
119
- $invalids[] = '{ into: ":input[@name=' . $name . ']", message: "' . js_escape($reason) . '" }';
120
}
121
$invalids = '[' . join(', ', $invalids) . ']';
122
echo '{ mailSent: 0, message: "' . js_escape($this->message('validation_error')) . '", into: "#' . $unit_tag . '", invalids: ' . $invalids . ', captcha: ' . $captcha . ' }';
@@ -633,7 +633,7 @@ var _wpcf7 = {
633
if (preg_match('/^(?:text|email)[*]?#x2F;', $type))
634
$_POST[$name] = trim(strtr($_POST[$name], "\n", " "));
635
636
- if (preg_match('/^(?:select|checkbox|radio)#x2F;', $type)) {
637
if (is_array($_POST[$name])) {
638
foreach ($_POST[$name] as $key => $value) {
639
if (! in_array($value, $values)) // Not in given choices.
@@ -649,12 +649,21 @@ var _wpcf7 = {
649
$_POST[$name] = $_POST[$name] ? 1 : 0;
650
651
// Required item (*)
652
- if (preg_match('/^(?:text|textarea)[*]#x2F;', $type)) {
653
if (empty($_POST[$name])) {
654
$valid = false;
655
$reason[$name] = $this->message('invalid_required');
656
}
657
}
658
659
if (preg_match('/^email[*]?#x2F;', $type)) {
660
if ('*' == substr($type, -1) && empty($_POST[$name])) {
@@ -717,7 +726,7 @@ var _wpcf7 = {
717
/* Processing form element placeholders */
718
719
function form_elements($form, $replace = true) {
720
- $types = 'text[*]?|email[*]?|textarea[*]?|select|checkbox|radio|acceptance|captchac|captchar';
721
$regex = '%\[\s*(' . $types . ')(\s+[a-zA-Z][0-9a-zA-Z:._-]*)([-0-9a-zA-Z:#_/\s]*)?((?:\s*(?:"[^"]*"|\'[^\']*\'))*)?\s*\]%';
722
$submit_regex = '/\[\s*submit(\s+(?:"[^"]*"|\'[^\']*\'))?\s*\]/';
723
if ($replace) {
@@ -768,7 +777,7 @@ var _wpcf7 = {
768
if (preg_match('/[*]#x2F;', $type))
769
$class_att .= ' wpcf7-validates-as-required';
770
771
- if ('checkbox' == $type)
772
$class_att .= ' wpcf7-checkbox';
773
774
if ('radio' == $type)
@@ -799,7 +808,7 @@ var _wpcf7 = {
799
}
800
801
// Default selected/checked for select/checkbox/radio
802
- if (preg_match('/^(?:select|checkbox|radio)#x2F;', $type)) {
803
$scr_defaults = array_values(preg_grep('/^default:/', $options));
804
preg_match('/^default:([0-9_]+)#x2F;', $scr_defaults[0], $scr_default_matches);
805
$scr_default = explode('_', $scr_default_matches[1]);
@@ -826,7 +835,7 @@ var _wpcf7 = {
826
}
827
}
828
$html = '<input type="text" name="' . $name . '" value="' . attribute_escape($value) . '"' . $atts . ' />';
829
- $html = '<span style="position: relative;">' . $html . $validation_error . '</span>';
830
return $html;
831
break;
832
case 'textarea':
@@ -848,10 +857,11 @@ var _wpcf7 = {
848
}
849
}
850
$html = '<textarea name="' . $name . '"' . $atts . '>' . $value . '</textarea>';
851
- $html = '<span style="position: relative;">' . $html . $validation_error . '</span>';
852
return $html;
853
break;
854
case 'select':
855
$multiple = (preg_grep('%^multiple$%', $options)) ? true : false;
856
$include_blank = preg_grep('%^include_blank$%', $options);
857
@@ -874,17 +884,20 @@ var _wpcf7 = {
874
$atts .= ' multiple="multiple"';
875
876
$html = '<select name="' . $name . ($multiple ? '[]' : '') . '"' . $atts . '>' . $html . '</select>';
877
- $html = '<span style="position: relative;">' . $html . $validation_error . '</span>';
878
return $html;
879
break;
880
case 'checkbox':
881
case 'radio':
882
- $multiple = ('checkbox' == $type && ! preg_grep('%^exclusive$%', $options)) ? true : false;
883
$html = '';
884
885
- if ('checkbox' == $type && ! $multiple)
886
$onclick = ' onclick="wpcf7ExclusiveCheckbox(this);"';
887
888
foreach ($values as $key => $value) {
889
$checked = '';
890
if (in_array($key + 1, $scr_default))
@@ -895,9 +908,9 @@ var _wpcf7 = {
895
$checked = ' checked="checked"';
896
if (preg_grep('%^label[_-]?first$%', $options)) { // put label first, input last
897
$item = '<span class="wpcf7-list-item-label">' . $value . '</span>&nbsp;';
898
- $item .= '<input type="' . $type . '" name="' . $name . ($multiple ? '[]' : '') . '" value="' . attribute_escape($value) . '"' . $checked . $onclick . ' />';
899
} else {
900
- $item = '<input type="' . $type . '" name="' . $name . ($multiple ? '[]' : '') . '" value="' . attribute_escape($value) . '"' . $checked . $onclick . ' />';
901
$item .= '&nbsp;<span class="wpcf7-list-item-label">' . $value . '</span>';
902
}
903
$item = '<span class="wpcf7-list-item">' . $item . '</span>';
@@ -905,7 +918,7 @@ var _wpcf7 = {
905
}
906
907
$html = '<span' . $atts . '>' . $html . '</span>';
908
- $html = '<span style="position: relative;">' . $html . $validation_error . '</span>';
909
return $html;
910
break;
911
case 'acceptance':
4
Plugin URI: http://ideasilo.wordpress.com/2007/04/30/contact-form-7/
5
Description: Just another contact form plugin. Simple but flexible.
6
Author: Takayuki Miyoshi
7
+ Version: 1.7.7
8
Author URI: http://ideasilo.wordpress.com/
9
*/
10
116
if (! $validation['valid']) { // Validation error occured
117
$invalids = array();
118
foreach ($validation['reason'] as $name => $reason) {
119
+ $invalids[] = '{ into: "span.wpcf7-form-control-wrap.' . $name . '", message: "' . js_escape($reason) . '" }';
120
}
121
$invalids = '[' . join(', ', $invalids) . ']';
122
echo '{ mailSent: 0, message: "' . js_escape($this->message('validation_error')) . '", into: "#' . $unit_tag . '", invalids: ' . $invalids . ', captcha: ' . $captcha . ' }';
633
if (preg_match('/^(?:text|email)[*]?#x2F;', $type))
634
$_POST[$name] = trim(strtr($_POST[$name], "\n", " "));
635
636
+ if (preg_match('/^(?:select|checkbox|radio)[*]?#x2F;', $type)) {
637
if (is_array($_POST[$name])) {
638
foreach ($_POST[$name] as $key => $value) {
639
if (! in_array($value, $values)) // Not in given choices.
649
$_POST[$name] = $_POST[$name] ? 1 : 0;
650
651
// Required item (*)
652
+ if (preg_match('/^(?:text|textarea|checkbox)[*]#x2F;', $type)) {
653
if (empty($_POST[$name])) {
654
$valid = false;
655
$reason[$name] = $this->message('invalid_required');
656
}
657
}
658
+
659
+ if ('select*' == $type) {
660
+ if (empty($_POST[$name]) ||
661
+ ! is_array($_POST[$name]) && '---' == $_POST[$name] ||
662
+ is_array($_POST[$name]) && 1 == count($_POST[$name]) && '---' == $_POST[$name][0]) {
663
+ $valid = false;
664
+ $reason[$name] = $this->message('invalid_required');
665
+ }
666
+ }
667
668
if (preg_match('/^email[*]?#x2F;', $type)) {
669
if ('*' == substr($type, -1) && empty($_POST[$name])) {
726
/* Processing form element placeholders */
727
728
function form_elements($form, $replace = true) {
729
+ $types = 'text[*]?|email[*]?|textarea[*]?|select[*]?|checkbox[*]?|radio|acceptance|captchac|captchar';
730
$regex = '%\[\s*(' . $types . ')(\s+[a-zA-Z][0-9a-zA-Z:._-]*)([-0-9a-zA-Z:#_/\s]*)?((?:\s*(?:"[^"]*"|\'[^\']*\'))*)?\s*\]%';
731
$submit_regex = '/\[\s*submit(\s+(?:"[^"]*"|\'[^\']*\'))?\s*\]/';
732
if ($replace) {
777
if (preg_match('/[*]#x2F;', $type))
778
$class_att .= ' wpcf7-validates-as-required';
779
780
+ if (preg_match('/^checkbox[*]?#x2F;', $type))
781
$class_att .= ' wpcf7-checkbox';
782
783
if ('radio' == $type)
808
}
809
810
// Default selected/checked for select/checkbox/radio
811
+ if (preg_match('/^(?:select|checkbox|radio)[*]?#x2F;', $type)) {
812
$scr_defaults = array_values(preg_grep('/^default:/', $options));
813
preg_match('/^default:([0-9_]+)#x2F;', $scr_defaults[0], $scr_default_matches);
814
$scr_default = explode('_', $scr_default_matches[1]);
835
}
836
}
837
$html = '<input type="text" name="' . $name . '" value="' . attribute_escape($value) . '"' . $atts . ' />';
838
+ $html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
839
return $html;
840
break;
841
case 'textarea':
857
}
858
}
859
$html = '<textarea name="' . $name . '"' . $atts . '>' . $value . '</textarea>';
860
+ $html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
861
return $html;
862
break;
863
case 'select':
864
+ case 'select*':
865
$multiple = (preg_grep('%^multiple$%', $options)) ? true : false;
866
$include_blank = preg_grep('%^include_blank$%', $options);
867
884
$atts .= ' multiple="multiple"';
885
886
$html = '<select name="' . $name . ($multiple ? '[]' : '') . '"' . $atts . '>' . $html . '</select>';
887
+ $html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
888
return $html;
889
break;
890
case 'checkbox':
891
+ case 'checkbox*':
892
case 'radio':
893
+ $multiple = (preg_match('/^checkbox[*]?#x2F;', $type) && ! preg_grep('%^exclusive$%', $options)) ? true : false;
894
$html = '';
895
896
+ if (preg_match('/^checkbox[*]?#x2F;', $type) && ! $multiple)
897
$onclick = ' onclick="wpcf7ExclusiveCheckbox(this);"';
898
899
+ $input_type = rtrim($type, '*');
900
+
901
foreach ($values as $key => $value) {
902
$checked = '';
903
if (in_array($key + 1, $scr_default))
908
$checked = ' checked="checked"';
909
if (preg_grep('%^label[_-]?first$%', $options)) { // put label first, input last
910
$item = '<span class="wpcf7-list-item-label">' . $value . '</span>&nbsp;';
911
+ $item .= '<input type="' . $input_type . '" name="' . $name . ($multiple ? '[]' : '') . '" value="' . attribute_escape($value) . '"' . $checked . $onclick . ' />';
912
} else {
913
+ $item = '<input type="' . $input_type . '" name="' . $name . ($multiple ? '[]' : '') . '" value="' . attribute_escape($value) . '"' . $checked . $onclick . ' />';
914
$item .= '&nbsp;<span class="wpcf7-list-item-label">' . $value . '</span>';
915
}
916
$item = '<span class="wpcf7-list-item">' . $item . '</span>';
918
}
919
920
$html = '<span' . $atts . '>' . $html . '</span>';
921
+ $html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
922
return $html;
923
break;
924
case 'acceptance':
wpcf7-admin.js CHANGED
@@ -235,7 +235,10 @@ function tgPane(pane, tagType) {
235
case 'radioButtons':
236
var table1 = jQuery('<table></table>');
237
pane.append(table1);
238
-
239
table1.append(tgTr(
240
jQuery('<span>' + _wpcf7.l10n.tagName + '<br /></span>').append(tgInputs.tagName),
241
jQuery('<span></span>')
@@ -491,6 +494,8 @@ function tgCreateTag(tagType, tgInputs, trigger) {
491
type = 'checkbox';
492
else if ('radioButtons' == tagType)
493
type = 'radio';
494
495
var name = tgInputs.tagName.val();
496
var options = [];
235
case 'radioButtons':
236
var table1 = jQuery('<table></table>');
237
pane.append(table1);
238
+ if ('radioButtons' != tagType)
239
+ table1.append(tgTr(
240
+ jQuery('<span>&nbsp;' + _wpcf7.l10n.isRequiredField + '</span>').prepend(tgInputs.isRequiredField)
241
+ ));
242
table1.append(tgTr(
243
jQuery('<span>' + _wpcf7.l10n.tagName + '<br /></span>').append(tgInputs.tagName),
244
jQuery('<span></span>')
494
type = 'checkbox';
495
else if ('radioButtons' == tagType)
496
type = 'radio';
497
+ if (tgInputs.isRequiredField.is(':checked'))
498
+ type += '*';
499
500
var name = tgInputs.tagName.val();
501
var options = [];