Version Description
Download this release
Release Info
Developer | takayukister |
Plugin | Contact Form 7 |
Version | 1.10 |
Comparing to | |
See all releases |
Code changes from version 1.9.5.1 to 1.10
- README.txt +5 -3
- admin/admin-panel.php +114 -87
- admin/admin-stylesheet.css +31 -1
- admin/admin.php +372 -0
- admin/wpcf7-admin.js +110 -86
- contact-form-7.js +3 -0
- includes/acceptance.php +21 -0
- includes/akismet.php +73 -0
- includes/captcha.php +190 -0
- includes/classes.php +592 -0
- includes/formatting.php +78 -0
- includes/functions.php +82 -0
- includes/mail.php +70 -0
- includes/pipe.php +73 -0
- includes/quiz.php +34 -0
- includes/upload.php +148 -0
- languages/wpcf7-bs.mo +0 -0
- languages/wpcf7-bs.po +427 -0
- languages/wpcf7-hu_HU.mo +0 -0
- languages/wpcf7-hu_HU.po +262 -194
- languages/wpcf7-it_IT.mo +0 -0
- languages/wpcf7-it_IT.po +84 -76
- languages/wpcf7-ja.mo +0 -0
- languages/wpcf7-ja.po +242 -213
- languages/wpcf7-sr_RS.mo +0 -0
- languages/wpcf7-sr_RS.po +427 -0
- languages/wpcf7-sv_SE.mo +0 -0
- languages/wpcf7-sv_SE.po +258 -121
- languages/wpcf7.pot +238 -209
- stylesheet.css +4 -0
- wp-contact-form-7.php +309 -1755
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: takayukister
|
|
3 |
Donate link: http://pledgie.com/campaigns/3117
|
4 |
Tags: contact, contact form, email, ajax, captcha, akismet
|
5 |
Requires at least: 2.5
|
6 |
-
Tested up to: 2.
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
Just another contact form plugin. Simple but flexible.
|
10 |
|
@@ -20,6 +20,7 @@ Since being published in August 2007, Contact Form 7 has been translated into a
|
|
20 |
|
21 |
* Albanian (sq) - [Olgi Zenullari](http://www.olgizenullari.com/)
|
22 |
* Arabic (ar) - [Tarek Chaaban](http://www.chaaban.info/) and Muhammed Lardi
|
|
|
23 |
* Brazilian Portuguese (pt_BR) - [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/) (updated by [Henrique Vianna](http://henriquevianna.com/))
|
24 |
* Bulgarian (bg_BG) - [Iliyan Darganov](http://www.darganov.com/)
|
25 |
* Catalan (ca_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
|
@@ -49,10 +50,11 @@ Since being published in August 2007, Contact Form 7 has been translated into a
|
|
49 |
* Portuguese (pt_PT) - [Hugo Baeta](http://hugobaeta.com)
|
50 |
* Russian (ru_RU) - [Dmitry Volotovich](http://www.volnov.com)
|
51 |
* Romanian (ro_RO) - [Stas Sushkov](http://stas.nerd.ro/)
|
|
|
52 |
* Slovene (sl_SI) - [Mihael Simonič](http://smihael.bplaced.net)
|
53 |
* Spanish (es_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
|
54 |
(updated by [Vladimir Prieto](http://vladimir.prie.to/), [Federico Mikaelian](http://www.fedemika.com.ar/) and [Matias Baldanza](http://matiasbaldanza.com/))
|
55 |
-
* Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/)
|
56 |
* Turkish (tr_TR) - [Roman Neumuller](http://katpatuka.wordpress.com) (updated by [Hasan Yılmaz](http://hedefturkce.com/))
|
57 |
* Ukrainian (uk_UA) - [Andrey Kovba](http://myserver.com.ua/)
|
58 |
* Vietnamese (vi) - Thanh Hải, Hà
|
3 |
Donate link: http://pledgie.com/campaigns/3117
|
4 |
Tags: contact, contact form, email, ajax, captcha, akismet
|
5 |
Requires at least: 2.5
|
6 |
+
Tested up to: 2.8-beta2
|
7 |
+
Stable tag: 1.10
|
8 |
|
9 |
Just another contact form plugin. Simple but flexible.
|
10 |
|
20 |
|
21 |
* Albanian (sq) - [Olgi Zenullari](http://www.olgizenullari.com/)
|
22 |
* Arabic (ar) - [Tarek Chaaban](http://www.chaaban.info/) and Muhammed Lardi
|
23 |
+
* Bosnian (bs) - [Vedran](http://www.seorabbit.com/)
|
24 |
* Brazilian Portuguese (pt_BR) - [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/) (updated by [Henrique Vianna](http://henriquevianna.com/))
|
25 |
* Bulgarian (bg_BG) - [Iliyan Darganov](http://www.darganov.com/)
|
26 |
* Catalan (ca_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
|
50 |
* Portuguese (pt_PT) - [Hugo Baeta](http://hugobaeta.com)
|
51 |
* Russian (ru_RU) - [Dmitry Volotovich](http://www.volnov.com)
|
52 |
* Romanian (ro_RO) - [Stas Sushkov](http://stas.nerd.ro/)
|
53 |
+
* Serbian (sr_RS) - [Vedran](http://www.seorabbit.com/)
|
54 |
* Slovene (sl_SI) - [Mihael Simonič](http://smihael.bplaced.net)
|
55 |
* Spanish (es_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
|
56 |
(updated by [Vladimir Prieto](http://vladimir.prie.to/), [Federico Mikaelian](http://www.fedemika.com.ar/) and [Matias Baldanza](http://matiasbaldanza.com/))
|
57 |
+
* Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/) (updated by [the Swedish community](http://wp-support.se/))
|
58 |
* Turkish (tr_TR) - [Roman Neumuller](http://katpatuka.wordpress.com) (updated by [Hasan Yılmaz](http://hedefturkce.com/))
|
59 |
* Ukrainian (uk_UA) - [Andrey Kovba](http://myserver.com.ua/)
|
60 |
* Vietnamese (vi) - Thanh Hải, Hà
|
admin/admin-panel.php
CHANGED
@@ -1,34 +1,34 @@
|
|
1 |
-
<?php if (! version_compare($wp_version, '2.7', '>=') && isset($updated_message)) : ?>
|
2 |
<div id="message" class="updated fade"><p><strong><?php echo $updated_message; ?></strong></p></div>
|
3 |
<?php endif; ?>
|
4 |
<div class="wrap wpcf7">
|
5 |
-
<?php if (function_exists('screen_icon')) screen_icon(); ?>
|
6 |
-
<h2><?php _e('Contact Form 7', 'wpcf7'); ?></h2>
|
7 |
-
|
8 |
-
<?php if (version_compare($wp_version, '2.7', '>=') && isset($updated_message)) : ?>
|
9 |
<div id="message" class="updated fade"><p><strong><?php echo $updated_message; ?></strong></p></div>
|
10 |
<?php endif; ?>
|
11 |
|
12 |
<ul class="subsubsub">
|
13 |
-
<?php foreach ($contact_forms as $k => $v) : ?>
|
14 |
-
<li><a href="<?php echo $base_url . '?page=' . $page . '&contactform=' . $k ?>"<?php if ($k == $current) echo ' class="current"'; ?>>
|
15 |
<?php echo $v['title']; ?></a> |</li>
|
16 |
<?php endforeach; ?>
|
17 |
|
18 |
-
<?php if (
|
19 |
<li class="addnew">
|
20 |
-
<a href="<?php echo $base_url . '?page=' . $page . '&contactform=new'; ?>"<?php if ($unsaved) echo ' class="current"'; ?>>
|
21 |
-
<?php _e('Add new', 'wpcf7'); ?></a></li>
|
22 |
<?php endif; ?>
|
23 |
</ul>
|
24 |
|
25 |
<br class="clear" />
|
26 |
|
27 |
-
<?php if ($cf) : ?>
|
28 |
-
<?php $disabled = (
|
29 |
|
30 |
<form method="post" action="<?php echo $base_url . '?page=' . $page . '&contactform=' . $current; ?>" id="wpcf7-admin-form-element">
|
31 |
-
<?php if (
|
32 |
<input type="hidden" id="wpcf7-id" name="wpcf7-id" value="<?php echo $current; ?>" />
|
33 |
|
34 |
<table class="widefat">
|
@@ -36,30 +36,32 @@
|
|
36 |
<tr>
|
37 |
<td scope="col">
|
38 |
<div style="position: relative;">
|
39 |
-
<input type="text" id="wpcf7-title" name="wpcf7-title" size="40" value="<?php echo htmlspecialchars($cf
|
40 |
|
41 |
-
<?php if (! $unsaved) : ?>
|
42 |
<p class="tagcode">
|
43 |
-
<?php _e('Copy this code and paste it into your post, page or text widget content.', 'wpcf7'); ?><br />
|
44 |
<input type="text" id="contact-form-anchor-text" onfocus="this.select();" readonly="readonly" />
|
45 |
</p>
|
46 |
<?php endif; ?>
|
47 |
|
48 |
-
<?php if (
|
49 |
<div class="save-contact-form">
|
50 |
-
<input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php _e('Save', 'wpcf7'); ?>" />
|
51 |
</div>
|
52 |
<?php endif; ?>
|
53 |
|
54 |
-
<?php if (
|
55 |
<div class="actions-link">
|
56 |
-
<?php $copy_nonce = wp_create_nonce('wpcf7-copy_' . $current); ?>
|
57 |
-
<input type="submit" name="wpcf7-copy" class="copy" value="<?php _e('Copy', 'wpcf7'); ?>"
|
58 |
<?php echo "onclick=\"this.form._wpnonce.value = '$copy_nonce'; return true;\""; ?> />
|
59 |
|
|
60 |
-
<?php $delete_nonce = wp_create_nonce('wpcf7-delete_' . $current); ?>
|
61 |
-
<input type="submit" name="wpcf7-delete" class="delete" value="<?php _e('Delete', 'wpcf7'); ?>"
|
62 |
-
<?php echo "onclick=\"if (confirm('" .
|
|
|
|
|
63 |
</div>
|
64 |
<?php endif; ?>
|
65 |
</div>
|
@@ -68,19 +70,19 @@
|
|
68 |
</tbody>
|
69 |
</table>
|
70 |
|
71 |
-
<?php if (
|
72 |
|
73 |
<table class="widefat" style="margin-top: 1em;">
|
74 |
<thead>
|
75 |
<tr>
|
76 |
-
<th scope="col" colspan="2"><?php _e('Form', 'wpcf7'); ?></th>
|
77 |
</tr>
|
78 |
</thead>
|
79 |
<tbody>
|
80 |
<tr>
|
81 |
<td scope="col" style="width: 50%;">
|
82 |
<div>
|
83 |
-
<textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="20"><?php echo htmlspecialchars($cf
|
84 |
</div>
|
85 |
</td>
|
86 |
<td scope="col" style="width: 50%;">
|
@@ -93,43 +95,47 @@
|
|
93 |
<table class="widefat" style="margin-top: 1em;">
|
94 |
<thead>
|
95 |
<tr>
|
96 |
-
<th scope="col" colspan="2"><?php _e('Mail', 'wpcf7'); ?></th>
|
97 |
</tr>
|
98 |
</thead>
|
99 |
<tbody>
|
100 |
<tr>
|
101 |
<td scope="col" style="width: 50%;">
|
102 |
<div class="mail-field">
|
103 |
-
<label for="wpcf7-mail-recipient"><?php _e('To:', 'wpcf7'); ?></label><br />
|
104 |
-
<input type="text" id="wpcf7-mail-recipient" name="wpcf7-mail-recipient" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
105 |
</div>
|
106 |
<div class="mail-field">
|
107 |
-
<label for="wpcf7-mail-sender"><?php _e('From:', 'wpcf7'); ?></label><br />
|
108 |
-
<input type="text" id="wpcf7-mail-sender" name="wpcf7-mail-sender" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
109 |
</div>
|
110 |
<div class="mail-field">
|
111 |
-
<label for="wpcf7-mail-subject"><?php _e('Subject:', 'wpcf7'); ?></label><br />
|
112 |
-
<input type="text" id="wpcf7-mail-subject" name="wpcf7-mail-subject" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
113 |
</div>
|
114 |
<div class="pseudo-hr"></div>
|
115 |
<div class="mail-field">
|
116 |
-
<label for="wpcf7-mail-
|
117 |
-
|
118 |
-
|
|
|
|
|
|
|
|
|
119 |
<?php endif; ?>
|
120 |
<br />
|
121 |
-
<input type="text" id="wpcf7-mail-attachments" name="wpcf7-mail-attachments" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
122 |
</div>
|
123 |
<div class="pseudo-hr"></div>
|
124 |
<div class="mail-field">
|
125 |
-
<input type="checkbox" id="wpcf7-mail-use-html" name="wpcf7-mail-use-html" value="1"<?php echo ($cf
|
126 |
-
<label for="wpcf7-mail-use-html"><?php _e('Use HTML content type', 'wpcf7'); ?></label>
|
127 |
</div>
|
128 |
</td>
|
129 |
<td scope="col" style="width: 50%;">
|
130 |
<div class="mail-field">
|
131 |
-
<label for="wpcf7-mail-body"><?php _e('Message body:', 'wpcf7'); ?></label><br />
|
132 |
-
<textarea id="wpcf7-mail-body" name="wpcf7-mail-body" cols="100" rows="16"><?php echo htmlspecialchars($cf
|
133 |
</div>
|
134 |
</td>
|
135 |
</tr>
|
@@ -139,49 +145,53 @@
|
|
139 |
<table class="widefat" style="margin-top: 1em;">
|
140 |
<thead>
|
141 |
<tr>
|
142 |
-
<th scope="col" colspan="2"><?php _e('Mail (2)', 'wpcf7'); ?></th>
|
143 |
</tr>
|
144 |
</thead>
|
145 |
<tbody>
|
146 |
<tr>
|
147 |
<td scope="col" colspan="2">
|
148 |
-
<input type="checkbox" id="wpcf7-mail-2-active" name="wpcf7-mail-2-active" value="1"<?php echo ($cf
|
149 |
-
<label for="wpcf7-mail-2-active"><?php _e('Use mail (2)', 'wpcf7'); ?></label>
|
150 |
</td>
|
151 |
</tr>
|
152 |
<tr id="mail-2-fields">
|
153 |
<td scope="col" style="width: 50%;">
|
154 |
<div class="mail-field">
|
155 |
-
<label for="wpcf7-mail-2-recipient"><?php _e('To:', 'wpcf7'); ?></label><br />
|
156 |
-
<input type="text" id="wpcf7-mail-2-recipient" name="wpcf7-mail-2-recipient" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
157 |
</div>
|
158 |
<div class="mail-field">
|
159 |
-
<label for="wpcf7-mail-2-sender"><?php _e('From:', 'wpcf7'); ?></label><br />
|
160 |
-
<input type="text" id="wpcf7-mail-2-sender" name="wpcf7-mail-2-sender" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
161 |
</div>
|
162 |
<div class="mail-field">
|
163 |
-
<label for="wpcf7-mail-2-subject"><?php _e('Subject:', 'wpcf7'); ?></label><br />
|
164 |
-
<input type="text" id="wpcf7-mail-2-subject" name="wpcf7-mail-2-subject" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
165 |
</div>
|
166 |
<div class="pseudo-hr"></div>
|
167 |
<div class="mail-field">
|
168 |
-
<label for="wpcf7-mail-2-
|
169 |
-
|
170 |
-
|
|
|
|
|
|
|
|
|
171 |
<?php endif; ?>
|
172 |
<br />
|
173 |
-
<input type="text" id="wpcf7-mail-2-attachments" name="wpcf7-mail-2-attachments" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
174 |
</div>
|
175 |
<div class="pseudo-hr"></div>
|
176 |
<div class="mail-field">
|
177 |
-
<input type="checkbox" id="wpcf7-mail-2-use-html" name="wpcf7-mail-2-use-html" value="1"<?php echo ($cf
|
178 |
-
<label for="wpcf7-mail-2-use-html"><?php _e('Use HTML content type', 'wpcf7'); ?></label>
|
179 |
</div>
|
180 |
</td>
|
181 |
<td scope="col" style="width: 50%;">
|
182 |
<div class="mail-field">
|
183 |
-
<label for="wpcf7-mail-2-body"><?php _e('Message body:', 'wpcf7'); ?></label><br />
|
184 |
-
<textarea id="wpcf7-mail-2-body" name="wpcf7-mail-2-body" cols="100" rows="16"><?php echo htmlspecialchars($cf
|
185 |
</div>
|
186 |
</td>
|
187 |
</tr>
|
@@ -191,7 +201,7 @@
|
|
191 |
<table class="widefat" style="margin-top: 1em;">
|
192 |
<thead>
|
193 |
<tr>
|
194 |
-
<th scope="col"><?php _e('Messages', 'wpcf7'); ?> <span id="message-fields-toggle-switch"></span></th>
|
195 |
</tr>
|
196 |
</thead>
|
197 |
<tbody>
|
@@ -199,52 +209,52 @@
|
|
199 |
<td scope="col">
|
200 |
<div id="message-fields">
|
201 |
<div class="message-field">
|
202 |
-
<label for="wpcf7-message-mail-sent-ok"><em># <?php _e("Sender's message was sent successfully", 'wpcf7'); ?></em></label><br />
|
203 |
-
<input type="text" id="wpcf7-message-mail-sent-ok" name="wpcf7-message-mail-sent-ok" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
204 |
</div>
|
205 |
<div class="message-field">
|
206 |
-
<label for="wpcf7-message-mail-sent-ng"><em># <?php _e("Sender's message was failed to send", 'wpcf7'); ?></em></label><br />
|
207 |
-
<input type="text" id="wpcf7-message-mail-sent-ng" name="wpcf7-message-mail-sent-ng" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
208 |
</div>
|
209 |
<div class="message-field">
|
210 |
-
<label for="wpcf7-message-akismet-says-spam"><em># <?php _e("Akismet judged the sending activity as spamming", 'wpcf7'); ?></em></label><br />
|
211 |
-
<input type="text" id="wpcf7-message-akismet-says-spam" name="wpcf7-message-akismet-says-spam" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
212 |
</div>
|
213 |
<div class="message-field">
|
214 |
-
<label for="wpcf7-message-validation-error"><em># <?php _e("Validation errors occurred", 'wpcf7'); ?></em></label><br />
|
215 |
-
<input type="text" id="wpcf7-message-validation-error" name="wpcf7-message-validation-error" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
216 |
</div>
|
217 |
<div class="message-field" style="margin-top: 1em;">
|
218 |
-
<label for="wpcf7-message-invalid-required"><em># <?php _e("There is a field that sender is needed to fill in", 'wpcf7'); ?></em></label><br />
|
219 |
-
<input type="text" id="wpcf7-message-invalid-required" name="wpcf7-message-invalid-required" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
220 |
</div>
|
221 |
<div class="message-field">
|
222 |
-
<label for="wpcf7-message-invalid-email"><em># <?php _e("Email address that sender entered is invalid", 'wpcf7'); ?></em></label><br />
|
223 |
-
<input type="text" id="wpcf7-message-invalid-email" name="wpcf7-message-invalid-email" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
224 |
</div>
|
225 |
<div class="message-field">
|
226 |
-
<label for="wpcf7-message-accept-terms"><em># <?php _e("There is a field of term that sender is needed to accept", 'wpcf7'); ?></em></label><br />
|
227 |
-
<input type="text" id="wpcf7-message-accept-terms" name="wpcf7-message-accept-terms" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
228 |
</div>
|
229 |
<div class="message-field">
|
230 |
-
<label for="wpcf7-message-quiz-answer-not-correct"><em># <?php _e("Sender doesn't enter the correct answer to the quiz", 'wpcf7'); ?></em></label><br />
|
231 |
-
<input type="text" id="wpcf7-message-quiz-answer-not-correct" name="wpcf7-message-quiz-answer-not-correct" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
232 |
</div>
|
233 |
<div class="message-field">
|
234 |
-
<label for="wpcf7-message-captcha-not-match"><em># <?php _e("The code that sender entered does not match the CAPTCHA", 'wpcf7'); ?></em></label><br />
|
235 |
-
<input type="text" id="wpcf7-message-captcha-not-match" name="wpcf7-message-captcha-not-match" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
236 |
</div>
|
237 |
<div class="message-field">
|
238 |
-
<label for="wpcf7-message-upload-failed"><em># <?php _e("Uploading a file fails for any reason", 'wpcf7'); ?></em></label><br />
|
239 |
-
<input type="text" id="wpcf7-message-upload-failed" name="wpcf7-message-upload-failed" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
240 |
</div>
|
241 |
<div class="message-field">
|
242 |
-
<label for="wpcf7-message-upload-file-type-invalid"><em># <?php _e("Uploaded file is not allowed file type", 'wpcf7'); ?></em></label><br />
|
243 |
-
<input type="text" id="wpcf7-message-upload-file-type-invalid" name="wpcf7-message-upload-file-type-invalid" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
244 |
</div>
|
245 |
<div class="message-field">
|
246 |
-
<label for="wpcf7-message-upload-file-too-large"><em># <?php _e("Uploaded file is too large", 'wpcf7'); ?></em></label><br />
|
247 |
-
<input type="text" id="wpcf7-message-upload-file-too-large" name="wpcf7-message-upload-file-too-large" class="wide" size="70" value="<?php echo htmlspecialchars($cf
|
248 |
</div>
|
249 |
</div>
|
250 |
|
@@ -253,14 +263,31 @@
|
|
253 |
</tbody>
|
254 |
</table>
|
255 |
|
256 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
|
258 |
<table class="widefat" style="margin-top: 1em;">
|
259 |
<tbody>
|
260 |
<tr>
|
261 |
<td scope="col">
|
262 |
<div class="save-contact-form">
|
263 |
-
<input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php _e('Save', 'wpcf7'); ?>" />
|
264 |
</div>
|
265 |
</td>
|
266 |
</tr>
|
@@ -272,4 +299,4 @@
|
|
272 |
</form>
|
273 |
|
274 |
<?php endif; ?>
|
275 |
-
</div>
|
1 |
+
<?php if ( ! version_compare( $wp_version, '2.7', '>=' ) && isset( $updated_message ) ) : ?>
|
2 |
<div id="message" class="updated fade"><p><strong><?php echo $updated_message; ?></strong></p></div>
|
3 |
<?php endif; ?>
|
4 |
<div class="wrap wpcf7">
|
5 |
+
<?php if ( function_exists( 'screen_icon' ) ) screen_icon(); ?>
|
6 |
+
<h2><?php _e( 'Contact Form 7', 'wpcf7' ); ?></h2>
|
7 |
+
<?php wpcf7_donation_link(); ?>
|
8 |
+
<?php if ( version_compare( $wp_version, '2.7', '>=' ) && isset( $updated_message ) ) : ?>
|
9 |
<div id="message" class="updated fade"><p><strong><?php echo $updated_message; ?></strong></p></div>
|
10 |
<?php endif; ?>
|
11 |
|
12 |
<ul class="subsubsub">
|
13 |
+
<?php foreach ( $contact_forms as $k => $v ) : ?>
|
14 |
+
<li><a href="<?php echo $base_url . '?page=' . $page . '&contactform=' . $k ?>"<?php if ( $k == $current ) echo ' class="current"'; ?>>
|
15 |
<?php echo $v['title']; ?></a> |</li>
|
16 |
<?php endforeach; ?>
|
17 |
|
18 |
+
<?php if ( wpcf7_admin_has_edit_cap() ) : ?>
|
19 |
<li class="addnew">
|
20 |
+
<a href="<?php echo $base_url . '?page=' . $page . '&contactform=new'; ?>"<?php if ( $unsaved ) echo ' class="current"'; ?>>
|
21 |
+
<?php _e( 'Add new', 'wpcf7' ); ?></a></li>
|
22 |
<?php endif; ?>
|
23 |
</ul>
|
24 |
|
25 |
<br class="clear" />
|
26 |
|
27 |
+
<?php if ( $cf ) : ?>
|
28 |
+
<?php $disabled = ( wpcf7_admin_has_edit_cap() ) ? '' : ' disabled="disabled"'; ?>
|
29 |
|
30 |
<form method="post" action="<?php echo $base_url . '?page=' . $page . '&contactform=' . $current; ?>" id="wpcf7-admin-form-element">
|
31 |
+
<?php if ( wpcf7_admin_has_edit_cap() ) wp_nonce_field( 'wpcf7-save_' . $current ); ?>
|
32 |
<input type="hidden" id="wpcf7-id" name="wpcf7-id" value="<?php echo $current; ?>" />
|
33 |
|
34 |
<table class="widefat">
|
36 |
<tr>
|
37 |
<td scope="col">
|
38 |
<div style="position: relative;">
|
39 |
+
<input type="text" id="wpcf7-title" name="wpcf7-title" size="40" value="<?php echo htmlspecialchars( $cf->title ); ?>"<?php echo $disabled; ?> />
|
40 |
|
41 |
+
<?php if ( ! $unsaved ) : ?>
|
42 |
<p class="tagcode">
|
43 |
+
<?php _e( 'Copy this code and paste it into your post, page or text widget content.', 'wpcf7' ); ?><br />
|
44 |
<input type="text" id="contact-form-anchor-text" onfocus="this.select();" readonly="readonly" />
|
45 |
</p>
|
46 |
<?php endif; ?>
|
47 |
|
48 |
+
<?php if ( wpcf7_admin_has_edit_cap() ) : ?>
|
49 |
<div class="save-contact-form">
|
50 |
+
<input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php _e( 'Save', 'wpcf7' ); ?>" />
|
51 |
</div>
|
52 |
<?php endif; ?>
|
53 |
|
54 |
+
<?php if ( wpcf7_admin_has_edit_cap() && ! $unsaved ) : ?>
|
55 |
<div class="actions-link">
|
56 |
+
<?php $copy_nonce = wp_create_nonce( 'wpcf7-copy_' . $current ); ?>
|
57 |
+
<input type="submit" name="wpcf7-copy" class="copy" value="<?php _e( 'Copy', 'wpcf7' ); ?>"
|
58 |
<?php echo "onclick=\"this.form._wpnonce.value = '$copy_nonce'; return true;\""; ?> />
|
59 |
|
|
60 |
+
<?php $delete_nonce = wp_create_nonce( 'wpcf7-delete_' . $current ); ?>
|
61 |
+
<input type="submit" name="wpcf7-delete" class="delete" value="<?php _e( 'Delete', 'wpcf7' ); ?>"
|
62 |
+
<?php echo "onclick=\"if (confirm('" .
|
63 |
+
esc_js( __( "You are about to delete this contact form.\n 'Cancel' to stop, 'OK' to delete.", 'wpcf7' ) ) .
|
64 |
+
"')) {this.form._wpnonce.value = '$delete_nonce'; return true;} return false;\""; ?> />
|
65 |
</div>
|
66 |
<?php endif; ?>
|
67 |
</div>
|
70 |
</tbody>
|
71 |
</table>
|
72 |
|
73 |
+
<?php if ( wpcf7_admin_has_edit_cap() ) : ?>
|
74 |
|
75 |
<table class="widefat" style="margin-top: 1em;">
|
76 |
<thead>
|
77 |
<tr>
|
78 |
+
<th scope="col" colspan="2"><?php _e( 'Form', 'wpcf7' ); ?></th>
|
79 |
</tr>
|
80 |
</thead>
|
81 |
<tbody>
|
82 |
<tr>
|
83 |
<td scope="col" style="width: 50%;">
|
84 |
<div>
|
85 |
+
<textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="20"><?php echo htmlspecialchars( $cf->form ); ?></textarea>
|
86 |
</div>
|
87 |
</td>
|
88 |
<td scope="col" style="width: 50%;">
|
95 |
<table class="widefat" style="margin-top: 1em;">
|
96 |
<thead>
|
97 |
<tr>
|
98 |
+
<th scope="col" colspan="2"><?php _e( 'Mail', 'wpcf7' ); ?></th>
|
99 |
</tr>
|
100 |
</thead>
|
101 |
<tbody>
|
102 |
<tr>
|
103 |
<td scope="col" style="width: 50%;">
|
104 |
<div class="mail-field">
|
105 |
+
<label for="wpcf7-mail-recipient"><?php _e( 'To:', 'wpcf7' ); ?></label><br />
|
106 |
+
<input type="text" id="wpcf7-mail-recipient" name="wpcf7-mail-recipient" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->mail['recipient'] ); ?>" />
|
107 |
</div>
|
108 |
<div class="mail-field">
|
109 |
+
<label for="wpcf7-mail-sender"><?php _e( 'From:', 'wpcf7' ); ?></label><br />
|
110 |
+
<input type="text" id="wpcf7-mail-sender" name="wpcf7-mail-sender" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->mail['sender'] ); ?>" />
|
111 |
</div>
|
112 |
<div class="mail-field">
|
113 |
+
<label for="wpcf7-mail-subject"><?php _e( 'Subject:', 'wpcf7' ); ?></label><br />
|
114 |
+
<input type="text" id="wpcf7-mail-subject" name="wpcf7-mail-subject" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->mail['subject'] ); ?>" />
|
115 |
</div>
|
116 |
<div class="pseudo-hr"></div>
|
117 |
<div class="mail-field">
|
118 |
+
<label for="wpcf7-mail-additional-headers"><?php _e( 'Additional headers:', 'wpcf7' ); ?></label><br />
|
119 |
+
<textarea id="wpcf7-mail-additional-headers" name="wpcf7-mail-additional-headers" cols="100" rows="2"><?php echo htmlspecialchars( $cf->mail['additional_headers'] ); ?></textarea>
|
120 |
+
</div>
|
121 |
+
<div class="mail-field">
|
122 |
+
<label for="wpcf7-mail-attachments"><?php _e( 'File attachments:', 'wpcf7' ); ?></label>
|
123 |
+
<?php if ( version_compare( $wp_version, '2.7', '<' ) ) : ?>
|
124 |
+
<span style="color: #ff3300; margin-left: 0.5em;"><?php _e( '(You need WordPress 2.7 or greater to use this feature)', 'wpcf7' ); ?></span>
|
125 |
<?php endif; ?>
|
126 |
<br />
|
127 |
+
<input type="text" id="wpcf7-mail-attachments" name="wpcf7-mail-attachments" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->mail['attachments'] ); ?>" />
|
128 |
</div>
|
129 |
<div class="pseudo-hr"></div>
|
130 |
<div class="mail-field">
|
131 |
+
<input type="checkbox" id="wpcf7-mail-use-html" name="wpcf7-mail-use-html" value="1"<?php echo ( $cf->mail['use_html'] ) ? ' checked="checked"' : ''; ?> />
|
132 |
+
<label for="wpcf7-mail-use-html"><?php _e( 'Use HTML content type', 'wpcf7' ); ?></label>
|
133 |
</div>
|
134 |
</td>
|
135 |
<td scope="col" style="width: 50%;">
|
136 |
<div class="mail-field">
|
137 |
+
<label for="wpcf7-mail-body"><?php _e( 'Message body:', 'wpcf7' ); ?></label><br />
|
138 |
+
<textarea id="wpcf7-mail-body" name="wpcf7-mail-body" cols="100" rows="16"><?php echo htmlspecialchars( $cf->mail['body'] ); ?></textarea>
|
139 |
</div>
|
140 |
</td>
|
141 |
</tr>
|
145 |
<table class="widefat" style="margin-top: 1em;">
|
146 |
<thead>
|
147 |
<tr>
|
148 |
+
<th scope="col" colspan="2"><?php _e( 'Mail (2)', 'wpcf7' ); ?></th>
|
149 |
</tr>
|
150 |
</thead>
|
151 |
<tbody>
|
152 |
<tr>
|
153 |
<td scope="col" colspan="2">
|
154 |
+
<input type="checkbox" id="wpcf7-mail-2-active" name="wpcf7-mail-2-active" value="1"<?php echo ( $cf->mail_2['active'] ) ? ' checked="checked"' : ''; ?> />
|
155 |
+
<label for="wpcf7-mail-2-active"><?php _e( 'Use mail (2)', 'wpcf7' ); ?></label>
|
156 |
</td>
|
157 |
</tr>
|
158 |
<tr id="mail-2-fields">
|
159 |
<td scope="col" style="width: 50%;">
|
160 |
<div class="mail-field">
|
161 |
+
<label for="wpcf7-mail-2-recipient"><?php _e( 'To:', 'wpcf7' ); ?></label><br />
|
162 |
+
<input type="text" id="wpcf7-mail-2-recipient" name="wpcf7-mail-2-recipient" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->mail_2['recipient'] ); ?>" />
|
163 |
</div>
|
164 |
<div class="mail-field">
|
165 |
+
<label for="wpcf7-mail-2-sender"><?php _e( 'From:', 'wpcf7' ); ?></label><br />
|
166 |
+
<input type="text" id="wpcf7-mail-2-sender" name="wpcf7-mail-2-sender" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->mail_2['sender'] ); ?>" />
|
167 |
</div>
|
168 |
<div class="mail-field">
|
169 |
+
<label for="wpcf7-mail-2-subject"><?php _e( 'Subject:', 'wpcf7' ); ?></label><br />
|
170 |
+
<input type="text" id="wpcf7-mail-2-subject" name="wpcf7-mail-2-subject" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->mail_2['subject'] ); ?>" />
|
171 |
</div>
|
172 |
<div class="pseudo-hr"></div>
|
173 |
<div class="mail-field">
|
174 |
+
<label for="wpcf7-mail-2-additional-headers"><?php _e( 'Additional headers:', 'wpcf7' ); ?></label><br />
|
175 |
+
<textarea id="wpcf7-mail-2-additional-headers" name="wpcf7-mail-2-additional-headers" cols="100" rows="2"><?php echo htmlspecialchars( $cf->mail_2['additional_headers'] ); ?></textarea>
|
176 |
+
</div>
|
177 |
+
<div class="mail-field">
|
178 |
+
<label for="wpcf7-mail-2-attachments"><?php _e( 'File attachments:', 'wpcf7' ); ?></label>
|
179 |
+
<?php if ( version_compare( $wp_version, '2.7', '<' ) ) : ?>
|
180 |
+
<span style="color: #ff3300; margin-left: 0.5em;"><?php _e( '(You need WordPress 2.7 or greater to use this feature)', 'wpcf7' ); ?></span>
|
181 |
<?php endif; ?>
|
182 |
<br />
|
183 |
+
<input type="text" id="wpcf7-mail-2-attachments" name="wpcf7-mail-2-attachments" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->mail_2['attachments'] ); ?>" />
|
184 |
</div>
|
185 |
<div class="pseudo-hr"></div>
|
186 |
<div class="mail-field">
|
187 |
+
<input type="checkbox" id="wpcf7-mail-2-use-html" name="wpcf7-mail-2-use-html" value="1"<?php echo ( $cf->mail_2['use_html'] ) ? ' checked="checked"' : ''; ?> />
|
188 |
+
<label for="wpcf7-mail-2-use-html"><?php _e( 'Use HTML content type', 'wpcf7' ); ?></label>
|
189 |
</div>
|
190 |
</td>
|
191 |
<td scope="col" style="width: 50%;">
|
192 |
<div class="mail-field">
|
193 |
+
<label for="wpcf7-mail-2-body"><?php _e( 'Message body:', 'wpcf7' ); ?></label><br />
|
194 |
+
<textarea id="wpcf7-mail-2-body" name="wpcf7-mail-2-body" cols="100" rows="16"><?php echo htmlspecialchars( $cf->mail_2['body'] ); ?></textarea>
|
195 |
</div>
|
196 |
</td>
|
197 |
</tr>
|
201 |
<table class="widefat" style="margin-top: 1em;">
|
202 |
<thead>
|
203 |
<tr>
|
204 |
+
<th scope="col"><?php _e( 'Messages', 'wpcf7' ); ?> <span id="message-fields-toggle-switch"></span></th>
|
205 |
</tr>
|
206 |
</thead>
|
207 |
<tbody>
|
209 |
<td scope="col">
|
210 |
<div id="message-fields">
|
211 |
<div class="message-field">
|
212 |
+
<label for="wpcf7-message-mail-sent-ok"><em># <?php _e( "Sender's message was sent successfully", 'wpcf7' ); ?></em></label><br />
|
213 |
+
<input type="text" id="wpcf7-message-mail-sent-ok" name="wpcf7-message-mail-sent-ok" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['mail_sent_ok'] ); ?>" />
|
214 |
</div>
|
215 |
<div class="message-field">
|
216 |
+
<label for="wpcf7-message-mail-sent-ng"><em># <?php _e( "Sender's message was failed to send", 'wpcf7' ); ?></em></label><br />
|
217 |
+
<input type="text" id="wpcf7-message-mail-sent-ng" name="wpcf7-message-mail-sent-ng" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['mail_sent_ng'] ); ?>" />
|
218 |
</div>
|
219 |
<div class="message-field">
|
220 |
+
<label for="wpcf7-message-akismet-says-spam"><em># <?php _e( "Akismet judged the sending activity as spamming", 'wpcf7' ); ?></em></label><br />
|
221 |
+
<input type="text" id="wpcf7-message-akismet-says-spam" name="wpcf7-message-akismet-says-spam" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['akismet_says_spam'] ); ?>" />
|
222 |
</div>
|
223 |
<div class="message-field">
|
224 |
+
<label for="wpcf7-message-validation-error"><em># <?php _e( "Validation errors occurred", 'wpcf7' ); ?></em></label><br />
|
225 |
+
<input type="text" id="wpcf7-message-validation-error" name="wpcf7-message-validation-error" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['validation_error'] ); ?>" />
|
226 |
</div>
|
227 |
<div class="message-field" style="margin-top: 1em;">
|
228 |
+
<label for="wpcf7-message-invalid-required"><em># <?php _e( "There is a field that sender is needed to fill in", 'wpcf7' ); ?></em></label><br />
|
229 |
+
<input type="text" id="wpcf7-message-invalid-required" name="wpcf7-message-invalid-required" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['invalid_required'] ); ?>" />
|
230 |
</div>
|
231 |
<div class="message-field">
|
232 |
+
<label for="wpcf7-message-invalid-email"><em># <?php _e( "Email address that sender entered is invalid", 'wpcf7' ); ?></em></label><br />
|
233 |
+
<input type="text" id="wpcf7-message-invalid-email" name="wpcf7-message-invalid-email" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['invalid_email'] ); ?>" />
|
234 |
</div>
|
235 |
<div class="message-field">
|
236 |
+
<label for="wpcf7-message-accept-terms"><em># <?php _e( "There is a field of term that sender is needed to accept", 'wpcf7' ); ?></em></label><br />
|
237 |
+
<input type="text" id="wpcf7-message-accept-terms" name="wpcf7-message-accept-terms" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['accept_terms'] ); ?>" />
|
238 |
</div>
|
239 |
<div class="message-field">
|
240 |
+
<label for="wpcf7-message-quiz-answer-not-correct"><em># <?php _e( "Sender doesn't enter the correct answer to the quiz", 'wpcf7' ); ?></em></label><br />
|
241 |
+
<input type="text" id="wpcf7-message-quiz-answer-not-correct" name="wpcf7-message-quiz-answer-not-correct" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['quiz_answer_not_correct'] ); ?>" />
|
242 |
</div>
|
243 |
<div class="message-field">
|
244 |
+
<label for="wpcf7-message-captcha-not-match"><em># <?php _e( "The code that sender entered does not match the CAPTCHA", 'wpcf7' ); ?></em></label><br />
|
245 |
+
<input type="text" id="wpcf7-message-captcha-not-match" name="wpcf7-message-captcha-not-match" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['captcha_not_match'] ); ?>" />
|
246 |
</div>
|
247 |
<div class="message-field">
|
248 |
+
<label for="wpcf7-message-upload-failed"><em># <?php _e( "Uploading a file fails for any reason", 'wpcf7' ); ?></em></label><br />
|
249 |
+
<input type="text" id="wpcf7-message-upload-failed" name="wpcf7-message-upload-failed" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['upload_failed'] ); ?>" />
|
250 |
</div>
|
251 |
<div class="message-field">
|
252 |
+
<label for="wpcf7-message-upload-file-type-invalid"><em># <?php _e( "Uploaded file is not allowed file type", 'wpcf7' ); ?></em></label><br />
|
253 |
+
<input type="text" id="wpcf7-message-upload-file-type-invalid" name="wpcf7-message-upload-file-type-invalid" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['upload_file_type_invalid'] ); ?>" />
|
254 |
</div>
|
255 |
<div class="message-field">
|
256 |
+
<label for="wpcf7-message-upload-file-too-large"><em># <?php _e( "Uploaded file is too large", 'wpcf7' ); ?></em></label><br />
|
257 |
+
<input type="text" id="wpcf7-message-upload-file-too-large" name="wpcf7-message-upload-file-too-large" class="wide" size="70" value="<?php echo htmlspecialchars( $cf->messages['upload_file_too_large'] ); ?>" />
|
258 |
</div>
|
259 |
</div>
|
260 |
|
263 |
</tbody>
|
264 |
</table>
|
265 |
|
266 |
+
<table class="widefat" style="margin-top: 1em;">
|
267 |
+
<thead>
|
268 |
+
<tr>
|
269 |
+
<th scope="col"><?php _e( 'Additional Settings', 'wpcf7' ); ?> <span id="additional-settings-fields-toggle-switch"></span></th>
|
270 |
+
</tr>
|
271 |
+
</thead>
|
272 |
+
<tbody>
|
273 |
+
<tr>
|
274 |
+
<td scope="col">
|
275 |
+
<div id="additional-settings-fields">
|
276 |
+
<textarea id="wpcf7-additional-settings" name="wpcf7-additional-settings" cols="100" rows="8"><?php echo htmlspecialchars( $cf->additional_settings ); ?></textarea>
|
277 |
+
</div>
|
278 |
+
</td>
|
279 |
+
</tr>
|
280 |
+
</tbody>
|
281 |
+
</table>
|
282 |
+
|
283 |
+
<input type="hidden" id="wpcf7-options-recipient" name="wpcf7-options-recipient" value="<?php echo htmlspecialchars( $cf->options['recipient'] ); ?>" />
|
284 |
|
285 |
<table class="widefat" style="margin-top: 1em;">
|
286 |
<tbody>
|
287 |
<tr>
|
288 |
<td scope="col">
|
289 |
<div class="save-contact-form">
|
290 |
+
<input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php _e( 'Save', 'wpcf7' ); ?>" />
|
291 |
</div>
|
292 |
</td>
|
293 |
</tr>
|
299 |
</form>
|
300 |
|
301 |
<?php endif; ?>
|
302 |
+
</div>
|
admin/admin-stylesheet.css
CHANGED
@@ -1,3 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
div.wpcf7 ul.subsubsub {
|
2 |
white-space: normal;
|
3 |
}
|
@@ -56,7 +86,7 @@ input#contact-form-anchor-text {
|
|
56 |
-webkit-border-radius: 6px;
|
57 |
border-radius: 6px;
|
58 |
}
|
59 |
-
span#message-fields-toggle-switch {
|
60 |
margin-left: 1em;
|
61 |
font-weight: normal;
|
62 |
font-size: smaller;
|
1 |
+
div.wpcf7 div.donation {
|
2 |
+
border-width: 1px;
|
3 |
+
border-style: solid;
|
4 |
+
padding: 0 0.6em;
|
5 |
+
margin: 5px 0 15px;
|
6 |
+
-moz-border-radius: 3px;
|
7 |
+
-khtml-border-radius: 3px;
|
8 |
+
-webkit-border-radius: 3px;
|
9 |
+
border-radius: 3px;
|
10 |
+
background-color: #ffffe0;
|
11 |
+
border-color: #e6db55;
|
12 |
+
text-align: center;
|
13 |
+
}
|
14 |
+
|
15 |
+
div.wpcf7 div.donation p {
|
16 |
+
margin: 0.5em 0;
|
17 |
+
line-height: 1;
|
18 |
+
padding: 2px;
|
19 |
+
}
|
20 |
+
|
21 |
+
div.wpcf7 div.donation p img {
|
22 |
+
vertical-align: text-bottom;
|
23 |
+
}
|
24 |
+
|
25 |
+
div.wpcf7 div.donation p em {
|
26 |
+
padding-left: 1em;
|
27 |
+
color: #555;
|
28 |
+
font-weight: bold;
|
29 |
+
}
|
30 |
+
|
31 |
div.wpcf7 ul.subsubsub {
|
32 |
white-space: normal;
|
33 |
}
|
86 |
-webkit-border-radius: 6px;
|
87 |
border-radius: 6px;
|
88 |
}
|
89 |
+
span#message-fields-toggle-switch, span#additional-settings-fields-toggle-switch {
|
90 |
margin-left: 1em;
|
91 |
font-weight: normal;
|
92 |
font-size: smaller;
|
admin/admin.php
ADDED
@@ -0,0 +1,372 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wpcf7_admin_menu_parent() {
|
4 |
+
global $wp_version;
|
5 |
+
if ( version_compare( $wp_version, '2.7', '>=' ) )
|
6 |
+
return 'tools.php';
|
7 |
+
else
|
8 |
+
return 'edit.php';
|
9 |
+
}
|
10 |
+
|
11 |
+
function wpcf7_admin_has_edit_cap() {
|
12 |
+
return current_user_can( WPCF7_ADMIN_READ_WRITE_CAPABILITY );
|
13 |
+
}
|
14 |
+
|
15 |
+
function wpcf7_admin_add_pages() {
|
16 |
+
if ( function_exists( 'admin_url' ) ) {
|
17 |
+
$base_url = admin_url( wpcf7_admin_menu_parent() );
|
18 |
+
} else {
|
19 |
+
$base_url = get_option( 'siteurl' ) . '/wp-admin/' . wpcf7_admin_menu_parent();
|
20 |
+
}
|
21 |
+
|
22 |
+
$page = str_replace( '\\', '%5C', plugin_basename( __FILE__ ) );
|
23 |
+
$contact_forms = wpcf7_contact_forms();
|
24 |
+
|
25 |
+
if ( isset( $_POST['wpcf7-save'] ) && wpcf7_admin_has_edit_cap() ) {
|
26 |
+
$id = $_POST['wpcf7-id'];
|
27 |
+
check_admin_referer( 'wpcf7-save_' . $id );
|
28 |
+
|
29 |
+
$title = trim( $_POST['wpcf7-title'] );
|
30 |
+
$form = trim( $_POST['wpcf7-form'] );
|
31 |
+
$mail = array(
|
32 |
+
'subject' => trim( $_POST['wpcf7-mail-subject'] ),
|
33 |
+
'sender' => trim( $_POST['wpcf7-mail-sender'] ),
|
34 |
+
'body' => trim( $_POST['wpcf7-mail-body'] ),
|
35 |
+
'recipient' => trim( $_POST['wpcf7-mail-recipient'] ),
|
36 |
+
'additional_headers' => trim( $_POST['wpcf7-mail-additional-headers'] ),
|
37 |
+
'attachments' => trim( $_POST['wpcf7-mail-attachments'] ),
|
38 |
+
'use_html' => ( 1 == $_POST['wpcf7-mail-use-html'] ) ? true : false
|
39 |
+
);
|
40 |
+
$mail_2 = array(
|
41 |
+
'active' => ( 1 == $_POST['wpcf7-mail-2-active'] ) ? true : false,
|
42 |
+
'subject' => trim( $_POST['wpcf7-mail-2-subject'] ),
|
43 |
+
'sender' => trim( $_POST['wpcf7-mail-2-sender'] ),
|
44 |
+
'body' => trim( $_POST['wpcf7-mail-2-body'] ),
|
45 |
+
'recipient' => trim( $_POST['wpcf7-mail-2-recipient'] ),
|
46 |
+
'additional_headers' => trim( $_POST['wpcf7-mail-2-additional-headers'] ),
|
47 |
+
'attachments' => trim( $_POST['wpcf7-mail-2-attachments'] ),
|
48 |
+
'use_html' => ( 1 == $_POST['wpcf7-mail-2-use-html'] ) ? true : false
|
49 |
+
);
|
50 |
+
$messages = array(
|
51 |
+
'mail_sent_ok' => trim( $_POST['wpcf7-message-mail-sent-ok'] ),
|
52 |
+
'mail_sent_ng' => trim( $_POST['wpcf7-message-mail-sent-ng'] ),
|
53 |
+
'akismet_says_spam' => trim( $_POST['wpcf7-message-akismet-says-spam'] ),
|
54 |
+
'validation_error' => trim( $_POST['wpcf7-message-validation-error'] ),
|
55 |
+
'accept_terms' => trim( $_POST['wpcf7-message-accept-terms'] ),
|
56 |
+
'invalid_email' => trim( $_POST['wpcf7-message-invalid-email'] ),
|
57 |
+
'invalid_required' => trim( $_POST['wpcf7-message-invalid-required'] ),
|
58 |
+
'quiz_answer_not_correct' => trim( $_POST['wpcf7-message-quiz-answer-not-correct'] ),
|
59 |
+
'captcha_not_match' => trim( $_POST['wpcf7-message-captcha-not-match'] ),
|
60 |
+
'upload_failed' => trim( $_POST['wpcf7-message-upload-failed'] ),
|
61 |
+
'upload_file_type_invalid' => trim( $_POST['wpcf7-message-upload-file-type-invalid'] ),
|
62 |
+
'upload_file_too_large' => trim( $_POST['wpcf7-message-upload-file-too-large'] )
|
63 |
+
);
|
64 |
+
$additional_settings = trim( $_POST['wpcf7-additional-settings'] );
|
65 |
+
$options = array(
|
66 |
+
'recipient' => trim( $_POST['wpcf7-options-recipient'] ) // For backward compatibility.
|
67 |
+
);
|
68 |
+
|
69 |
+
$data = compact( 'title', 'form', 'mail', 'mail_2', 'messages', 'additional_settings', 'options' );
|
70 |
+
|
71 |
+
if ( array_key_exists( $id, $contact_forms ) ) {
|
72 |
+
$contact_forms[$id] = $data;
|
73 |
+
$redirect_to = $base_url . '?page=' . $page . '&contactform=' . $id . '&message=saved';
|
74 |
+
} else {
|
75 |
+
$key = ( empty( $contact_forms ) ) ? 1 : max( array_keys( $contact_forms ) ) + 1;
|
76 |
+
$contact_forms[$key] = $data;
|
77 |
+
$redirect_to = $base_url . '?page=' . $page . '&contactform=' . $key . '&message=created';
|
78 |
+
}
|
79 |
+
|
80 |
+
wpcf7_update_contact_forms( $contact_forms );
|
81 |
+
|
82 |
+
wp_redirect( $redirect_to );
|
83 |
+
exit();
|
84 |
+
} elseif ( isset( $_POST['wpcf7-copy'] ) && wpcf7_admin_has_edit_cap() ) {
|
85 |
+
$id = $_POST['wpcf7-id'];
|
86 |
+
check_admin_referer( 'wpcf7-copy_' . $id );
|
87 |
+
|
88 |
+
if ( array_key_exists( $id, $contact_forms ) ) {
|
89 |
+
$key = max( array_keys( $contact_forms ) ) + 1;
|
90 |
+
$contact_forms[$key] = $contact_forms[$id];
|
91 |
+
$contact_forms[$key]['title'] .= '_copy';
|
92 |
+
wpcf7_update_contact_forms( $contact_forms );
|
93 |
+
$redirect_to = $base_url . '?page=' . $page . '&contactform=' . $key . '&message=created';
|
94 |
+
} else {
|
95 |
+
$redirect_to = $base_url . '?page=' . $page . '&contactform=' . $id;
|
96 |
+
}
|
97 |
+
|
98 |
+
wp_redirect( $redirect_to );
|
99 |
+
exit();
|
100 |
+
} elseif ( isset( $_POST['wpcf7-delete'] ) && wpcf7_admin_has_edit_cap() ) {
|
101 |
+
$id = $_POST['wpcf7-id'];
|
102 |
+
check_admin_referer( 'wpcf7-delete_' . $id );
|
103 |
+
|
104 |
+
unset( $contact_forms[$id] );
|
105 |
+
wpcf7_update_contact_forms( $contact_forms );
|
106 |
+
|
107 |
+
wp_redirect( $base_url . '?page=' . $page . '&message=deleted' );
|
108 |
+
exit();
|
109 |
+
}
|
110 |
+
|
111 |
+
add_management_page( __( 'Contact Form 7', 'wpcf7' ), __( 'Contact Form 7', 'wpcf7' ), WPCF7_ADMIN_READ_CAPABILITY, __FILE__, 'wpcf7_admin_management_page' );
|
112 |
+
}
|
113 |
+
|
114 |
+
add_action( 'admin_menu', 'wpcf7_admin_add_pages' );
|
115 |
+
|
116 |
+
function wpcf7_admin_head() {
|
117 |
+
global $plugin_page;
|
118 |
+
|
119 |
+
if ( isset( $plugin_page ) && $plugin_page == plugin_basename( __FILE__ ) ) {
|
120 |
+
|
121 |
+
$admin_stylesheet_url = wpcf7_plugin_url( 'admin/admin-stylesheet.css' );
|
122 |
+
echo '<link rel="stylesheet" href="' . $admin_stylesheet_url . '" type="text/css" />';
|
123 |
+
|
124 |
+
if ( 'rtl' == get_bloginfo( 'text_direction' ) ) {
|
125 |
+
$admin_stylesheet_rtl_url = wpcf7_plugin_url( 'admin/admin-stylesheet-rtl.css' );
|
126 |
+
echo '<link rel="stylesheet" href="' . $admin_stylesheet_rtl_url . '" type="text/css" />';
|
127 |
+
}
|
128 |
+
|
129 |
+
?>
|
130 |
+
<script type="text/javascript">
|
131 |
+
//<![CDATA[
|
132 |
+
var _wpcf7 = {
|
133 |
+
captchaMod: <?php echo ( class_exists( 'ReallySimpleCaptcha' ) ) ? 'true' : 'false' ?>
|
134 |
+
};
|
135 |
+
//]]>
|
136 |
+
</script>
|
137 |
+
<?php
|
138 |
+
}
|
139 |
+
}
|
140 |
+
|
141 |
+
add_action( 'admin_head', 'wpcf7_admin_head' );
|
142 |
+
|
143 |
+
function wpcf7_admin_load_js() {
|
144 |
+
global $pagenow;
|
145 |
+
|
146 |
+
if ( ! is_admin() )
|
147 |
+
return;
|
148 |
+
|
149 |
+
if ( wpcf7_admin_menu_parent() != $pagenow )
|
150 |
+
return;
|
151 |
+
|
152 |
+
if ( false === strpos( $_GET['page'], 'contact-form-7' ) )
|
153 |
+
return;
|
154 |
+
|
155 |
+
wp_enqueue_script( 'wpcf7-admin', wpcf7_plugin_url( 'admin/wpcf7-admin.js' ), array('jquery'), WPCF7_VERSION, true );
|
156 |
+
wp_localize_script( 'wpcf7-admin', '_wpcf7L10n', array(
|
157 |
+
'optional' => __( 'optional', 'wpcf7' ),
|
158 |
+
'generateTag' => __( 'Generate Tag', 'wpcf7' ),
|
159 |
+
'textField' => __( 'Text field', 'wpcf7' ),
|
160 |
+
'emailField' => __( 'Email field', 'wpcf7' ),
|
161 |
+
'textArea' => __( 'Text area', 'wpcf7' ),
|
162 |
+
'menu' => __( 'Drop-down menu', 'wpcf7' ),
|
163 |
+
'checkboxes' => __( 'Checkboxes', 'wpcf7' ),
|
164 |
+
'radioButtons' => __( 'Radio buttons', 'wpcf7' ),
|
165 |
+
'acceptance' => __( 'Acceptance', 'wpcf7' ),
|
166 |
+
'isAcceptanceDefaultOn' => __( "Make this checkbox checked by default?", 'wpcf7' ),
|
167 |
+
'isAcceptanceInvert' => __( "Make this checkbox work inversely?", 'wpcf7' ),
|
168 |
+
'isAcceptanceInvertMeans' => __( "* That means visitor who accepts the term unchecks it.", 'wpcf7' ),
|
169 |
+
'captcha' => __( 'CAPTCHA', 'wpcf7' ),
|
170 |
+
'quiz' => __( 'Quiz', 'wpcf7' ),
|
171 |
+
'quizzes' => __( 'Quizzes', 'wpcf7' ),
|
172 |
+
'quizFormatDesc' => __( "* quiz|answer (e.g. 1+1=?|2)", 'wpcf7' ),
|
173 |
+
'fileUpload' => __( 'File upload', 'wpcf7' ),
|
174 |
+
'bytes' => __( 'bytes', 'wpcf7' ),
|
175 |
+
'submit' => __( 'Submit button', 'wpcf7' ),
|
176 |
+
'tagName' => __( 'Name', 'wpcf7' ),
|
177 |
+
'isRequiredField' => __( 'Required field?', 'wpcf7' ),
|
178 |
+
'allowsMultipleSelections' => __( 'Allow multiple selections?', 'wpcf7' ),
|
179 |
+
'insertFirstBlankOption' => __( 'Insert a blank item as the first option?', 'wpcf7' ),
|
180 |
+
'makeCheckboxesExclusive' => __( 'Make checkboxes exclusive?', 'wpcf7' ),
|
181 |
+
'menuChoices' => __( 'Choices', 'wpcf7' ),
|
182 |
+
'label' => __( 'Label', 'wpcf7' ),
|
183 |
+
'defaultValue' => __( 'Default value', 'wpcf7' ),
|
184 |
+
'akismet' => __( 'Akismet', 'wpcf7' ),
|
185 |
+
'akismetAuthor' => __( "This field requires author's name", 'wpcf7' ),
|
186 |
+
'akismetAuthorUrl' => __( "This field requires author's URL", 'wpcf7' ),
|
187 |
+
'akismetAuthorEmail' => __( "This field requires author's email address", 'wpcf7' ),
|
188 |
+
'generatedTag' => __( "Copy this code and paste it into the form left.", 'wpcf7' ),
|
189 |
+
'fgColor' => __( "Foreground color", 'wpcf7' ),
|
190 |
+
'bgColor' => __( "Background color", 'wpcf7' ),
|
191 |
+
'imageSize' => __( "Image size", 'wpcf7' ),
|
192 |
+
'imageSizeSmall' => __( "Small", 'wpcf7' ),
|
193 |
+
'imageSizeMedium' => __( "Medium", 'wpcf7' ),
|
194 |
+
'imageSizeLarge' => __( "Large", 'wpcf7' ),
|
195 |
+
'imageSettings' => __( "Image settings", 'wpcf7' ),
|
196 |
+
'inputFieldSettings' => __( "Input field settings", 'wpcf7' ),
|
197 |
+
'tagForImage' => __( "For image", 'wpcf7' ),
|
198 |
+
'tagForInputField' => __( "For input field", 'wpcf7' ),
|
199 |
+
'oneChoicePerLine' => __( "* One choice per line.", 'wpcf7' ),
|
200 |
+
'show' => __( "Show", 'wpcf7' ),
|
201 |
+
'hide' => __( "Hide", 'wpcf7' ),
|
202 |
+
'fileSizeLimit' => __( "File size limit", 'wpcf7' ),
|
203 |
+
'acceptableFileTypes' => __( "Acceptable file types", 'wpcf7' ),
|
204 |
+
'needReallySimpleCaptcha' => __( "Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed.", 'wpcf7' )
|
205 |
+
) );
|
206 |
+
}
|
207 |
+
|
208 |
+
add_action( 'wp_print_scripts', 'wpcf7_admin_load_js' );
|
209 |
+
|
210 |
+
function wpcf7_admin_management_page() {
|
211 |
+
global $wp_version;
|
212 |
+
|
213 |
+
if ( function_exists( 'admin_url' ) ) {
|
214 |
+
$base_url = admin_url( wpcf7_admin_menu_parent() );
|
215 |
+
} else {
|
216 |
+
$base_url = get_option( 'siteurl' ) . '/wp-admin/' . wpcf7_admin_menu_parent();
|
217 |
+
}
|
218 |
+
|
219 |
+
$page = plugin_basename( __FILE__ );
|
220 |
+
|
221 |
+
switch ( $_GET['message'] ) {
|
222 |
+
case 'created':
|
223 |
+
$updated_message = __( 'Contact form created.', 'wpcf7' );
|
224 |
+
break;
|
225 |
+
case 'saved':
|
226 |
+
$updated_message = __( 'Contact form saved.', 'wpcf7' );
|
227 |
+
break;
|
228 |
+
case 'deleted':
|
229 |
+
$updated_message = __( 'Contact form deleted.', 'wpcf7' );
|
230 |
+
break;
|
231 |
+
}
|
232 |
+
|
233 |
+
$contact_forms = wpcf7_contact_forms();
|
234 |
+
|
235 |
+
$id = $_POST['wpcf7-id'];
|
236 |
+
|
237 |
+
if ( 'new' == $_GET['contactform'] ) {
|
238 |
+
$unsaved = true;
|
239 |
+
$current = -1;
|
240 |
+
$cf = wpcf7_contact_form( wpcf7_default_pack( __( 'Untitled', 'wpcf7' ), true ) );
|
241 |
+
} elseif ( array_key_exists( $_GET['contactform'], $contact_forms ) ) {
|
242 |
+
$current = (int) $_GET['contactform'];
|
243 |
+
$cf = wpcf7_contact_form( $contact_forms[$current] );
|
244 |
+
} else {
|
245 |
+
$current = (int) array_shift( array_keys( $contact_forms ) );
|
246 |
+
$cf = wpcf7_contact_form( $contact_forms[$current] );
|
247 |
+
}
|
248 |
+
|
249 |
+
require_once WPCF7_PLUGIN_DIR . '/admin/admin-panel.php';
|
250 |
+
}
|
251 |
+
|
252 |
+
function wpcf7_default_form_template() {
|
253 |
+
$template .= '<p>' . __( 'Your Name', 'wpcf7' ) . ' ' . __( '(required)', 'wpcf7' ) . '<br />' . "\n";
|
254 |
+
$template .= ' [text* your-name] </p>' . "\n\n";
|
255 |
+
$template .= '<p>' . __( 'Your Email', 'wpcf7' ) . ' ' . __( '(required)', 'wpcf7' ) . '<br />' . "\n";
|
256 |
+
$template .= ' [email* your-email] </p>' . "\n\n";
|
257 |
+
$template .= '<p>' . __( 'Subject', 'wpcf7' ) . '<br />' . "\n";
|
258 |
+
$template .= ' [text your-subject] </p>' . "\n\n";
|
259 |
+
$template .= '<p>' . __( 'Your Message', 'wpcf7' ) . '<br />' . "\n";
|
260 |
+
$template .= ' [textarea your-message] </p>' . "\n\n";
|
261 |
+
$template .= '<p>[submit "' . __( 'Send', 'wpcf7' ) . '"]</p>';
|
262 |
+
return $template;
|
263 |
+
}
|
264 |
+
|
265 |
+
function wpcf7_default_mail_template() {
|
266 |
+
$subject = '[your-subject]';
|
267 |
+
$sender = '[your-name] <[your-email]>';
|
268 |
+
$body = '[your-message]';
|
269 |
+
$recipient = get_option( 'admin_email' );
|
270 |
+
return compact( 'subject', 'sender', 'body', 'recipient' );
|
271 |
+
}
|
272 |
+
|
273 |
+
function wpcf7_default_mail_2_template() {
|
274 |
+
$active = false;
|
275 |
+
$subject = '[your-subject]';
|
276 |
+
$sender = '[your-name] <[your-email]>';
|
277 |
+
$body = '[your-message]';
|
278 |
+
$recipient = '[your-email]';
|
279 |
+
return compact( 'active', 'subject', 'sender', 'body', 'recipient' );
|
280 |
+
}
|
281 |
+
|
282 |
+
function wpcf7_default_messages_template() {
|
283 |
+
$mail_sent_ok = wpcf7_default_message( 'mail_sent_ok' );
|
284 |
+
$mail_sent_ng = wpcf7_default_message( 'mail_sent_ng' );
|
285 |
+
$akismet_says_spam = wpcf7_default_message( 'akismet_says_spam' );
|
286 |
+
$validation_error = wpcf7_default_message( 'validation_error' );
|
287 |
+
$accept_terms = wpcf7_default_message( 'accept_terms' );
|
288 |
+
$invalid_email = wpcf7_default_message( 'invalid_email' );
|
289 |
+
$invalid_required = wpcf7_default_message( 'invalid_required' );
|
290 |
+
$quiz_answer_not_correct = wpcf7_default_message( 'quiz_answer_not_correct' );
|
291 |
+
$captcha_not_match = wpcf7_default_message( 'captcha_not_match' );
|
292 |
+
$upload_failed = wpcf7_default_message( 'upload_failed' );
|
293 |
+
$upload_file_type_invalid = wpcf7_default_message( 'upload_file_type_invalid' );
|
294 |
+
$upload_file_too_large = wpcf7_default_message( 'upload_file_too_large' );
|
295 |
+
|
296 |
+
return compact( 'mail_sent_ok', 'mail_sent_ng', 'akismet_says_spam',
|
297 |
+
'validation_error', 'accept_terms', 'invalid_email', 'invalid_required', 'quiz_answer_not_correct',
|
298 |
+
'captcha_not_match', 'upload_failed', 'upload_file_type_invalid', 'upload_file_too_large' );
|
299 |
+
}
|
300 |
+
|
301 |
+
function wpcf7_default_options_template() {
|
302 |
+
$recipient = get_option( 'admin_email' ); // For backward compatibility.
|
303 |
+
return compact( 'recipient' );
|
304 |
+
}
|
305 |
+
|
306 |
+
function wpcf7_default_pack( $title, $initial = false ) {
|
307 |
+
$cf = array(
|
308 |
+
'title' => $title,
|
309 |
+
'form' => wpcf7_default_form_template(),
|
310 |
+
'mail' => wpcf7_default_mail_template(),
|
311 |
+
'mail_2' => wpcf7_default_mail_2_template(),
|
312 |
+
'messages' => wpcf7_default_messages_template(),
|
313 |
+
'options' => wpcf7_default_options_template()
|
314 |
+
);
|
315 |
+
|
316 |
+
if ( $initial )
|
317 |
+
$cf['initial'] = true;
|
318 |
+
|
319 |
+
return $cf;
|
320 |
+
}
|
321 |
+
|
322 |
+
function wpcf7_plugin_action_links( $links, $file ) {
|
323 |
+
if ( $file != WPCF7_PLUGIN_BASENAME )
|
324 |
+
return $links;
|
325 |
+
|
326 |
+
if ( function_exists( 'admin_url' ) ) {
|
327 |
+
$base_url = admin_url( wpcf7_admin_menu_parent() );
|
328 |
+
} else {
|
329 |
+
$base_url = get_option( 'siteurl' ) . '/wp-admin/' . wpcf7_admin_menu_parent();
|
330 |
+
}
|
331 |
+
|
332 |
+
$url = $base_url . '?page=' . plugin_basename( __FILE__ );
|
333 |
+
|
334 |
+
$settings_link = '<a href="' . $url . '">' . __('Settings') . '</a>';
|
335 |
+
|
336 |
+
array_unshift( $links, $settings_link );
|
337 |
+
|
338 |
+
return $links;
|
339 |
+
}
|
340 |
+
|
341 |
+
add_filter( 'plugin_action_links', 'wpcf7_plugin_action_links', 10, 2 );
|
342 |
+
|
343 |
+
function wpcf7_donation_link() {
|
344 |
+
if ( ! WPCF7_SHOW_DONATION_LINK )
|
345 |
+
return;
|
346 |
+
|
347 |
+
if ( 'new' == $_GET['contactform'] || ! empty($_GET['message']) )
|
348 |
+
return;
|
349 |
+
|
350 |
+
$num = mt_rand(0, 99);
|
351 |
+
if ($num >= 10) // 90%
|
352 |
+
return;
|
353 |
+
|
354 |
+
$texts = array(
|
355 |
+
__( "Contact Form 7 needs your support. Please donate today.", 'wpcf7' ),
|
356 |
+
__( "Is this plugin useful for you? If you like it, please help the developer.", 'wpcf7' ),
|
357 |
+
__( "Your contribution is needed for making this plugin better.", 'wpcf7' ),
|
358 |
+
__( "Developing a plugin and providing user support is really hard work. Please help.", 'wpcf7' ) );
|
359 |
+
|
360 |
+
$text = $texts[array_rand( $texts )];
|
361 |
+
|
362 |
+
?>
|
363 |
+
<div class="donation">
|
364 |
+
<p><a href="http://www.pledgie.com/campaigns/3117">
|
365 |
+
<img alt="Click here to lend your support to: Support Contact Form 7 and make a donation at www.pledgie.com !" src="http://www.pledgie.com/campaigns/3117.png?skin_name=chrome" border="0" width="149" height="37" /></a>
|
366 |
+
<em><?php echo $text; ?></em>
|
367 |
+
</p>
|
368 |
+
</div>
|
369 |
+
<?php
|
370 |
+
}
|
371 |
+
|
372 |
+
?>
|
admin/wpcf7-admin.js
CHANGED
@@ -59,16 +59,34 @@ jQuery(document).ready(function() {
|
|
59 |
}
|
60 |
});
|
61 |
|
62 |
-
jQuery('#message-fields-toggle-switch').text(
|
63 |
jQuery('#message-fields').hide();
|
64 |
|
65 |
jQuery('#message-fields-toggle-switch').click(function() {
|
66 |
if (jQuery('#message-fields').is(':hidden')) {
|
67 |
jQuery('#message-fields').slideDown('fast');
|
68 |
-
jQuery('#message-fields-toggle-switch').text(
|
69 |
} else {
|
70 |
jQuery('#message-fields').hide('fast');
|
71 |
-
jQuery('#message-fields-toggle-switch').text(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
}
|
73 |
});
|
74 |
|
@@ -103,7 +121,7 @@ function tagGenerator() {
|
|
103 |
var dropdown_icon = jQuery('<img src="../wp-content/plugins/contact-form-7/images/dropdown.gif" />');
|
104 |
dropdown_icon.css({ 'vertical-align': 'bottom' });
|
105 |
|
106 |
-
var selector = jQuery('<span>' +
|
107 |
selector.append(dropdown_icon);
|
108 |
selector.css({
|
109 |
border: '1px solid #ddd',
|
@@ -147,7 +165,7 @@ function tagGenerator() {
|
|
147 |
'acceptance', 'quiz', 'captcha', 'fileUpload', 'submit'];
|
148 |
|
149 |
jQuery.each(tag_types, function(i, n) {
|
150 |
-
var submenu = jQuery('<div>' +
|
151 |
submenu.css({
|
152 |
margin: 0,
|
153 |
padding: '0 4px',
|
@@ -186,7 +204,7 @@ function tgPane(pane, tagType) {
|
|
186 |
closeButtonDiv.append(closeButton);
|
187 |
pane.append(closeButtonDiv);
|
188 |
|
189 |
-
var paneTitle = jQuery('<div class="tg-panetitle">' +
|
190 |
pane.append(paneTitle);
|
191 |
|
192 |
var tgInputs = {};
|
@@ -226,62 +244,62 @@ function tgPane(pane, tagType) {
|
|
226 |
var table1 = jQuery('<table></table>');
|
227 |
pane.append(table1);
|
228 |
table1.append(tgTr(
|
229 |
-
jQuery('<span> ' +
|
230 |
));
|
231 |
table1.append(tgTr(
|
232 |
-
jQuery('<span>' +
|
233 |
jQuery('<span></span>')
|
234 |
));
|
235 |
|
236 |
var table2 = jQuery('<table></table>');
|
237 |
pane.append(table2);
|
238 |
table2.append(tgTr(
|
239 |
-
jQuery('<span><code>size</code> (' +
|
240 |
-
jQuery('<span><code>maxlength</code> (' +
|
241 |
));
|
242 |
table2.append(tgTr(
|
243 |
-
jQuery('<span><code>id</code> (' +
|
244 |
-
jQuery('<span><code>class</code> (' +
|
245 |
));
|
246 |
-
var akismetOpts = jQuery('<span>' +
|
247 |
if ('textField' == tagType) {
|
248 |
-
akismetOpts.append(tgInputs.akismetAuthor).append(' ' +
|
249 |
akismetOpts.append('<br />');
|
250 |
-
akismetOpts.append(tgInputs.akismetAuthorUrl).append(' ' +
|
251 |
} else if ('emailField' == tagType) {
|
252 |
-
akismetOpts.append(tgInputs.akismetAuthorEmail).append(' ' +
|
253 |
}
|
254 |
table2.append(tgTr(
|
255 |
akismetOpts,
|
256 |
-
jQuery('<span>' +
|
257 |
));
|
258 |
-
pane.append(jQuery('<div class="tg-tag">' +
|
259 |
break;
|
260 |
case 'textArea':
|
261 |
var table1 = jQuery('<table></table>');
|
262 |
pane.append(table1);
|
263 |
table1.append(tgTr(
|
264 |
-
jQuery('<span> ' +
|
265 |
));
|
266 |
table1.append(tgTr(
|
267 |
-
jQuery('<span>' +
|
268 |
jQuery('<span></span>')
|
269 |
));
|
270 |
|
271 |
var table2 = jQuery('<table></table>');
|
272 |
pane.append(table2);
|
273 |
table2.append(tgTr(
|
274 |
-
jQuery('<span><code>cols</code> (' +
|
275 |
-
jQuery('<span><code>rows</code> (' +
|
276 |
));
|
277 |
table2.append(tgTr(
|
278 |
-
jQuery('<span><code>id</code> (' +
|
279 |
-
jQuery('<span><code>class</code> (' +
|
280 |
));
|
281 |
table2.append(tgTr(
|
282 |
-
jQuery('<span>' +
|
283 |
));
|
284 |
-
pane.append(jQuery('<div class="tg-tag">' +
|
285 |
break;
|
286 |
case 'menu':
|
287 |
case 'checkboxes':
|
@@ -290,92 +308,92 @@ function tgPane(pane, tagType) {
|
|
290 |
pane.append(table1);
|
291 |
if ('radioButtons' != tagType)
|
292 |
table1.append(tgTr(
|
293 |
-
jQuery('<span> ' +
|
294 |
));
|
295 |
table1.append(tgTr(
|
296 |
-
jQuery('<span>' +
|
297 |
jQuery('<span></span>')
|
298 |
));
|
299 |
|
300 |
var table2 = jQuery('<table></table>');
|
301 |
pane.append(table2);
|
302 |
table2.append(tgTr(
|
303 |
-
jQuery('<span><code>id</code> (' +
|
304 |
-
jQuery('<span><code>class</code> (' +
|
305 |
));
|
306 |
|
307 |
if ('menu' == tagType) {
|
308 |
-
var menuOpt1 = jQuery('<span> ' +
|
309 |
-
var menuOpt2 = jQuery('<span> ' +
|
310 |
|
311 |
table2.append(tgTr(
|
312 |
-
jQuery('<span>' +
|
313 |
-
.append('<br /><span style="font-size: smaller">' +
|
314 |
menuOpt1.append(menuOpt2)
|
315 |
));
|
316 |
} else if ('checkboxes' == tagType) {
|
317 |
table2.append(tgTr(
|
318 |
-
jQuery('<span>' +
|
319 |
-
.append('<br /><span style="font-size: smaller">' +
|
320 |
-
jQuery('<span> ' +
|
321 |
));
|
322 |
} else {
|
323 |
table2.append(tgTr(
|
324 |
-
jQuery('<span>' +
|
325 |
-
.append('<br /><span style="font-size: smaller">' +
|
326 |
));
|
327 |
}
|
328 |
|
329 |
-
pane.append(jQuery('<div class="tg-tag">' +
|
330 |
break;
|
331 |
case 'acceptance':
|
332 |
var table1 = jQuery('<table></table>');
|
333 |
pane.append(table1);
|
334 |
|
335 |
table1.append(tgTr(
|
336 |
-
jQuery('<span>' +
|
337 |
jQuery('<span></span>')
|
338 |
));
|
339 |
|
340 |
var table2 = jQuery('<table></table>');
|
341 |
pane.append(table2);
|
342 |
table2.append(tgTr(
|
343 |
-
jQuery('<span><code>id</code> (' +
|
344 |
-
jQuery('<span><code>class</code> (' +
|
345 |
));
|
346 |
|
347 |
-
var menuOpt1 = jQuery('<span> ' +
|
348 |
-
var menuOpt2 = jQuery('<span> ' +
|
349 |
-
menuOpt2.append('<br /><span style="font-size: smaller;">' +
|
350 |
|
351 |
table2.append(jQuery('<tr></tr>').append(jQuery('<td colspan="2"></td>').append(menuOpt1).append(menuOpt2)));
|
352 |
|
353 |
-
pane.append(jQuery('<div class="tg-tag">' +
|
354 |
break;
|
355 |
case 'quiz':
|
356 |
var table1 = jQuery('<table></table>');
|
357 |
pane.append(table1);
|
358 |
|
359 |
table1.append(tgTr(
|
360 |
-
jQuery('<span>' +
|
361 |
jQuery('<span></span>')
|
362 |
));
|
363 |
|
364 |
var table2 = jQuery('<table></table>');
|
365 |
pane.append(table2);
|
366 |
table2.append(tgTr(
|
367 |
-
jQuery('<span><code>size</code> (' +
|
368 |
-
jQuery('<span><code>maxlength</code> (' +
|
369 |
));
|
370 |
table2.append(tgTr(
|
371 |
-
jQuery('<span><code>id</code> (' +
|
372 |
-
jQuery('<span><code>class</code> (' +
|
373 |
));
|
374 |
table2.append(tgTr(
|
375 |
-
jQuery('<span>' +
|
376 |
-
.append('<br /><span style="font-size: smaller">' +
|
377 |
));
|
378 |
-
pane.append(jQuery('<div class="tg-tag">' +
|
379 |
break;
|
380 |
case 'captcha':
|
381 |
var table1 = jQuery('<table></table>');
|
@@ -383,51 +401,51 @@ function tgPane(pane, tagType) {
|
|
383 |
|
384 |
if (! _wpcf7.captchaMod) {
|
385 |
table1.append('<tr><td colspan="2"><strong style="color: #e6255b">' +
|
386 |
-
|
387 |
'<a href="http://wordpress.org/extend/plugins/really-simple-captcha/">' +
|
388 |
'http://wordpress.org/extend/plugins/really-simple-captcha/</a></td></tr>');
|
389 |
}
|
390 |
|
391 |
table1.append(tgTr(
|
392 |
-
jQuery('<span>' +
|
393 |
jQuery('<span></span>')
|
394 |
));
|
395 |
|
396 |
var table2 = jQuery('<table></table>');
|
397 |
pane.append(table2);
|
398 |
-
table2.append('<caption>' +
|
399 |
-
var imageSizeOpts = jQuery('<span>' +
|
400 |
-
imageSizeOpts.append(tgInputs.imageSizeSmall).append(' ' +
|
401 |
imageSizeOpts.append(' ');
|
402 |
-
imageSizeOpts.append(tgInputs.imageSizeMedium).append(' ' +
|
403 |
imageSizeOpts.append(' ');
|
404 |
-
imageSizeOpts.append(tgInputs.imageSizeLarge).append(' ' +
|
405 |
table2.append(jQuery('<tr></tr>').append(jQuery('<td colspan="2"></td>').append(imageSizeOpts)));
|
406 |
table2.append(tgTr(
|
407 |
-
jQuery('<span>' +
|
408 |
-
jQuery('<span>' +
|
409 |
));
|
410 |
table2.append(tgTr(
|
411 |
-
jQuery('<span><code>id</code> (' +
|
412 |
-
jQuery('<span><code>class</code> (' +
|
413 |
));
|
414 |
|
415 |
var table3 = jQuery('<table></table>');
|
416 |
pane.append(table3);
|
417 |
-
table3.append('<caption>' +
|
418 |
table3.append(tgTr(
|
419 |
-
jQuery('<span><code>size</code> (' +
|
420 |
-
jQuery('<span><code>maxlength</code> (' +
|
421 |
));
|
422 |
table3.append(tgTr(
|
423 |
-
jQuery('<span><code>id</code> (' +
|
424 |
-
jQuery('<span><code>class</code> (' +
|
425 |
));
|
426 |
pane.append(
|
427 |
-
jQuery('<div class="tg-tag">' +
|
428 |
-
.append('<br />').append('1) ' +
|
429 |
.append(tgInputs.tag1st)
|
430 |
-
.append('<br />').append('2) ' +
|
431 |
.append(tgInputs.tag2nd)
|
432 |
);
|
433 |
break;
|
@@ -435,39 +453,39 @@ function tgPane(pane, tagType) {
|
|
435 |
var table1 = jQuery('<table></table>');
|
436 |
pane.append(table1);
|
437 |
table1.append(tgTr(
|
438 |
-
jQuery('<span> ' +
|
439 |
));
|
440 |
table1.append(tgTr(
|
441 |
-
jQuery('<span>' +
|
442 |
jQuery('<span></span>')
|
443 |
));
|
444 |
|
445 |
var table2 = jQuery('<table></table>');
|
446 |
pane.append(table2);
|
447 |
table2.append(tgTr(
|
448 |
-
jQuery('<span>' +
|
449 |
-
jQuery('<span>' +
|
450 |
));
|
451 |
table2.append(tgTr(
|
452 |
-
jQuery('<span><code>id</code> (' +
|
453 |
-
jQuery('<span><code>class</code> (' +
|
454 |
));
|
455 |
-
pane.append(jQuery('<div class="tg-tag">' +
|
456 |
break;
|
457 |
case 'submit':
|
458 |
var table = jQuery('<table></table>');
|
459 |
pane.append(table);
|
460 |
|
461 |
table.append(tgTr(
|
462 |
-
jQuery('<span><code>id</code> (' +
|
463 |
-
jQuery('<span><code>class</code> (' +
|
464 |
));
|
465 |
|
466 |
table.append(tgTr(
|
467 |
-
jQuery('<span>' +
|
468 |
jQuery('<span></span>')
|
469 |
));
|
470 |
-
pane.append(jQuery('<div class="tg-tag">' +
|
471 |
break;
|
472 |
}
|
473 |
|
@@ -495,7 +513,7 @@ function tgCreateTag(tagType, tgInputs, trigger) {
|
|
495 |
tgInputs[n].val(val);
|
496 |
});
|
497 |
|
498 |
-
jQuery.each([ 'tagSize', 'tagMaxLength', 'tagCols', 'tagRows'
|
499 |
var val = tgInputs[n].val();
|
500 |
val = val.replace(/[^0-9]/g, '');
|
501 |
tgInputs[n].val(val);
|
@@ -522,6 +540,12 @@ function tgCreateTag(tagType, tgInputs, trigger) {
|
|
522 |
tgInputs[n].val(val);
|
523 |
});
|
524 |
|
|
|
|
|
|
|
|
|
|
|
|
|
525 |
jQuery.each([ 'tagAcceptableFileTypes' ], function(i, n) {
|
526 |
var val = tgInputs[n].val();
|
527 |
val = val.replace(/[^0-9a-zA-Z.\s]/g, '');
|
59 |
}
|
60 |
});
|
61 |
|
62 |
+
jQuery('#message-fields-toggle-switch').text(_wpcf7L10n.show);
|
63 |
jQuery('#message-fields').hide();
|
64 |
|
65 |
jQuery('#message-fields-toggle-switch').click(function() {
|
66 |
if (jQuery('#message-fields').is(':hidden')) {
|
67 |
jQuery('#message-fields').slideDown('fast');
|
68 |
+
jQuery('#message-fields-toggle-switch').text(_wpcf7L10n.hide);
|
69 |
} else {
|
70 |
jQuery('#message-fields').hide('fast');
|
71 |
+
jQuery('#message-fields-toggle-switch').text(_wpcf7L10n.show);
|
72 |
+
}
|
73 |
+
});
|
74 |
+
|
75 |
+
if ('' == jQuery.trim(jQuery('#wpcf7-additional-settings').text())) {
|
76 |
+
jQuery('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.show);
|
77 |
+
jQuery('#additional-settings-fields').hide();
|
78 |
+
} else {
|
79 |
+
jQuery('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.hide);
|
80 |
+
jQuery('#additional-settings-fields').show();
|
81 |
+
}
|
82 |
+
|
83 |
+
jQuery('#additional-settings-fields-toggle-switch').click(function() {
|
84 |
+
if (jQuery('#additional-settings-fields').is(':hidden')) {
|
85 |
+
jQuery('#additional-settings-fields').slideDown('fast');
|
86 |
+
jQuery('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.hide);
|
87 |
+
} else {
|
88 |
+
jQuery('#additional-settings-fields').hide('fast');
|
89 |
+
jQuery('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.show);
|
90 |
}
|
91 |
});
|
92 |
|
121 |
var dropdown_icon = jQuery('<img src="../wp-content/plugins/contact-form-7/images/dropdown.gif" />');
|
122 |
dropdown_icon.css({ 'vertical-align': 'bottom' });
|
123 |
|
124 |
+
var selector = jQuery('<span>' + _wpcf7L10n.generateTag + '</span>');
|
125 |
selector.append(dropdown_icon);
|
126 |
selector.css({
|
127 |
border: '1px solid #ddd',
|
165 |
'acceptance', 'quiz', 'captcha', 'fileUpload', 'submit'];
|
166 |
|
167 |
jQuery.each(tag_types, function(i, n) {
|
168 |
+
var submenu = jQuery('<div>' + _wpcf7L10n[n] + '</div>');
|
169 |
submenu.css({
|
170 |
margin: 0,
|
171 |
padding: '0 4px',
|
204 |
closeButtonDiv.append(closeButton);
|
205 |
pane.append(closeButtonDiv);
|
206 |
|
207 |
+
var paneTitle = jQuery('<div class="tg-panetitle">' + _wpcf7L10n[tagType] + '</div>');
|
208 |
pane.append(paneTitle);
|
209 |
|
210 |
var tgInputs = {};
|
244 |
var table1 = jQuery('<table></table>');
|
245 |
pane.append(table1);
|
246 |
table1.append(tgTr(
|
247 |
+
jQuery('<span> ' + _wpcf7L10n.isRequiredField + '</span>').prepend(tgInputs.isRequiredField)
|
248 |
));
|
249 |
table1.append(tgTr(
|
250 |
+
jQuery('<span>' + _wpcf7L10n.tagName + '<br /></span>').append(tgInputs.tagName),
|
251 |
jQuery('<span></span>')
|
252 |
));
|
253 |
|
254 |
var table2 = jQuery('<table></table>');
|
255 |
pane.append(table2);
|
256 |
table2.append(tgTr(
|
257 |
+
jQuery('<span><code>size</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagSize),
|
258 |
+
jQuery('<span><code>maxlength</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagMaxLength)
|
259 |
));
|
260 |
table2.append(tgTr(
|
261 |
+
jQuery('<span><code>id</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagId),
|
262 |
+
jQuery('<span><code>class</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagClasses)
|
263 |
));
|
264 |
+
var akismetOpts = jQuery('<span>' + _wpcf7L10n.akismet + ' (' + _wpcf7L10n.optional + ')<br /></span>');
|
265 |
if ('textField' == tagType) {
|
266 |
+
akismetOpts.append(tgInputs.akismetAuthor).append(' ' + _wpcf7L10n.akismetAuthor);
|
267 |
akismetOpts.append('<br />');
|
268 |
+
akismetOpts.append(tgInputs.akismetAuthorUrl).append(' ' + _wpcf7L10n.akismetAuthorUrl);
|
269 |
} else if ('emailField' == tagType) {
|
270 |
+
akismetOpts.append(tgInputs.akismetAuthorEmail).append(' ' + _wpcf7L10n.akismetAuthorEmail);
|
271 |
}
|
272 |
table2.append(tgTr(
|
273 |
akismetOpts,
|
274 |
+
jQuery('<span>' + _wpcf7L10n.defaultValue + ' (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.defaultValue)
|
275 |
));
|
276 |
+
pane.append(jQuery('<div class="tg-tag">' + _wpcf7L10n.generatedTag + '<br /></div>').append(tgInputs.tag1st));
|
277 |
break;
|
278 |
case 'textArea':
|
279 |
var table1 = jQuery('<table></table>');
|
280 |
pane.append(table1);
|
281 |
table1.append(tgTr(
|
282 |
+
jQuery('<span> ' + _wpcf7L10n.isRequiredField + '</span>').prepend(tgInputs.isRequiredField)
|
283 |
));
|
284 |
table1.append(tgTr(
|
285 |
+
jQuery('<span>' + _wpcf7L10n.tagName + '<br /></span>').append(tgInputs.tagName),
|
286 |
jQuery('<span></span>')
|
287 |
));
|
288 |
|
289 |
var table2 = jQuery('<table></table>');
|
290 |
pane.append(table2);
|
291 |
table2.append(tgTr(
|
292 |
+
jQuery('<span><code>cols</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagCols),
|
293 |
+
jQuery('<span><code>rows</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagRows)
|
294 |
));
|
295 |
table2.append(tgTr(
|
296 |
+
jQuery('<span><code>id</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagId),
|
297 |
+
jQuery('<span><code>class</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagClasses)
|
298 |
));
|
299 |
table2.append(tgTr(
|
300 |
+
jQuery('<span>' + _wpcf7L10n.defaultValue + ' (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.defaultValue)
|
301 |
));
|
302 |
+
pane.append(jQuery('<div class="tg-tag">' + _wpcf7L10n.generatedTag + '<br /></div>').append(tgInputs.tag1st));
|
303 |
break;
|
304 |
case 'menu':
|
305 |
case 'checkboxes':
|
308 |
pane.append(table1);
|
309 |
if ('radioButtons' != tagType)
|
310 |
table1.append(tgTr(
|
311 |
+
jQuery('<span> ' + _wpcf7L10n.isRequiredField + '</span>').prepend(tgInputs.isRequiredField)
|
312 |
));
|
313 |
table1.append(tgTr(
|
314 |
+
jQuery('<span>' + _wpcf7L10n.tagName + '<br /></span>').append(tgInputs.tagName),
|
315 |
jQuery('<span></span>')
|
316 |
));
|
317 |
|
318 |
var table2 = jQuery('<table></table>');
|
319 |
pane.append(table2);
|
320 |
table2.append(tgTr(
|
321 |
+
jQuery('<span><code>id</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagId),
|
322 |
+
jQuery('<span><code>class</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagClasses)
|
323 |
));
|
324 |
|
325 |
if ('menu' == tagType) {
|
326 |
+
var menuOpt1 = jQuery('<span> ' + _wpcf7L10n.allowsMultipleSelections + '</span>').prepend(tgInputs.allowsMultipleSelections).prepend('<br />');
|
327 |
+
var menuOpt2 = jQuery('<span> ' + _wpcf7L10n.insertFirstBlankOption + '</span>').prepend(tgInputs.insertFirstBlankOption).prepend('<br />');
|
328 |
|
329 |
table2.append(tgTr(
|
330 |
+
jQuery('<span>' + _wpcf7L10n.menuChoices + '<br /></span>').append(tgInputs.menuChoices)
|
331 |
+
.append('<br /><span style="font-size: smaller">' + _wpcf7L10n.oneChoicePerLine + '</span>'),
|
332 |
menuOpt1.append(menuOpt2)
|
333 |
));
|
334 |
} else if ('checkboxes' == tagType) {
|
335 |
table2.append(tgTr(
|
336 |
+
jQuery('<span>' + _wpcf7L10n.menuChoices + '<br /></span>').append(tgInputs.menuChoices)
|
337 |
+
.append('<br /><span style="font-size: smaller">' + _wpcf7L10n.oneChoicePerLine + '</span>'),
|
338 |
+
jQuery('<span> ' + _wpcf7L10n.makeCheckboxesExclusive + '</span>').prepend(tgInputs.makeCheckboxesExclusive).prepend('<br />')
|
339 |
));
|
340 |
} else {
|
341 |
table2.append(tgTr(
|
342 |
+
jQuery('<span>' + _wpcf7L10n.menuChoices + '<br /></span>').append(tgInputs.menuChoices)
|
343 |
+
.append('<br /><span style="font-size: smaller">' + _wpcf7L10n.oneChoicePerLine + '</span>')
|
344 |
));
|
345 |
}
|
346 |
|
347 |
+
pane.append(jQuery('<div class="tg-tag">' + _wpcf7L10n.generatedTag + '<br /></div>').append(tgInputs.tag1st));
|
348 |
break;
|
349 |
case 'acceptance':
|
350 |
var table1 = jQuery('<table></table>');
|
351 |
pane.append(table1);
|
352 |
|
353 |
table1.append(tgTr(
|
354 |
+
jQuery('<span>' + _wpcf7L10n.tagName + '<br /></span>').append(tgInputs.tagName),
|
355 |
jQuery('<span></span>')
|
356 |
));
|
357 |
|
358 |
var table2 = jQuery('<table></table>');
|
359 |
pane.append(table2);
|
360 |
table2.append(tgTr(
|
361 |
+
jQuery('<span><code>id</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagId),
|
362 |
+
jQuery('<span><code>class</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagClasses)
|
363 |
));
|
364 |
|
365 |
+
var menuOpt1 = jQuery('<span> ' + _wpcf7L10n.isAcceptanceDefaultOn + '</span>').prepend(tgInputs.isAcceptanceDefaultOn).prepend('<br />');
|
366 |
+
var menuOpt2 = jQuery('<span> ' + _wpcf7L10n.isAcceptanceInvert + '</span>').prepend(tgInputs.isAcceptanceInvert).prepend('<br />');
|
367 |
+
menuOpt2.append('<br /><span style="font-size: smaller;">' + _wpcf7L10n.isAcceptanceInvertMeans + '</span>');
|
368 |
|
369 |
table2.append(jQuery('<tr></tr>').append(jQuery('<td colspan="2"></td>').append(menuOpt1).append(menuOpt2)));
|
370 |
|
371 |
+
pane.append(jQuery('<div class="tg-tag">' + _wpcf7L10n.generatedTag + '<br /></div>').append(tgInputs.tag1st));
|
372 |
break;
|
373 |
case 'quiz':
|
374 |
var table1 = jQuery('<table></table>');
|
375 |
pane.append(table1);
|
376 |
|
377 |
table1.append(tgTr(
|
378 |
+
jQuery('<span>' + _wpcf7L10n.tagName + '<br /></span>').append(tgInputs.tagName),
|
379 |
jQuery('<span></span>')
|
380 |
));
|
381 |
|
382 |
var table2 = jQuery('<table></table>');
|
383 |
pane.append(table2);
|
384 |
table2.append(tgTr(
|
385 |
+
jQuery('<span><code>size</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagSize),
|
386 |
+
jQuery('<span><code>maxlength</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagMaxLength)
|
387 |
));
|
388 |
table2.append(tgTr(
|
389 |
+
jQuery('<span><code>id</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagId),
|
390 |
+
jQuery('<span><code>class</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagClasses)
|
391 |
));
|
392 |
table2.append(tgTr(
|
393 |
+
jQuery('<span>' + _wpcf7L10n.quizzes + '<br /></span>').append(tgInputs.menuChoices)
|
394 |
+
.append('<br /><span style="font-size: smaller">' + _wpcf7L10n.quizFormatDesc + '</span>')
|
395 |
));
|
396 |
+
pane.append(jQuery('<div class="tg-tag">' + _wpcf7L10n.generatedTag + '<br /></div>').append(tgInputs.tag1st));
|
397 |
break;
|
398 |
case 'captcha':
|
399 |
var table1 = jQuery('<table></table>');
|
401 |
|
402 |
if (! _wpcf7.captchaMod) {
|
403 |
table1.append('<tr><td colspan="2"><strong style="color: #e6255b">' +
|
404 |
+
_wpcf7L10n.needReallySimpleCaptcha + '</strong><br />' +
|
405 |
'<a href="http://wordpress.org/extend/plugins/really-simple-captcha/">' +
|
406 |
'http://wordpress.org/extend/plugins/really-simple-captcha/</a></td></tr>');
|
407 |
}
|
408 |
|
409 |
table1.append(tgTr(
|
410 |
+
jQuery('<span>' + _wpcf7L10n.tagName + '<br /></span>').append(tgInputs.tagName),
|
411 |
jQuery('<span></span>')
|
412 |
));
|
413 |
|
414 |
var table2 = jQuery('<table></table>');
|
415 |
pane.append(table2);
|
416 |
+
table2.append('<caption>' + _wpcf7L10n.imageSettings + '</caption>');
|
417 |
+
var imageSizeOpts = jQuery('<span>' + _wpcf7L10n.imageSize + ' (' + _wpcf7L10n.optional + ')<br /></span>');
|
418 |
+
imageSizeOpts.append(tgInputs.imageSizeSmall).append(' ' + _wpcf7L10n.imageSizeSmall);
|
419 |
imageSizeOpts.append(' ');
|
420 |
+
imageSizeOpts.append(tgInputs.imageSizeMedium).append(' ' + _wpcf7L10n.imageSizeMedium);
|
421 |
imageSizeOpts.append(' ');
|
422 |
+
imageSizeOpts.append(tgInputs.imageSizeLarge).append(' ' + _wpcf7L10n.imageSizeLarge);
|
423 |
table2.append(jQuery('<tr></tr>').append(jQuery('<td colspan="2"></td>').append(imageSizeOpts)));
|
424 |
table2.append(tgTr(
|
425 |
+
jQuery('<span>' + _wpcf7L10n.fgColor + ' (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.fgColor),
|
426 |
+
jQuery('<span>' + _wpcf7L10n.bgColor + ' (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.bgColor)
|
427 |
));
|
428 |
table2.append(tgTr(
|
429 |
+
jQuery('<span><code>id</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagId),
|
430 |
+
jQuery('<span><code>class</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagClasses)
|
431 |
));
|
432 |
|
433 |
var table3 = jQuery('<table></table>');
|
434 |
pane.append(table3);
|
435 |
+
table3.append('<caption>' + _wpcf7L10n.inputFieldSettings + '</caption>');
|
436 |
table3.append(tgTr(
|
437 |
+
jQuery('<span><code>size</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagSize),
|
438 |
+
jQuery('<span><code>maxlength</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagMaxLength)
|
439 |
));
|
440 |
table3.append(tgTr(
|
441 |
+
jQuery('<span><code>id</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagId2),
|
442 |
+
jQuery('<span><code>class</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagClasses2)
|
443 |
));
|
444 |
pane.append(
|
445 |
+
jQuery('<div class="tg-tag">' + _wpcf7L10n.generatedTag + '</div>')
|
446 |
+
.append('<br />').append('1) ' + _wpcf7L10n.tagForImage)
|
447 |
.append(tgInputs.tag1st)
|
448 |
+
.append('<br />').append('2) ' + _wpcf7L10n.tagForInputField)
|
449 |
.append(tgInputs.tag2nd)
|
450 |
);
|
451 |
break;
|
453 |
var table1 = jQuery('<table></table>');
|
454 |
pane.append(table1);
|
455 |
table1.append(tgTr(
|
456 |
+
jQuery('<span> ' + _wpcf7L10n.isRequiredField + '</span>').prepend(tgInputs.isRequiredField)
|
457 |
));
|
458 |
table1.append(tgTr(
|
459 |
+
jQuery('<span>' + _wpcf7L10n.tagName + '<br /></span>').append(tgInputs.tagName),
|
460 |
jQuery('<span></span>')
|
461 |
));
|
462 |
|
463 |
var table2 = jQuery('<table></table>');
|
464 |
pane.append(table2);
|
465 |
table2.append(tgTr(
|
466 |
+
jQuery('<span>' + _wpcf7L10n.fileSizeLimit + ' (' + _wpcf7L10n.bytes + ') (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagFileSizeLimit),
|
467 |
+
jQuery('<span>' + _wpcf7L10n.acceptableFileTypes + ' (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagAcceptableFileTypes)
|
468 |
));
|
469 |
table2.append(tgTr(
|
470 |
+
jQuery('<span><code>id</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagId),
|
471 |
+
jQuery('<span><code>class</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagClasses)
|
472 |
));
|
473 |
+
pane.append(jQuery('<div class="tg-tag">' + _wpcf7L10n.generatedTag + '<br /></div>').append(tgInputs.tag1st));
|
474 |
break;
|
475 |
case 'submit':
|
476 |
var table = jQuery('<table></table>');
|
477 |
pane.append(table);
|
478 |
|
479 |
table.append(tgTr(
|
480 |
+
jQuery('<span><code>id</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagId),
|
481 |
+
jQuery('<span><code>class</code> (' + _wpcf7L10n.optional + ')<br /></span>').append(tgInputs.tagClasses)
|
482 |
));
|
483 |
|
484 |
table.append(tgTr(
|
485 |
+
jQuery('<span>' + _wpcf7L10n.label + '<br /></span>').append(tgInputs.label),
|
486 |
jQuery('<span></span>')
|
487 |
));
|
488 |
+
pane.append(jQuery('<div class="tg-tag">' + _wpcf7L10n.generatedTag + '<br /></div>').append(tgInputs.tag1st));
|
489 |
break;
|
490 |
}
|
491 |
|
513 |
tgInputs[n].val(val);
|
514 |
});
|
515 |
|
516 |
+
jQuery.each([ 'tagSize', 'tagMaxLength', 'tagCols', 'tagRows' ], function(i, n) {
|
517 |
var val = tgInputs[n].val();
|
518 |
val = val.replace(/[^0-9]/g, '');
|
519 |
tgInputs[n].val(val);
|
540 |
tgInputs[n].val(val);
|
541 |
});
|
542 |
|
543 |
+
jQuery.each([ 'tagFileSizeLimit' ], function(i, n) {
|
544 |
+
var val = tgInputs[n].val();
|
545 |
+
val = val.replace(/[^0-9kKmMbB]/g, '');
|
546 |
+
tgInputs[n].val(val);
|
547 |
+
});
|
548 |
+
|
549 |
jQuery.each([ 'tagAcceptableFileTypes' ], function(i, n) {
|
550 |
var val = tgInputs[n].val();
|
551 |
val = val.replace(/[^0-9a-zA-Z.\s]/g, '');
|
contact-form-7.js
CHANGED
@@ -90,6 +90,9 @@ function wpcf7ProcessJson(data) {
|
|
90 |
if (1 == data.mailSent) {
|
91 |
jQuery(data.into).find('form').resetForm().clearForm();
|
92 |
wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ok');
|
|
|
|
|
|
|
93 |
} else {
|
94 |
wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ng');
|
95 |
}
|
90 |
if (1 == data.mailSent) {
|
91 |
jQuery(data.into).find('form').resetForm().clearForm();
|
92 |
wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ok');
|
93 |
+
|
94 |
+
if (data.onSentOk)
|
95 |
+
jQuery.each(data.onSentOk, function(i, n) { eval(n) });
|
96 |
} else {
|
97 |
wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ng');
|
98 |
}
|
includes/acceptance.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wpcf7_acceptance( $contact_form ) {
|
4 |
+
$fes = $contact_form->form_elements( false );
|
5 |
+
|
6 |
+
$accepted = true;
|
7 |
+
|
8 |
+
foreach ( $fes as $fe ) {
|
9 |
+
if ( 'acceptance' != $fe['type'] )
|
10 |
+
continue;
|
11 |
+
|
12 |
+
$invert = (bool) preg_grep( '%^invert$%', $fe['options'] );
|
13 |
+
|
14 |
+
if ( $invert && $_POST[$fe['name']] || ! $invert && ! $_POST[$fe['name']] )
|
15 |
+
$accepted = false;
|
16 |
+
}
|
17 |
+
|
18 |
+
return $accepted;
|
19 |
+
}
|
20 |
+
|
21 |
+
?>
|
includes/akismet.php
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wpcf7_akismet( $contact_form ) {
|
4 |
+
global $akismet_api_host, $akismet_api_port;
|
5 |
+
|
6 |
+
if ( ! function_exists( 'akismet_http_post' ) || ! ( get_option( 'wordpress_api_key' ) || $wpcom_api_key ) )
|
7 |
+
return false;
|
8 |
+
|
9 |
+
$akismet_ready = false;
|
10 |
+
$author = $author_email = $author_url = $content = '';
|
11 |
+
$fes = $contact_form->form_elements( false );
|
12 |
+
|
13 |
+
foreach ( $fes as $fe ) {
|
14 |
+
if ( ! is_array( $fe['options'] ) ) continue;
|
15 |
+
|
16 |
+
if ( preg_grep( '%^akismet:author$%', $fe['options'] ) && '' == $author ) {
|
17 |
+
$author = $_POST[$fe['name']];
|
18 |
+
$akismet_ready = true;
|
19 |
+
}
|
20 |
+
|
21 |
+
if ( preg_grep( '%^akismet:author_email$%', $fe['options'] ) && '' == $author_email ) {
|
22 |
+
$author_email = $_POST[$fe['name']];
|
23 |
+
$akismet_ready = true;
|
24 |
+
}
|
25 |
+
|
26 |
+
if ( preg_grep( '%^akismet:author_url$%', $fe['options'] ) && '' == $author_url ) {
|
27 |
+
$author_url = $_POST[$fe['name']];
|
28 |
+
$akismet_ready = true;
|
29 |
+
}
|
30 |
+
|
31 |
+
if ( '' != $content )
|
32 |
+
$content .= "\n\n";
|
33 |
+
|
34 |
+
$content .= $_POST[$fe['name']];
|
35 |
+
}
|
36 |
+
|
37 |
+
if ( ! $akismet_ready )
|
38 |
+
return false;
|
39 |
+
|
40 |
+
$c['blog'] = get_option( 'home' );
|
41 |
+
$c['user_ip'] = preg_replace( '/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR'] );
|
42 |
+
$c['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
|
43 |
+
$c['referrer'] = $_SERVER['HTTP_REFERER'];
|
44 |
+
$c['comment_type'] = 'contactform7';
|
45 |
+
if ( $permalink = get_permalink() )
|
46 |
+
$c['permalink'] = $permalink;
|
47 |
+
if ( '' != $author )
|
48 |
+
$c['comment_author'] = $author;
|
49 |
+
if ( '' != $author_email )
|
50 |
+
$c['comment_author_email'] = $author_email;
|
51 |
+
if ( '' != $author_url )
|
52 |
+
$c['comment_author_url'] = $author_url;
|
53 |
+
if ( '' != $content )
|
54 |
+
$c['comment_content'] = $content;
|
55 |
+
|
56 |
+
$ignore = array( 'HTTP_COOKIE' );
|
57 |
+
|
58 |
+
foreach ( $_SERVER as $key => $value )
|
59 |
+
if ( ! in_array( $key, (array) $ignore ) )
|
60 |
+
$c["$key"] = $value;
|
61 |
+
|
62 |
+
$query_string = '';
|
63 |
+
foreach ( $c as $key => $data )
|
64 |
+
$query_string .= $key . '=' . urlencode( stripslashes( $data ) ) . '&';
|
65 |
+
|
66 |
+
$response = akismet_http_post( $query_string, $akismet_api_host, '/1.1/comment-check', $akismet_api_port );
|
67 |
+
if ( 'true' == $response[1] )
|
68 |
+
return true;
|
69 |
+
else
|
70 |
+
return false;
|
71 |
+
}
|
72 |
+
|
73 |
+
?>
|
includes/captcha.php
ADDED
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$wpcf7_captcha = null;
|
4 |
+
|
5 |
+
function wpcf7_init_captcha() {
|
6 |
+
global $wpcf7_captcha;
|
7 |
+
|
8 |
+
if ( ! class_exists( 'ReallySimpleCaptcha' ) )
|
9 |
+
return false;
|
10 |
+
|
11 |
+
if ( ! is_object( $wpcf7_captcha ) )
|
12 |
+
$wpcf7_captcha = new ReallySimpleCaptcha();
|
13 |
+
$captcha =& $wpcf7_captcha;
|
14 |
+
|
15 |
+
$captcha->tmp_dir = trailingslashit( wpcf7_captcha_tmp_dir() );
|
16 |
+
wp_mkdir_p( $captcha->tmp_dir );
|
17 |
+
return true;
|
18 |
+
}
|
19 |
+
|
20 |
+
function wpcf7_generate_captcha( $options = null ) {
|
21 |
+
global $wpcf7_captcha;
|
22 |
+
|
23 |
+
if ( ! wpcf7_init_captcha() )
|
24 |
+
return false;
|
25 |
+
$captcha =& $wpcf7_captcha;
|
26 |
+
|
27 |
+
if ( ! is_dir( $captcha->tmp_dir ) || ! is_writable( $captcha->tmp_dir ) )
|
28 |
+
return false;
|
29 |
+
|
30 |
+
$img_type = imagetypes();
|
31 |
+
if ( $img_type & IMG_PNG )
|
32 |
+
$captcha->img_type = 'png';
|
33 |
+
elseif ( $img_type & IMG_GIF )
|
34 |
+
$captcha->img_type = 'gif';
|
35 |
+
elseif ( $img_type & IMG_JPG )
|
36 |
+
$captcha->img_type = 'jpeg';
|
37 |
+
else
|
38 |
+
return false;
|
39 |
+
|
40 |
+
if ( is_array( $options ) ) {
|
41 |
+
if ( isset( $options['img_size'] ) )
|
42 |
+
$captcha->img_size = $options['img_size'];
|
43 |
+
if ( isset( $options['base'] ) )
|
44 |
+
$captcha->base = $options['base'];
|
45 |
+
if ( isset( $options['font_size'] ) )
|
46 |
+
$captcha->font_size = $options['font_size'];
|
47 |
+
if ( isset( $options['font_char_width'] ) )
|
48 |
+
$captcha->font_char_width = $options['font_char_width'];
|
49 |
+
if ( isset( $options['fg'] ) )
|
50 |
+
$captcha->fg = $options['fg'];
|
51 |
+
if ( isset( $options['bg'] ) )
|
52 |
+
$captcha->bg = $options['bg'];
|
53 |
+
}
|
54 |
+
|
55 |
+
$prefix = mt_rand();
|
56 |
+
$captcha_word = $captcha->generate_random_word();
|
57 |
+
return $captcha->generate_image( $prefix, $captcha_word );
|
58 |
+
}
|
59 |
+
|
60 |
+
function wpcf7_check_captcha( $prefix, $response ) {
|
61 |
+
global $wpcf7_captcha;
|
62 |
+
|
63 |
+
if ( ! wpcf7_init_captcha() )
|
64 |
+
return false;
|
65 |
+
$captcha =& $wpcf7_captcha;
|
66 |
+
|
67 |
+
return $captcha->check( $prefix, $response );
|
68 |
+
}
|
69 |
+
|
70 |
+
function wpcf7_remove_captcha( $prefix ) {
|
71 |
+
global $wpcf7_captcha;
|
72 |
+
|
73 |
+
if ( ! wpcf7_init_captcha() )
|
74 |
+
return false;
|
75 |
+
$captcha =& $wpcf7_captcha;
|
76 |
+
|
77 |
+
$captcha->remove( $prefix );
|
78 |
+
}
|
79 |
+
|
80 |
+
function wpcf7_cleanup_captcha_files() {
|
81 |
+
$dir = trailingslashit( wpcf7_captcha_tmp_dir() );
|
82 |
+
|
83 |
+
if ( ! is_dir( $dir ) )
|
84 |
+
return false;
|
85 |
+
if ( ! is_readable( $dir ) )
|
86 |
+
return false;
|
87 |
+
if ( ! is_writable( $dir ) )
|
88 |
+
return false;
|
89 |
+
|
90 |
+
if ( $handle = @opendir( $dir ) ) {
|
91 |
+
while ( false !== ( $file = readdir( $handle ) ) ) {
|
92 |
+
if ( ! preg_match( '/^[0-9]+\.(php|png|gif|jpeg)$/', $file ) )
|
93 |
+
continue;
|
94 |
+
|
95 |
+
$stat = stat( $dir . $file );
|
96 |
+
if ( $stat['mtime'] + 21600 < time() ) // 21600 secs == 6 hours
|
97 |
+
@unlink( $dir . $file );
|
98 |
+
}
|
99 |
+
closedir( $handle );
|
100 |
+
}
|
101 |
+
}
|
102 |
+
|
103 |
+
function wpcf7_captchac_options( $options ) {
|
104 |
+
if ( ! is_array( $options ) )
|
105 |
+
return array();
|
106 |
+
|
107 |
+
$op = array();
|
108 |
+
$image_size_array = preg_grep( '%^size:[smlSML]$%', $options );
|
109 |
+
|
110 |
+
if ( $image_size = array_shift( $image_size_array ) ) {
|
111 |
+
preg_match( '%^size:([smlSML])$%', $image_size, $is_matches );
|
112 |
+
switch ( strtolower( $is_matches[1] ) ) {
|
113 |
+
case 's':
|
114 |
+
$op['img_size'] = array( 60, 20 );
|
115 |
+
$op['base'] = array( 6, 15 );
|
116 |
+
$op['font_size'] = 11;
|
117 |
+
$op['font_char_width'] = 13;
|
118 |
+
break;
|
119 |
+
case 'l':
|
120 |
+
$op['img_size'] = array( 84, 28 );
|
121 |
+
$op['base'] = array( 6, 20 );
|
122 |
+
$op['font_size'] = 17;
|
123 |
+
$op['font_char_width'] = 19;
|
124 |
+
break;
|
125 |
+
case 'm':
|
126 |
+
default:
|
127 |
+
$op['img_size'] = array( 72, 24 );
|
128 |
+
$op['base'] = array( 6, 18 );
|
129 |
+
$op['font_size'] = 14;
|
130 |
+
$op['font_char_width'] = 15;
|
131 |
+
}
|
132 |
+
}
|
133 |
+
|
134 |
+
$fg_color_array = preg_grep( '%^fg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $options );
|
135 |
+
if ( $fg_color = array_shift( $fg_color_array ) ) {
|
136 |
+
preg_match( '%^fg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $fg_color, $fc_matches );
|
137 |
+
if ( 3 == strlen( $fc_matches[1] ) ) {
|
138 |
+
$r = substr( $fc_matches[1], 0, 1 );
|
139 |
+
$g = substr( $fc_matches[1], 1, 1 );
|
140 |
+
$b = substr( $fc_matches[1], 2, 1 );
|
141 |
+
$op['fg'] = array( hexdec( $r . $r ), hexdec( $g . $g ), hexdec( $b . $b ) );
|
142 |
+
} elseif ( 6 == strlen( $fc_matches[1] ) ) {
|
143 |
+
$r = substr( $fc_matches[1], 0, 2 );
|
144 |
+
$g = substr( $fc_matches[1], 2, 2 );
|
145 |
+
$b = substr( $fc_matches[1], 4, 2 );
|
146 |
+
$op['fg'] = array( hexdec( $r ), hexdec( $g ), hexdec( $b ) );
|
147 |
+
}
|
148 |
+
}
|
149 |
+
|
150 |
+
$bg_color_array = preg_grep( '%^bg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $options );
|
151 |
+
if ( $bg_color = array_shift( $bg_color_array ) ) {
|
152 |
+
preg_match( '%^bg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $bg_color, $bc_matches );
|
153 |
+
if ( 3 == strlen( $bc_matches[1] ) ) {
|
154 |
+
$r = substr( $bc_matches[1], 0, 1 );
|
155 |
+
$g = substr( $bc_matches[1], 1, 1 );
|
156 |
+
$b = substr( $bc_matches[1], 2, 1 );
|
157 |
+
$op['bg'] = array( hexdec( $r . $r ), hexdec( $g . $g ), hexdec( $b . $b ) );
|
158 |
+
} elseif ( 6 == strlen( $bc_matches[1] ) ) {
|
159 |
+
$r = substr( $bc_matches[1], 0, 2 );
|
160 |
+
$g = substr( $bc_matches[1], 2, 2 );
|
161 |
+
$b = substr( $bc_matches[1], 4, 2 );
|
162 |
+
$op['bg'] = array( hexdec( $r ), hexdec( $g ), hexdec( $b ) );
|
163 |
+
}
|
164 |
+
}
|
165 |
+
|
166 |
+
return $op;
|
167 |
+
}
|
168 |
+
|
169 |
+
function wpcf7_refill_captcha( $contact_form ) {
|
170 |
+
$fes = $contact_form->form_elements( false );
|
171 |
+
$refill = array();
|
172 |
+
|
173 |
+
foreach ( $fes as $fe ) {
|
174 |
+
$type = $fe['type'];
|
175 |
+
$name = $fe['name'];
|
176 |
+
$options = $fe['options'];
|
177 |
+
|
178 |
+
if ( 'captchac' == $type ) {
|
179 |
+
$op = wpcf7_captchac_options( $options );
|
180 |
+
if ( $filename = wpcf7_generate_captcha( $op ) ) {
|
181 |
+
$captcha_url = trailingslashit( wpcf7_captcha_tmp_url() ) . $filename;
|
182 |
+
$refill[$name] = $captcha_url;
|
183 |
+
}
|
184 |
+
}
|
185 |
+
}
|
186 |
+
|
187 |
+
return $refill;
|
188 |
+
}
|
189 |
+
|
190 |
+
?>
|
includes/classes.php
ADDED
@@ -0,0 +1,592 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class WPCF7_ContactForm {
|
4 |
+
|
5 |
+
var $id;
|
6 |
+
|
7 |
+
var $title;
|
8 |
+
var $form;
|
9 |
+
var $mail;
|
10 |
+
var $mail_2;
|
11 |
+
var $messages;
|
12 |
+
var $additional_settings;
|
13 |
+
var $options;
|
14 |
+
|
15 |
+
var $unit_tag;
|
16 |
+
|
17 |
+
var $responses_count = 0;
|
18 |
+
|
19 |
+
// Return true if this form is the same one as currently POSTed.
|
20 |
+
function is_posted() {
|
21 |
+
if ( ! isset( $_POST['_wpcf7_unit_tag'] ) || empty( $_POST['_wpcf7_unit_tag'] ) )
|
22 |
+
return false;
|
23 |
+
|
24 |
+
if ( $this->unit_tag == $_POST['_wpcf7_unit_tag'] )
|
25 |
+
return true;
|
26 |
+
|
27 |
+
return false;
|
28 |
+
}
|
29 |
+
|
30 |
+
/* Generating Form HTML */
|
31 |
+
|
32 |
+
function form_html() {
|
33 |
+
$form = '<div class="wpcf7" id="' . $this->unit_tag . '">';
|
34 |
+
|
35 |
+
$url = parse_url( $_SERVER['REQUEST_URI'] );
|
36 |
+
$url = $url['path'] . ( empty( $url['query'] ) ? '' : '?' . $url['query'] ) . '#' . $this->unit_tag;
|
37 |
+
|
38 |
+
$form_elements = $this->form_elements( false );
|
39 |
+
$multipart = false;
|
40 |
+
|
41 |
+
foreach ( $form_elements as $form_element ) {
|
42 |
+
if ( preg_match( '/^file[*]?$/', $form_element['type'] ) ) {
|
43 |
+
$multipart = true;
|
44 |
+
break;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
$enctype = $multipart ? ' enctype="multipart/form-data"' : '';
|
49 |
+
|
50 |
+
$form .= '<form action="' . $url . '" method="post" class="wpcf7-form"' . $enctype . '>';
|
51 |
+
$form .= '<div style="display: none;">';
|
52 |
+
$form .= '<input type="hidden" name="_wpcf7" value="' . $this->id . '" />';
|
53 |
+
$form .= '<input type="hidden" name="_wpcf7_version" value="' . WPCF7_VERSION . '" />';
|
54 |
+
$form .= '<input type="hidden" name="_wpcf7_unit_tag" value="' . $this->unit_tag . '" />';
|
55 |
+
$form .= '</div>';
|
56 |
+
$form .= $this->form_elements();
|
57 |
+
|
58 |
+
if ( ! $this->responses_count )
|
59 |
+
$form .= $this->form_response_output();
|
60 |
+
|
61 |
+
$form .= '</form>';
|
62 |
+
|
63 |
+
$form .= '</div>';
|
64 |
+
|
65 |
+
if ( WPCF7_AUTOP )
|
66 |
+
$form = wpcf7_wpautop_substitute( $form );
|
67 |
+
|
68 |
+
return $form;
|
69 |
+
}
|
70 |
+
|
71 |
+
function form_response_output() {
|
72 |
+
$class = 'wpcf7-response-output';
|
73 |
+
|
74 |
+
if ( $this->is_posted() ) { // Post response output for non-AJAX
|
75 |
+
if ( isset( $_POST['_wpcf7_mail_sent'] ) && $_POST['_wpcf7_mail_sent']['id'] == $this->id ) {
|
76 |
+
if ( $_POST['_wpcf7_mail_sent']['ok'] ) {
|
77 |
+
$class .= ' wpcf7-mail-sent-ok';
|
78 |
+
$content = $_POST['_wpcf7_mail_sent']['message'];
|
79 |
+
} else {
|
80 |
+
$class .= ' wpcf7-mail-sent-ng';
|
81 |
+
if ( $_POST['_wpcf7_mail_sent']['spam'] )
|
82 |
+
$class .= ' wpcf7-spam-blocked';
|
83 |
+
$content = $_POST['_wpcf7_mail_sent']['message'];
|
84 |
+
}
|
85 |
+
} elseif ( isset( $_POST['_wpcf7_validation_errors'] ) && $_POST['_wpcf7_validation_errors']['id'] == $this->id ) {
|
86 |
+
$class .= ' wpcf7-validation-errors';
|
87 |
+
$content = $this->message( 'validation_error' );
|
88 |
+
}
|
89 |
+
} else {
|
90 |
+
$class .= ' wpcf7-display-none';
|
91 |
+
}
|
92 |
+
|
93 |
+
$class = ' class="' . $class . '"';
|
94 |
+
|
95 |
+
return '<div' . $class . '>' . $content . '</div>';
|
96 |
+
}
|
97 |
+
|
98 |
+
/* Form Elements */
|
99 |
+
|
100 |
+
function form_elements( $replace = true ) {
|
101 |
+
$form = $this->form;
|
102 |
+
|
103 |
+
$types = 'text[*]?|email[*]?|textarea[*]?|select[*]?|checkbox[*]?|radio|acceptance|captchac|captchar|file[*]?|quiz';
|
104 |
+
$regex = '%\[\s*(' . $types . ')(\s+[a-zA-Z][0-9a-zA-Z:._-]*)([-0-9a-zA-Z:#_/|\s]*)?((?:\s*(?:"[^"]*"|\'[^\']*\'))*)?\s*\]%';
|
105 |
+
$submit_regex = '%\[\s*submit(\s[-0-9a-zA-Z:#_/\s]*)?(\s+(?:"[^"]*"|\'[^\']*\'))?\s*\]%';
|
106 |
+
$response_regex = '%\[\s*response\s*\]%';
|
107 |
+
if ( $replace ) {
|
108 |
+
$form = preg_replace_callback( $regex, array( &$this, 'form_element_replace_callback' ), $form );
|
109 |
+
// Submit button
|
110 |
+
$form = preg_replace_callback( $submit_regex, array( &$this, 'submit_replace_callback' ), $form );
|
111 |
+
// Response output
|
112 |
+
$form = preg_replace_callback( $response_regex, array( &$this, 'response_replace_callback' ), $form );
|
113 |
+
return $form;
|
114 |
+
} else {
|
115 |
+
$results = array();
|
116 |
+
preg_match_all( $regex, $form, $matches, PREG_SET_ORDER );
|
117 |
+
foreach ( $matches as $match ) {
|
118 |
+
$results[] = (array) $this->form_element_parse( $match );
|
119 |
+
}
|
120 |
+
return $results;
|
121 |
+
}
|
122 |
+
}
|
123 |
+
|
124 |
+
function form_element_replace_callback( $matches ) {
|
125 |
+
extract( (array) $this->form_element_parse( $matches ) ); // $type, $name, $options, $values, $raw_values
|
126 |
+
|
127 |
+
if ( $this->is_posted() ) {
|
128 |
+
$validation_error = $_POST['_wpcf7_validation_errors']['messages'][$name];
|
129 |
+
$validation_error = $validation_error ? '<span class="wpcf7-not-valid-tip-no-ajax">' . esc_html( $validation_error ) . '</span>' : '';
|
130 |
+
} else {
|
131 |
+
$validation_error = '';
|
132 |
+
}
|
133 |
+
|
134 |
+
$atts = '';
|
135 |
+
$options = (array) $options;
|
136 |
+
|
137 |
+
$id_array = preg_grep( '%^id:[-0-9a-zA-Z_]+$%', $options );
|
138 |
+
if ( $id = array_shift( $id_array ) ) {
|
139 |
+
preg_match( '%^id:([-0-9a-zA-Z_]+)$%', $id, $id_matches );
|
140 |
+
if ( $id = $id_matches[1] )
|
141 |
+
$atts .= ' id="' . $id . '"';
|
142 |
+
}
|
143 |
+
|
144 |
+
$class_att = "";
|
145 |
+
$class_array = preg_grep( '%^class:[-0-9a-zA-Z_]+$%', $options );
|
146 |
+
foreach ( $class_array as $class ) {
|
147 |
+
preg_match( '%^class:([-0-9a-zA-Z_]+)$%', $class, $class_matches );
|
148 |
+
if ( $class = $class_matches[1] )
|
149 |
+
$class_att .= ' ' . $class;
|
150 |
+
}
|
151 |
+
|
152 |
+
if ( preg_match( '/^email[*]?$/', $type ) )
|
153 |
+
$class_att .= ' wpcf7-validates-as-email';
|
154 |
+
if ( preg_match( '/[*]$/', $type ) )
|
155 |
+
$class_att .= ' wpcf7-validates-as-required';
|
156 |
+
|
157 |
+
if ( preg_match( '/^checkbox[*]?$/', $type ) )
|
158 |
+
$class_att .= ' wpcf7-checkbox';
|
159 |
+
|
160 |
+
if ( 'radio' == $type )
|
161 |
+
$class_att .= ' wpcf7-radio';
|
162 |
+
|
163 |
+
if ( preg_match( '/^captchac$/', $type ) )
|
164 |
+
$class_att .= ' wpcf7-captcha-' . $name;
|
165 |
+
|
166 |
+
if ( 'acceptance' == $type ) {
|
167 |
+
$class_att .= ' wpcf7-acceptance';
|
168 |
+
if ( preg_grep( '%^invert$%', $options ) )
|
169 |
+
$class_att .= ' wpcf7-invert';
|
170 |
+
}
|
171 |
+
|
172 |
+
if ( $class_att )
|
173 |
+
$atts .= ' class="' . trim( $class_att ) . '"';
|
174 |
+
|
175 |
+
// Value.
|
176 |
+
if ( $this->is_posted() ) {
|
177 |
+
if ( isset( $_POST['_wpcf7_mail_sent'] ) && $_POST['_wpcf7_mail_sent']['ok'] )
|
178 |
+
$value = '';
|
179 |
+
elseif ( 'captchar' == $type )
|
180 |
+
$value = '';
|
181 |
+
else
|
182 |
+
$value = $_POST[$name];
|
183 |
+
} else {
|
184 |
+
$value = $values[0];
|
185 |
+
}
|
186 |
+
|
187 |
+
// Default selected/checked for select/checkbox/radio
|
188 |
+
if ( preg_match( '/^(?:select|checkbox|radio)[*]?$/', $type ) ) {
|
189 |
+
$scr_defaults = array_values( preg_grep( '/^default:/', $options ) );
|
190 |
+
preg_match( '/^default:([0-9_]+)$/', $scr_defaults[0], $scr_default_matches );
|
191 |
+
$scr_default = explode( '_', $scr_default_matches[1] );
|
192 |
+
}
|
193 |
+
|
194 |
+
switch ( $type ) {
|
195 |
+
case 'text':
|
196 |
+
case 'text*':
|
197 |
+
case 'email':
|
198 |
+
case 'email*':
|
199 |
+
case 'captchar':
|
200 |
+
if ( is_array( $options ) ) {
|
201 |
+
$size_maxlength_array = preg_grep( '%^[0-9]*[/x][0-9]*$%', $options );
|
202 |
+
if ( $size_maxlength = array_shift( $size_maxlength_array ) ) {
|
203 |
+
preg_match( '%^([0-9]*)[/x]([0-9]*)$%', $size_maxlength, $sm_matches );
|
204 |
+
if ( $size = (int) $sm_matches[1] )
|
205 |
+
$atts .= ' size="' . $size . '"';
|
206 |
+
else
|
207 |
+
$atts .= ' size="40"';
|
208 |
+
if ( $maxlength = (int) $sm_matches[2] )
|
209 |
+
$atts .= ' maxlength="' . $maxlength . '"';
|
210 |
+
} else {
|
211 |
+
$atts .= ' size="40"';
|
212 |
+
}
|
213 |
+
}
|
214 |
+
$html = '<input type="text" name="' . $name . '" value="' . esc_attr( $value ) . '"' . $atts . ' />';
|
215 |
+
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
216 |
+
return $html;
|
217 |
+
break;
|
218 |
+
case 'textarea':
|
219 |
+
case 'textarea*':
|
220 |
+
if ( is_array( $options ) ) {
|
221 |
+
$cols_rows_array = preg_grep( '%^[0-9]*[x/][0-9]*$%', $options );
|
222 |
+
if ( $cols_rows = array_shift( $cols_rows_array ) ) {
|
223 |
+
preg_match( '%^([0-9]*)[x/]([0-9]*)$%', $cols_rows, $cr_matches );
|
224 |
+
if ( $cols = (int) $cr_matches[1] )
|
225 |
+
$atts .= ' cols="' . $cols . '"';
|
226 |
+
else
|
227 |
+
$atts .= ' cols="40"';
|
228 |
+
if ( $rows = (int) $cr_matches[2] )
|
229 |
+
$atts .= ' rows="' . $rows . '"';
|
230 |
+
else
|
231 |
+
$atts .= ' rows="10"';
|
232 |
+
} else {
|
233 |
+
$atts .= ' cols="40" rows="10"';
|
234 |
+
}
|
235 |
+
}
|
236 |
+
$html = '<textarea name="' . $name . '"' . $atts . '>' . esc_html( $value ) . '</textarea>';
|
237 |
+
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
238 |
+
return $html;
|
239 |
+
break;
|
240 |
+
case 'select':
|
241 |
+
case 'select*':
|
242 |
+
$multiple = ( preg_grep( '%^multiple$%', $options ) ) ? true : false;
|
243 |
+
$include_blank = preg_grep( '%^include_blank$%', $options );
|
244 |
+
|
245 |
+
if ( $empty_select = empty( $values ) || $include_blank )
|
246 |
+
array_unshift( $values, '---' );
|
247 |
+
|
248 |
+
$html = '';
|
249 |
+
foreach ( $values as $key => $value ) {
|
250 |
+
$selected = '';
|
251 |
+
if ( ! $empty_select && in_array( $key + 1, (array) $scr_default ) )
|
252 |
+
$selected = ' selected="selected"';
|
253 |
+
if ( $this->is_posted() && (
|
254 |
+
$multiple && in_array( $value, (array) $_POST[$name] ) ||
|
255 |
+
! $multiple && $_POST[$name] == $value ) )
|
256 |
+
$selected = ' selected="selected"';
|
257 |
+
$html .= '<option value="' . esc_attr( $value ) . '"' . $selected . '>' . esc_html( $value ) . '</option>';
|
258 |
+
}
|
259 |
+
|
260 |
+
if ( $multiple )
|
261 |
+
$atts .= ' multiple="multiple"';
|
262 |
+
|
263 |
+
$html = '<select name="' . $name . ( $multiple ? '[]' : '' ) . '"' . $atts . '>' . $html . '</select>';
|
264 |
+
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
265 |
+
return $html;
|
266 |
+
break;
|
267 |
+
case 'checkbox':
|
268 |
+
case 'checkbox*':
|
269 |
+
case 'radio':
|
270 |
+
$multiple = ( preg_match( '/^checkbox[*]?$/', $type ) && ! preg_grep( '%^exclusive$%', $options ) ) ? true : false;
|
271 |
+
$html = '';
|
272 |
+
|
273 |
+
if ( preg_match( '/^checkbox[*]?$/', $type ) && ! $multiple )
|
274 |
+
$onclick = ' onclick="wpcf7ExclusiveCheckbox(this);"';
|
275 |
+
|
276 |
+
$input_type = rtrim( $type, '*' );
|
277 |
+
|
278 |
+
foreach ( $values as $key => $value ) {
|
279 |
+
$checked = '';
|
280 |
+
if ( in_array( $key + 1, (array) $scr_default ) )
|
281 |
+
$checked = ' checked="checked"';
|
282 |
+
if ( $this->is_posted() && (
|
283 |
+
$multiple && in_array( $value, (array) $_POST[$name] ) ||
|
284 |
+
! $multiple && $_POST[$name] == $value ) )
|
285 |
+
$checked = ' checked="checked"';
|
286 |
+
if ( preg_grep( '%^label[_-]?first$%', $options ) ) { // put label first, input last
|
287 |
+
$item = '<span class="wpcf7-list-item-label">' . $value . '</span> ';
|
288 |
+
$item .= '<input type="' . $input_type . '" name="' . $name . ( $multiple ? '[]' : '' ) . '" value="' . esc_attr( $value ) . '"' . $checked . $onclick . ' />';
|
289 |
+
} else {
|
290 |
+
$item = '<input type="' . $input_type . '" name="' . $name . ( $multiple ? '[]' : '' ) . '" value="' . esc_attr( $value ) . '"' . $checked . $onclick . ' />';
|
291 |
+
$item .= ' <span class="wpcf7-list-item-label">' . $value . '</span>';
|
292 |
+
}
|
293 |
+
$item = '<span class="wpcf7-list-item">' . $item . '</span>';
|
294 |
+
$html .= $item;
|
295 |
+
}
|
296 |
+
|
297 |
+
$html = '<span' . $atts . '>' . $html . '</span>';
|
298 |
+
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
299 |
+
return $html;
|
300 |
+
break;
|
301 |
+
case 'quiz':
|
302 |
+
if ( count( $raw_values ) == 0 && count( $values ) == 0 ) { // default quiz
|
303 |
+
$raw_values[] = '1+1=?|2';
|
304 |
+
$values[] = '1+1=?';
|
305 |
+
}
|
306 |
+
|
307 |
+
$pipes = wpcf7_get_pipes( $raw_values );
|
308 |
+
|
309 |
+
if ( count( $values ) == 0 ) {
|
310 |
+
break;
|
311 |
+
} elseif ( count( $values ) == 1 ) {
|
312 |
+
$value = $values[0];
|
313 |
+
} else {
|
314 |
+
$value = $values[array_rand( $values )];
|
315 |
+
}
|
316 |
+
|
317 |
+
$answer = wpcf7_pipe( $pipes, $value );
|
318 |
+
$answer = wpcf7_canonicalize( $answer );
|
319 |
+
|
320 |
+
if ( is_array( $options ) ) {
|
321 |
+
$size_maxlength_array = preg_grep( '%^[0-9]*[/x][0-9]*$%', $options );
|
322 |
+
if ( $size_maxlength = array_shift( $size_maxlength_array ) ) {
|
323 |
+
preg_match( '%^([0-9]*)[/x]([0-9]*)$%', $size_maxlength, $sm_matches );
|
324 |
+
if ( $size = (int) $sm_matches[1] )
|
325 |
+
$atts .= ' size="' . $size . '"';
|
326 |
+
else
|
327 |
+
$atts .= ' size="40"';
|
328 |
+
if ( $maxlength = (int) $sm_matches[2] )
|
329 |
+
$atts .= ' maxlength="' . $maxlength . '"';
|
330 |
+
} else {
|
331 |
+
$atts .= ' size="40"';
|
332 |
+
}
|
333 |
+
}
|
334 |
+
|
335 |
+
$html = '<span class="wpcf7-quiz-label">' . esc_html( $value ) . '</span> ';
|
336 |
+
$html .= '<input type="text" name="' . $name . '"' . $atts . ' />';
|
337 |
+
$html .= '<input type="hidden" name="_wpcf7_quiz_answer_' . $name . '" value="' . wp_hash( $answer, 'wpcf7_quiz' ) . '" />';
|
338 |
+
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
339 |
+
return $html;
|
340 |
+
break;
|
341 |
+
case 'acceptance':
|
342 |
+
$invert = (bool) preg_grep( '%^invert$%', $options );
|
343 |
+
$default = (bool) preg_grep( '%^default:on$%', $options );
|
344 |
+
|
345 |
+
$onclick = ' onclick="wpcf7ToggleSubmit(this.form);"';
|
346 |
+
$checked = $default ? ' checked="checked"' : '';
|
347 |
+
$html = '<input type="checkbox" name="' . $name . '" value="1"' . $atts . $onclick . $checked . ' />';
|
348 |
+
return $html;
|
349 |
+
break;
|
350 |
+
case 'captchac':
|
351 |
+
if ( ! class_exists( 'ReallySimpleCaptcha' ) ) {
|
352 |
+
return '<em>' . __( 'To use CAPTCHA, you need <a href="http://wordpress.org/extend/plugins/really-simple-captcha/">Really Simple CAPTCHA</a> plugin installed.', 'wpcf7' ) . '</em>';
|
353 |
+
break;
|
354 |
+
}
|
355 |
+
|
356 |
+
$op = array();
|
357 |
+
// Default
|
358 |
+
$op['img_size'] = array( 72, 24 );
|
359 |
+
$op['base'] = array( 6, 18 );
|
360 |
+
$op['font_size'] = 14;
|
361 |
+
$op['font_char_width'] = 15;
|
362 |
+
|
363 |
+
$op = array_merge( $op, wpcf7_captchac_options( $options ) );
|
364 |
+
|
365 |
+
if ( ! $filename = wpcf7_generate_captcha( $op ) ) {
|
366 |
+
return '';
|
367 |
+
break;
|
368 |
+
}
|
369 |
+
if ( is_array( $op['img_size'] ) )
|
370 |
+
$atts .= ' width="' . $op['img_size'][0] . '" height="' . $op['img_size'][1] . '"';
|
371 |
+
$captcha_url = trailingslashit( wpcf7_captcha_tmp_url() ) . $filename;
|
372 |
+
$html = '<img alt="captcha" src="' . $captcha_url . '"' . $atts . ' />';
|
373 |
+
$ref = substr( $filename, 0, strrpos( $filename, '.' ) );
|
374 |
+
$html = '<input type="hidden" name="_wpcf7_captcha_challenge_' . $name . '" value="' . $ref . '" />' . $html;
|
375 |
+
return $html;
|
376 |
+
break;
|
377 |
+
case 'file':
|
378 |
+
case 'file*':
|
379 |
+
$html = '<input type="file" name="' . $name . '"' . $atts . ' value="1" />';
|
380 |
+
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
381 |
+
return $html;
|
382 |
+
break;
|
383 |
+
}
|
384 |
+
}
|
385 |
+
|
386 |
+
function submit_replace_callback( $matches ) {
|
387 |
+
$atts = '';
|
388 |
+
$options = preg_split( '/[\s]+/', trim( $matches[1] ) );
|
389 |
+
|
390 |
+
$id_array = preg_grep( '%^id:[-0-9a-zA-Z_]+$%', $options );
|
391 |
+
if ( $id = array_shift( $id_array ) ) {
|
392 |
+
preg_match( '%^id:([-0-9a-zA-Z_]+)$%', $id, $id_matches );
|
393 |
+
if ( $id = $id_matches[1] )
|
394 |
+
$atts .= ' id="' . $id . '"';
|
395 |
+
}
|
396 |
+
|
397 |
+
$class_att = '';
|
398 |
+
$class_array = preg_grep( '%^class:[-0-9a-zA-Z_]+$%', $options );
|
399 |
+
foreach ( $class_array as $class ) {
|
400 |
+
preg_match( '%^class:([-0-9a-zA-Z_]+)$%', $class, $class_matches );
|
401 |
+
if ( $class = $class_matches[1] )
|
402 |
+
$class_att .= ' ' . $class;
|
403 |
+
}
|
404 |
+
|
405 |
+
if ( $class_att )
|
406 |
+
$atts .= ' class="' . trim( $class_att ) . '"';
|
407 |
+
|
408 |
+
if ( $matches[2] )
|
409 |
+
$value = wpcf7_strip_quote( $matches[2] );
|
410 |
+
if ( empty( $value ) )
|
411 |
+
$value = __( 'Send', 'wpcf7' );
|
412 |
+
$ajax_loader_image_url = wpcf7_plugin_url( 'images/ajax-loader.gif' );
|
413 |
+
|
414 |
+
$html = '<input type="submit" value="' . esc_attr( $value ) . '"' . $atts . ' />';
|
415 |
+
$html .= ' <img class="ajax-loader" style="visibility: hidden;" alt="ajax loader" src="' . $ajax_loader_image_url . '" />';
|
416 |
+
return $html;
|
417 |
+
}
|
418 |
+
|
419 |
+
function response_replace_callback( $matches ) {
|
420 |
+
$this->responses_count += 1;
|
421 |
+
return $this->form_response_output();
|
422 |
+
}
|
423 |
+
|
424 |
+
function form_element_parse( $element ) {
|
425 |
+
$type = trim( $element[1] );
|
426 |
+
$name = trim( $element[2] );
|
427 |
+
$options = preg_split( '/[\s]+/', trim( $element[3] ) );
|
428 |
+
|
429 |
+
preg_match_all( '/"[^"]*"|\'[^\']*\'/', $element[4], $matches );
|
430 |
+
$raw_values = wpcf7_strip_quote_deep( $matches[0] );
|
431 |
+
|
432 |
+
if ( WPCF7_USE_PIPE && preg_match( '/^(select[*]?|checkbox[*]?|radio)$/', $type ) || 'quiz' == $type ) {
|
433 |
+
$pipes = wpcf7_get_pipes( $raw_values );
|
434 |
+
$values = wpcf7_get_pipe_ins( $pipes );
|
435 |
+
} else {
|
436 |
+
$values =& $raw_values;
|
437 |
+
}
|
438 |
+
|
439 |
+
return compact( 'type', 'name', 'options', 'values', 'raw_values' );
|
440 |
+
}
|
441 |
+
|
442 |
+
/* Validate */
|
443 |
+
|
444 |
+
function validate() {
|
445 |
+
$fes = $this->form_elements( false );
|
446 |
+
$valid = true;
|
447 |
+
$reason = array();
|
448 |
+
|
449 |
+
foreach ( $fes as $fe ) {
|
450 |
+
$type = $fe['type'];
|
451 |
+
$name = $fe['name'];
|
452 |
+
$values = $fe['values'];
|
453 |
+
$raw_values = $fe['raw_values'];
|
454 |
+
|
455 |
+
// Before validation corrections
|
456 |
+
if ( preg_match( '/^(?:text|email|captchar|textarea)[*]?$/', $type ) )
|
457 |
+
$_POST[$name] = (string) $_POST[$name];
|
458 |
+
|
459 |
+
if ( preg_match( '/^(?:text|email)[*]?$/', $type ) )
|
460 |
+
$_POST[$name] = trim( strtr( $_POST[$name], "\n", " " ) );
|
461 |
+
|
462 |
+
if ( preg_match( '/^(?:select|checkbox|radio)[*]?$/', $type ) ) {
|
463 |
+
if ( is_array( $_POST[$name] ) ) {
|
464 |
+
foreach ( $_POST[$name] as $key => $value ) {
|
465 |
+
$value = stripslashes( $value );
|
466 |
+
if ( ! in_array( $value, (array) $values ) ) // Not in given choices.
|
467 |
+
unset( $_POST[$name][$key] );
|
468 |
+
}
|
469 |
+
} else {
|
470 |
+
$value = stripslashes( $_POST[$name] );
|
471 |
+
if ( ! in_array( $value, (array) $values ) ) // Not in given choices.
|
472 |
+
$_POST[$name] = '';
|
473 |
+
}
|
474 |
+
}
|
475 |
+
|
476 |
+
if ( 'acceptance' == $type )
|
477 |
+
$_POST[$name] = $_POST[$name] ? 1 : 0;
|
478 |
+
|
479 |
+
// Required item (*)
|
480 |
+
if ( preg_match( '/^(?:text|textarea)[*]$/', $type ) ) {
|
481 |
+
if ( ! isset( $_POST[$name] ) || '' == $_POST[$name] ) {
|
482 |
+
$valid = false;
|
483 |
+
$reason[$name] = $this->message( 'invalid_required' );
|
484 |
+
}
|
485 |
+
}
|
486 |
+
|
487 |
+
if ( 'checkbox*' == $type ) {
|
488 |
+
if ( empty( $_POST[$name] ) ) {
|
489 |
+
$valid = false;
|
490 |
+
$reason[$name] = $this->message( 'invalid_required' );
|
491 |
+
}
|
492 |
+
}
|
493 |
+
|
494 |
+
if ( 'select*' == $type ) {
|
495 |
+
if ( empty( $_POST[$name] ) ||
|
496 |
+
! is_array( $_POST[$name] ) && '---' == $_POST[$name] ||
|
497 |
+
is_array( $_POST[$name] ) && 1 == count( $_POST[$name] ) && '---' == $_POST[$name][0] ) {
|
498 |
+
$valid = false;
|
499 |
+
$reason[$name] = $this->message( 'invalid_required' );
|
500 |
+
}
|
501 |
+
}
|
502 |
+
|
503 |
+
if ( preg_match( '/^email[*]?$/', $type ) ) {
|
504 |
+
if ( '*' == substr( $type, -1 ) && ( ! isset( $_POST[$name] ) || '' == $_POST[$name] ) ) {
|
505 |
+
$valid = false;
|
506 |
+
$reason[$name] = $this->message( 'invalid_required' );
|
507 |
+
} elseif ( isset( $_POST[$name] ) && '' != $_POST[$name] && ! is_email( $_POST[$name] ) ) {
|
508 |
+
$valid = false;
|
509 |
+
$reason[$name] = $this->message( 'invalid_email' );
|
510 |
+
}
|
511 |
+
}
|
512 |
+
|
513 |
+
if ( preg_match( '/^captchar$/', $type ) ) {
|
514 |
+
$captchac = '_wpcf7_captcha_challenge_' . $name;
|
515 |
+
if ( ! wpcf7_check_captcha( $_POST[$captchac], $_POST[$name] ) ) {
|
516 |
+
$valid = false;
|
517 |
+
$reason[$name] = $this->message( 'captcha_not_match' );
|
518 |
+
}
|
519 |
+
wpcf7_remove_captcha( $_POST[$captchac] );
|
520 |
+
}
|
521 |
+
|
522 |
+
if ( 'quiz' == $type ) {
|
523 |
+
$answer = wpcf7_canonicalize( $_POST[$name] );
|
524 |
+
$answer_hash = wp_hash( $answer, 'wpcf7_quiz' );
|
525 |
+
$expected_hash = $_POST['_wpcf7_quiz_answer_' . $name];
|
526 |
+
if ( $answer_hash != $expected_hash ) {
|
527 |
+
$valid = false;
|
528 |
+
$reason[$name] = $this->message( 'quiz_answer_not_correct' );
|
529 |
+
}
|
530 |
+
}
|
531 |
+
}
|
532 |
+
return compact( 'valid', 'reason' );
|
533 |
+
}
|
534 |
+
|
535 |
+
/* Message */
|
536 |
+
|
537 |
+
function message( $status ) {
|
538 |
+
$messages = $this->messages;
|
539 |
+
|
540 |
+
if ( ! is_array( $messages ) || ! isset( $messages[$status] ) )
|
541 |
+
return wpcf7_default_message( $status );
|
542 |
+
|
543 |
+
return $messages[$status];
|
544 |
+
}
|
545 |
+
|
546 |
+
/* Additional settings */
|
547 |
+
|
548 |
+
function additional_setting( $name, $max = 1 ) {
|
549 |
+
$tmp_settings = (array) explode( "\n", $this->additional_settings );
|
550 |
+
|
551 |
+
$count = 0;
|
552 |
+
$values = array();
|
553 |
+
|
554 |
+
foreach ( $tmp_settings as $setting ) {
|
555 |
+
if ( preg_match('/^([a-zA-Z0-9_]+)\s*:(.*)$/', $setting, $matches ) ) {
|
556 |
+
if ( $matches[1] != $name )
|
557 |
+
continue;
|
558 |
+
|
559 |
+
if ( ! $max || $count < (int) $max ) {
|
560 |
+
$values[] = trim( $matches[2] );
|
561 |
+
$count += 1;
|
562 |
+
}
|
563 |
+
}
|
564 |
+
}
|
565 |
+
|
566 |
+
return $values;
|
567 |
+
}
|
568 |
+
|
569 |
+
/* Upgrade */
|
570 |
+
|
571 |
+
function upgrade() {
|
572 |
+
if ( ! isset( $this->mail['recipient'] ) )
|
573 |
+
$this->mail['recipient'] = $this->options['recipient'];
|
574 |
+
|
575 |
+
|
576 |
+
if ( ! is_array( $this->messages ) )
|
577 |
+
$this->messages = array();
|
578 |
+
|
579 |
+
$messages = array(
|
580 |
+
'mail_sent_ok', 'mail_sent_ng', 'akismet_says_spam', 'validation_error', 'accept_terms',
|
581 |
+
'invalid_email', 'invalid_required', 'captcha_not_match', 'upload_failed', 'upload_file_type_invalid',
|
582 |
+
'upload_file_too_large', 'quiz_answer_not_correct' );
|
583 |
+
|
584 |
+
foreach ($messages as $message) {
|
585 |
+
if ( ! isset( $this->messages[$message] ) )
|
586 |
+
$this->messages[$message] = wpcf7_default_message( $message );
|
587 |
+
}
|
588 |
+
}
|
589 |
+
|
590 |
+
}
|
591 |
+
|
592 |
+
?>
|
includes/formatting.php
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wpcf7_wpautop_substitute( $pee, $br = 1 ) {
|
4 |
+
$pee = $pee . "\n"; // just to make things a little easier, pad the end
|
5 |
+
$pee = preg_replace( '|<br />\s*<br />|', "\n\n", $pee );
|
6 |
+
// Space things out a little
|
7 |
+
$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)';
|
8 |
+
$pee = preg_replace( '!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee );
|
9 |
+
$pee = preg_replace( '!(</' . $allblocks . '>)!', "$1\n\n", $pee );
|
10 |
+
$pee = str_replace( array( "\r\n", "\r" ), "\n", $pee ); // cross-platform newlines
|
11 |
+
if ( strpos( $pee, '<object' ) !== false ) {
|
12 |
+
$pee = preg_replace( '|\s*<param([^>]*)>\s*|', "<param$1>", $pee ); // no pee inside object/embed
|
13 |
+
$pee = preg_replace( '|\s*</embed>\s*|', '</embed>', $pee );
|
14 |
+
}
|
15 |
+
$pee = preg_replace( "/\n\n+/", "\n\n", $pee ); // take care of duplicates
|
16 |
+
// make paragraphs, including one at the end
|
17 |
+
$pees = preg_split( '/\n\s*\n/', $pee, -1, PREG_SPLIT_NO_EMPTY );
|
18 |
+
$pee = '';
|
19 |
+
foreach ( $pees as $tinkle )
|
20 |
+
$pee .= '<p>' . trim( $tinkle, "\n" ) . "</p>\n";
|
21 |
+
$pee = preg_replace( '|<p>\s*?</p>|', '', $pee ); // under certain strange conditions it could create a P of entirely whitespace
|
22 |
+
$pee = preg_replace( '!<p>([^<]+)\s*?(</(?:div|address|form)[^>]*>)!', "<p>$1</p>$2", $pee );
|
23 |
+
$pee = preg_replace( '|<p>|', "$1<p>", $pee );
|
24 |
+
$pee = preg_replace( '!<p>\s*(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee ); // don't pee all over a tag
|
25 |
+
$pee = preg_replace( "|<p>(<li.+?)</p>|", "$1", $pee ); // problem with nested lists
|
26 |
+
$pee = preg_replace( '|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee );
|
27 |
+
$pee = str_replace( '</blockquote></p>', '</p></blockquote>', $pee );
|
28 |
+
$pee = preg_replace( '!<p>\s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee );
|
29 |
+
$pee = preg_replace( '!(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee );
|
30 |
+
if ( $br ) {
|
31 |
+
$pee = preg_replace_callback( '/<(script|style).*?<\/\\1>/s', create_function( '$matches', 'return str_replace("\n", "<WPPreserveNewline />", $matches[0]);' ), $pee );
|
32 |
+
$pee = preg_replace( '|(?<!<br />)\s*\n|', "<br />\n", $pee ); // optionally make line breaks
|
33 |
+
$pee = str_replace( '<WPPreserveNewline />', "\n", $pee );
|
34 |
+
}
|
35 |
+
$pee = preg_replace( '!(</?' . $allblocks . '[^>]*>)\s*<br />!', "$1", $pee );
|
36 |
+
$pee = preg_replace( '!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $pee );
|
37 |
+
if ( strpos( $pee, '<pre' ) !== false )
|
38 |
+
$pee = preg_replace_callback( '!(<pre.*?>)(.*?)</pre>!is', 'clean_pre', $pee );
|
39 |
+
$pee = preg_replace( "|\n</p>$|", '</p>', $pee );
|
40 |
+
|
41 |
+
if ( function_exists( 'get_shortcode_regex' ) )
|
42 |
+
$pee = preg_replace( '/<p>\s*?(' . get_shortcode_regex() . ')\s*<\/p>/s', '$1', $pee ); // don't auto-p wrap shortcodes that stand alone
|
43 |
+
|
44 |
+
return $pee;
|
45 |
+
}
|
46 |
+
|
47 |
+
function wpcf7_strip_quote( $text ) {
|
48 |
+
$text = trim( $text );
|
49 |
+
if ( preg_match( '/^"(.*)"$/', $text, $matches ) )
|
50 |
+
$text = $matches[1];
|
51 |
+
elseif ( preg_match( "/^'(.*)'$/", $text, $matches ) )
|
52 |
+
$text = $matches[1];
|
53 |
+
return $text;
|
54 |
+
}
|
55 |
+
|
56 |
+
function wpcf7_strip_quote_deep( $arr ) {
|
57 |
+
if ( is_string( $arr ) )
|
58 |
+
return wpcf7_strip_quote( $arr );
|
59 |
+
|
60 |
+
if ( is_array( $arr ) ) {
|
61 |
+
$result = array();
|
62 |
+
foreach ( $arr as $key => $text ) {
|
63 |
+
$result[$key] = wpcf7_strip_quote( $text );
|
64 |
+
}
|
65 |
+
return $result;
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
function wpcf7_canonicalize( $text ) {
|
70 |
+
if ( function_exists( 'mb_convert_kana' ) && 'UTF-8' == get_option( 'blog_charset' ) )
|
71 |
+
$text = mb_convert_kana( $text, 'asKV', 'UTF-8' );
|
72 |
+
|
73 |
+
$text = strtolower( $text );
|
74 |
+
$text = trim( $text );
|
75 |
+
return $text;
|
76 |
+
}
|
77 |
+
|
78 |
+
?>
|
includes/functions.php
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wpcf7_default_message( $status ) {
|
4 |
+
switch ( $status ) {
|
5 |
+
case 'mail_sent_ok':
|
6 |
+
return __( 'Your message was sent successfully. Thanks.', 'wpcf7' );
|
7 |
+
case 'mail_sent_ng':
|
8 |
+
return __( 'Failed to send your message. Please try later or contact administrator by other way.', 'wpcf7' );
|
9 |
+
case 'akismet_says_spam':
|
10 |
+
return __( 'Failed to send your message. Please try later or contact administrator by other way.', 'wpcf7' );
|
11 |
+
case 'validation_error':
|
12 |
+
return __( 'Validation errors occurred. Please confirm the fields and submit it again.', 'wpcf7' );
|
13 |
+
case 'accept_terms':
|
14 |
+
return __( 'Please accept the terms to proceed.', 'wpcf7' );
|
15 |
+
case 'invalid_email':
|
16 |
+
return __( 'Email address seems invalid.', 'wpcf7' );
|
17 |
+
case 'invalid_required':
|
18 |
+
return __( 'Please fill the required field.', 'wpcf7' );
|
19 |
+
case 'captcha_not_match':
|
20 |
+
return __( 'Your entered code is incorrect.', 'wpcf7' );
|
21 |
+
case 'quiz_answer_not_correct':
|
22 |
+
return __( 'Your answer is not correct.', 'wpcf7' );
|
23 |
+
case 'upload_failed':
|
24 |
+
return __( 'Failed to upload file.', 'wpcf7' );
|
25 |
+
case 'upload_file_type_invalid':
|
26 |
+
return __( 'This file type is not allowed.', 'wpcf7' );
|
27 |
+
case 'upload_file_too_large':
|
28 |
+
return __( 'This file is too large.', 'wpcf7' );
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
function wpcf7_upload_dir( $type = false ) {
|
33 |
+
$siteurl = get_option( 'siteurl' );
|
34 |
+
$upload_path = trim( get_option( 'upload_path' ) );
|
35 |
+
if ( empty( $upload_path ) )
|
36 |
+
$dir = WP_CONTENT_DIR . '/uploads';
|
37 |
+
else
|
38 |
+
$dir = $upload_path;
|
39 |
+
|
40 |
+
$dir = path_join( ABSPATH, $dir );
|
41 |
+
|
42 |
+
if ( ! $url = get_option( 'upload_url_path' ) ) {
|
43 |
+
if ( empty( $upload_path ) || $upload_path == $dir )
|
44 |
+
$url = WP_CONTENT_URL . '/uploads';
|
45 |
+
else
|
46 |
+
$url = trailingslashit( $siteurl ) . $upload_path;
|
47 |
+
}
|
48 |
+
|
49 |
+
if ( defined( 'UPLOADS' ) ) {
|
50 |
+
$dir = ABSPATH . UPLOADS;
|
51 |
+
$url = trailingslashit( $siteurl ) . UPLOADS;
|
52 |
+
}
|
53 |
+
|
54 |
+
if ( 'dir' == $type )
|
55 |
+
return $dir;
|
56 |
+
if ( 'url' == $type )
|
57 |
+
return $url;
|
58 |
+
return array( 'dir' => $dir, 'url' => $url );
|
59 |
+
}
|
60 |
+
|
61 |
+
function wpcf7_captcha_tmp_dir() {
|
62 |
+
if ( defined( 'WPCF7_CAPTCHA_TMP_DIR' ) )
|
63 |
+
return WPCF7_CAPTCHA_TMP_DIR;
|
64 |
+
else
|
65 |
+
return wpcf7_upload_dir( 'dir' ) . '/wpcf7_captcha';
|
66 |
+
}
|
67 |
+
|
68 |
+
function wpcf7_captcha_tmp_url() {
|
69 |
+
if ( defined( 'WPCF7_CAPTCHA_TMP_URL' ) )
|
70 |
+
return WPCF7_CAPTCHA_TMP_URL;
|
71 |
+
else
|
72 |
+
return wpcf7_upload_dir( 'url' ) . '/wpcf7_captcha';
|
73 |
+
}
|
74 |
+
|
75 |
+
function wpcf7_upload_tmp_dir() {
|
76 |
+
if ( defined( 'WPCF7_UPLOADS_TMP_DIR' ) )
|
77 |
+
return WPCF7_UPLOADS_TMP_DIR;
|
78 |
+
else
|
79 |
+
return wpcf7_upload_dir( 'dir' ) . '/wpcf7_uploads';
|
80 |
+
}
|
81 |
+
|
82 |
+
?>
|
includes/mail.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wpcf7_mail( $contact_form, $files = array() ) {
|
4 |
+
global $wp_version, $wpcf7_posted_data;
|
5 |
+
|
6 |
+
$wpcf7_posted_data = $_POST;
|
7 |
+
|
8 |
+
if ( WPCF7_USE_PIPE ) {
|
9 |
+
wpcf7_pipe_all_posted( $contact_form );
|
10 |
+
}
|
11 |
+
|
12 |
+
if ( wpcf7_compose_and_send_mail( $contact_form->mail, $files ) ) {
|
13 |
+
if ( $contact_form->mail_2['active'] )
|
14 |
+
wpcf7_compose_and_send_mail( $contact_form->mail_2, $files );
|
15 |
+
|
16 |
+
return true;
|
17 |
+
}
|
18 |
+
|
19 |
+
return false;
|
20 |
+
}
|
21 |
+
|
22 |
+
function wpcf7_compose_and_send_mail( $mail_template, $attachments = array() ) {
|
23 |
+
$regex = '/\[\s*([a-zA-Z][0-9a-zA-Z:._-]*)\s*\]/';
|
24 |
+
$callback = 'wpcf7_mail_callback';
|
25 |
+
$mail_subject = preg_replace_callback( $regex, $callback, $mail_template['subject'] );
|
26 |
+
$mail_sender = preg_replace_callback( $regex, $callback, $mail_template['sender'] );
|
27 |
+
$mail_body = preg_replace_callback( $regex, $callback, $mail_template['body'] );
|
28 |
+
$mail_recipient = preg_replace_callback( $regex, $callback, $mail_template['recipient'] );
|
29 |
+
|
30 |
+
$mail_headers = "From: $mail_sender\n";
|
31 |
+
|
32 |
+
if ( $mail_template['use_html'] )
|
33 |
+
$mail_headers .= "Content-Type: text/html\n";
|
34 |
+
|
35 |
+
$mail_additional_headers = preg_replace_callback( $regex, $callback, $mail_template['additional_headers'] );
|
36 |
+
$mail_headers .= trim($mail_additional_headers) . "\n";
|
37 |
+
|
38 |
+
if ( $attachments ) {
|
39 |
+
$for_this_mail = array();
|
40 |
+
foreach ( $attachments as $name => $path ) {
|
41 |
+
if ( false === strpos( $mail_template['attachments'], "[${name}]" ) )
|
42 |
+
continue;
|
43 |
+
$for_this_mail[] = $path;
|
44 |
+
}
|
45 |
+
return @wp_mail( $mail_recipient, $mail_subject, $mail_body, $mail_headers, $for_this_mail );
|
46 |
+
} else {
|
47 |
+
return @wp_mail( $mail_recipient, $mail_subject, $mail_body, $mail_headers );
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
function wpcf7_mail_callback( $matches ) {
|
52 |
+
global $wpcf7_posted_data;
|
53 |
+
|
54 |
+
if ( isset( $wpcf7_posted_data[$matches[1]] ) ) {
|
55 |
+
$submitted = $wpcf7_posted_data[$matches[1]];
|
56 |
+
|
57 |
+
if ( is_array( $submitted ) )
|
58 |
+
$submitted = join( ', ', $submitted );
|
59 |
+
return stripslashes( $submitted );
|
60 |
+
} else {
|
61 |
+
|
62 |
+
// Special [wpcf7.remote_ip] tag
|
63 |
+
if ( 'wpcf7.remote_ip' == $matches[1] )
|
64 |
+
return preg_replace( '/[^0-9a-f.:, ]/', '', $_SERVER['REMOTE_ADDR'] );
|
65 |
+
|
66 |
+
return $matches[0];
|
67 |
+
}
|
68 |
+
}
|
69 |
+
|
70 |
+
?>
|
includes/pipe.php
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wpcf7_pipe( $pipes, $value ) {
|
4 |
+
if ( is_array( $value ) ) {
|
5 |
+
$results = array();
|
6 |
+
foreach ( $value as $k => $v ) {
|
7 |
+
$results[$k] = wpcf7_pipe( $pipes, $v );
|
8 |
+
}
|
9 |
+
return $results;
|
10 |
+
}
|
11 |
+
|
12 |
+
foreach ( $pipes as $p ) {
|
13 |
+
if ( $p[0] == $value )
|
14 |
+
return $p[1];
|
15 |
+
}
|
16 |
+
|
17 |
+
return $value;
|
18 |
+
}
|
19 |
+
|
20 |
+
function wpcf7_get_pipe_ins( $pipes ) {
|
21 |
+
$ins = array();
|
22 |
+
foreach ( $pipes as $pipe ) {
|
23 |
+
$in = $pipe[0];
|
24 |
+
if ( ! in_array( $in, $ins ) )
|
25 |
+
$ins[] = $in;
|
26 |
+
}
|
27 |
+
return $ins;
|
28 |
+
}
|
29 |
+
|
30 |
+
function wpcf7_get_pipes( $values ) {
|
31 |
+
$pipes = array();
|
32 |
+
|
33 |
+
foreach ( $values as $value ) {
|
34 |
+
$pipe_pos = strpos( $value, '|' );
|
35 |
+
if ( false === $pipe_pos ) {
|
36 |
+
$before = $after = $value;
|
37 |
+
} else {
|
38 |
+
$before = substr( $value, 0, $pipe_pos );
|
39 |
+
$after = substr( $value, $pipe_pos + 1 );
|
40 |
+
}
|
41 |
+
|
42 |
+
$pipes[] = array( $before, $after );
|
43 |
+
}
|
44 |
+
|
45 |
+
return $pipes;
|
46 |
+
}
|
47 |
+
|
48 |
+
function wpcf7_pipe_all_posted( $contact_form ) {
|
49 |
+
global $wpcf7_posted_data;
|
50 |
+
|
51 |
+
$all_pipes = array();
|
52 |
+
|
53 |
+
$fes = $contact_form->form_elements( false );
|
54 |
+
foreach ( $fes as $fe ) {
|
55 |
+
$type = $fe['type'];
|
56 |
+
$name = $fe['name'];
|
57 |
+
$raw_values = $fe['raw_values'];
|
58 |
+
|
59 |
+
if ( ! preg_match( '/^(select[*]?|checkbox[*]?|radio)$/', $type ) )
|
60 |
+
continue;
|
61 |
+
|
62 |
+
$pipes = wpcf7_get_pipes( $raw_values );
|
63 |
+
|
64 |
+
$all_pipes[$name] = array_merge( $pipes, (array) $all_pipes[$name] );
|
65 |
+
}
|
66 |
+
|
67 |
+
foreach ( $all_pipes as $name => $pipes ) {
|
68 |
+
if ( isset( $wpcf7_posted_data[$name] ) )
|
69 |
+
$wpcf7_posted_data[$name] = wpcf7_pipe( $pipes, $wpcf7_posted_data[$name] );
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
?>
|
includes/quiz.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wpcf7_refill_quiz( $contact_form ) {
|
4 |
+
$fes = $contact_form->form_elements( false );
|
5 |
+
$refill = array();
|
6 |
+
|
7 |
+
foreach ( $fes as $fe ) {
|
8 |
+
$type = $fe['type'];
|
9 |
+
$name = $fe['name'];
|
10 |
+
$values = $fe['values'];
|
11 |
+
$raw_values = $fe['raw_values'];
|
12 |
+
|
13 |
+
if ( 'quiz' != $type )
|
14 |
+
continue;
|
15 |
+
|
16 |
+
if ( count( $values ) == 0 )
|
17 |
+
continue;
|
18 |
+
|
19 |
+
if ( count( $values ) == 1 )
|
20 |
+
$question = $values[0];
|
21 |
+
else
|
22 |
+
$question = $values[array_rand( $values )];
|
23 |
+
|
24 |
+
$pipes = wpcf7_get_pipes( $raw_values );
|
25 |
+
$answer = wpcf7_pipe( $pipes, $question );
|
26 |
+
$answer = wpcf7_canonicalize( $answer );
|
27 |
+
|
28 |
+
$refill[$name] = array( $question, wp_hash( $answer, 'wpcf7_quiz' ) );
|
29 |
+
}
|
30 |
+
|
31 |
+
return $refill;
|
32 |
+
}
|
33 |
+
|
34 |
+
?>
|
includes/upload.php
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wpcf7_handle_uploads( $contact_form ) {
|
4 |
+
$files = array();
|
5 |
+
$valid = true;
|
6 |
+
$reason = array();
|
7 |
+
|
8 |
+
$uploads_dir = null;
|
9 |
+
|
10 |
+
$fes = $contact_form->form_elements( false );
|
11 |
+
|
12 |
+
foreach ( $fes as $fe ) {
|
13 |
+
if ( 'file' != $fe['type'] && 'file*' != $fe['type'] )
|
14 |
+
continue;
|
15 |
+
|
16 |
+
$name = $fe['name'];
|
17 |
+
$options = (array) $fe['options'];
|
18 |
+
|
19 |
+
$file = $_FILES[$name];
|
20 |
+
|
21 |
+
if ( empty( $file['tmp_name'] ) && 'file*' == $fe['type'] ) {
|
22 |
+
$valid = false;
|
23 |
+
$reason[$name] = $contact_form->message( 'invalid_required' );
|
24 |
+
continue;
|
25 |
+
}
|
26 |
+
|
27 |
+
if ( ! is_uploaded_file( $file['tmp_name'] ) )
|
28 |
+
continue;
|
29 |
+
|
30 |
+
/* File type validation */
|
31 |
+
|
32 |
+
$pattern = '';
|
33 |
+
if ( $allowed_types_options = preg_grep( '%^filetypes:%', $options ) ) {
|
34 |
+
foreach ( $allowed_types_options as $allowed_types_option ) {
|
35 |
+
if ( preg_match( '%^filetypes:(.+)$%', $allowed_types_option, $matches ) ) {
|
36 |
+
$file_types = explode( '|', $matches[1] );
|
37 |
+
foreach ( $file_types as $file_type ) {
|
38 |
+
$file_type = trim( $file_type, '.' );
|
39 |
+
$file_type = str_replace( array( '.', '+', '*', '?' ), array( '\.', '\+', '\*', '\?' ), $file_type );
|
40 |
+
$pattern .= '|' . $file_type;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
}
|
44 |
+
}
|
45 |
+
|
46 |
+
// Default file-type restriction
|
47 |
+
if ( '' == $pattern )
|
48 |
+
$pattern = 'jpg|jpeg|png|gif|pdf|doc|docx|ppt|pptx|odt|avi|ogg|m4a|mov|mp3|mp4|mpg|wav|wmv';
|
49 |
+
|
50 |
+
$pattern = trim( $pattern, '|' );
|
51 |
+
$pattern = '(' . $pattern . ')';
|
52 |
+
$pattern = '/\.' . $pattern . '$/i';
|
53 |
+
if ( ! preg_match( $pattern, $file['name'] ) ) {
|
54 |
+
$valid = false;
|
55 |
+
$reason[$name] = $contact_form->message( 'upload_file_type_invalid' );
|
56 |
+
continue;
|
57 |
+
}
|
58 |
+
|
59 |
+
/* File size validation */
|
60 |
+
|
61 |
+
$allowed_size = 1048576; // default size 1 MB
|
62 |
+
if ( $allowed_size_options = preg_grep( '%^limit:%', $options ) ) {
|
63 |
+
$allowed_size_option = array_shift( $allowed_size_options );
|
64 |
+
preg_match( '/^limit:([1-9][0-9]*)([kKmM]?[bB])?$/', $allowed_size_option, $matches );
|
65 |
+
$allowed_size = (int) $matches[1];
|
66 |
+
|
67 |
+
$kbmb = strtolower( $matches[2] );
|
68 |
+
if ( 'kb' == $kbmb ) {
|
69 |
+
$allowed_size *= 1024;
|
70 |
+
} elseif ( 'mb' == $kbmb ) {
|
71 |
+
$allowed_size *= 1024 * 1024;
|
72 |
+
}
|
73 |
+
}
|
74 |
+
|
75 |
+
if ( $file['size'] > $allowed_size ) {
|
76 |
+
$valid = false;
|
77 |
+
$reason[$name] = $contact_form->message( 'upload_file_too_large' );
|
78 |
+
continue;
|
79 |
+
}
|
80 |
+
|
81 |
+
if ( ! $uploads_dir ) {
|
82 |
+
$uploads_dir = wpcf7_upload_tmp_dir();
|
83 |
+
wpcf7_init_uploads(); // Confirm upload dir
|
84 |
+
}
|
85 |
+
|
86 |
+
$filename = wp_unique_filename( $uploads_dir, $file['name'] );
|
87 |
+
|
88 |
+
// If you get script file, it's a danger. Make it TXT file.
|
89 |
+
if ( preg_match( '/\.(php|pl|py|rb|cgi)\d?$/', $filename ) )
|
90 |
+
$filename .= '.txt';
|
91 |
+
|
92 |
+
$new_file = trailingslashit( $uploads_dir ) . $filename;
|
93 |
+
if ( false === @move_uploaded_file( $file['tmp_name'], $new_file ) ) {
|
94 |
+
$valid = false;
|
95 |
+
$reason[$name] = $contact_form->message( 'upload_failed' );
|
96 |
+
continue;
|
97 |
+
}
|
98 |
+
|
99 |
+
// Make sure the uploaded file is only readable for the owner process
|
100 |
+
@chmod( $new_file, 0400 );
|
101 |
+
|
102 |
+
$files[$name] = $new_file;
|
103 |
+
}
|
104 |
+
|
105 |
+
$validation = compact( 'valid', 'reason' );
|
106 |
+
|
107 |
+
return compact( 'files', 'validation' );
|
108 |
+
}
|
109 |
+
|
110 |
+
function wpcf7_init_uploads() {
|
111 |
+
$dir = wpcf7_upload_tmp_dir();
|
112 |
+
wp_mkdir_p( trailingslashit( $dir ) );
|
113 |
+
@chmod( $dir, 0733 );
|
114 |
+
|
115 |
+
$htaccess_file = trailingslashit( $dir ) . '.htaccess';
|
116 |
+
if ( file_exists( $htaccess_file ) )
|
117 |
+
return;
|
118 |
+
|
119 |
+
if ( $handle = @fopen( $htaccess_file, 'w' ) ) {
|
120 |
+
fwrite( $handle, "Deny from all\n" );
|
121 |
+
fclose( $handle );
|
122 |
+
}
|
123 |
+
}
|
124 |
+
|
125 |
+
function wpcf7_cleanup_upload_files() {
|
126 |
+
$dir = trailingslashit( wpcf7_upload_tmp_dir() );
|
127 |
+
|
128 |
+
if ( ! is_dir( $dir ) )
|
129 |
+
return false;
|
130 |
+
if ( ! is_readable( $dir ) )
|
131 |
+
return false;
|
132 |
+
if ( ! is_writable( $dir ) )
|
133 |
+
return false;
|
134 |
+
|
135 |
+
if ( $handle = @opendir( $dir ) ) {
|
136 |
+
while ( false !== ( $file = readdir( $handle ) ) ) {
|
137 |
+
if ( $file == "." || $file == ".." || $file == ".htaccess" )
|
138 |
+
continue;
|
139 |
+
|
140 |
+
$stat = stat( $dir . $file );
|
141 |
+
if ( $stat['mtime'] + 60 < time() ) // 60 secs
|
142 |
+
@unlink( $dir . $file );
|
143 |
+
}
|
144 |
+
closedir( $handle );
|
145 |
+
}
|
146 |
+
}
|
147 |
+
|
148 |
+
?>
|
languages/wpcf7-bs.mo
ADDED
Binary file
|
languages/wpcf7-bs.po
ADDED
@@ -0,0 +1,427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-03-03 16:40+0900\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Vedran <tvedrantz@gmail.com>\n"
|
8 |
+
"Language-Team: Ivan Graf\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-Language: Bosnian\n"
|
13 |
+
"X-Poedit-Country: UNITED STATES\n"
|
14 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
|
16 |
+
#: contact-form-7/wp-contact-form-7.php:413
|
17 |
+
msgid "Contact form"
|
18 |
+
msgstr "Kontaktna forma"
|
19 |
+
|
20 |
+
#: contact-form-7/wp-contact-form-7.php:582
|
21 |
+
#: contact-form-7/includes/admin-panel.php:5
|
22 |
+
msgid "Contact Form 7"
|
23 |
+
msgstr "Kontaktna Forma 7"
|
24 |
+
|
25 |
+
#: contact-form-7/wp-contact-form-7.php:605
|
26 |
+
msgid "optional"
|
27 |
+
msgstr "opcionalno"
|
28 |
+
|
29 |
+
#: contact-form-7/wp-contact-form-7.php:606
|
30 |
+
msgid "Generate Tag"
|
31 |
+
msgstr "Generiraj Oznaku"
|
32 |
+
|
33 |
+
#: contact-form-7/wp-contact-form-7.php:607
|
34 |
+
msgid "Text field"
|
35 |
+
msgstr "Tekst polje"
|
36 |
+
|
37 |
+
#: contact-form-7/wp-contact-form-7.php:608
|
38 |
+
msgid "Email field"
|
39 |
+
msgstr "Email polje"
|
40 |
+
|
41 |
+
#: contact-form-7/wp-contact-form-7.php:609
|
42 |
+
msgid "Text area"
|
43 |
+
msgstr "Tekst područje"
|
44 |
+
|
45 |
+
#: contact-form-7/wp-contact-form-7.php:610
|
46 |
+
msgid "Drop-down menu"
|
47 |
+
msgstr "Padajući meni"
|
48 |
+
|
49 |
+
#: contact-form-7/wp-contact-form-7.php:611
|
50 |
+
msgid "Checkboxes"
|
51 |
+
msgstr "Izbornici"
|
52 |
+
|
53 |
+
#: contact-form-7/wp-contact-form-7.php:612
|
54 |
+
msgid "Radio buttons"
|
55 |
+
msgstr "Radio dugmad"
|
56 |
+
|
57 |
+
#: contact-form-7/wp-contact-form-7.php:613
|
58 |
+
msgid "Acceptance"
|
59 |
+
msgstr "Prihvat"
|
60 |
+
|
61 |
+
#: contact-form-7/wp-contact-form-7.php:614
|
62 |
+
msgid "Make this checkbox checked by default?"
|
63 |
+
msgstr "Postavi izbornik za standardni?"
|
64 |
+
|
65 |
+
#: contact-form-7/wp-contact-form-7.php:615
|
66 |
+
msgid "Make this checkbox work inversely?"
|
67 |
+
msgstr "Ucini da izbornik radi obrnuto?"
|
68 |
+
|
69 |
+
#: contact-form-7/wp-contact-form-7.php:616
|
70 |
+
msgid "* That means visitor who accepts the term unchecks it."
|
71 |
+
msgstr "* Znači da korisnik koji prihvati uvijet deselektira ga."
|
72 |
+
|
73 |
+
#: contact-form-7/wp-contact-form-7.php:617
|
74 |
+
msgid "CAPTCHA"
|
75 |
+
msgstr "CAPTCHA"
|
76 |
+
|
77 |
+
#: contact-form-7/wp-contact-form-7.php:618
|
78 |
+
msgid "Quiz"
|
79 |
+
msgstr "Kviz"
|
80 |
+
|
81 |
+
#: contact-form-7/wp-contact-form-7.php:619
|
82 |
+
msgid "Quizzes"
|
83 |
+
msgstr "Kivizovi"
|
84 |
+
|
85 |
+
#: contact-form-7/wp-contact-form-7.php:620
|
86 |
+
msgid "* quiz|answer (e.g. 1+1=?|2)"
|
87 |
+
msgstr "* Kviz/Odgovor (Npr. 1+1=?/2)"
|
88 |
+
|
89 |
+
#: contact-form-7/wp-contact-form-7.php:621
|
90 |
+
msgid "File upload"
|
91 |
+
msgstr "Uploadiraj datoteku"
|
92 |
+
|
93 |
+
#: contact-form-7/wp-contact-form-7.php:622
|
94 |
+
msgid "bytes"
|
95 |
+
msgstr "Bajtova"
|
96 |
+
|
97 |
+
#: contact-form-7/wp-contact-form-7.php:623
|
98 |
+
msgid "Submit button"
|
99 |
+
msgstr "Posalji Dugme"
|
100 |
+
|
101 |
+
#: contact-form-7/wp-contact-form-7.php:624
|
102 |
+
msgid "Name"
|
103 |
+
msgstr "Vaše Ime"
|
104 |
+
|
105 |
+
#: contact-form-7/wp-contact-form-7.php:625
|
106 |
+
msgid "Required field?"
|
107 |
+
msgstr "Mandatorno polje?"
|
108 |
+
|
109 |
+
#: contact-form-7/wp-contact-form-7.php:626
|
110 |
+
msgid "Allow multiple selections?"
|
111 |
+
msgstr "Omogući višestruki izbor?"
|
112 |
+
|
113 |
+
#: contact-form-7/wp-contact-form-7.php:627
|
114 |
+
msgid "Insert a blank item as the first option?"
|
115 |
+
msgstr "Insertiraj praznu stavku kao početni izbor?"
|
116 |
+
|
117 |
+
#: contact-form-7/wp-contact-form-7.php:628
|
118 |
+
msgid "Make checkboxes exclusive?"
|
119 |
+
msgstr "Učini izbornike ekskluzivnim ?"
|
120 |
+
|
121 |
+
#: contact-form-7/wp-contact-form-7.php:629
|
122 |
+
msgid "Choices"
|
123 |
+
msgstr "Izbori"
|
124 |
+
|
125 |
+
#: contact-form-7/wp-contact-form-7.php:630
|
126 |
+
msgid "Label"
|
127 |
+
msgstr "Labela"
|
128 |
+
|
129 |
+
#: contact-form-7/wp-contact-form-7.php:631
|
130 |
+
msgid "Default value"
|
131 |
+
msgstr "Početna vrijednost"
|
132 |
+
|
133 |
+
#: contact-form-7/wp-contact-form-7.php:632
|
134 |
+
msgid "Akismet"
|
135 |
+
msgstr "Askimet"
|
136 |
+
|
137 |
+
#: contact-form-7/wp-contact-form-7.php:633
|
138 |
+
msgid "This field requires author's name"
|
139 |
+
msgstr "Polje zahtjeva vaše ime"
|
140 |
+
|
141 |
+
#: contact-form-7/wp-contact-form-7.php:634
|
142 |
+
msgid "This field requires author's URL"
|
143 |
+
msgstr "Polje zahtjeva web adresu autora"
|
144 |
+
|
145 |
+
#: contact-form-7/wp-contact-form-7.php:635
|
146 |
+
msgid "This field requires author's email address"
|
147 |
+
msgstr "Ovo polje zahtijeva E-mail adresu autorovu"
|
148 |
+
|
149 |
+
#: contact-form-7/wp-contact-form-7.php:636
|
150 |
+
msgid "Copy this code and paste it into the form left."
|
151 |
+
msgstr "Kopiraj kod i pejstiraj u formu lijevo"
|
152 |
+
|
153 |
+
#: contact-form-7/wp-contact-form-7.php:637
|
154 |
+
msgid "Foreground color"
|
155 |
+
msgstr "Boja forgraunda"
|
156 |
+
|
157 |
+
#: contact-form-7/wp-contact-form-7.php:638
|
158 |
+
msgid "Background color"
|
159 |
+
msgstr "Boja bekgraunda"
|
160 |
+
|
161 |
+
#: contact-form-7/wp-contact-form-7.php:639
|
162 |
+
msgid "Image size"
|
163 |
+
msgstr "Veličina ilustracije"
|
164 |
+
|
165 |
+
#: contact-form-7/wp-contact-form-7.php:640
|
166 |
+
msgid "Small"
|
167 |
+
msgstr "Mala"
|
168 |
+
|
169 |
+
#: contact-form-7/wp-contact-form-7.php:641
|
170 |
+
msgid "Medium"
|
171 |
+
msgstr "Srednja"
|
172 |
+
|
173 |
+
#: contact-form-7/wp-contact-form-7.php:642
|
174 |
+
msgid "Large"
|
175 |
+
msgstr "Velika"
|
176 |
+
|
177 |
+
#: contact-form-7/wp-contact-form-7.php:643
|
178 |
+
msgid "Image settings"
|
179 |
+
msgstr "Postavke ilustracije"
|
180 |
+
|
181 |
+
#: contact-form-7/wp-contact-form-7.php:644
|
182 |
+
msgid "Input field settings"
|
183 |
+
msgstr "Postavke polja unosa"
|
184 |
+
|
185 |
+
#: contact-form-7/wp-contact-form-7.php:645
|
186 |
+
msgid "For image"
|
187 |
+
msgstr "Za ilustraciju"
|
188 |
+
|
189 |
+
#: contact-form-7/wp-contact-form-7.php:646
|
190 |
+
msgid "For input field"
|
191 |
+
msgstr "Za polje unosa"
|
192 |
+
|
193 |
+
#: contact-form-7/wp-contact-form-7.php:647
|
194 |
+
msgid "* One choice per line."
|
195 |
+
msgstr "* Jedan izbor po liniji"
|
196 |
+
|
197 |
+
#: contact-form-7/wp-contact-form-7.php:648
|
198 |
+
msgid "Show"
|
199 |
+
msgstr "Pokaži"
|
200 |
+
|
201 |
+
#: contact-form-7/wp-contact-form-7.php:649
|
202 |
+
msgid "Hide"
|
203 |
+
msgstr "Prikrij"
|
204 |
+
|
205 |
+
#: contact-form-7/wp-contact-form-7.php:650
|
206 |
+
msgid "File size limit"
|
207 |
+
msgstr "Limit veličine fajla"
|
208 |
+
|
209 |
+
#: contact-form-7/wp-contact-form-7.php:651
|
210 |
+
msgid "Acceptable file types"
|
211 |
+
msgstr "Prihvatljive ekstenzije fajlova"
|
212 |
+
|
213 |
+
#: contact-form-7/wp-contact-form-7.php:677
|
214 |
+
msgid "Contact form created."
|
215 |
+
msgstr "Kreirana kontaktna forma"
|
216 |
+
|
217 |
+
#: contact-form-7/wp-contact-form-7.php:680
|
218 |
+
msgid "Contact form saved."
|
219 |
+
msgstr "Kontaktna forma snimljena"
|
220 |
+
|
221 |
+
#: contact-form-7/wp-contact-form-7.php:683
|
222 |
+
msgid "Contact form deleted."
|
223 |
+
msgstr "Kontaktna forma izbrisana."
|
224 |
+
|
225 |
+
#: contact-form-7/wp-contact-form-7.php:694
|
226 |
+
msgid "Untitled"
|
227 |
+
msgstr "Neimenovano"
|
228 |
+
|
229 |
+
#: contact-form-7/wp-contact-form-7.php:721
|
230 |
+
msgid "Your Name"
|
231 |
+
msgstr "Vaše ime"
|
232 |
+
|
233 |
+
#: contact-form-7/wp-contact-form-7.php:721
|
234 |
+
#: contact-form-7/wp-contact-form-7.php:723
|
235 |
+
msgid "(required)"
|
236 |
+
msgstr "(mandatorno)"
|
237 |
+
|
238 |
+
#: contact-form-7/wp-contact-form-7.php:723
|
239 |
+
msgid "Your Email"
|
240 |
+
msgstr "Vaš Email"
|
241 |
+
|
242 |
+
#: contact-form-7/wp-contact-form-7.php:725
|
243 |
+
msgid "Subject"
|
244 |
+
msgstr "Predmet"
|
245 |
+
|
246 |
+
#: contact-form-7/wp-contact-form-7.php:727
|
247 |
+
msgid "Your Message"
|
248 |
+
msgstr "Vaša Poruka"
|
249 |
+
|
250 |
+
#: contact-form-7/wp-contact-form-7.php:729
|
251 |
+
#: contact-form-7/wp-contact-form-7.php:1458
|
252 |
+
msgid "Send"
|
253 |
+
msgstr "Šalji"
|
254 |
+
|
255 |
+
#: contact-form-7/wp-contact-form-7.php:783
|
256 |
+
msgid "Your message was sent successfully. Thanks."
|
257 |
+
msgstr "Vaša poruka je poslana uspjesno. Hvala Vam."
|
258 |
+
|
259 |
+
#: contact-form-7/wp-contact-form-7.php:785
|
260 |
+
#: contact-form-7/wp-contact-form-7.php:787
|
261 |
+
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
262 |
+
msgstr "Slanje poruke neuspješno. Molimo vas pokušajte kasnije ili kontaktirajte administratora stranice na drugi način."
|
263 |
+
|
264 |
+
#: contact-form-7/wp-contact-form-7.php:789
|
265 |
+
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
266 |
+
msgstr "Desila se greška pri validiranju. Molimo potvrdite polja i pošaljite ponovo ."
|
267 |
+
|
268 |
+
#: contact-form-7/wp-contact-form-7.php:791
|
269 |
+
msgid "Please accept the terms to proceed."
|
270 |
+
msgstr "Molimo prihvatite uslove da biste nastavili."
|
271 |
+
|
272 |
+
#: contact-form-7/wp-contact-form-7.php:793
|
273 |
+
msgid "Email address seems invalid."
|
274 |
+
msgstr "Email adresa nije valjana"
|
275 |
+
|
276 |
+
#: contact-form-7/wp-contact-form-7.php:795
|
277 |
+
msgid "Please fill the required field."
|
278 |
+
msgstr "Molimo ispunite mandatorno polje."
|
279 |
+
|
280 |
+
#: contact-form-7/wp-contact-form-7.php:797
|
281 |
+
msgid "Your entered code is incorrect."
|
282 |
+
msgstr "Kod koji ste unijeli nije tačan."
|
283 |
+
|
284 |
+
#: contact-form-7/wp-contact-form-7.php:799
|
285 |
+
msgid "Your answer is not correct."
|
286 |
+
msgstr "Vaš odgovor nije tačan."
|
287 |
+
|
288 |
+
#: contact-form-7/wp-contact-form-7.php:801
|
289 |
+
msgid "Failed to upload file."
|
290 |
+
msgstr "Uploadiranje datoteke neuspješno."
|
291 |
+
|
292 |
+
#: contact-form-7/wp-contact-form-7.php:803
|
293 |
+
msgid "This file type is not allowed."
|
294 |
+
msgstr "Ekstenzija fajla nije doyvoljenai."
|
295 |
+
|
296 |
+
#: contact-form-7/wp-contact-form-7.php:805
|
297 |
+
msgid "This file is too large."
|
298 |
+
msgstr "Ovaj fajl je prevelik."
|
299 |
+
|
300 |
+
#: contact-form-7/includes/admin-panel.php:20
|
301 |
+
msgid "Add new"
|
302 |
+
msgstr "Dodaj novi"
|
303 |
+
|
304 |
+
#: contact-form-7/includes/admin-panel.php:42
|
305 |
+
msgid "Copy this code and paste it into your post, page or text widget content."
|
306 |
+
msgstr "Kopiraj ovaj kod i pejstiraj ga u sadržaj koji želiš poslati, stranicu ili tekst widget."
|
307 |
+
|
308 |
+
#: contact-form-7/includes/admin-panel.php:49
|
309 |
+
#: contact-form-7/includes/admin-panel.php:257
|
310 |
+
msgid "Save"
|
311 |
+
msgstr "Snimi"
|
312 |
+
|
313 |
+
#: contact-form-7/includes/admin-panel.php:55
|
314 |
+
msgid "Delete this contact form"
|
315 |
+
msgstr "Obriši ovu kontaktnu formu"
|
316 |
+
|
317 |
+
#: contact-form-7/includes/admin-panel.php:56
|
318 |
+
msgid ""
|
319 |
+
"You are about to delete this contact form.\n"
|
320 |
+
" 'Cancel' to stop, 'OK' to delete."
|
321 |
+
msgstr ""
|
322 |
+
"Ovime se briše kontaktni obrazac. \n"
|
323 |
+
"'odustani' za prekid, 'OK' za brisanje."
|
324 |
+
|
325 |
+
#: contact-form-7/includes/admin-panel.php:70
|
326 |
+
msgid "Form"
|
327 |
+
msgstr "Forma"
|
328 |
+
|
329 |
+
#: contact-form-7/includes/admin-panel.php:90
|
330 |
+
msgid "Mail"
|
331 |
+
msgstr "Pošta"
|
332 |
+
|
333 |
+
#: contact-form-7/includes/admin-panel.php:97
|
334 |
+
#: contact-form-7/includes/admin-panel.php:149
|
335 |
+
msgid "To:"
|
336 |
+
msgstr "Za:"
|
337 |
+
|
338 |
+
#: contact-form-7/includes/admin-panel.php:101
|
339 |
+
#: contact-form-7/includes/admin-panel.php:153
|
340 |
+
msgid "From:"
|
341 |
+
msgstr "Od:"
|
342 |
+
|
343 |
+
#: contact-form-7/includes/admin-panel.php:105
|
344 |
+
#: contact-form-7/includes/admin-panel.php:157
|
345 |
+
msgid "Subject:"
|
346 |
+
msgstr "Predmet:"
|
347 |
+
|
348 |
+
#: contact-form-7/includes/admin-panel.php:110
|
349 |
+
#: contact-form-7/includes/admin-panel.php:162
|
350 |
+
msgid "File attachments:"
|
351 |
+
msgstr "Dodani fajl"
|
352 |
+
|
353 |
+
#: contact-form-7/includes/admin-panel.php:112
|
354 |
+
#: contact-form-7/includes/admin-panel.php:164
|
355 |
+
msgid "(You need WordPress 2.7 or greater to use this feature)"
|
356 |
+
msgstr "(Potreban WordPress 2.7 ili veći za korištenje ove mogućnosti)"
|
357 |
+
|
358 |
+
#: contact-form-7/includes/admin-panel.php:120
|
359 |
+
#: contact-form-7/includes/admin-panel.php:172
|
360 |
+
msgid "Use HTML content type"
|
361 |
+
msgstr "Koristi HTML"
|
362 |
+
|
363 |
+
#: contact-form-7/includes/admin-panel.php:125
|
364 |
+
#: contact-form-7/includes/admin-panel.php:177
|
365 |
+
msgid "Message body:"
|
366 |
+
msgstr "Tijelo Poruke"
|
367 |
+
|
368 |
+
#: contact-form-7/includes/admin-panel.php:136
|
369 |
+
msgid "Mail (2)"
|
370 |
+
msgstr "Pošta (2)"
|
371 |
+
|
372 |
+
#: contact-form-7/includes/admin-panel.php:143
|
373 |
+
msgid "Use mail (2)"
|
374 |
+
msgstr "Koristi poštu (2)"
|
375 |
+
|
376 |
+
#: contact-form-7/includes/admin-panel.php:188
|
377 |
+
msgid "Messages"
|
378 |
+
msgstr "Poruke"
|
379 |
+
|
380 |
+
#: contact-form-7/includes/admin-panel.php:196
|
381 |
+
msgid "Sender's message was sent successfully"
|
382 |
+
msgstr "Pošiljateljeva poruka je poslana uspješno"
|
383 |
+
|
384 |
+
#: contact-form-7/includes/admin-panel.php:200
|
385 |
+
msgid "Sender's message was failed to send"
|
386 |
+
msgstr "Pošiljateljeva poruka nije poslana"
|
387 |
+
|
388 |
+
#: contact-form-7/includes/admin-panel.php:204
|
389 |
+
msgid "Akismet judged the sending activity as spamming"
|
390 |
+
msgstr "Akismet je prosuđuje da je poruka spam"
|
391 |
+
|
392 |
+
#: contact-form-7/includes/admin-panel.php:208
|
393 |
+
msgid "Validation errors occurred"
|
394 |
+
msgstr "Desile su se poruke u validaciji"
|
395 |
+
|
396 |
+
#: contact-form-7/includes/admin-panel.php:212
|
397 |
+
msgid "There is a field that sender is needed to fill in"
|
398 |
+
msgstr "Postoji polje koje mora biti ispunjeno"
|
399 |
+
|
400 |
+
#: contact-form-7/includes/admin-panel.php:216
|
401 |
+
msgid "Email address that sender entered is invalid"
|
402 |
+
msgstr "Unesena Email adresa nije validna"
|
403 |
+
|
404 |
+
#: contact-form-7/includes/admin-panel.php:220
|
405 |
+
msgid "There is a field of term that sender is needed to accept"
|
406 |
+
msgstr "Postoji polje koje pošiljatelj mora prihvatiti"
|
407 |
+
|
408 |
+
#: contact-form-7/includes/admin-panel.php:224
|
409 |
+
msgid "Sender doesn't enter the correct answer to the quiz"
|
410 |
+
msgstr "Pošiljatelj nije točno odgovorio na pitanje u kviyu"
|
411 |
+
|
412 |
+
#: contact-form-7/includes/admin-panel.php:228
|
413 |
+
msgid "The code that sender entered does not match the CAPTCHA"
|
414 |
+
msgstr "Unešen kod se ne podudara s CAPTCHA-om"
|
415 |
+
|
416 |
+
#: contact-form-7/includes/admin-panel.php:232
|
417 |
+
msgid "Uploading a file fails for any reason"
|
418 |
+
msgstr "Uploadiranje fajla neuspješno iz nekog razloga."
|
419 |
+
|
420 |
+
#: contact-form-7/includes/admin-panel.php:236
|
421 |
+
msgid "Uploaded file is not allowed file type"
|
422 |
+
msgstr "Ekstenyija uploadiranog fajla nije doyvoljena"
|
423 |
+
|
424 |
+
#: contact-form-7/includes/admin-panel.php:240
|
425 |
+
msgid "Uploaded file is too large"
|
426 |
+
msgstr "Uploadirani fajl je prevelik"
|
427 |
+
|
languages/wpcf7-hu_HU.mo
CHANGED
Binary file
|
languages/wpcf7-hu_HU.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contact Form 7 v1.hu\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: HiA <hia@itblog.hu>\n"
|
8 |
"Language-Team: HiA <hia@itblog.hu>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -13,391 +13,459 @@ msgstr ""
|
|
13 |
"X-Poedit-Country: HUNGARY\n"
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
|
16 |
-
#: contact-form-7/wp-contact-form-7.php:
|
17 |
msgid "Contact form"
|
18 |
msgstr "Kapcsolat űrlap"
|
19 |
|
20 |
-
#: contact-form-7/
|
21 |
-
#: contact-form-7/
|
22 |
msgid "Contact Form 7"
|
23 |
msgstr "Contact Form 7"
|
24 |
|
25 |
-
#: contact-form-7/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
msgid "optional"
|
27 |
msgstr "választható"
|
28 |
|
29 |
-
#: contact-form-7/
|
30 |
msgid "Generate Tag"
|
31 |
msgstr "Általános Címke"
|
32 |
|
33 |
-
#: contact-form-7/
|
34 |
msgid "Text field"
|
35 |
msgstr "Szöveg mező"
|
36 |
|
37 |
-
#: contact-form-7/
|
38 |
msgid "Email field"
|
39 |
msgstr "E-mail mező"
|
40 |
|
41 |
-
#: contact-form-7/
|
42 |
msgid "Text area"
|
43 |
msgstr "Többsoros szöveg"
|
44 |
|
45 |
-
#: contact-form-7/
|
46 |
msgid "Drop-down menu"
|
47 |
msgstr "Lenyíló menü"
|
48 |
|
49 |
-
#: contact-form-7/
|
50 |
msgid "Checkboxes"
|
51 |
msgstr "Jelölőnégyzetek"
|
52 |
|
53 |
-
#: contact-form-7/
|
54 |
msgid "Radio buttons"
|
55 |
msgstr "Választógombok"
|
56 |
|
57 |
-
#: contact-form-7/
|
58 |
msgid "Acceptance"
|
59 |
msgstr "Elfogadás"
|
60 |
|
61 |
-
#: contact-form-7/
|
62 |
msgid "Make this checkbox checked by default?"
|
63 |
msgstr "Ez a jelölőnyégyzet alapértelmezettnek be legyen kapcsolva?"
|
64 |
|
65 |
-
#: contact-form-7/
|
66 |
msgid "Make this checkbox work inversely?"
|
67 |
msgstr "Ez a jelölőnégyzet működjön fordítva?"
|
68 |
|
69 |
-
#: contact-form-7/
|
70 |
msgid "* That means visitor who accepts the term unchecks it."
|
71 |
msgstr "* Azt jelenti, hogy az a látogató kikapcsolja, aki elfogadja a feltételeket."
|
72 |
|
73 |
-
#: contact-form-7/
|
74 |
msgid "CAPTCHA"
|
75 |
msgstr "CAPTCHA"
|
76 |
|
77 |
-
#: contact-form-7/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
msgid "File upload"
|
79 |
msgstr "Fájl feltöltés"
|
80 |
|
81 |
-
#: contact-form-7/
|
|
|
|
|
|
|
|
|
82 |
msgid "Submit button"
|
83 |
msgstr "Elfogadás gomb"
|
84 |
|
85 |
-
#: contact-form-7/
|
86 |
msgid "Name"
|
87 |
msgstr "Név"
|
88 |
|
89 |
-
#: contact-form-7/
|
90 |
msgid "Required field?"
|
91 |
msgstr "Kötelező mező?"
|
92 |
|
93 |
-
#: contact-form-7/
|
94 |
msgid "Allow multiple selections?"
|
95 |
msgstr "Engedélyezett a többszörös választás?"
|
96 |
|
97 |
-
#: contact-form-7/
|
98 |
msgid "Insert a blank item as the first option?"
|
99 |
msgstr "Első lehetőségnek egy üres tétel beszúrása?"
|
100 |
|
101 |
-
#: contact-form-7/
|
102 |
msgid "Make checkboxes exclusive?"
|
103 |
msgstr "A jelölőnégyzetek kizáróak legyenek?"
|
104 |
|
105 |
-
#: contact-form-7/
|
106 |
msgid "Choices"
|
107 |
msgstr "Lehetőségek"
|
108 |
|
109 |
-
#: contact-form-7/
|
110 |
msgid "Label"
|
111 |
msgstr "Cimke"
|
112 |
|
113 |
-
#: contact-form-7/
|
114 |
msgid "Default value"
|
115 |
msgstr "Alapértelmezett érték"
|
116 |
|
117 |
-
#: contact-form-7/
|
118 |
msgid "Akismet"
|
119 |
msgstr "Akismet"
|
120 |
|
121 |
-
#: contact-form-7/
|
122 |
msgid "This field requires author's name"
|
123 |
msgstr "Ebbe a mezőbe a szerző neve szükséges"
|
124 |
|
125 |
-
#: contact-form-7/
|
126 |
msgid "This field requires author's URL"
|
127 |
msgstr "Ebbe a mezőbe a szerző URL-je szükséges"
|
128 |
|
129 |
-
#: contact-form-7/
|
130 |
msgid "This field requires author's email address"
|
131 |
msgstr "Ebbe a mezőbe a szerző e-mail címe szükséges"
|
132 |
|
133 |
-
#: contact-form-7/
|
134 |
msgid "Copy this code and paste it into the form left."
|
135 |
msgstr "Másold és illeszd be ezt a kódot a bal oldali űrlapba."
|
136 |
|
137 |
-
#: contact-form-7/
|
138 |
msgid "Foreground color"
|
139 |
msgstr "Előtér szín"
|
140 |
|
141 |
-
#: contact-form-7/
|
142 |
msgid "Background color"
|
143 |
msgstr "Háttér szín"
|
144 |
|
145 |
-
#: contact-form-7/
|
146 |
msgid "Image size"
|
147 |
msgstr "Kép mérete"
|
148 |
|
149 |
-
#: contact-form-7/
|
150 |
msgid "Small"
|
151 |
msgstr "Kicsi"
|
152 |
|
153 |
-
#: contact-form-7/
|
154 |
msgid "Medium"
|
155 |
msgstr "Közepes"
|
156 |
|
157 |
-
#: contact-form-7/
|
158 |
msgid "Large"
|
159 |
msgstr "Nagy"
|
160 |
|
161 |
-
#: contact-form-7/
|
162 |
msgid "Image settings"
|
163 |
msgstr "Kép beállítások"
|
164 |
|
165 |
-
#: contact-form-7/
|
166 |
msgid "Input field settings"
|
167 |
msgstr "Beviteli mező beállításai"
|
168 |
|
169 |
-
#: contact-form-7/
|
170 |
msgid "For image"
|
171 |
msgstr "Képnek"
|
172 |
|
173 |
-
#: contact-form-7/
|
174 |
msgid "For input field"
|
175 |
msgstr "Beviteli mezőnek"
|
176 |
|
177 |
-
#: contact-form-7/
|
178 |
msgid "* One choice per line."
|
179 |
msgstr "* Egy választás soronként."
|
180 |
|
181 |
-
#: contact-form-7/
|
182 |
msgid "Show"
|
183 |
msgstr "Mutat"
|
184 |
|
185 |
-
#: contact-form-7/
|
186 |
msgid "Hide"
|
187 |
msgstr "Elrejt"
|
188 |
|
189 |
-
#: contact-form-7/
|
190 |
msgid "File size limit"
|
191 |
msgstr "Fájl méret korlát"
|
192 |
|
193 |
-
#: contact-form-7/
|
194 |
msgid "Acceptable file types"
|
195 |
msgstr "Használható fájl típusok"
|
196 |
|
197 |
-
#: contact-form-7/
|
|
|
|
|
|
|
|
|
198 |
msgid "Contact form created."
|
199 |
msgstr "Kapcsolat űrlap létrehozva."
|
200 |
|
201 |
-
#: contact-form-7/
|
202 |
msgid "Contact form saved."
|
203 |
msgstr "Kapcsolat űrlap elmentve."
|
204 |
|
205 |
-
#: contact-form-7/
|
206 |
msgid "Contact form deleted."
|
207 |
msgstr "Kapcsolat űrlap törölve."
|
208 |
|
209 |
-
#: contact-form-7/
|
210 |
msgid "Untitled"
|
211 |
msgstr "Cím nélkül"
|
212 |
|
213 |
-
#: contact-form-7/
|
214 |
msgid "Your Name"
|
215 |
msgstr "Neved"
|
216 |
|
217 |
-
#: contact-form-7/
|
218 |
-
#: contact-form-7/
|
219 |
msgid "(required)"
|
220 |
msgstr "(szükséges)"
|
221 |
|
222 |
-
#: contact-form-7/
|
223 |
msgid "Your Email"
|
224 |
msgstr "E-mail címed"
|
225 |
|
226 |
-
#: contact-form-7/
|
227 |
msgid "Subject"
|
228 |
msgstr "Tárgy"
|
229 |
|
230 |
-
#: contact-form-7/
|
231 |
msgid "Your Message"
|
232 |
msgstr "Üzeneted"
|
233 |
|
234 |
-
#: contact-form-7/
|
235 |
-
#: contact-form-7/
|
236 |
msgid "Send"
|
237 |
msgstr "Küldés"
|
238 |
|
239 |
-
#: contact-form-7/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
msgid "Your message was sent successfully. Thanks."
|
241 |
msgstr "Az üzenet sikeresen el lett küldve. Köszönjük!"
|
242 |
|
243 |
-
#: contact-form-7/
|
244 |
-
#: contact-form-7/
|
245 |
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
246 |
msgstr "Üzenet küldése sikertelen. Kérjük próbálja meg később vagy más módon keresse a kapcsolatot!"
|
247 |
|
248 |
-
#: contact-form-7/
|
249 |
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
250 |
msgstr "Érvényesítési hiba. Kérem a mezők megerősítését és újra elfogadását!"
|
251 |
|
252 |
-
#: contact-form-7/
|
253 |
msgid "Please accept the terms to proceed."
|
254 |
msgstr "Kérem a feltételek elfogadását a folytatáshoz!"
|
255 |
|
256 |
-
#: contact-form-7/
|
257 |
msgid "Email address seems invalid."
|
258 |
msgstr "Az e-mail cím nem tűnik helyesnek."
|
259 |
|
260 |
-
#: contact-form-7/
|
261 |
msgid "Please fill the required field."
|
262 |
msgstr "Kérem a szükséges mezők kitöltését!"
|
263 |
|
264 |
-
#: contact-form-7/
|
265 |
msgid "Your entered code is incorrect."
|
266 |
msgstr "A beírt kódod hibás."
|
267 |
|
268 |
-
#: contact-form-7/
|
|
|
|
|
|
|
|
|
269 |
msgid "Failed to upload file."
|
270 |
msgstr "Sikertelen feltöltés."
|
271 |
|
272 |
-
#: contact-form-7/
|
273 |
msgid "This file type is not allowed."
|
274 |
msgstr "Ez a fájl típus nem megengedett."
|
275 |
|
276 |
-
#: contact-form-7/
|
277 |
msgid "This file is too large."
|
278 |
msgstr "Ez a fájl túl nagy."
|
279 |
|
280 |
-
|
281 |
-
|
282 |
-
msgstr "Új hozzáadása"
|
283 |
-
|
284 |
-
#: contact-form-7/includes/admin-panel.php:42
|
285 |
-
msgid "Copy this code and paste it into your post, page or text widget content."
|
286 |
-
msgstr "Másold és illeszd be ezt a kódot a bejegyzésdbe, oldaladba vagy szöveg widget tartalmába."
|
287 |
-
|
288 |
-
#: contact-form-7/includes/admin-panel.php:49
|
289 |
-
#: contact-form-7/includes/admin-panel.php:253
|
290 |
-
msgid "Save"
|
291 |
-
msgstr "Mentés"
|
292 |
-
|
293 |
-
#: contact-form-7/includes/admin-panel.php:55
|
294 |
-
msgid "Delete this contact form"
|
295 |
-
msgstr "Ennek a kapcsolat űrlapnak a törlése."
|
296 |
-
|
297 |
-
#: contact-form-7/includes/admin-panel.php:56
|
298 |
-
msgid ""
|
299 |
-
"You are about to delete this contact form.\n"
|
300 |
-
" 'Cancel' to stop, 'OK' to delete."
|
301 |
-
msgstr ""
|
302 |
-
"Ennek a kapcsolat űrlapnak a törlésére készül.\n"
|
303 |
-
" 'Mégse', ha nem akarja, 'OK' a törléshez."
|
304 |
-
|
305 |
-
#: contact-form-7/includes/admin-panel.php:70
|
306 |
-
msgid "Form"
|
307 |
-
msgstr "Űrlap"
|
308 |
-
|
309 |
-
#: contact-form-7/includes/admin-panel.php:90
|
310 |
-
msgid "Mail"
|
311 |
-
msgstr "Levél"
|
312 |
-
|
313 |
-
#: contact-form-7/includes/admin-panel.php:97
|
314 |
-
#: contact-form-7/includes/admin-panel.php:149
|
315 |
-
msgid "To:"
|
316 |
-
msgstr "Címzett:"
|
317 |
-
|
318 |
-
#: contact-form-7/includes/admin-panel.php:101
|
319 |
-
#: contact-form-7/includes/admin-panel.php:153
|
320 |
-
msgid "From:"
|
321 |
-
msgstr "Feladó:"
|
322 |
-
|
323 |
-
#: contact-form-7/includes/admin-panel.php:105
|
324 |
-
#: contact-form-7/includes/admin-panel.php:157
|
325 |
-
msgid "Subject:"
|
326 |
-
msgstr "Tárgy:"
|
327 |
-
|
328 |
-
#: contact-form-7/includes/admin-panel.php:110
|
329 |
-
#: contact-form-7/includes/admin-panel.php:162
|
330 |
-
msgid "File attachments:"
|
331 |
-
msgstr "Csatolt fájlok:"
|
332 |
-
|
333 |
-
#: contact-form-7/includes/admin-panel.php:112
|
334 |
-
#: contact-form-7/includes/admin-panel.php:164
|
335 |
-
msgid "(You need WordPress 2.7 or greater to use this feature)"
|
336 |
-
msgstr "(Wordpress 2.7 vagy későbbi változat szükséges ehhez a funkcióhoz.)"
|
337 |
-
|
338 |
-
#: contact-form-7/includes/admin-panel.php:120
|
339 |
-
#: contact-form-7/includes/admin-panel.php:172
|
340 |
-
msgid "Use HTML content type"
|
341 |
-
msgstr "Használj HTML tartalmi típust"
|
342 |
-
|
343 |
-
#: contact-form-7/includes/admin-panel.php:125
|
344 |
-
#: contact-form-7/includes/admin-panel.php:177
|
345 |
-
msgid "Message body:"
|
346 |
-
msgstr "Üzenet törzse:"
|
347 |
-
|
348 |
-
#: contact-form-7/includes/admin-panel.php:136
|
349 |
-
msgid "Mail (2)"
|
350 |
-
msgstr "Levél (2)"
|
351 |
-
|
352 |
-
#: contact-form-7/includes/admin-panel.php:143
|
353 |
-
msgid "Use mail (2)"
|
354 |
-
msgstr "Levél (2) használata"
|
355 |
-
|
356 |
-
#: contact-form-7/includes/admin-panel.php:188
|
357 |
-
msgid "Messages"
|
358 |
-
msgstr "Üzenetek"
|
359 |
-
|
360 |
-
#: contact-form-7/includes/admin-panel.php:196
|
361 |
-
msgid "Sender's message was sent successfully"
|
362 |
-
msgstr "Az üzenet sikeresen el lett küldve"
|
363 |
-
|
364 |
-
#: contact-form-7/includes/admin-panel.php:200
|
365 |
-
msgid "Sender's message was failed to send"
|
366 |
-
msgstr "Sikertelen üzenet küldés"
|
367 |
-
|
368 |
-
#: contact-form-7/includes/admin-panel.php:204
|
369 |
-
msgid "Akismet judged the sending activity as spamming"
|
370 |
-
msgstr "Akismet spamnek tekintette a küldést"
|
371 |
-
|
372 |
-
#: contact-form-7/includes/admin-panel.php:208
|
373 |
-
msgid "Validation errors occurred"
|
374 |
-
msgstr "Jóváhagyás hiba történt"
|
375 |
-
|
376 |
-
#: contact-form-7/includes/admin-panel.php:212
|
377 |
-
msgid "There is a field that sender is needed to fill in"
|
378 |
-
msgstr "Van egy mező, amit a küldőnek ki kell töltenie"
|
379 |
-
|
380 |
-
#: contact-form-7/includes/admin-panel.php:216
|
381 |
-
msgid "Email address that sender entered is invalid"
|
382 |
-
msgstr "A beírt e-mail cím helytelen"
|
383 |
-
|
384 |
-
#: contact-form-7/includes/admin-panel.php:220
|
385 |
-
msgid "There is a field of term that sender is needed to accept"
|
386 |
-
msgstr "Van egy mező, amit a küldőnek el kell fogadnia"
|
387 |
-
|
388 |
-
#: contact-form-7/includes/admin-panel.php:224
|
389 |
-
msgid "The code that sender entered does not match the CAPTCHA"
|
390 |
-
msgstr "A küldő által beírt kód nem egyezik a CAPTCHA-val"
|
391 |
-
|
392 |
-
#: contact-form-7/includes/admin-panel.php:228
|
393 |
-
msgid "Uploading a file fails for any reason"
|
394 |
-
msgstr "Fájl feltöltés sikertelen"
|
395 |
-
|
396 |
-
#: contact-form-7/includes/admin-panel.php:232
|
397 |
-
msgid "Uploaded file is not allowed file type"
|
398 |
-
msgstr "Feltöltött fájl típusa nem megengedett"
|
399 |
-
|
400 |
-
#: contact-form-7/includes/admin-panel.php:236
|
401 |
-
msgid "Uploaded file is too large"
|
402 |
-
msgstr "Feltöltött fájl túl nagy"
|
403 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contact Form 7 v1.hu\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-05-25 10:36+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-05-29 09:39+0100\n"
|
7 |
"Last-Translator: HiA <hia@itblog.hu>\n"
|
8 |
"Language-Team: HiA <hia@itblog.hu>\n"
|
9 |
"MIME-Version: 1.0\n"
|
13 |
"X-Poedit-Country: HUNGARY\n"
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
|
16 |
+
#: contact-form-7/wp-contact-form-7.php:321
|
17 |
msgid "Contact form"
|
18 |
msgstr "Kapcsolat űrlap"
|
19 |
|
20 |
+
#: contact-form-7/admin/admin-panel.php:6
|
21 |
+
#: contact-form-7/admin/admin.php:111
|
22 |
msgid "Contact Form 7"
|
23 |
msgstr "Contact Form 7"
|
24 |
|
25 |
+
#: contact-form-7/admin/admin-panel.php:21
|
26 |
+
msgid "Add new"
|
27 |
+
msgstr "Új hozzáadása"
|
28 |
+
|
29 |
+
#: contact-form-7/admin/admin-panel.php:43
|
30 |
+
msgid "Copy this code and paste it into your post, page or text widget content."
|
31 |
+
msgstr "Másold és illeszd be ezt a kódot a bejegyzésdbe, oldaladba vagy szöveg widget tartalmába."
|
32 |
+
|
33 |
+
#: contact-form-7/admin/admin-panel.php:50
|
34 |
+
#: contact-form-7/admin/admin-panel.php:290
|
35 |
+
msgid "Save"
|
36 |
+
msgstr "Mentés"
|
37 |
+
|
38 |
+
#: contact-form-7/admin/admin-panel.php:57
|
39 |
+
msgid "Copy"
|
40 |
+
msgstr "Másolás"
|
41 |
+
|
42 |
+
#: contact-form-7/admin/admin-panel.php:61
|
43 |
+
msgid "Delete"
|
44 |
+
msgstr "Törlés"
|
45 |
+
|
46 |
+
#: contact-form-7/admin/admin-panel.php:63
|
47 |
+
msgid ""
|
48 |
+
"You are about to delete this contact form.\n"
|
49 |
+
" 'Cancel' to stop, 'OK' to delete."
|
50 |
+
msgstr ""
|
51 |
+
"Ennek a kapcsolat űrlapnak a törlésére készül.\n"
|
52 |
+
" 'Mégse', ha nem akarja, 'OK' a törléshez."
|
53 |
+
|
54 |
+
#: contact-form-7/admin/admin-panel.php:78
|
55 |
+
msgid "Form"
|
56 |
+
msgstr "Űrlap"
|
57 |
+
|
58 |
+
#: contact-form-7/admin/admin-panel.php:98
|
59 |
+
msgid "Mail"
|
60 |
+
msgstr "Levél"
|
61 |
+
|
62 |
+
#: contact-form-7/admin/admin-panel.php:105
|
63 |
+
#: contact-form-7/admin/admin-panel.php:161
|
64 |
+
msgid "To:"
|
65 |
+
msgstr "Címzett:"
|
66 |
+
|
67 |
+
#: contact-form-7/admin/admin-panel.php:109
|
68 |
+
#: contact-form-7/admin/admin-panel.php:165
|
69 |
+
msgid "From:"
|
70 |
+
msgstr "Feladó:"
|
71 |
+
|
72 |
+
#: contact-form-7/admin/admin-panel.php:113
|
73 |
+
#: contact-form-7/admin/admin-panel.php:169
|
74 |
+
msgid "Subject:"
|
75 |
+
msgstr "Tárgy:"
|
76 |
+
|
77 |
+
#: contact-form-7/admin/admin-panel.php:118
|
78 |
+
#: contact-form-7/admin/admin-panel.php:174
|
79 |
+
msgid "Additional headers:"
|
80 |
+
msgstr "További fejlécek:"
|
81 |
+
|
82 |
+
#: contact-form-7/admin/admin-panel.php:122
|
83 |
+
#: contact-form-7/admin/admin-panel.php:178
|
84 |
+
msgid "File attachments:"
|
85 |
+
msgstr "Csatolt fájlok:"
|
86 |
+
|
87 |
+
#: contact-form-7/admin/admin-panel.php:124
|
88 |
+
#: contact-form-7/admin/admin-panel.php:180
|
89 |
+
msgid "(You need WordPress 2.7 or greater to use this feature)"
|
90 |
+
msgstr "(Wordpress 2.7 vagy későbbi változat szükséges ehhez a funkcióhoz.)"
|
91 |
+
|
92 |
+
#: contact-form-7/admin/admin-panel.php:132
|
93 |
+
#: contact-form-7/admin/admin-panel.php:188
|
94 |
+
msgid "Use HTML content type"
|
95 |
+
msgstr "Használj HTML tartalmi típust"
|
96 |
+
|
97 |
+
#: contact-form-7/admin/admin-panel.php:137
|
98 |
+
#: contact-form-7/admin/admin-panel.php:193
|
99 |
+
msgid "Message body:"
|
100 |
+
msgstr "Üzenet törzse:"
|
101 |
+
|
102 |
+
#: contact-form-7/admin/admin-panel.php:148
|
103 |
+
msgid "Mail (2)"
|
104 |
+
msgstr "Levél (2)"
|
105 |
+
|
106 |
+
#: contact-form-7/admin/admin-panel.php:155
|
107 |
+
msgid "Use mail (2)"
|
108 |
+
msgstr "Levél (2) használata"
|
109 |
+
|
110 |
+
#: contact-form-7/admin/admin-panel.php:204
|
111 |
+
msgid "Messages"
|
112 |
+
msgstr "Üzenetek"
|
113 |
+
|
114 |
+
#: contact-form-7/admin/admin-panel.php:212
|
115 |
+
msgid "Sender's message was sent successfully"
|
116 |
+
msgstr "Az üzenet sikeresen el lett küldve"
|
117 |
+
|
118 |
+
#: contact-form-7/admin/admin-panel.php:216
|
119 |
+
msgid "Sender's message was failed to send"
|
120 |
+
msgstr "Sikertelen üzenet küldés"
|
121 |
+
|
122 |
+
#: contact-form-7/admin/admin-panel.php:220
|
123 |
+
msgid "Akismet judged the sending activity as spamming"
|
124 |
+
msgstr "Akismet spamnek tekintette a küldést"
|
125 |
+
|
126 |
+
#: contact-form-7/admin/admin-panel.php:224
|
127 |
+
msgid "Validation errors occurred"
|
128 |
+
msgstr "Jóváhagyás hiba történt"
|
129 |
+
|
130 |
+
#: contact-form-7/admin/admin-panel.php:228
|
131 |
+
msgid "There is a field that sender is needed to fill in"
|
132 |
+
msgstr "Van egy mező, amit a küldőnek ki kell töltenie"
|
133 |
+
|
134 |
+
#: contact-form-7/admin/admin-panel.php:232
|
135 |
+
msgid "Email address that sender entered is invalid"
|
136 |
+
msgstr "A beírt e-mail cím helytelen"
|
137 |
+
|
138 |
+
#: contact-form-7/admin/admin-panel.php:236
|
139 |
+
msgid "There is a field of term that sender is needed to accept"
|
140 |
+
msgstr "Van egy mező, amit a küldőnek el kell fogadnia"
|
141 |
+
|
142 |
+
#: contact-form-7/admin/admin-panel.php:240
|
143 |
+
msgid "Sender doesn't enter the correct answer to the quiz"
|
144 |
+
msgstr "Feladó nem adta meg a teszt kérdésre a helyes választ"
|
145 |
+
|
146 |
+
#: contact-form-7/admin/admin-panel.php:244
|
147 |
+
msgid "The code that sender entered does not match the CAPTCHA"
|
148 |
+
msgstr "A küldő által beírt kód nem egyezik a CAPTCHA-val"
|
149 |
+
|
150 |
+
#: contact-form-7/admin/admin-panel.php:248
|
151 |
+
msgid "Uploading a file fails for any reason"
|
152 |
+
msgstr "Fájl feltöltés sikertelen"
|
153 |
+
|
154 |
+
#: contact-form-7/admin/admin-panel.php:252
|
155 |
+
msgid "Uploaded file is not allowed file type"
|
156 |
+
msgstr "Feltöltött fájl típusa nem megengedett"
|
157 |
+
|
158 |
+
#: contact-form-7/admin/admin-panel.php:256
|
159 |
+
msgid "Uploaded file is too large"
|
160 |
+
msgstr "Feltöltött fájl túl nagy"
|
161 |
+
|
162 |
+
#: contact-form-7/admin/admin-panel.php:269
|
163 |
+
msgid "Additional Settings"
|
164 |
+
msgstr "További beállítások"
|
165 |
+
|
166 |
+
#: contact-form-7/admin/admin.php:157
|
167 |
msgid "optional"
|
168 |
msgstr "választható"
|
169 |
|
170 |
+
#: contact-form-7/admin/admin.php:158
|
171 |
msgid "Generate Tag"
|
172 |
msgstr "Általános Címke"
|
173 |
|
174 |
+
#: contact-form-7/admin/admin.php:159
|
175 |
msgid "Text field"
|
176 |
msgstr "Szöveg mező"
|
177 |
|
178 |
+
#: contact-form-7/admin/admin.php:160
|
179 |
msgid "Email field"
|
180 |
msgstr "E-mail mező"
|
181 |
|
182 |
+
#: contact-form-7/admin/admin.php:161
|
183 |
msgid "Text area"
|
184 |
msgstr "Többsoros szöveg"
|
185 |
|
186 |
+
#: contact-form-7/admin/admin.php:162
|
187 |
msgid "Drop-down menu"
|
188 |
msgstr "Lenyíló menü"
|
189 |
|
190 |
+
#: contact-form-7/admin/admin.php:163
|
191 |
msgid "Checkboxes"
|
192 |
msgstr "Jelölőnégyzetek"
|
193 |
|
194 |
+
#: contact-form-7/admin/admin.php:164
|
195 |
msgid "Radio buttons"
|
196 |
msgstr "Választógombok"
|
197 |
|
198 |
+
#: contact-form-7/admin/admin.php:165
|
199 |
msgid "Acceptance"
|
200 |
msgstr "Elfogadás"
|
201 |
|
202 |
+
#: contact-form-7/admin/admin.php:166
|
203 |
msgid "Make this checkbox checked by default?"
|
204 |
msgstr "Ez a jelölőnyégyzet alapértelmezettnek be legyen kapcsolva?"
|
205 |
|
206 |
+
#: contact-form-7/admin/admin.php:167
|
207 |
msgid "Make this checkbox work inversely?"
|
208 |
msgstr "Ez a jelölőnégyzet működjön fordítva?"
|
209 |
|
210 |
+
#: contact-form-7/admin/admin.php:168
|
211 |
msgid "* That means visitor who accepts the term unchecks it."
|
212 |
msgstr "* Azt jelenti, hogy az a látogató kikapcsolja, aki elfogadja a feltételeket."
|
213 |
|
214 |
+
#: contact-form-7/admin/admin.php:169
|
215 |
msgid "CAPTCHA"
|
216 |
msgstr "CAPTCHA"
|
217 |
|
218 |
+
#: contact-form-7/admin/admin.php:170
|
219 |
+
msgid "Quiz"
|
220 |
+
msgstr "Teszt"
|
221 |
+
|
222 |
+
#: contact-form-7/admin/admin.php:171
|
223 |
+
msgid "Quizzes"
|
224 |
+
msgstr "Tesztek"
|
225 |
+
|
226 |
+
#: contact-form-7/admin/admin.php:172
|
227 |
+
msgid "* quiz|answer (e.g. 1+1=?|2)"
|
228 |
+
msgstr "* teszt|válasz (pl. 1+1=?|2)"
|
229 |
+
|
230 |
+
#: contact-form-7/admin/admin.php:173
|
231 |
msgid "File upload"
|
232 |
msgstr "Fájl feltöltés"
|
233 |
|
234 |
+
#: contact-form-7/admin/admin.php:174
|
235 |
+
msgid "bytes"
|
236 |
+
msgstr "bájtok"
|
237 |
+
|
238 |
+
#: contact-form-7/admin/admin.php:175
|
239 |
msgid "Submit button"
|
240 |
msgstr "Elfogadás gomb"
|
241 |
|
242 |
+
#: contact-form-7/admin/admin.php:176
|
243 |
msgid "Name"
|
244 |
msgstr "Név"
|
245 |
|
246 |
+
#: contact-form-7/admin/admin.php:177
|
247 |
msgid "Required field?"
|
248 |
msgstr "Kötelező mező?"
|
249 |
|
250 |
+
#: contact-form-7/admin/admin.php:178
|
251 |
msgid "Allow multiple selections?"
|
252 |
msgstr "Engedélyezett a többszörös választás?"
|
253 |
|
254 |
+
#: contact-form-7/admin/admin.php:179
|
255 |
msgid "Insert a blank item as the first option?"
|
256 |
msgstr "Első lehetőségnek egy üres tétel beszúrása?"
|
257 |
|
258 |
+
#: contact-form-7/admin/admin.php:180
|
259 |
msgid "Make checkboxes exclusive?"
|
260 |
msgstr "A jelölőnégyzetek kizáróak legyenek?"
|
261 |
|
262 |
+
#: contact-form-7/admin/admin.php:181
|
263 |
msgid "Choices"
|
264 |
msgstr "Lehetőségek"
|
265 |
|
266 |
+
#: contact-form-7/admin/admin.php:182
|
267 |
msgid "Label"
|
268 |
msgstr "Cimke"
|
269 |
|
270 |
+
#: contact-form-7/admin/admin.php:183
|
271 |
msgid "Default value"
|
272 |
msgstr "Alapértelmezett érték"
|
273 |
|
274 |
+
#: contact-form-7/admin/admin.php:184
|
275 |
msgid "Akismet"
|
276 |
msgstr "Akismet"
|
277 |
|
278 |
+
#: contact-form-7/admin/admin.php:185
|
279 |
msgid "This field requires author's name"
|
280 |
msgstr "Ebbe a mezőbe a szerző neve szükséges"
|
281 |
|
282 |
+
#: contact-form-7/admin/admin.php:186
|
283 |
msgid "This field requires author's URL"
|
284 |
msgstr "Ebbe a mezőbe a szerző URL-je szükséges"
|
285 |
|
286 |
+
#: contact-form-7/admin/admin.php:187
|
287 |
msgid "This field requires author's email address"
|
288 |
msgstr "Ebbe a mezőbe a szerző e-mail címe szükséges"
|
289 |
|
290 |
+
#: contact-form-7/admin/admin.php:188
|
291 |
msgid "Copy this code and paste it into the form left."
|
292 |
msgstr "Másold és illeszd be ezt a kódot a bal oldali űrlapba."
|
293 |
|
294 |
+
#: contact-form-7/admin/admin.php:189
|
295 |
msgid "Foreground color"
|
296 |
msgstr "Előtér szín"
|
297 |
|
298 |
+
#: contact-form-7/admin/admin.php:190
|
299 |
msgid "Background color"
|
300 |
msgstr "Háttér szín"
|
301 |
|
302 |
+
#: contact-form-7/admin/admin.php:191
|
303 |
msgid "Image size"
|
304 |
msgstr "Kép mérete"
|
305 |
|
306 |
+
#: contact-form-7/admin/admin.php:192
|
307 |
msgid "Small"
|
308 |
msgstr "Kicsi"
|
309 |
|
310 |
+
#: contact-form-7/admin/admin.php:193
|
311 |
msgid "Medium"
|
312 |
msgstr "Közepes"
|
313 |
|
314 |
+
#: contact-form-7/admin/admin.php:194
|
315 |
msgid "Large"
|
316 |
msgstr "Nagy"
|
317 |
|
318 |
+
#: contact-form-7/admin/admin.php:195
|
319 |
msgid "Image settings"
|
320 |
msgstr "Kép beállítások"
|
321 |
|
322 |
+
#: contact-form-7/admin/admin.php:196
|
323 |
msgid "Input field settings"
|
324 |
msgstr "Beviteli mező beállításai"
|
325 |
|
326 |
+
#: contact-form-7/admin/admin.php:197
|
327 |
msgid "For image"
|
328 |
msgstr "Képnek"
|
329 |
|
330 |
+
#: contact-form-7/admin/admin.php:198
|
331 |
msgid "For input field"
|
332 |
msgstr "Beviteli mezőnek"
|
333 |
|
334 |
+
#: contact-form-7/admin/admin.php:199
|
335 |
msgid "* One choice per line."
|
336 |
msgstr "* Egy választás soronként."
|
337 |
|
338 |
+
#: contact-form-7/admin/admin.php:200
|
339 |
msgid "Show"
|
340 |
msgstr "Mutat"
|
341 |
|
342 |
+
#: contact-form-7/admin/admin.php:201
|
343 |
msgid "Hide"
|
344 |
msgstr "Elrejt"
|
345 |
|
346 |
+
#: contact-form-7/admin/admin.php:202
|
347 |
msgid "File size limit"
|
348 |
msgstr "Fájl méret korlát"
|
349 |
|
350 |
+
#: contact-form-7/admin/admin.php:203
|
351 |
msgid "Acceptable file types"
|
352 |
msgstr "Használható fájl típusok"
|
353 |
|
354 |
+
#: contact-form-7/admin/admin.php:204
|
355 |
+
msgid "Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed."
|
356 |
+
msgstr "Megjegyzés: CAPTCHA használatához a Really Simple CAPTCHA plugin telepítése szükséges."
|
357 |
+
|
358 |
+
#: contact-form-7/admin/admin.php:223
|
359 |
msgid "Contact form created."
|
360 |
msgstr "Kapcsolat űrlap létrehozva."
|
361 |
|
362 |
+
#: contact-form-7/admin/admin.php:226
|
363 |
msgid "Contact form saved."
|
364 |
msgstr "Kapcsolat űrlap elmentve."
|
365 |
|
366 |
+
#: contact-form-7/admin/admin.php:229
|
367 |
msgid "Contact form deleted."
|
368 |
msgstr "Kapcsolat űrlap törölve."
|
369 |
|
370 |
+
#: contact-form-7/admin/admin.php:240
|
371 |
msgid "Untitled"
|
372 |
msgstr "Cím nélkül"
|
373 |
|
374 |
+
#: contact-form-7/admin/admin.php:253
|
375 |
msgid "Your Name"
|
376 |
msgstr "Neved"
|
377 |
|
378 |
+
#: contact-form-7/admin/admin.php:253
|
379 |
+
#: contact-form-7/admin/admin.php:255
|
380 |
msgid "(required)"
|
381 |
msgstr "(szükséges)"
|
382 |
|
383 |
+
#: contact-form-7/admin/admin.php:255
|
384 |
msgid "Your Email"
|
385 |
msgstr "E-mail címed"
|
386 |
|
387 |
+
#: contact-form-7/admin/admin.php:257
|
388 |
msgid "Subject"
|
389 |
msgstr "Tárgy"
|
390 |
|
391 |
+
#: contact-form-7/admin/admin.php:259
|
392 |
msgid "Your Message"
|
393 |
msgstr "Üzeneted"
|
394 |
|
395 |
+
#: contact-form-7/admin/admin.php:261
|
396 |
+
#: contact-form-7/includes/classes.php:398
|
397 |
msgid "Send"
|
398 |
msgstr "Küldés"
|
399 |
|
400 |
+
#: contact-form-7/admin/admin.php:334
|
401 |
+
msgid "Settings"
|
402 |
+
msgstr "Beállítások"
|
403 |
+
|
404 |
+
#: contact-form-7/admin/admin.php:355
|
405 |
+
msgid "Contact Form 7 needs your support. Please donate today."
|
406 |
+
msgstr "Contact Form 7-nek szüksége van a támogatásodra. Kérlek adományoz!"
|
407 |
+
|
408 |
+
#: contact-form-7/admin/admin.php:356
|
409 |
+
msgid "Is this plugin useful for you? If you like it, please help the developer."
|
410 |
+
msgstr "Hasznos neked ez a plugin? Ha tetszik, kérlek segítsd a fejlesztőt!"
|
411 |
+
|
412 |
+
#: contact-form-7/admin/admin.php:357
|
413 |
+
msgid "Your contribution is needed for making this plugin better."
|
414 |
+
msgstr "Adakozásod szükséges, hogy jobb legyen ez a plugin. "
|
415 |
+
|
416 |
+
#: contact-form-7/admin/admin.php:358
|
417 |
+
msgid "Developing a plugin and providing user support is really hard work. Please help."
|
418 |
+
msgstr "Plugin fejlesztése és támogatása tényleg nehéz munka. Kérlek segíts!"
|
419 |
+
|
420 |
+
#: contact-form-7/includes/classes.php:339
|
421 |
+
msgid "To use CAPTCHA, you need <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> plugin installed."
|
422 |
+
msgstr "CAPTCHA használatához a <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> plugin telepítése szükséges."
|
423 |
+
|
424 |
+
#: contact-form-7/includes/functions.php:6
|
425 |
msgid "Your message was sent successfully. Thanks."
|
426 |
msgstr "Az üzenet sikeresen el lett küldve. Köszönjük!"
|
427 |
|
428 |
+
#: contact-form-7/includes/functions.php:8
|
429 |
+
#: contact-form-7/includes/functions.php:10
|
430 |
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
431 |
msgstr "Üzenet küldése sikertelen. Kérjük próbálja meg később vagy más módon keresse a kapcsolatot!"
|
432 |
|
433 |
+
#: contact-form-7/includes/functions.php:12
|
434 |
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
435 |
msgstr "Érvényesítési hiba. Kérem a mezők megerősítését és újra elfogadását!"
|
436 |
|
437 |
+
#: contact-form-7/includes/functions.php:14
|
438 |
msgid "Please accept the terms to proceed."
|
439 |
msgstr "Kérem a feltételek elfogadását a folytatáshoz!"
|
440 |
|
441 |
+
#: contact-form-7/includes/functions.php:16
|
442 |
msgid "Email address seems invalid."
|
443 |
msgstr "Az e-mail cím nem tűnik helyesnek."
|
444 |
|
445 |
+
#: contact-form-7/includes/functions.php:18
|
446 |
msgid "Please fill the required field."
|
447 |
msgstr "Kérem a szükséges mezők kitöltését!"
|
448 |
|
449 |
+
#: contact-form-7/includes/functions.php:20
|
450 |
msgid "Your entered code is incorrect."
|
451 |
msgstr "A beírt kódod hibás."
|
452 |
|
453 |
+
#: contact-form-7/includes/functions.php:22
|
454 |
+
msgid "Your answer is not correct."
|
455 |
+
msgstr "A válasz ."
|
456 |
+
|
457 |
+
#: contact-form-7/includes/functions.php:24
|
458 |
msgid "Failed to upload file."
|
459 |
msgstr "Sikertelen feltöltés."
|
460 |
|
461 |
+
#: contact-form-7/includes/functions.php:26
|
462 |
msgid "This file type is not allowed."
|
463 |
msgstr "Ez a fájl típus nem megengedett."
|
464 |
|
465 |
+
#: contact-form-7/includes/functions.php:28
|
466 |
msgid "This file is too large."
|
467 |
msgstr "Ez a fájl túl nagy."
|
468 |
|
469 |
+
#~ msgid "Delete this contact form"
|
470 |
+
#~ msgstr "Ennek a kapcsolat űrlapnak a törlése."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
471 |
|
languages/wpcf7-it_IT.mo
CHANGED
Binary file
|
languages/wpcf7-it_IT.po
CHANGED
@@ -2,12 +2,12 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Contact Form 7 in italiano\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2009-
|
6 |
-
"PO-Revision-Date: 2009-
|
7 |
"Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
|
8 |
"Language-Team: Gianni Diurno | http://gidibao.net/ <gidibao@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Poedit-Language: Italian\n"
|
13 |
"X-Poedit-Country: ITALY\n"
|
@@ -16,290 +16,298 @@ msgstr ""
|
|
16 |
"X-Poedit-Basepath: ../..\n"
|
17 |
"X-Poedit-SearchPath-0: contact-form-7\n"
|
18 |
|
19 |
-
#: contact-form-7/wp-contact-form-7.php:
|
20 |
msgid "Contact form"
|
21 |
msgstr "Modulo di contatto"
|
22 |
|
23 |
-
#: contact-form-7/wp-contact-form-7.php:
|
24 |
#: contact-form-7/includes/admin-panel.php:5
|
25 |
msgid "Contact Form 7"
|
26 |
msgstr "Contact Form 7"
|
27 |
|
28 |
-
#: contact-form-7/wp-contact-form-7.php:
|
29 |
msgid "optional"
|
30 |
msgstr "facoltativo"
|
31 |
|
32 |
-
#: contact-form-7/wp-contact-form-7.php:
|
33 |
msgid "Generate Tag"
|
34 |
msgstr "Genera tag"
|
35 |
|
36 |
-
#: contact-form-7/wp-contact-form-7.php:
|
37 |
msgid "Text field"
|
38 |
msgstr "Campo testo"
|
39 |
|
40 |
-
#: contact-form-7/wp-contact-form-7.php:
|
41 |
msgid "Email field"
|
42 |
msgstr "Campo email"
|
43 |
|
44 |
-
#: contact-form-7/wp-contact-form-7.php:
|
45 |
msgid "Text area"
|
46 |
msgstr "Area di testo"
|
47 |
|
48 |
-
#: contact-form-7/wp-contact-form-7.php:
|
49 |
msgid "Drop-down menu"
|
50 |
msgstr "Menu a tendina"
|
51 |
|
52 |
-
#: contact-form-7/wp-contact-form-7.php:
|
53 |
msgid "Checkboxes"
|
54 |
msgstr "Caselle di verifica"
|
55 |
|
56 |
-
#: contact-form-7/wp-contact-form-7.php:
|
57 |
msgid "Radio buttons"
|
58 |
msgstr "Radio buttons"
|
59 |
|
60 |
-
#: contact-form-7/wp-contact-form-7.php:
|
61 |
msgid "Acceptance"
|
62 |
msgstr "Consenso"
|
63 |
|
64 |
-
#: contact-form-7/wp-contact-form-7.php:
|
65 |
msgid "Make this checkbox checked by default?"
|
66 |
msgstr "Desideri che questa casella di verifica sia selezionata (predefinito)?"
|
67 |
|
68 |
-
#: contact-form-7/wp-contact-form-7.php:
|
69 |
msgid "Make this checkbox work inversely?"
|
70 |
msgstr "Desideri che questa casella di verifica funzioni in modalità inversa?"
|
71 |
|
72 |
-
#: contact-form-7/wp-contact-form-7.php:
|
73 |
msgid "* That means visitor who accepts the term unchecks it."
|
74 |
msgstr "* Ciò indica che il visitatore dovrà de-selezionare la casella per esprimere il proprio consenso."
|
75 |
|
76 |
-
#: contact-form-7/wp-contact-form-7.php:
|
77 |
msgid "CAPTCHA"
|
78 |
msgstr "CAPTCHA"
|
79 |
|
80 |
-
#: contact-form-7/wp-contact-form-7.php:
|
81 |
msgid "Quiz"
|
82 |
msgstr "Quesito"
|
83 |
|
84 |
-
#: contact-form-7/wp-contact-form-7.php:
|
85 |
msgid "Quizzes"
|
86 |
msgstr "Quesiti"
|
87 |
|
88 |
-
#: contact-form-7/wp-contact-form-7.php:
|
89 |
msgid "* quiz|answer (e.g. 1+1=?|2)"
|
90 |
msgstr "* quesito|domanda (ad esempio: 1+1=?|2)"
|
91 |
|
92 |
-
#: contact-form-7/wp-contact-form-7.php:
|
93 |
msgid "File upload"
|
94 |
msgstr "File caricato"
|
95 |
|
96 |
-
#: contact-form-7/wp-contact-form-7.php:
|
97 |
msgid "bytes"
|
98 |
msgstr "bytes"
|
99 |
|
100 |
-
#: contact-form-7/wp-contact-form-7.php:
|
101 |
msgid "Submit button"
|
102 |
msgstr "Pulsante di invio"
|
103 |
|
104 |
-
#: contact-form-7/wp-contact-form-7.php:
|
105 |
msgid "Name"
|
106 |
msgstr "Nome"
|
107 |
|
108 |
-
#: contact-form-7/wp-contact-form-7.php:
|
109 |
msgid "Required field?"
|
110 |
msgstr "Campi obbligatori?"
|
111 |
|
112 |
-
#: contact-form-7/wp-contact-form-7.php:
|
113 |
msgid "Allow multiple selections?"
|
114 |
msgstr "Desideri permettere le selezioni multiple?"
|
115 |
|
116 |
-
#: contact-form-7/wp-contact-form-7.php:
|
117 |
msgid "Insert a blank item as the first option?"
|
118 |
msgstr "Desideri lasciare in bianco la prima opzione?"
|
119 |
|
120 |
-
#: contact-form-7/wp-contact-form-7.php:
|
121 |
msgid "Make checkboxes exclusive?"
|
122 |
msgstr "Desideri escludere le caselle di verifica?"
|
123 |
|
124 |
-
#: contact-form-7/wp-contact-form-7.php:
|
125 |
msgid "Choices"
|
126 |
msgstr "Opzioni"
|
127 |
|
128 |
-
#: contact-form-7/wp-contact-form-7.php:
|
129 |
msgid "Label"
|
130 |
msgstr "Etichetta"
|
131 |
|
132 |
-
#: contact-form-7/wp-contact-form-7.php:
|
133 |
msgid "Default value"
|
134 |
msgstr "Valore predefinito"
|
135 |
|
136 |
-
#: contact-form-7/wp-contact-form-7.php:
|
137 |
msgid "Akismet"
|
138 |
msgstr "Akismet"
|
139 |
|
140 |
-
#: contact-form-7/wp-contact-form-7.php:
|
141 |
msgid "This field requires author's name"
|
142 |
msgstr "Questo campo necessita del nome autore"
|
143 |
|
144 |
-
#: contact-form-7/wp-contact-form-7.php:
|
145 |
msgid "This field requires author's URL"
|
146 |
msgstr "Questo campo necessita dell'URL autore"
|
147 |
|
148 |
-
#: contact-form-7/wp-contact-form-7.php:
|
149 |
msgid "This field requires author's email address"
|
150 |
msgstr "Questo campo necessita dell'indirizzo email autore"
|
151 |
|
152 |
-
#: contact-form-7/wp-contact-form-7.php:
|
153 |
msgid "Copy this code and paste it into the form left."
|
154 |
msgstr "Copia questo codice ed incollalo nel modulo a sinistra."
|
155 |
|
156 |
-
#: contact-form-7/wp-contact-form-7.php:
|
157 |
msgid "Foreground color"
|
158 |
msgstr "Colore di primo piano"
|
159 |
|
160 |
-
#: contact-form-7/wp-contact-form-7.php:
|
161 |
msgid "Background color"
|
162 |
msgstr "Colore di sfondo"
|
163 |
|
164 |
-
#: contact-form-7/wp-contact-form-7.php:
|
165 |
msgid "Image size"
|
166 |
msgstr "Dimensione immagine"
|
167 |
|
168 |
-
#: contact-form-7/wp-contact-form-7.php:
|
169 |
msgid "Small"
|
170 |
msgstr "Piccola"
|
171 |
|
172 |
-
#: contact-form-7/wp-contact-form-7.php:
|
173 |
msgid "Medium"
|
174 |
msgstr "Media"
|
175 |
|
176 |
-
#: contact-form-7/wp-contact-form-7.php:
|
177 |
msgid "Large"
|
178 |
msgstr "Grande"
|
179 |
|
180 |
-
#: contact-form-7/wp-contact-form-7.php:
|
181 |
msgid "Image settings"
|
182 |
msgstr "Impostazioni immagine"
|
183 |
|
184 |
-
#: contact-form-7/wp-contact-form-7.php:
|
185 |
msgid "Input field settings"
|
186 |
msgstr "Impostazione campo dati"
|
187 |
|
188 |
-
#: contact-form-7/wp-contact-form-7.php:
|
189 |
msgid "For image"
|
190 |
msgstr "Per immagine"
|
191 |
|
192 |
-
#: contact-form-7/wp-contact-form-7.php:
|
193 |
msgid "For input field"
|
194 |
msgstr "Per campo dati"
|
195 |
|
196 |
-
#: contact-form-7/wp-contact-form-7.php:
|
197 |
msgid "* One choice per line."
|
198 |
msgstr "* Una opzione per linea."
|
199 |
|
200 |
-
#: contact-form-7/wp-contact-form-7.php:
|
201 |
msgid "Show"
|
202 |
msgstr "Mostra"
|
203 |
|
204 |
-
#: contact-form-7/wp-contact-form-7.php:
|
205 |
msgid "Hide"
|
206 |
msgstr "Nascondi"
|
207 |
|
208 |
-
#: contact-form-7/wp-contact-form-7.php:
|
209 |
msgid "File size limit"
|
210 |
msgstr "Limite dimensione file"
|
211 |
|
212 |
-
#: contact-form-7/wp-contact-form-7.php:
|
213 |
msgid "Acceptable file types"
|
214 |
msgstr "Tipologia di file consentiti"
|
215 |
|
216 |
-
#: contact-form-7/wp-contact-form-7.php:
|
|
|
|
|
|
|
|
|
217 |
msgid "Contact form created."
|
218 |
msgstr "Il modulo di contatto é stato creato."
|
219 |
|
220 |
-
#: contact-form-7/wp-contact-form-7.php:
|
221 |
msgid "Contact form saved."
|
222 |
msgstr "Il modulo di contatto é stato salvato. "
|
223 |
|
224 |
-
#: contact-form-7/wp-contact-form-7.php:
|
225 |
msgid "Contact form deleted."
|
226 |
msgstr "Il modulo di contatto é stato cancellato. "
|
227 |
|
228 |
-
#: contact-form-7/wp-contact-form-7.php:
|
229 |
msgid "Untitled"
|
230 |
msgstr "Senza titolo"
|
231 |
|
232 |
-
#: contact-form-7/wp-contact-form-7.php:
|
233 |
msgid "Your Name"
|
234 |
msgstr "Il tuo nome"
|
235 |
|
236 |
-
#: contact-form-7/wp-contact-form-7.php:
|
237 |
-
#: contact-form-7/wp-contact-form-7.php:
|
238 |
msgid "(required)"
|
239 |
msgstr "(richiesto)"
|
240 |
|
241 |
-
#: contact-form-7/wp-contact-form-7.php:
|
242 |
msgid "Your Email"
|
243 |
msgstr "La tua email"
|
244 |
|
245 |
-
#: contact-form-7/wp-contact-form-7.php:
|
246 |
msgid "Subject"
|
247 |
msgstr "Oggetto"
|
248 |
|
249 |
-
#: contact-form-7/wp-contact-form-7.php:
|
250 |
msgid "Your Message"
|
251 |
msgstr "Il tuo messaggio"
|
252 |
|
253 |
-
#: contact-form-7/wp-contact-form-7.php:
|
254 |
-
#: contact-form-7/wp-contact-form-7.php:
|
255 |
msgid "Send"
|
256 |
msgstr "Invia"
|
257 |
|
258 |
-
#: contact-form-7/wp-contact-form-7.php:
|
259 |
msgid "Your message was sent successfully. Thanks."
|
260 |
msgstr "Il tuo messaggio é stato inviato con successo. Grazie."
|
261 |
|
262 |
-
#: contact-form-7/wp-contact-form-7.php:
|
263 |
-
#: contact-form-7/wp-contact-form-7.php:
|
264 |
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
265 |
msgstr "Si é verificato un errore durante l'invio del tuo messaggio. Riprova in un secondo momento oppure contatta in un altro modo l'amministratore del sito."
|
266 |
|
267 |
-
#: contact-form-7/wp-contact-form-7.php:
|
268 |
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
269 |
msgstr "Si é verificato un errore di convalida. Controlla i campi obbligatori ed invia nuovamente il messaggio."
|
270 |
|
271 |
-
#: contact-form-7/wp-contact-form-7.php:
|
272 |
msgid "Please accept the terms to proceed."
|
273 |
msgstr "Accetta i termini prima di procedere"
|
274 |
|
275 |
-
#: contact-form-7/wp-contact-form-7.php:
|
276 |
msgid "Email address seems invalid."
|
277 |
msgstr "Pare che l'indirizzo email non sia valido."
|
278 |
|
279 |
-
#: contact-form-7/wp-contact-form-7.php:
|
280 |
msgid "Please fill the required field."
|
281 |
msgstr "Riempire tutti i campi richiesti. Grazie"
|
282 |
|
283 |
-
#: contact-form-7/wp-contact-form-7.php:
|
284 |
msgid "Your entered code is incorrect."
|
285 |
msgstr "Il codice che hai inserito non è valido"
|
286 |
|
287 |
-
#: contact-form-7/wp-contact-form-7.php:
|
288 |
msgid "Your answer is not correct."
|
289 |
msgstr "La risposta che hai inserito non é corretta"
|
290 |
|
291 |
-
#: contact-form-7/wp-contact-form-7.php:
|
292 |
msgid "Failed to upload file."
|
293 |
msgstr "Si é verificato un errore durante il caricamento del file"
|
294 |
|
295 |
-
#: contact-form-7/wp-contact-form-7.php:
|
296 |
msgid "This file type is not allowed."
|
297 |
msgstr "Questo tipo di file non é permesso"
|
298 |
|
299 |
-
#: contact-form-7/wp-contact-form-7.php:
|
300 |
msgid "This file is too large."
|
301 |
msgstr "Questo file é troppo grande"
|
302 |
|
|
|
|
|
|
|
|
|
303 |
#: contact-form-7/includes/admin-panel.php:20
|
304 |
msgid "Add new"
|
305 |
msgstr "Aggiungi nuovo"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Contact Form 7 in italiano\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-03-15 03:27+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-04-24 00:57+0100\n"
|
7 |
"Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
|
8 |
"Language-Team: Gianni Diurno | http://gidibao.net/ <gidibao@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Poedit-Language: Italian\n"
|
13 |
"X-Poedit-Country: ITALY\n"
|
16 |
"X-Poedit-Basepath: ../..\n"
|
17 |
"X-Poedit-SearchPath-0: contact-form-7\n"
|
18 |
|
19 |
+
#: contact-form-7/wp-contact-form-7.php:405
|
20 |
msgid "Contact form"
|
21 |
msgstr "Modulo di contatto"
|
22 |
|
23 |
+
#: contact-form-7/wp-contact-form-7.php:593
|
24 |
#: contact-form-7/includes/admin-panel.php:5
|
25 |
msgid "Contact Form 7"
|
26 |
msgstr "Contact Form 7"
|
27 |
|
28 |
+
#: contact-form-7/wp-contact-form-7.php:616
|
29 |
msgid "optional"
|
30 |
msgstr "facoltativo"
|
31 |
|
32 |
+
#: contact-form-7/wp-contact-form-7.php:617
|
33 |
msgid "Generate Tag"
|
34 |
msgstr "Genera tag"
|
35 |
|
36 |
+
#: contact-form-7/wp-contact-form-7.php:618
|
37 |
msgid "Text field"
|
38 |
msgstr "Campo testo"
|
39 |
|
40 |
+
#: contact-form-7/wp-contact-form-7.php:619
|
41 |
msgid "Email field"
|
42 |
msgstr "Campo email"
|
43 |
|
44 |
+
#: contact-form-7/wp-contact-form-7.php:620
|
45 |
msgid "Text area"
|
46 |
msgstr "Area di testo"
|
47 |
|
48 |
+
#: contact-form-7/wp-contact-form-7.php:621
|
49 |
msgid "Drop-down menu"
|
50 |
msgstr "Menu a tendina"
|
51 |
|
52 |
+
#: contact-form-7/wp-contact-form-7.php:622
|
53 |
msgid "Checkboxes"
|
54 |
msgstr "Caselle di verifica"
|
55 |
|
56 |
+
#: contact-form-7/wp-contact-form-7.php:623
|
57 |
msgid "Radio buttons"
|
58 |
msgstr "Radio buttons"
|
59 |
|
60 |
+
#: contact-form-7/wp-contact-form-7.php:624
|
61 |
msgid "Acceptance"
|
62 |
msgstr "Consenso"
|
63 |
|
64 |
+
#: contact-form-7/wp-contact-form-7.php:625
|
65 |
msgid "Make this checkbox checked by default?"
|
66 |
msgstr "Desideri che questa casella di verifica sia selezionata (predefinito)?"
|
67 |
|
68 |
+
#: contact-form-7/wp-contact-form-7.php:626
|
69 |
msgid "Make this checkbox work inversely?"
|
70 |
msgstr "Desideri che questa casella di verifica funzioni in modalità inversa?"
|
71 |
|
72 |
+
#: contact-form-7/wp-contact-form-7.php:627
|
73 |
msgid "* That means visitor who accepts the term unchecks it."
|
74 |
msgstr "* Ciò indica che il visitatore dovrà de-selezionare la casella per esprimere il proprio consenso."
|
75 |
|
76 |
+
#: contact-form-7/wp-contact-form-7.php:628
|
77 |
msgid "CAPTCHA"
|
78 |
msgstr "CAPTCHA"
|
79 |
|
80 |
+
#: contact-form-7/wp-contact-form-7.php:629
|
81 |
msgid "Quiz"
|
82 |
msgstr "Quesito"
|
83 |
|
84 |
+
#: contact-form-7/wp-contact-form-7.php:630
|
85 |
msgid "Quizzes"
|
86 |
msgstr "Quesiti"
|
87 |
|
88 |
+
#: contact-form-7/wp-contact-form-7.php:631
|
89 |
msgid "* quiz|answer (e.g. 1+1=?|2)"
|
90 |
msgstr "* quesito|domanda (ad esempio: 1+1=?|2)"
|
91 |
|
92 |
+
#: contact-form-7/wp-contact-form-7.php:632
|
93 |
msgid "File upload"
|
94 |
msgstr "File caricato"
|
95 |
|
96 |
+
#: contact-form-7/wp-contact-form-7.php:633
|
97 |
msgid "bytes"
|
98 |
msgstr "bytes"
|
99 |
|
100 |
+
#: contact-form-7/wp-contact-form-7.php:634
|
101 |
msgid "Submit button"
|
102 |
msgstr "Pulsante di invio"
|
103 |
|
104 |
+
#: contact-form-7/wp-contact-form-7.php:635
|
105 |
msgid "Name"
|
106 |
msgstr "Nome"
|
107 |
|
108 |
+
#: contact-form-7/wp-contact-form-7.php:636
|
109 |
msgid "Required field?"
|
110 |
msgstr "Campi obbligatori?"
|
111 |
|
112 |
+
#: contact-form-7/wp-contact-form-7.php:637
|
113 |
msgid "Allow multiple selections?"
|
114 |
msgstr "Desideri permettere le selezioni multiple?"
|
115 |
|
116 |
+
#: contact-form-7/wp-contact-form-7.php:638
|
117 |
msgid "Insert a blank item as the first option?"
|
118 |
msgstr "Desideri lasciare in bianco la prima opzione?"
|
119 |
|
120 |
+
#: contact-form-7/wp-contact-form-7.php:639
|
121 |
msgid "Make checkboxes exclusive?"
|
122 |
msgstr "Desideri escludere le caselle di verifica?"
|
123 |
|
124 |
+
#: contact-form-7/wp-contact-form-7.php:640
|
125 |
msgid "Choices"
|
126 |
msgstr "Opzioni"
|
127 |
|
128 |
+
#: contact-form-7/wp-contact-form-7.php:641
|
129 |
msgid "Label"
|
130 |
msgstr "Etichetta"
|
131 |
|
132 |
+
#: contact-form-7/wp-contact-form-7.php:642
|
133 |
msgid "Default value"
|
134 |
msgstr "Valore predefinito"
|
135 |
|
136 |
+
#: contact-form-7/wp-contact-form-7.php:643
|
137 |
msgid "Akismet"
|
138 |
msgstr "Akismet"
|
139 |
|
140 |
+
#: contact-form-7/wp-contact-form-7.php:644
|
141 |
msgid "This field requires author's name"
|
142 |
msgstr "Questo campo necessita del nome autore"
|
143 |
|
144 |
+
#: contact-form-7/wp-contact-form-7.php:645
|
145 |
msgid "This field requires author's URL"
|
146 |
msgstr "Questo campo necessita dell'URL autore"
|
147 |
|
148 |
+
#: contact-form-7/wp-contact-form-7.php:646
|
149 |
msgid "This field requires author's email address"
|
150 |
msgstr "Questo campo necessita dell'indirizzo email autore"
|
151 |
|
152 |
+
#: contact-form-7/wp-contact-form-7.php:647
|
153 |
msgid "Copy this code and paste it into the form left."
|
154 |
msgstr "Copia questo codice ed incollalo nel modulo a sinistra."
|
155 |
|
156 |
+
#: contact-form-7/wp-contact-form-7.php:648
|
157 |
msgid "Foreground color"
|
158 |
msgstr "Colore di primo piano"
|
159 |
|
160 |
+
#: contact-form-7/wp-contact-form-7.php:649
|
161 |
msgid "Background color"
|
162 |
msgstr "Colore di sfondo"
|
163 |
|
164 |
+
#: contact-form-7/wp-contact-form-7.php:650
|
165 |
msgid "Image size"
|
166 |
msgstr "Dimensione immagine"
|
167 |
|
168 |
+
#: contact-form-7/wp-contact-form-7.php:651
|
169 |
msgid "Small"
|
170 |
msgstr "Piccola"
|
171 |
|
172 |
+
#: contact-form-7/wp-contact-form-7.php:652
|
173 |
msgid "Medium"
|
174 |
msgstr "Media"
|
175 |
|
176 |
+
#: contact-form-7/wp-contact-form-7.php:653
|
177 |
msgid "Large"
|
178 |
msgstr "Grande"
|
179 |
|
180 |
+
#: contact-form-7/wp-contact-form-7.php:654
|
181 |
msgid "Image settings"
|
182 |
msgstr "Impostazioni immagine"
|
183 |
|
184 |
+
#: contact-form-7/wp-contact-form-7.php:655
|
185 |
msgid "Input field settings"
|
186 |
msgstr "Impostazione campo dati"
|
187 |
|
188 |
+
#: contact-form-7/wp-contact-form-7.php:656
|
189 |
msgid "For image"
|
190 |
msgstr "Per immagine"
|
191 |
|
192 |
+
#: contact-form-7/wp-contact-form-7.php:657
|
193 |
msgid "For input field"
|
194 |
msgstr "Per campo dati"
|
195 |
|
196 |
+
#: contact-form-7/wp-contact-form-7.php:658
|
197 |
msgid "* One choice per line."
|
198 |
msgstr "* Una opzione per linea."
|
199 |
|
200 |
+
#: contact-form-7/wp-contact-form-7.php:659
|
201 |
msgid "Show"
|
202 |
msgstr "Mostra"
|
203 |
|
204 |
+
#: contact-form-7/wp-contact-form-7.php:660
|
205 |
msgid "Hide"
|
206 |
msgstr "Nascondi"
|
207 |
|
208 |
+
#: contact-form-7/wp-contact-form-7.php:661
|
209 |
msgid "File size limit"
|
210 |
msgstr "Limite dimensione file"
|
211 |
|
212 |
+
#: contact-form-7/wp-contact-form-7.php:662
|
213 |
msgid "Acceptable file types"
|
214 |
msgstr "Tipologia di file consentiti"
|
215 |
|
216 |
+
#: contact-form-7/wp-contact-form-7.php:663
|
217 |
+
msgid "Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed."
|
218 |
+
msgstr "Nota: per l'utilizzo del CAPTCHA é necessaria l'installazione del plugin Really Simple CAPTCHA."
|
219 |
+
|
220 |
+
#: contact-form-7/wp-contact-form-7.php:690
|
221 |
msgid "Contact form created."
|
222 |
msgstr "Il modulo di contatto é stato creato."
|
223 |
|
224 |
+
#: contact-form-7/wp-contact-form-7.php:693
|
225 |
msgid "Contact form saved."
|
226 |
msgstr "Il modulo di contatto é stato salvato. "
|
227 |
|
228 |
+
#: contact-form-7/wp-contact-form-7.php:696
|
229 |
msgid "Contact form deleted."
|
230 |
msgstr "Il modulo di contatto é stato cancellato. "
|
231 |
|
232 |
+
#: contact-form-7/wp-contact-form-7.php:707
|
233 |
msgid "Untitled"
|
234 |
msgstr "Senza titolo"
|
235 |
|
236 |
+
#: contact-form-7/wp-contact-form-7.php:734
|
237 |
msgid "Your Name"
|
238 |
msgstr "Il tuo nome"
|
239 |
|
240 |
+
#: contact-form-7/wp-contact-form-7.php:734
|
241 |
+
#: contact-form-7/wp-contact-form-7.php:736
|
242 |
msgid "(required)"
|
243 |
msgstr "(richiesto)"
|
244 |
|
245 |
+
#: contact-form-7/wp-contact-form-7.php:736
|
246 |
msgid "Your Email"
|
247 |
msgstr "La tua email"
|
248 |
|
249 |
+
#: contact-form-7/wp-contact-form-7.php:738
|
250 |
msgid "Subject"
|
251 |
msgstr "Oggetto"
|
252 |
|
253 |
+
#: contact-form-7/wp-contact-form-7.php:740
|
254 |
msgid "Your Message"
|
255 |
msgstr "Il tuo messaggio"
|
256 |
|
257 |
+
#: contact-form-7/wp-contact-form-7.php:742
|
258 |
+
#: contact-form-7/wp-contact-form-7.php:1476
|
259 |
msgid "Send"
|
260 |
msgstr "Invia"
|
261 |
|
262 |
+
#: contact-form-7/wp-contact-form-7.php:796
|
263 |
msgid "Your message was sent successfully. Thanks."
|
264 |
msgstr "Il tuo messaggio é stato inviato con successo. Grazie."
|
265 |
|
266 |
+
#: contact-form-7/wp-contact-form-7.php:798
|
267 |
+
#: contact-form-7/wp-contact-form-7.php:800
|
268 |
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
269 |
msgstr "Si é verificato un errore durante l'invio del tuo messaggio. Riprova in un secondo momento oppure contatta in un altro modo l'amministratore del sito."
|
270 |
|
271 |
+
#: contact-form-7/wp-contact-form-7.php:802
|
272 |
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
273 |
msgstr "Si é verificato un errore di convalida. Controlla i campi obbligatori ed invia nuovamente il messaggio."
|
274 |
|
275 |
+
#: contact-form-7/wp-contact-form-7.php:804
|
276 |
msgid "Please accept the terms to proceed."
|
277 |
msgstr "Accetta i termini prima di procedere"
|
278 |
|
279 |
+
#: contact-form-7/wp-contact-form-7.php:806
|
280 |
msgid "Email address seems invalid."
|
281 |
msgstr "Pare che l'indirizzo email non sia valido."
|
282 |
|
283 |
+
#: contact-form-7/wp-contact-form-7.php:808
|
284 |
msgid "Please fill the required field."
|
285 |
msgstr "Riempire tutti i campi richiesti. Grazie"
|
286 |
|
287 |
+
#: contact-form-7/wp-contact-form-7.php:810
|
288 |
msgid "Your entered code is incorrect."
|
289 |
msgstr "Il codice che hai inserito non è valido"
|
290 |
|
291 |
+
#: contact-form-7/wp-contact-form-7.php:812
|
292 |
msgid "Your answer is not correct."
|
293 |
msgstr "La risposta che hai inserito non é corretta"
|
294 |
|
295 |
+
#: contact-form-7/wp-contact-form-7.php:814
|
296 |
msgid "Failed to upload file."
|
297 |
msgstr "Si é verificato un errore durante il caricamento del file"
|
298 |
|
299 |
+
#: contact-form-7/wp-contact-form-7.php:816
|
300 |
msgid "This file type is not allowed."
|
301 |
msgstr "Questo tipo di file non é permesso"
|
302 |
|
303 |
+
#: contact-form-7/wp-contact-form-7.php:818
|
304 |
msgid "This file is too large."
|
305 |
msgstr "Questo file é troppo grande"
|
306 |
|
307 |
+
#: contact-form-7/wp-contact-form-7.php:1417
|
308 |
+
msgid "To use CAPTCHA, you need <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> plugin installed."
|
309 |
+
msgstr "Per l'utilizzo del CAPTCHA é necessaria l'installazione del plugin <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a>."
|
310 |
+
|
311 |
#: contact-form-7/includes/admin-panel.php:20
|
312 |
msgid "Add new"
|
313 |
msgstr "Aggiungi nuovo"
|
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: 2009-
|
6 |
-
"PO-Revision-Date: 2009-
|
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,430 +17,459 @@ 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:
|
21 |
msgid "Contact form"
|
22 |
msgstr "コンタクトフォーム"
|
23 |
|
24 |
-
#: contact-form-7/
|
25 |
-
#: contact-form-7/
|
26 |
msgid "Contact Form 7"
|
27 |
msgstr "Contact Form 7"
|
28 |
|
29 |
-
#: contact-form-7/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
msgid "optional"
|
31 |
msgstr "オプション"
|
32 |
|
33 |
-
#: contact-form-7/
|
34 |
msgid "Generate Tag"
|
35 |
msgstr "タグの作成"
|
36 |
|
37 |
-
#: contact-form-7/
|
38 |
msgid "Text field"
|
39 |
msgstr "テキスト項目"
|
40 |
|
41 |
-
#: contact-form-7/
|
42 |
msgid "Email field"
|
43 |
msgstr "メールアドレス項目"
|
44 |
|
45 |
-
#: contact-form-7/
|
46 |
msgid "Text area"
|
47 |
msgstr "テキストエリア"
|
48 |
|
49 |
-
#: contact-form-7/
|
50 |
msgid "Drop-down menu"
|
51 |
msgstr "ドロップダウン・メニュー"
|
52 |
|
53 |
-
#: contact-form-7/
|
54 |
msgid "Checkboxes"
|
55 |
msgstr "チェックボックス"
|
56 |
|
57 |
-
#: contact-form-7/
|
58 |
msgid "Radio buttons"
|
59 |
msgstr "ラジオボタン"
|
60 |
|
61 |
-
#: contact-form-7/
|
62 |
msgid "Acceptance"
|
63 |
msgstr "承諾の確認"
|
64 |
|
65 |
-
#: contact-form-7/
|
66 |
msgid "Make this checkbox checked by default?"
|
67 |
msgstr "初期状態でチェックボックスにチェックを入れますか?"
|
68 |
|
69 |
-
#: contact-form-7/
|
70 |
msgid "Make this checkbox work inversely?"
|
71 |
msgstr "チェックボックスを反転させますか?"
|
72 |
|
73 |
-
#: contact-form-7/
|
74 |
msgid "* That means visitor who accepts the term unchecks it."
|
75 |
msgstr "* つまり、利用者には条項に承諾する場合にチェックボックスのチェックをはずしてもらいます。"
|
76 |
|
77 |
-
#: contact-form-7/
|
78 |
msgid "CAPTCHA"
|
79 |
msgstr "CAPTCHA"
|
80 |
|
81 |
-
#: contact-form-7/
|
82 |
msgid "Quiz"
|
83 |
msgstr "クイズ"
|
84 |
|
85 |
-
#: contact-form-7/
|
86 |
msgid "Quizzes"
|
87 |
msgstr "質問と答え"
|
88 |
|
89 |
-
#: contact-form-7/
|
90 |
msgid "* quiz|answer (e.g. 1+1=?|2)"
|
91 |
msgstr "* 質問|答え (例: 1+1=?|2)"
|
92 |
|
93 |
-
#: contact-form-7/
|
94 |
msgid "File upload"
|
95 |
msgstr "ファイルのアップロード"
|
96 |
|
97 |
-
#: contact-form-7/
|
98 |
msgid "bytes"
|
99 |
msgstr "バイト"
|
100 |
|
101 |
-
#: contact-form-7/
|
102 |
msgid "Submit button"
|
103 |
msgstr "送信ボタン"
|
104 |
|
105 |
-
#: contact-form-7/
|
106 |
msgid "Name"
|
107 |
msgstr "名前"
|
108 |
|
109 |
-
#: contact-form-7/
|
110 |
msgid "Required field?"
|
111 |
msgstr "必須入力の項目ですか?"
|
112 |
|
113 |
-
#: contact-form-7/
|
114 |
msgid "Allow multiple selections?"
|
115 |
msgstr "複数選択を可能にしますか?"
|
116 |
|
117 |
-
#: contact-form-7/
|
118 |
msgid "Insert a blank item as the first option?"
|
119 |
msgstr "先頭に空の項目を挿入しますか?"
|
120 |
|
121 |
-
#: contact-form-7/
|
122 |
msgid "Make checkboxes exclusive?"
|
123 |
msgstr "チェックボックスを排他化しますか?"
|
124 |
|
125 |
-
#: contact-form-7/
|
126 |
msgid "Choices"
|
127 |
msgstr "選択項目"
|
128 |
|
129 |
-
#: contact-form-7/
|
130 |
msgid "Label"
|
131 |
msgstr "ラベル"
|
132 |
|
133 |
-
#: contact-form-7/
|
134 |
msgid "Default value"
|
135 |
msgstr "デフォルト値"
|
136 |
|
137 |
-
#: contact-form-7/
|
138 |
msgid "Akismet"
|
139 |
msgstr "Akismet"
|
140 |
|
141 |
-
#: contact-form-7/
|
142 |
msgid "This field requires author's name"
|
143 |
msgstr "送信者の名前の入力を要求する項目"
|
144 |
|
145 |
-
#: contact-form-7/
|
146 |
msgid "This field requires author's URL"
|
147 |
msgstr "送信者の URL の入力を要求する項目"
|
148 |
|
149 |
-
#: contact-form-7/
|
150 |
msgid "This field requires author's email address"
|
151 |
msgstr "送信者のメールアドレスの入力を要求する項目"
|
152 |
|
153 |
-
#: contact-form-7/
|
154 |
msgid "Copy this code and paste it into the form left."
|
155 |
msgstr "このコードをコピーして、左のフォーム内にペーストしてください。"
|
156 |
|
157 |
-
#: contact-form-7/
|
158 |
msgid "Foreground color"
|
159 |
msgstr "文字色"
|
160 |
|
161 |
-
#: contact-form-7/
|
162 |
msgid "Background color"
|
163 |
msgstr "背景色"
|
164 |
|
165 |
-
#: contact-form-7/
|
166 |
msgid "Image size"
|
167 |
msgstr "画像サイズ"
|
168 |
|
169 |
-
#: contact-form-7/
|
170 |
msgid "Small"
|
171 |
msgstr "小"
|
172 |
|
173 |
-
#: contact-form-7/
|
174 |
msgid "Medium"
|
175 |
msgstr "中"
|
176 |
|
177 |
-
#: contact-form-7/
|
178 |
msgid "Large"
|
179 |
msgstr "大"
|
180 |
|
181 |
-
#: contact-form-7/
|
182 |
msgid "Image settings"
|
183 |
msgstr "画像の設定"
|
184 |
|
185 |
-
#: contact-form-7/
|
186 |
msgid "Input field settings"
|
187 |
msgstr "入力項目の設定"
|
188 |
|
189 |
-
#: contact-form-7/
|
190 |
msgid "For image"
|
191 |
msgstr "画像"
|
192 |
|
193 |
-
#: contact-form-7/
|
194 |
msgid "For input field"
|
195 |
msgstr "入力項目"
|
196 |
|
197 |
-
#: contact-form-7/
|
198 |
msgid "* One choice per line."
|
199 |
msgstr "* 1行ごとに分けて入力してください。"
|
200 |
|
201 |
-
#: contact-form-7/
|
202 |
msgid "Show"
|
203 |
msgstr "表示"
|
204 |
|
205 |
-
#: contact-form-7/
|
206 |
msgid "Hide"
|
207 |
msgstr "非表示"
|
208 |
|
209 |
-
#: contact-form-7/
|
210 |
msgid "File size limit"
|
211 |
msgstr "ファイルサイズの上限"
|
212 |
|
213 |
-
#: contact-form-7/
|
214 |
msgid "Acceptable file types"
|
215 |
msgstr "受け入れ可能なファイル形式"
|
216 |
|
217 |
-
#: contact-form-7/
|
218 |
msgid "Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed."
|
219 |
msgstr "お知らせ: CAPTCHA を使うには Really Simple CAPTCHA プラグインのインストールが必要です。"
|
220 |
|
221 |
-
#: contact-form-7/
|
222 |
msgid "Contact form created."
|
223 |
msgstr "コンタクトフォームが作成されました。"
|
224 |
|
225 |
-
#: contact-form-7/
|
226 |
msgid "Contact form saved."
|
227 |
msgstr "コンタクトフォームが保存されました。"
|
228 |
|
229 |
-
#: contact-form-7/
|
230 |
msgid "Contact form deleted."
|
231 |
msgstr "コンタクトフォームが削除されました。"
|
232 |
|
233 |
-
#: contact-form-7/
|
234 |
msgid "Untitled"
|
235 |
msgstr "無題"
|
236 |
|
237 |
-
#: contact-form-7/
|
238 |
msgid "Your Name"
|
239 |
msgstr "お名前"
|
240 |
|
241 |
-
#: contact-form-7/
|
242 |
-
#: contact-form-7/
|
243 |
msgid "(required)"
|
244 |
msgstr "(必須)"
|
245 |
|
246 |
-
#: contact-form-7/
|
247 |
msgid "Your Email"
|
248 |
msgstr "メールアドレス"
|
249 |
|
250 |
-
#: contact-form-7/
|
251 |
msgid "Subject"
|
252 |
msgstr "題名"
|
253 |
|
254 |
-
#: contact-form-7/
|
255 |
msgid "Your Message"
|
256 |
msgstr "メッセージ本文"
|
257 |
|
258 |
-
#: contact-form-7/
|
259 |
-
#: contact-form-7/
|
260 |
msgid "Send"
|
261 |
msgstr "送信"
|
262 |
|
263 |
-
#: contact-form-7/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
msgid "Your message was sent successfully. Thanks."
|
265 |
msgstr "あなたのメッセージは送信されました。ありがとうございました。"
|
266 |
|
267 |
-
#: contact-form-7/
|
268 |
-
#: contact-form-7/
|
269 |
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
270 |
msgstr "メッセージの送信に失敗しました。間をおいてもう一度お試しいただくか、別の手段で管理者にお問い合わせ下さい。"
|
271 |
|
272 |
-
#: contact-form-7/
|
273 |
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
274 |
msgstr "入力内容に不備があります。確認してもう一度送信してください。"
|
275 |
|
276 |
-
#: contact-form-7/
|
277 |
msgid "Please accept the terms to proceed."
|
278 |
msgstr "進めるには条項の承諾が必要です。"
|
279 |
|
280 |
-
#: contact-form-7/
|
281 |
msgid "Email address seems invalid."
|
282 |
msgstr "メールアドレスの形式が正しくないようです。"
|
283 |
|
284 |
-
#: contact-form-7/
|
285 |
msgid "Please fill the required field."
|
286 |
msgstr "必須項目に記入もれがあります。"
|
287 |
|
288 |
-
#: contact-form-7/
|
289 |
msgid "Your entered code is incorrect."
|
290 |
msgstr "入力されたコードが正しくありません。"
|
291 |
|
292 |
-
#: contact-form-7/
|
293 |
msgid "Your answer is not correct."
|
294 |
msgstr "答えが正しくありません。"
|
295 |
|
296 |
-
#: contact-form-7/
|
297 |
msgid "Failed to upload file."
|
298 |
msgstr "ファイルのアップロードに失敗しました。"
|
299 |
|
300 |
-
#: contact-form-7/
|
301 |
msgid "This file type is not allowed."
|
302 |
msgstr "許可されていないファイル形式です。"
|
303 |
|
304 |
-
#: contact-form-7/
|
305 |
msgid "This file is too large."
|
306 |
msgstr "ファイルが大きすぎます。"
|
307 |
|
308 |
-
#: contact-form-7/wp-contact-form-7.php:1417
|
309 |
-
msgid "To use CAPTCHA, you need <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> plugin installed."
|
310 |
-
msgstr "CAPTCHA を使うには <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> プラグインのインストールが必要です。"
|
311 |
-
|
312 |
-
#: contact-form-7/includes/admin-panel.php:20
|
313 |
-
msgid "Add new"
|
314 |
-
msgstr "新規追加"
|
315 |
-
|
316 |
-
#: contact-form-7/includes/admin-panel.php:42
|
317 |
-
msgid "Copy this code and paste it into your post, page or text widget content."
|
318 |
-
msgstr "このコードをコピーして、投稿、ページ、またはテキストウィジェットの本文内にペーストしてください。"
|
319 |
-
|
320 |
-
#: contact-form-7/includes/admin-panel.php:49
|
321 |
-
#: contact-form-7/includes/admin-panel.php:262
|
322 |
-
msgid "Save"
|
323 |
-
msgstr "保存"
|
324 |
-
|
325 |
-
#: contact-form-7/includes/admin-panel.php:56
|
326 |
-
msgid "Copy"
|
327 |
-
msgstr "複製"
|
328 |
-
|
329 |
-
#: contact-form-7/includes/admin-panel.php:60
|
330 |
-
msgid "Delete"
|
331 |
-
msgstr "削除 "
|
332 |
-
|
333 |
-
#: contact-form-7/includes/admin-panel.php:61
|
334 |
-
msgid ""
|
335 |
-
"You are about to delete this contact form.\n"
|
336 |
-
" 'Cancel' to stop, 'OK' to delete."
|
337 |
-
msgstr ""
|
338 |
-
"このコンタクトフォームを削除しようとしています。\n"
|
339 |
-
" 'キャンセル' で中止、 'OK' で削除します。"
|
340 |
-
|
341 |
-
#: contact-form-7/includes/admin-panel.php:75
|
342 |
-
msgid "Form"
|
343 |
-
msgstr "フォーム"
|
344 |
-
|
345 |
-
#: contact-form-7/includes/admin-panel.php:95
|
346 |
-
msgid "Mail"
|
347 |
-
msgstr "メール"
|
348 |
-
|
349 |
-
#: contact-form-7/includes/admin-panel.php:102
|
350 |
-
#: contact-form-7/includes/admin-panel.php:154
|
351 |
-
msgid "To:"
|
352 |
-
msgstr "宛先:"
|
353 |
-
|
354 |
-
#: contact-form-7/includes/admin-panel.php:106
|
355 |
-
#: contact-form-7/includes/admin-panel.php:158
|
356 |
-
msgid "From:"
|
357 |
-
msgstr "差出人:"
|
358 |
-
|
359 |
-
#: contact-form-7/includes/admin-panel.php:110
|
360 |
-
#: contact-form-7/includes/admin-panel.php:162
|
361 |
-
msgid "Subject:"
|
362 |
-
msgstr "件名:"
|
363 |
-
|
364 |
-
#: contact-form-7/includes/admin-panel.php:115
|
365 |
-
#: contact-form-7/includes/admin-panel.php:167
|
366 |
-
msgid "File attachments:"
|
367 |
-
msgstr "ファイル添付:"
|
368 |
-
|
369 |
-
#: contact-form-7/includes/admin-panel.php:117
|
370 |
-
#: contact-form-7/includes/admin-panel.php:169
|
371 |
-
msgid "(You need WordPress 2.7 or greater to use this feature)"
|
372 |
-
msgstr "(この機能を使うためには WordPress 2.7 以上が必要です)"
|
373 |
-
|
374 |
-
#: contact-form-7/includes/admin-panel.php:125
|
375 |
-
#: contact-form-7/includes/admin-panel.php:177
|
376 |
-
msgid "Use HTML content type"
|
377 |
-
msgstr "HTML 形式のメールを使用する"
|
378 |
-
|
379 |
-
#: contact-form-7/includes/admin-panel.php:130
|
380 |
-
#: contact-form-7/includes/admin-panel.php:182
|
381 |
-
msgid "Message body:"
|
382 |
-
msgstr "メッセージ本文:"
|
383 |
-
|
384 |
-
#: contact-form-7/includes/admin-panel.php:141
|
385 |
-
msgid "Mail (2)"
|
386 |
-
msgstr "メール (2)"
|
387 |
-
|
388 |
-
#: contact-form-7/includes/admin-panel.php:148
|
389 |
-
msgid "Use mail (2)"
|
390 |
-
msgstr "メール (2) を使う"
|
391 |
-
|
392 |
-
#: contact-form-7/includes/admin-panel.php:193
|
393 |
-
msgid "Messages"
|
394 |
-
msgstr "メッセージ"
|
395 |
-
|
396 |
-
#: contact-form-7/includes/admin-panel.php:201
|
397 |
-
msgid "Sender's message was sent successfully"
|
398 |
-
msgstr "メッセージが正常に送信された"
|
399 |
-
|
400 |
-
#: contact-form-7/includes/admin-panel.php:205
|
401 |
-
msgid "Sender's message was failed to send"
|
402 |
-
msgstr "メッセージの送信に失敗した"
|
403 |
-
|
404 |
-
#: contact-form-7/includes/admin-panel.php:209
|
405 |
-
msgid "Akismet judged the sending activity as spamming"
|
406 |
-
msgstr "Akismet によりスパム行為と判定された"
|
407 |
-
|
408 |
-
#: contact-form-7/includes/admin-panel.php:213
|
409 |
-
msgid "Validation errors occurred"
|
410 |
-
msgstr "入力内容に不備が見つかった"
|
411 |
-
|
412 |
-
#: contact-form-7/includes/admin-panel.php:217
|
413 |
-
msgid "There is a field that sender is needed to fill in"
|
414 |
-
msgstr "入力必須の項目が入力されていない"
|
415 |
-
|
416 |
-
#: contact-form-7/includes/admin-panel.php:221
|
417 |
-
msgid "Email address that sender entered is invalid"
|
418 |
-
msgstr "入力されたメールアドレスの形式が正しくない"
|
419 |
-
|
420 |
-
#: contact-form-7/includes/admin-panel.php:225
|
421 |
-
msgid "There is a field of term that sender is needed to accept"
|
422 |
-
msgstr "承諾が必要な項目が承諾されていない"
|
423 |
-
|
424 |
-
#: contact-form-7/includes/admin-panel.php:229
|
425 |
-
msgid "Sender doesn't enter the correct answer to the quiz"
|
426 |
-
msgstr "クイズに対する正しい答えが入力されなかった"
|
427 |
-
|
428 |
-
#: contact-form-7/includes/admin-panel.php:233
|
429 |
-
msgid "The code that sender entered does not match the CAPTCHA"
|
430 |
-
msgstr "入力されたコードが CAPTCHA に適合していない"
|
431 |
-
|
432 |
-
#: contact-form-7/includes/admin-panel.php:237
|
433 |
-
msgid "Uploading a file fails for any reason"
|
434 |
-
msgstr "ファイルのアップロードが何らかの理由により失敗している"
|
435 |
-
|
436 |
-
#: contact-form-7/includes/admin-panel.php:241
|
437 |
-
msgid "Uploaded file is not allowed file type"
|
438 |
-
msgstr "アップロードされたファイルが許可されたファイル形式に適合しない"
|
439 |
-
|
440 |
-
#: contact-form-7/includes/admin-panel.php:245
|
441 |
-
msgid "Uploaded file is too large"
|
442 |
-
msgstr "アップロードされたファイルが大きすぎる"
|
443 |
-
|
444 |
#~ msgid "Delete this contact form"
|
445 |
#~ msgstr "このコンタクトフォームを削除"
|
446 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contact Form 7\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-05-31 23:05+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-05-31 23:06+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:373
|
21 |
msgid "Contact form"
|
22 |
msgstr "コンタクトフォーム"
|
23 |
|
24 |
+
#: contact-form-7/admin/admin-panel.php:6
|
25 |
+
#: contact-form-7/admin/admin.php:111
|
26 |
msgid "Contact Form 7"
|
27 |
msgstr "Contact Form 7"
|
28 |
|
29 |
+
#: contact-form-7/admin/admin-panel.php:21
|
30 |
+
msgid "Add new"
|
31 |
+
msgstr "新規追加"
|
32 |
+
|
33 |
+
#: contact-form-7/admin/admin-panel.php:43
|
34 |
+
msgid "Copy this code and paste it into your post, page or text widget content."
|
35 |
+
msgstr "このコードをコピーして、投稿、ページ、またはテキストウィジェットの本文内にペーストしてください。"
|
36 |
+
|
37 |
+
#: contact-form-7/admin/admin-panel.php:50
|
38 |
+
#: contact-form-7/admin/admin-panel.php:290
|
39 |
+
msgid "Save"
|
40 |
+
msgstr "保存"
|
41 |
+
|
42 |
+
#: contact-form-7/admin/admin-panel.php:57
|
43 |
+
msgid "Copy"
|
44 |
+
msgstr "複製"
|
45 |
+
|
46 |
+
#: contact-form-7/admin/admin-panel.php:61
|
47 |
+
msgid "Delete"
|
48 |
+
msgstr "削除 "
|
49 |
+
|
50 |
+
#: contact-form-7/admin/admin-panel.php:63
|
51 |
+
msgid ""
|
52 |
+
"You are about to delete this contact form.\n"
|
53 |
+
" 'Cancel' to stop, 'OK' to delete."
|
54 |
+
msgstr ""
|
55 |
+
"このコンタクトフォームを削除しようとしています。\n"
|
56 |
+
" 'キャンセル' で中止、 'OK' で削除します。"
|
57 |
+
|
58 |
+
#: contact-form-7/admin/admin-panel.php:78
|
59 |
+
msgid "Form"
|
60 |
+
msgstr "フォーム"
|
61 |
+
|
62 |
+
#: contact-form-7/admin/admin-panel.php:98
|
63 |
+
msgid "Mail"
|
64 |
+
msgstr "メール"
|
65 |
+
|
66 |
+
#: contact-form-7/admin/admin-panel.php:105
|
67 |
+
#: contact-form-7/admin/admin-panel.php:161
|
68 |
+
msgid "To:"
|
69 |
+
msgstr "宛先:"
|
70 |
+
|
71 |
+
#: contact-form-7/admin/admin-panel.php:109
|
72 |
+
#: contact-form-7/admin/admin-panel.php:165
|
73 |
+
msgid "From:"
|
74 |
+
msgstr "差出人:"
|
75 |
+
|
76 |
+
#: contact-form-7/admin/admin-panel.php:113
|
77 |
+
#: contact-form-7/admin/admin-panel.php:169
|
78 |
+
msgid "Subject:"
|
79 |
+
msgstr "件名:"
|
80 |
+
|
81 |
+
#: contact-form-7/admin/admin-panel.php:118
|
82 |
+
#: contact-form-7/admin/admin-panel.php:174
|
83 |
+
msgid "Additional headers:"
|
84 |
+
msgstr "追加ヘッダー:"
|
85 |
+
|
86 |
+
#: contact-form-7/admin/admin-panel.php:122
|
87 |
+
#: contact-form-7/admin/admin-panel.php:178
|
88 |
+
msgid "File attachments:"
|
89 |
+
msgstr "ファイル添付:"
|
90 |
+
|
91 |
+
#: contact-form-7/admin/admin-panel.php:124
|
92 |
+
#: contact-form-7/admin/admin-panel.php:180
|
93 |
+
msgid "(You need WordPress 2.7 or greater to use this feature)"
|
94 |
+
msgstr "(この機能を使うためには WordPress 2.7 以上が必要です)"
|
95 |
+
|
96 |
+
#: contact-form-7/admin/admin-panel.php:132
|
97 |
+
#: contact-form-7/admin/admin-panel.php:188
|
98 |
+
msgid "Use HTML content type"
|
99 |
+
msgstr "HTML 形式のメールを使用する"
|
100 |
+
|
101 |
+
#: contact-form-7/admin/admin-panel.php:137
|
102 |
+
#: contact-form-7/admin/admin-panel.php:193
|
103 |
+
msgid "Message body:"
|
104 |
+
msgstr "メッセージ本文:"
|
105 |
+
|
106 |
+
#: contact-form-7/admin/admin-panel.php:148
|
107 |
+
msgid "Mail (2)"
|
108 |
+
msgstr "メール (2)"
|
109 |
+
|
110 |
+
#: contact-form-7/admin/admin-panel.php:155
|
111 |
+
msgid "Use mail (2)"
|
112 |
+
msgstr "メール (2) を使う"
|
113 |
+
|
114 |
+
#: contact-form-7/admin/admin-panel.php:204
|
115 |
+
msgid "Messages"
|
116 |
+
msgstr "メッセージ"
|
117 |
+
|
118 |
+
#: contact-form-7/admin/admin-panel.php:212
|
119 |
+
msgid "Sender's message was sent successfully"
|
120 |
+
msgstr "メッセージが正常に送信された"
|
121 |
+
|
122 |
+
#: contact-form-7/admin/admin-panel.php:216
|
123 |
+
msgid "Sender's message was failed to send"
|
124 |
+
msgstr "メッセージの送信に失敗した"
|
125 |
+
|
126 |
+
#: contact-form-7/admin/admin-panel.php:220
|
127 |
+
msgid "Akismet judged the sending activity as spamming"
|
128 |
+
msgstr "Akismet によりスパム行為と判定された"
|
129 |
+
|
130 |
+
#: contact-form-7/admin/admin-panel.php:224
|
131 |
+
msgid "Validation errors occurred"
|
132 |
+
msgstr "入力内容に不備が見つかった"
|
133 |
+
|
134 |
+
#: contact-form-7/admin/admin-panel.php:228
|
135 |
+
msgid "There is a field that sender is needed to fill in"
|
136 |
+
msgstr "入力必須の項目が入力されていない"
|
137 |
+
|
138 |
+
#: contact-form-7/admin/admin-panel.php:232
|
139 |
+
msgid "Email address that sender entered is invalid"
|
140 |
+
msgstr "入力されたメールアドレスの形式が正しくない"
|
141 |
+
|
142 |
+
#: contact-form-7/admin/admin-panel.php:236
|
143 |
+
msgid "There is a field of term that sender is needed to accept"
|
144 |
+
msgstr "承諾が必要な項目が承諾されていない"
|
145 |
+
|
146 |
+
#: contact-form-7/admin/admin-panel.php:240
|
147 |
+
msgid "Sender doesn't enter the correct answer to the quiz"
|
148 |
+
msgstr "クイズに対する正しい答えが入力されなかった"
|
149 |
+
|
150 |
+
#: contact-form-7/admin/admin-panel.php:244
|
151 |
+
msgid "The code that sender entered does not match the CAPTCHA"
|
152 |
+
msgstr "入力されたコードが CAPTCHA に適合していない"
|
153 |
+
|
154 |
+
#: contact-form-7/admin/admin-panel.php:248
|
155 |
+
msgid "Uploading a file fails for any reason"
|
156 |
+
msgstr "ファイルのアップロードが何らかの理由により失敗している"
|
157 |
+
|
158 |
+
#: contact-form-7/admin/admin-panel.php:252
|
159 |
+
msgid "Uploaded file is not allowed file type"
|
160 |
+
msgstr "アップロードされたファイルが許可されたファイル形式に適合しない"
|
161 |
+
|
162 |
+
#: contact-form-7/admin/admin-panel.php:256
|
163 |
+
msgid "Uploaded file is too large"
|
164 |
+
msgstr "アップロードされたファイルが大きすぎる"
|
165 |
+
|
166 |
+
#: contact-form-7/admin/admin-panel.php:269
|
167 |
+
msgid "Additional Settings"
|
168 |
+
msgstr "その他の設定"
|
169 |
+
|
170 |
+
#: contact-form-7/admin/admin.php:157
|
171 |
msgid "optional"
|
172 |
msgstr "オプション"
|
173 |
|
174 |
+
#: contact-form-7/admin/admin.php:158
|
175 |
msgid "Generate Tag"
|
176 |
msgstr "タグの作成"
|
177 |
|
178 |
+
#: contact-form-7/admin/admin.php:159
|
179 |
msgid "Text field"
|
180 |
msgstr "テキスト項目"
|
181 |
|
182 |
+
#: contact-form-7/admin/admin.php:160
|
183 |
msgid "Email field"
|
184 |
msgstr "メールアドレス項目"
|
185 |
|
186 |
+
#: contact-form-7/admin/admin.php:161
|
187 |
msgid "Text area"
|
188 |
msgstr "テキストエリア"
|
189 |
|
190 |
+
#: contact-form-7/admin/admin.php:162
|
191 |
msgid "Drop-down menu"
|
192 |
msgstr "ドロップダウン・メニュー"
|
193 |
|
194 |
+
#: contact-form-7/admin/admin.php:163
|
195 |
msgid "Checkboxes"
|
196 |
msgstr "チェックボックス"
|
197 |
|
198 |
+
#: contact-form-7/admin/admin.php:164
|
199 |
msgid "Radio buttons"
|
200 |
msgstr "ラジオボタン"
|
201 |
|
202 |
+
#: contact-form-7/admin/admin.php:165
|
203 |
msgid "Acceptance"
|
204 |
msgstr "承諾の確認"
|
205 |
|
206 |
+
#: contact-form-7/admin/admin.php:166
|
207 |
msgid "Make this checkbox checked by default?"
|
208 |
msgstr "初期状態でチェックボックスにチェックを入れますか?"
|
209 |
|
210 |
+
#: contact-form-7/admin/admin.php:167
|
211 |
msgid "Make this checkbox work inversely?"
|
212 |
msgstr "チェックボックスを反転させますか?"
|
213 |
|
214 |
+
#: contact-form-7/admin/admin.php:168
|
215 |
msgid "* That means visitor who accepts the term unchecks it."
|
216 |
msgstr "* つまり、利用者には条項に承諾する場合にチェックボックスのチェックをはずしてもらいます。"
|
217 |
|
218 |
+
#: contact-form-7/admin/admin.php:169
|
219 |
msgid "CAPTCHA"
|
220 |
msgstr "CAPTCHA"
|
221 |
|
222 |
+
#: contact-form-7/admin/admin.php:170
|
223 |
msgid "Quiz"
|
224 |
msgstr "クイズ"
|
225 |
|
226 |
+
#: contact-form-7/admin/admin.php:171
|
227 |
msgid "Quizzes"
|
228 |
msgstr "質問と答え"
|
229 |
|
230 |
+
#: contact-form-7/admin/admin.php:172
|
231 |
msgid "* quiz|answer (e.g. 1+1=?|2)"
|
232 |
msgstr "* 質問|答え (例: 1+1=?|2)"
|
233 |
|
234 |
+
#: contact-form-7/admin/admin.php:173
|
235 |
msgid "File upload"
|
236 |
msgstr "ファイルのアップロード"
|
237 |
|
238 |
+
#: contact-form-7/admin/admin.php:174
|
239 |
msgid "bytes"
|
240 |
msgstr "バイト"
|
241 |
|
242 |
+
#: contact-form-7/admin/admin.php:175
|
243 |
msgid "Submit button"
|
244 |
msgstr "送信ボタン"
|
245 |
|
246 |
+
#: contact-form-7/admin/admin.php:176
|
247 |
msgid "Name"
|
248 |
msgstr "名前"
|
249 |
|
250 |
+
#: contact-form-7/admin/admin.php:177
|
251 |
msgid "Required field?"
|
252 |
msgstr "必須入力の項目ですか?"
|
253 |
|
254 |
+
#: contact-form-7/admin/admin.php:178
|
255 |
msgid "Allow multiple selections?"
|
256 |
msgstr "複数選択を可能にしますか?"
|
257 |
|
258 |
+
#: contact-form-7/admin/admin.php:179
|
259 |
msgid "Insert a blank item as the first option?"
|
260 |
msgstr "先頭に空の項目を挿入しますか?"
|
261 |
|
262 |
+
#: contact-form-7/admin/admin.php:180
|
263 |
msgid "Make checkboxes exclusive?"
|
264 |
msgstr "チェックボックスを排他化しますか?"
|
265 |
|
266 |
+
#: contact-form-7/admin/admin.php:181
|
267 |
msgid "Choices"
|
268 |
msgstr "選択項目"
|
269 |
|
270 |
+
#: contact-form-7/admin/admin.php:182
|
271 |
msgid "Label"
|
272 |
msgstr "ラベル"
|
273 |
|
274 |
+
#: contact-form-7/admin/admin.php:183
|
275 |
msgid "Default value"
|
276 |
msgstr "デフォルト値"
|
277 |
|
278 |
+
#: contact-form-7/admin/admin.php:184
|
279 |
msgid "Akismet"
|
280 |
msgstr "Akismet"
|
281 |
|
282 |
+
#: contact-form-7/admin/admin.php:185
|
283 |
msgid "This field requires author's name"
|
284 |
msgstr "送信者の名前の入力を要求する項目"
|
285 |
|
286 |
+
#: contact-form-7/admin/admin.php:186
|
287 |
msgid "This field requires author's URL"
|
288 |
msgstr "送信者の URL の入力を要求する項目"
|
289 |
|
290 |
+
#: contact-form-7/admin/admin.php:187
|
291 |
msgid "This field requires author's email address"
|
292 |
msgstr "送信者のメールアドレスの入力を要求する項目"
|
293 |
|
294 |
+
#: contact-form-7/admin/admin.php:188
|
295 |
msgid "Copy this code and paste it into the form left."
|
296 |
msgstr "このコードをコピーして、左のフォーム内にペーストしてください。"
|
297 |
|
298 |
+
#: contact-form-7/admin/admin.php:189
|
299 |
msgid "Foreground color"
|
300 |
msgstr "文字色"
|
301 |
|
302 |
+
#: contact-form-7/admin/admin.php:190
|
303 |
msgid "Background color"
|
304 |
msgstr "背景色"
|
305 |
|
306 |
+
#: contact-form-7/admin/admin.php:191
|
307 |
msgid "Image size"
|
308 |
msgstr "画像サイズ"
|
309 |
|
310 |
+
#: contact-form-7/admin/admin.php:192
|
311 |
msgid "Small"
|
312 |
msgstr "小"
|
313 |
|
314 |
+
#: contact-form-7/admin/admin.php:193
|
315 |
msgid "Medium"
|
316 |
msgstr "中"
|
317 |
|
318 |
+
#: contact-form-7/admin/admin.php:194
|
319 |
msgid "Large"
|
320 |
msgstr "大"
|
321 |
|
322 |
+
#: contact-form-7/admin/admin.php:195
|
323 |
msgid "Image settings"
|
324 |
msgstr "画像の設定"
|
325 |
|
326 |
+
#: contact-form-7/admin/admin.php:196
|
327 |
msgid "Input field settings"
|
328 |
msgstr "入力項目の設定"
|
329 |
|
330 |
+
#: contact-form-7/admin/admin.php:197
|
331 |
msgid "For image"
|
332 |
msgstr "画像"
|
333 |
|
334 |
+
#: contact-form-7/admin/admin.php:198
|
335 |
msgid "For input field"
|
336 |
msgstr "入力項目"
|
337 |
|
338 |
+
#: contact-form-7/admin/admin.php:199
|
339 |
msgid "* One choice per line."
|
340 |
msgstr "* 1行ごとに分けて入力してください。"
|
341 |
|
342 |
+
#: contact-form-7/admin/admin.php:200
|
343 |
msgid "Show"
|
344 |
msgstr "表示"
|
345 |
|
346 |
+
#: contact-form-7/admin/admin.php:201
|
347 |
msgid "Hide"
|
348 |
msgstr "非表示"
|
349 |
|
350 |
+
#: contact-form-7/admin/admin.php:202
|
351 |
msgid "File size limit"
|
352 |
msgstr "ファイルサイズの上限"
|
353 |
|
354 |
+
#: contact-form-7/admin/admin.php:203
|
355 |
msgid "Acceptable file types"
|
356 |
msgstr "受け入れ可能なファイル形式"
|
357 |
|
358 |
+
#: contact-form-7/admin/admin.php:204
|
359 |
msgid "Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed."
|
360 |
msgstr "お知らせ: CAPTCHA を使うには Really Simple CAPTCHA プラグインのインストールが必要です。"
|
361 |
|
362 |
+
#: contact-form-7/admin/admin.php:223
|
363 |
msgid "Contact form created."
|
364 |
msgstr "コンタクトフォームが作成されました。"
|
365 |
|
366 |
+
#: contact-form-7/admin/admin.php:226
|
367 |
msgid "Contact form saved."
|
368 |
msgstr "コンタクトフォームが保存されました。"
|
369 |
|
370 |
+
#: contact-form-7/admin/admin.php:229
|
371 |
msgid "Contact form deleted."
|
372 |
msgstr "コンタクトフォームが削除されました。"
|
373 |
|
374 |
+
#: contact-form-7/admin/admin.php:240
|
375 |
msgid "Untitled"
|
376 |
msgstr "無題"
|
377 |
|
378 |
+
#: contact-form-7/admin/admin.php:253
|
379 |
msgid "Your Name"
|
380 |
msgstr "お名前"
|
381 |
|
382 |
+
#: contact-form-7/admin/admin.php:253
|
383 |
+
#: contact-form-7/admin/admin.php:255
|
384 |
msgid "(required)"
|
385 |
msgstr "(必須)"
|
386 |
|
387 |
+
#: contact-form-7/admin/admin.php:255
|
388 |
msgid "Your Email"
|
389 |
msgstr "メールアドレス"
|
390 |
|
391 |
+
#: contact-form-7/admin/admin.php:257
|
392 |
msgid "Subject"
|
393 |
msgstr "題名"
|
394 |
|
395 |
+
#: contact-form-7/admin/admin.php:259
|
396 |
msgid "Your Message"
|
397 |
msgstr "メッセージ本文"
|
398 |
|
399 |
+
#: contact-form-7/admin/admin.php:261
|
400 |
+
#: contact-form-7/includes/classes.php:411
|
401 |
msgid "Send"
|
402 |
msgstr "送信"
|
403 |
|
404 |
+
#: contact-form-7/admin/admin.php:334
|
405 |
+
msgid "Settings"
|
406 |
+
msgstr "設定"
|
407 |
+
|
408 |
+
#: contact-form-7/admin/admin.php:355
|
409 |
+
msgid "Contact Form 7 needs your support. Please donate today."
|
410 |
+
msgstr "Contact Form 7 はあなたの支援を必要としています。寄付をお願いします。"
|
411 |
+
|
412 |
+
#: contact-form-7/admin/admin.php:356
|
413 |
+
msgid "Is this plugin useful for you? If you like it, please help the developer."
|
414 |
+
msgstr "このプラグインは役に立っていますか? プラグインの開発を続けるためにあなたの支援が必要です。"
|
415 |
+
|
416 |
+
#: contact-form-7/admin/admin.php:357
|
417 |
+
msgid "Your contribution is needed for making this plugin better."
|
418 |
+
msgstr "あなたの貢献があればこのプラグインをもっと良くすることができます。"
|
419 |
+
|
420 |
+
#: contact-form-7/admin/admin.php:358
|
421 |
+
msgid "Developing a plugin and providing user support is really hard work. Please help."
|
422 |
+
msgstr "プラグインを開発してユーザーサポートを提供するというのはとても大変な仕事です。ちょっとでいいから助けてください。"
|
423 |
+
|
424 |
+
#: contact-form-7/includes/classes.php:352
|
425 |
+
msgid "To use CAPTCHA, you need <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> plugin installed."
|
426 |
+
msgstr "CAPTCHA を使うには <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> プラグインのインストールが必要です。"
|
427 |
+
|
428 |
+
#: contact-form-7/includes/functions.php:6
|
429 |
msgid "Your message was sent successfully. Thanks."
|
430 |
msgstr "あなたのメッセージは送信されました。ありがとうございました。"
|
431 |
|
432 |
+
#: contact-form-7/includes/functions.php:8
|
433 |
+
#: contact-form-7/includes/functions.php:10
|
434 |
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
435 |
msgstr "メッセージの送信に失敗しました。間をおいてもう一度お試しいただくか、別の手段で管理者にお問い合わせ下さい。"
|
436 |
|
437 |
+
#: contact-form-7/includes/functions.php:12
|
438 |
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
439 |
msgstr "入力内容に不備があります。確認してもう一度送信してください。"
|
440 |
|
441 |
+
#: contact-form-7/includes/functions.php:14
|
442 |
msgid "Please accept the terms to proceed."
|
443 |
msgstr "進めるには条項の承諾が必要です。"
|
444 |
|
445 |
+
#: contact-form-7/includes/functions.php:16
|
446 |
msgid "Email address seems invalid."
|
447 |
msgstr "メールアドレスの形式が正しくないようです。"
|
448 |
|
449 |
+
#: contact-form-7/includes/functions.php:18
|
450 |
msgid "Please fill the required field."
|
451 |
msgstr "必須項目に記入もれがあります。"
|
452 |
|
453 |
+
#: contact-form-7/includes/functions.php:20
|
454 |
msgid "Your entered code is incorrect."
|
455 |
msgstr "入力されたコードが正しくありません。"
|
456 |
|
457 |
+
#: contact-form-7/includes/functions.php:22
|
458 |
msgid "Your answer is not correct."
|
459 |
msgstr "答えが正しくありません。"
|
460 |
|
461 |
+
#: contact-form-7/includes/functions.php:24
|
462 |
msgid "Failed to upload file."
|
463 |
msgstr "ファイルのアップロードに失敗しました。"
|
464 |
|
465 |
+
#: contact-form-7/includes/functions.php:26
|
466 |
msgid "This file type is not allowed."
|
467 |
msgstr "許可されていないファイル形式です。"
|
468 |
|
469 |
+
#: contact-form-7/includes/functions.php:28
|
470 |
msgid "This file is too large."
|
471 |
msgstr "ファイルが大きすぎます。"
|
472 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
473 |
#~ msgid "Delete this contact form"
|
474 |
#~ msgstr "このコンタクトフォームを削除"
|
475 |
|
languages/wpcf7-sr_RS.mo
ADDED
Binary file
|
languages/wpcf7-sr_RS.po
ADDED
@@ -0,0 +1,427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-03-03 16:40+0900\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Vedran <tvedrantz@gmail.com>\n"
|
8 |
+
"Language-Team: Ivan Graf\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-Language: Bosnian\n"
|
13 |
+
"X-Poedit-Country: UNITED STATES\n"
|
14 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
|
16 |
+
#: contact-form-7/wp-contact-form-7.php:413
|
17 |
+
msgid "Contact form"
|
18 |
+
msgstr "Kontaktna forma"
|
19 |
+
|
20 |
+
#: contact-form-7/wp-contact-form-7.php:582
|
21 |
+
#: contact-form-7/includes/admin-panel.php:5
|
22 |
+
msgid "Contact Form 7"
|
23 |
+
msgstr "Kontaktna Forma 7"
|
24 |
+
|
25 |
+
#: contact-form-7/wp-contact-form-7.php:605
|
26 |
+
msgid "optional"
|
27 |
+
msgstr "opcionalno"
|
28 |
+
|
29 |
+
#: contact-form-7/wp-contact-form-7.php:606
|
30 |
+
msgid "Generate Tag"
|
31 |
+
msgstr "Generiši Tag"
|
32 |
+
|
33 |
+
#: contact-form-7/wp-contact-form-7.php:607
|
34 |
+
msgid "Text field"
|
35 |
+
msgstr "Tekst polje"
|
36 |
+
|
37 |
+
#: contact-form-7/wp-contact-form-7.php:608
|
38 |
+
msgid "Email field"
|
39 |
+
msgstr "Email polje"
|
40 |
+
|
41 |
+
#: contact-form-7/wp-contact-form-7.php:609
|
42 |
+
msgid "Text area"
|
43 |
+
msgstr "Tekst područje"
|
44 |
+
|
45 |
+
#: contact-form-7/wp-contact-form-7.php:610
|
46 |
+
msgid "Drop-down menu"
|
47 |
+
msgstr "Dropdaun meni"
|
48 |
+
|
49 |
+
#: contact-form-7/wp-contact-form-7.php:611
|
50 |
+
msgid "Checkboxes"
|
51 |
+
msgstr "Čekboksovi"
|
52 |
+
|
53 |
+
#: contact-form-7/wp-contact-form-7.php:612
|
54 |
+
msgid "Radio buttons"
|
55 |
+
msgstr "Radio dugmad"
|
56 |
+
|
57 |
+
#: contact-form-7/wp-contact-form-7.php:613
|
58 |
+
msgid "Acceptance"
|
59 |
+
msgstr "Prihvaćanje"
|
60 |
+
|
61 |
+
#: contact-form-7/wp-contact-form-7.php:614
|
62 |
+
msgid "Make this checkbox checked by default?"
|
63 |
+
msgstr "Postavi čekboks za standardni?"
|
64 |
+
|
65 |
+
#: contact-form-7/wp-contact-form-7.php:615
|
66 |
+
msgid "Make this checkbox work inversely?"
|
67 |
+
msgstr "Ucini da čekboks radi obrnuto?"
|
68 |
+
|
69 |
+
#: contact-form-7/wp-contact-form-7.php:616
|
70 |
+
msgid "* That means visitor who accepts the term unchecks it."
|
71 |
+
msgstr "* Znači da posjetioc koji prihvati uvijet deselektuje ga."
|
72 |
+
|
73 |
+
#: contact-form-7/wp-contact-form-7.php:617
|
74 |
+
msgid "CAPTCHA"
|
75 |
+
msgstr "CAPTCHA"
|
76 |
+
|
77 |
+
#: contact-form-7/wp-contact-form-7.php:618
|
78 |
+
msgid "Quiz"
|
79 |
+
msgstr "Kviz"
|
80 |
+
|
81 |
+
#: contact-form-7/wp-contact-form-7.php:619
|
82 |
+
msgid "Quizzes"
|
83 |
+
msgstr "Kivizovi"
|
84 |
+
|
85 |
+
#: contact-form-7/wp-contact-form-7.php:620
|
86 |
+
msgid "* quiz|answer (e.g. 1+1=?|2)"
|
87 |
+
msgstr "* Kviz/Odgovor (Npr. 1+1=?/2)"
|
88 |
+
|
89 |
+
#: contact-form-7/wp-contact-form-7.php:621
|
90 |
+
msgid "File upload"
|
91 |
+
msgstr "Uploadiraj fajl"
|
92 |
+
|
93 |
+
#: contact-form-7/wp-contact-form-7.php:622
|
94 |
+
msgid "bytes"
|
95 |
+
msgstr "Bajta"
|
96 |
+
|
97 |
+
#: contact-form-7/wp-contact-form-7.php:623
|
98 |
+
msgid "Submit button"
|
99 |
+
msgstr "Submiti Dugme"
|
100 |
+
|
101 |
+
#: contact-form-7/wp-contact-form-7.php:624
|
102 |
+
msgid "Name"
|
103 |
+
msgstr " Ime"
|
104 |
+
|
105 |
+
#: contact-form-7/wp-contact-form-7.php:625
|
106 |
+
msgid "Required field?"
|
107 |
+
msgstr "Neophodno polje?"
|
108 |
+
|
109 |
+
#: contact-form-7/wp-contact-form-7.php:626
|
110 |
+
msgid "Allow multiple selections?"
|
111 |
+
msgstr "Omogući višestruko selektovanje?"
|
112 |
+
|
113 |
+
#: contact-form-7/wp-contact-form-7.php:627
|
114 |
+
msgid "Insert a blank item as the first option?"
|
115 |
+
msgstr "Insertiraj praznu postavku kao početni izbor?"
|
116 |
+
|
117 |
+
#: contact-form-7/wp-contact-form-7.php:628
|
118 |
+
msgid "Make checkboxes exclusive?"
|
119 |
+
msgstr "Učini čekboksove ekskluzivnim ?"
|
120 |
+
|
121 |
+
#: contact-form-7/wp-contact-form-7.php:629
|
122 |
+
msgid "Choices"
|
123 |
+
msgstr "Izbor"
|
124 |
+
|
125 |
+
#: contact-form-7/wp-contact-form-7.php:630
|
126 |
+
msgid "Label"
|
127 |
+
msgstr "Labela"
|
128 |
+
|
129 |
+
#: contact-form-7/wp-contact-form-7.php:631
|
130 |
+
msgid "Default value"
|
131 |
+
msgstr "Defoltna vrijednost"
|
132 |
+
|
133 |
+
#: contact-form-7/wp-contact-form-7.php:632
|
134 |
+
msgid "Akismet"
|
135 |
+
msgstr "Askimet"
|
136 |
+
|
137 |
+
#: contact-form-7/wp-contact-form-7.php:633
|
138 |
+
msgid "This field requires author's name"
|
139 |
+
msgstr "Polje zahtjeva ime autora"
|
140 |
+
|
141 |
+
#: contact-form-7/wp-contact-form-7.php:634
|
142 |
+
msgid "This field requires author's URL"
|
143 |
+
msgstr "Polje zahtjeva URL autora"
|
144 |
+
|
145 |
+
#: contact-form-7/wp-contact-form-7.php:635
|
146 |
+
msgid "This field requires author's email address"
|
147 |
+
msgstr "Ovo polje zahtijeva E-mail autora"
|
148 |
+
|
149 |
+
#: contact-form-7/wp-contact-form-7.php:636
|
150 |
+
msgid "Copy this code and paste it into the form left."
|
151 |
+
msgstr "Kopiraj kod i pejstiraj u formu lijevo"
|
152 |
+
|
153 |
+
#: contact-form-7/wp-contact-form-7.php:637
|
154 |
+
msgid "Foreground color"
|
155 |
+
msgstr "Boja forgraunda"
|
156 |
+
|
157 |
+
#: contact-form-7/wp-contact-form-7.php:638
|
158 |
+
msgid "Background color"
|
159 |
+
msgstr "Boja pozadine"
|
160 |
+
|
161 |
+
#: contact-form-7/wp-contact-form-7.php:639
|
162 |
+
msgid "Image size"
|
163 |
+
msgstr "Veličina slike"
|
164 |
+
|
165 |
+
#: contact-form-7/wp-contact-form-7.php:640
|
166 |
+
msgid "Small"
|
167 |
+
msgstr "Mala"
|
168 |
+
|
169 |
+
#: contact-form-7/wp-contact-form-7.php:641
|
170 |
+
msgid "Medium"
|
171 |
+
msgstr "Srednja"
|
172 |
+
|
173 |
+
#: contact-form-7/wp-contact-form-7.php:642
|
174 |
+
msgid "Large"
|
175 |
+
msgstr "Velika"
|
176 |
+
|
177 |
+
#: contact-form-7/wp-contact-form-7.php:643
|
178 |
+
msgid "Image settings"
|
179 |
+
msgstr "Karakteristike slike"
|
180 |
+
|
181 |
+
#: contact-form-7/wp-contact-form-7.php:644
|
182 |
+
msgid "Input field settings"
|
183 |
+
msgstr "Postavke polja inputa"
|
184 |
+
|
185 |
+
#: contact-form-7/wp-contact-form-7.php:645
|
186 |
+
msgid "For image"
|
187 |
+
msgstr "Za sliku"
|
188 |
+
|
189 |
+
#: contact-form-7/wp-contact-form-7.php:646
|
190 |
+
msgid "For input field"
|
191 |
+
msgstr "Za polje inputa"
|
192 |
+
|
193 |
+
#: contact-form-7/wp-contact-form-7.php:647
|
194 |
+
msgid "* One choice per line."
|
195 |
+
msgstr "* Jedan izbor po liniji"
|
196 |
+
|
197 |
+
#: contact-form-7/wp-contact-form-7.php:648
|
198 |
+
msgid "Show"
|
199 |
+
msgstr "Prikaži"
|
200 |
+
|
201 |
+
#: contact-form-7/wp-contact-form-7.php:649
|
202 |
+
msgid "Hide"
|
203 |
+
msgstr "Sakrij"
|
204 |
+
|
205 |
+
#: contact-form-7/wp-contact-form-7.php:650
|
206 |
+
msgid "File size limit"
|
207 |
+
msgstr "Granica veličine fajla"
|
208 |
+
|
209 |
+
#: contact-form-7/wp-contact-form-7.php:651
|
210 |
+
msgid "Acceptable file types"
|
211 |
+
msgstr "Prihvatljive vrste fajlova"
|
212 |
+
|
213 |
+
#: contact-form-7/wp-contact-form-7.php:677
|
214 |
+
msgid "Contact form created."
|
215 |
+
msgstr "Kkontaktna forma napravljena"
|
216 |
+
|
217 |
+
#: contact-form-7/wp-contact-form-7.php:680
|
218 |
+
msgid "Contact form saved."
|
219 |
+
msgstr "Kontaktna forma sačuvana"
|
220 |
+
|
221 |
+
#: contact-form-7/wp-contact-form-7.php:683
|
222 |
+
msgid "Contact form deleted."
|
223 |
+
msgstr "Kontaktna forma izbrisana."
|
224 |
+
|
225 |
+
#: contact-form-7/wp-contact-form-7.php:694
|
226 |
+
msgid "Untitled"
|
227 |
+
msgstr "Bey naslova"
|
228 |
+
|
229 |
+
#: contact-form-7/wp-contact-form-7.php:721
|
230 |
+
msgid "Your Name"
|
231 |
+
msgstr "Vaše ime"
|
232 |
+
|
233 |
+
#: contact-form-7/wp-contact-form-7.php:721
|
234 |
+
#: contact-form-7/wp-contact-form-7.php:723
|
235 |
+
msgid "(required)"
|
236 |
+
msgstr "(mandatorno)"
|
237 |
+
|
238 |
+
#: contact-form-7/wp-contact-form-7.php:723
|
239 |
+
msgid "Your Email"
|
240 |
+
msgstr "Vaš Email"
|
241 |
+
|
242 |
+
#: contact-form-7/wp-contact-form-7.php:725
|
243 |
+
msgid "Subject"
|
244 |
+
msgstr "Predmet"
|
245 |
+
|
246 |
+
#: contact-form-7/wp-contact-form-7.php:727
|
247 |
+
msgid "Your Message"
|
248 |
+
msgstr "Vaša Poruka"
|
249 |
+
|
250 |
+
#: contact-form-7/wp-contact-form-7.php:729
|
251 |
+
#: contact-form-7/wp-contact-form-7.php:1458
|
252 |
+
msgid "Send"
|
253 |
+
msgstr "Pošalji"
|
254 |
+
|
255 |
+
#: contact-form-7/wp-contact-form-7.php:783
|
256 |
+
msgid "Your message was sent successfully. Thanks."
|
257 |
+
msgstr "Vaša poruka je poslana uspješno. Hvala."
|
258 |
+
|
259 |
+
#: contact-form-7/wp-contact-form-7.php:785
|
260 |
+
#: contact-form-7/wp-contact-form-7.php:787
|
261 |
+
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
262 |
+
msgstr "Slanje vaše poruke neuspješno. Molimo vas pokušajte kasnije ili kontaktirajte administratora stranice na drugi način."
|
263 |
+
|
264 |
+
#: contact-form-7/wp-contact-form-7.php:789
|
265 |
+
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
266 |
+
msgstr "Greška pri validiranju. Molimo potvrdite polja i pošaljite ponovo ."
|
267 |
+
|
268 |
+
#: contact-form-7/wp-contact-form-7.php:791
|
269 |
+
msgid "Please accept the terms to proceed."
|
270 |
+
msgstr "Molimo prihvatite uslove da biste nastavili."
|
271 |
+
|
272 |
+
#: contact-form-7/wp-contact-form-7.php:793
|
273 |
+
msgid "Email address seems invalid."
|
274 |
+
msgstr "Email adresa niije validna"
|
275 |
+
|
276 |
+
#: contact-form-7/wp-contact-form-7.php:795
|
277 |
+
msgid "Please fill the required field."
|
278 |
+
msgstr "Molimo ispunite yahtjevano polje."
|
279 |
+
|
280 |
+
#: contact-form-7/wp-contact-form-7.php:797
|
281 |
+
msgid "Your entered code is incorrect."
|
282 |
+
msgstr "Kod koji ste unijeli nije validan."
|
283 |
+
|
284 |
+
#: contact-form-7/wp-contact-form-7.php:799
|
285 |
+
msgid "Your answer is not correct."
|
286 |
+
msgstr "Vaš odgovor nije tačan."
|
287 |
+
|
288 |
+
#: contact-form-7/wp-contact-form-7.php:801
|
289 |
+
msgid "Failed to upload file."
|
290 |
+
msgstr "Uploadiranje fajla neuspješno."
|
291 |
+
|
292 |
+
#: contact-form-7/wp-contact-form-7.php:803
|
293 |
+
msgid "This file type is not allowed."
|
294 |
+
msgstr "Vrsta fajla nije doyvoljenai."
|
295 |
+
|
296 |
+
#: contact-form-7/wp-contact-form-7.php:805
|
297 |
+
msgid "This file is too large."
|
298 |
+
msgstr "Ovaj fajl je prevelik."
|
299 |
+
|
300 |
+
#: contact-form-7/includes/admin-panel.php:20
|
301 |
+
msgid "Add new"
|
302 |
+
msgstr "Dodaj novi"
|
303 |
+
|
304 |
+
#: contact-form-7/includes/admin-panel.php:42
|
305 |
+
msgid "Copy this code and paste it into your post, page or text widget content."
|
306 |
+
msgstr "Kopiraj ovaj kod i pejstajaj ga u sadržaj koji želiš poslati, stranicu ili tekst widget."
|
307 |
+
|
308 |
+
#: contact-form-7/includes/admin-panel.php:49
|
309 |
+
#: contact-form-7/includes/admin-panel.php:257
|
310 |
+
msgid "Save"
|
311 |
+
msgstr "Sačuvaj"
|
312 |
+
|
313 |
+
#: contact-form-7/includes/admin-panel.php:55
|
314 |
+
msgid "Delete this contact form"
|
315 |
+
msgstr "Iybriši ovu kontaktnu formu"
|
316 |
+
|
317 |
+
#: contact-form-7/includes/admin-panel.php:56
|
318 |
+
msgid ""
|
319 |
+
"You are about to delete this contact form.\n"
|
320 |
+
" 'Cancel' to stop, 'OK' to delete."
|
321 |
+
msgstr ""
|
322 |
+
"Ovime se briše kontaktna forma. \n"
|
323 |
+
"'odustani' za prekid, 'OK' za brisanje."
|
324 |
+
|
325 |
+
#: contact-form-7/includes/admin-panel.php:70
|
326 |
+
msgid "Form"
|
327 |
+
msgstr "Forma"
|
328 |
+
|
329 |
+
#: contact-form-7/includes/admin-panel.php:90
|
330 |
+
msgid "Mail"
|
331 |
+
msgstr "Pošta"
|
332 |
+
|
333 |
+
#: contact-form-7/includes/admin-panel.php:97
|
334 |
+
#: contact-form-7/includes/admin-panel.php:149
|
335 |
+
msgid "To:"
|
336 |
+
msgstr "Za:"
|
337 |
+
|
338 |
+
#: contact-form-7/includes/admin-panel.php:101
|
339 |
+
#: contact-form-7/includes/admin-panel.php:153
|
340 |
+
msgid "From:"
|
341 |
+
msgstr "Od:"
|
342 |
+
|
343 |
+
#: contact-form-7/includes/admin-panel.php:105
|
344 |
+
#: contact-form-7/includes/admin-panel.php:157
|
345 |
+
msgid "Subject:"
|
346 |
+
msgstr "Predmet:"
|
347 |
+
|
348 |
+
#: contact-form-7/includes/admin-panel.php:110
|
349 |
+
#: contact-form-7/includes/admin-panel.php:162
|
350 |
+
msgid "File attachments:"
|
351 |
+
msgstr "Dodani fajl"
|
352 |
+
|
353 |
+
#: contact-form-7/includes/admin-panel.php:112
|
354 |
+
#: contact-form-7/includes/admin-panel.php:164
|
355 |
+
msgid "(You need WordPress 2.7 or greater to use this feature)"
|
356 |
+
msgstr "(Potreban WordPress 2.7 ili noviji za korištenje ove mogućnosti)"
|
357 |
+
|
358 |
+
#: contact-form-7/includes/admin-panel.php:120
|
359 |
+
#: contact-form-7/includes/admin-panel.php:172
|
360 |
+
msgid "Use HTML content type"
|
361 |
+
msgstr "Koristi HTML"
|
362 |
+
|
363 |
+
#: contact-form-7/includes/admin-panel.php:125
|
364 |
+
#: contact-form-7/includes/admin-panel.php:177
|
365 |
+
msgid "Message body:"
|
366 |
+
msgstr "Telo Poruke"
|
367 |
+
|
368 |
+
#: contact-form-7/includes/admin-panel.php:136
|
369 |
+
msgid "Mail (2)"
|
370 |
+
msgstr "Pošta (2)"
|
371 |
+
|
372 |
+
#: contact-form-7/includes/admin-panel.php:143
|
373 |
+
msgid "Use mail (2)"
|
374 |
+
msgstr "Koristi poštu (2)"
|
375 |
+
|
376 |
+
#: contact-form-7/includes/admin-panel.php:188
|
377 |
+
msgid "Messages"
|
378 |
+
msgstr "Poruke"
|
379 |
+
|
380 |
+
#: contact-form-7/includes/admin-panel.php:196
|
381 |
+
msgid "Sender's message was sent successfully"
|
382 |
+
msgstr "Poruka pošiljaoca je uspešno poslana"
|
383 |
+
|
384 |
+
#: contact-form-7/includes/admin-panel.php:200
|
385 |
+
msgid "Sender's message was failed to send"
|
386 |
+
msgstr "Poruka pošiljaoca nije poslana"
|
387 |
+
|
388 |
+
#: contact-form-7/includes/admin-panel.php:204
|
389 |
+
msgid "Akismet judged the sending activity as spamming"
|
390 |
+
msgstr "Akismet je zaključio da je poruka spam"
|
391 |
+
|
392 |
+
#: contact-form-7/includes/admin-panel.php:208
|
393 |
+
msgid "Validation errors occurred"
|
394 |
+
msgstr "Desile su se greške u validaciji"
|
395 |
+
|
396 |
+
#: contact-form-7/includes/admin-panel.php:212
|
397 |
+
msgid "There is a field that sender is needed to fill in"
|
398 |
+
msgstr "Postoji polje koje pošiljaoc mora ispuniti"
|
399 |
+
|
400 |
+
#: contact-form-7/includes/admin-panel.php:216
|
401 |
+
msgid "Email address that sender entered is invalid"
|
402 |
+
msgstr "Unesena Email adresa nije valjana"
|
403 |
+
|
404 |
+
#: contact-form-7/includes/admin-panel.php:220
|
405 |
+
msgid "There is a field of term that sender is needed to accept"
|
406 |
+
msgstr "Postoji polje koje pošiljaoc mora prihvatiti"
|
407 |
+
|
408 |
+
#: contact-form-7/includes/admin-panel.php:224
|
409 |
+
msgid "Sender doesn't enter the correct answer to the quiz"
|
410 |
+
msgstr "Pošiljatelj nije tačno odgovorio na kviy pitanje."
|
411 |
+
|
412 |
+
#: contact-form-7/includes/admin-panel.php:228
|
413 |
+
msgid "The code that sender entered does not match the CAPTCHA"
|
414 |
+
msgstr "Unešen kod se ne podudara s CAPTCHA-om"
|
415 |
+
|
416 |
+
#: contact-form-7/includes/admin-panel.php:232
|
417 |
+
msgid "Uploading a file fails for any reason"
|
418 |
+
msgstr "Uploadiranje fajla neuspješno iz bilo kojeg razloga"
|
419 |
+
|
420 |
+
#: contact-form-7/includes/admin-panel.php:236
|
421 |
+
msgid "Uploaded file is not allowed file type"
|
422 |
+
msgstr "Ekstenzija fajla nije dozvoljena"
|
423 |
+
|
424 |
+
#: contact-form-7/includes/admin-panel.php:240
|
425 |
+
msgid "Uploaded file is too large"
|
426 |
+
msgstr "Uploadirani fajl je prevelik"
|
427 |
+
|
languages/wpcf7-sv_SE.mo
CHANGED
Binary file
|
languages/wpcf7-sv_SE.po
CHANGED
@@ -2,305 +2,442 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contact Form 7\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator:
|
8 |
-
"Language-Team:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Poedit-Language: Swedish\n"
|
13 |
"X-Poedit-Country: SWEDEN\n"
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
|
|
15 |
|
16 |
-
#: contact-form-7/wp-contact-form-7.php:
|
17 |
msgid "Contact form"
|
18 |
msgstr "Kontaktformulär"
|
19 |
|
20 |
-
#: contact-form-7/wp-contact-form-7.php:
|
21 |
#: contact-form-7/includes/admin-panel.php:5
|
22 |
msgid "Contact Form 7"
|
23 |
msgstr "Contact Form 7"
|
24 |
|
25 |
-
#: contact-form-7/wp-contact-form-7.php:
|
26 |
msgid "optional"
|
27 |
msgstr "valfri"
|
28 |
|
29 |
-
#: contact-form-7/wp-contact-form-7.php:
|
30 |
msgid "Generate Tag"
|
31 |
-
msgstr "Generera
|
32 |
|
33 |
-
#: contact-form-7/wp-contact-form-7.php:
|
34 |
msgid "Text field"
|
35 |
msgstr "Textfält"
|
36 |
|
37 |
-
#: contact-form-7/wp-contact-form-7.php:
|
38 |
msgid "Email field"
|
39 |
-
msgstr "
|
40 |
|
41 |
-
#: contact-form-7/wp-contact-form-7.php:
|
42 |
msgid "Text area"
|
43 |
-
msgstr "
|
44 |
|
45 |
-
#: contact-form-7/wp-contact-form-7.php:
|
46 |
msgid "Drop-down menu"
|
47 |
-
msgstr "
|
48 |
|
49 |
-
#: contact-form-7/wp-contact-form-7.php:
|
50 |
msgid "Checkboxes"
|
51 |
msgstr "Checkboxar"
|
52 |
|
53 |
-
#: contact-form-7/wp-contact-form-7.php:
|
54 |
msgid "Radio buttons"
|
55 |
msgstr "Radioknappar"
|
56 |
|
57 |
-
#: contact-form-7/wp-contact-form-7.php:
|
58 |
msgid "Acceptance"
|
59 |
-
msgstr "
|
60 |
|
61 |
-
#: contact-form-7/wp-contact-form-7.php:
|
62 |
msgid "Make this checkbox checked by default?"
|
63 |
msgstr "Skall denna checkbox vara ifylld som standard?"
|
64 |
|
65 |
-
#: contact-form-7/wp-contact-form-7.php:
|
66 |
msgid "Make this checkbox work inversely?"
|
67 |
-
msgstr "Gör så att denna checkbox måste
|
68 |
|
69 |
-
#: contact-form-7/wp-contact-form-7.php:
|
70 |
msgid "* That means visitor who accepts the term unchecks it."
|
71 |
-
msgstr "* Det betyder att besökare som accepterar villkoren måste
|
72 |
|
73 |
-
#: contact-form-7/wp-contact-form-7.php:
|
74 |
msgid "CAPTCHA"
|
75 |
-
msgstr "CAPTCHA"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
-
#: contact-form-7/wp-contact-form-7.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
msgid "Submit button"
|
79 |
msgstr "Skicka-knapp"
|
80 |
|
81 |
-
#: contact-form-7/wp-contact-form-7.php:
|
82 |
msgid "Name"
|
83 |
msgstr "Namn"
|
84 |
|
85 |
-
#: contact-form-7/wp-contact-form-7.php:
|
86 |
msgid "Required field?"
|
87 |
-
msgstr "
|
88 |
|
89 |
-
#: contact-form-7/wp-contact-form-7.php:
|
90 |
msgid "Allow multiple selections?"
|
91 |
msgstr "Tillåt flera val?"
|
92 |
|
93 |
-
#: contact-form-7/wp-contact-form-7.php:
|
94 |
msgid "Insert a blank item as the first option?"
|
95 |
-
msgstr "Lägg
|
96 |
|
97 |
-
#: contact-form-7/wp-contact-form-7.php:
|
98 |
msgid "Make checkboxes exclusive?"
|
99 |
-
msgstr "
|
100 |
|
101 |
-
#: contact-form-7/wp-contact-form-7.php:
|
102 |
msgid "Choices"
|
103 |
msgstr "Val"
|
104 |
|
105 |
-
#: contact-form-7/wp-contact-form-7.php:
|
106 |
msgid "Label"
|
107 |
-
msgstr "
|
108 |
|
109 |
-
#: contact-form-7/wp-contact-form-7.php:
|
110 |
msgid "Default value"
|
111 |
-
msgstr "
|
112 |
|
113 |
-
#: contact-form-7/wp-contact-form-7.php:
|
114 |
msgid "Akismet"
|
115 |
msgstr "Akismet"
|
116 |
|
117 |
-
#: contact-form-7/wp-contact-form-7.php:
|
118 |
msgid "This field requires author's name"
|
119 |
msgstr "Det här fältet kräver författarens namn"
|
120 |
|
121 |
-
#: contact-form-7/wp-contact-form-7.php:
|
122 |
msgid "This field requires author's URL"
|
123 |
msgstr "Det här fältet kräver författarens webbadress"
|
124 |
|
125 |
-
#: contact-form-7/wp-contact-form-7.php:
|
126 |
msgid "This field requires author's email address"
|
127 |
-
msgstr "Det här fältet kräver författarens
|
128 |
|
129 |
-
#: contact-form-7/wp-contact-form-7.php:
|
130 |
-
msgid "Copy and paste
|
131 |
-
msgstr "Kopiera och klistra
|
132 |
|
133 |
-
#: contact-form-7/wp-contact-form-7.php:
|
134 |
msgid "Foreground color"
|
135 |
msgstr "Förgrundsfärg"
|
136 |
|
137 |
-
#: contact-form-7/wp-contact-form-7.php:
|
138 |
msgid "Background color"
|
139 |
msgstr "Bakgrundsfärg"
|
140 |
|
141 |
-
#: contact-form-7/wp-contact-form-7.php:
|
142 |
msgid "Image size"
|
143 |
msgstr "Bildstorlek"
|
144 |
|
145 |
-
#: contact-form-7/wp-contact-form-7.php:
|
146 |
msgid "Small"
|
147 |
msgstr "Liten"
|
148 |
|
149 |
-
#: contact-form-7/wp-contact-form-7.php:
|
150 |
msgid "Medium"
|
151 |
msgstr "Mellan"
|
152 |
|
153 |
-
#: contact-form-7/wp-contact-form-7.php:
|
154 |
msgid "Large"
|
155 |
msgstr "Stor"
|
156 |
|
157 |
-
#: contact-form-7/wp-contact-form-7.php:
|
158 |
msgid "Image settings"
|
159 |
msgstr "Bildinställningar"
|
160 |
|
161 |
-
#: contact-form-7/wp-contact-form-7.php:
|
162 |
msgid "Input field settings"
|
163 |
-
msgstr "
|
164 |
|
165 |
-
#: contact-form-7/wp-contact-form-7.php:
|
166 |
msgid "For image"
|
167 |
msgstr "För bild"
|
168 |
|
169 |
-
#: contact-form-7/wp-contact-form-7.php:
|
170 |
msgid "For input field"
|
171 |
-
msgstr "För
|
172 |
|
173 |
-
#: contact-form-7/wp-contact-form-7.php:
|
174 |
msgid "* One choice per line."
|
175 |
-
msgstr "* Ett val per
|
176 |
|
177 |
-
#: contact-form-7/wp-contact-form-7.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
msgid "Contact form created."
|
179 |
msgstr "Kontaktformulär skapat."
|
180 |
|
181 |
-
#: contact-form-7/wp-contact-form-7.php:
|
182 |
msgid "Contact form saved."
|
183 |
msgstr "Kontaktformulär sparat."
|
184 |
|
185 |
-
#: contact-form-7/wp-contact-form-7.php:
|
186 |
msgid "Contact form deleted."
|
187 |
msgstr "Kontaktformulär raderat."
|
188 |
|
189 |
-
#: contact-form-7/wp-contact-form-7.php:
|
190 |
msgid "Untitled"
|
191 |
msgstr "Namnlös"
|
192 |
|
193 |
-
#: contact-form-7/wp-contact-form-7.php:
|
194 |
msgid "Your Name"
|
195 |
msgstr "Ditt namn"
|
196 |
|
197 |
-
#: contact-form-7/wp-contact-form-7.php:
|
198 |
-
#: contact-form-7/wp-contact-form-7.php:
|
199 |
msgid "(required)"
|
200 |
-
msgstr "(
|
201 |
|
202 |
-
#: contact-form-7/wp-contact-form-7.php:
|
203 |
msgid "Your Email"
|
204 |
-
msgstr "Din
|
205 |
|
206 |
-
#: contact-form-7/wp-contact-form-7.php:
|
207 |
msgid "Subject"
|
208 |
msgstr "Ämne"
|
209 |
|
210 |
-
#: contact-form-7/wp-contact-form-7.php:
|
211 |
msgid "Your Message"
|
212 |
msgstr "Ditt meddelande"
|
213 |
|
214 |
-
#: contact-form-7/wp-contact-form-7.php:
|
215 |
-
#: contact-form-7/wp-contact-form-7.php:
|
216 |
msgid "Send"
|
217 |
msgstr "Skicka"
|
218 |
|
219 |
-
#: contact-form-7/wp-contact-form-7.php:
|
220 |
msgid "Your message was sent successfully. Thanks."
|
221 |
-
msgstr "
|
222 |
|
223 |
-
#: contact-form-7/wp-contact-form-7.php:
|
|
|
224 |
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
225 |
-
msgstr "
|
226 |
|
227 |
-
#: contact-form-7/wp-contact-form-7.php:
|
228 |
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
229 |
-
msgstr "
|
230 |
|
231 |
-
#: contact-form-7/wp-contact-form-7.php:
|
232 |
msgid "Please accept the terms to proceed."
|
233 |
msgstr "Acceptera villkoren för att fortsätta."
|
234 |
|
235 |
-
#: contact-form-7/wp-contact-form-7.php:
|
236 |
msgid "Email address seems invalid."
|
237 |
-
msgstr "
|
238 |
|
239 |
-
#: contact-form-7/wp-contact-form-7.php:
|
240 |
msgid "Please fill the required field."
|
241 |
-
msgstr "Vänligen fyll i
|
242 |
|
243 |
-
#: contact-form-7/wp-contact-form-7.php:
|
244 |
msgid "Your entered code is incorrect."
|
245 |
-
msgstr "
|
|
|
|
|
|
|
|
|
246 |
|
247 |
-
#: contact-form-7/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
msgid "Add new"
|
249 |
msgstr "Lägg till ny"
|
250 |
|
251 |
-
#: contact-form-7/includes/admin-panel.php:
|
252 |
-
msgid "Copy and paste
|
253 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
254 |
|
255 |
-
#: contact-form-7/includes/admin-panel.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
msgid "Form"
|
257 |
msgstr "Formulär"
|
258 |
|
259 |
-
#: contact-form-7/includes/admin-panel.php:
|
260 |
msgid "Mail"
|
261 |
-
msgstr "
|
262 |
|
263 |
-
#: contact-form-7/includes/admin-panel.php:
|
264 |
-
#: contact-form-7/includes/admin-panel.php:
|
265 |
msgid "To:"
|
266 |
msgstr "Till:"
|
267 |
|
268 |
-
#: contact-form-7/includes/admin-panel.php:
|
269 |
-
#: contact-form-7/includes/admin-panel.php:
|
270 |
msgid "From:"
|
271 |
msgstr "Från:"
|
272 |
|
273 |
-
#: contact-form-7/includes/admin-panel.php:
|
274 |
-
#: contact-form-7/includes/admin-panel.php:
|
275 |
msgid "Subject:"
|
276 |
msgstr "Ämne:"
|
277 |
|
278 |
-
#: contact-form-7/includes/admin-panel.php:
|
279 |
-
#: contact-form-7/includes/admin-panel.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
msgid "Message body:"
|
281 |
msgstr "Meddelandefält:"
|
282 |
|
283 |
-
#: contact-form-7/includes/admin-panel.php:
|
284 |
msgid "Mail (2)"
|
285 |
-
msgstr "
|
286 |
|
287 |
-
#: contact-form-7/includes/admin-panel.php:
|
288 |
msgid "Use mail (2)"
|
289 |
-
msgstr "Använd
|
290 |
|
291 |
-
#: contact-form-7/includes/admin-panel.php:
|
292 |
-
msgid "
|
293 |
-
msgstr "
|
294 |
|
295 |
-
#: contact-form-7/includes/admin-panel.php:
|
296 |
-
msgid "
|
297 |
-
msgstr "
|
298 |
|
299 |
-
#: contact-form-7/includes/admin-panel.php:
|
300 |
-
msgid ""
|
301 |
-
"
|
302 |
-
|
303 |
-
|
304 |
-
"
|
305 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contact Form 7\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-03-15 03:27+0900\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Mattias Tengblad <mst@eyesx.com>\n"
|
8 |
+
"Language-Team: WP-Support Sverige / Mattias Tengblad <info@wp-support.se / mst@eyesx.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Poedit-Language: Swedish\n"
|
13 |
"X-Poedit-Country: SWEDEN\n"
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
"Plural-Forms: nplurals=2; plural=n != 1\n"
|
16 |
|
17 |
+
#: contact-form-7/wp-contact-form-7.php:405
|
18 |
msgid "Contact form"
|
19 |
msgstr "Kontaktformulär"
|
20 |
|
21 |
+
#: contact-form-7/wp-contact-form-7.php:593
|
22 |
#: contact-form-7/includes/admin-panel.php:5
|
23 |
msgid "Contact Form 7"
|
24 |
msgstr "Contact Form 7"
|
25 |
|
26 |
+
#: contact-form-7/wp-contact-form-7.php:616
|
27 |
msgid "optional"
|
28 |
msgstr "valfri"
|
29 |
|
30 |
+
#: contact-form-7/wp-contact-form-7.php:617
|
31 |
msgid "Generate Tag"
|
32 |
+
msgstr "Generera formatering"
|
33 |
|
34 |
+
#: contact-form-7/wp-contact-form-7.php:618
|
35 |
msgid "Text field"
|
36 |
msgstr "Textfält"
|
37 |
|
38 |
+
#: contact-form-7/wp-contact-form-7.php:619
|
39 |
msgid "Email field"
|
40 |
+
msgstr "E-postfält"
|
41 |
|
42 |
+
#: contact-form-7/wp-contact-form-7.php:620
|
43 |
msgid "Text area"
|
44 |
+
msgstr "Meddelandefält"
|
45 |
|
46 |
+
#: contact-form-7/wp-contact-form-7.php:621
|
47 |
msgid "Drop-down menu"
|
48 |
+
msgstr "Rullgardinsmeny"
|
49 |
|
50 |
+
#: contact-form-7/wp-contact-form-7.php:622
|
51 |
msgid "Checkboxes"
|
52 |
msgstr "Checkboxar"
|
53 |
|
54 |
+
#: contact-form-7/wp-contact-form-7.php:623
|
55 |
msgid "Radio buttons"
|
56 |
msgstr "Radioknappar"
|
57 |
|
58 |
+
#: contact-form-7/wp-contact-form-7.php:624
|
59 |
msgid "Acceptance"
|
60 |
+
msgstr "Godkännande"
|
61 |
|
62 |
+
#: contact-form-7/wp-contact-form-7.php:625
|
63 |
msgid "Make this checkbox checked by default?"
|
64 |
msgstr "Skall denna checkbox vara ifylld som standard?"
|
65 |
|
66 |
+
#: contact-form-7/wp-contact-form-7.php:626
|
67 |
msgid "Make this checkbox work inversely?"
|
68 |
+
msgstr "Gör så att denna checkbox måste avmarkeras?"
|
69 |
|
70 |
+
#: contact-form-7/wp-contact-form-7.php:627
|
71 |
msgid "* That means visitor who accepts the term unchecks it."
|
72 |
+
msgstr "* Det betyder att besökare som accepterar villkoren måste avmarkera det."
|
73 |
|
74 |
+
#: contact-form-7/wp-contact-form-7.php:628
|
75 |
msgid "CAPTCHA"
|
76 |
+
msgstr "CAPTCHA (Bildverifikation)"
|
77 |
+
|
78 |
+
#: contact-form-7/wp-contact-form-7.php:629
|
79 |
+
msgid "Quiz"
|
80 |
+
msgstr "Antispam-fråga"
|
81 |
+
|
82 |
+
#: contact-form-7/wp-contact-form-7.php:630
|
83 |
+
msgid "Quizzes"
|
84 |
+
msgstr "Antispam-frågor"
|
85 |
+
|
86 |
+
#: contact-form-7/wp-contact-form-7.php:631
|
87 |
+
msgid "* quiz|answer (e.g. 1+1=?|2)"
|
88 |
+
msgstr "* fråga|svar (ex. 1+1=?|2)"
|
89 |
|
90 |
+
#: contact-form-7/wp-contact-form-7.php:632
|
91 |
+
msgid "File upload"
|
92 |
+
msgstr "Filuppladdning"
|
93 |
+
|
94 |
+
#: contact-form-7/wp-contact-form-7.php:633
|
95 |
+
msgid "bytes"
|
96 |
+
msgstr "bytes"
|
97 |
+
|
98 |
+
#: contact-form-7/wp-contact-form-7.php:634
|
99 |
msgid "Submit button"
|
100 |
msgstr "Skicka-knapp"
|
101 |
|
102 |
+
#: contact-form-7/wp-contact-form-7.php:635
|
103 |
msgid "Name"
|
104 |
msgstr "Namn"
|
105 |
|
106 |
+
#: contact-form-7/wp-contact-form-7.php:636
|
107 |
msgid "Required field?"
|
108 |
+
msgstr "Obligatoriskt fält?"
|
109 |
|
110 |
+
#: contact-form-7/wp-contact-form-7.php:637
|
111 |
msgid "Allow multiple selections?"
|
112 |
msgstr "Tillåt flera val?"
|
113 |
|
114 |
+
#: contact-form-7/wp-contact-form-7.php:638
|
115 |
msgid "Insert a blank item as the first option?"
|
116 |
+
msgstr "Lägg till ett tomt objekt som första val?"
|
117 |
|
118 |
+
#: contact-form-7/wp-contact-form-7.php:639
|
119 |
msgid "Make checkboxes exclusive?"
|
120 |
+
msgstr "Göra checkboxarna exklusiva?"
|
121 |
|
122 |
+
#: contact-form-7/wp-contact-form-7.php:640
|
123 |
msgid "Choices"
|
124 |
msgstr "Val"
|
125 |
|
126 |
+
#: contact-form-7/wp-contact-form-7.php:641
|
127 |
msgid "Label"
|
128 |
+
msgstr "Märkning"
|
129 |
|
130 |
+
#: contact-form-7/wp-contact-form-7.php:642
|
131 |
msgid "Default value"
|
132 |
+
msgstr "Standardvärde"
|
133 |
|
134 |
+
#: contact-form-7/wp-contact-form-7.php:643
|
135 |
msgid "Akismet"
|
136 |
msgstr "Akismet"
|
137 |
|
138 |
+
#: contact-form-7/wp-contact-form-7.php:644
|
139 |
msgid "This field requires author's name"
|
140 |
msgstr "Det här fältet kräver författarens namn"
|
141 |
|
142 |
+
#: contact-form-7/wp-contact-form-7.php:645
|
143 |
msgid "This field requires author's URL"
|
144 |
msgstr "Det här fältet kräver författarens webbadress"
|
145 |
|
146 |
+
#: contact-form-7/wp-contact-form-7.php:646
|
147 |
msgid "This field requires author's email address"
|
148 |
+
msgstr "Det här fältet kräver författarens e-postadress"
|
149 |
|
150 |
+
#: contact-form-7/wp-contact-form-7.php:647
|
151 |
+
msgid "Copy this code and paste it into the form left."
|
152 |
+
msgstr "Kopiera och klistra denna kod i formuläret."
|
153 |
|
154 |
+
#: contact-form-7/wp-contact-form-7.php:648
|
155 |
msgid "Foreground color"
|
156 |
msgstr "Förgrundsfärg"
|
157 |
|
158 |
+
#: contact-form-7/wp-contact-form-7.php:649
|
159 |
msgid "Background color"
|
160 |
msgstr "Bakgrundsfärg"
|
161 |
|
162 |
+
#: contact-form-7/wp-contact-form-7.php:650
|
163 |
msgid "Image size"
|
164 |
msgstr "Bildstorlek"
|
165 |
|
166 |
+
#: contact-form-7/wp-contact-form-7.php:651
|
167 |
msgid "Small"
|
168 |
msgstr "Liten"
|
169 |
|
170 |
+
#: contact-form-7/wp-contact-form-7.php:652
|
171 |
msgid "Medium"
|
172 |
msgstr "Mellan"
|
173 |
|
174 |
+
#: contact-form-7/wp-contact-form-7.php:653
|
175 |
msgid "Large"
|
176 |
msgstr "Stor"
|
177 |
|
178 |
+
#: contact-form-7/wp-contact-form-7.php:654
|
179 |
msgid "Image settings"
|
180 |
msgstr "Bildinställningar"
|
181 |
|
182 |
+
#: contact-form-7/wp-contact-form-7.php:655
|
183 |
msgid "Input field settings"
|
184 |
+
msgstr "Inställningar för inmatningsfält"
|
185 |
|
186 |
+
#: contact-form-7/wp-contact-form-7.php:656
|
187 |
msgid "For image"
|
188 |
msgstr "För bild"
|
189 |
|
190 |
+
#: contact-form-7/wp-contact-form-7.php:657
|
191 |
msgid "For input field"
|
192 |
+
msgstr "För inmatningsfält"
|
193 |
|
194 |
+
#: contact-form-7/wp-contact-form-7.php:658
|
195 |
msgid "* One choice per line."
|
196 |
+
msgstr "* Ett val per rad."
|
197 |
|
198 |
+
#: contact-form-7/wp-contact-form-7.php:659
|
199 |
+
msgid "Show"
|
200 |
+
msgstr "Visa"
|
201 |
+
|
202 |
+
#: contact-form-7/wp-contact-form-7.php:660
|
203 |
+
msgid "Hide"
|
204 |
+
msgstr "Göm"
|
205 |
+
|
206 |
+
#: contact-form-7/wp-contact-form-7.php:661
|
207 |
+
msgid "File size limit"
|
208 |
+
msgstr "Gräns för filstorlek"
|
209 |
+
|
210 |
+
#: contact-form-7/wp-contact-form-7.php:662
|
211 |
+
msgid "Acceptable file types"
|
212 |
+
msgstr "Tillåtna filtyper"
|
213 |
+
|
214 |
+
#: contact-form-7/wp-contact-form-7.php:663
|
215 |
+
msgid "Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed."
|
216 |
+
msgstr "Notera: För att använda CAPTCHA så behöver du ha Really Simple CAPTCHA-tillägget installerat."
|
217 |
+
|
218 |
+
#: contact-form-7/wp-contact-form-7.php:690
|
219 |
msgid "Contact form created."
|
220 |
msgstr "Kontaktformulär skapat."
|
221 |
|
222 |
+
#: contact-form-7/wp-contact-form-7.php:693
|
223 |
msgid "Contact form saved."
|
224 |
msgstr "Kontaktformulär sparat."
|
225 |
|
226 |
+
#: contact-form-7/wp-contact-form-7.php:696
|
227 |
msgid "Contact form deleted."
|
228 |
msgstr "Kontaktformulär raderat."
|
229 |
|
230 |
+
#: contact-form-7/wp-contact-form-7.php:707
|
231 |
msgid "Untitled"
|
232 |
msgstr "Namnlös"
|
233 |
|
234 |
+
#: contact-form-7/wp-contact-form-7.php:734
|
235 |
msgid "Your Name"
|
236 |
msgstr "Ditt namn"
|
237 |
|
238 |
+
#: contact-form-7/wp-contact-form-7.php:734
|
239 |
+
#: contact-form-7/wp-contact-form-7.php:736
|
240 |
msgid "(required)"
|
241 |
+
msgstr "(obligatoriskt)"
|
242 |
|
243 |
+
#: contact-form-7/wp-contact-form-7.php:736
|
244 |
msgid "Your Email"
|
245 |
+
msgstr "Din e-post"
|
246 |
|
247 |
+
#: contact-form-7/wp-contact-form-7.php:738
|
248 |
msgid "Subject"
|
249 |
msgstr "Ämne"
|
250 |
|
251 |
+
#: contact-form-7/wp-contact-form-7.php:740
|
252 |
msgid "Your Message"
|
253 |
msgstr "Ditt meddelande"
|
254 |
|
255 |
+
#: contact-form-7/wp-contact-form-7.php:742
|
256 |
+
#: contact-form-7/wp-contact-form-7.php:1476
|
257 |
msgid "Send"
|
258 |
msgstr "Skicka"
|
259 |
|
260 |
+
#: contact-form-7/wp-contact-form-7.php:796
|
261 |
msgid "Your message was sent successfully. Thanks."
|
262 |
+
msgstr "Tack för ditt meddelande!"
|
263 |
|
264 |
+
#: contact-form-7/wp-contact-form-7.php:798
|
265 |
+
#: contact-form-7/wp-contact-form-7.php:800
|
266 |
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
267 |
+
msgstr "Ett fel uppstog när ditt meddelande skulle skickas. Var vänlig försök senare."
|
268 |
|
269 |
+
#: contact-form-7/wp-contact-form-7.php:802
|
270 |
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
271 |
+
msgstr "Valideringsfel. Var vänlig undersök fälten du fyllt i och försök igen."
|
272 |
|
273 |
+
#: contact-form-7/wp-contact-form-7.php:804
|
274 |
msgid "Please accept the terms to proceed."
|
275 |
msgstr "Acceptera villkoren för att fortsätta."
|
276 |
|
277 |
+
#: contact-form-7/wp-contact-form-7.php:806
|
278 |
msgid "Email address seems invalid."
|
279 |
+
msgstr "Du har angivit en felaktig e-postadress."
|
280 |
|
281 |
+
#: contact-form-7/wp-contact-form-7.php:808
|
282 |
msgid "Please fill the required field."
|
283 |
+
msgstr "Vänligen fyll i alla obligatoriska fält."
|
284 |
|
285 |
+
#: contact-form-7/wp-contact-form-7.php:810
|
286 |
msgid "Your entered code is incorrect."
|
287 |
+
msgstr "Verifieringskoden du angav är felaktig."
|
288 |
+
|
289 |
+
#: contact-form-7/wp-contact-form-7.php:812
|
290 |
+
msgid "Your answer is not correct."
|
291 |
+
msgstr "Verifieringskoden du angav är felaktig."
|
292 |
|
293 |
+
#: contact-form-7/wp-contact-form-7.php:814
|
294 |
+
msgid "Failed to upload file."
|
295 |
+
msgstr "Filen kunde inte laddas upp."
|
296 |
+
|
297 |
+
#: contact-form-7/wp-contact-form-7.php:816
|
298 |
+
msgid "This file type is not allowed."
|
299 |
+
msgstr "Filtypen är inte tillåten."
|
300 |
+
|
301 |
+
#: contact-form-7/wp-contact-form-7.php:818
|
302 |
+
msgid "This file is too large."
|
303 |
+
msgstr "Filen är för stor."
|
304 |
+
|
305 |
+
#: contact-form-7/wp-contact-form-7.php:1417
|
306 |
+
msgid "To use CAPTCHA, you need <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> plugin installed."
|
307 |
+
msgstr "För att använda CAPTCHA så behöver du ha <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a>-tillägget installerat."
|
308 |
+
|
309 |
+
#: contact-form-7/includes/admin-panel.php:20
|
310 |
msgid "Add new"
|
311 |
msgstr "Lägg till ny"
|
312 |
|
313 |
+
#: contact-form-7/includes/admin-panel.php:42
|
314 |
+
msgid "Copy this code and paste it into your post, page or text widget content."
|
315 |
+
msgstr "Kopiera in denna kod i ditt inlägg, på din sida eller textwidget."
|
316 |
+
|
317 |
+
#: contact-form-7/includes/admin-panel.php:49
|
318 |
+
#: contact-form-7/includes/admin-panel.php:262
|
319 |
+
msgid "Save"
|
320 |
+
msgstr "Spara"
|
321 |
|
322 |
+
#: contact-form-7/includes/admin-panel.php:56
|
323 |
+
msgid "Copy"
|
324 |
+
msgstr "Kopiera"
|
325 |
+
|
326 |
+
#: contact-form-7/includes/admin-panel.php:60
|
327 |
+
msgid "Delete"
|
328 |
+
msgstr "Radera"
|
329 |
+
|
330 |
+
#: contact-form-7/includes/admin-panel.php:61
|
331 |
+
msgid ""
|
332 |
+
"You are about to delete this contact form.\n"
|
333 |
+
" 'Cancel' to stop, 'OK' to delete."
|
334 |
+
msgstr ""
|
335 |
+
"Är du säker på att du vill radera detta kontaktformulär? \n"
|
336 |
+
" Klicka 'Avbryt' för att avbryta, 'OK' för att radera."
|
337 |
+
|
338 |
+
#: contact-form-7/includes/admin-panel.php:75
|
339 |
msgid "Form"
|
340 |
msgstr "Formulär"
|
341 |
|
342 |
+
#: contact-form-7/includes/admin-panel.php:95
|
343 |
msgid "Mail"
|
344 |
+
msgstr "Mottagarmail"
|
345 |
|
346 |
+
#: contact-form-7/includes/admin-panel.php:102
|
347 |
+
#: contact-form-7/includes/admin-panel.php:154
|
348 |
msgid "To:"
|
349 |
msgstr "Till:"
|
350 |
|
351 |
+
#: contact-form-7/includes/admin-panel.php:106
|
352 |
+
#: contact-form-7/includes/admin-panel.php:158
|
353 |
msgid "From:"
|
354 |
msgstr "Från:"
|
355 |
|
356 |
+
#: contact-form-7/includes/admin-panel.php:110
|
357 |
+
#: contact-form-7/includes/admin-panel.php:162
|
358 |
msgid "Subject:"
|
359 |
msgstr "Ämne:"
|
360 |
|
361 |
+
#: contact-form-7/includes/admin-panel.php:115
|
362 |
+
#: contact-form-7/includes/admin-panel.php:167
|
363 |
+
msgid "File attachments:"
|
364 |
+
msgstr "Bilagor:"
|
365 |
+
|
366 |
+
#: contact-form-7/includes/admin-panel.php:117
|
367 |
+
#: contact-form-7/includes/admin-panel.php:169
|
368 |
+
msgid "(You need WordPress 2.7 or greater to use this feature)"
|
369 |
+
msgstr "(Du måste köra WordPress 2.7 eller senare för att kunna använda denna funktion)"
|
370 |
+
|
371 |
+
#: contact-form-7/includes/admin-panel.php:125
|
372 |
+
#: contact-form-7/includes/admin-panel.php:177
|
373 |
+
msgid "Use HTML content type"
|
374 |
+
msgstr "Använd HTML som innehållstyp"
|
375 |
+
|
376 |
+
#: contact-form-7/includes/admin-panel.php:130
|
377 |
+
#: contact-form-7/includes/admin-panel.php:182
|
378 |
msgid "Message body:"
|
379 |
msgstr "Meddelandefält:"
|
380 |
|
381 |
+
#: contact-form-7/includes/admin-panel.php:141
|
382 |
msgid "Mail (2)"
|
383 |
+
msgstr "Sekundärt mail"
|
384 |
|
385 |
+
#: contact-form-7/includes/admin-panel.php:148
|
386 |
msgid "Use mail (2)"
|
387 |
+
msgstr "Använd ett sekundärt mottagarmail"
|
388 |
|
389 |
+
#: contact-form-7/includes/admin-panel.php:193
|
390 |
+
msgid "Messages"
|
391 |
+
msgstr "Meddelanden"
|
392 |
|
393 |
+
#: contact-form-7/includes/admin-panel.php:201
|
394 |
+
msgid "Sender's message was sent successfully"
|
395 |
+
msgstr "Om besökarens meddelade skickades"
|
396 |
|
397 |
+
#: contact-form-7/includes/admin-panel.php:205
|
398 |
+
msgid "Sender's message was failed to send"
|
399 |
+
msgstr "Om besökarens meddelande inte kunde skickas"
|
400 |
+
|
401 |
+
#: contact-form-7/includes/admin-panel.php:209
|
402 |
+
msgid "Akismet judged the sending activity as spamming"
|
403 |
+
msgstr "Om Akismet bedömer sändningen som spamaktivitet"
|
404 |
+
|
405 |
+
#: contact-form-7/includes/admin-panel.php:213
|
406 |
+
msgid "Validation errors occurred"
|
407 |
+
msgstr "Om valideringsfel uppstår"
|
408 |
+
|
409 |
+
#: contact-form-7/includes/admin-panel.php:217
|
410 |
+
msgid "There is a field that sender is needed to fill in"
|
411 |
+
msgstr "Om det finns obligatoriska fält att fylla i"
|
412 |
+
|
413 |
+
#: contact-form-7/includes/admin-panel.php:221
|
414 |
+
msgid "Email address that sender entered is invalid"
|
415 |
+
msgstr "Om e-postadressen angiven av besöakren är felaktig"
|
416 |
+
|
417 |
+
#: contact-form-7/includes/admin-panel.php:225
|
418 |
+
msgid "There is a field of term that sender is needed to accept"
|
419 |
+
msgstr "Om det finns ett fält för villkor som besökaren måste godkänna"
|
420 |
+
|
421 |
+
#: contact-form-7/includes/admin-panel.php:229
|
422 |
+
msgid "Sender doesn't enter the correct answer to the quiz"
|
423 |
+
msgstr "Om användaren anger ett felaktigt svar för antispam-frågan"
|
424 |
+
|
425 |
+
#: contact-form-7/includes/admin-panel.php:233
|
426 |
+
msgid "The code that sender entered does not match the CAPTCHA"
|
427 |
+
msgstr "Om verifieringskoden besökaren anger inte matchar CAPTCHA-koden"
|
428 |
+
|
429 |
+
#: contact-form-7/includes/admin-panel.php:237
|
430 |
+
msgid "Uploading a file fails for any reason"
|
431 |
+
msgstr "Om filuppladdningen misslyckas av någon anledning"
|
432 |
+
|
433 |
+
#: contact-form-7/includes/admin-panel.php:241
|
434 |
+
msgid "Uploaded file is not allowed file type"
|
435 |
+
msgstr "Om den uppladdade filen är av en ej tillåten filtyp"
|
436 |
+
|
437 |
+
#: contact-form-7/includes/admin-panel.php:245
|
438 |
+
msgid "Uploaded file is too large"
|
439 |
+
msgstr "Om den uppladdade filen är för stor"
|
440 |
+
|
441 |
+
#~ msgid "Delete this contact form"
|
442 |
+
#~ msgstr "Radera detta kontaktformulär"
|
443 |
|
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: 2009-
|
6 |
-
"PO-Revision-Date: 2009-
|
7 |
"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -15,425 +15,454 @@ 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:
|
19 |
msgid "Contact form"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: contact-form-7/
|
23 |
-
#: contact-form-7/
|
24 |
msgid "Contact Form 7"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: contact-form-7/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
msgid "optional"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: contact-form-7/
|
32 |
msgid "Generate Tag"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: contact-form-7/
|
36 |
msgid "Text field"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: contact-form-7/
|
40 |
msgid "Email field"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: contact-form-7/
|
44 |
msgid "Text area"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: contact-form-7/
|
48 |
msgid "Drop-down menu"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: contact-form-7/
|
52 |
msgid "Checkboxes"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: contact-form-7/
|
56 |
msgid "Radio buttons"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: contact-form-7/
|
60 |
msgid "Acceptance"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: contact-form-7/
|
64 |
msgid "Make this checkbox checked by default?"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: contact-form-7/
|
68 |
msgid "Make this checkbox work inversely?"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: contact-form-7/
|
72 |
msgid "* That means visitor who accepts the term unchecks it."
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: contact-form-7/
|
76 |
msgid "CAPTCHA"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: contact-form-7/
|
80 |
msgid "Quiz"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: contact-form-7/
|
84 |
msgid "Quizzes"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: contact-form-7/
|
88 |
msgid "* quiz|answer (e.g. 1+1=?|2)"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: contact-form-7/
|
92 |
msgid "File upload"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: contact-form-7/
|
96 |
msgid "bytes"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: contact-form-7/
|
100 |
msgid "Submit button"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: contact-form-7/
|
104 |
msgid "Name"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: contact-form-7/
|
108 |
msgid "Required field?"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: contact-form-7/
|
112 |
msgid "Allow multiple selections?"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: contact-form-7/
|
116 |
msgid "Insert a blank item as the first option?"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: contact-form-7/
|
120 |
msgid "Make checkboxes exclusive?"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: contact-form-7/
|
124 |
msgid "Choices"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: contact-form-7/
|
128 |
msgid "Label"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: contact-form-7/
|
132 |
msgid "Default value"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: contact-form-7/
|
136 |
msgid "Akismet"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: contact-form-7/
|
140 |
msgid "This field requires author's name"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: contact-form-7/
|
144 |
msgid "This field requires author's URL"
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: contact-form-7/
|
148 |
msgid "This field requires author's email address"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: contact-form-7/
|
152 |
msgid "Copy this code and paste it into the form left."
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: contact-form-7/
|
156 |
msgid "Foreground color"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: contact-form-7/
|
160 |
msgid "Background color"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: contact-form-7/
|
164 |
msgid "Image size"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: contact-form-7/
|
168 |
msgid "Small"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: contact-form-7/
|
172 |
msgid "Medium"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: contact-form-7/
|
176 |
msgid "Large"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: contact-form-7/
|
180 |
msgid "Image settings"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: contact-form-7/
|
184 |
msgid "Input field settings"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: contact-form-7/
|
188 |
msgid "For image"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: contact-form-7/
|
192 |
msgid "For input field"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: contact-form-7/
|
196 |
msgid "* One choice per line."
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: contact-form-7/
|
200 |
msgid "Show"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: contact-form-7/
|
204 |
msgid "Hide"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: contact-form-7/
|
208 |
msgid "File size limit"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: contact-form-7/
|
212 |
msgid "Acceptable file types"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: contact-form-7/
|
216 |
msgid "Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed."
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: contact-form-7/
|
220 |
msgid "Contact form created."
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: contact-form-7/
|
224 |
msgid "Contact form saved."
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: contact-form-7/
|
228 |
msgid "Contact form deleted."
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: contact-form-7/
|
232 |
msgid "Untitled"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: contact-form-7/
|
236 |
msgid "Your Name"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: contact-form-7/
|
240 |
-
#: contact-form-7/
|
241 |
msgid "(required)"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: contact-form-7/
|
245 |
msgid "Your Email"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: contact-form-7/
|
249 |
msgid "Subject"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: contact-form-7/
|
253 |
msgid "Your Message"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: contact-form-7/
|
257 |
-
#: contact-form-7/
|
258 |
msgid "Send"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: contact-form-7/
|
262 |
-
msgid "
|
263 |
-
msgstr ""
|
264 |
-
|
265 |
-
#: contact-form-7/wp-contact-form-7.php:798
|
266 |
-
#: contact-form-7/wp-contact-form-7.php:800
|
267 |
-
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
268 |
-
msgstr ""
|
269 |
-
|
270 |
-
#: contact-form-7/wp-contact-form-7.php:802
|
271 |
-
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: contact-form-7/
|
275 |
-
msgid "
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: contact-form-7/
|
279 |
-
msgid "
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: contact-form-7/
|
283 |
-
msgid "
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: contact-form-7/
|
287 |
-
msgid "
|
288 |
-
msgstr ""
|
289 |
-
|
290 |
-
#: contact-form-7/wp-contact-form-7.php:812
|
291 |
-
msgid "Your answer is not correct."
|
292 |
-
msgstr ""
|
293 |
-
|
294 |
-
#: contact-form-7/wp-contact-form-7.php:814
|
295 |
-
msgid "Failed to upload file."
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: contact-form-7/
|
299 |
-
msgid "This file type is not allowed."
|
300 |
-
msgstr ""
|
301 |
-
|
302 |
-
#: contact-form-7/wp-contact-form-7.php:818
|
303 |
-
msgid "This file is too large."
|
304 |
-
msgstr ""
|
305 |
-
|
306 |
-
#: contact-form-7/wp-contact-form-7.php:1417
|
307 |
msgid "To use CAPTCHA, you need <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> plugin installed."
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: contact-form-7/includes/
|
311 |
-
msgid "
|
312 |
-
msgstr ""
|
313 |
-
|
314 |
-
#: contact-form-7/includes/admin-panel.php:42
|
315 |
-
msgid "Copy this code and paste it into your post, page or text widget content."
|
316 |
-
msgstr ""
|
317 |
-
|
318 |
-
#: contact-form-7/includes/admin-panel.php:49
|
319 |
-
#: contact-form-7/includes/admin-panel.php:262
|
320 |
-
msgid "Save"
|
321 |
-
msgstr ""
|
322 |
-
|
323 |
-
#: contact-form-7/includes/admin-panel.php:56
|
324 |
-
msgid "Copy"
|
325 |
-
msgstr ""
|
326 |
-
|
327 |
-
#: contact-form-7/includes/admin-panel.php:60
|
328 |
-
msgid "Delete"
|
329 |
-
msgstr ""
|
330 |
-
|
331 |
-
#: contact-form-7/includes/admin-panel.php:61
|
332 |
-
msgid ""
|
333 |
-
"You are about to delete this contact form.\n"
|
334 |
-
" 'Cancel' to stop, 'OK' to delete."
|
335 |
-
msgstr ""
|
336 |
-
|
337 |
-
#: contact-form-7/includes/admin-panel.php:75
|
338 |
-
msgid "Form"
|
339 |
-
msgstr ""
|
340 |
-
|
341 |
-
#: contact-form-7/includes/admin-panel.php:95
|
342 |
-
msgid "Mail"
|
343 |
-
msgstr ""
|
344 |
-
|
345 |
-
#: contact-form-7/includes/admin-panel.php:102
|
346 |
-
#: contact-form-7/includes/admin-panel.php:154
|
347 |
-
msgid "To:"
|
348 |
-
msgstr ""
|
349 |
-
|
350 |
-
#: contact-form-7/includes/admin-panel.php:106
|
351 |
-
#: contact-form-7/includes/admin-panel.php:158
|
352 |
-
msgid "From:"
|
353 |
-
msgstr ""
|
354 |
-
|
355 |
-
#: contact-form-7/includes/admin-panel.php:110
|
356 |
-
#: contact-form-7/includes/admin-panel.php:162
|
357 |
-
msgid "Subject:"
|
358 |
-
msgstr ""
|
359 |
-
|
360 |
-
#: contact-form-7/includes/admin-panel.php:115
|
361 |
-
#: contact-form-7/includes/admin-panel.php:167
|
362 |
-
msgid "File attachments:"
|
363 |
-
msgstr ""
|
364 |
-
|
365 |
-
#: contact-form-7/includes/admin-panel.php:117
|
366 |
-
#: contact-form-7/includes/admin-panel.php:169
|
367 |
-
msgid "(You need WordPress 2.7 or greater to use this feature)"
|
368 |
-
msgstr ""
|
369 |
-
|
370 |
-
#: contact-form-7/includes/admin-panel.php:125
|
371 |
-
#: contact-form-7/includes/admin-panel.php:177
|
372 |
-
msgid "Use HTML content type"
|
373 |
-
msgstr ""
|
374 |
-
|
375 |
-
#: contact-form-7/includes/admin-panel.php:130
|
376 |
-
#: contact-form-7/includes/admin-panel.php:182
|
377 |
-
msgid "Message body:"
|
378 |
-
msgstr ""
|
379 |
-
|
380 |
-
#: contact-form-7/includes/admin-panel.php:141
|
381 |
-
msgid "Mail (2)"
|
382 |
-
msgstr ""
|
383 |
-
|
384 |
-
#: contact-form-7/includes/admin-panel.php:148
|
385 |
-
msgid "Use mail (2)"
|
386 |
-
msgstr ""
|
387 |
-
|
388 |
-
#: contact-form-7/includes/admin-panel.php:193
|
389 |
-
msgid "Messages"
|
390 |
-
msgstr ""
|
391 |
-
|
392 |
-
#: contact-form-7/includes/admin-panel.php:201
|
393 |
-
msgid "Sender's message was sent successfully"
|
394 |
-
msgstr ""
|
395 |
-
|
396 |
-
#: contact-form-7/includes/admin-panel.php:205
|
397 |
-
msgid "Sender's message was failed to send"
|
398 |
msgstr ""
|
399 |
|
400 |
-
#: contact-form-7/includes/
|
401 |
-
|
|
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: contact-form-7/includes/
|
405 |
-
msgid "Validation errors occurred"
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: contact-form-7/includes/
|
409 |
-
msgid "
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: contact-form-7/includes/
|
413 |
-
msgid "Email address
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: contact-form-7/includes/
|
417 |
-
msgid "
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: contact-form-7/includes/
|
421 |
-
msgid "
|
422 |
msgstr ""
|
423 |
|
424 |
-
#: contact-form-7/includes/
|
425 |
-
msgid "
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: contact-form-7/includes/
|
429 |
-
msgid "
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: contact-form-7/includes/
|
433 |
-
msgid "
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: contact-form-7/includes/
|
437 |
-
msgid "
|
438 |
msgstr ""
|
439 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contact Form 7\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-05-31 23:05+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-05-31 23:05+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:373
|
19 |
msgid "Contact form"
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: contact-form-7/admin/admin-panel.php:6
|
23 |
+
#: contact-form-7/admin/admin.php:111
|
24 |
msgid "Contact Form 7"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: contact-form-7/admin/admin-panel.php:21
|
28 |
+
msgid "Add new"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: contact-form-7/admin/admin-panel.php:43
|
32 |
+
msgid "Copy this code and paste it into your post, page or text widget content."
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: contact-form-7/admin/admin-panel.php:50
|
36 |
+
#: contact-form-7/admin/admin-panel.php:290
|
37 |
+
msgid "Save"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: contact-form-7/admin/admin-panel.php:57
|
41 |
+
msgid "Copy"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: contact-form-7/admin/admin-panel.php:61
|
45 |
+
msgid "Delete"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: contact-form-7/admin/admin-panel.php:63
|
49 |
+
msgid ""
|
50 |
+
"You are about to delete this contact form.\n"
|
51 |
+
" 'Cancel' to stop, 'OK' to delete."
|
52 |
+
msgstr ""
|
53 |
+
|
54 |
+
#: contact-form-7/admin/admin-panel.php:78
|
55 |
+
msgid "Form"
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
+
#: contact-form-7/admin/admin-panel.php:98
|
59 |
+
msgid "Mail"
|
60 |
+
msgstr ""
|
61 |
+
|
62 |
+
#: contact-form-7/admin/admin-panel.php:105
|
63 |
+
#: contact-form-7/admin/admin-panel.php:161
|
64 |
+
msgid "To:"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: contact-form-7/admin/admin-panel.php:109
|
68 |
+
#: contact-form-7/admin/admin-panel.php:165
|
69 |
+
msgid "From:"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: contact-form-7/admin/admin-panel.php:113
|
73 |
+
#: contact-form-7/admin/admin-panel.php:169
|
74 |
+
msgid "Subject:"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: contact-form-7/admin/admin-panel.php:118
|
78 |
+
#: contact-form-7/admin/admin-panel.php:174
|
79 |
+
msgid "Additional headers:"
|
80 |
+
msgstr ""
|
81 |
+
|
82 |
+
#: contact-form-7/admin/admin-panel.php:122
|
83 |
+
#: contact-form-7/admin/admin-panel.php:178
|
84 |
+
msgid "File attachments:"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: contact-form-7/admin/admin-panel.php:124
|
88 |
+
#: contact-form-7/admin/admin-panel.php:180
|
89 |
+
msgid "(You need WordPress 2.7 or greater to use this feature)"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: contact-form-7/admin/admin-panel.php:132
|
93 |
+
#: contact-form-7/admin/admin-panel.php:188
|
94 |
+
msgid "Use HTML content type"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: contact-form-7/admin/admin-panel.php:137
|
98 |
+
#: contact-form-7/admin/admin-panel.php:193
|
99 |
+
msgid "Message body:"
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: contact-form-7/admin/admin-panel.php:148
|
103 |
+
msgid "Mail (2)"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: contact-form-7/admin/admin-panel.php:155
|
107 |
+
msgid "Use mail (2)"
|
108 |
+
msgstr ""
|
109 |
+
|
110 |
+
#: contact-form-7/admin/admin-panel.php:204
|
111 |
+
msgid "Messages"
|
112 |
+
msgstr ""
|
113 |
+
|
114 |
+
#: contact-form-7/admin/admin-panel.php:212
|
115 |
+
msgid "Sender's message was sent successfully"
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: contact-form-7/admin/admin-panel.php:216
|
119 |
+
msgid "Sender's message was failed to send"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: contact-form-7/admin/admin-panel.php:220
|
123 |
+
msgid "Akismet judged the sending activity as spamming"
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
#: contact-form-7/admin/admin-panel.php:224
|
127 |
+
msgid "Validation errors occurred"
|
128 |
+
msgstr ""
|
129 |
+
|
130 |
+
#: contact-form-7/admin/admin-panel.php:228
|
131 |
+
msgid "There is a field that sender is needed to fill in"
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#: contact-form-7/admin/admin-panel.php:232
|
135 |
+
msgid "Email address that sender entered is invalid"
|
136 |
+
msgstr ""
|
137 |
+
|
138 |
+
#: contact-form-7/admin/admin-panel.php:236
|
139 |
+
msgid "There is a field of term that sender is needed to accept"
|
140 |
+
msgstr ""
|
141 |
+
|
142 |
+
#: contact-form-7/admin/admin-panel.php:240
|
143 |
+
msgid "Sender doesn't enter the correct answer to the quiz"
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: contact-form-7/admin/admin-panel.php:244
|
147 |
+
msgid "The code that sender entered does not match the CAPTCHA"
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#: contact-form-7/admin/admin-panel.php:248
|
151 |
+
msgid "Uploading a file fails for any reason"
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#: contact-form-7/admin/admin-panel.php:252
|
155 |
+
msgid "Uploaded file is not allowed file type"
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#: contact-form-7/admin/admin-panel.php:256
|
159 |
+
msgid "Uploaded file is too large"
|
160 |
+
msgstr ""
|
161 |
+
|
162 |
+
#: contact-form-7/admin/admin-panel.php:269
|
163 |
+
msgid "Additional Settings"
|
164 |
+
msgstr ""
|
165 |
+
|
166 |
+
#: contact-form-7/admin/admin.php:157
|
167 |
msgid "optional"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: contact-form-7/admin/admin.php:158
|
171 |
msgid "Generate Tag"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: contact-form-7/admin/admin.php:159
|
175 |
msgid "Text field"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: contact-form-7/admin/admin.php:160
|
179 |
msgid "Email field"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: contact-form-7/admin/admin.php:161
|
183 |
msgid "Text area"
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: contact-form-7/admin/admin.php:162
|
187 |
msgid "Drop-down menu"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: contact-form-7/admin/admin.php:163
|
191 |
msgid "Checkboxes"
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: contact-form-7/admin/admin.php:164
|
195 |
msgid "Radio buttons"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: contact-form-7/admin/admin.php:165
|
199 |
msgid "Acceptance"
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: contact-form-7/admin/admin.php:166
|
203 |
msgid "Make this checkbox checked by default?"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: contact-form-7/admin/admin.php:167
|
207 |
msgid "Make this checkbox work inversely?"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: contact-form-7/admin/admin.php:168
|
211 |
msgid "* That means visitor who accepts the term unchecks it."
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: contact-form-7/admin/admin.php:169
|
215 |
msgid "CAPTCHA"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: contact-form-7/admin/admin.php:170
|
219 |
msgid "Quiz"
|
220 |
msgstr ""
|
221 |
|
222 |
+
#: contact-form-7/admin/admin.php:171
|
223 |
msgid "Quizzes"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: contact-form-7/admin/admin.php:172
|
227 |
msgid "* quiz|answer (e.g. 1+1=?|2)"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: contact-form-7/admin/admin.php:173
|
231 |
msgid "File upload"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: contact-form-7/admin/admin.php:174
|
235 |
msgid "bytes"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: contact-form-7/admin/admin.php:175
|
239 |
msgid "Submit button"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: contact-form-7/admin/admin.php:176
|
243 |
msgid "Name"
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: contact-form-7/admin/admin.php:177
|
247 |
msgid "Required field?"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: contact-form-7/admin/admin.php:178
|
251 |
msgid "Allow multiple selections?"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: contact-form-7/admin/admin.php:179
|
255 |
msgid "Insert a blank item as the first option?"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: contact-form-7/admin/admin.php:180
|
259 |
msgid "Make checkboxes exclusive?"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: contact-form-7/admin/admin.php:181
|
263 |
msgid "Choices"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: contact-form-7/admin/admin.php:182
|
267 |
msgid "Label"
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: contact-form-7/admin/admin.php:183
|
271 |
msgid "Default value"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: contact-form-7/admin/admin.php:184
|
275 |
msgid "Akismet"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: contact-form-7/admin/admin.php:185
|
279 |
msgid "This field requires author's name"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: contact-form-7/admin/admin.php:186
|
283 |
msgid "This field requires author's URL"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: contact-form-7/admin/admin.php:187
|
287 |
msgid "This field requires author's email address"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: contact-form-7/admin/admin.php:188
|
291 |
msgid "Copy this code and paste it into the form left."
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: contact-form-7/admin/admin.php:189
|
295 |
msgid "Foreground color"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: contact-form-7/admin/admin.php:190
|
299 |
msgid "Background color"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: contact-form-7/admin/admin.php:191
|
303 |
msgid "Image size"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: contact-form-7/admin/admin.php:192
|
307 |
msgid "Small"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: contact-form-7/admin/admin.php:193
|
311 |
msgid "Medium"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: contact-form-7/admin/admin.php:194
|
315 |
msgid "Large"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: contact-form-7/admin/admin.php:195
|
319 |
msgid "Image settings"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: contact-form-7/admin/admin.php:196
|
323 |
msgid "Input field settings"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: contact-form-7/admin/admin.php:197
|
327 |
msgid "For image"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: contact-form-7/admin/admin.php:198
|
331 |
msgid "For input field"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: contact-form-7/admin/admin.php:199
|
335 |
msgid "* One choice per line."
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: contact-form-7/admin/admin.php:200
|
339 |
msgid "Show"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: contact-form-7/admin/admin.php:201
|
343 |
msgid "Hide"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: contact-form-7/admin/admin.php:202
|
347 |
msgid "File size limit"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: contact-form-7/admin/admin.php:203
|
351 |
msgid "Acceptable file types"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: contact-form-7/admin/admin.php:204
|
355 |
msgid "Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed."
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: contact-form-7/admin/admin.php:223
|
359 |
msgid "Contact form created."
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: contact-form-7/admin/admin.php:226
|
363 |
msgid "Contact form saved."
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: contact-form-7/admin/admin.php:229
|
367 |
msgid "Contact form deleted."
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: contact-form-7/admin/admin.php:240
|
371 |
msgid "Untitled"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: contact-form-7/admin/admin.php:253
|
375 |
msgid "Your Name"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: contact-form-7/admin/admin.php:253
|
379 |
+
#: contact-form-7/admin/admin.php:255
|
380 |
msgid "(required)"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: contact-form-7/admin/admin.php:255
|
384 |
msgid "Your Email"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: contact-form-7/admin/admin.php:257
|
388 |
msgid "Subject"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: contact-form-7/admin/admin.php:259
|
392 |
msgid "Your Message"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: contact-form-7/admin/admin.php:261
|
396 |
+
#: contact-form-7/includes/classes.php:411
|
397 |
msgid "Send"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: contact-form-7/admin/admin.php:334
|
401 |
+
msgid "Settings"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: contact-form-7/admin/admin.php:355
|
405 |
+
msgid "Contact Form 7 needs your support. Please donate today."
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: contact-form-7/admin/admin.php:356
|
409 |
+
msgid "Is this plugin useful for you? If you like it, please help the developer."
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: contact-form-7/admin/admin.php:357
|
413 |
+
msgid "Your contribution is needed for making this plugin better."
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: contact-form-7/admin/admin.php:358
|
417 |
+
msgid "Developing a plugin and providing user support is really hard work. Please help."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: contact-form-7/includes/classes.php:352
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
421 |
msgid "To use CAPTCHA, you need <a href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> plugin installed."
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: contact-form-7/includes/functions.php:6
|
425 |
+
msgid "Your message was sent successfully. Thanks."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: contact-form-7/includes/functions.php:8
|
429 |
+
#: contact-form-7/includes/functions.php:10
|
430 |
+
msgid "Failed to send your message. Please try later or contact administrator by other way."
|
431 |
msgstr ""
|
432 |
|
433 |
+
#: contact-form-7/includes/functions.php:12
|
434 |
+
msgid "Validation errors occurred. Please confirm the fields and submit it again."
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: contact-form-7/includes/functions.php:14
|
438 |
+
msgid "Please accept the terms to proceed."
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: contact-form-7/includes/functions.php:16
|
442 |
+
msgid "Email address seems invalid."
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: contact-form-7/includes/functions.php:18
|
446 |
+
msgid "Please fill the required field."
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: contact-form-7/includes/functions.php:20
|
450 |
+
msgid "Your entered code is incorrect."
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: contact-form-7/includes/functions.php:22
|
454 |
+
msgid "Your answer is not correct."
|
455 |
msgstr ""
|
456 |
|
457 |
+
#: contact-form-7/includes/functions.php:24
|
458 |
+
msgid "Failed to upload file."
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: contact-form-7/includes/functions.php:26
|
462 |
+
msgid "This file type is not allowed."
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: contact-form-7/includes/functions.php:28
|
466 |
+
msgid "This file is too large."
|
467 |
msgstr ""
|
468 |
|
stylesheet.css
CHANGED
@@ -49,3 +49,7 @@ span.wpcf7-not-valid-tip-no-ajax {
|
|
49 |
span.wpcf7-list-item {
|
50 |
margin-left: 0.5em;
|
51 |
}
|
|
|
|
|
|
|
|
49 |
span.wpcf7-list-item {
|
50 |
margin-left: 0.5em;
|
51 |
}
|
52 |
+
|
53 |
+
.wpcf7-display-none {
|
54 |
+
display: none;
|
55 |
+
}
|
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.
|
8 |
Author URI: http://ideasilo.wordpress.com/
|
9 |
*/
|
10 |
|
@@ -25,1824 +25,378 @@ Author URI: http://ideasilo.wordpress.com/
|
|
25 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
26 |
*/
|
27 |
|
28 |
-
define('WPCF7_VERSION', '1.
|
29 |
|
30 |
-
if (! defined('WP_CONTENT_DIR'))
|
31 |
-
|
32 |
-
if (! defined('WP_CONTENT_URL'))
|
33 |
-
define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
|
34 |
|
35 |
-
if (! defined('
|
36 |
-
|
37 |
-
if (! defined('WP_PLUGIN_URL'))
|
38 |
-
define('WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins');
|
39 |
|
40 |
-
if (! defined('
|
41 |
-
|
42 |
-
if (! defined('WPCF7_PLUGIN_URL'))
|
43 |
-
define('WPCF7_PLUGIN_URL', WP_PLUGIN_URL . '/' . plugin_basename(dirname(__FILE__)));
|
44 |
|
45 |
-
if (! defined('
|
46 |
-
|
47 |
|
48 |
-
if (! defined('
|
49 |
-
|
50 |
|
51 |
-
if (!
|
52 |
-
|
53 |
-
}
|
54 |
|
55 |
-
if (!
|
56 |
-
|
57 |
-
}
|
58 |
|
59 |
-
if (!
|
60 |
-
|
61 |
-
}
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
var $contact_forms;
|
66 |
-
var $captcha;
|
67 |
-
var $posted_data;
|
68 |
-
|
69 |
-
function tam_contact_form_seven() {
|
70 |
-
add_action('activate_' . plugin_basename(__FILE__), array(&$this, 'set_initial'));
|
71 |
-
add_action('init', array(&$this, 'load_plugin_textdomain'));
|
72 |
-
add_action('admin_menu', array(&$this, 'add_pages'));
|
73 |
-
add_action('admin_head', array(&$this, 'admin_head'));
|
74 |
-
add_action('wp_head', array(&$this, 'wp_head'));
|
75 |
-
add_action('wp_print_scripts', array(&$this, 'load_js'));
|
76 |
-
add_action('init', array(&$this, 'init_switch'), 11);
|
77 |
-
add_filter('the_content', array(&$this, 'the_content_filter'), 9);
|
78 |
-
add_filter('widget_text', array(&$this, 'widget_text_filter'), 9);
|
79 |
-
|
80 |
-
add_shortcode('contact-form', array(&$this, 'contact_form_tag_func'));
|
81 |
-
}
|
82 |
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
$handled_uploads = $this->handle_uploads($cf);
|
106 |
-
if (! $handled_uploads['validation']['valid'])
|
107 |
-
$validation['valid'] = false;
|
108 |
-
$validation['reason'] = array_merge($validation['reason'], $handled_uploads['validation']['reason']);
|
109 |
-
|
110 |
-
$captchas = $this->refill_captcha($cf);
|
111 |
-
if (! empty($captchas)) {
|
112 |
-
$captchas_js = array();
|
113 |
-
foreach ($captchas as $name => $cap) {
|
114 |
-
$captchas_js[] = '"' . $name . '": "' . $cap . '"';
|
115 |
-
}
|
116 |
-
$captcha = '{ ' . join(', ', $captchas_js) . ' }';
|
117 |
-
} else {
|
118 |
-
$captcha = 'null';
|
119 |
-
}
|
120 |
-
|
121 |
-
$quizzes = $this->refill_quiz($cf);
|
122 |
-
if (! empty($quizzes)) {
|
123 |
-
$quizzes_js = array();
|
124 |
-
foreach ($quizzes as $name => $q) {
|
125 |
-
$quizzes_js[] = '"' . $name . '": [ "' . js_escape($q[0]) . '", "' . $q[1] . '" ]';
|
126 |
-
}
|
127 |
-
$quiz = '{ ' . join(', ', $quizzes_js) . ' }';
|
128 |
-
} else {
|
129 |
-
$quiz = 'null';
|
130 |
-
}
|
131 |
-
|
132 |
-
if (! $validation['valid']) { // Validation error occured
|
133 |
-
$invalids = array();
|
134 |
-
foreach ($validation['reason'] as $name => $reason) {
|
135 |
-
$invalids[] = '{ into: "span.wpcf7-form-control-wrap.' . $name . '", message: "' . js_escape($reason) . '" }';
|
136 |
-
}
|
137 |
-
$invalids = '[' . join(', ', $invalids) . ']';
|
138 |
-
$echo = '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'validation_error')) . '", into: "#' . $unit_tag . '", invalids: ' . $invalids . ', captcha: ' . $captcha . ', quiz: ' . $quiz . ' }';
|
139 |
-
} elseif (! $this->acceptance($cf)) { // Not accepted terms
|
140 |
-
$echo = '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'accept_terms')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ', quiz: ' . $quiz . ' }';
|
141 |
-
} elseif ($this->akismet($cf)) { // Spam!
|
142 |
-
$echo = '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'akismet_says_spam')) . '", into: "#' . $unit_tag . '", spam: 1, captcha: ' . $captcha . ', quiz: ' . $quiz . ' }';
|
143 |
-
} elseif ($this->mail($cf, $handled_uploads['files'])) {
|
144 |
-
$echo = '{ mailSent: 1, message: "' . js_escape($this->message($cf, 'mail_sent_ok')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ', quiz: ' . $quiz . ' }';
|
145 |
-
} else {
|
146 |
-
$echo = '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'mail_sent_ng')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ', quiz: ' . $quiz . ' }';
|
147 |
-
}
|
148 |
-
|
149 |
-
// remove upload files
|
150 |
-
foreach ($handled_uploads['files'] as $name => $path) {
|
151 |
-
@unlink($path);
|
152 |
-
}
|
153 |
-
}
|
154 |
-
}
|
155 |
-
|
156 |
-
if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
|
157 |
-
@header('Content-Type: application/json; charset=' . get_option('blog_charset'));
|
158 |
-
echo $echo;
|
159 |
-
} else {
|
160 |
-
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
|
161 |
-
echo '<textarea>' . $echo . '</textarea>';
|
162 |
-
}
|
163 |
}
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
$this->init_uploads(); // Confirm upload dir
|
171 |
-
$uploads_dir = $this->upload_tmp_dir();
|
172 |
-
|
173 |
-
$fes = $this->form_elements($contact_form['form'], false);
|
174 |
-
|
175 |
-
foreach ($fes as $fe) {
|
176 |
-
if ('file' != $fe['type'] && 'file*' != $fe['type'])
|
177 |
-
continue;
|
178 |
-
|
179 |
-
$name = $fe['name'];
|
180 |
-
$options = (array) $fe['options'];
|
181 |
-
|
182 |
-
$file = $_FILES[$name];
|
183 |
-
|
184 |
-
if (empty($file['tmp_name']) && 'file*' == $fe['type']) {
|
185 |
-
$valid = false;
|
186 |
-
$reason[$name] = $this->message($contact_form, 'invalid_required');
|
187 |
-
continue;
|
188 |
-
}
|
189 |
-
|
190 |
-
if (! is_uploaded_file($file['tmp_name']))
|
191 |
-
continue;
|
192 |
-
|
193 |
-
/* File type validation */
|
194 |
-
|
195 |
-
$pattern = '';
|
196 |
-
if ($allowed_types_options = preg_grep('%^filetypes:%', $options)) {
|
197 |
-
foreach ($allowed_types_options as $allowed_types_option) {
|
198 |
-
if (preg_match('%^filetypes:(.+)$%', $allowed_types_option, $matches)) {
|
199 |
-
$file_types = explode('|', $matches[1]);
|
200 |
-
foreach ($file_types as $file_type) {
|
201 |
-
$file_type = trim($file_type, '.');
|
202 |
-
$file_type = str_replace(array('.', '+', '*', '?'), array('\.', '\+', '\*', '\?'), $file_type);
|
203 |
-
$pattern .= '|' . $file_type;
|
204 |
-
}
|
205 |
-
}
|
206 |
-
}
|
207 |
-
}
|
208 |
-
|
209 |
-
// Default file-type restriction
|
210 |
-
if ('' == $pattern)
|
211 |
-
$pattern = 'jpg|jpeg|png|gif|pdf|doc|docx|ppt|pptx|odt|avi|ogg|m4a|mov|mp3|mp4|mpg|wav|wmv';
|
212 |
-
|
213 |
-
$pattern = trim($pattern, '|');
|
214 |
-
$pattern = '(' . $pattern . ')';
|
215 |
-
$pattern = '/\.' . $pattern . '$/i';
|
216 |
-
if (! preg_match($pattern, $file['name'])) {
|
217 |
-
$valid = false;
|
218 |
-
$reason[$name] = $this->message($contact_form, 'upload_file_type_invalid');
|
219 |
-
continue;
|
220 |
-
}
|
221 |
-
|
222 |
-
/* File size validation */
|
223 |
-
|
224 |
-
$allowed_size = 1048576; // default size 1 MB
|
225 |
-
if ($allowed_size_options = preg_grep('%^limit:%', $options)) {
|
226 |
-
$allowed_size_option = array_shift($allowed_size_options);
|
227 |
-
preg_match('/^limit:([1-9][0-9]*)$/', $allowed_size_option, $matches);
|
228 |
-
$allowed_size = (int) $matches[1];
|
229 |
-
}
|
230 |
-
|
231 |
-
if ($file['size'] > $allowed_size) {
|
232 |
-
$valid = false;
|
233 |
-
$reason[$name] = $this->message($contact_form, 'upload_file_too_large');
|
234 |
-
continue;
|
235 |
-
}
|
236 |
-
|
237 |
-
$filename = wp_unique_filename($uploads_dir, $file['name']);
|
238 |
-
|
239 |
-
// If you get script file, it's a danger. Make it TXT file.
|
240 |
-
if (preg_match('/\.(php|pl|py|rb|cgi)\d?$/', $filename))
|
241 |
-
$filename .= '.txt';
|
242 |
-
|
243 |
-
$new_file = trailingslashit($uploads_dir) . $filename;
|
244 |
-
if (false === @move_uploaded_file($file['tmp_name'], $new_file)) {
|
245 |
-
$valid = false;
|
246 |
-
$reason[$name] = $this->message($contact_form, 'upload_failed');
|
247 |
-
continue;
|
248 |
-
}
|
249 |
-
|
250 |
-
// Make sure the uploaded file is only readable for the owner process
|
251 |
-
chmod($new_file, 0400);
|
252 |
-
|
253 |
-
$files[$name] = $new_file;
|
254 |
-
}
|
255 |
-
|
256 |
-
$validation = compact('valid', 'reason');
|
257 |
-
|
258 |
-
return compact('files', 'validation');
|
259 |
-
}
|
260 |
-
|
261 |
-
function mail($contact_form, $files = array()) {
|
262 |
-
global $wp_version;
|
263 |
-
|
264 |
-
$contact_form = $this->upgrade($contact_form);
|
265 |
-
|
266 |
-
$this->posted_data = $_POST;
|
267 |
-
|
268 |
-
if (WPCF7_USE_PIPE) {
|
269 |
-
$this->pipe_all_posted($contact_form);
|
270 |
-
}
|
271 |
-
|
272 |
-
if ($this->compose_and_send_mail($contact_form['mail'], $files)) {
|
273 |
-
if ($contact_form['mail_2']['active'])
|
274 |
-
$this->compose_and_send_mail($contact_form['mail_2'], $files);
|
275 |
-
|
276 |
-
return true;
|
277 |
-
}
|
278 |
-
|
279 |
-
return false;
|
280 |
}
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
$mail_sender = preg_replace_callback($regex, $callback, $mail_template['sender']);
|
287 |
-
$mail_body = preg_replace_callback($regex, $callback, $mail_template['body']);
|
288 |
-
$mail_recipient = preg_replace_callback($regex, $callback, $mail_template['recipient']);
|
289 |
-
$mail_headers = "From: $mail_sender\n";
|
290 |
-
|
291 |
-
if ($mail_template['use_html'])
|
292 |
-
$mail_headers .= "Content-Type: text/html\n";
|
293 |
-
|
294 |
-
if ($attachments) {
|
295 |
-
$for_this_mail = array();
|
296 |
-
foreach ($attachments as $name => $path) {
|
297 |
-
if (false === strpos($mail_template['attachments'], "[${name}]"))
|
298 |
-
continue;
|
299 |
-
$for_this_mail[] = $path;
|
300 |
-
}
|
301 |
-
return @wp_mail($mail_recipient, $mail_subject, $mail_body, $mail_headers, $for_this_mail);
|
302 |
-
} else {
|
303 |
-
return @wp_mail($mail_recipient, $mail_subject, $mail_body, $mail_headers);
|
304 |
-
}
|
305 |
-
}
|
306 |
-
|
307 |
-
function mail_callback($matches) {
|
308 |
-
if (isset($this->posted_data[$matches[1]])) {
|
309 |
-
$submitted = $this->posted_data[$matches[1]];
|
310 |
-
|
311 |
-
if (is_array($submitted))
|
312 |
-
$submitted = join(', ', $submitted);
|
313 |
-
return stripslashes($submitted);
|
314 |
-
} else {
|
315 |
-
|
316 |
-
// Special [wpcf7.remote_ip] tag
|
317 |
-
if ('wpcf7.remote_ip' == $matches[1])
|
318 |
-
return preg_replace('/[^0-9a-f.:, ]/', '', $_SERVER['REMOTE_ADDR']);
|
319 |
-
|
320 |
-
return $matches[0];
|
321 |
-
}
|
322 |
-
}
|
323 |
-
|
324 |
-
function akismet($contact_form) {
|
325 |
-
global $akismet_api_host, $akismet_api_port;
|
326 |
-
|
327 |
-
if (! function_exists('akismet_http_post') || ! (get_option('wordpress_api_key') || $wpcom_api_key))
|
328 |
-
return false;
|
329 |
-
|
330 |
-
$akismet_ready = false;
|
331 |
-
$author = $author_email = $author_url = $content = '';
|
332 |
-
$fes = $this->form_elements($contact_form['form'], false);
|
333 |
-
|
334 |
-
foreach ($fes as $fe) {
|
335 |
-
if (! is_array($fe['options'])) continue;
|
336 |
-
|
337 |
-
if (preg_grep('%^akismet:author$%', $fe['options']) && '' == $author) {
|
338 |
-
$author = $_POST[$fe['name']];
|
339 |
-
$akismet_ready = true;
|
340 |
-
}
|
341 |
-
if (preg_grep('%^akismet:author_email$%', $fe['options']) && '' == $author_email) {
|
342 |
-
$author_email = $_POST[$fe['name']];
|
343 |
-
$akismet_ready = true;
|
344 |
-
}
|
345 |
-
if (preg_grep('%^akismet:author_url$%', $fe['options']) && '' == $author_url) {
|
346 |
-
$author_url = $_POST[$fe['name']];
|
347 |
-
$akismet_ready = true;
|
348 |
-
}
|
349 |
-
|
350 |
-
if ('' != $content)
|
351 |
-
$content .= "\n\n";
|
352 |
-
$content .= $_POST[$fe['name']];
|
353 |
-
}
|
354 |
-
|
355 |
-
if (! $akismet_ready)
|
356 |
-
return false;
|
357 |
-
|
358 |
-
$c['blog'] = get_option('home');
|
359 |
-
$c['user_ip'] = preg_replace('/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR']);
|
360 |
-
$c['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
|
361 |
-
$c['referrer'] = $_SERVER['HTTP_REFERER'];
|
362 |
-
$c['comment_type'] = 'contactform7';
|
363 |
-
if ($permalink = get_permalink())
|
364 |
-
$c['permalink'] = $permalink;
|
365 |
-
if ('' != $author)
|
366 |
-
$c['comment_author'] = $author;
|
367 |
-
if ('' != $author_email)
|
368 |
-
$c['comment_author_email'] = $author_email;
|
369 |
-
if ('' != $author_url)
|
370 |
-
$c['comment_author_url'] = $author_url;
|
371 |
-
if ('' != $content)
|
372 |
-
$c['comment_content'] = $content;
|
373 |
-
|
374 |
-
$ignore = array('HTTP_COOKIE');
|
375 |
-
|
376 |
-
foreach ($_SERVER as $key => $value)
|
377 |
-
if (! in_array($key, (array) $ignore))
|
378 |
-
$c["$key"] = $value;
|
379 |
-
|
380 |
-
$query_string = '';
|
381 |
-
foreach ($c as $key => $data)
|
382 |
-
$query_string .= $key . '=' . urlencode(stripslashes($data)) . '&';
|
383 |
-
|
384 |
-
$response = akismet_http_post($query_string, $akismet_api_host, '/1.1/comment-check', $akismet_api_port);
|
385 |
-
if ('true' == $response[1])
|
386 |
-
return true;
|
387 |
-
else
|
388 |
-
return false;
|
389 |
}
|
|
|
390 |
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
$accepted = true;
|
395 |
-
|
396 |
-
foreach ($fes as $fe) {
|
397 |
-
if ('acceptance' != $fe['type'])
|
398 |
-
continue;
|
399 |
-
|
400 |
-
$invert = (bool) preg_grep('%^invert$%', $fe['options']);
|
401 |
-
|
402 |
-
if ($invert && $_POST[$fe['name']] || ! $invert && ! $_POST[$fe['name']])
|
403 |
-
$accepted = false;
|
404 |
-
}
|
405 |
-
|
406 |
-
return $accepted;
|
407 |
-
}
|
408 |
-
|
409 |
-
function set_initial() {
|
410 |
-
$this->load_plugin_textdomain();
|
411 |
-
|
412 |
-
$wpcf7 = get_option('wpcf7');
|
413 |
-
if (! is_array($wpcf7))
|
414 |
-
$wpcf7 = array();
|
415 |
-
|
416 |
-
$contact_forms = $wpcf7['contact_forms'];
|
417 |
-
if (! is_array($contact_forms))
|
418 |
-
$contact_forms = array();
|
419 |
-
|
420 |
-
if (0 == count($contact_forms))
|
421 |
-
$contact_forms[1] = $this->default_pack(__('Contact form', 'wpcf7') . ' 1');
|
422 |
-
|
423 |
-
$wpcf7['contact_forms'] = $contact_forms;
|
424 |
-
update_option('wpcf7', $wpcf7);
|
425 |
}
|
|
|
426 |
|
427 |
-
|
428 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
429 |
|
430 |
-
|
431 |
-
|
432 |
-
else
|
433 |
-
load_plugin_textdomain('wpcf7', 'wp-content/plugins/contact-form-7/languages', 'contact-form-7/languages');
|
434 |
-
}
|
435 |
|
436 |
-
|
437 |
-
if (is_array($this->contact_forms))
|
438 |
-
return $this->contact_forms;
|
439 |
-
$wpcf7 = get_option('wpcf7');
|
440 |
-
$this->contact_forms = $wpcf7['contact_forms'];
|
441 |
-
if (! is_array($this->contact_forms))
|
442 |
-
$this->contact_forms = array();
|
443 |
-
return $this->contact_forms;
|
444 |
-
}
|
445 |
|
446 |
-
|
447 |
-
|
448 |
-
$wpcf7['contact_forms'] = $contact_forms;
|
449 |
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
function upgrade($contact_form) {
|
454 |
-
if (empty($contact_form))
|
455 |
-
return $contact_form;
|
456 |
-
|
457 |
-
$contact_form = $this->upgrade_160($contact_form);
|
458 |
-
$contact_form = $this->upgrade_181($contact_form);
|
459 |
-
$contact_form = $this->upgrade_190($contact_form);
|
460 |
-
$contact_form = $this->upgrade_192($contact_form);
|
461 |
-
return $contact_form;
|
462 |
-
}
|
463 |
-
|
464 |
-
function upgrade_160($contact_form) {
|
465 |
-
if (! isset($contact_form['mail']['recipient']))
|
466 |
-
$contact_form['mail']['recipient'] = $contact_form['options']['recipient'];
|
467 |
-
return $contact_form;
|
468 |
-
}
|
469 |
-
|
470 |
-
function upgrade_181($contact_form) {
|
471 |
-
if (! isset($contact_form['messages']))
|
472 |
-
$contact_form['messages'] = array(
|
473 |
-
'mail_sent_ok' => $this->default_message('mail_sent_ok'),
|
474 |
-
'mail_sent_ng' => $this->default_message('mail_sent_ng'),
|
475 |
-
'akismet_says_spam' => $this->default_message('akismet_says_spam'),
|
476 |
-
'validation_error' => $this->default_message('validation_error'),
|
477 |
-
'accept_terms' => $this->default_message('accept_terms'),
|
478 |
-
'invalid_email' => $this->default_message('invalid_email'),
|
479 |
-
'invalid_required' => $this->default_message('invalid_required'),
|
480 |
-
'captcha_not_match' => $this->default_message('captcha_not_match')
|
481 |
-
);
|
482 |
-
return $contact_form;
|
483 |
-
}
|
484 |
-
|
485 |
-
function upgrade_190($contact_form) {
|
486 |
-
if (! isset($contact_form['messages']) || ! is_array($contact_form['messages']))
|
487 |
-
$contact_form['messages'] = array();
|
488 |
-
|
489 |
-
if (! isset($contact_form['messages']['upload_failed']))
|
490 |
-
$contact_form['messages']['upload_failed'] = $this->default_message('upload_failed');
|
491 |
-
|
492 |
-
if (! isset($contact_form['messages']['upload_file_type_invalid']))
|
493 |
-
$contact_form['messages']['upload_file_type_invalid'] = $this->default_message('upload_file_type_invalid');
|
494 |
-
|
495 |
-
if (! isset($contact_form['messages']['upload_file_too_large']))
|
496 |
-
$contact_form['messages']['upload_file_too_large'] = $this->default_message('upload_file_too_large');
|
497 |
-
|
498 |
-
return $contact_form;
|
499 |
-
}
|
500 |
-
|
501 |
-
function upgrade_192($contact_form) {
|
502 |
-
if (! isset($contact_form['messages']) || ! is_array($contact_form['messages']))
|
503 |
-
$contact_form['messages'] = array();
|
504 |
-
|
505 |
-
if (! isset($contact_form['messages']['quiz_answer_not_correct']))
|
506 |
-
$contact_form['messages']['quiz_answer_not_correct'] = $this->default_message('quiz_answer_not_correct');
|
507 |
-
|
508 |
-
return $contact_form;
|
509 |
-
}
|
510 |
-
|
511 |
-
/* Admin panel */
|
512 |
-
|
513 |
-
function admin_menu_parent() {
|
514 |
-
global $wp_version;
|
515 |
-
if (version_compare($wp_version, '2.7', '>='))
|
516 |
-
return 'tools.php';
|
517 |
-
else
|
518 |
-
return 'edit.php';
|
519 |
-
}
|
520 |
-
|
521 |
-
function add_pages() {
|
522 |
-
if (function_exists('admin_url')) {
|
523 |
-
$base_url = admin_url($this->admin_menu_parent());
|
524 |
-
} else {
|
525 |
-
$base_url = get_option('siteurl') . '/wp-admin/' . $this->admin_menu_parent();
|
526 |
-
}
|
527 |
-
$page = str_replace('\\', '%5C', plugin_basename(__FILE__));
|
528 |
-
$contact_forms = $this->contact_forms();
|
529 |
-
|
530 |
-
if (isset($_POST['wpcf7-save']) && $this->has_edit_cap()) {
|
531 |
-
$id = $_POST['wpcf7-id'];
|
532 |
-
check_admin_referer('wpcf7-save_' . $id);
|
533 |
-
|
534 |
-
$title = trim($_POST['wpcf7-title']);
|
535 |
-
$form = trim($_POST['wpcf7-form']);
|
536 |
-
$mail = array(
|
537 |
-
'subject' => trim($_POST['wpcf7-mail-subject']),
|
538 |
-
'sender' => trim($_POST['wpcf7-mail-sender']),
|
539 |
-
'body' => trim($_POST['wpcf7-mail-body']),
|
540 |
-
'recipient' => trim($_POST['wpcf7-mail-recipient']),
|
541 |
-
'attachments' => trim($_POST['wpcf7-mail-attachments']),
|
542 |
-
'use_html' => (1 == $_POST['wpcf7-mail-use-html']) ? true : false
|
543 |
-
);
|
544 |
-
$mail_2 = array(
|
545 |
-
'active' => (1 == $_POST['wpcf7-mail-2-active']) ? true : false,
|
546 |
-
'subject' => trim($_POST['wpcf7-mail-2-subject']),
|
547 |
-
'sender' => trim($_POST['wpcf7-mail-2-sender']),
|
548 |
-
'body' => trim($_POST['wpcf7-mail-2-body']),
|
549 |
-
'recipient' => trim($_POST['wpcf7-mail-2-recipient']),
|
550 |
-
'attachments' => trim($_POST['wpcf7-mail-2-attachments']),
|
551 |
-
'use_html' => (1 == $_POST['wpcf7-mail-2-use-html']) ? true : false
|
552 |
-
);
|
553 |
-
$messages = array(
|
554 |
-
'mail_sent_ok' => trim($_POST['wpcf7-message-mail-sent-ok']),
|
555 |
-
'mail_sent_ng' => trim($_POST['wpcf7-message-mail-sent-ng']),
|
556 |
-
'akismet_says_spam' => trim($_POST['wpcf7-message-akismet-says-spam']),
|
557 |
-
'validation_error' => trim($_POST['wpcf7-message-validation-error']),
|
558 |
-
'accept_terms' => trim($_POST['wpcf7-message-accept-terms']),
|
559 |
-
'invalid_email' => trim($_POST['wpcf7-message-invalid-email']),
|
560 |
-
'invalid_required' => trim($_POST['wpcf7-message-invalid-required']),
|
561 |
-
'quiz_answer_not_correct' => trim($_POST['wpcf7-message-quiz-answer-not-correct']),
|
562 |
-
'captcha_not_match' => trim($_POST['wpcf7-message-captcha-not-match']),
|
563 |
-
'upload_failed' => trim($_POST['wpcf7-message-upload-failed']),
|
564 |
-
'upload_file_type_invalid' => trim($_POST['wpcf7-message-upload-file-type-invalid']),
|
565 |
-
'upload_file_too_large' => trim($_POST['wpcf7-message-upload-file-too-large'])
|
566 |
-
);
|
567 |
-
$options = array(
|
568 |
-
'recipient' => trim($_POST['wpcf7-options-recipient']) // For backward compatibility.
|
569 |
-
);
|
570 |
-
|
571 |
-
if (array_key_exists($id, $contact_forms)) {
|
572 |
-
$contact_forms[$id] = compact('title', 'form', 'mail', 'mail_2', 'messages', 'options');
|
573 |
-
$redirect_to = $base_url . '?page=' . $page . '&contactform=' . $id . '&message=saved';
|
574 |
-
} else {
|
575 |
-
$key = (empty($contact_forms)) ? 1 : max(array_keys($contact_forms)) + 1;
|
576 |
-
$contact_forms[$key] = compact('title', 'form', 'mail', 'mail_2', 'messages', 'options');
|
577 |
-
$redirect_to = $base_url . '?page=' . $page . '&contactform=' . $key . '&message=created';
|
578 |
-
}
|
579 |
-
$this->update_contact_forms($contact_forms);
|
580 |
-
|
581 |
-
wp_redirect($redirect_to);
|
582 |
-
exit();
|
583 |
-
} elseif (isset($_POST['wpcf7-copy']) && $this->has_edit_cap()) {
|
584 |
-
$id = $_POST['wpcf7-id'];
|
585 |
-
check_admin_referer('wpcf7-copy_' . $id);
|
586 |
-
|
587 |
-
if (array_key_exists($id, $contact_forms)) {
|
588 |
-
$key = max(array_keys($contact_forms)) + 1;
|
589 |
-
$contact_forms[$key] = $contact_forms[$id];
|
590 |
-
$contact_forms[$key]['title'] .= '_copy';
|
591 |
-
$this->update_contact_forms($contact_forms);
|
592 |
-
$redirect_to = $base_url . '?page=' . $page . '&contactform=' . $key . '&message=created';
|
593 |
-
} else {
|
594 |
-
$redirect_to = $base_url . '?page=' . $page . '&contactform=' . $id;
|
595 |
-
}
|
596 |
-
|
597 |
-
wp_redirect($redirect_to);
|
598 |
-
exit();
|
599 |
-
} elseif (isset($_POST['wpcf7-delete']) && $this->has_edit_cap()) {
|
600 |
-
$id = $_POST['wpcf7-id'];
|
601 |
-
check_admin_referer('wpcf7-delete_' . $id);
|
602 |
-
|
603 |
-
unset($contact_forms[$id]);
|
604 |
-
$this->update_contact_forms($contact_forms);
|
605 |
-
|
606 |
-
wp_redirect($base_url . '?page=' . $page . '&message=deleted');
|
607 |
-
exit();
|
608 |
-
}
|
609 |
-
|
610 |
-
add_management_page(__('Contact Form 7', 'wpcf7'), __('Contact Form 7', 'wpcf7'), wpcf7_read_capability(), __FILE__, array(&$this, 'management_page'));
|
611 |
-
}
|
612 |
-
|
613 |
-
function admin_head() {
|
614 |
-
global $plugin_page, $wp_version;
|
615 |
-
|
616 |
-
if (isset($plugin_page) && $plugin_page == plugin_basename(__FILE__)) {
|
617 |
-
|
618 |
-
$admin_stylesheet_url = WPCF7_PLUGIN_URL . '/admin/admin-stylesheet.css';
|
619 |
-
$javascript_url = WPCF7_PLUGIN_URL . '/admin/wpcf7-admin.js';
|
620 |
-
|
621 |
-
echo '<link rel="stylesheet" href="' . $admin_stylesheet_url . '" type="text/css" />';
|
622 |
-
|
623 |
-
if ('rtl' == get_bloginfo('text_direction')) {
|
624 |
-
$admin_stylesheet_rtl_url = WPCF7_PLUGIN_URL . '/admin/admin-stylesheet-rtl.css';
|
625 |
-
echo '<link rel="stylesheet" href="' . $admin_stylesheet_rtl_url . '" type="text/css" />';
|
626 |
-
}
|
627 |
-
|
628 |
-
?>
|
629 |
-
<script type="text/javascript">
|
630 |
-
//<![CDATA[
|
631 |
-
var _wpcf7 = {
|
632 |
-
l10n: {
|
633 |
-
optional: "<?php echo js_escape(__('optional', 'wpcf7')); ?>",
|
634 |
-
generateTag: "<?php echo js_escape(__('Generate Tag', 'wpcf7')); ?>",
|
635 |
-
textField: "<?php echo js_escape(__('Text field', 'wpcf7')); ?>",
|
636 |
-
emailField: "<?php echo js_escape(__('Email field', 'wpcf7')); ?>",
|
637 |
-
textArea: "<?php echo js_escape(__('Text area', 'wpcf7')); ?>",
|
638 |
-
menu: "<?php echo js_escape(__('Drop-down menu', 'wpcf7')); ?>",
|
639 |
-
checkboxes: "<?php echo js_escape(__('Checkboxes', 'wpcf7')); ?>",
|
640 |
-
radioButtons: "<?php echo js_escape(__('Radio buttons', 'wpcf7')); ?>",
|
641 |
-
acceptance: "<?php echo js_escape(__('Acceptance', 'wpcf7')); ?>",
|
642 |
-
isAcceptanceDefaultOn: "<?php echo js_escape(__("Make this checkbox checked by default?", 'wpcf7')); ?>",
|
643 |
-
isAcceptanceInvert: "<?php echo js_escape(__("Make this checkbox work inversely?", 'wpcf7')); ?>",
|
644 |
-
isAcceptanceInvertMeans: "<?php echo js_escape(__("* That means visitor who accepts the term unchecks it.", 'wpcf7')); ?>",
|
645 |
-
captcha: "<?php echo js_escape(__('CAPTCHA', 'wpcf7')); ?>",
|
646 |
-
quiz: "<?php echo js_escape(__('Quiz', 'wpcf7')); ?>",
|
647 |
-
quizzes: "<?php echo js_escape(__('Quizzes', 'wpcf7')); ?>",
|
648 |
-
quizFormatDesc: "<?php echo js_escape(__("* quiz|answer (e.g. 1+1=?|2)", 'wpcf7')); ?>",
|
649 |
-
fileUpload: "<?php echo js_escape(__('File upload', 'wpcf7')); ?>",
|
650 |
-
bytes: "<?php echo js_escape(__('bytes', 'wpcf7')); ?>",
|
651 |
-
submit: "<?php echo js_escape(__('Submit button', 'wpcf7')); ?>",
|
652 |
-
tagName: "<?php echo js_escape(__('Name', 'wpcf7')); ?>",
|
653 |
-
isRequiredField: "<?php echo js_escape(__('Required field?', 'wpcf7')); ?>",
|
654 |
-
allowsMultipleSelections: "<?php echo js_escape(__('Allow multiple selections?', 'wpcf7')); ?>",
|
655 |
-
insertFirstBlankOption: "<?php echo js_escape(__('Insert a blank item as the first option?', 'wpcf7')); ?>",
|
656 |
-
makeCheckboxesExclusive: "<?php echo js_escape(__('Make checkboxes exclusive?', 'wpcf7')); ?>",
|
657 |
-
menuChoices: "<?php echo js_escape(__('Choices', 'wpcf7')); ?>",
|
658 |
-
label: "<?php echo js_escape(__('Label', 'wpcf7')); ?>",
|
659 |
-
defaultValue: "<?php echo js_escape(__('Default value', 'wpcf7')); ?>",
|
660 |
-
akismet: "<?php echo js_escape(__('Akismet', 'wpcf7')); ?>",
|
661 |
-
akismetAuthor: "<?php echo js_escape(__("This field requires author's name", 'wpcf7')); ?>",
|
662 |
-
akismetAuthorUrl: "<?php echo js_escape(__("This field requires author's URL", 'wpcf7')); ?>",
|
663 |
-
akismetAuthorEmail: "<?php echo js_escape(__("This field requires author's email address", 'wpcf7')); ?>",
|
664 |
-
generatedTag: "<?php echo js_escape(__("Copy this code and paste it into the form left.", 'wpcf7')); ?>",
|
665 |
-
fgColor: "<?php echo js_escape(__("Foreground color", 'wpcf7')); ?>",
|
666 |
-
bgColor: "<?php echo js_escape(__("Background color", 'wpcf7')); ?>",
|
667 |
-
imageSize: "<?php echo js_escape(__("Image size", 'wpcf7')); ?>",
|
668 |
-
imageSizeSmall: "<?php echo js_escape(__("Small", 'wpcf7')); ?>",
|
669 |
-
imageSizeMedium: "<?php echo js_escape(__("Medium", 'wpcf7')); ?>",
|
670 |
-
imageSizeLarge: "<?php echo js_escape(__("Large", 'wpcf7')); ?>",
|
671 |
-
imageSettings: "<?php echo js_escape(__("Image settings", 'wpcf7')); ?>",
|
672 |
-
inputFieldSettings: "<?php echo js_escape(__("Input field settings", 'wpcf7')); ?>",
|
673 |
-
tagForImage: "<?php echo js_escape(__("For image", 'wpcf7')); ?>",
|
674 |
-
tagForInputField: "<?php echo js_escape(__("For input field", 'wpcf7')); ?>",
|
675 |
-
oneChoicePerLine: "<?php echo js_escape(__("* One choice per line.", 'wpcf7')); ?>",
|
676 |
-
show: "<?php echo js_escape(__("Show", 'wpcf7')); ?>",
|
677 |
-
hide: "<?php echo js_escape(__("Hide", 'wpcf7')); ?>",
|
678 |
-
fileSizeLimit: "<?php echo js_escape(__("File size limit", 'wpcf7')); ?>",
|
679 |
-
acceptableFileTypes: "<?php echo js_escape(__("Acceptable file types", 'wpcf7')); ?>",
|
680 |
-
needReallySimpleCaptcha: "<?php echo js_escape(__("Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed.", 'wpcf7')); ?>"
|
681 |
-
},
|
682 |
-
captchaMod: <?php echo (class_exists('ReallySimpleCaptcha')) ? 'true' : 'false' ?>
|
683 |
-
};
|
684 |
-
//]]>
|
685 |
-
</script>
|
686 |
-
<script type='text/javascript' src='<?php echo $javascript_url; ?>'></script>
|
687 |
-
<?php
|
688 |
-
}
|
689 |
-
}
|
690 |
-
|
691 |
-
function has_edit_cap() {
|
692 |
-
return current_user_can(wpcf7_read_write_capability());
|
693 |
-
}
|
694 |
-
|
695 |
-
function management_page() {
|
696 |
-
global $wp_version;
|
697 |
-
|
698 |
-
if (function_exists('admin_url')) {
|
699 |
-
$base_url = admin_url($this->admin_menu_parent());
|
700 |
-
} else {
|
701 |
-
$base_url = get_option('siteurl') . '/wp-admin/' . $this->admin_menu_parent();
|
702 |
-
}
|
703 |
-
$page = plugin_basename(__FILE__);
|
704 |
-
|
705 |
-
switch ($_GET['message']) {
|
706 |
-
case 'created':
|
707 |
-
$updated_message = __('Contact form created.', 'wpcf7');
|
708 |
-
break;
|
709 |
-
case 'saved':
|
710 |
-
$updated_message = __('Contact form saved.', 'wpcf7');
|
711 |
-
break;
|
712 |
-
case 'deleted':
|
713 |
-
$updated_message = __('Contact form deleted.', 'wpcf7');
|
714 |
-
break;
|
715 |
-
}
|
716 |
-
|
717 |
-
$contact_forms = $this->contact_forms();
|
718 |
-
|
719 |
-
$id = $_POST['wpcf7-id'];
|
720 |
-
|
721 |
-
if ('new' == $_GET['contactform']) {
|
722 |
-
$unsaved = true;
|
723 |
-
$current = -1;
|
724 |
-
$cf = $this->default_pack(__('Untitled', 'wpcf7'), true);
|
725 |
-
} elseif (array_key_exists($_GET['contactform'], $contact_forms)) {
|
726 |
-
$current = (int) $_GET['contactform'];
|
727 |
-
$cf = stripslashes_deep($contact_forms[$current]);
|
728 |
-
$cf = $this->upgrade($cf);
|
729 |
-
} else {
|
730 |
-
$current = (int) array_shift(array_keys($contact_forms));
|
731 |
-
$cf = stripslashes_deep($contact_forms[$current]);
|
732 |
-
$cf = $this->upgrade($cf);
|
733 |
-
}
|
734 |
|
735 |
-
|
736 |
-
|
737 |
|
738 |
-
|
739 |
-
$
|
740 |
-
'form' => $this->default_form_template(),
|
741 |
-
'mail' => $this->default_mail_template(),
|
742 |
-
'mail_2' => $this->default_mail_2_template(),
|
743 |
-
'messages' => $this->default_messages_template(),
|
744 |
-
'options' => $this->default_options_template());
|
745 |
-
if ($initial)
|
746 |
-
$cf['initial'] = true;
|
747 |
-
return $cf;
|
748 |
-
}
|
749 |
|
750 |
-
|
751 |
-
|
752 |
-
$template .= ' [text* your-name] </p>' . "\n\n";
|
753 |
-
$template .= '<p>' . __('Your Email', 'wpcf7') . ' ' . __('(required)', 'wpcf7') . '<br />' . "\n";
|
754 |
-
$template .= ' [email* your-email] </p>' . "\n\n";
|
755 |
-
$template .= '<p>' . __('Subject', 'wpcf7') . '<br />' . "\n";
|
756 |
-
$template .= ' [text your-subject] </p>' . "\n\n";
|
757 |
-
$template .= '<p>' . __('Your Message', 'wpcf7') . '<br />' . "\n";
|
758 |
-
$template .= ' [textarea your-message] </p>' . "\n\n";
|
759 |
-
$template .= '<p>[submit "' . __('Send', 'wpcf7') . '"]</p>';
|
760 |
-
return $template;
|
761 |
-
}
|
762 |
-
|
763 |
-
function default_mail_template() {
|
764 |
-
$subject = '[your-subject]';
|
765 |
-
$sender = '[your-name] <[your-email]>';
|
766 |
-
$body = '[your-message]';
|
767 |
-
$recipient = get_option('admin_email');
|
768 |
-
return compact('subject', 'sender', 'body', 'recipient');
|
769 |
-
}
|
770 |
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
$sender = '[your-name] <[your-email]>';
|
775 |
-
$body = '[your-message]';
|
776 |
-
$recipient = '[your-email]';
|
777 |
-
return compact('active', 'subject', 'sender', 'body', 'recipient');
|
778 |
-
}
|
779 |
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
$validation_error = $this->default_message('validation_error');
|
785 |
-
$accept_terms = $this->default_message('accept_terms');
|
786 |
-
$invalid_email = $this->default_message('invalid_email');
|
787 |
-
$invalid_required = $this->default_message('invalid_required');
|
788 |
-
$quiz_answer_not_correct = $this->default_message('quiz_answer_not_correct');
|
789 |
-
$captcha_not_match = $this->default_message('captcha_not_match');
|
790 |
-
$upload_failed = $this->default_message('upload_failed');
|
791 |
-
$upload_file_type_invalid = $this->default_message('upload_file_type_invalid');
|
792 |
-
$upload_file_too_large = $this->default_message('upload_file_too_large');
|
793 |
-
return compact('mail_sent_ok', 'mail_sent_ng', 'akismet_says_spam',
|
794 |
-
'validation_error', 'accept_terms', 'invalid_email', 'invalid_required', 'quiz_answer_not_correct',
|
795 |
-
'captcha_not_match', 'upload_failed', 'upload_file_type_invalid', 'upload_file_too_large');
|
796 |
-
}
|
797 |
-
|
798 |
-
function default_options_template() {
|
799 |
-
$recipient = get_option('admin_email'); // For backward compatibility.
|
800 |
-
return compact('recipient');
|
801 |
-
}
|
802 |
-
|
803 |
-
function message($contact_form, $status) {
|
804 |
-
if (! isset($contact_form['messages']) || ! isset($contact_form['messages'][$status]))
|
805 |
-
return $this->default_message($status);
|
806 |
-
|
807 |
-
return $contact_form['messages'][$status];
|
808 |
-
}
|
809 |
-
|
810 |
-
function default_message($status) {
|
811 |
-
switch ($status) {
|
812 |
-
case 'mail_sent_ok':
|
813 |
-
return __('Your message was sent successfully. Thanks.', 'wpcf7');
|
814 |
-
case 'mail_sent_ng':
|
815 |
-
return __('Failed to send your message. Please try later or contact administrator by other way.', 'wpcf7');
|
816 |
-
case 'akismet_says_spam':
|
817 |
-
return __('Failed to send your message. Please try later or contact administrator by other way.', 'wpcf7');
|
818 |
-
case 'validation_error':
|
819 |
-
return __('Validation errors occurred. Please confirm the fields and submit it again.', 'wpcf7');
|
820 |
-
case 'accept_terms':
|
821 |
-
return __('Please accept the terms to proceed.', 'wpcf7');
|
822 |
-
case 'invalid_email':
|
823 |
-
return __('Email address seems invalid.', 'wpcf7');
|
824 |
-
case 'invalid_required':
|
825 |
-
return __('Please fill the required field.', 'wpcf7');
|
826 |
-
case 'captcha_not_match':
|
827 |
-
return __('Your entered code is incorrect.', 'wpcf7');
|
828 |
-
case 'quiz_answer_not_correct':
|
829 |
-
return __('Your answer is not correct.', 'wpcf7');
|
830 |
-
case 'upload_failed':
|
831 |
-
return __('Failed to upload file.', 'wpcf7');
|
832 |
-
case 'upload_file_type_invalid':
|
833 |
-
return __('This file type is not allowed.', 'wpcf7');
|
834 |
-
case 'upload_file_too_large':
|
835 |
-
return __('This file is too large.', 'wpcf7');
|
836 |
-
}
|
837 |
-
}
|
838 |
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
|
|
|
|
|
|
|
|
843 |
$id = (int) $_POST['_wpcf7'];
|
844 |
-
$
|
845 |
-
|
846 |
-
$cf = stripslashes_deep($cf);
|
847 |
-
$validation = $this->validate($cf);
|
848 |
-
|
849 |
-
$handled_uploads = $this->handle_uploads($cf);
|
850 |
-
if (! $handled_uploads['validation']['valid'])
|
851 |
-
$validation['valid'] = false;
|
852 |
-
$validation['reason'] = array_merge($validation['reason'], $handled_uploads['validation']['reason']);
|
853 |
-
|
854 |
-
if (! $validation['valid']) {
|
855 |
-
$_POST['_wpcf7_validation_errors'] = array('id' => $id, 'messages' => $validation['reason']);
|
856 |
-
} elseif (! $this->acceptance($cf)) { // Not accepted terms
|
857 |
-
$_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message($cf, 'accept_terms'));
|
858 |
-
} elseif ($this->akismet($cf)) { // Spam!
|
859 |
-
$_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message($cf, 'akismet_says_spam'), 'spam' => true);
|
860 |
-
} elseif ($this->mail($cf, $handled_uploads['files'])) {
|
861 |
-
$_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => true, 'message' => $this->message($cf, 'mail_sent_ok'));
|
862 |
-
} else {
|
863 |
-
$_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message($cf, 'mail_sent_ng'));
|
864 |
-
}
|
865 |
-
|
866 |
-
// remove upload files
|
867 |
-
foreach ($handled_uploads['files'] as $name => $path) {
|
868 |
-
@unlink($path);
|
869 |
-
}
|
870 |
-
}
|
871 |
-
}
|
872 |
|
873 |
-
|
|
|
874 |
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
var $widget_count;
|
879 |
-
|
880 |
-
function the_content_filter($content) {
|
881 |
-
$this->processing_within = 'p' . get_the_ID();
|
882 |
-
$this->unit_count = 0;
|
883 |
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
$regex = '/\[\s*contact-form\s+(\d+(?:\s+.*)?)\]/';
|
893 |
-
return preg_replace_callback($regex, array(&$this, 'widget_text_filter_callback'), $content);
|
894 |
-
}
|
895 |
-
|
896 |
-
function widget_text_filter_callback($matches) {
|
897 |
-
return $this->contact_form_tag_func($matches[1]);
|
898 |
-
}
|
899 |
-
|
900 |
-
function contact_form_tag_func($atts) {
|
901 |
-
if (is_string($atts))
|
902 |
-
$atts = explode(' ', $atts, 2);
|
903 |
-
|
904 |
-
$atts = (array) $atts;
|
905 |
-
|
906 |
-
$id = (int) array_shift($atts);
|
907 |
-
|
908 |
-
$contact_forms = $this->contact_forms();
|
909 |
-
|
910 |
-
if (! ($cf = $contact_forms[$id]))
|
911 |
-
return '[contact-form 404 "Not Found"]';
|
912 |
-
|
913 |
-
$cf = stripslashes_deep($cf);
|
914 |
-
|
915 |
-
$this->unit_count += 1;
|
916 |
-
$unit_tag = 'wpcf7-f' . $id . '-' . $this->processing_within . '-o' . $this->unit_count;
|
917 |
-
$this->processing_unit_tag = $unit_tag;
|
918 |
-
|
919 |
-
$form = '<div class="wpcf7" id="' . $unit_tag . '">';
|
920 |
-
|
921 |
-
$url = parse_url($_SERVER['REQUEST_URI']);
|
922 |
-
$url = $url['path'] . (empty($url['query']) ? '' : '?' . $url['query']) . '#' . $unit_tag;
|
923 |
-
|
924 |
-
$form_elements = $this->form_elements($cf['form'], false);
|
925 |
-
$multipart = false;
|
926 |
-
foreach ($form_elements as $form_element) {
|
927 |
-
if (preg_match('/^file[*]?$/', $form_element['type'])) {
|
928 |
-
$multipart = true;
|
929 |
-
break;
|
930 |
-
}
|
931 |
-
}
|
932 |
-
$enctype = $multipart ? ' enctype="multipart/form-data"' : '';
|
933 |
-
|
934 |
-
$form .= '<form action="' . $url . '" method="post" class="wpcf7-form"' . $enctype . '>';
|
935 |
-
$form .= '<div style="display: none;">';
|
936 |
-
$form .= '<input type="hidden" name="_wpcf7" value="' . $id . '" />';
|
937 |
-
$form .= '<input type="hidden" name="_wpcf7_version" value="' . wpcf7_version() . '" />';
|
938 |
-
$form .= '<input type="hidden" name="_wpcf7_unit_tag" value="' . $unit_tag . '" />';
|
939 |
-
$form .= '</div>';
|
940 |
-
$form .= $this->form_elements($cf['form']);
|
941 |
-
$form .= '</form>';
|
942 |
-
|
943 |
-
// Post response output for non-AJAX
|
944 |
-
$class = 'wpcf7-response-output';
|
945 |
-
|
946 |
-
if ($this->processing_unit_tag == $_POST['_wpcf7_unit_tag']) {
|
947 |
-
if (isset($_POST['_wpcf7_mail_sent']) && $_POST['_wpcf7_mail_sent']['id'] == $id) {
|
948 |
-
if ($_POST['_wpcf7_mail_sent']['ok']) {
|
949 |
-
$class .= ' wpcf7-mail-sent-ok';
|
950 |
-
$content = $_POST['_wpcf7_mail_sent']['message'];
|
951 |
-
} else {
|
952 |
-
$class .= ' wpcf7-mail-sent-ng';
|
953 |
-
if ($_POST['_wpcf7_mail_sent']['spam'])
|
954 |
-
$class .= ' wpcf7-spam-blocked';
|
955 |
-
$content = $_POST['_wpcf7_mail_sent']['message'];
|
956 |
-
}
|
957 |
-
} elseif (isset($_POST['_wpcf7_validation_errors']) && $_POST['_wpcf7_validation_errors']['id'] == $id) {
|
958 |
-
$class .= ' wpcf7-validation-errors';
|
959 |
-
$content = $this->message($cf, 'validation_error');
|
960 |
-
}
|
961 |
-
}
|
962 |
-
|
963 |
-
$class = ' class="' . $class . '"';
|
964 |
-
|
965 |
-
$form .= '<div' . $class . '>' . $content . '</div>';
|
966 |
-
|
967 |
-
$form .= '</div>';
|
968 |
-
|
969 |
-
$this->processing_unit_tag = null;
|
970 |
-
|
971 |
-
if (WPCF7_AUTOP)
|
972 |
-
$form = $this->wpautop_substitute($form);
|
973 |
-
|
974 |
-
return $form;
|
975 |
-
}
|
976 |
-
|
977 |
-
function wpautop_substitute($pee, $br = 1) {
|
978 |
-
$pee = $pee . "\n"; // just to make things a little easier, pad the end
|
979 |
-
$pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
|
980 |
-
// Space things out a little
|
981 |
-
$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)';
|
982 |
-
$pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee);
|
983 |
-
$pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
|
984 |
-
$pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines
|
985 |
-
if ( strpos($pee, '<object') !== false ) {
|
986 |
-
$pee = preg_replace('|\s*<param([^>]*)>\s*|', "<param$1>", $pee); // no pee inside object/embed
|
987 |
-
$pee = preg_replace('|\s*</embed>\s*|', '</embed>', $pee);
|
988 |
-
}
|
989 |
-
$pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates
|
990 |
-
// make paragraphs, including one at the end
|
991 |
-
$pees = preg_split('/\n\s*\n/', $pee, -1, PREG_SPLIT_NO_EMPTY);
|
992 |
-
$pee = '';
|
993 |
-
foreach ( $pees as $tinkle )
|
994 |
-
$pee .= '<p>' . trim($tinkle, "\n") . "</p>\n";
|
995 |
-
$pee = preg_replace('|<p>\s*?</p>|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace
|
996 |
-
$pee = preg_replace('!<p>([^<]+)\s*?(</(?:div|address|form)[^>]*>)!', "<p>$1</p>$2", $pee);
|
997 |
-
$pee = preg_replace( '|<p>|', "$1<p>", $pee );
|
998 |
-
$pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee); // don't pee all over a tag
|
999 |
-
$pee = preg_replace("|<p>(<li.+?)</p>|", "$1", $pee); // problem with nested lists
|
1000 |
-
$pee = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee);
|
1001 |
-
$pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee);
|
1002 |
-
$pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee);
|
1003 |
-
$pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee);
|
1004 |
-
if ($br) {
|
1005 |
-
$pee = preg_replace_callback('/<(script|style).*?<\/\\1>/s', create_function('$matches', 'return str_replace("\n", "<WPPreserveNewline />", $matches[0]);'), $pee);
|
1006 |
-
$pee = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $pee); // optionally make line breaks
|
1007 |
-
$pee = str_replace('<WPPreserveNewline />', "\n", $pee);
|
1008 |
-
}
|
1009 |
-
$pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*<br />!', "$1", $pee);
|
1010 |
-
$pee = preg_replace('!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $pee);
|
1011 |
-
if (strpos($pee, '<pre') !== false)
|
1012 |
-
$pee = preg_replace_callback('!(<pre.*?>)(.*?)</pre>!is', 'clean_pre', $pee );
|
1013 |
-
$pee = preg_replace( "|\n</p>$|", '</p>', $pee );
|
1014 |
-
|
1015 |
-
if (function_exists('get_shortcode_regex'))
|
1016 |
-
$pee = preg_replace('/<p>\s*?(' . get_shortcode_regex() . ')\s*<\/p>/s', '$1', $pee); // don't auto-p wrap shortcodes that stand alone
|
1017 |
-
|
1018 |
-
return $pee;
|
1019 |
-
}
|
1020 |
-
|
1021 |
-
function validate($contact_form) {
|
1022 |
-
$fes = $this->form_elements($contact_form['form'], false);
|
1023 |
-
$valid = true;
|
1024 |
-
$reason = array();
|
1025 |
-
|
1026 |
-
foreach ($fes as $fe) {
|
1027 |
-
$type = $fe['type'];
|
1028 |
-
$name = $fe['name'];
|
1029 |
-
$values = $fe['values'];
|
1030 |
-
$raw_values = $fe['raw_values'];
|
1031 |
-
|
1032 |
-
// Before validation corrections
|
1033 |
-
if (preg_match('/^(?:text|email|captchar|textarea)[*]?$/', $type))
|
1034 |
-
$_POST[$name] = (string) $_POST[$name];
|
1035 |
-
|
1036 |
-
if (preg_match('/^(?:text|email)[*]?$/', $type))
|
1037 |
-
$_POST[$name] = trim(strtr($_POST[$name], "\n", " "));
|
1038 |
-
|
1039 |
-
if (preg_match('/^(?:select|checkbox|radio)[*]?$/', $type)) {
|
1040 |
-
if (is_array($_POST[$name])) {
|
1041 |
-
foreach ($_POST[$name] as $key => $value) {
|
1042 |
-
$value = stripslashes($value);
|
1043 |
-
if (! in_array($value, (array) $values)) // Not in given choices.
|
1044 |
-
unset($_POST[$name][$key]);
|
1045 |
-
}
|
1046 |
-
} else {
|
1047 |
-
$value = stripslashes($_POST[$name]);
|
1048 |
-
if (! in_array($value, (array) $values)) // Not in given choices.
|
1049 |
-
$_POST[$name] = '';
|
1050 |
-
}
|
1051 |
-
}
|
1052 |
-
|
1053 |
-
if ('acceptance' == $type)
|
1054 |
-
$_POST[$name] = $_POST[$name] ? 1 : 0;
|
1055 |
-
|
1056 |
-
// Required item (*)
|
1057 |
-
if (preg_match('/^(?:text|textarea)[*]$/', $type)) {
|
1058 |
-
if (! isset($_POST[$name]) || '' == $_POST[$name]) {
|
1059 |
-
$valid = false;
|
1060 |
-
$reason[$name] = $this->message($contact_form, 'invalid_required');
|
1061 |
}
|
|
|
|
|
|
|
1062 |
}
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
|
|
|
|
1068 |
}
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
if (empty($_POST[$name]) ||
|
1073 |
-
! is_array($_POST[$name]) && '---' == $_POST[$name] ||
|
1074 |
-
is_array($_POST[$name]) && 1 == count($_POST[$name]) && '---' == $_POST[$name][0]) {
|
1075 |
-
$valid = false;
|
1076 |
-
$reason[$name] = $this->message($contact_form, 'invalid_required');
|
1077 |
-
}
|
1078 |
}
|
1079 |
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
$valid = false;
|
1086 |
-
$reason[$name] = $this->message($contact_form, 'invalid_email');
|
1087 |
-
}
|
1088 |
}
|
1089 |
|
1090 |
-
if (
|
1091 |
-
$
|
1092 |
-
|
1093 |
-
$
|
1094 |
-
$reason[$name] = $this->message($contact_form, 'captcha_not_match');
|
1095 |
}
|
1096 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1097 |
}
|
1098 |
-
|
1099 |
-
if ('quiz' == $type) {
|
1100 |
-
$answer = $this->canonicalize($_POST[$name]);
|
1101 |
-
$answer_hash = wp_hash($answer, 'wpcf7_quiz');
|
1102 |
-
$expected_hash = $_POST['_wpcf7_quiz_answer_' . $name];
|
1103 |
-
if ($answer_hash != $expected_hash) {
|
1104 |
-
$valid = false;
|
1105 |
-
$reason[$name] = $this->message($contact_form, 'quiz_answer_not_correct');
|
1106 |
-
}
|
1107 |
-
}
|
1108 |
-
}
|
1109 |
-
return compact('valid', 'reason');
|
1110 |
-
}
|
1111 |
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
foreach ($fes as $fe) {
|
1117 |
-
$type = $fe['type'];
|
1118 |
-
$name = $fe['name'];
|
1119 |
-
$options = $fe['options'];
|
1120 |
-
if ('captchac' == $type) {
|
1121 |
-
$op = $this->captchac_options($options);
|
1122 |
-
if ($filename = $this->generate_captcha($op)) {
|
1123 |
-
$captcha_url = trailingslashit($this->captcha_tmp_url()) . $filename;
|
1124 |
-
$refill[$name] = $captcha_url;
|
1125 |
-
}
|
1126 |
}
|
1127 |
}
|
1128 |
-
return $refill;
|
1129 |
}
|
1130 |
|
1131 |
-
|
1132 |
-
|
1133 |
-
$
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
$name = $fe['name'];
|
1138 |
-
$values = $fe['values'];
|
1139 |
-
$raw_values = $fe['raw_values'];
|
1140 |
-
|
1141 |
-
if ('quiz' != $type)
|
1142 |
-
continue;
|
1143 |
-
|
1144 |
-
if (count($values) == 0)
|
1145 |
-
continue;
|
1146 |
-
|
1147 |
-
if (count($values) == 1)
|
1148 |
-
$question = $values[0];
|
1149 |
-
else
|
1150 |
-
$question = $values[array_rand($values)];
|
1151 |
-
|
1152 |
-
$pipes = $this->get_pipes($raw_values);
|
1153 |
-
$answer = $this->pipe($pipes, $question);
|
1154 |
-
$answer = $this->canonicalize($answer);
|
1155 |
-
|
1156 |
-
$refill[$name] = array($question, wp_hash($answer, 'wpcf7_quiz'));
|
1157 |
-
}
|
1158 |
-
|
1159 |
-
return $refill;
|
1160 |
}
|
|
|
1161 |
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
if ('rtl' == get_bloginfo('text_direction')) {
|
1167 |
-
$stylesheet_rtl_url = WPCF7_PLUGIN_URL . '/stylesheet-rtl.css';
|
1168 |
-
echo '<link rel="stylesheet" href="' . $stylesheet_rtl_url . '" type="text/css" />';
|
1169 |
-
}
|
1170 |
-
|
1171 |
-
$javascript_url = WPCF7_PLUGIN_URL . '/contact-form-7.js';
|
1172 |
-
?>
|
1173 |
-
<script type='text/javascript' src='<?php echo $javascript_url; ?>'></script>
|
1174 |
-
<?php
|
1175 |
-
}
|
1176 |
-
|
1177 |
-
function load_js() {
|
1178 |
-
global $pagenow;
|
1179 |
-
if (is_admin() && $this->admin_menu_parent() == $pagenow && false !== strpos($_GET['page'], 'contact-form-7'))
|
1180 |
-
wp_enqueue_script('jquery');
|
1181 |
-
if (! is_admin())
|
1182 |
-
wp_enqueue_script('jquery-form');
|
1183 |
-
}
|
1184 |
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
$
|
1189 |
-
$regex = '%\[\s*(' . $types . ')(\s+[a-zA-Z][0-9a-zA-Z:._-]*)([-0-9a-zA-Z:#_/|\s]*)?((?:\s*(?:"[^"]*"|\'[^\']*\'))*)?\s*\]%';
|
1190 |
-
$submit_regex = '%\[\s*submit(\s[-0-9a-zA-Z:#_/\s]*)?(\s+(?:"[^"]*"|\'[^\']*\'))?\s*\]%';
|
1191 |
-
if ($replace) {
|
1192 |
-
$form = preg_replace_callback($regex, array(&$this, 'form_element_replace_callback'), $form);
|
1193 |
-
// Submit button
|
1194 |
-
$form = preg_replace_callback($submit_regex, array(&$this, 'submit_replace_callback'), $form);
|
1195 |
-
return $form;
|
1196 |
-
} else {
|
1197 |
-
$results = array();
|
1198 |
-
preg_match_all($regex, $form, $matches, PREG_SET_ORDER);
|
1199 |
-
foreach ($matches as $match) {
|
1200 |
-
$results[] = (array) $this->form_element_parse($match);
|
1201 |
-
}
|
1202 |
-
return $results;
|
1203 |
-
}
|
1204 |
-
}
|
1205 |
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
preg_match('%^id:([-0-9a-zA-Z_]+)$%', $id, $id_matches);
|
1222 |
-
if ($id = $id_matches[1])
|
1223 |
-
$atts .= ' id="' . $id . '"';
|
1224 |
-
}
|
1225 |
-
|
1226 |
-
$class_att = "";
|
1227 |
-
$class_array = preg_grep('%^class:[-0-9a-zA-Z_]+$%', $options);
|
1228 |
-
foreach ($class_array as $class) {
|
1229 |
-
preg_match('%^class:([-0-9a-zA-Z_]+)$%', $class, $class_matches);
|
1230 |
-
if ($class = $class_matches[1])
|
1231 |
-
$class_att .= ' ' . $class;
|
1232 |
-
}
|
1233 |
-
|
1234 |
-
if (preg_match('/^email[*]?$/', $type))
|
1235 |
-
$class_att .= ' wpcf7-validates-as-email';
|
1236 |
-
if (preg_match('/[*]$/', $type))
|
1237 |
-
$class_att .= ' wpcf7-validates-as-required';
|
1238 |
-
|
1239 |
-
if (preg_match('/^checkbox[*]?$/', $type))
|
1240 |
-
$class_att .= ' wpcf7-checkbox';
|
1241 |
-
|
1242 |
-
if ('radio' == $type)
|
1243 |
-
$class_att .= ' wpcf7-radio';
|
1244 |
-
|
1245 |
-
if (preg_match('/^captchac$/', $type))
|
1246 |
-
$class_att .= ' wpcf7-captcha-' . $name;
|
1247 |
-
|
1248 |
-
if ('acceptance' == $type) {
|
1249 |
-
$class_att .= ' wpcf7-acceptance';
|
1250 |
-
if (preg_grep('%^invert$%', $options))
|
1251 |
-
$class_att .= ' wpcf7-invert';
|
1252 |
-
}
|
1253 |
-
|
1254 |
-
if ($class_att)
|
1255 |
-
$atts .= ' class="' . trim($class_att) . '"';
|
1256 |
-
|
1257 |
-
// Value.
|
1258 |
-
if ($this->processing_unit_tag == $_POST['_wpcf7_unit_tag']) {
|
1259 |
-
if (isset($_POST['_wpcf7_mail_sent']) && $_POST['_wpcf7_mail_sent']['ok'])
|
1260 |
-
$value = '';
|
1261 |
-
elseif ('captchar' == $type)
|
1262 |
-
$value = '';
|
1263 |
-
else
|
1264 |
-
$value = $_POST[$name];
|
1265 |
} else {
|
1266 |
-
$
|
1267 |
}
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
preg_match('/^default:([0-9_]+)$/', $scr_defaults[0], $scr_default_matches);
|
1273 |
-
$scr_default = explode('_', $scr_default_matches[1]);
|
1274 |
-
}
|
1275 |
-
|
1276 |
-
switch ($type) {
|
1277 |
-
case 'text':
|
1278 |
-
case 'text*':
|
1279 |
-
case 'email':
|
1280 |
-
case 'email*':
|
1281 |
-
case 'captchar':
|
1282 |
-
if (is_array($options)) {
|
1283 |
-
$size_maxlength_array = preg_grep('%^[0-9]*[/x][0-9]*$%', $options);
|
1284 |
-
if ($size_maxlength = array_shift($size_maxlength_array)) {
|
1285 |
-
preg_match('%^([0-9]*)[/x]([0-9]*)$%', $size_maxlength, $sm_matches);
|
1286 |
-
if ($size = (int) $sm_matches[1])
|
1287 |
-
$atts .= ' size="' . $size . '"';
|
1288 |
-
else
|
1289 |
-
$atts .= ' size="40"';
|
1290 |
-
if ($maxlength = (int) $sm_matches[2])
|
1291 |
-
$atts .= ' maxlength="' . $maxlength . '"';
|
1292 |
-
} else {
|
1293 |
-
$atts .= ' size="40"';
|
1294 |
-
}
|
1295 |
-
}
|
1296 |
-
$html = '<input type="text" name="' . $name . '" value="' . attribute_escape($value) . '"' . $atts . ' />';
|
1297 |
-
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
1298 |
-
return $html;
|
1299 |
-
break;
|
1300 |
-
case 'textarea':
|
1301 |
-
case 'textarea*':
|
1302 |
-
if (is_array($options)) {
|
1303 |
-
$cols_rows_array = preg_grep('%^[0-9]*[x/][0-9]*$%', $options);
|
1304 |
-
if ($cols_rows = array_shift($cols_rows_array)) {
|
1305 |
-
preg_match('%^([0-9]*)[x/]([0-9]*)$%', $cols_rows, $cr_matches);
|
1306 |
-
if ($cols = (int) $cr_matches[1])
|
1307 |
-
$atts .= ' cols="' . $cols . '"';
|
1308 |
-
else
|
1309 |
-
$atts .= ' cols="40"';
|
1310 |
-
if ($rows = (int) $cr_matches[2])
|
1311 |
-
$atts .= ' rows="' . $rows . '"';
|
1312 |
-
else
|
1313 |
-
$atts .= ' rows="10"';
|
1314 |
-
} else {
|
1315 |
-
$atts .= ' cols="40" rows="10"';
|
1316 |
-
}
|
1317 |
-
}
|
1318 |
-
$html = '<textarea name="' . $name . '"' . $atts . '>' . $value . '</textarea>';
|
1319 |
-
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
1320 |
-
return $html;
|
1321 |
-
break;
|
1322 |
-
case 'select':
|
1323 |
-
case 'select*':
|
1324 |
-
$multiple = (preg_grep('%^multiple$%', $options)) ? true : false;
|
1325 |
-
$include_blank = preg_grep('%^include_blank$%', $options);
|
1326 |
-
|
1327 |
-
if ($empty_select = empty($values) || $include_blank)
|
1328 |
-
array_unshift($values, '---');
|
1329 |
-
|
1330 |
-
$html = '';
|
1331 |
-
foreach ($values as $key => $value) {
|
1332 |
-
$selected = '';
|
1333 |
-
if (! $empty_select && in_array($key + 1, (array) $scr_default))
|
1334 |
-
$selected = ' selected="selected"';
|
1335 |
-
if ($this->processing_unit_tag == $_POST['_wpcf7_unit_tag'] && (
|
1336 |
-
$multiple && in_array($value, (array) $_POST[$name]) ||
|
1337 |
-
! $multiple && $_POST[$name] == $value))
|
1338 |
-
$selected = ' selected="selected"';
|
1339 |
-
$html .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . $value . '</option>';
|
1340 |
-
}
|
1341 |
-
|
1342 |
-
if ($multiple)
|
1343 |
-
$atts .= ' multiple="multiple"';
|
1344 |
-
|
1345 |
-
$html = '<select name="' . $name . ($multiple ? '[]' : '') . '"' . $atts . '>' . $html . '</select>';
|
1346 |
-
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
1347 |
-
return $html;
|
1348 |
-
break;
|
1349 |
-
case 'checkbox':
|
1350 |
-
case 'checkbox*':
|
1351 |
-
case 'radio':
|
1352 |
-
$multiple = (preg_match('/^checkbox[*]?$/', $type) && ! preg_grep('%^exclusive$%', $options)) ? true : false;
|
1353 |
-
$html = '';
|
1354 |
-
|
1355 |
-
if (preg_match('/^checkbox[*]?$/', $type) && ! $multiple)
|
1356 |
-
$onclick = ' onclick="wpcf7ExclusiveCheckbox(this);"';
|
1357 |
-
|
1358 |
-
$input_type = rtrim($type, '*');
|
1359 |
-
|
1360 |
-
foreach ($values as $key => $value) {
|
1361 |
-
$checked = '';
|
1362 |
-
if (in_array($key + 1, (array) $scr_default))
|
1363 |
-
$checked = ' checked="checked"';
|
1364 |
-
if ($this->processing_unit_tag == $_POST['_wpcf7_unit_tag'] && (
|
1365 |
-
$multiple && in_array($value, (array) $_POST[$name]) ||
|
1366 |
-
! $multiple && $_POST[$name] == $value))
|
1367 |
-
$checked = ' checked="checked"';
|
1368 |
-
if (preg_grep('%^label[_-]?first$%', $options)) { // put label first, input last
|
1369 |
-
$item = '<span class="wpcf7-list-item-label">' . $value . '</span> ';
|
1370 |
-
$item .= '<input type="' . $input_type . '" name="' . $name . ($multiple ? '[]' : '') . '" value="' . attribute_escape($value) . '"' . $checked . $onclick . ' />';
|
1371 |
-
} else {
|
1372 |
-
$item = '<input type="' . $input_type . '" name="' . $name . ($multiple ? '[]' : '') . '" value="' . attribute_escape($value) . '"' . $checked . $onclick . ' />';
|
1373 |
-
$item .= ' <span class="wpcf7-list-item-label">' . $value . '</span>';
|
1374 |
-
}
|
1375 |
-
$item = '<span class="wpcf7-list-item">' . $item . '</span>';
|
1376 |
-
$html .= $item;
|
1377 |
-
}
|
1378 |
-
|
1379 |
-
$html = '<span' . $atts . '>' . $html . '</span>';
|
1380 |
-
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
1381 |
-
return $html;
|
1382 |
-
break;
|
1383 |
-
case 'quiz':
|
1384 |
-
if (count($raw_values) == 0 && count($values) == 0) { // default quiz
|
1385 |
-
$raw_values[] = '1+1=?|2';
|
1386 |
-
$values[] = '1+1=?';
|
1387 |
-
}
|
1388 |
-
|
1389 |
-
$pipes = $this->get_pipes($raw_values);
|
1390 |
-
|
1391 |
-
if (count($values) == 0) {
|
1392 |
-
break;
|
1393 |
-
} elseif (count($values) == 1) {
|
1394 |
-
$value = $values[0];
|
1395 |
-
} else {
|
1396 |
-
$value = $values[array_rand($values)];
|
1397 |
-
}
|
1398 |
-
|
1399 |
-
$answer = $this->pipe($pipes, $value);
|
1400 |
-
$answer = $this->canonicalize($answer);
|
1401 |
-
|
1402 |
-
if (is_array($options)) {
|
1403 |
-
$size_maxlength_array = preg_grep('%^[0-9]*[/x][0-9]*$%', $options);
|
1404 |
-
if ($size_maxlength = array_shift($size_maxlength_array)) {
|
1405 |
-
preg_match('%^([0-9]*)[/x]([0-9]*)$%', $size_maxlength, $sm_matches);
|
1406 |
-
if ($size = (int) $sm_matches[1])
|
1407 |
-
$atts .= ' size="' . $size . '"';
|
1408 |
-
else
|
1409 |
-
$atts .= ' size="40"';
|
1410 |
-
if ($maxlength = (int) $sm_matches[2])
|
1411 |
-
$atts .= ' maxlength="' . $maxlength . '"';
|
1412 |
-
} else {
|
1413 |
-
$atts .= ' size="40"';
|
1414 |
-
}
|
1415 |
-
}
|
1416 |
-
|
1417 |
-
$html = '<span class="wpcf7-quiz-label">' . $value . '</span> ';
|
1418 |
-
$html .= '<input type="text" name="' . $name . '"' . $atts . ' />';
|
1419 |
-
$html .= '<input type="hidden" name="_wpcf7_quiz_answer_' . $name . '" value="' . wp_hash($answer, 'wpcf7_quiz') . '" />';
|
1420 |
-
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
1421 |
-
return $html;
|
1422 |
-
break;
|
1423 |
-
case 'acceptance':
|
1424 |
-
$invert = (bool) preg_grep('%^invert$%', $options);
|
1425 |
-
$default = (bool) preg_grep('%^default:on$%', $options);
|
1426 |
-
|
1427 |
-
$onclick = ' onclick="wpcf7ToggleSubmit(this.form);"';
|
1428 |
-
$checked = $default ? ' checked="checked"' : '';
|
1429 |
-
$html = '<input type="checkbox" name="' . $name . '" value="1"' . $atts . $onclick . $checked . ' />';
|
1430 |
-
return $html;
|
1431 |
-
break;
|
1432 |
-
case 'captchac':
|
1433 |
-
if (! class_exists('ReallySimpleCaptcha')) {
|
1434 |
-
return '<em>' . __('To use CAPTCHA, you need <a href="http://wordpress.org/extend/plugins/really-simple-captcha/">Really Simple CAPTCHA</a> plugin installed.', 'wpcf7') . '</em>';
|
1435 |
-
break;
|
1436 |
-
}
|
1437 |
-
|
1438 |
-
$op = array();
|
1439 |
-
// Default
|
1440 |
-
$op['img_size'] = array(72, 24);
|
1441 |
-
$op['base'] = array(6, 18);
|
1442 |
-
$op['font_size'] = 14;
|
1443 |
-
$op['font_char_width'] = 15;
|
1444 |
-
|
1445 |
-
$op = array_merge($op, $this->captchac_options($options));
|
1446 |
-
|
1447 |
-
if (! $filename = $this->generate_captcha($op)) {
|
1448 |
-
return '';
|
1449 |
-
break;
|
1450 |
-
}
|
1451 |
-
if (is_array($op['img_size']))
|
1452 |
-
$atts .= ' width="' . $op['img_size'][0] . '" height="' . $op['img_size'][1] . '"';
|
1453 |
-
$captcha_url = trailingslashit($this->captcha_tmp_url()) . $filename;
|
1454 |
-
$html = '<img alt="captcha" src="' . $captcha_url . '"' . $atts . ' />';
|
1455 |
-
$ref = substr($filename, 0, strrpos($filename, '.'));
|
1456 |
-
$html = '<input type="hidden" name="_wpcf7_captcha_challenge_' . $name . '" value="' . $ref . '" />' . $html;
|
1457 |
-
return $html;
|
1458 |
-
break;
|
1459 |
-
case 'file':
|
1460 |
-
case 'file*':
|
1461 |
-
$html = '<input type="file" name="' . $name . '"' . $atts . ' value="1" />';
|
1462 |
-
$html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
|
1463 |
-
return $html;
|
1464 |
-
break;
|
1465 |
}
|
1466 |
}
|
|
|
1467 |
|
1468 |
-
|
1469 |
-
|
1470 |
-
$options = preg_split('/[\s]+/', trim($matches[1]));
|
1471 |
-
|
1472 |
-
$id_array = preg_grep('%^id:[-0-9a-zA-Z_]+$%', $options);
|
1473 |
-
if ($id = array_shift($id_array)) {
|
1474 |
-
preg_match('%^id:([-0-9a-zA-Z_]+)$%', $id, $id_matches);
|
1475 |
-
if ($id = $id_matches[1])
|
1476 |
-
$atts .= ' id="' . $id . '"';
|
1477 |
-
}
|
1478 |
-
|
1479 |
-
$class_att = '';
|
1480 |
-
$class_array = preg_grep('%^class:[-0-9a-zA-Z_]+$%', $options);
|
1481 |
-
foreach ($class_array as $class) {
|
1482 |
-
preg_match('%^class:([-0-9a-zA-Z_]+)$%', $class, $class_matches);
|
1483 |
-
if ($class = $class_matches[1])
|
1484 |
-
$class_att .= ' ' . $class;
|
1485 |
-
}
|
1486 |
-
|
1487 |
-
if ($class_att)
|
1488 |
-
$atts .= ' class="' . trim($class_att) . '"';
|
1489 |
-
|
1490 |
-
if ($matches[2])
|
1491 |
-
$value = $this->strip_quote($matches[2]);
|
1492 |
-
if (empty($value))
|
1493 |
-
$value = __('Send', 'wpcf7');
|
1494 |
-
$ajax_loader_image_url = WPCF7_PLUGIN_URL . '/images/ajax-loader.gif';
|
1495 |
-
|
1496 |
-
$html = '<input type="submit" value="' . $value . '"' . $atts . ' />';
|
1497 |
-
$html .= ' <img class="ajax-loader" style="visibility: hidden;" alt="ajax loader" src="' . $ajax_loader_image_url . '" />';
|
1498 |
-
return $html;
|
1499 |
-
}
|
1500 |
-
|
1501 |
-
function canonicalize($text) {
|
1502 |
-
if (function_exists('mb_convert_kana') && 'UTF-8' == get_option('blog_charset'))
|
1503 |
-
$text = mb_convert_kana($text, 'asKV', 'UTF-8');
|
1504 |
-
|
1505 |
-
$text = strtolower($text);
|
1506 |
-
$text = trim($text);
|
1507 |
-
return $text;
|
1508 |
-
}
|
1509 |
-
|
1510 |
-
function form_element_parse($element) {
|
1511 |
-
$type = trim($element[1]);
|
1512 |
-
$name = trim($element[2]);
|
1513 |
-
$options = preg_split('/[\s]+/', trim($element[3]));
|
1514 |
-
|
1515 |
-
preg_match_all('/"[^"]*"|\'[^\']*\'/', $element[4], $matches);
|
1516 |
-
$raw_values = $this->strip_quote_deep($matches[0]);
|
1517 |
-
|
1518 |
-
if (WPCF7_USE_PIPE && preg_match('/^(select[*]?|checkbox[*]?|radio)$/', $type) || 'quiz' == $type) {
|
1519 |
-
$pipes = $this->get_pipes($raw_values);
|
1520 |
-
$values = $this->get_pipe_ins($pipes);
|
1521 |
-
} else {
|
1522 |
-
$values =& $raw_values;
|
1523 |
-
}
|
1524 |
-
|
1525 |
-
return compact('type', 'name', 'options', 'values', 'raw_values');
|
1526 |
-
}
|
1527 |
|
1528 |
-
|
1529 |
-
|
1530 |
-
if (preg_match('/^"(.*)"$/', $text, $matches))
|
1531 |
-
$text = $matches[1];
|
1532 |
-
elseif (preg_match("/^'(.*)'$/", $text, $matches))
|
1533 |
-
$text = $matches[1];
|
1534 |
-
return $text;
|
1535 |
-
}
|
1536 |
|
1537 |
-
|
1538 |
-
|
1539 |
-
return $this->strip_quote($arr);
|
1540 |
-
if (is_array($arr)) {
|
1541 |
-
$result = array();
|
1542 |
-
foreach ($arr as $key => $text) {
|
1543 |
-
$result[$key] = $this->strip_quote($text);
|
1544 |
-
}
|
1545 |
-
return $result;
|
1546 |
-
}
|
1547 |
-
}
|
1548 |
|
1549 |
-
|
1550 |
-
$dir = $this->upload_tmp_dir();
|
1551 |
-
wp_mkdir_p(trailingslashit($dir));
|
1552 |
-
@chmod($dir, 0733);
|
1553 |
-
}
|
1554 |
-
|
1555 |
-
function cleanup_upload_files() {
|
1556 |
-
$dir = $this->upload_tmp_dir();
|
1557 |
-
$dir = trailingslashit($dir);
|
1558 |
-
|
1559 |
-
if (! is_dir($dir))
|
1560 |
-
return false;
|
1561 |
-
|
1562 |
-
if ($handle = opendir($dir)) {
|
1563 |
-
while (false !== ($file = readdir($handle))) {
|
1564 |
-
if ($file == "." || $file == "..")
|
1565 |
-
continue;
|
1566 |
-
|
1567 |
-
$stat = stat($dir . $file);
|
1568 |
-
if ($stat['mtime'] + 60 < time()) // 60 secs
|
1569 |
-
@ unlink($dir . $file);
|
1570 |
-
}
|
1571 |
-
closedir($handle);
|
1572 |
-
}
|
1573 |
-
}
|
1574 |
-
|
1575 |
-
function init_captcha() {
|
1576 |
-
if (! class_exists('ReallySimpleCaptcha'))
|
1577 |
-
return false;
|
1578 |
-
|
1579 |
-
if (! is_object($this->captcha))
|
1580 |
-
$this->captcha = new ReallySimpleCaptcha();
|
1581 |
-
$captcha =& $this->captcha;
|
1582 |
-
|
1583 |
-
$captcha->tmp_dir = trailingslashit($this->captcha_tmp_dir());
|
1584 |
-
wp_mkdir_p($captcha->tmp_dir);
|
1585 |
-
return true;
|
1586 |
-
}
|
1587 |
-
|
1588 |
-
function generate_captcha($options = null) {
|
1589 |
-
if (! $this->init_captcha())
|
1590 |
-
return false;
|
1591 |
-
$captcha =& $this->captcha;
|
1592 |
-
|
1593 |
-
if (! is_dir($captcha->tmp_dir) || ! is_writable($captcha->tmp_dir))
|
1594 |
-
return false;
|
1595 |
-
|
1596 |
-
$img_type = imagetypes();
|
1597 |
-
if ($img_type & IMG_PNG)
|
1598 |
-
$captcha->img_type = 'png';
|
1599 |
-
elseif ($img_type & IMG_GIF)
|
1600 |
-
$captcha->img_type = 'gif';
|
1601 |
-
elseif ($img_type & IMG_JPG)
|
1602 |
-
$captcha->img_type = 'jpeg';
|
1603 |
-
else
|
1604 |
-
return false;
|
1605 |
-
|
1606 |
-
if (is_array($options)) {
|
1607 |
-
if (isset($options['img_size']))
|
1608 |
-
$captcha->img_size = $options['img_size'];
|
1609 |
-
if (isset($options['base']))
|
1610 |
-
$captcha->base = $options['base'];
|
1611 |
-
if (isset($options['font_size']))
|
1612 |
-
$captcha->font_size = $options['font_size'];
|
1613 |
-
if (isset($options['font_char_width']))
|
1614 |
-
$captcha->font_char_width = $options['font_char_width'];
|
1615 |
-
if (isset($options['fg']))
|
1616 |
-
$captcha->fg = $options['fg'];
|
1617 |
-
if (isset($options['bg']))
|
1618 |
-
$captcha->bg = $options['bg'];
|
1619 |
-
}
|
1620 |
-
|
1621 |
-
$prefix = mt_rand();
|
1622 |
-
$captcha_word = $captcha->generate_random_word();
|
1623 |
-
return $captcha->generate_image($prefix, $captcha_word);
|
1624 |
-
}
|
1625 |
|
1626 |
-
|
1627 |
-
|
1628 |
-
return false;
|
1629 |
-
$captcha =& $this->captcha;
|
1630 |
-
|
1631 |
-
return $captcha->check($prefix, $response);
|
1632 |
-
}
|
1633 |
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
$captcha =& $this->captcha;
|
1638 |
-
|
1639 |
-
$captcha->remove($prefix);
|
1640 |
-
}
|
1641 |
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
|
1657 |
-
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1662 |
}
|
|
|
1663 |
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
$op['font_size'] = 17;
|
1683 |
-
$op['font_char_width'] = 19;
|
1684 |
-
break;
|
1685 |
-
case 'm':
|
1686 |
-
default:
|
1687 |
-
$op['img_size'] = array(72, 24);
|
1688 |
-
$op['base'] = array(6, 18);
|
1689 |
-
$op['font_size'] = 14;
|
1690 |
-
$op['font_char_width'] = 15;
|
1691 |
-
}
|
1692 |
-
}
|
1693 |
-
$fg_color_array = preg_grep('%^fg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $options);
|
1694 |
-
if ($fg_color = array_shift($fg_color_array)) {
|
1695 |
-
preg_match('%^fg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $fg_color, $fc_matches);
|
1696 |
-
if (3 == strlen($fc_matches[1])) {
|
1697 |
-
$r = substr($fc_matches[1], 0, 1);
|
1698 |
-
$g = substr($fc_matches[1], 1, 1);
|
1699 |
-
$b = substr($fc_matches[1], 2, 1);
|
1700 |
-
$op['fg'] = array(hexdec($r . $r), hexdec($g . $g), hexdec($b . $b));
|
1701 |
-
} elseif (6 == strlen($fc_matches[1])) {
|
1702 |
-
$r = substr($fc_matches[1], 0, 2);
|
1703 |
-
$g = substr($fc_matches[1], 2, 2);
|
1704 |
-
$b = substr($fc_matches[1], 4, 2);
|
1705 |
-
$op['fg'] = array(hexdec($r), hexdec($g), hexdec($b));
|
1706 |
-
}
|
1707 |
-
}
|
1708 |
-
$bg_color_array = preg_grep('%^bg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $options);
|
1709 |
-
if ($bg_color = array_shift($bg_color_array)) {
|
1710 |
-
preg_match('%^bg:#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$%', $bg_color, $bc_matches);
|
1711 |
-
if (3 == strlen($bc_matches[1])) {
|
1712 |
-
$r = substr($bc_matches[1], 0, 1);
|
1713 |
-
$g = substr($bc_matches[1], 1, 1);
|
1714 |
-
$b = substr($bc_matches[1], 2, 1);
|
1715 |
-
$op['bg'] = array(hexdec($r . $r), hexdec($g . $g), hexdec($b . $b));
|
1716 |
-
} elseif (6 == strlen($bc_matches[1])) {
|
1717 |
-
$r = substr($bc_matches[1], 0, 2);
|
1718 |
-
$g = substr($bc_matches[1], 2, 2);
|
1719 |
-
$b = substr($bc_matches[1], 4, 2);
|
1720 |
-
$op['bg'] = array(hexdec($r), hexdec($g), hexdec($b));
|
1721 |
-
}
|
1722 |
-
}
|
1723 |
-
|
1724 |
-
return $op;
|
1725 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1726 |
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
$results[$k] = $this->pipe($pipes, $v);
|
1732 |
-
}
|
1733 |
-
return $results;
|
1734 |
-
}
|
1735 |
-
|
1736 |
-
foreach ($pipes as $p) {
|
1737 |
-
if ($p[0] == $value)
|
1738 |
-
return $p[1];
|
1739 |
-
}
|
1740 |
-
|
1741 |
-
return $value;
|
1742 |
-
}
|
1743 |
-
|
1744 |
-
function get_pipe_ins($pipes) {
|
1745 |
-
$ins = array();
|
1746 |
-
foreach ($pipes as $pipe) {
|
1747 |
-
$in = $pipe[0];
|
1748 |
-
if (! in_array($in, $ins))
|
1749 |
-
$ins[] = $in;
|
1750 |
-
}
|
1751 |
-
return $ins;
|
1752 |
-
}
|
1753 |
-
|
1754 |
-
function get_pipes($values) {
|
1755 |
-
$pipes = array();
|
1756 |
-
|
1757 |
-
foreach ($values as $value) {
|
1758 |
-
$pipe_pos = strpos($value, '|');
|
1759 |
-
if (false === $pipe_pos) {
|
1760 |
-
$before = $after = $value;
|
1761 |
-
} else {
|
1762 |
-
$before = substr($value, 0, $pipe_pos);
|
1763 |
-
$after = substr($value, $pipe_pos + 1);
|
1764 |
-
}
|
1765 |
-
|
1766 |
-
$pipes[] = array($before, $after);
|
1767 |
-
}
|
1768 |
-
|
1769 |
-
return $pipes;
|
1770 |
-
}
|
1771 |
-
|
1772 |
-
function pipe_all_posted($contact_form) {
|
1773 |
-
$all_pipes = array();
|
1774 |
-
|
1775 |
-
$fes = $this->form_elements($contact_form['form'], false);
|
1776 |
-
foreach ($fes as $fe) {
|
1777 |
-
$type = $fe['type'];
|
1778 |
-
$name = $fe['name'];
|
1779 |
-
$raw_values = $fe['raw_values'];
|
1780 |
-
|
1781 |
-
if (! preg_match('/^(select[*]?|checkbox[*]?|radio)$/', $type))
|
1782 |
-
continue;
|
1783 |
-
|
1784 |
-
$pipes = $this->get_pipes($raw_values);
|
1785 |
-
|
1786 |
-
$all_pipes[$name] = array_merge($pipes, (array) $all_pipes[$name]);
|
1787 |
-
}
|
1788 |
-
|
1789 |
-
foreach ($all_pipes as $name => $pipes) {
|
1790 |
-
if (isset($this->posted_data[$name]))
|
1791 |
-
$this->posted_data[$name] = $this->pipe($pipes, $this->posted_data[$name]);
|
1792 |
-
}
|
1793 |
-
}
|
1794 |
-
|
1795 |
-
function captcha_tmp_dir() {
|
1796 |
-
if (defined('WPCF7_CAPTCHA_TMP_DIR'))
|
1797 |
-
return WPCF7_CAPTCHA_TMP_DIR;
|
1798 |
-
else
|
1799 |
-
return $this->upload_dir('dir') . '/wpcf7_captcha';
|
1800 |
-
}
|
1801 |
-
|
1802 |
-
function captcha_tmp_url() {
|
1803 |
-
if (defined('WPCF7_CAPTCHA_TMP_URL'))
|
1804 |
-
return WPCF7_CAPTCHA_TMP_URL;
|
1805 |
-
else
|
1806 |
-
return $this->upload_dir('url') . '/wpcf7_captcha';
|
1807 |
-
}
|
1808 |
-
|
1809 |
-
function upload_tmp_dir() {
|
1810 |
-
if (defined('WPCF7_UPLOADS_TMP_DIR'))
|
1811 |
-
return WPCF7_UPLOADS_TMP_DIR;
|
1812 |
-
else
|
1813 |
-
return $this->upload_dir('dir') . '/wpcf7_uploads';
|
1814 |
-
}
|
1815 |
-
|
1816 |
-
function upload_dir($type = false) {
|
1817 |
-
$siteurl = get_option('siteurl');
|
1818 |
-
$upload_path = trim(get_option('upload_path'));
|
1819 |
-
if (empty($upload_path))
|
1820 |
-
$dir = WP_CONTENT_DIR . '/uploads';
|
1821 |
-
else
|
1822 |
-
$dir = $upload_path;
|
1823 |
-
|
1824 |
-
$dir = path_join(ABSPATH, $dir);
|
1825 |
-
|
1826 |
-
if (! $url = get_option('upload_url_path')) {
|
1827 |
-
if (empty($upload_path) || $upload_path == $dir)
|
1828 |
-
$url = WP_CONTENT_URL . '/uploads';
|
1829 |
-
else
|
1830 |
-
$url = trailingslashit($siteurl) . $upload_path;
|
1831 |
-
}
|
1832 |
-
|
1833 |
-
if (defined('UPLOADS')) {
|
1834 |
-
$dir = ABSPATH . UPLOADS;
|
1835 |
-
$url = trailingslashit($siteurl) . UPLOADS;
|
1836 |
-
}
|
1837 |
-
|
1838 |
-
if ('dir' == $type)
|
1839 |
-
return $dir;
|
1840 |
-
if ('url' == $type)
|
1841 |
-
return $url;
|
1842 |
-
return array('dir' => $dir, 'url' => $url);
|
1843 |
-
}
|
1844 |
}
|
1845 |
|
1846 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1847 |
|
1848 |
?>
|
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.10
|
8 |
Author URI: http://ideasilo.wordpress.com/
|
9 |
*/
|
10 |
|
25 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
26 |
*/
|
27 |
|
28 |
+
define( 'WPCF7_VERSION', '1.10' );
|
29 |
|
30 |
+
if ( ! defined( 'WP_CONTENT_DIR' ) )
|
31 |
+
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
|
|
|
|
|
32 |
|
33 |
+
if ( ! defined( 'WP_CONTENT_URL' ) )
|
34 |
+
define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
|
|
|
|
|
35 |
|
36 |
+
if ( ! defined( 'WP_PLUGIN_DIR' ) )
|
37 |
+
define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
|
|
|
|
|
38 |
|
39 |
+
if ( ! defined( 'WP_PLUGIN_URL' ) )
|
40 |
+
define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
|
41 |
|
42 |
+
if ( ! defined( 'WPCF7_PLUGIN_DIR' ) )
|
43 |
+
define( 'WPCF7_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . plugin_basename( dirname( __FILE__ ) ) );
|
44 |
|
45 |
+
if ( ! defined( 'WPCF7_PLUGIN_URL' ) )
|
46 |
+
define( 'WPCF7_PLUGIN_URL', WP_PLUGIN_URL . '/' . plugin_basename( dirname( __FILE__ ) ) );
|
|
|
47 |
|
48 |
+
if ( ! defined( 'WPCF7_PLUGIN_BASENAME' ) )
|
49 |
+
define( 'WPCF7_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
|
|
50 |
|
51 |
+
if ( ! defined( 'WPCF7_LOAD_JS' ) )
|
52 |
+
define( 'WPCF7_LOAD_JS', true );
|
|
|
53 |
|
54 |
+
if ( ! defined( 'WPCF7_AUTOP' ) )
|
55 |
+
define( 'WPCF7_AUTOP', true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
+
if ( ! defined( 'WPCF7_USE_PIPE' ) )
|
58 |
+
define( 'WPCF7_USE_PIPE', true );
|
59 |
+
|
60 |
+
/* If you or your client hate to see about donation, set this value false. */
|
61 |
+
if ( ! defined( 'WPCF7_SHOW_DONATION_LINK' ) )
|
62 |
+
define( 'WPCF7_SHOW_DONATION_LINK', true );
|
63 |
+
|
64 |
+
if ( ! defined( 'WPCF7_ADMIN_READ_CAPABILITY' ) )
|
65 |
+
define( 'WPCF7_ADMIN_READ_CAPABILITY', 'edit_posts' );
|
66 |
+
|
67 |
+
if ( ! defined( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY' ) )
|
68 |
+
define( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY', 'publish_pages' );
|
69 |
+
|
70 |
+
function wpcf7_plugin_url( $path = '' ) {
|
71 |
+
if ( function_exists( 'plugins_url' ) ) {
|
72 |
+
return plugins_url( $path, __FILE__ );
|
73 |
+
} else { // Older than WP 2.6
|
74 |
+
$url = WPCF7_PLUGIN_URL;
|
75 |
+
if ( ! empty( $path ) && is_string( $path ) && false === strpos( $path, '..' ) )
|
76 |
+
$url .= '/' . ltrim( $path, '/' );
|
77 |
+
return $url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
}
|
79 |
+
}
|
80 |
+
|
81 |
+
// Pre-2.8 compatibility
|
82 |
+
if ( ! function_exists( 'esc_js' ) ) {
|
83 |
+
function esc_js( $text ) {
|
84 |
+
return js_escape( $text );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
}
|
86 |
+
}
|
87 |
+
|
88 |
+
if ( ! function_exists( 'esc_html' ) ) {
|
89 |
+
function esc_html( $text ) {
|
90 |
+
return wp_specialchars( $text );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
92 |
+
}
|
93 |
|
94 |
+
if ( ! function_exists( 'esc_attr' ) ) {
|
95 |
+
function esc_attr( $text ) {
|
96 |
+
return attribute_escape( $text );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
+
}
|
99 |
|
100 |
+
require_once WPCF7_PLUGIN_DIR . '/includes/classes.php';
|
101 |
+
require_once WPCF7_PLUGIN_DIR . '/includes/functions.php';
|
102 |
+
require_once WPCF7_PLUGIN_DIR . '/includes/formatting.php';
|
103 |
+
require_once WPCF7_PLUGIN_DIR . '/includes/mail.php';
|
104 |
+
require_once WPCF7_PLUGIN_DIR . '/includes/pipe.php';
|
105 |
+
require_once WPCF7_PLUGIN_DIR . '/includes/akismet.php';
|
106 |
+
require_once WPCF7_PLUGIN_DIR . '/includes/acceptance.php';
|
107 |
+
require_once WPCF7_PLUGIN_DIR . '/includes/quiz.php';
|
108 |
+
require_once WPCF7_PLUGIN_DIR . '/includes/captcha.php';
|
109 |
+
require_once WPCF7_PLUGIN_DIR . '/includes/upload.php';
|
110 |
|
111 |
+
if ( is_admin() )
|
112 |
+
require_once WPCF7_PLUGIN_DIR . '/admin/admin.php';
|
|
|
|
|
|
|
113 |
|
114 |
+
$wpcf7_contact_forms = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
+
function wpcf7_contact_forms() {
|
117 |
+
global $wpcf7_contact_forms;
|
|
|
118 |
|
119 |
+
if ( is_array( $wpcf7_contact_forms ) )
|
120 |
+
return $wpcf7_contact_forms;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
122 |
+
$wpcf7 = get_option( 'wpcf7' );
|
123 |
+
$wpcf7_contact_forms = $wpcf7['contact_forms'];
|
124 |
|
125 |
+
if ( ! is_array( $wpcf7_contact_forms ) )
|
126 |
+
$wpcf7_contact_forms = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
|
128 |
+
return $wpcf7_contact_forms;
|
129 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
|
131 |
+
function wpcf7_update_contact_forms( $contact_forms ) {
|
132 |
+
$wpcf7 = get_option( 'wpcf7' );
|
133 |
+
$wpcf7['contact_forms'] = $contact_forms;
|
|
|
|
|
|
|
|
|
|
|
134 |
|
135 |
+
update_option( 'wpcf7', $wpcf7 );
|
136 |
+
}
|
137 |
+
|
138 |
+
$wpcf7_posted_data = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
|
140 |
+
$wpcf7_processing_within = null;
|
141 |
+
$wpcf7_unit_count = null;
|
142 |
+
$wpcf7_widget_count = null;
|
143 |
+
|
144 |
+
function wpcf7_ajax_json_echo() {
|
145 |
+
$echo = '';
|
146 |
+
|
147 |
+
if ( isset( $_POST['_wpcf7'] ) ) {
|
148 |
$id = (int) $_POST['_wpcf7'];
|
149 |
+
$unit_tag = $_POST['_wpcf7_unit_tag'];
|
150 |
+
$contact_forms = wpcf7_contact_forms();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
+
if ( $cf = wpcf7_contact_form( $contact_forms[$id] ) ) {
|
153 |
+
$validation = $cf->validate();
|
154 |
|
155 |
+
$handled_uploads = wpcf7_handle_uploads( $cf );
|
156 |
+
if ( ! $handled_uploads['validation']['valid'] )
|
157 |
+
$validation['valid'] = false;
|
|
|
|
|
|
|
|
|
|
|
158 |
|
159 |
+
$validation['reason'] = array_merge( $validation['reason'], $handled_uploads['validation']['reason'] );
|
160 |
+
|
161 |
+
$captchas = wpcf7_refill_captcha( $cf );
|
162 |
+
|
163 |
+
if ( ! empty( $captchas ) ) {
|
164 |
+
$captchas_js = array();
|
165 |
+
foreach ( $captchas as $name => $cap ) {
|
166 |
+
$captchas_js[] = '"' . $name . '": "' . $cap . '"';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
}
|
168 |
+
$captcha = '{ ' . join( ', ', $captchas_js ) . ' }';
|
169 |
+
} else {
|
170 |
+
$captcha = 'null';
|
171 |
}
|
172 |
+
|
173 |
+
$quizzes = wpcf7_refill_quiz( $cf );
|
174 |
+
|
175 |
+
if ( ! empty( $quizzes ) ) {
|
176 |
+
$quizzes_js = array();
|
177 |
+
foreach ( $quizzes as $name => $q ) {
|
178 |
+
$quizzes_js[] = '"' . $name . '": [ "' . esc_js( $q[0] ) . '", "' . $q[1] . '" ]';
|
179 |
}
|
180 |
+
$quiz = '{ ' . join( ', ', $quizzes_js ) . ' }';
|
181 |
+
} else {
|
182 |
+
$quiz = 'null';
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
}
|
184 |
|
185 |
+
$on_sent_ok_settings = $cf->additional_setting( 'on_sent_ok', false );
|
186 |
+
if ( ! empty( $on_sent_ok_settings ) ) {
|
187 |
+
$on_sent_ok = '[ ' . implode( ', ', $on_sent_ok_settings ) . ' ]';
|
188 |
+
} else {
|
189 |
+
$on_sent_ok = 'null';
|
|
|
|
|
|
|
190 |
}
|
191 |
|
192 |
+
if ( ! $validation['valid'] ) { // Validation error occured
|
193 |
+
$invalids = array();
|
194 |
+
foreach ( $validation['reason'] as $name => $reason ) {
|
195 |
+
$invalids[] = '{ into: "span.wpcf7-form-control-wrap.' . $name . '", message: "' . esc_js( $reason ) . '" }';
|
|
|
196 |
}
|
197 |
+
$invalids = '[' . join( ', ', $invalids ) . ']';
|
198 |
+
$echo = '{ mailSent: 0, message: "' . esc_js( $cf->message( 'validation_error' ) ) . '", into: "#' . $unit_tag . '", invalids: ' . $invalids . ', captcha: ' . $captcha . ', quiz: ' . $quiz . ' }';
|
199 |
+
} elseif ( ! wpcf7_acceptance( $cf ) ) { // Not accepted terms
|
200 |
+
$echo = '{ mailSent: 0, message: "' . esc_js( $cf->message( 'accept_terms' ) ) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ', quiz: ' . $quiz . ' }';
|
201 |
+
} elseif ( wpcf7_akismet( $cf ) ) { // Spam!
|
202 |
+
$echo = '{ mailSent: 0, message: "' . esc_js( $cf->message( 'akismet_says_spam' ) ) . '", into: "#' . $unit_tag . '", spam: 1, captcha: ' . $captcha . ', quiz: ' . $quiz . ' }';
|
203 |
+
} elseif ( wpcf7_mail( $cf, $handled_uploads['files'] ) ) {
|
204 |
+
$echo = '{ mailSent: 1, message: "' . esc_js( $cf->message( 'mail_sent_ok' ) ) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ', quiz: ' . $quiz . ', onSentOk: ' . $on_sent_ok . ' }';
|
205 |
+
} else {
|
206 |
+
$echo = '{ mailSent: 0, message: "' . esc_js( $cf->message( 'mail_sent_ng' ) ) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ', quiz: ' . $quiz . ' }';
|
207 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
|
209 |
+
// remove upload files
|
210 |
+
foreach ( $handled_uploads['files'] as $name => $path ) {
|
211 |
+
@unlink( $path );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
}
|
213 |
}
|
|
|
214 |
}
|
215 |
|
216 |
+
if ( $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) {
|
217 |
+
@header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) );
|
218 |
+
echo $echo;
|
219 |
+
} else {
|
220 |
+
@header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
|
221 |
+
echo '<textarea>' . $echo . '</textarea>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
}
|
223 |
+
}
|
224 |
|
225 |
+
function wpcf7_process_nonajax_submitting() {
|
226 |
+
if ( ! isset($_POST['_wpcf7'] ) )
|
227 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
|
229 |
+
$id = (int) $_POST['_wpcf7'];
|
230 |
+
$contact_forms = wpcf7_contact_forms();
|
231 |
+
if ( $cf = wpcf7_contact_form( $contact_forms[$id] ) ) {
|
232 |
+
$validation = $cf->validate();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
|
234 |
+
$handled_uploads = wpcf7_handle_uploads( $cf );
|
235 |
+
|
236 |
+
if ( ! $handled_uploads['validation']['valid'] )
|
237 |
+
$validation['valid'] = false;
|
238 |
+
|
239 |
+
$validation['reason'] = array_merge( $validation['reason'], $handled_uploads['validation']['reason'] );
|
240 |
+
|
241 |
+
if ( ! $validation['valid'] ) {
|
242 |
+
$_POST['_wpcf7_validation_errors'] = array( 'id' => $id, 'messages' => $validation['reason'] );
|
243 |
+
} elseif ( ! wpcf7_acceptance( $cf ) ) { // Not accepted terms
|
244 |
+
$_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => false, 'message' => $cf->message( 'accept_terms' ) );
|
245 |
+
} elseif ( wpcf7_akismet( $cf ) ) { // Spam!
|
246 |
+
$_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => false, 'message' => $cf->message( 'akismet_says_spam' ), 'spam' => true );
|
247 |
+
} elseif ( wpcf7_mail( $cf, $handled_uploads['files'] ) ) {
|
248 |
+
$_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => true, 'message' => $cf->message( 'mail_sent_ok' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
} else {
|
250 |
+
$_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => false, 'message' => $cf->message( 'mail_sent_ng' ) );
|
251 |
}
|
252 |
+
|
253 |
+
// remove upload files
|
254 |
+
foreach ( $handled_uploads['files'] as $name => $path ) {
|
255 |
+
@unlink( $path );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
}
|
257 |
}
|
258 |
+
}
|
259 |
|
260 |
+
function wpcf7_the_content_filter( $content ) {
|
261 |
+
global $wpcf7_processing_within, $wpcf7_unit_count;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
262 |
|
263 |
+
$wpcf7_processing_within = 'p' . get_the_ID();
|
264 |
+
$wpcf7_unit_count = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
|
266 |
+
return $content;
|
267 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
|
269 |
+
add_filter( 'the_content', 'wpcf7_the_content_filter', 9 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
|
271 |
+
function wpcf7_widget_text_filter( $content ) {
|
272 |
+
global $wpcf7_widget_count, $wpcf7_processing_within, $wpcf7_unit_count;
|
|
|
|
|
|
|
|
|
|
|
273 |
|
274 |
+
$wpcf7_widget_count += 1;
|
275 |
+
$wpcf7_processing_within = 'w' . $wpcf7_widget_count;
|
276 |
+
$wpcf7_unit_count = 0;
|
|
|
|
|
|
|
|
|
277 |
|
278 |
+
$regex = '/\[\s*contact-form\s+(\d+(?:\s+.*)?)\]/';
|
279 |
+
return preg_replace_callback( $regex, 'wpcf7_widget_text_filter_callback', $content );
|
280 |
+
}
|
281 |
+
|
282 |
+
add_filter( 'widget_text', 'wpcf7_widget_text_filter', 9 );
|
283 |
+
|
284 |
+
function wpcf7_widget_text_filter_callback( $matches ) {
|
285 |
+
return do_shortcode( $matches[0] );
|
286 |
+
}
|
287 |
+
|
288 |
+
function wpcf7_contact_form_tag_func( $atts ) {
|
289 |
+
global $wpcf7_unit_count, $wpcf7_processing_within;
|
290 |
+
|
291 |
+
if ( is_string( $atts ) )
|
292 |
+
$atts = explode( ' ', $atts, 2 );
|
293 |
+
|
294 |
+
$atts = (array) $atts;
|
295 |
+
|
296 |
+
$id = (int) array_shift( $atts );
|
297 |
+
|
298 |
+
$contact_forms = wpcf7_contact_forms();
|
299 |
+
|
300 |
+
if ( ! ( $cf = wpcf7_contact_form( $contact_forms[$id] ) ) )
|
301 |
+
return '[contact-form 404 "Not Found"]';
|
302 |
+
|
303 |
+
$cf->id = $id;
|
304 |
+
|
305 |
+
$wpcf7_unit_count += 1;
|
306 |
+
|
307 |
+
$unit_tag = 'wpcf7-f' . $id . '-' . $wpcf7_processing_within . '-o' . $wpcf7_unit_count;
|
308 |
+
$cf->unit_tag = $unit_tag;
|
309 |
+
|
310 |
+
$form = $cf->form_html();
|
311 |
+
|
312 |
+
return $form;
|
313 |
+
}
|
314 |
+
|
315 |
+
add_shortcode( 'contact-form', 'wpcf7_contact_form_tag_func' );
|
316 |
+
|
317 |
+
function wpcf7_wp_head() {
|
318 |
+
$stylesheet_url = wpcf7_plugin_url( 'stylesheet.css' );
|
319 |
+
echo '<link rel="stylesheet" href="' . $stylesheet_url . '" type="text/css" />';
|
320 |
+
|
321 |
+
if ( 'rtl' == get_bloginfo( 'text_direction' ) ) {
|
322 |
+
$stylesheet_rtl_url = wpcf7_plugin_url( 'stylesheet-rtl.css' );
|
323 |
+
echo '<link rel="stylesheet" href="' . $stylesheet_rtl_url . '" type="text/css" />';
|
324 |
}
|
325 |
+
}
|
326 |
|
327 |
+
add_action( 'wp_head', 'wpcf7_wp_head' );
|
328 |
+
|
329 |
+
function wpcf7_enqueue_scripts() {
|
330 |
+
wp_enqueue_script( 'contact-form-7', wpcf7_plugin_url( 'contact-form-7.js' ),
|
331 |
+
array('jquery', 'jquery-form'), WPCF7_VERSION, true );
|
332 |
+
}
|
333 |
+
|
334 |
+
if ( ! is_admin() && WPCF7_LOAD_JS )
|
335 |
+
add_action( 'init', 'wpcf7_enqueue_scripts' );
|
336 |
+
|
337 |
+
function wpcf7_init_switch() {
|
338 |
+
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && 1 == (int) $_POST['_wpcf7_is_ajax_call'] ) {
|
339 |
+
wpcf7_ajax_json_echo();
|
340 |
+
exit();
|
341 |
+
} elseif ( ! is_admin() ) {
|
342 |
+
wpcf7_process_nonajax_submitting();
|
343 |
+
wpcf7_cleanup_captcha_files();
|
344 |
+
wpcf7_cleanup_upload_files();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
}
|
346 |
+
}
|
347 |
+
|
348 |
+
add_action( 'init', 'wpcf7_init_switch', 11 );
|
349 |
+
|
350 |
+
function wpcf7_load_plugin_textdomain() { // l10n
|
351 |
+
global $wp_version;
|
352 |
|
353 |
+
if ( version_compare( $wp_version, '2.6', '<' ) ) // Using old WordPress
|
354 |
+
load_plugin_textdomain( 'wpcf7', 'wp-content/plugins/contact-form-7/languages' );
|
355 |
+
else
|
356 |
+
load_plugin_textdomain( 'wpcf7', 'wp-content/plugins/contact-form-7/languages', 'contact-form-7/languages' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
}
|
358 |
|
359 |
+
add_action( 'init', 'wpcf7_load_plugin_textdomain' );
|
360 |
+
|
361 |
+
function wpcf7_set_initial() {
|
362 |
+
wpcf7_load_plugin_textdomain();
|
363 |
+
|
364 |
+
$wpcf7 = get_option( 'wpcf7' );
|
365 |
+
if ( ! is_array( $wpcf7 ) )
|
366 |
+
$wpcf7 = array();
|
367 |
+
|
368 |
+
$contact_forms = $wpcf7['contact_forms'];
|
369 |
+
if ( ! is_array( $contact_forms ) )
|
370 |
+
$contact_forms = array();
|
371 |
+
|
372 |
+
if ( 0 == count( $contact_forms ) )
|
373 |
+
$contact_forms[1] = wpcf7_default_pack( __( 'Contact form', 'wpcf7' ) . ' 1' );
|
374 |
+
|
375 |
+
$wpcf7['contact_forms'] = $contact_forms;
|
376 |
+
update_option( 'wpcf7', $wpcf7 );
|
377 |
+
}
|
378 |
+
|
379 |
+
add_action( 'activate_' . WPCF7_PLUGIN_BASENAME, 'wpcf7_set_initial' );
|
380 |
+
|
381 |
+
function wpcf7_contact_form( $data ) {
|
382 |
+
if ( ! $data )
|
383 |
+
return false;
|
384 |
+
|
385 |
+
$data = stripslashes_deep( $data );
|
386 |
+
|
387 |
+
$contact_form = new WPCF7_ContactForm();
|
388 |
+
|
389 |
+
$contact_form->title = $data['title'];
|
390 |
+
$contact_form->form = $data['form'];
|
391 |
+
$contact_form->mail = $data['mail'];
|
392 |
+
$contact_form->mail_2 = $data['mail_2'];
|
393 |
+
$contact_form->messages = $data['messages'];
|
394 |
+
$contact_form->additional_settings = $data['additional_settings'];
|
395 |
+
$contact_form->options = $data['options'];
|
396 |
+
|
397 |
+
$contact_form->upgrade();
|
398 |
+
|
399 |
+
return $contact_form;
|
400 |
+
}
|
401 |
|
402 |
?>
|