Contact Form 7 - Version 1.8

Version Description

Download this release

Release Info

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

Code changes from version 1.7.8 to 1.8

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.6-RC1
7
- Stable tag: 1.7.8
8
9
Just another contact form plugin. Simple but flexible.
10
@@ -12,55 +12,50 @@ Just another contact form plugin. Simple but flexible.
12
13
Just another contact form plugin. Simple but flexible.
14
15
- * Supports multiple contact forms.
16
- * You can customize form and mail contents with simple markup.
17
- * AJAX submitting with jQuery Form Plugin.
18
- * Spam filtering with Akismet.
19
- * Bot prevention with CAPTCHA.
20
21
== Installation ==
22
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/).
35
36
== Screenshots ==
37
38
1. screenshot-1.png
39
-
40
- == Localization ==
41
-
42
- Contact Form 7 has been translated into the following languages.
43
-
44
- * Brazilian Portuguese, by [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/) (revised by Henrique Vianna)
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
- * Romanian, by [Stas Sushkov](http://stas.nerd.ro/ascii/)
59
- * Spanish, by [Jordi Sancho](http://www.qasolutions.net/blog)
60
- (revised by [Vladimir Prieto](http://vladimir.prie.to/) and [Federico Mikaelian](http://www.fedemika.com.ar/))
61
- * Swedish, by [Fredrik Jonsson](http://www.fredda-o-ac.se/)
62
- * Turkish, by [Roman Neumuller](http://katpatuka.wordpress.com)
63
-
64
- These language files are included in the plugin.
65
-
66
- 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.
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.7-bleeding
7
+ Stable tag: 1.8
8
9
Just another contact form plugin. Simple but flexible.
10
12
13
Just another contact form plugin. Simple but flexible.
14
15
+ Contact Form 7 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.
16
+
17
+ Since being published in August 2007, Contact Form 7 has been translated into a number of languages. Our thanks and appreciation must go to the following for their contributions:
18
+
19
+ * Brazilian Portuguese (pt_BR) - [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/) (updated by Henrique Vianna)
20
+ * Bulgarian (bg_BG) - [Iliyan Darganov](http://www.darganov.com/)
21
+ * Catalan (ca_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
22
+ * Czech (cs_CZ) - Korry
23
+ * Danish (da_DK) - [Jens Griebel](http://www.kompas-it.dk/)
24
+ * Dutch (nl_NL) - [Chris Devriese](http://www.100it.be/)
25
+ * French (fr_FR) - [Jillij](http://www.jillij.com/)
26
+ * German (de_DE) - [Marcel Spitau](http://blog.spitau.de)
27
+ * Hungarian (hu_HU) - [Andras Hirschler](http://hia.itblog.hu/)
28
+ * Italian (it_IT) - [Bruno](http://www.brunosalzano.com)
29
+ * Japanese (ja) - [Takayuki Miyoshi](http://ideasilo.wordpress.com) (plugin author)
30
+ * Latvian (lv) - [Sandis Veinbergs](http://www.kleofass.lv/)
31
+ * Norwegian (nb_NO) - Kjetil M. Bergem
32
+ * Polish (pl_PL) - [Zbigniew Czernik](http://zibik.jogger.pl/)
33
+ * Russian (ru_RU) - [Dmitry Volotovich](http://www.volnov.com)
34
+ * Romanian (ro) - [Stas Sushkov](http://stas.nerd.ro/ascii/)
35
+ * Spanish (es_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
36
+ (updated by [Vladimir Prieto](http://vladimir.prie.to/) and [Federico Mikaelian](http://www.fedemika.com.ar/))
37
+ * Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/)
38
+ * Turkish (tr_TR) - [Roman Neumuller](http://katpatuka.wordpress.com)
39
+
40
+ If you have created your own language pack, or have an update of an existing one, you can send [gettext .po and .mo files](http://codex.wordpress.org/Translating_WordPress) to me so that I can bundle it into Contact Form 7.
41
42
== Installation ==
43
44
+ 1. Upload the entire `contact-form-7` folder to the `/wp-content/plugins/` directory.
45
+ 1. Activate the plugin through the 'Plugins' menu in WordPress.
46
47
+ The control panel of Contact Form 7 is in 'Manage > Contact Form 7'. Please note that it has moved from the 'Settings' menu since Contact Form 7 1.8.
48
+
49
+ For basic usage, you can also have a look at the [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/).
50
51
== Frequently Asked Questions ==
52
53
+ Please see [FAQ](http://ideasilo.wordpress.com/2008/03/29/contact-form-7-faq/).
54
55
+ If you have any further questions,
56
+ please submit them [to the support forum](http://wordpress.org/tags/contact-form-7#postform).
57
58
== Screenshots ==
59
60
1. screenshot-1.png
61
+ 2. screenshot-2.png
admin-stylesheet.css CHANGED
@@ -1,13 +1,10 @@
1
- ul.cfmenu li {
2
- display: inline;
3
- margin-right: 1em;
4
}
5
- ul.cfmenu li.addnew {
6
- margin-left: 1.5em;
7
- }
8
- ul.cfmenu li.addnew a {
9
color: #e6255b;
10
}
11
div.relative {
12
position: relative;
13
}
@@ -33,7 +30,6 @@ input#wpcf7-title {
33
background-color: #fff;
34
border: none;
35
font: bold 20px serif;
36
- cursor: pointer;
37
}
38
p.tagcode {
39
color: #333;
1
+ ul.subsubsub li.addnew {
2
+ margin-left: 0.5em;
3
}
4
+ ul.subsubsub li.addnew a {
5
color: #e6255b;
6
}
7
+
8
div.relative {
9
position: relative;
10
}
30
background-color: #fff;
31
border: none;
32
font: bold 20px serif;
33
}
34
p.tagcode {
35
color: #333;
captcha/captcha.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/* Really Simple Captcha */
3
4
- /* Copyright 2007 Takayuki Miyoshi (email: takayukister at gmail.com)
5
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
1
<?php
2
/* Really Simple Captcha */
3
4
+ /* Copyright 2007-2008 Takayuki Miyoshi (email: takayukister at gmail.com)
5
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
includes/admin-panel.php CHANGED
@@ -3,24 +3,28 @@
3
<?php endif; ?>
4
<div class="wrap">
5
<h2><?php _e('Contact Form 7', 'wpcf7'); ?></h2>
6
- <ul class="cfmenu">
7
- <?php foreach ($contact_forms as $k => $v) : ?>
8
- <li><?php if ($k == $current) echo '&raquo; '; ?>
9
- <a href="<?php echo $base_url . '?page=' . $page . '&contactform=' . $k ?>">
10
- <?php echo $v['title']; ?></a></li>
11
- <?php endforeach; ?>
12
- <li class="addnew">
13
- <?php if ($unsaved) echo '&raquo; '; ?>
14
- <a href="<?php echo $base_url . '?page=' . $page . '&contactform=new'; ?>">
15
- <?php _e('Add new', 'wpcf7'); ?></a></li>
16
- </ul>
17
</div>
18
<?php if ($cf) : ?>
19
<div class="wrap relative">
20
<form method="post" action="<?php echo $base_url . '?page=' . $page . '&contactform=' . $current; ?>" id="wpcf7-admin-form-element">
21
- <?php wp_nonce_field('wpcf7-save_' . $current); ?>
22
<input type="hidden" id="wpcf7-id" name="wpcf7-id" value="<?php echo $current; ?>" />
23
- <input type="text" id="wpcf7-title" name="wpcf7-title" size="40" value="<?php echo htmlspecialchars($cf['title']); ?>" />
24
25
<div class="cfdiv">
26
<?php if (! $unsaved) : ?>
@@ -30,6 +34,7 @@
30
</p>
31
<?php endif; ?>
32
33
<div class="fieldset" id="form-content-fieldset"><div class="legend"><?php _e('Form', 'wpcf7'); ?></div>
34
<textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="16"><?php echo htmlspecialchars($cf['form']); ?></textarea>
35
</div>
@@ -79,9 +84,10 @@
79
<div>
80
<input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php _e('Save', 'wpcf7'); ?>" />
81
</div>
82
</div>
83
84
- <?php if (! $unsaved) : ?>
85
<div class="delete-link"><?php $delete_nonce = wp_create_nonce('wpcf7-delete_' . $current); ?>
86
<input type="submit" name="wpcf7-delete" value="<?php _e('Delete this contact form', 'wpcf7'); ?>"
87
<?php echo "onclick=\"if (confirm('" . js_escape(__("You are about to delete this contact form.\n 'Cancel' to stop, 'OK' to delete.", 'wpcf7')) . "')) {this.form._wpnonce.value = '$delete_nonce'; return true;} return false;\""; ?> />
3
<?php endif; ?>
4
<div class="wrap">
5
<h2><?php _e('Contact Form 7', 'wpcf7'); ?></h2>
6
+
7
+ <ul class="subsubsub">
8
+ <?php foreach ($contact_forms as $k => $v) : ?>
9
+ <li><a href="<?php echo $base_url . '?page=' . $page . '&contactform=' . $k ?>"<?php if ($k == $current) echo ' class="current"'; ?>>
10
+ <?php echo $v['title']; ?></a> |</li>
11
+ <?php endforeach; ?>
12
+
13
+ <?php if ($this->has_edit_cap()) : ?>
14
+ <li class="addnew">
15
+ <a href="<?php echo $base_url . '?page=' . $page . '&contactform=new'; ?>"<?php if ($unsaved) echo ' class="current"'; ?>>
16
+ <?php _e('Add new', 'wpcf7'); ?></a></li>
17
+ <?php endif; ?>
18
+ </ul>
19
</div>
20
+
21
<?php if ($cf) : ?>
22
+ <?php $disabled = ($this->has_edit_cap()) ? '' : ' disabled="disabled"'; ?>
23
<div class="wrap relative">
24
<form method="post" action="<?php echo $base_url . '?page=' . $page . '&contactform=' . $current; ?>" id="wpcf7-admin-form-element">
25
+ <?php if ($this->has_edit_cap()) wp_nonce_field('wpcf7-save_' . $current); ?>
26
<input type="hidden" id="wpcf7-id" name="wpcf7-id" value="<?php echo $current; ?>" />
27
+ <input type="text" id="wpcf7-title" name="wpcf7-title" size="40" value="<?php echo htmlspecialchars($cf['title']); ?>"<?php echo $disabled; ?> />
28
29
<div class="cfdiv">
30
<?php if (! $unsaved) : ?>
34
</p>
35
<?php endif; ?>
36
37
+ <?php if ($this->has_edit_cap()) : ?>
38
<div class="fieldset" id="form-content-fieldset"><div class="legend"><?php _e('Form', 'wpcf7'); ?></div>
39
<textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="16"><?php echo htmlspecialchars($cf['form']); ?></textarea>
40
</div>
84
<div>
85
<input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php _e('Save', 'wpcf7'); ?>" />
86
</div>
87
+ <?php endif; ?>
88
</div>
89
90
+ <?php if ($this->has_edit_cap() && ! $unsaved) : ?>
91
<div class="delete-link"><?php $delete_nonce = wp_create_nonce('wpcf7-delete_' . $current); ?>
92
<input type="submit" name="wpcf7-delete" value="<?php _e('Delete this contact form', 'wpcf7'); ?>"
93
<?php echo "onclick=\"if (confirm('" . js_escape(__("You are about to delete this contact form.\n 'Cancel' to stop, 'OK' to delete.", 'wpcf7')) . "')) {this.form._wpnonce.value = '$delete_nonce'; return true;} return false;\""; ?> />
languages/wpcf7-hu_HU.mo ADDED
Binary file
languages/wpcf7-hu_HU.po ADDED
@@ -0,0 +1,305 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Contact Form 7 v1.hu\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-07-26 16:05+0100\n"
6
+ "Last-Translator: HiA <hia@itblog.hu>\n"
7
+ "Language-Team: HiA <hia@itblog.hu>\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: Hungarian\n"
12
+ "X-Poedit-Country: HUNGARY\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 "Kapcsolat űrlap"
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 "Contact Form 7"
23
+
24
+ #: contact-form-7/wp-contact-form-7.php:372
25
+ msgid "optional"
26
+ msgstr "választható"
27
+
28
+ #: contact-form-7/wp-contact-form-7.php:373
29
+ msgid "Generate Tag"
30
+ msgstr "Általános Címke"
31
+
32
+ #: contact-form-7/wp-contact-form-7.php:374
33
+ msgid "Text field"
34
+ msgstr "Szöveg mező"
35
+
36
+ #: contact-form-7/wp-contact-form-7.php:375
37
+ msgid "Email field"
38
+ msgstr "E-mail mező"
39
+
40
+ #: contact-form-7/wp-contact-form-7.php:376
41
+ msgid "Text area"
42
+ msgstr "Többsoros szöveg"
43
+
44
+ #: contact-form-7/wp-contact-form-7.php:377
45
+ msgid "Drop-down menu"
46
+ msgstr "Lenyíló menü"
47
+
48
+ #: contact-form-7/wp-contact-form-7.php:378
49
+ msgid "Checkboxes"
50
+ msgstr "Jelölőnégyzetek"
51
+
52
+ #: contact-form-7/wp-contact-form-7.php:379
53
+ msgid "Radio buttons"
54
+ msgstr "Választógombok"
55
+
56
+ #: contact-form-7/wp-contact-form-7.php:380
57
+ msgid "Acceptance"
58
+ msgstr "Elfogadás"
59
+
60
+ #: contact-form-7/wp-contact-form-7.php:381
61
+ msgid "Make this checkbox checked by default?"
62
+ msgstr "Ez a jelölőnyégyzet alapértelmezettnek be legyen kapcsolva?"
63
+
64
+ #: contact-form-7/wp-contact-form-7.php:382
65
+ msgid "Make this checkbox work inversely?"
66
+ msgstr "Ez a jelölőnégyzet működjön fordítva?"
67
+
68
+ #: contact-form-7/wp-contact-form-7.php:383
69
+ msgid "* That means visitor who accepts the term unchecks it."
70
+ msgstr "* Azt jelenti, hogy az a látogató kikapcsolja, aki elfogadja a feltételeket."
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 "Elfogadás gomb"
79
+
80
+ #: contact-form-7/wp-contact-form-7.php:386
81
+ msgid "Name"
82
+ msgstr "Név"
83
+
84
+ #: contact-form-7/wp-contact-form-7.php:387
85
+ msgid "Required field?"
86
+ msgstr "Kötelező mező?"
87
+
88
+ #: contact-form-7/wp-contact-form-7.php:388
89
+ msgid "Allow multiple selections?"
90
+ msgstr "Engedélyezett a többszörös választás?"
91
+
92
+ #: contact-form-7/wp-contact-form-7.php:389
93
+ msgid "Insert a blank item as the first option?"
94
+ msgstr "Első lehetőségnek egy üres tétel beszúrása?"
95
+
96
+ #: contact-form-7/wp-contact-form-7.php:390
97
+ msgid "Make checkboxes exclusive?"
98
+ msgstr "A jelölőnégyzetek kizáróak legyenek?"
99
+
100
+ #: contact-form-7/wp-contact-form-7.php:391
101
+ msgid "Choices"
102
+ msgstr "Lehetőségek"
103
+
104
+ #: contact-form-7/wp-contact-form-7.php:392
105
+ msgid "Label"
106
+ msgstr "Cimke"
107
+
108
+ #: contact-form-7/wp-contact-form-7.php:393
109
+ msgid "Default value"
110
+ msgstr "Alapértelmezett érték"
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 "Ebbe a mezőbe a szerző neve szükséges"
119
+
120
+ #: contact-form-7/wp-contact-form-7.php:396
121
+ msgid "This field requires author's URL"
122
+ msgstr "Ebbe a mezőbe a szerző URL-je szükséges"
123
+
124
+ #: contact-form-7/wp-contact-form-7.php:397
125
+ msgid "This field requires author's email address"
126
+ msgstr "Ebbe a mezőbe a szerző e-mail címe szükséges"
127
+
128
+ #: contact-form-7/wp-contact-form-7.php:398
129
+ msgid "Copy and paste this code into the form"
130
+ msgstr "Másold és illeszd be a kódot az űrlapra!"
131
+
132
+ #: contact-form-7/wp-contact-form-7.php:399
133
+ msgid "Foreground color"
134
+ msgstr "Előtér szín"
135
+
136
+ #: contact-form-7/wp-contact-form-7.php:400
137
+ msgid "Background color"
138
+ msgstr "Háttér szín"
139
+
140
+ #: contact-form-7/wp-contact-form-7.php:401
141
+ msgid "Image size"
142
+ msgstr "Kép mérete"
143
+
144
+ #: contact-form-7/wp-contact-form-7.php:402
145
+ msgid "Small"
146
+ msgstr "Kicsi"
147
+
148
+ #: contact-form-7/wp-contact-form-7.php:403
149
+ msgid "Medium"
150
+ msgstr "Közepes"
151
+
152
+ #: contact-form-7/wp-contact-form-7.php:404
153
+ msgid "Large"
154
+ msgstr "Nagy"
155
+
156
+ #: contact-form-7/wp-contact-form-7.php:405
157
+ msgid "Image settings"
158
+ msgstr "Kép beállítások"
159
+
160
+ #: contact-form-7/wp-contact-form-7.php:406
161
+ msgid "Input field settings"
162
+ msgstr "Beviteli mező beállításai"
163
+
164
+ #: contact-form-7/wp-contact-form-7.php:407
165
+ msgid "For image"
166
+ msgstr "Képnek"
167
+
168
+ #: contact-form-7/wp-contact-form-7.php:408
169
+ msgid "For input field"
170
+ msgstr "Beviteli mezőnek"
171
+
172
+ #: contact-form-7/wp-contact-form-7.php:409
173
+ msgid "* One choice per line."
174
+ msgstr "* Egy választás soronként."
175
+
176
+ #: contact-form-7/wp-contact-form-7.php:428
177
+ msgid "Contact form created."
178
+ msgstr "Kapcsolat űrlap létrehozva."
179
+
180
+ #: contact-form-7/wp-contact-form-7.php:431
181
+ msgid "Contact form saved."
182
+ msgstr "Kapcsolat űrlap elmentve."
183
+
184
+ #: contact-form-7/wp-contact-form-7.php:434
185
+ msgid "Contact form deleted."
186
+ msgstr "Kapcsolat űrlap törölve."
187
+
188
+ #: contact-form-7/wp-contact-form-7.php:441
189
+ msgid "Untitled"
190
+ msgstr "Cím nélkül"
191
+
192
+ #: contact-form-7/wp-contact-form-7.php:465
193
+ msgid "Your Name"
194
+ msgstr "Neved"
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 "(szükséges)"
200
+
201
+ #: contact-form-7/wp-contact-form-7.php:467
202
+ msgid "Your Email"
203
+ msgstr "E-mail címed"
204
+
205
+ #: contact-form-7/wp-contact-form-7.php:469
206
+ msgid "Subject"
207
+ msgstr "Tárgy"
208
+
209
+ #: contact-form-7/wp-contact-form-7.php:471
210
+ msgid "Your Message"
211
+ msgstr "Üzeneted"
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 "Küldés"
217
+
218
+ #: contact-form-7/wp-contact-form-7.php:502
219
+ msgid "Your message was sent successfully. Thanks."
220
+ msgstr "Az üzenet sikeresen el lett küldve. Köszönjük!"
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 "Üzenet küldése sikertelen. Kérjük próbálja meg később vagy más módon keresse a kapcsolatot!"
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 "Érvényesítési hiba. Kérem a mezők megerősítését és újra elfogadását!"
229
+
230
+ #: contact-form-7/wp-contact-form-7.php:508
231
+ msgid "Please accept the terms to proceed."
232
+ msgstr "Kérem a feltételek elfogadását a folytatáshoz!"
233
+
234
+ #: contact-form-7/wp-contact-form-7.php:510
235
+ msgid "Email address seems invalid."
236
+ msgstr "Az e-mail cím nem tűnik helyesnek."
237
+
238
+ #: contact-form-7/wp-contact-form-7.php:512
239
+ msgid "Please fill the required field."
240
+ msgstr "Kérem a szükséges mezők kitöltését!"
241
+
242
+ #: contact-form-7/wp-contact-form-7.php:514
243
+ msgid "Your entered code is incorrect."
244
+ msgstr "A beírt kódod hibás."
245
+
246
+ #: contact-form-7/includes/admin-panel.php:15
247
+ msgid "Add new"
248
+ msgstr "Új hozzáadása"
249
+
250
+ #: contact-form-7/includes/admin-panel.php:28
251
+ msgid "Copy and paste this code into your post content."
252
+ msgstr "Másold és illeszd be ezt a kódot a bejegyzésde tartalmába!"
253
+
254
+ #: contact-form-7/includes/admin-panel.php:33
255
+ msgid "Form"
256
+ msgstr "Űrlap"
257
+
258
+ #: contact-form-7/includes/admin-panel.php:37
259
+ msgid "Mail"
260
+ msgstr "Levél"
261
+
262
+ #: contact-form-7/includes/admin-panel.php:39
263
+ #: contact-form-7/includes/admin-panel.php:60
264
+ msgid "To:"
265
+ msgstr "Címzett:"
266
+
267
+ #: contact-form-7/includes/admin-panel.php:43
268
+ #: contact-form-7/includes/admin-panel.php:64
269
+ msgid "From:"
270
+ msgstr "Feladó:"
271
+
272
+ #: contact-form-7/includes/admin-panel.php:47
273
+ #: contact-form-7/includes/admin-panel.php:68
274
+ msgid "Subject:"
275
+ msgstr "Tárgy:"
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 "Üzenet törzse:"
281
+
282
+ #: contact-form-7/includes/admin-panel.php:56
283
+ msgid "Mail (2)"
284
+ msgstr "Levél (2)"
285
+
286
+ #: contact-form-7/includes/admin-panel.php:58
287
+ msgid "Use mail (2)"
288
+ msgstr "Levél (2) használata"
289
+
290
+ #: contact-form-7/includes/admin-panel.php:80
291
+ msgid "Save"
292
+ msgstr "Mentés"
293
+
294
+ #: contact-form-7/includes/admin-panel.php:86
295
+ msgid "Delete this contact form"
296
+ msgstr "Ennek a kapcsolat űrlapnak a törlése."
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
+ "Ennek a kapcsolat űrlapnak a törlésére készül.\n"
304
+ " 'Mégse', ha nem akarja, 'OK' a törléshez."
305
+
languages/wpcf7-ja.mo CHANGED
Binary file
languages/wpcf7-ja.po CHANGED
@@ -2,8 +2,8 @@ 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: 2008-03-02 17:01+0900\n"
7
"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
"Language-Team: Takayuki Miyoshi <takayukister@gmail.com>\n"
9
"MIME-Version: 1.0\n"
@@ -17,290 +17,290 @@ msgstr ""
17
"Plural-Forms: nplurals=1; plural=0;\n"
18
"X-Poedit-SearchPath-0: contact-form-7\n"
19
20
- #: contact-form-7/wp-contact-form-7.php:271
21
msgid "Contact form"
22
msgstr "コンタクトフォーム"
23
24
- #: contact-form-7/wp-contact-form-7.php:356
25
#: contact-form-7/includes/admin-panel.php:5
26
msgid "Contact Form 7"
27
msgstr "Contact Form 7"
28
29
- #: contact-form-7/wp-contact-form-7.php:372
30
msgid "optional"
31
msgstr "オプション"
32
33
- #: contact-form-7/wp-contact-form-7.php:373
34
msgid "Generate Tag"
35
msgstr "タグの作成"
36
37
- #: contact-form-7/wp-contact-form-7.php:374
38
msgid "Text field"
39
msgstr "テキスト項目"
40
41
- #: contact-form-7/wp-contact-form-7.php:375
42
msgid "Email field"
43
msgstr "メールアドレス項目"
44
45
- #: contact-form-7/wp-contact-form-7.php:376
46
msgid "Text area"
47
msgstr "テキストエリア"
48
49
- #: contact-form-7/wp-contact-form-7.php:377
50
msgid "Drop-down menu"
51
msgstr "ドロップダウン・メニュー"
52
53
- #: contact-form-7/wp-contact-form-7.php:378
54
msgid "Checkboxes"
55
msgstr "チェックボックス"
56
57
- #: contact-form-7/wp-contact-form-7.php:379
58
msgid "Radio buttons"
59
msgstr "ラジオボタン"
60
61
- #: contact-form-7/wp-contact-form-7.php:380
62
msgid "Acceptance"
63
msgstr "承諾の確認"
64
65
- #: contact-form-7/wp-contact-form-7.php:381
66
msgid "Make this checkbox checked by default?"
67
msgstr "初期状態でチェックボックスにチェックを入れますか?"
68
69
- #: contact-form-7/wp-contact-form-7.php:382
70
msgid "Make this checkbox work inversely?"
71
msgstr "チェックボックスを反転させますか?"
72
73
- #: contact-form-7/wp-contact-form-7.php:383
74
msgid "* That means visitor who accepts the term unchecks it."
75
msgstr "* つまり、利用者には条項に承諾する場合にチェックボックスのチェックをはずしてもらいます。"
76
77
- #: contact-form-7/wp-contact-form-7.php:384
78
msgid "CAPTCHA"
79
msgstr "CAPTCHA"
80
81
- #: contact-form-7/wp-contact-form-7.php:385
82
msgid "Submit button"
83
msgstr "送信ボタン"
84
85
- #: contact-form-7/wp-contact-form-7.php:386
86
msgid "Name"
87
msgstr "名前"
88
89
- #: contact-form-7/wp-contact-form-7.php:387
90
msgid "Required field?"
91
msgstr "必須入力の項目ですか?"
92
93
- #: contact-form-7/wp-contact-form-7.php:388
94
msgid "Allow multiple selections?"
95
msgstr "複数選択を可能にしますか?"
96
97
- #: contact-form-7/wp-contact-form-7.php:389
98
msgid "Insert a blank item as the first option?"
99
msgstr "先頭に空の項目を挿入しますか?"
100
101
- #: contact-form-7/wp-contact-form-7.php:390
102
msgid "Make checkboxes exclusive?"
103
msgstr "チェックボックスを排他化しますか?"
104
105
- #: contact-form-7/wp-contact-form-7.php:391
106
msgid "Choices"
107
msgstr "選択項目"
108
109
- #: contact-form-7/wp-contact-form-7.php:392
110
msgid "Label"
111
msgstr "ラベル"
112
113
- #: contact-form-7/wp-contact-form-7.php:393
114
msgid "Default value"
115
msgstr "デフォルト値"
116
117
- #: contact-form-7/wp-contact-form-7.php:394
118
msgid "Akismet"
119
msgstr "Akismet"
120
121
- #: contact-form-7/wp-contact-form-7.php:395
122
msgid "This field requires author's name"
123
msgstr "送信者の名前の入力を要求する項目"
124
125
- #: contact-form-7/wp-contact-form-7.php:396
126
msgid "This field requires author's URL"
127
msgstr "送信者の URL の入力を要求する項目"
128
129
- #: contact-form-7/wp-contact-form-7.php:397
130
msgid "This field requires author's email address"
131
msgstr "送信者のメールアドレスの入力を要求する項目"
132
133
- #: contact-form-7/wp-contact-form-7.php:398
134
msgid "Copy and paste this code into the form"
135
msgstr "次のコードをコピーしてフォームにペーストして下さい。"
136
137
- #: contact-form-7/wp-contact-form-7.php:399
138
msgid "Foreground color"
139
msgstr "文字色"
140
141
- #: contact-form-7/wp-contact-form-7.php:400
142
msgid "Background color"
143
msgstr "背景色"
144
145
- #: contact-form-7/wp-contact-form-7.php:401
146
msgid "Image size"
147
msgstr "画像サイズ"
148
149
- #: contact-form-7/wp-contact-form-7.php:402
150
msgid "Small"
151
msgstr "小"
152
153
- #: contact-form-7/wp-contact-form-7.php:403
154
msgid "Medium"
155
msgstr "中"
156
157
- #: contact-form-7/wp-contact-form-7.php:404
158
msgid "Large"
159
msgstr "大"
160
161
- #: contact-form-7/wp-contact-form-7.php:405
162
msgid "Image settings"
163
msgstr "画像の設定"
164
165
- #: contact-form-7/wp-contact-form-7.php:406
166
msgid "Input field settings"
167
msgstr "入力項目の設定"
168
169
- #: contact-form-7/wp-contact-form-7.php:407
170
msgid "For image"
171
msgstr "画像"
172
173
- #: contact-form-7/wp-contact-form-7.php:408
174
msgid "For input field"
175
msgstr "入力項目"
176
177
- #: contact-form-7/wp-contact-form-7.php:409
178
msgid "* One choice per line."
179
msgstr "* 1行ごとに分けて入力してください。"
180
181
- #: contact-form-7/wp-contact-form-7.php:428
182
msgid "Contact form created."
183
msgstr "コンタクトフォームが作成されました。"
184
185
- #: contact-form-7/wp-contact-form-7.php:431
186
msgid "Contact form saved."
187
msgstr "コンタクトフォームが保存されました。"
188
189
- #: contact-form-7/wp-contact-form-7.php:434
190
msgid "Contact form deleted."
191
msgstr "コンタクトフォームが削除されました。"
192
193
- #: contact-form-7/wp-contact-form-7.php:441
194
msgid "Untitled"
195
msgstr "無題"
196
197
- #: contact-form-7/wp-contact-form-7.php:465
198
msgid "Your Name"
199
msgstr "お名前"
200
201
- #: contact-form-7/wp-contact-form-7.php:465
202
- #: contact-form-7/wp-contact-form-7.php:467
203
msgid "(required)"
204
msgstr "(必須)"
205
206
- #: contact-form-7/wp-contact-form-7.php:467
207
msgid "Your Email"
208
msgstr "メールアドレス"
209
210
- #: contact-form-7/wp-contact-form-7.php:469
211
msgid "Subject"
212
msgstr "題名"
213
214
- #: contact-form-7/wp-contact-form-7.php:471
215
msgid "Your Message"
216
msgstr "メッセージ本文"
217
218
- #: contact-form-7/wp-contact-form-7.php:473
219
- #: contact-form-7/wp-contact-form-7.php:956
220
msgid "Send"
221
msgstr "送信"
222
223
- #: contact-form-7/wp-contact-form-7.php:502
224
msgid "Your message was sent successfully. Thanks."
225
msgstr "あなたのメッセージは送信されました。ありがとうございました。"
226
227
- #: contact-form-7/wp-contact-form-7.php:504
228
msgid "Failed to send your message. Please try later or contact administrator by other way."
229
msgstr "メッセージの送信に失敗しました。間をおいてもう一度お試しいただくか、別の手段で管理者にお問い合わせ下さい。"
230
231
- #: contact-form-7/wp-contact-form-7.php:506
232
msgid "Validation errors occurred. Please confirm the fields and submit it again."
233
msgstr "入力内容に不備があります。確認してもう一度送信してください。"
234
235
- #: contact-form-7/wp-contact-form-7.php:508
236
msgid "Please accept the terms to proceed."
237
msgstr "進めるには条項の承諾が必要です。"
238
239
- #: contact-form-7/wp-contact-form-7.php:510
240
msgid "Email address seems invalid."
241
msgstr "メールアドレスの形式が正しくないようです。"
242
243
- #: contact-form-7/wp-contact-form-7.php:512
244
msgid "Please fill the required field."
245
msgstr "必須項目に記入もれがあります。"
246
247
- #: contact-form-7/wp-contact-form-7.php:514
248
msgid "Your entered code is incorrect."
249
msgstr "入力されたコードが正しくありません。"
250
251
- #: contact-form-7/includes/admin-panel.php:15
252
msgid "Add new"
253
msgstr "新規追加"
254
255
- #: contact-form-7/includes/admin-panel.php:28
256
msgid "Copy and paste this code into your post content."
257
msgstr "次のコードをコピーして投稿の本文中にペーストして下さい。"
258
259
- #: contact-form-7/includes/admin-panel.php:33
260
msgid "Form"
261
msgstr "フォーム"
262
263
- #: contact-form-7/includes/admin-panel.php:37
264
msgid "Mail"
265
msgstr "メール"
266
267
- #: contact-form-7/includes/admin-panel.php:39
268
- #: contact-form-7/includes/admin-panel.php:60
269
msgid "To:"
270
msgstr "宛先:"
271
272
- #: contact-form-7/includes/admin-panel.php:43
273
- #: contact-form-7/includes/admin-panel.php:64
274
msgid "From:"
275
msgstr "差出人:"
276
277
- #: contact-form-7/includes/admin-panel.php:47
278
- #: contact-form-7/includes/admin-panel.php:68
279
msgid "Subject:"
280
msgstr "件名:"
281
282
- #: contact-form-7/includes/admin-panel.php:51
283
- #: contact-form-7/includes/admin-panel.php:72
284
msgid "Message body:"
285
msgstr "メッセージ本文:"
286
287
- #: contact-form-7/includes/admin-panel.php:56
288
msgid "Mail (2)"
289
msgstr "メール (2)"
290
291
- #: contact-form-7/includes/admin-panel.php:58
292
msgid "Use mail (2)"
293
msgstr "メール (2) を使う"
294
295
- #: contact-form-7/includes/admin-panel.php:80
296
msgid "Save"
297
msgstr "保存"
298
299
- #: contact-form-7/includes/admin-panel.php:86
300
msgid "Delete this contact form"
301
msgstr "このコンタクトフォームを削除"
302
303
- #: contact-form-7/includes/admin-panel.php:87
304
msgid ""
305
"You are about to delete this contact form.\n"
306
" 'Cancel' to stop, 'OK' to delete."
2
msgstr ""
3
"Project-Id-Version: Contact Form 7\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-08-10 18:56+0900\n"
6
+ "PO-Revision-Date: 2008-08-10 18:57+0900\n"
7
"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
"Language-Team: Takayuki Miyoshi <takayukister@gmail.com>\n"
9
"MIME-Version: 1.0\n"
17
"Plural-Forms: nplurals=1; plural=0;\n"
18
"X-Poedit-SearchPath-0: contact-form-7\n"
19
20
+ #: contact-form-7/wp-contact-form-7.php:309
21
msgid "Contact form"
22
msgstr "コンタクトフォーム"
23
24
+ #: contact-form-7/wp-contact-form-7.php:403
25
#: contact-form-7/includes/admin-panel.php:5
26
msgid "Contact Form 7"
27
msgstr "Contact Form 7"
28
29
+ #: contact-form-7/wp-contact-form-7.php:419
30
msgid "optional"
31
msgstr "オプション"
32
33
+ #: contact-form-7/wp-contact-form-7.php:420
34
msgid "Generate Tag"
35
msgstr "タグの作成"
36
37
+ #: contact-form-7/wp-contact-form-7.php:421
38
msgid "Text field"
39
msgstr "テキスト項目"
40
41
+ #: contact-form-7/wp-contact-form-7.php:422
42
msgid "Email field"
43
msgstr "メールアドレス項目"
44
45
+ #: contact-form-7/wp-contact-form-7.php:423
46
msgid "Text area"
47
msgstr "テキストエリア"
48
49
+ #: contact-form-7/wp-contact-form-7.php:424
50
msgid "Drop-down menu"
51
msgstr "ドロップダウン・メニュー"
52
53
+ #: contact-form-7/wp-contact-form-7.php:425
54
msgid "Checkboxes"
55
msgstr "チェックボックス"
56
57
+ #: contact-form-7/wp-contact-form-7.php:426
58
msgid "Radio buttons"
59
msgstr "ラジオボタン"
60
61
+ #: contact-form-7/wp-contact-form-7.php:427
62
msgid "Acceptance"
63
msgstr "承諾の確認"
64
65
+ #: contact-form-7/wp-contact-form-7.php:428
66
msgid "Make this checkbox checked by default?"
67
msgstr "初期状態でチェックボックスにチェックを入れますか?"
68
69
+ #: contact-form-7/wp-contact-form-7.php:429
70
msgid "Make this checkbox work inversely?"
71
msgstr "チェックボックスを反転させますか?"
72
73
+ #: contact-form-7/wp-contact-form-7.php:430
74
msgid "* That means visitor who accepts the term unchecks it."
75
msgstr "* つまり、利用者には条項に承諾する場合にチェックボックスのチェックをはずしてもらいます。"
76
77
+ #: contact-form-7/wp-contact-form-7.php:431
78
msgid "CAPTCHA"
79
msgstr "CAPTCHA"
80
81
+ #: contact-form-7/wp-contact-form-7.php:432
82
msgid "Submit button"
83
msgstr "送信ボタン"
84
85
+ #: contact-form-7/wp-contact-form-7.php:433
86
msgid "Name"
87
msgstr "名前"
88
89
+ #: contact-form-7/wp-contact-form-7.php:434
90
msgid "Required field?"
91
msgstr "必須入力の項目ですか?"
92
93
+ #: contact-form-7/wp-contact-form-7.php:435
94
msgid "Allow multiple selections?"
95
msgstr "複数選択を可能にしますか?"
96
97
+ #: contact-form-7/wp-contact-form-7.php:436
98
msgid "Insert a blank item as the first option?"
99
msgstr "先頭に空の項目を挿入しますか?"
100
101
+ #: contact-form-7/wp-contact-form-7.php:437
102
msgid "Make checkboxes exclusive?"
103
msgstr "チェックボックスを排他化しますか?"
104
105
+ #: contact-form-7/wp-contact-form-7.php:438
106
msgid "Choices"
107
msgstr "選択項目"
108
109
+ #: contact-form-7/wp-contact-form-7.php:439
110
msgid "Label"
111
msgstr "ラベル"
112
113
+ #: contact-form-7/wp-contact-form-7.php:440
114
msgid "Default value"
115
msgstr "デフォルト値"
116
117
+ #: contact-form-7/wp-contact-form-7.php:441
118
msgid "Akismet"
119
msgstr "Akismet"
120
121
+ #: contact-form-7/wp-contact-form-7.php:442
122
msgid "This field requires author's name"
123
msgstr "送信者の名前の入力を要求する項目"
124
125
+ #: contact-form-7/wp-contact-form-7.php:443
126
msgid "This field requires author's URL"
127
msgstr "送信者の URL の入力を要求する項目"
128
129
+ #: contact-form-7/wp-contact-form-7.php:444
130
msgid "This field requires author's email address"
131
msgstr "送信者のメールアドレスの入力を要求する項目"
132
133
+ #: contact-form-7/wp-contact-form-7.php:445
134
msgid "Copy and paste this code into the form"
135
msgstr "次のコードをコピーしてフォームにペーストして下さい。"
136
137
+ #: contact-form-7/wp-contact-form-7.php:446
138
msgid "Foreground color"
139
msgstr "文字色"
140
141
+ #: contact-form-7/wp-contact-form-7.php:447
142
msgid "Background color"
143
msgstr "背景色"
144
145
+ #: contact-form-7/wp-contact-form-7.php:448
146
msgid "Image size"
147
msgstr "画像サイズ"
148
149
+ #: contact-form-7/wp-contact-form-7.php:449
150
msgid "Small"
151
msgstr "小"
152
153
+ #: contact-form-7/wp-contact-form-7.php:450
154
msgid "Medium"
155
msgstr "中"
156
157
+ #: contact-form-7/wp-contact-form-7.php:451
158
msgid "Large"
159
msgstr "大"
160
161
+ #: contact-form-7/wp-contact-form-7.php:452
162
msgid "Image settings"
163
msgstr "画像の設定"
164
165
+ #: contact-form-7/wp-contact-form-7.php:453
166
msgid "Input field settings"
167
msgstr "入力項目の設定"
168
169
+ #: contact-form-7/wp-contact-form-7.php:454
170
msgid "For image"
171
msgstr "画像"
172
173
+ #: contact-form-7/wp-contact-form-7.php:455
174
msgid "For input field"
175
msgstr "入力項目"
176
177
+ #: contact-form-7/wp-contact-form-7.php:456
178
msgid "* One choice per line."
179
msgstr "* 1行ごとに分けて入力してください。"
180
181
+ #: contact-form-7/wp-contact-form-7.php:483
182
msgid "Contact form created."
183
msgstr "コンタクトフォームが作成されました。"
184
185
+ #: contact-form-7/wp-contact-form-7.php:486
186
msgid "Contact form saved."
187
msgstr "コンタクトフォームが保存されました。"
188
189
+ #: contact-form-7/wp-contact-form-7.php:489
190
msgid "Contact form deleted."
191
msgstr "コンタクトフォームが削除されました。"
192
193
+ #: contact-form-7/wp-contact-form-7.php:496
194
msgid "Untitled"
195
msgstr "無題"
196
197
+ #: contact-form-7/wp-contact-form-7.php:522
198
msgid "Your Name"
199
msgstr "お名前"
200
201
+ #: contact-form-7/wp-contact-form-7.php:522
202
+ #: contact-form-7/wp-contact-form-7.php:524
203
msgid "(required)"
204
msgstr "(必須)"
205
206
+ #: contact-form-7/wp-contact-form-7.php:524
207
msgid "Your Email"
208
msgstr "メールアドレス"
209
210
+ #: contact-form-7/wp-contact-form-7.php:526
211
msgid "Subject"
212
msgstr "題名"
213
214
+ #: contact-form-7/wp-contact-form-7.php:528
215
msgid "Your Message"
216
msgstr "メッセージ本文"
217
218
+ #: contact-form-7/wp-contact-form-7.php:530
219
+ #: contact-form-7/wp-contact-form-7.php:1046
220
msgid "Send"
221
msgstr "送信"
222
223
+ #: contact-form-7/wp-contact-form-7.php:559
224
msgid "Your message was sent successfully. Thanks."
225
msgstr "あなたのメッセージは送信されました。ありがとうございました。"
226
227
+ #: contact-form-7/wp-contact-form-7.php:561
228
msgid "Failed to send your message. Please try later or contact administrator by other way."
229
msgstr "メッセージの送信に失敗しました。間をおいてもう一度お試しいただくか、別の手段で管理者にお問い合わせ下さい。"
230
231
+ #: contact-form-7/wp-contact-form-7.php:563
232
msgid "Validation errors occurred. Please confirm the fields and submit it again."
233
msgstr "入力内容に不備があります。確認してもう一度送信してください。"
234
235
+ #: contact-form-7/wp-contact-form-7.php:565
236
msgid "Please accept the terms to proceed."
237
msgstr "進めるには条項の承諾が必要です。"
238
239
+ #: contact-form-7/wp-contact-form-7.php:567
240
msgid "Email address seems invalid."
241
msgstr "メールアドレスの形式が正しくないようです。"
242
243
+ #: contact-form-7/wp-contact-form-7.php:569
244
msgid "Please fill the required field."
245
msgstr "必須項目に記入もれがあります。"
246
247
+ #: contact-form-7/wp-contact-form-7.php:571
248
msgid "Your entered code is incorrect."
249
msgstr "入力されたコードが正しくありません。"
250
251
+ #: contact-form-7/includes/admin-panel.php:16
252
msgid "Add new"
253
msgstr "新規追加"
254
255
+ #: contact-form-7/includes/admin-panel.php:32
256
msgid "Copy and paste this code into your post content."
257
msgstr "次のコードをコピーして投稿の本文中にペーストして下さい。"
258
259
+ #: contact-form-7/includes/admin-panel.php:38
260
msgid "Form"
261
msgstr "フォーム"
262
263
+ #: contact-form-7/includes/admin-panel.php:42
264
msgid "Mail"
265
msgstr "メール"
266
267
+ #: contact-form-7/includes/admin-panel.php:44
268
+ #: contact-form-7/includes/admin-panel.php:65
269
msgid "To:"
270
msgstr "宛先:"
271
272
+ #: contact-form-7/includes/admin-panel.php:48
273
+ #: contact-form-7/includes/admin-panel.php:69
274
msgid "From:"
275
msgstr "差出人:"
276
277
+ #: contact-form-7/includes/admin-panel.php:52
278
+ #: contact-form-7/includes/admin-panel.php:73
279
msgid "Subject:"
280
msgstr "件名:"
281
282
+ #: contact-form-7/includes/admin-panel.php:56
283
+ #: contact-form-7/includes/admin-panel.php:77
284
msgid "Message body:"
285
msgstr "メッセージ本文:"
286
287
+ #: contact-form-7/includes/admin-panel.php:61
288
msgid "Mail (2)"
289
msgstr "メール (2)"
290
291
+ #: contact-form-7/includes/admin-panel.php:63
292
msgid "Use mail (2)"
293
msgstr "メール (2) を使う"
294
295
+ #: contact-form-7/includes/admin-panel.php:85
296
msgid "Save"
297
msgstr "保存"
298
299
+ #: contact-form-7/includes/admin-panel.php:92
300
msgid "Delete this contact form"
301
msgstr "このコンタクトフォームを削除"
302
303
+ #: contact-form-7/includes/admin-panel.php:93
304
msgid ""
305
"You are about to delete this contact form.\n"
306
" 'Cancel' to stop, 'OK' to delete."
languages/wpcf7.pot CHANGED
@@ -2,8 +2,8 @@ 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: 2008-03-02 16:53+0900\n"
7
"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
"Language-Team: \n"
9
"MIME-Version: 1.0\n"
@@ -15,290 +15,290 @@ msgstr ""
15
"Plural-Forms: nplurals=1; plural=0;\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 ""
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 ""
26
27
- #: contact-form-7/wp-contact-form-7.php:372
28
msgid "optional"
29
msgstr ""
30
31
- #: contact-form-7/wp-contact-form-7.php:373
32
msgid "Generate Tag"
33
msgstr ""
34
35
- #: contact-form-7/wp-contact-form-7.php:374
36
msgid "Text field"
37
msgstr ""
38
39
- #: contact-form-7/wp-contact-form-7.php:375
40
msgid "Email field"
41
msgstr ""
42
43
- #: contact-form-7/wp-contact-form-7.php:376
44
msgid "Text area"
45
msgstr ""
46
47
- #: contact-form-7/wp-contact-form-7.php:377
48
msgid "Drop-down menu"
49
msgstr ""
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 ""
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 ""
78
79
- #: contact-form-7/wp-contact-form-7.php:385
80
msgid "Submit button"
81
msgstr ""
82
83
- #: contact-form-7/wp-contact-form-7.php:386
84
msgid "Name"
85
msgstr ""
86
87
- #: contact-form-7/wp-contact-form-7.php:387
88
msgid "Required field?"
89
msgstr ""
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 ""
106
107
- #: contact-form-7/wp-contact-form-7.php:392
108
msgid "Label"
109
msgstr ""
110
111
- #: contact-form-7/wp-contact-form-7.php:393
112
msgid "Default value"
113
msgstr ""
114
115
- #: contact-form-7/wp-contact-form-7.php:394
116
msgid "Akismet"
117
msgstr ""
118
119
- #: contact-form-7/wp-contact-form-7.php:395
120
msgid "This field requires author's name"
121
msgstr ""
122
123
- #: contact-form-7/wp-contact-form-7.php:396
124
msgid "This field requires author's URL"
125
msgstr ""
126
127
- #: contact-form-7/wp-contact-form-7.php:397
128
msgid "This field requires author's email address"
129
msgstr ""
130
131
- #: contact-form-7/wp-contact-form-7.php:398
132
msgid "Copy and paste this code into the form"
133
msgstr ""
134
135
- #: contact-form-7/wp-contact-form-7.php:399
136
msgid "Foreground color"
137
msgstr ""
138
139
- #: contact-form-7/wp-contact-form-7.php:400
140
msgid "Background color"
141
msgstr ""
142
143
- #: contact-form-7/wp-contact-form-7.php:401
144
msgid "Image size"
145
msgstr ""
146
147
- #: contact-form-7/wp-contact-form-7.php:402
148
msgid "Small"
149
msgstr ""
150
151
- #: contact-form-7/wp-contact-form-7.php:403
152
msgid "Medium"
153
msgstr ""
154
155
- #: contact-form-7/wp-contact-form-7.php:404
156
msgid "Large"
157
msgstr ""
158
159
- #: contact-form-7/wp-contact-form-7.php:405
160
msgid "Image settings"
161
msgstr ""
162
163
- #: contact-form-7/wp-contact-form-7.php:406
164
msgid "Input field settings"
165
msgstr ""
166
167
- #: contact-form-7/wp-contact-form-7.php:407
168
msgid "For image"
169
msgstr ""
170
171
- #: contact-form-7/wp-contact-form-7.php:408
172
msgid "For input field"
173
msgstr ""
174
175
- #: contact-form-7/wp-contact-form-7.php:409
176
msgid "* One choice per line."
177
msgstr ""
178
179
- #: contact-form-7/wp-contact-form-7.php:428
180
msgid "Contact form created."
181
msgstr ""
182
183
- #: contact-form-7/wp-contact-form-7.php:431
184
msgid "Contact form saved."
185
msgstr ""
186
187
- #: contact-form-7/wp-contact-form-7.php:434
188
msgid "Contact form deleted."
189
msgstr ""
190
191
- #: contact-form-7/wp-contact-form-7.php:441
192
msgid "Untitled"
193
msgstr ""
194
195
- #: contact-form-7/wp-contact-form-7.php:465
196
msgid "Your Name"
197
msgstr ""
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 ""
203
204
- #: contact-form-7/wp-contact-form-7.php:467
205
msgid "Your Email"
206
msgstr ""
207
208
- #: contact-form-7/wp-contact-form-7.php:469
209
msgid "Subject"
210
msgstr ""
211
212
- #: contact-form-7/wp-contact-form-7.php:471
213
msgid "Your Message"
214
msgstr ""
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 ""
220
221
- #: contact-form-7/wp-contact-form-7.php:502
222
msgid "Your message was sent successfully. Thanks."
223
msgstr ""
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 ""
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 ""
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 ""
240
241
- #: contact-form-7/wp-contact-form-7.php:512
242
msgid "Please fill the required field."
243
msgstr ""
244
245
- #: contact-form-7/wp-contact-form-7.php:514
246
msgid "Your entered code is incorrect."
247
msgstr ""
248
249
- #: contact-form-7/includes/admin-panel.php:15
250
msgid "Add new"
251
msgstr ""
252
253
- #: contact-form-7/includes/admin-panel.php:28
254
msgid "Copy and paste this code into your post content."
255
msgstr ""
256
257
- #: contact-form-7/includes/admin-panel.php:33
258
msgid "Form"
259
msgstr ""
260
261
- #: contact-form-7/includes/admin-panel.php:37
262
msgid "Mail"
263
msgstr ""
264
265
- #: contact-form-7/includes/admin-panel.php:39
266
- #: contact-form-7/includes/admin-panel.php:60
267
msgid "To:"
268
msgstr ""
269
270
- #: contact-form-7/includes/admin-panel.php:43
271
- #: contact-form-7/includes/admin-panel.php:64
272
msgid "From:"
273
msgstr ""
274
275
- #: contact-form-7/includes/admin-panel.php:47
276
- #: contact-form-7/includes/admin-panel.php:68
277
msgid "Subject:"
278
msgstr ""
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 ""
284
285
- #: contact-form-7/includes/admin-panel.php:56
286
msgid "Mail (2)"
287
msgstr ""
288
289
- #: contact-form-7/includes/admin-panel.php:58
290
msgid "Use mail (2)"
291
msgstr ""
292
293
- #: contact-form-7/includes/admin-panel.php:80
294
msgid "Save"
295
msgstr ""
296
297
- #: contact-form-7/includes/admin-panel.php:86
298
msgid "Delete this contact form"
299
msgstr ""
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."
2
msgstr ""
3
"Project-Id-Version: Contact Form 7\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-08-10 18:56+0900\n"
6
+ "PO-Revision-Date: 2008-08-10 18:56+0900\n"
7
"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
"Language-Team: \n"
9
"MIME-Version: 1.0\n"
15
"Plural-Forms: nplurals=1; plural=0;\n"
16
"X-Poedit-SearchPath-0: contact-form-7\n"
17
18
+ #: contact-form-7/wp-contact-form-7.php:309
19
msgid "Contact form"
20
msgstr ""
21
22
+ #: contact-form-7/wp-contact-form-7.php:403
23
#: contact-form-7/includes/admin-panel.php:5
24
msgid "Contact Form 7"
25
msgstr ""
26
27
+ #: contact-form-7/wp-contact-form-7.php:419
28
msgid "optional"
29
msgstr ""
30
31
+ #: contact-form-7/wp-contact-form-7.php:420
32
msgid "Generate Tag"
33
msgstr ""
34
35
+ #: contact-form-7/wp-contact-form-7.php:421
36
msgid "Text field"
37
msgstr ""
38
39
+ #: contact-form-7/wp-contact-form-7.php:422
40
msgid "Email field"
41
msgstr ""
42
43
+ #: contact-form-7/wp-contact-form-7.php:423
44
msgid "Text area"
45
msgstr ""
46
47
+ #: contact-form-7/wp-contact-form-7.php:424
48
msgid "Drop-down menu"
49
msgstr ""
50
51
+ #: contact-form-7/wp-contact-form-7.php:425
52
msgid "Checkboxes"
53
msgstr ""
54
55
+ #: contact-form-7/wp-contact-form-7.php:426
56
msgid "Radio buttons"
57
msgstr ""
58
59
+ #: contact-form-7/wp-contact-form-7.php:427
60
msgid "Acceptance"
61
msgstr ""
62
63
+ #: contact-form-7/wp-contact-form-7.php:428
64
msgid "Make this checkbox checked by default?"
65
msgstr ""
66
67
+ #: contact-form-7/wp-contact-form-7.php:429
68
msgid "Make this checkbox work inversely?"
69
msgstr ""
70
71
+ #: contact-form-7/wp-contact-form-7.php:430
72
msgid "* That means visitor who accepts the term unchecks it."
73
msgstr ""
74
75
+ #: contact-form-7/wp-contact-form-7.php:431
76
msgid "CAPTCHA"
77
msgstr ""
78
79
+ #: contact-form-7/wp-contact-form-7.php:432
80
msgid "Submit button"
81
msgstr ""
82
83
+ #: contact-form-7/wp-contact-form-7.php:433
84
msgid "Name"
85
msgstr ""
86
87
+ #: contact-form-7/wp-contact-form-7.php:434
88
msgid "Required field?"
89
msgstr ""
90
91
+ #: contact-form-7/wp-contact-form-7.php:435
92
msgid "Allow multiple selections?"
93
msgstr ""
94
95
+ #: contact-form-7/wp-contact-form-7.php:436
96
msgid "Insert a blank item as the first option?"
97
msgstr ""
98
99
+ #: contact-form-7/wp-contact-form-7.php:437
100
msgid "Make checkboxes exclusive?"
101
msgstr ""
102
103
+ #: contact-form-7/wp-contact-form-7.php:438
104
msgid "Choices"
105
msgstr ""
106
107
+ #: contact-form-7/wp-contact-form-7.php:439
108
msgid "Label"
109
msgstr ""
110
111
+ #: contact-form-7/wp-contact-form-7.php:440
112
msgid "Default value"
113
msgstr ""
114
115
+ #: contact-form-7/wp-contact-form-7.php:441
116
msgid "Akismet"
117
msgstr ""
118
119
+ #: contact-form-7/wp-contact-form-7.php:442
120
msgid "This field requires author's name"
121
msgstr ""
122
123
+ #: contact-form-7/wp-contact-form-7.php:443
124
msgid "This field requires author's URL"
125
msgstr ""
126
127
+ #: contact-form-7/wp-contact-form-7.php:444
128
msgid "This field requires author's email address"
129
msgstr ""
130
131
+ #: contact-form-7/wp-contact-form-7.php:445
132
msgid "Copy and paste this code into the form"
133
msgstr ""
134
135
+ #: contact-form-7/wp-contact-form-7.php:446
136
msgid "Foreground color"
137
msgstr ""
138
139
+ #: contact-form-7/wp-contact-form-7.php:447
140
msgid "Background color"
141
msgstr ""
142
143
+ #: contact-form-7/wp-contact-form-7.php:448
144
msgid "Image size"
145
msgstr ""
146
147
+ #: contact-form-7/wp-contact-form-7.php:449
148
msgid "Small"
149
msgstr ""
150
151
+ #: contact-form-7/wp-contact-form-7.php:450
152
msgid "Medium"
153
msgstr ""
154
155
+ #: contact-form-7/wp-contact-form-7.php:451
156
msgid "Large"
157
msgstr ""
158
159
+ #: contact-form-7/wp-contact-form-7.php:452
160
msgid "Image settings"
161
msgstr ""
162
163
+ #: contact-form-7/wp-contact-form-7.php:453
164
msgid "Input field settings"
165
msgstr ""
166
167
+ #: contact-form-7/wp-contact-form-7.php:454
168
msgid "For image"
169
msgstr ""
170
171
+ #: contact-form-7/wp-contact-form-7.php:455
172
msgid "For input field"
173
msgstr ""
174
175
+ #: contact-form-7/wp-contact-form-7.php:456
176
msgid "* One choice per line."
177
msgstr ""
178
179
+ #: contact-form-7/wp-contact-form-7.php:483
180
msgid "Contact form created."
181
msgstr ""
182
183
+ #: contact-form-7/wp-contact-form-7.php:486
184
msgid "Contact form saved."
185
msgstr ""
186
187
+ #: contact-form-7/wp-contact-form-7.php:489
188
msgid "Contact form deleted."
189
msgstr ""
190
191
+ #: contact-form-7/wp-contact-form-7.php:496
192
msgid "Untitled"
193
msgstr ""
194
195
+ #: contact-form-7/wp-contact-form-7.php:522
196
msgid "Your Name"
197
msgstr ""
198
199
+ #: contact-form-7/wp-contact-form-7.php:522
200
+ #: contact-form-7/wp-contact-form-7.php:524
201
msgid "(required)"
202
msgstr ""
203
204
+ #: contact-form-7/wp-contact-form-7.php:524
205
msgid "Your Email"
206
msgstr ""
207
208
+ #: contact-form-7/wp-contact-form-7.php:526
209
msgid "Subject"
210
msgstr ""
211
212
+ #: contact-form-7/wp-contact-form-7.php:528
213
msgid "Your Message"
214
msgstr ""
215
216
+ #: contact-form-7/wp-contact-form-7.php:530
217
+ #: contact-form-7/wp-contact-form-7.php:1046
218
msgid "Send"
219
msgstr ""
220
221
+ #: contact-form-7/wp-contact-form-7.php:559
222
msgid "Your message was sent successfully. Thanks."
223
msgstr ""
224
225
+ #: contact-form-7/wp-contact-form-7.php:561
226
msgid "Failed to send your message. Please try later or contact administrator by other way."
227
msgstr ""
228
229
+ #: contact-form-7/wp-contact-form-7.php:563
230
msgid "Validation errors occurred. Please confirm the fields and submit it again."
231
msgstr ""
232
233
+ #: contact-form-7/wp-contact-form-7.php:565
234
msgid "Please accept the terms to proceed."
235
msgstr ""
236
237
+ #: contact-form-7/wp-contact-form-7.php:567
238
msgid "Email address seems invalid."
239
msgstr ""
240
241
+ #: contact-form-7/wp-contact-form-7.php:569
242
msgid "Please fill the required field."
243
msgstr ""
244
245
+ #: contact-form-7/wp-contact-form-7.php:571
246
msgid "Your entered code is incorrect."
247
msgstr ""
248
249
+ #: contact-form-7/includes/admin-panel.php:16
250
msgid "Add new"
251
msgstr ""
252
253
+ #: contact-form-7/includes/admin-panel.php:32
254
msgid "Copy and paste this code into your post content."
255
msgstr ""
256
257
+ #: contact-form-7/includes/admin-panel.php:38
258
msgid "Form"
259
msgstr ""
260
261
+ #: contact-form-7/includes/admin-panel.php:42
262
msgid "Mail"
263
msgstr ""
264
265
+ #: contact-form-7/includes/admin-panel.php:44
266
+ #: contact-form-7/includes/admin-panel.php:65
267
msgid "To:"
268
msgstr ""
269
270
+ #: contact-form-7/includes/admin-panel.php:48
271
+ #: contact-form-7/includes/admin-panel.php:69
272
msgid "From:"
273
msgstr ""
274
275
+ #: contact-form-7/includes/admin-panel.php:52
276
+ #: contact-form-7/includes/admin-panel.php:73
277
msgid "Subject:"
278
msgstr ""
279
280
+ #: contact-form-7/includes/admin-panel.php:56
281
+ #: contact-form-7/includes/admin-panel.php:77
282
msgid "Message body:"
283
msgstr ""
284
285
+ #: contact-form-7/includes/admin-panel.php:61
286
msgid "Mail (2)"
287
msgstr ""
288
289
+ #: contact-form-7/includes/admin-panel.php:63
290
msgid "Use mail (2)"
291
msgstr ""
292
293
+ #: contact-form-7/includes/admin-panel.php:85
294
msgid "Save"
295
msgstr ""
296
297
+ #: contact-form-7/includes/admin-panel.php:92
298
msgid "Delete this contact form"
299
msgstr ""
300
301
+ #: contact-form-7/includes/admin-panel.php:93
302
msgid ""
303
"You are about to delete this contact form.\n"
304
" 'Cancel' to stop, 'OK' to delete."
screenshot-1.png CHANGED
Binary file
screenshot-2.png ADDED
Binary file
wp-contact-form-7.php CHANGED
@@ -4,11 +4,11 @@ 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.8
8
Author URI: http://ideasilo.wordpress.com/
9
*/
10
11
- /* Copyright 2007 Takayuki Miyoshi (email: takayukister at gmail.com)
12
13
This program is free software; you can redistribute it and/or modify
14
it under the terms of the GNU General Public License as published by
@@ -25,6 +25,40 @@ Author URI: http://ideasilo.wordpress.com/
25
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
*/
27
28
class tam_contact_form_seven {
29
30
var $contact_forms;
@@ -44,42 +78,44 @@ class tam_contact_form_seven {
44
if (remove_filter('the_content', 'wpautop'))
45
add_filter('the_content', array(&$this, 'wpautop_substitute'));
46
}
47
-
48
- // Original wpautop function has harmful effect on formatting of form elements.
49
- // This wpautop_substitute is a temporary substitution until original is patched.
50
- // See http://trac.wordpress.org/ticket/4605
51
- function wpautop_substitute($pee, $br = 1) {
52
- $pee = $pee . "\n"; // just to make things a little easier, pad the end
53
- $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
54
- // Space things out a little
55
- $allblocks = '(?:address|area|blockquote|caption|colgroup|dd|div|dl|dt|form|h[1-6]|li|map|math|ol|p|pre|table|tbody|td|tfoot|th|thead|tr|ul)';
56
- $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee);
57
- $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
58
- $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines
59
- $pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates
60
- $pee = preg_replace('/\n?(.+?)(?:\n\s*\n|\z)/s', "<p>$1</p>\n", $pee); // make paragraphs, including one at the end
61
- $pee = preg_replace('|<p>\s*?</p>|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace
62
- $pee = preg_replace('!<p>([^<]+)\s*?(</(?:div|address|form)[^>]*>)!', "<p>$1</p>$2", $pee);
63
- $pee = preg_replace( '|<p>|', "$1<p>", $pee );
64
- $pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee); // don't pee all over a tag
65
- $pee = preg_replace("|<p>(<li.+?)</p>|", "$1", $pee); // problem with nested lists
66
- $pee = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee);
67
- $pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee);
68
- $pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee);
69
- $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee);
70
- if ($br) {
71
- $pee = preg_replace('/<(script|style).*?<\/\\1>/se', 'str_replace("\n", "<WPPreserveNewline />", "\\0")', $pee);
72
- $pee = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $pee); // optionally make line breaks
73
- $pee = str_replace('<WPPreserveNewline />', "\n", $pee);
74
- }
75
- $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*<br />!', "$1", $pee);
76
- $pee = preg_replace('!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $pee);
77
- if (strpos($pee, '<pre') !== false)
78
- $pee = preg_replace('!(<pre.*?>)(.*?)</pre>!ise', " stripslashes('$1') . stripslashes(clean_pre('$2')) . '</pre>' ", $pee);
79
- $pee = preg_replace( "|\n</p>$|", '</p>', $pee );
80
-
81
- return $pee;
82
- }
83
84
function init_switch() {
85
if ('POST' == $_SERVER['REQUEST_METHOD'] && $_POST['_wpcf7_is_ajax_call']) {
@@ -277,7 +313,12 @@ class tam_contact_form_seven {
277
}
278
279
function load_plugin_textdomain() { // l10n
280
- load_plugin_textdomain('wpcf7', 'wp-content/plugins/contact-form-7/languages');
281
}
282
283
function contact_forms() {
@@ -305,11 +346,15 @@ class tam_contact_form_seven {
305
/* Admin panel */
306
307
function add_pages() {
308
- $base_url = get_option('siteurl') . '/wp-admin/options-general.php';
309
$page = str_replace('\\', '%5C', plugin_basename(__FILE__));
310
$contact_forms = $this->contact_forms();
311
312
- if (isset($_POST['wpcf7-save'])) {
313
$id = $_POST['wpcf7-id'];
314
check_admin_referer('wpcf7-save_' . $id);
315
@@ -344,7 +389,7 @@ class tam_contact_form_seven {
344
345
wp_redirect($redirect_to);
346
exit();
347
- } elseif (isset($_POST['wpcf7-delete'])) {
348
$id = $_POST['wpcf7-id'];
349
check_admin_referer('wpcf7-delete_' . $id);
350
@@ -355,17 +400,17 @@ class tam_contact_form_seven {
355
exit();
356
}
357
358
- add_options_page(__('Contact Form 7', 'wpcf7'), __('Contact Form 7', 'wpcf7'), 'manage_options', __FILE__, array(&$this, 'option_page'));
359
}
360
361
function admin_head() {
362
global $plugin_page;
363
364
if (isset($plugin_page) && $plugin_page == plugin_basename(__FILE__)) {
365
- $admin_stylesheet_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/admin-stylesheet.css';
366
echo '<link rel="stylesheet" href="' . $admin_stylesheet_url . '" type="text/css" />';
367
368
- $javascript_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/wpcf7-admin.js';
369
?>
370
<script type="text/javascript">
371
//<![CDATA[
@@ -417,9 +462,17 @@ var _wpcf7 = {
417
<?php
418
}
419
}
420
421
- function option_page() {
422
- $base_url = get_option('siteurl') . '/wp-admin/options-general.php';
423
$page = plugin_basename(__FILE__);
424
$contact_forms = $this->contact_forms();
425
@@ -446,10 +499,12 @@ var _wpcf7 = {
446
$cf = stripslashes_deep($contact_forms[$current]);
447
$cf = $this->upgrade_160($cf);
448
} else {
449
- $cf = null;
450
}
451
452
- require_once ABSPATH . PLUGINDIR . '/contact-form-7/includes/admin-panel.php';
453
}
454
455
function default_pack($title, $initial = false) {
@@ -464,14 +519,14 @@ var _wpcf7 = {
464
}
465
466
function default_form_template() {
467
- $template .= '<p><label>' . __('Your Name', 'wpcf7') . ' ' . __('(required)', 'wpcf7') . '<br />' . "\n";
468
- $template .= ' [text* your-name] </label></p>' . "\n\n";
469
- $template .= '<p><label>' . __('Your Email', 'wpcf7') . ' ' . __('(required)', 'wpcf7') . '<br />' . "\n";
470
- $template .= ' [email* your-email] </label></p>' . "\n\n";
471
- $template .= '<p><label>' . __('Subject', 'wpcf7') . '<br />' . "\n";
472
- $template .= ' [text your-subject] </label></p>' . "\n\n";
473
- $template .= '<p><label>' . __('Your Message', 'wpcf7') . '<br />' . "\n";
474
- $template .= ' [textarea your-message] </label></p>' . "\n\n";
475
$template .= '<p>[submit "' . __('Send', 'wpcf7') . '"]</p>';
476
return $template;
477
}
@@ -580,14 +635,17 @@ var _wpcf7 = {
580
$unit_tag = 'wpcf7-f' . $id . '-' . $this->processing_within . '-o' . $this->unit_count;
581
$this->processing_unit_tag = $unit_tag;
582
583
- $form = '<div class="wpcf7" id="' . $unit_tag . '">';
584
585
$url = parse_url($_SERVER['REQUEST_URI']);
586
$url = $url['path'] . (empty($url['query']) ? '' : '?' . $url['query']) . '#' . $unit_tag;
587
588
$form .= '<form action="' . $url . '" method="post" class="wpcf7-form">';
589
$form .= '<input type="hidden" name="_wpcf7" value="' . $id . '" />';
590
$form .= '<input type="hidden" name="_wpcf7_unit_tag" value="' . $unit_tag . '" />';
591
$form .= $this->form_elements($cf['form']);
592
$form .= '</form>';
593
@@ -701,19 +759,20 @@ var _wpcf7 = {
701
$options = $fe['options'];
702
if ('captchac' == $type) {
703
$op = $this->captchac_options($options);
704
- if ($filename = $this->generate_captcha($op))
705
- $captcha_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/captcha/tmp/' . $filename;
706
$refill[$name] = $captcha_url;
707
}
708
}
709
return $refill;
710
}
711
712
function wp_head() {
713
- $stylesheet_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/stylesheet.css';
714
echo '<link rel="stylesheet" href="' . $stylesheet_url . '" type="text/css" />';
715
716
- $javascript_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/contact-form-7.js';
717
?>
718
<script type='text/javascript' src='<?php echo $javascript_url; ?>'></script>
719
<?php
@@ -721,7 +780,7 @@ var _wpcf7 = {
721
722
function load_js() {
723
global $pagenow;
724
- if (is_admin() && 'options-general.php' == $pagenow && false !== strpos($_GET['page'], 'contact-form-7'))
725
wp_enqueue_script('jquery');
726
if (! is_admin())
727
wp_enqueue_script('jquery-form', '/wp-includes/js/jquery/jquery.form.js', array('jquery'), '1.0.3');
@@ -732,7 +791,7 @@ var _wpcf7 = {
732
function form_elements($form, $replace = true) {
733
$types = 'text[*]?|email[*]?|textarea[*]?|select[*]?|checkbox[*]?|radio|acceptance|captchac|captchar';
734
$regex = '%\[\s*(' . $types . ')(\s+[a-zA-Z][0-9a-zA-Z:._-]*)([-0-9a-zA-Z:#_/\s]*)?((?:\s*(?:"[^"]*"|\'[^\']*\'))*)?\s*\]%';
735
- $submit_regex = '/\[\s*submit(\s+(?:"[^"]*"|\'[^\']*\'))?\s*\]/';
736
if ($replace) {
737
$form = preg_replace_callback($regex, array(&$this, 'form_element_replace_callback'), $form);
738
// Submit button
@@ -950,7 +1009,7 @@ var _wpcf7 = {
950
}
951
if (is_array($op['img_size']))
952
$atts .= ' width="' . $op['img_size'][0] . '" height="' . $op['img_size'][1] . '"';
953
- $captcha_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/captcha/tmp/' . $filename;
954
$html = '<img alt="captcha" src="' . $captcha_url . '"' . $atts . ' />';
955
$ref = substr($filename, 0, strrpos($filename, '.'));
956
$html = '<input type="hidden" name="_wpcf7_captcha_challenge_' . $name . '" value="' . $ref . '" />' . $html;
@@ -960,13 +1019,34 @@ var _wpcf7 = {
960
}
961
962
function submit_replace_callback($matches) {
963
- if ($matches[1])
964
- $value = $this->strip_quote($matches[1]);
965
if (empty($value))
966
$value = __('Send', 'wpcf7');
967
- $ajax_loader_image_url = get_option('siteurl') . '/wp-content/plugins/contact-form-7/images/ajax-loader.gif';
968
969
- $html = '<input type="submit" value="' . $value . '" />';
970
$html .= ' <img class="ajax-loader" style="visibility: hidden;" alt="ajax loader" src="' . $ajax_loader_image_url . '" />';
971
return $html;
972
}
@@ -1002,11 +1082,19 @@ var _wpcf7 = {
1002
return $result;
1003
}
1004
}
1005
-
1006
- function generate_captcha($options = null) {
1007
- if (! is_object($this->captcha))
1008
$this->captcha = new tam_captcha();
1009
$captcha =& $this->captcha;
1010
1011
if (! is_dir($captcha->tmp_dir) || ! is_writable($captcha->tmp_dir))
1012
return false;
@@ -1042,26 +1130,23 @@ var _wpcf7 = {
1042
}
1043
1044
function check_captcha($prefix, $response) {
1045
- if (! is_object($this->captcha))
1046
- $this->captcha = new tam_captcha();
1047
- $captcha =& $this->captcha;
1048
1049
return $captcha->check($prefix, $response);
1050
}
1051
1052
function remove_captcha($prefix) {
1053
- if (! is_object($this->captcha))
1054
- $this->captcha = new tam_captcha();
1055
- $captcha =& $this->captcha;
1056
1057
$captcha->remove($prefix);
1058
}
1059
1060
function cleanup_captcha_files() {
1061
- if (! is_object($this->captcha))
1062
- $this->captcha = new tam_captcha();
1063
- $captcha =& $this->captcha;
1064
-
1065
$tmp_dir = $captcha->tmp_dir;
1066
1067
if (! is_dir($tmp_dir) || ! is_writable($tmp_dir))
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.8
8
Author URI: http://ideasilo.wordpress.com/
9
*/
10
11
+ /* Copyright 2007-2008 Takayuki Miyoshi (email: takayukister at gmail.com)
12
13
This program is free software; you can redistribute it and/or modify
14
it under the terms of the GNU General Public License as published by
25
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
*/
27
28
+ define('WPCF7_VERSION', '1.8');
29
+
30
+ function wpcf7_version() {
31
+ return WPCF7_VERSION;
32
+ }
33
+
34
+ if (! defined('WP_CONTENT_DIR'))
35
+ define('WP_CONTENT_DIR', ABSPATH . 'wp-content');
36
+ if (! defined('WP_CONTENT_URL'))
37
+ define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
38
+
39
+ if (! defined('WP_PLUGIN_DIR'))
40
+ define('WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins');
41
+ if (! defined('WP_PLUGIN_URL'))
42
+ define('WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins');
43
+
44
+ if (! defined('WPCF7_PLUGIN_DIR'))
45
+ define('WPCF7_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . plugin_basename(dirname(__FILE__)));
46
+ if (! defined('WPCF7_PLUGIN_URL'))
47
+ define('WPCF7_PLUGIN_URL', WP_PLUGIN_URL . '/' . plugin_basename(dirname(__FILE__)));
48
+
49
+ if (! defined('WPCF7_CAPTCHA_TMP_DIR'))
50
+ define('WPCF7_CAPTCHA_TMP_DIR', WP_CONTENT_DIR . '/uploads/wpcf7_captcha');
51
+ if (! defined('WPCF7_CAPTCHA_TMP_URL'))
52
+ define('WPCF7_CAPTCHA_TMP_URL', WP_CONTENT_URL . '/uploads/wpcf7_captcha');
53
+
54
+ if (! function_exists('wpcf7_read_capability')) {
55
+ function wpcf7_read_capability() { return 'edit_posts'; }
56
+ }
57
+
58
+ if (! function_exists('wpcf7_read_write_capability')) {
59
+ function wpcf7_read_write_capability() { return 'publish_pages'; }
60
+ }
61
+
62
class tam_contact_form_seven {
63
64
var $contact_forms;
78
if (remove_filter('the_content', 'wpautop'))
79
add_filter('the_content', array(&$this, 'wpautop_substitute'));
80
}
81
+
82
+ function wpautop_substitute($pee, $br = 1) {
83
+ $pee = $pee . "\n"; // just to make things a little easier, pad the end
84
+ $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
85
+ // Space things out a little
86
+ $allblocks = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr)';
87
+ $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee);
88
+ $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
89
+ $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines
90
+ if ( strpos($pee, '<object') !== false ) {
91
+ $pee = preg_replace('|\s*<param([^>]*)>\s*|', "<param$1>", $pee); // no pee inside object/embed
92
+ $pee = preg_replace('|\s*</embed>\s*|', '</embed>', $pee);
93
+ }
94
+ $pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates
95
+ $pee = preg_replace('/\n?(.+?)(?:\n\s*\n|\z)/s', "<p>$1</p>\n", $pee); // make paragraphs, including one at the end
96
+ $pee = preg_replace('|<p>\s*?</p>|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace
97
+ $pee = preg_replace('!<p>([^<]+)\s*?(</(?:div|address|form)[^>]*>)!', "<p>$1</p>$2", $pee);
98
+ $pee = preg_replace( '|<p>|', "$1<p>", $pee );
99
+ $pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee); // don't pee all over a tag
100
+ $pee = preg_replace("|<p>(<li.+?)</p>|", "$1", $pee); // problem with nested lists
101
+ $pee = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee);
102
+ $pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee);
103
+ $pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee);
104
+ $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee);
105
+ if ($br) {
106
+ $pee = preg_replace_callback('/<(script|style).*?<\/\\1>/s', create_function('$matches', 'return str_replace("\n", "<WPPreserveNewline />", $matches[0]);'), $pee);
107
+ $pee = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $pee); // optionally make line breaks
108
+ $pee = str_replace('<WPPreserveNewline />', "\n", $pee);
109
+ }
110
+ $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*<br />!', "$1", $pee);
111
+ $pee = preg_replace('!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $pee);
112
+ if (strpos($pee, '<pre') !== false)
113
+ $pee = preg_replace_callback('!(<pre.*?>)(.*?)</pre>!is', 'clean_pre', $pee );
114
+ $pee = preg_replace( "|\n</p>$|", '</p>', $pee );
115
+ $pee = preg_replace('/<p>\s*?(' . get_shortcode_regex() . ')\s*<\/p>/s', '$1', $pee); // don't auto-p wrap shortcodes that stand alone
116
+
117
+ return $pee;
118
+ }
119
120
function init_switch() {
121
if ('POST' == $_SERVER['REQUEST_METHOD'] && $_POST['_wpcf7_is_ajax_call']) {
313
}
314
315
function load_plugin_textdomain() { // l10n
316
+ global $wp_version;
317
+
318
+ if (version_compare($wp_version, '2.6', '<')) // Using old WordPress
319
+ load_plugin_textdomain('wpcf7', 'wp-content/plugins/contact-form-7/languages');
320
+ else
321
+ load_plugin_textdomain('wpcf7', 'wp-content/plugins/contact-form-7/languages', 'contact-form-7/languages');
322
}
323
324
function contact_forms() {
346
/* Admin panel */
347
348
function add_pages() {
349
+ if (function_exists('admin_url')) {
350
+ $base_url = admin_url('edit.php');
351
+ } else {
352
+ $base_url = get_option('siteurl') . '/wp-admin/edit.php';
353
+ }
354
$page = str_replace('\\', '%5C', plugin_basename(__FILE__));
355
$contact_forms = $this->contact_forms();
356
357
+ if (isset($_POST['wpcf7-save']) && $this->has_edit_cap()) {
358
$id = $_POST['wpcf7-id'];
359
check_admin_referer('wpcf7-save_' . $id);
360
389
390
wp_redirect($redirect_to);
391
exit();
392
+ } elseif (isset($_POST['wpcf7-delete']) && $this->has_edit_cap()) {
393
$id = $_POST['wpcf7-id'];
394
check_admin_referer('wpcf7-delete_' . $id);
395
400
exit();
401
}
402
403
+ add_management_page(__('Contact Form 7', 'wpcf7'), __('Contact Form 7', 'wpcf7'), wpcf7_read_capability(), __FILE__, array(&$this, 'management_page'));
404
}
405
406
function admin_head() {
407
global $plugin_page;
408
409
if (isset($plugin_page) && $plugin_page == plugin_basename(__FILE__)) {
410
+ $admin_stylesheet_url = WPCF7_PLUGIN_URL . '/admin-stylesheet.css';
411
echo '<link rel="stylesheet" href="' . $admin_stylesheet_url . '" type="text/css" />';
412
413
+ $javascript_url = WPCF7_PLUGIN_URL . '/wpcf7-admin.js';
414
?>
415
<script type="text/javascript">
416
//<![CDATA[
462
<?php
463
}
464
}
465
+
466
+ function has_edit_cap() {
467
+ return current_user_can(wpcf7_read_write_capability());
468
+ }
469
470
+ function management_page() {
471
+ if (function_exists('admin_url')) {
472
+ $base_url = admin_url('edit.php');
473
+ } else {
474
+ $base_url = get_option('siteurl') . '/wp-admin/edit.php';
475
+ }
476
$page = plugin_basename(__FILE__);
477
$contact_forms = $this->contact_forms();
478
499
$cf = stripslashes_deep($contact_forms[$current]);
500
$cf = $this->upgrade_160($cf);
501
} else {
502
+ $current = (int) array_shift(array_keys($contact_forms));
503
+ $cf = stripslashes_deep($contact_forms[$current]);
504
+ $cf = $this->upgrade_160($cf);
505
}
506
507
+ require_once WPCF7_PLUGIN_DIR . '/includes/admin-panel.php';
508
}
509
510
function default_pack($title, $initial = false) {
519
}
520
521
function default_form_template() {
522
+ $template .= '<p>' . __('Your Name', 'wpcf7') . ' ' . __('(required)', 'wpcf7') . '<br />' . "\n";
523
+ $template .= ' [text* your-name] </p>' . "\n\n";
524
+ $template .= '<p>' . __('Your Email', 'wpcf7') . ' ' . __('(required)', 'wpcf7') . '<br />' . "\n";
525
+ $template .= ' [email* your-email] </p>' . "\n\n";
526
+ $template .= '<p>' . __('Subject', 'wpcf7') . '<br />' . "\n";
527
+ $template .= ' [text your-subject] </p>' . "\n\n";
528
+ $template .= '<p>' . __('Your Message', 'wpcf7') . '<br />' . "\n";
529
+ $template .= ' [textarea your-message] </p>' . "\n\n";
530
$template .= '<p>[submit "' . __('Send', 'wpcf7') . '"]</p>';
531
return $template;
532
}
635
$unit_tag = 'wpcf7-f' . $id . '-' . $this->processing_within . '-o' . $this->unit_count;
636
$this->processing_unit_tag = $unit_tag;
637
638
+ $form = '<!-- Contact Form 7 ' . wpcf7_version() . ' -->';
639
+ $form .= '<div class="wpcf7" id="' . $unit_tag . '">';
640
641
$url = parse_url($_SERVER['REQUEST_URI']);
642
$url = $url['path'] . (empty($url['query']) ? '' : '?' . $url['query']) . '#' . $unit_tag;
643
644
$form .= '<form action="' . $url . '" method="post" class="wpcf7-form">';
645
+ $form .= '<div style="display: none;">';
646
$form .= '<input type="hidden" name="_wpcf7" value="' . $id . '" />';
647
$form .= '<input type="hidden" name="_wpcf7_unit_tag" value="' . $unit_tag . '" />';
648
+ $form .= '</div>';
649
$form .= $this->form_elements($cf['form']);
650
$form .= '</form>';
651
759
$options = $fe['options'];
760
if ('captchac' == $type) {
761
$op = $this->captchac_options($options);
762
+ if ($filename = $this->generate_captcha($op)) {
763
+ $captcha_url = trailingslashit(WPCF7_CAPTCHA_TMP_URL) . $filename;
764
$refill[$name] = $captcha_url;
765
+ }
766
}
767
}
768
return $refill;
769
}
770
771
function wp_head() {
772
+ $stylesheet_url = WPCF7_PLUGIN_URL . '/stylesheet.css';
773
echo '<link rel="stylesheet" href="' . $stylesheet_url . '" type="text/css" />';
774
775
+ $javascript_url = WPCF7_PLUGIN_URL . '/contact-form-7.js';
776
?>
777
<script type='text/javascript' src='<?php echo $javascript_url; ?>'></script>
778
<?php
780
781
function load_js() {
782
global $pagenow;
783
+ if (is_admin() && 'edit.php' == $pagenow && false !== strpos($_GET['page'], 'contact-form-7'))
784
wp_enqueue_script('jquery');
785
if (! is_admin())
786
wp_enqueue_script('jquery-form', '/wp-includes/js/jquery/jquery.form.js', array('jquery'), '1.0.3');
791
function form_elements($form, $replace = true) {
792
$types = 'text[*]?|email[*]?|textarea[*]?|select[*]?|checkbox[*]?|radio|acceptance|captchac|captchar';
793
$regex = '%\[\s*(' . $types . ')(\s+[a-zA-Z][0-9a-zA-Z:._-]*)([-0-9a-zA-Z:#_/\s]*)?((?:\s*(?:"[^"]*"|\'[^\']*\'))*)?\s*\]%';
794
+ $submit_regex = '%\[\s*submit(\s[-0-9a-zA-Z:#_/\s]*)?(\s+(?:"[^"]*"|\'[^\']*\'))?\s*\]%';
795
if ($replace) {
796
$form = preg_replace_callback($regex, array(&$this, 'form_element_replace_callback'), $form);
797
// Submit button
1009
}
1010
if (is_array($op['img_size']))
1011
$atts .= ' width="' . $op['img_size'][0] . '" height="' . $op['img_size'][1] . '"';
1012
+ $captcha_url = trailingslashit(WPCF7_CAPTCHA_TMP_URL) . $filename;
1013
$html = '<img alt="captcha" src="' . $captcha_url . '"' . $atts . ' />';
1014
$ref = substr($filename, 0, strrpos($filename, '.'));
1015
$html = '<input type="hidden" name="_wpcf7_captcha_challenge_' . $name . '" value="' . $ref . '" />' . $html;
1019
}
1020
1021
function submit_replace_callback($matches) {
1022
+ $atts = '';
1023
+ $options = preg_split('/[\s]+/', trim($matches[1]));
1024
+
1025
+ $id_array = preg_grep('%^id:[-0-9a-zA-Z_]+$%', $options);
1026
+ if ($id = array_shift($id_array)) {
1027
+ preg_match('%^id:([-0-9a-zA-Z_]+)$%', $id, $id_matches);
1028
+ if ($id = $id_matches[1])
1029
+ $atts .= ' id="' . $id . '"';
1030
+ }
1031
+
1032
+ $class_att = '';
1033
+ $class_array = preg_grep('%^class:[-0-9a-zA-Z_]+$%', $options);
1034
+ foreach ($class_array as $class) {
1035
+ preg_match('%^class:([-0-9a-zA-Z_]+)$%', $class, $class_matches);
1036
+ if ($class = $class_matches[1])
1037
+ $class_att .= ' ' . $class;
1038
+ }
1039
+
1040
+ if ($class_att)
1041
+ $atts .= ' class="' . trim($class_att) . '"';
1042
+
1043
+ if ($matches[2])
1044
+ $value = $this->strip_quote($matches[2]);
1045
if (empty($value))
1046
$value = __('Send', 'wpcf7');
1047
+ $ajax_loader_image_url = WPCF7_PLUGIN_URL . '/images/ajax-loader.gif';
1048
1049
+ $html = '<input type="submit" value="' . $value . '"' . $atts . ' />';
1050
$html .= ' <img class="ajax-loader" style="visibility: hidden;" alt="ajax loader" src="' . $ajax_loader_image_url . '" />';
1051
return $html;
1052
}
1082
return $result;
1083
}
1084
}
1085
+
1086
+ function init_captcha() {
1087
+ if (! is_object($this->captcha))
1088
$this->captcha = new tam_captcha();
1089
$captcha =& $this->captcha;
1090
+
1091
+ $captcha->tmp_dir = trailingslashit(WPCF7_CAPTCHA_TMP_DIR);
1092
+ wp_mkdir_p($captcha->tmp_dir);
1093
+ }
1094
+
1095
+ function generate_captcha($options = null) {
1096
+ $this->init_captcha();
1097
+ $captcha =& $this->captcha;
1098
1099
if (! is_dir($captcha->tmp_dir) || ! is_writable($captcha->tmp_dir))
1100
return false;
1130
}
1131
1132
function check_captcha($prefix, $response) {
1133
+ $this->init_captcha();
1134
+ $captcha =& $this->captcha;
1135
1136
return $captcha->check($prefix, $response);
1137
}
1138
1139
function remove_captcha($prefix) {
1140
+ $this->init_captcha();
1141
+ $captcha =& $this->captcha;
1142
1143
$captcha->remove($prefix);
1144
}
1145
1146
function cleanup_captcha_files() {
1147
+ $this->init_captcha();
1148
+ $captcha =& $this->captcha;
1149
+
1150
$tmp_dir = $captcha->tmp_dir;
1151
1152
if (! is_dir($tmp_dir) || ! is_writable($tmp_dir))
wpcf7-admin.js CHANGED
@@ -1,5 +1,9 @@
1
jQuery(document).ready(function() {
2
- jQuery('#form-content-fieldset textarea:first').after(tagGenerator());
3
4
jQuery('input#wpcf7-title').mouseover(function() {
5
jQuery(this).not('.focus').css({
@@ -351,6 +355,11 @@ function tgPane(pane, tagType) {
351
var table = jQuery('<table></table>');
352
pane.append(table);
353
354
table.append(tgTr(
355
jQuery('<span>' + _wpcf7.l10n.label + '<br /></span>').append(tgInputs.label),
356
jQuery('<span></span>')
@@ -579,10 +588,20 @@ function tgCreateTag(tagType, tgInputs, trigger) {
579
break;
580
case 'submit':
581
var type = 'submit';
582
var label = tgInputs.label.val();
583
if (label)
584
label = ' "' + label.replace(/["]/g, '&quot;') + '"';
585
- var tag = '[' + type + label + ']';
586
tgInputs.tag1st.val(tag);
587
break;
588
}
1
jQuery(document).ready(function() {
2
+ jQuery('#form-content-fieldset textarea:first:enabled').after(tagGenerator());
3
+
4
+ jQuery('input#wpcf7-title:enabled').css({
5
+ cursor: 'pointer'
6
+ });
7
8
jQuery('input#wpcf7-title').mouseover(function() {
9
jQuery(this).not('.focus').css({
355
var table = jQuery('<table></table>');
356
pane.append(table);
357
358
+ table.append(tgTr(
359
+ jQuery('<span><code>id</code> (' + _wpcf7.l10n.optional + ')<br /></span>').append(tgInputs.tagId),
360
+ jQuery('<span><code>class</code> (' + _wpcf7.l10n.optional + ')<br /></span>').append(tgInputs.tagClasses)
361
+ ));
362
+
363
table.append(tgTr(
364
jQuery('<span>' + _wpcf7.l10n.label + '<br /></span>').append(tgInputs.label),
365
jQuery('<span></span>')
588
break;
589
case 'submit':
590
var type = 'submit';
591
+
592
+ var options = [];
593
+ if (tgInputs.tagId.val())
594
+ options.push('id:' + tgInputs.tagId.val());
595
+ if (tgInputs.tagClasses.val())
596
+ jQuery.each(tgInputs.tagClasses.val().split(' '), function(i, n) {
597
+ options.push('class:' + n);
598
+ });
599
+ options = (options.length > 0) ? ' ' + options.join(' ') : '';
600
+
601
var label = tgInputs.label.val();
602
if (label)
603
label = ' "' + label.replace(/["]/g, '&quot;') + '"';
604
+ var tag = '[' + type + options + label + ']';
605
tgInputs.tag1st.val(tag);
606
break;
607
}