Contact Form 7 - Version 1.7.2

Version Description

Download this release

Release Info

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

Code changes from version 1.7.1 to 1.7.2

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://takayukister.chipin.com/contact-form-7
4
  Tags: contact form, email, ajax, captcha, akismet
5
  Requires at least: 2.2
6
  Tested up to: 2.4-bleeding
7
- Stable tag: 1.7.1
8
 
9
  Just another contact form plugin. Simple but flexible.
10
 
@@ -38,12 +38,13 @@ You can do that by editting a tag like: `[text your-name 40/100]`
38
 
39
  1. screenshot-1.png
40
 
41
- == L10N ==
42
 
43
  Contact Form 7 has been translated into the following languages.
44
 
45
  * Brazilian Portuguese, by [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/)
46
  * Catalan, by [Jordi Sancho](http://www.qasolutions.net/blog)
 
47
  * Dutch, by [Chris Devriese](http://www.100it.be/)
48
  * French, by [Jillij](http://www.jillij.com/)
49
  * German, by [Marcel Spitau](http://blog.spitau.de)
@@ -57,4 +58,4 @@ Contact Form 7 has been translated into the following languages.
57
 
58
  These language files are included in the plugin.
59
 
60
- If you have translated Contact Form 7 in your language, please let me know and send me [gettext .po and .mo files](http://codex.wordpress.org/Translating_WordPress). Thank you for your contribution.
4
  Tags: contact form, email, ajax, captcha, akismet
5
  Requires at least: 2.2
6
  Tested up to: 2.4-bleeding
7
+ Stable tag: 1.7.2
8
 
9
  Just another contact form plugin. Simple but flexible.
10
 
38
 
39
  1. screenshot-1.png
40
 
41
+ == Localization ==
42
 
43
  Contact Form 7 has been translated into the following languages.
44
 
45
  * Brazilian Portuguese, by [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/)
46
  * Catalan, by [Jordi Sancho](http://www.qasolutions.net/blog)
47
+ * Czech, by Korry
48
  * Dutch, by [Chris Devriese](http://www.100it.be/)
49
  * French, by [Jillij](http://www.jillij.com/)
50
  * German, by [Marcel Spitau](http://blog.spitau.de)
58
 
59
  These language files are included in the plugin.
60
 
61
+ If you have translated Contact Form 7 in your language, please let me know and send me [gettext .po and .mo files](http://codex.wordpress.org/Translating_WordPress). Thank you for your contribution.
languages/wpcf7-cs_CZ.mo ADDED
Binary file
languages/wpcf7-cs_CZ.po ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-12-08 19:18+0100\n"
6
+ "Last-Translator: Korry <pindiky@seznam.cz>\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+
12
+ #: contact-form-7/wp-contact-form-7.php:251
13
+ msgid "Contact form"
14
+ msgstr "Kontaktní formulář"
15
+
16
+ #: contact-form-7/wp-contact-form-7.php:336
17
+ #: contact-form-7/includes/admin-panel.php:5
18
+ msgid "Contact Form 7"
19
+ msgstr "Contact Form 7"
20
+
21
+ #: contact-form-7/wp-contact-form-7.php:352
22
+ msgid "optional"
23
+ msgstr "doporučeno"
24
+
25
+ #: contact-form-7/wp-contact-form-7.php:353
26
+ msgid "Generate Tag"
27
+ msgstr "Generuj Tag"
28
+
29
+ #: contact-form-7/wp-contact-form-7.php:354
30
+ msgid "Text field"
31
+ msgstr "Text field"
32
+
33
+ #: contact-form-7/wp-contact-form-7.php:355
34
+ msgid "Email field"
35
+ msgstr "Email"
36
+
37
+ #: contact-form-7/wp-contact-form-7.php:356
38
+ msgid "Text area"
39
+ msgstr "Text area"
40
+
41
+ #: contact-form-7/wp-contact-form-7.php:357
42
+ msgid "Drop-down menu"
43
+ msgstr "Rozbalovací menu"
44
+
45
+ #: contact-form-7/wp-contact-form-7.php:358
46
+ msgid "Checkboxes"
47
+ msgstr "Checkboxes"
48
+
49
+ #: contact-form-7/wp-contact-form-7.php:359
50
+ msgid "Radio buttons"
51
+ msgstr "Radio buttons"
52
+
53
+ #: contact-form-7/wp-contact-form-7.php:360
54
+ msgid "CAPTCHA"
55
+ msgstr "CAPTCHA"
56
+
57
+ #: contact-form-7/wp-contact-form-7.php:361
58
+ msgid "Submit button"
59
+ msgstr "Potvrzovací tlačítko"
60
+
61
+ #: contact-form-7/wp-contact-form-7.php:362
62
+ msgid "Name"
63
+ msgstr "Jméno"
64
+
65
+ #: contact-form-7/wp-contact-form-7.php:363
66
+ msgid "Required field?"
67
+ msgstr "Vyžadované pole?"
68
+
69
+ #: contact-form-7/wp-contact-form-7.php:364
70
+ msgid "Allows multiple selections?"
71
+ msgstr "Povolit vícenásobný výběr?"
72
+
73
+ #: contact-form-7/wp-contact-form-7.php:365
74
+ msgid "Choices"
75
+ msgstr "Možnosti"
76
+
77
+ #: contact-form-7/wp-contact-form-7.php:366
78
+ msgid "Label"
79
+ msgstr "Popis"
80
+
81
+ #: contact-form-7/wp-contact-form-7.php:367
82
+ msgid "Default value"
83
+ msgstr "Výchozí hodnota"
84
+
85
+ #: contact-form-7/wp-contact-form-7.php:368
86
+ msgid "Akismet"
87
+ msgstr "Akismet"
88
+
89
+ #: contact-form-7/wp-contact-form-7.php:369
90
+ msgid "This field requires author's name"
91
+ msgstr "Toto pole musí obsahovat jméno autora"
92
+
93
+ #: contact-form-7/wp-contact-form-7.php:370
94
+ msgid "This field requires author's URL"
95
+ msgstr "Toto pole musí obsahovat URL autora"
96
+
97
+ #: contact-form-7/wp-contact-form-7.php:371
98
+ msgid "This field requires author's email address"
99
+ msgstr "Toto pole musí obsahovat autorův e-mail"
100
+
101
+ #: contact-form-7/wp-contact-form-7.php:372
102
+ msgid "Copy and paste this code into the form"
103
+ msgstr "Zkopírujte tento kód a vložte jej do formuláře"
104
+
105
+ #: contact-form-7/wp-contact-form-7.php:373
106
+ msgid "Foreground color"
107
+ msgstr "Barva písma"
108
+
109
+ #: contact-form-7/wp-contact-form-7.php:374
110
+ msgid "Background color"
111
+ msgstr "Barva pozadí"
112
+
113
+ #: contact-form-7/wp-contact-form-7.php:375
114
+ msgid "Image size"
115
+ msgstr "Velikost obrázku"
116
+
117
+ #: contact-form-7/wp-contact-form-7.php:376
118
+ msgid "Small"
119
+ msgstr "Malý"
120
+
121
+ #: contact-form-7/wp-contact-form-7.php:377
122
+ msgid "Medium"
123
+ msgstr "Střední"
124
+
125
+ #: contact-form-7/wp-contact-form-7.php:378
126
+ msgid "Large"
127
+ msgstr "Velký"
128
+
129
+ #: contact-form-7/wp-contact-form-7.php:379
130
+ msgid "Image settings"
131
+ msgstr "Nastavení obrázku"
132
+
133
+ #: contact-form-7/wp-contact-form-7.php:380
134
+ msgid "Input field settings"
135
+ msgstr "Parametry vstupního pole"
136
+
137
+ #: contact-form-7/wp-contact-form-7.php:381
138
+ msgid "For image"
139
+ msgstr "For image"
140
+
141
+ #: contact-form-7/wp-contact-form-7.php:382
142
+ msgid "For input field"
143
+ msgstr "Pro vstupní pole"
144
+
145
+ #: contact-form-7/wp-contact-form-7.php:383
146
+ msgid "* One choice per line."
147
+ msgstr "* Jedna možnost na řádku"
148
+
149
+ #: contact-form-7/wp-contact-form-7.php:402
150
+ msgid "Contact form created."
151
+ msgstr "Formulář vytvořen"
152
+
153
+ #: contact-form-7/wp-contact-form-7.php:405
154
+ msgid "Contact form saved."
155
+ msgstr "Formulář uložen"
156
+
157
+ #: contact-form-7/wp-contact-form-7.php:408
158
+ msgid "Contact form deleted."
159
+ msgstr "Contact form deleted"
160
+
161
+ #: contact-form-7/wp-contact-form-7.php:415
162
+ msgid "Untitled"
163
+ msgstr "Untitled"
164
+
165
+ #: contact-form-7/wp-contact-form-7.php:439
166
+ msgid "Your Name"
167
+ msgstr "Vaše jméno"
168
+
169
+ #: contact-form-7/wp-contact-form-7.php:439
170
+ #: contact-form-7/wp-contact-form-7.php:441
171
+ msgid "(required)"
172
+ msgstr "(vyžadováno)"
173
+
174
+ #: contact-form-7/wp-contact-form-7.php:441
175
+ msgid "Your Email"
176
+ msgstr "Váš Email"
177
+
178
+ #: contact-form-7/wp-contact-form-7.php:443
179
+ msgid "Subject"
180
+ msgstr "Předmět zprávy"
181
+
182
+ #: contact-form-7/wp-contact-form-7.php:445
183
+ msgid "Your Message"
184
+ msgstr "Vaše zpráva"
185
+
186
+ #: contact-form-7/wp-contact-form-7.php:447
187
+ #: contact-form-7/wp-contact-form-7.php:891
188
+ msgid "Send"
189
+ msgstr "Odeslat"
190
+
191
+ #: contact-form-7/wp-contact-form-7.php:476
192
+ msgid "Your message was sent successfully. Thanks."
193
+ msgstr "Vaše zpráva byla úspěšně odeslána. Děkujeme."
194
+
195
+ #: contact-form-7/wp-contact-form-7.php:478
196
+ msgid "Failed to send your message. Please try later or contact administrator by other way."
197
+ msgstr "Nepodařilo se odeslat zprávu. Opakujte později, nebo kontaktujte administátora."
198
+
199
+ #: contact-form-7/wp-contact-form-7.php:480
200
+ msgid "Validation errors occurred. Please confirm the fields and submit it again."
201
+ msgstr "Chyba v ověření. Zkontrolujte prosím všechna povinná pole."
202
+
203
+ #: contact-form-7/wp-contact-form-7.php:482
204
+ msgid "Email address seems invalid."
205
+ msgstr "Emailová adresa není v platném tvaru."
206
+
207
+ #: contact-form-7/wp-contact-form-7.php:484
208
+ msgid "Please fill the required field."
209
+ msgstr "Vyplňte prosím povinná pole."
210
+
211
+ #: contact-form-7/wp-contact-form-7.php:486
212
+ msgid "Your entered code is incorrect."
213
+ msgstr "Vložený ověřovací kód není správně."
214
+
215
+ #: contact-form-7/includes/admin-panel.php:15
216
+ msgid "Add new"
217
+ msgstr "Přidej nový"
218
+
219
+ #: contact-form-7/includes/admin-panel.php:28
220
+ msgid "Copy and paste this code into your post content."
221
+ msgstr "Zkopírujte tento kód a vložte jej do článku."
222
+
223
+ #: contact-form-7/includes/admin-panel.php:33
224
+ msgid "Form"
225
+ msgstr "Formulář"
226
+
227
+ #: contact-form-7/includes/admin-panel.php:37
228
+ msgid "Mail"
229
+ msgstr "Mail"
230
+
231
+ #: contact-form-7/includes/admin-panel.php:39
232
+ #: contact-form-7/includes/admin-panel.php:60
233
+ msgid "To:"
234
+ msgstr "Komu:"
235
+
236
+ #: contact-form-7/includes/admin-panel.php:43
237
+ #: contact-form-7/includes/admin-panel.php:64
238
+ msgid "From:"
239
+ msgstr "Od:"
240
+
241
+ #: contact-form-7/includes/admin-panel.php:47
242
+ #: contact-form-7/includes/admin-panel.php:68
243
+ msgid "Subject:"
244
+ msgstr "Předmět:"
245
+
246
+ #: contact-form-7/includes/admin-panel.php:51
247
+ #: contact-form-7/includes/admin-panel.php:72
248
+ msgid "Message body:"
249
+ msgstr "Zpráva:"
250
+
251
+ #: contact-form-7/includes/admin-panel.php:56
252
+ msgid "Mail (2)"
253
+ msgstr "Mail (2)"
254
+
255
+ #: contact-form-7/includes/admin-panel.php:58
256
+ msgid "Use mail (2)"
257
+ msgstr "Use mail (2)"
258
+
259
+ #: contact-form-7/includes/admin-panel.php:80
260
+ msgid "Save"
261
+ msgstr "Uložit"
262
+
263
+ #: contact-form-7/includes/admin-panel.php:86
264
+ msgid "Delete this contact form"
265
+ msgstr "Smaž tento formulář."
266
+
267
+ #: contact-form-7/includes/admin-panel.php:87
268
+ msgid ""
269
+ "You are about to delete this contact form.\n"
270
+ " 'Cancel' to stop, 'OK' to delete."
271
+ msgstr "Chcete smazat tento formulář?"
272
+
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.1
8
  Author URI: http://ideasilo.wordpress.com/
9
  */
10
 
@@ -284,7 +284,7 @@ class tam_contact_form_seven {
284
 
285
  function add_pages() {
286
  $base_url = get_option('siteurl') . '/wp-admin/options-general.php';
287
- $page = plugin_basename(__FILE__);
288
  $contact_forms = $this->contact_forms();
289
 
290
  if (isset($_POST['wpcf7-save'])) {
@@ -421,7 +421,7 @@ var _wpcf7 = {
421
  $cf = null;
422
  }
423
 
424
- include 'includes/admin-panel.php';
425
  }
426
 
427
  function default_pack($title, $initial = false) {
@@ -628,7 +628,7 @@ var _wpcf7 = {
628
  if ('*' == substr($type, -1) && empty($_POST[$name])) {
629
  $valid = false;
630
  $reason[$name] = $this->message('invalid_required');
631
- } elseif (! is_email($_POST[$name])) {
632
  $valid = false;
633
  $reason[$name] = $this->message('invalid_email');
634
  }
@@ -688,7 +688,7 @@ var _wpcf7 = { ajaxUrl: '<?php echo $override_url; ?>' };
688
 
689
  function load_js() {
690
  global $pagenow;
691
- if (is_admin() && 'options-general.php' == $pagenow && plugin_basename(__FILE__) == $_GET['page'])
692
  wp_enqueue_script('jquery');
693
  if (! is_admin())
694
  wp_enqueue_script('jquery-form', '/wp-includes/js/jquery/jquery.form.js', array('jquery'), '1.0.3');
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.2
8
  Author URI: http://ideasilo.wordpress.com/
9
  */
10
 
284
 
285
  function add_pages() {
286
  $base_url = get_option('siteurl') . '/wp-admin/options-general.php';
287
+ $page = str_replace('\\', '%5C', plugin_basename(__FILE__));
288
  $contact_forms = $this->contact_forms();
289
 
290
  if (isset($_POST['wpcf7-save'])) {
421
  $cf = null;
422
  }
423
 
424
+ require_once ABSPATH . PLUGINDIR . '/contact-form-7/includes/admin-panel.php';
425
  }
426
 
427
  function default_pack($title, $initial = false) {
628
  if ('*' == substr($type, -1) && empty($_POST[$name])) {
629
  $valid = false;
630
  $reason[$name] = $this->message('invalid_required');
631
+ } elseif (! empty($_POST[$name]) && ! is_email($_POST[$name])) {
632
  $valid = false;
633
  $reason[$name] = $this->message('invalid_email');
634
  }
688
 
689
  function load_js() {
690
  global $pagenow;
691
+ if (is_admin() && 'options-general.php' == $pagenow && false !== strpos($_GET['page'], 'contact-form-7'))
692
  wp_enqueue_script('jquery');
693
  if (! is_admin())
694
  wp_enqueue_script('jquery-form', '/wp-includes/js/jquery/jquery.form.js', array('jquery'), '1.0.3');
wpcf7-admin.js CHANGED
@@ -392,7 +392,7 @@ function tgCreateTag(tagType, tgInputs, trigger) {
392
  switch (tagType) {
393
  case 'textField':
394
  case 'emailField':
395
- var type = 'text';
396
  if (tgInputs.isRequiredField.is(':checked'))
397
  type += '*';
398
  var name = tgInputs.tagName.val();
392
  switch (tagType) {
393
  case 'textField':
394
  case 'emailField':
395
+ var type = ('emailField' == tagType) ? 'email' : 'text';
396
  if (tgInputs.isRequiredField.is(':checked'))
397
  type += '*';
398
  var name = tgInputs.tagName.val();