Contact Form 7 - Version 1.9

Version Description

Download this release

Release Info

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

Code changes from version 1.8.1.1 to 1.9

README.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: takayukister
3
  Donate link: http://takayukister.chipin.com/contact-form-7-20
4
  Tags: contact form, email, ajax, captcha, akismet
5
- Requires at least: 2.2
6
- Tested up to: 2.7-beta2
7
- Stable tag: 1.8.1.1
8
 
9
  Just another contact form plugin. Simple but flexible.
10
 
@@ -17,6 +17,7 @@ Contact Form 7 can manage multiple contact forms, plus you can customize the for
17
  Since being published in August 2007, Contact Form 7 has been translated into a number of languages. Our thanks and appreciation must go to the following for their contributions:
18
 
19
  * Albanian (sq) - [Olgi Zenullari](http://www.olgizenullari.com/)
 
20
  * Brazilian Portuguese (pt_BR) - [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/) (updated by Henrique Vianna)
21
  * Bulgarian (bg_BG) - [Iliyan Darganov](http://www.darganov.com/)
22
  * Catalan (ca_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
@@ -56,7 +57,7 @@ If you have created your own language pack, or have an update of an existing one
56
  1. Upload the entire `contact-form-7` folder to the `/wp-content/plugins/` directory.
57
  1. Activate the plugin through the 'Plugins' menu in WordPress.
58
 
59
- The control panel of Contact Form 7 is in 'Manage > Contact Form 7'. Please note that it has moved from the 'Settings' menu since Contact Form 7 1.8.
60
 
61
  For basic usage, you can also have a look at the [plugin homepage](http://ideasilo.wordpress.com/2007/04/30/contact-form-7/) and [FAQ](http://ideasilo.wordpress.com/2008/03/29/contact-form-7-faq/).
62
 
@@ -70,4 +71,3 @@ please submit them [to the support forum](http://wordpress.org/tags/contact-form
70
  == Screenshots ==
71
 
72
  1. screenshot-1.png
73
- 2. screenshot-2.png
2
  Contributors: takayukister
3
  Donate link: http://takayukister.chipin.com/contact-form-7-20
4
  Tags: contact form, email, ajax, captcha, akismet
5
+ Requires at least: 2.5
6
+ Tested up to: 2.7
7
+ Stable tag: 1.9
8
 
9
  Just another contact form plugin. Simple but flexible.
10
 
17
  Since being published in August 2007, Contact Form 7 has been translated into a number of languages. Our thanks and appreciation must go to the following for their contributions:
18
 
19
  * Albanian (sq) - [Olgi Zenullari](http://www.olgizenullari.com/)
20
+ * Arabic (ar) - [Tarek Chaaban](http://www.chaaban.info/) and Muhammed Lardi
21
  * Brazilian Portuguese (pt_BR) - [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/) (updated by Henrique Vianna)
22
  * Bulgarian (bg_BG) - [Iliyan Darganov](http://www.darganov.com/)
23
  * Catalan (ca_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
57
  1. Upload the entire `contact-form-7` folder to the `/wp-content/plugins/` directory.
58
  1. Activate the plugin through the 'Plugins' menu in WordPress.
59
 
60
+ The control panel of Contact Form 7 is in 'Manage > Contact Form 7' (on WordPress 2.7 and greater, 'Tools > Contact Form 7'). Please note that it has moved from the 'Settings' menu since Contact Form 7 1.8.
61
 
62
  For basic usage, you can also have a look at the [plugin homepage](http://ideasilo.wordpress.com/2007/04/30/contact-form-7/) and [FAQ](http://ideasilo.wordpress.com/2008/03/29/contact-form-7-faq/).
63
 
71
  == Screenshots ==
72
 
73
  1. screenshot-1.png
 
admin-stylesheet.css CHANGED
@@ -4,13 +4,13 @@ ul.subsubsub li.addnew {
4
  ul.subsubsub li.addnew a {
5
  color: #e6255b;
6
  }
7
-
8
- div.relative {
9
- position: relative;
10
  }
11
- div.cfdiv {
12
- margin: 0;
13
- padding: 20px;
14
  }
15
  div.delete-link {
16
  position: absolute;
@@ -20,9 +20,13 @@ div.delete-link {
20
  padding: 0;
21
  }
22
  div.delete-link input {
 
 
23
  border: none;
 
24
  background-color: #fff;
25
- color: #e6255b;
 
26
  cursor: pointer;
27
  }
28
  input#wpcf7-title {
@@ -33,22 +37,17 @@ input#wpcf7-title {
33
  }
34
  p.tagcode {
35
  color: #333;
 
36
  }
37
  input#contact-form-anchor-text {
38
- color: #333;
39
- background: #fff3f3;
40
- border: 1px solid #fff;
41
  width: 96%;
42
- }
43
- div.fieldset {
44
- margin: 2em 0;
45
- }
46
- div.fieldset div.legend {
47
- font-weight: bolder;
48
- margin-bottom: 0.5em;
49
- }
50
- div.fieldset div.mail-field, div.fieldset div.message-field {
51
- margin: 0.3em 0;
52
  }
53
  span#message-fields-toggle-switch {
54
  margin-left: 1em;
@@ -57,11 +56,18 @@ span#message-fields-toggle-switch {
57
  color: #2583ad;
58
  cursor: pointer;
59
  }
 
 
 
 
 
 
 
60
  input.wide {
61
- width: 96%;
62
  }
63
  textarea {
64
- width: 96%;
65
  }
66
  label.disabled {
67
  color: #777;
@@ -72,13 +78,17 @@ div.tag-generator {
72
  padding: 5px 0 5px 1px;
73
  }
74
  div.tg-pane {
75
- border: 1px solid #999;
76
- background: #fff;
77
- margin: 1ex 28px 0 0;
78
  padding: 10px;
 
 
 
 
79
  }
80
  div.tg-pane table {
81
- width: 70%;
82
  margin: 0 0 0.7em 0;
83
  }
84
  div.tg-pane table caption {
@@ -87,14 +97,21 @@ div.tg-pane table caption {
87
  font-weight: bolder;
88
  color: #777;
89
  }
 
 
 
90
  div.tg-pane table td {
91
  vertical-align: top;
92
- width: 40%;
93
  }
94
  div.tg-pane input.tag {
95
- border: 1px solid #fff;
96
- color: #333;
97
- background-color: #fff3f3;
 
 
 
 
98
  }
99
  div.tg-dropdown {
100
  position: absolute;
@@ -105,7 +122,7 @@ div.tg-dropdown {
105
  }
106
  span.tg-closebutton {
107
  color: #777;
108
- font: bold 16px monospace;
109
  padding: 1px 4px;
110
  cursor: pointer;
111
  }
4
  ul.subsubsub li.addnew a {
5
  color: #e6255b;
6
  }
7
+ ul.subsubsub li.addnew a:hover,
8
+ ul.subsubsub li.addnew a:active {
9
+ color: #999;
10
  }
11
+ div.save-contact-form {
12
+ padding: 1.4em 0 0 0;
13
+ text-align: right;
14
  }
15
  div.delete-link {
16
  position: absolute;
20
  padding: 0;
21
  }
22
  div.delete-link input {
23
+ padding: 0;
24
+ margin: 0;
25
  border: none;
26
+ border-bottom: 1px solid #ff0000;
27
  background-color: #fff;
28
+ color: #ff0000;
29
+ font-size: smaller;
30
  cursor: pointer;
31
  }
32
  input#wpcf7-title {
37
  }
38
  p.tagcode {
39
  color: #333;
40
+ margin: 2ex 0 1ex 1em;
41
  }
42
  input#contact-form-anchor-text {
43
+ color: #fff;
44
+ background: #8a796d;
45
+ border: none;
46
  width: 96%;
47
+ -moz-border-radius: 6px;
48
+ -khtml-border-radius: 6px;
49
+ -webkit-border-radius: 6px;
50
+ border-radius: 6px;
 
 
 
 
 
 
51
  }
52
  span#message-fields-toggle-switch {
53
  margin-left: 1em;
56
  color: #2583ad;
57
  cursor: pointer;
58
  }
59
+ div.pseudo-hr {
60
+ border-bottom: 1px solid #fff;
61
+ margin: 0.7em 0;
62
+ }
63
+ input, textarea {
64
+ border: 1px solid #dfdfdf;
65
+ }
66
  input.wide {
67
+ width: 100%;
68
  }
69
  textarea {
70
+ width: 100%;
71
  }
72
  label.disabled {
73
  color: #777;
78
  padding: 5px 0 5px 1px;
79
  }
80
  div.tg-pane {
81
+ border: 1px dashed #999;
82
+ background: #f1f1f1;
83
+ margin: 1ex 0 0 0;
84
  padding: 10px;
85
+ -moz-border-radius: 6px;
86
+ -khtml-border-radius: 6px;
87
+ -webkit-border-radius: 6px;
88
+ border-radius: 6px;
89
  }
90
  div.tg-pane table {
91
+ width: 100%;
92
  margin: 0 0 0.7em 0;
93
  }
94
  div.tg-pane table caption {
97
  font-weight: bolder;
98
  color: #777;
99
  }
100
+ div.tg-pane table code {
101
+ background-color: inherit;
102
+ }
103
  div.tg-pane table td {
104
  vertical-align: top;
105
+ width: 50%;
106
  }
107
  div.tg-pane input.tag {
108
+ border: none;
109
+ color: #fff;
110
+ background-color: #8a796d;
111
+ -moz-border-radius: 6px;
112
+ -khtml-border-radius: 6px;
113
+ -webkit-border-radius: 6px;
114
+ border-radius: 6px;
115
  }
116
  div.tg-dropdown {
117
  position: absolute;
122
  }
123
  span.tg-closebutton {
124
  color: #777;
125
+ font: bold 18px monospace;
126
  padding: 1px 4px;
127
  cursor: pointer;
128
  }
contact-form-7.js CHANGED
@@ -34,8 +34,9 @@ function wpcf7ToggleSubmit(form) {
34
  function wpcf7BeforeSubmit(formData, jqForm, options) {
35
  wpcf7ClearResponseOutput();
36
  jQuery('img.ajax-loader', jqForm[0]).css({ visibility: 'visible' });
37
-
38
- formData.push({name: '_wpcf7_is_ajax_call', value: 1});
 
39
 
40
  return true;
41
  }
34
  function wpcf7BeforeSubmit(formData, jqForm, options) {
35
  wpcf7ClearResponseOutput();
36
  jQuery('img.ajax-loader', jqForm[0]).css({ visibility: 'visible' });
37
+
38
+ formData.push({name: '_wpcf7_is_ajax_call', value: 1});
39
+ jQuery(jqForm[0]).append('<input type="hidden" name="_wpcf7_is_ajax_call" value="1" />');
40
 
41
  return true;
42
  }
includes/admin-panel.php CHANGED
@@ -1,9 +1,13 @@
1
- <?php if (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">
5
- <h2><?php _e('Contact Form 7', 'wpcf7'); ?></h2>
6
-
 
 
 
 
7
  <ul class="subsubsub">
8
  <?php foreach ($contact_forms as $k => $v) : ?>
9
  <li><a href="<?php echo $base_url . '?page=' . $page . '&contactform=' . $k ?>"<?php if ($k == $current) echo ' class="current"'; ?>>
@@ -16,30 +20,79 @@
16
  <?php _e('Add new', 'wpcf7'); ?></a></li>
17
  <?php endif; ?>
18
  </ul>
19
- </div>
20
- <?php if (version_compare($wp_version, '2.7-alpha', '>=')) : ?><br class="clear" /><?php endif; ?>
 
21
  <?php if ($cf) : ?>
22
  <?php $disabled = ($this->has_edit_cap()) ? '' : ' disabled="disabled"'; ?>
23
- <div class="wrap relative">
24
- <form method="post" action="<?php echo $base_url . '?page=' . $page . '&contactform=' . $current; ?>" id="wpcf7-admin-form-element">
25
- <?php if ($this->has_edit_cap()) wp_nonce_field('wpcf7-save_' . $current); ?>
26
- <input type="hidden" id="wpcf7-id" name="wpcf7-id" value="<?php echo $current; ?>" />
27
- <input type="text" id="wpcf7-title" name="wpcf7-title" size="40" value="<?php echo htmlspecialchars($cf['title']); ?>"<?php echo $disabled; ?> />
28
 
29
- <div class="cfdiv">
30
- <?php if (! $unsaved) : ?>
31
- <p class="tagcode">
32
- <?php _e('Copy and paste this code into your post content.', 'wpcf7'); ?><br />
33
- <input type="text" id="contact-form-anchor-text" onfocus="this.select();" readonly="readonly" />
34
- </p>
35
- <?php endif; ?>
36
 
37
- <?php if ($this->has_edit_cap()) : ?>
38
- <div class="fieldset" id="form-content-fieldset"><div class="legend"><?php _e('Form', 'wpcf7'); ?></div>
39
- <textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="16"><?php echo htmlspecialchars($cf['form']); ?></textarea>
40
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
- <div class="fieldset"><div class="legend"><?php _e('Mail', 'wpcf7'); ?></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  <div class="mail-field">
44
  <label for="wpcf7-mail-recipient"><?php _e('To:', 'wpcf7'); ?></label><br />
45
  <input type="text" id="wpcf7-mail-recipient" name="wpcf7-mail-recipient" class="wide" size="70" value="<?php echo htmlspecialchars($cf['mail']['recipient']); ?>" />
@@ -52,17 +105,46 @@
52
  <label for="wpcf7-mail-subject"><?php _e('Subject:', 'wpcf7'); ?></label><br />
53
  <input type="text" id="wpcf7-mail-subject" name="wpcf7-mail-subject" class="wide" size="70" value="<?php echo htmlspecialchars($cf['mail']['subject']); ?>" />
54
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  <div class="mail-field">
56
  <label for="wpcf7-mail-body"><?php _e('Message body:', 'wpcf7'); ?></label><br />
57
  <textarea id="wpcf7-mail-body" name="wpcf7-mail-body" cols="100" rows="16"><?php echo htmlspecialchars($cf['mail']['body']); ?></textarea>
58
  </div>
59
- </div>
60
-
61
- <div class="fieldset"><div class="legend"><?php _e('Mail (2)', 'wpcf7'); ?></div>
 
 
 
 
 
 
 
 
 
 
 
62
  <input type="checkbox" id="wpcf7-mail-2-active" name="wpcf7-mail-2-active" value="1"<?php echo ($cf['mail_2']['active']) ? ' checked="checked"' : ''; ?> />
63
  <label for="wpcf7-mail-2-active"><?php _e('Use mail (2)', 'wpcf7'); ?></label>
64
-
65
- <div id="mail-2-fields">
 
 
66
  <div class="mail-field">
67
  <label for="wpcf7-mail-2-recipient"><?php _e('To:', 'wpcf7'); ?></label><br />
68
  <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']); ?>" />
@@ -75,19 +157,40 @@
75
  <label for="wpcf7-mail-2-subject"><?php _e('Subject:', 'wpcf7'); ?></label><br />
76
  <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']); ?>" />
77
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  <div class="mail-field">
79
  <label for="wpcf7-mail-2-body"><?php _e('Message body:', 'wpcf7'); ?></label><br />
80
  <textarea id="wpcf7-mail-2-body" name="wpcf7-mail-2-body" cols="100" rows="16"><?php echo htmlspecialchars($cf['mail_2']['body']); ?></textarea>
81
  </div>
82
- </div>
83
- </div>
84
-
85
- <div class="fieldset">
86
- <div class="legend">
87
- <?php _e('Messages', 'wpcf7'); ?>
88
- <span id="message-fields-toggle-switch"></span>
89
- </div>
90
-
 
 
 
 
 
91
  <div id="message-fields">
92
  <div class="message-field">
93
  <label for="wpcf7-message-mail-sent-ok"><em># <?php _e("Sender's message was sent successfully", 'wpcf7'); ?></em></label><br />
@@ -121,25 +224,42 @@
121
  <label for="wpcf7-message-captcha-not-match"><em># <?php _e("The code that sender entered does not match the CAPTCHA", 'wpcf7'); ?></em></label><br />
122
  <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']); ?>" />
123
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
124
  </div>
125
- </div>
126
 
127
- <input type="hidden" id="wpcf7-options-recipient" name="wpcf7-options-recipient" value="<?php echo htmlspecialchars($cf['options']['recipient']); ?>" />
 
 
 
128
 
129
- <div>
130
- <input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php _e('Save', 'wpcf7'); ?>" />
131
- </div>
132
- <?php endif; ?>
133
- </div>
134
-
135
- <?php if ($this->has_edit_cap() && ! $unsaved) : ?>
136
- <div class="delete-link"><?php $delete_nonce = wp_create_nonce('wpcf7-delete_' . $current); ?>
137
- <input type="submit" name="wpcf7-delete" value="<?php _e('Delete this contact form', 'wpcf7'); ?>"
138
- <?php echo "onclick=\"if (confirm('" . js_escape(__("You are about to delete this contact form.\n 'Cancel' to stop, 'OK' to delete.", 'wpcf7')) . "')) {this.form._wpnonce.value = '$delete_nonce'; return true;} return false;\""; ?> />
139
- </div>
140
- <?php endif; ?>
141
- </form>
142
- </div>
143
- <?php endif; ?>
144
 
145
- <?php if (version_compare($wp_version, '2.7-alpha', '>=')) : ?><br class="clear" /><?php endif; ?>
 
 
 
1
+ <?php if (! version_compare($wp_version, '2.7-beta3', '>=') && 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
+ <h2><?php _e('Contact Form 7', 'wpcf7'); ?></h2>
6
+
7
+ <?php if (version_compare($wp_version, '2.7-beta3', '>=') && isset($updated_message)) : ?>
8
+ <div id="message" class="updated fade"><p><strong><?php echo $updated_message; ?></strong></p></div>
9
+ <?php endif; ?>
10
+
11
  <ul class="subsubsub">
12
  <?php foreach ($contact_forms as $k => $v) : ?>
13
  <li><a href="<?php echo $base_url . '?page=' . $page . '&contactform=' . $k ?>"<?php if ($k == $current) echo ' class="current"'; ?>>
20
  <?php _e('Add new', 'wpcf7'); ?></a></li>
21
  <?php endif; ?>
22
  </ul>
23
+
24
+ <br class="clear" />
25
+
26
  <?php if ($cf) : ?>
27
  <?php $disabled = ($this->has_edit_cap()) ? '' : ' disabled="disabled"'; ?>
 
 
 
 
 
28
 
29
+ <form method="post" action="<?php echo $base_url . '?page=' . $page . '&contactform=' . $current; ?>" id="wpcf7-admin-form-element">
30
+ <?php if ($this->has_edit_cap()) wp_nonce_field('wpcf7-save_' . $current); ?>
31
+ <input type="hidden" id="wpcf7-id" name="wpcf7-id" value="<?php echo $current; ?>" />
 
 
 
 
32
 
33
+ <table class="widefat">
34
+ <tbody>
35
+ <tr>
36
+ <td scope="col">
37
+ <div style="position: relative;">
38
+ <input type="text" id="wpcf7-title" name="wpcf7-title" size="40" value="<?php echo htmlspecialchars($cf['title']); ?>"<?php echo $disabled; ?> />
39
+
40
+ <?php if (! $unsaved) : ?>
41
+ <p class="tagcode">
42
+ <?php _e('Copy this code and paste it into your post, page or text widget content.', 'wpcf7'); ?><br />
43
+ <input type="text" id="contact-form-anchor-text" onfocus="this.select();" readonly="readonly" />
44
+ </p>
45
+ <?php endif; ?>
46
+
47
+ <?php if ($this->has_edit_cap()) : ?>
48
+ <div class="save-contact-form">
49
+ <input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php _e('Save', 'wpcf7'); ?>" />
50
+ </div>
51
+ <?php endif; ?>
52
 
53
+ <?php if ($this->has_edit_cap() && ! $unsaved) : ?>
54
+ <div class="delete-link"><?php $delete_nonce = wp_create_nonce('wpcf7-delete_' . $current); ?>
55
+ <input type="submit" name="wpcf7-delete" value="<?php _e('Delete this contact form', 'wpcf7'); ?>"
56
+ <?php echo "onclick=\"if (confirm('" . js_escape(__("You are about to delete this contact form.\n 'Cancel' to stop, 'OK' to delete.", 'wpcf7')) . "')) {this.form._wpnonce.value = '$delete_nonce'; return true;} return false;\""; ?> />
57
+ </div>
58
+ <?php endif; ?>
59
+ </div>
60
+ </td>
61
+ </tr>
62
+ </tbody>
63
+ </table>
64
+
65
+ <?php if ($this->has_edit_cap()) : ?>
66
+
67
+ <table class="widefat" style="margin-top: 1em;">
68
+ <thead>
69
+ <tr>
70
+ <th scope="col" colspan="2"><?php _e('Form', 'wpcf7'); ?></th>
71
+ </tr>
72
+ </thead>
73
+ <tbody>
74
+ <tr>
75
+ <td scope="col" style="width: 50%;">
76
+ <div>
77
+ <textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="20"><?php echo htmlspecialchars($cf['form']); ?></textarea>
78
+ </div>
79
+ </td>
80
+ <td scope="col" style="width: 50%;">
81
+ <div id="tag-generator-div"></div>
82
+ </td>
83
+ </tr>
84
+ </tbody>
85
+ </table>
86
+
87
+ <table class="widefat" style="margin-top: 1em;">
88
+ <thead>
89
+ <tr>
90
+ <th scope="col" colspan="2"><?php _e('Mail', 'wpcf7'); ?></th>
91
+ </tr>
92
+ </thead>
93
+ <tbody>
94
+ <tr>
95
+ <td scope="col" style="width: 50%;">
96
  <div class="mail-field">
97
  <label for="wpcf7-mail-recipient"><?php _e('To:', 'wpcf7'); ?></label><br />
98
  <input type="text" id="wpcf7-mail-recipient" name="wpcf7-mail-recipient" class="wide" size="70" value="<?php echo htmlspecialchars($cf['mail']['recipient']); ?>" />
105
  <label for="wpcf7-mail-subject"><?php _e('Subject:', 'wpcf7'); ?></label><br />
106
  <input type="text" id="wpcf7-mail-subject" name="wpcf7-mail-subject" class="wide" size="70" value="<?php echo htmlspecialchars($cf['mail']['subject']); ?>" />
107
  </div>
108
+ <div class="pseudo-hr"></div>
109
+ <div class="mail-field">
110
+ <label for="wpcf7-mail-attachments"><?php _e('File attachments:', 'wpcf7'); ?></label>
111
+ <?php if (version_compare($wp_version, '2.7-alpha', '<')) : ?>
112
+ <span style="color: #ff3300; margin-left: 0.5em;"><?php _e('(You need WordPress 2.7 or greater to use this feature)', 'wpcf7'); ?></span>
113
+ <?php endif; ?>
114
+ <br />
115
+ <input type="text" id="wpcf7-mail-attachments" name="wpcf7-mail-attachments" class="wide" size="70" value="<?php echo htmlspecialchars($cf['mail']['attachments']); ?>" />
116
+ </div>
117
+ <div class="pseudo-hr"></div>
118
+ <div class="mail-field">
119
+ <input type="checkbox" id="wpcf7-mail-use-html" name="wpcf7-mail-use-html" value="1"<?php echo ($cf['mail']['use_html']) ? ' checked="checked"' : ''; ?> />
120
+ <label for="wpcf7-mail-use-html"><?php _e('Use HTML content type', 'wpcf7'); ?></label>
121
+ </div>
122
+ </td>
123
+ <td scope="col" style="width: 50%;">
124
  <div class="mail-field">
125
  <label for="wpcf7-mail-body"><?php _e('Message body:', 'wpcf7'); ?></label><br />
126
  <textarea id="wpcf7-mail-body" name="wpcf7-mail-body" cols="100" rows="16"><?php echo htmlspecialchars($cf['mail']['body']); ?></textarea>
127
  </div>
128
+ </td>
129
+ </tr>
130
+ </tbody>
131
+ </table>
132
+
133
+ <table class="widefat" style="margin-top: 1em;">
134
+ <thead>
135
+ <tr>
136
+ <th scope="col" colspan="2"><?php _e('Mail (2)', 'wpcf7'); ?></th>
137
+ </tr>
138
+ </thead>
139
+ <tbody>
140
+ <tr>
141
+ <td scope="col" colspan="2">
142
  <input type="checkbox" id="wpcf7-mail-2-active" name="wpcf7-mail-2-active" value="1"<?php echo ($cf['mail_2']['active']) ? ' checked="checked"' : ''; ?> />
143
  <label for="wpcf7-mail-2-active"><?php _e('Use mail (2)', 'wpcf7'); ?></label>
144
+ </td>
145
+ </tr>
146
+ <tr id="mail-2-fields">
147
+ <td scope="col" style="width: 50%;">
148
  <div class="mail-field">
149
  <label for="wpcf7-mail-2-recipient"><?php _e('To:', 'wpcf7'); ?></label><br />
150
  <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']); ?>" />
157
  <label for="wpcf7-mail-2-subject"><?php _e('Subject:', 'wpcf7'); ?></label><br />
158
  <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']); ?>" />
159
  </div>
160
+ <div class="pseudo-hr"></div>
161
+ <div class="mail-field">
162
+ <label for="wpcf7-mail-2-attachments"><?php _e('File attachments:', 'wpcf7'); ?></label>
163
+ <?php if (version_compare($wp_version, '2.7-alpha', '<')) : ?>
164
+ <span style="color: #ff3300; margin-left: 0.5em;"><?php _e('(You need WordPress 2.7 or greater to use this feature)', 'wpcf7'); ?></span>
165
+ <?php endif; ?>
166
+ <br />
167
+ <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']); ?>" />
168
+ </div>
169
+ <div class="pseudo-hr"></div>
170
+ <div class="mail-field">
171
+ <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"' : ''; ?> />
172
+ <label for="wpcf7-mail-2-use-html"><?php _e('Use HTML content type', 'wpcf7'); ?></label>
173
+ </div>
174
+ </td>
175
+ <td scope="col" style="width: 50%;">
176
  <div class="mail-field">
177
  <label for="wpcf7-mail-2-body"><?php _e('Message body:', 'wpcf7'); ?></label><br />
178
  <textarea id="wpcf7-mail-2-body" name="wpcf7-mail-2-body" cols="100" rows="16"><?php echo htmlspecialchars($cf['mail_2']['body']); ?></textarea>
179
  </div>
180
+ </td>
181
+ </tr>
182
+ </tbody>
183
+ </table>
184
+
185
+ <table class="widefat" style="margin-top: 1em;">
186
+ <thead>
187
+ <tr>
188
+ <th scope="col"><?php _e('Messages', 'wpcf7'); ?> <span id="message-fields-toggle-switch"></span></th>
189
+ </tr>
190
+ </thead>
191
+ <tbody>
192
+ <tr>
193
+ <td scope="col">
194
  <div id="message-fields">
195
  <div class="message-field">
196
  <label for="wpcf7-message-mail-sent-ok"><em># <?php _e("Sender's message was sent successfully", 'wpcf7'); ?></em></label><br />
224
  <label for="wpcf7-message-captcha-not-match"><em># <?php _e("The code that sender entered does not match the CAPTCHA", 'wpcf7'); ?></em></label><br />
225
  <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']); ?>" />
226
  </div>
227
+ <div class="message-field">
228
+ <label for="wpcf7-message-upload-failed"><em># <?php _e("Uploading a file fails for any reason", 'wpcf7'); ?></em></label><br />
229
+ <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']); ?>" />
230
+ </div>
231
+ <div class="message-field">
232
+ <label for="wpcf7-message-upload-file-type-invalid"><em># <?php _e("Uploaded file is not allowed file type", 'wpcf7'); ?></em></label><br />
233
+ <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']); ?>" />
234
+ </div>
235
+ <div class="message-field">
236
+ <label for="wpcf7-message-upload-file-too-large"><em># <?php _e("Uploaded file is too large", 'wpcf7'); ?></em></label><br />
237
+ <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']); ?>" />
238
+ </div>
239
  </div>
 
240
 
241
+ </td>
242
+ </tr>
243
+ </tbody>
244
+ </table>
245
 
246
+ <input type="hidden" id="wpcf7-options-recipient" name="wpcf7-options-recipient" value="<?php echo htmlspecialchars($cf['options']['recipient']); ?>" />
247
+
248
+ <table class="widefat" style="margin-top: 1em;">
249
+ <tbody>
250
+ <tr>
251
+ <td scope="col">
252
+ <div class="save-contact-form">
253
+ <input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php _e('Save', 'wpcf7'); ?>" />
254
+ </div>
255
+ </td>
256
+ </tr>
257
+ </tbody>
258
+ </table>
259
+
260
+ <?php endif; ?>
261
 
262
+ </form>
263
+
264
+ <?php endif; ?>
265
+ </div>
languages/wpcf7-ar.mo ADDED
Binary file
languages/wpcf7-ar.po ADDED
@@ -0,0 +1,349 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-11-08 23:29+0900\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
+ "Language-Team: www.adsl2u.com <webmaster@adsl2u.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: Arabic\n"
13
+ "X-Poedit-Country: SAUDI ARABIA\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+
16
+ #: contact-form-7/wp-contact-form-7.php:323
17
+ msgid "Contact form"
18
+ msgstr "نموذج للاتصال"
19
+
20
+ #: contact-form-7/wp-contact-form-7.php:456
21
+ #: contact-form-7/includes/admin-panel.php:5
22
+ msgid "Contact Form 7"
23
+ msgstr "نموذج للاتصال 7"
24
+
25
+ #: contact-form-7/wp-contact-form-7.php:494
26
+ msgid "optional"
27
+ msgstr "اختياري"
28
+
29
+ #: contact-form-7/wp-contact-form-7.php:495
30
+ msgid "Generate Tag"
31
+ msgstr "خيارات النموذج"
32
+
33
+ #: contact-form-7/wp-contact-form-7.php:496
34
+ msgid "Text field"
35
+ msgstr "خانة نص"
36
+
37
+ #: contact-form-7/wp-contact-form-7.php:497
38
+ msgid "Email field"
39
+ msgstr "خانة البريد الألكتروني"
40
+
41
+ #: contact-form-7/wp-contact-form-7.php:498
42
+ msgid "Text area"
43
+ msgstr "منطقة الكتابه"
44
+
45
+ #: contact-form-7/wp-contact-form-7.php:499
46
+ msgid "Drop-down menu"
47
+ msgstr "قائمة منسدلة"
48
+
49
+ #: contact-form-7/wp-contact-form-7.php:500
50
+ msgid "Checkboxes"
51
+ msgstr "صناديق الاختيار"
52
+
53
+ #: contact-form-7/wp-contact-form-7.php:501
54
+ msgid "Radio buttons"
55
+ msgstr "أزرار الاختيار(Radio)"
56
+
57
+ #: contact-form-7/wp-contact-form-7.php:502
58
+ msgid "Acceptance"
59
+ msgstr "القبول"
60
+
61
+ #: contact-form-7/wp-contact-form-7.php:503
62
+ msgid "Make this checkbox checked by default?"
63
+ msgstr "جعل صندوق الخيارات صناديق محددة تلقائياً؟"
64
+
65
+ #: contact-form-7/wp-contact-form-7.php:504
66
+ msgid "Make this checkbox work inversely?"
67
+ msgstr "جعل صندوق الخيارات يعمل عكسياً؟"
68
+
69
+ #: contact-form-7/wp-contact-form-7.php:505
70
+ msgid "* That means visitor who accepts the term unchecks it."
71
+ msgstr "* هذا يعني أن الزائر الذي قبل الاتفاقية لم يقم بتحديد الخيار."
72
+
73
+ #: contact-form-7/wp-contact-form-7.php:506
74
+ msgid "CAPTCHA"
75
+ msgstr "CAPTCHA اختبار الكود"
76
+
77
+ #: contact-form-7/wp-contact-form-7.php:507
78
+ msgid "Submit button"
79
+ msgstr "زر الارسال"
80
+
81
+ #: contact-form-7/wp-contact-form-7.php:508
82
+ msgid "Name"
83
+ msgstr "الاسم"
84
+
85
+ #: contact-form-7/wp-contact-form-7.php:509
86
+ msgid "Required field?"
87
+ msgstr "طلب الخانة؟"
88
+
89
+ #: contact-form-7/wp-contact-form-7.php:510
90
+ msgid "Allow multiple selections?"
91
+ msgstr "السماح بالخيارات المتعددة؟"
92
+
93
+ #: contact-form-7/wp-contact-form-7.php:511
94
+ msgid "Insert a blank item as the first option?"
95
+ msgstr "إدراج عنصر فارغ في بداية الخيار؟"
96
+
97
+ #: contact-form-7/wp-contact-form-7.php:512
98
+ msgid "Make checkboxes exclusive?"
99
+ msgstr "جعل الخيارات حصرية؟"
100
+
101
+ #: contact-form-7/wp-contact-form-7.php:513
102
+ msgid "Choices"
103
+ msgstr "الاختيارات"
104
+
105
+ #: contact-form-7/wp-contact-form-7.php:514
106
+ msgid "Label"
107
+ msgstr "علامة"
108
+
109
+ #: contact-form-7/wp-contact-form-7.php:515
110
+ msgid "Default value"
111
+ msgstr "قيمة افتراضية"
112
+
113
+ #: contact-form-7/wp-contact-form-7.php:516
114
+ msgid "Akismet"
115
+ msgstr "Akismet لصد التعليقات المزعجة"
116
+
117
+ #: contact-form-7/wp-contact-form-7.php:517
118
+ msgid "This field requires author's name"
119
+ msgstr "هذه الخانة تطلب اسم مقدم الطلب"
120
+
121
+ #: contact-form-7/wp-contact-form-7.php:518
122
+ msgid "This field requires author's URL"
123
+ msgstr "هذه الخانة تطلب الموقع الخاص بمقدم الطلب"
124
+
125
+ #: contact-form-7/wp-contact-form-7.php:519
126
+ msgid "This field requires author's email address"
127
+ msgstr "هذه الخانة تطلب البريد الألكتروني من مقدم الطلب"
128
+
129
+ #: contact-form-7/wp-contact-form-7.php:520
130
+ msgid "Copy and paste this code into the form"
131
+ msgstr "انسخ الكود ثم ألصقه في النموذج"
132
+
133
+ #: contact-form-7/wp-contact-form-7.php:521
134
+ msgid "Foreground color"
135
+ msgstr "لون المقدمة"
136
+
137
+ #: contact-form-7/wp-contact-form-7.php:522
138
+ msgid "Background color"
139
+ msgstr "لون الخلفية"
140
+
141
+ #: contact-form-7/wp-contact-form-7.php:523
142
+ msgid "Image size"
143
+ msgstr "حجم الصورة"
144
+
145
+ #: contact-form-7/wp-contact-form-7.php:524
146
+ msgid "Small"
147
+ msgstr "صغير"
148
+
149
+ #: contact-form-7/wp-contact-form-7.php:525
150
+ msgid "Medium"
151
+ msgstr "وسط"
152
+
153
+ #: contact-form-7/wp-contact-form-7.php:526
154
+ msgid "Large"
155
+ msgstr "كبير"
156
+
157
+ #: contact-form-7/wp-contact-form-7.php:527
158
+ msgid "Image settings"
159
+ msgstr "اعدادات الصورة"
160
+
161
+ #: contact-form-7/wp-contact-form-7.php:528
162
+ msgid "Input field settings"
163
+ msgstr "خيارات الإدخال في الخانة"
164
+
165
+ #: contact-form-7/wp-contact-form-7.php:529
166
+ msgid "For image"
167
+ msgstr "للصورة"
168
+
169
+ #: contact-form-7/wp-contact-form-7.php:530
170
+ msgid "For input field"
171
+ msgstr "للإدخالات في الخانة"
172
+
173
+ #: contact-form-7/wp-contact-form-7.php:531
174
+ msgid "* One choice per line."
175
+ msgstr "* خيار في كل سطر."
176
+
177
+ #: contact-form-7/wp-contact-form-7.php:532
178
+ msgid "Show"
179
+ msgstr "اظهار"
180
+
181
+ #: contact-form-7/wp-contact-form-7.php:533
182
+ msgid "Hide"
183
+ msgstr "اخفاء"
184
+
185
+ #: contact-form-7/wp-contact-form-7.php:559
186
+ msgid "Contact form created."
187
+ msgstr "صنع نموذج اتصال."
188
+
189
+ #: contact-form-7/wp-contact-form-7.php:562
190
+ msgid "Contact form saved."
191
+ msgstr "حفظ نموذج اتصال."
192
+
193
+ #: contact-form-7/wp-contact-form-7.php:565
194
+ msgid "Contact form deleted."
195
+ msgstr "حذف نموذج اتصال."
196
+
197
+ #: contact-form-7/wp-contact-form-7.php:576
198
+ msgid "Untitled"
199
+ msgstr "بدون عنوان"
200
+
201
+ #: contact-form-7/wp-contact-form-7.php:603
202
+ msgid "Your Name"
203
+ msgstr "اسمك"
204
+
205
+ #: contact-form-7/wp-contact-form-7.php:603
206
+ #: contact-form-7/wp-contact-form-7.php:605
207
+ msgid "(required)"
208
+ msgstr "مطلوب"
209
+
210
+ #: contact-form-7/wp-contact-form-7.php:605
211
+ msgid "Your Email"
212
+ msgstr "بريدك"
213
+
214
+ #: contact-form-7/wp-contact-form-7.php:607
215
+ msgid "Subject"
216
+ msgstr "الموضوع"
217
+
218
+ #: contact-form-7/wp-contact-form-7.php:609
219
+ msgid "Your Message"
220
+ msgstr "رسالتك"
221
+
222
+ #: contact-form-7/wp-contact-form-7.php:611
223
+ #: contact-form-7/wp-contact-form-7.php:1158
224
+ msgid "Send"
225
+ msgstr "إرسال"
226
+
227
+ #: contact-form-7/wp-contact-form-7.php:659
228
+ msgid "Your message was sent successfully. Thanks."
229
+ msgstr "لقد تم إرسال رسالتك , شكراً لك."
230
+
231
+ #: contact-form-7/wp-contact-form-7.php:661
232
+ #: contact-form-7/wp-contact-form-7.php:663
233
+ msgid "Failed to send your message. Please try later or contact administrator by other way."
234
+ msgstr "فشل في إرسال رسالتك , رجاءً حاول لاحقاً أو قم بالاتصال بمسؤول الموقع بطريقة أخرى"
235
+
236
+ #: contact-form-7/wp-contact-form-7.php:665
237
+ msgid "Validation errors occurred. Please confirm the fields and submit it again."
238
+ msgstr "حدث خطأ في التحقق من البيانات ، رجاءاً قم بإعادة ملء الخانات ومن ثم إعادة الإرسال."
239
+
240
+ #: contact-form-7/wp-contact-form-7.php:667
241
+ msgid "Please accept the terms to proceed."
242
+ msgstr "رجاءً قم بالموافقه على الشروط حتى تستمر."
243
+
244
+ #: contact-form-7/wp-contact-form-7.php:669
245
+ msgid "Email address seems invalid."
246
+ msgstr "يبدو أن البريد الألكتروني خاطئ."
247
+
248
+ #: contact-form-7/wp-contact-form-7.php:671
249
+ msgid "Please fill the required field."
250
+ msgstr "رجاْءً قم بتعبئة جميع الخانات المطلوبة."
251
+
252
+ #: contact-form-7/wp-contact-form-7.php:673
253
+ msgid "Your entered code is incorrect."
254
+ msgstr "الكود الذي أدخلته غير صحيح."
255
+
256
+ #: contact-form-7/includes/admin-panel.php:16
257
+ msgid "Add new"
258
+ msgstr "أضف جديد"
259
+
260
+ #: contact-form-7/includes/admin-panel.php:32
261
+ msgid "Copy and paste this code into your post content."
262
+ msgstr "انسخ الكود ثم ألصقه داخل المحتوى الذي تريده."
263
+
264
+ #: contact-form-7/includes/admin-panel.php:38
265
+ msgid "Form"
266
+ msgstr "نموذج"
267
+
268
+ #: contact-form-7/includes/admin-panel.php:42
269
+ msgid "Mail"
270
+ msgstr "بريد"
271
+
272
+ #: contact-form-7/includes/admin-panel.php:44
273
+ #: contact-form-7/includes/admin-panel.php:67
274
+ msgid "To:"
275
+ msgstr "إلى:"
276
+
277
+ #: contact-form-7/includes/admin-panel.php:48
278
+ #: contact-form-7/includes/admin-panel.php:71
279
+ msgid "From:"
280
+ msgstr "من:"
281
+
282
+ #: contact-form-7/includes/admin-panel.php:52
283
+ #: contact-form-7/includes/admin-panel.php:75
284
+ msgid "Subject:"
285
+ msgstr "الموضوع:"
286
+
287
+ #: contact-form-7/includes/admin-panel.php:56
288
+ #: contact-form-7/includes/admin-panel.php:79
289
+ msgid "Message body:"
290
+ msgstr "محتوى الرسالة:"
291
+
292
+ #: contact-form-7/includes/admin-panel.php:61
293
+ msgid "Mail (2)"
294
+ msgstr "بريد (2)"
295
+
296
+ #: contact-form-7/includes/admin-panel.php:63
297
+ msgid "Use mail (2)"
298
+ msgstr "استخدم بريد (2)"
299
+
300
+ #: contact-form-7/includes/admin-panel.php:87
301
+ msgid "Messages"
302
+ msgstr "رسائل"
303
+
304
+ #: contact-form-7/includes/admin-panel.php:93
305
+ msgid "Sender's message was sent successfully"
306
+ msgstr "تم إرسال الرسالة بنجاح"
307
+
308
+ #: contact-form-7/includes/admin-panel.php:97
309
+ msgid "Sender's message was failed to send"
310
+ msgstr "لم يتم إرسال الرسالة"
311
+
312
+ #: contact-form-7/includes/admin-panel.php:101
313
+ msgid "Akismet judged the sending activity as spamming"
314
+ msgstr "لقد تم تصنيف هذه الرسالة من الرسائل المزعجة عن طريق Akismet "
315
+
316
+ #: contact-form-7/includes/admin-panel.php:105
317
+ msgid "Validation errors occurred"
318
+ msgstr "حدثت مشكلة أثناء التحقق من البيانات"
319
+
320
+ #: contact-form-7/includes/admin-panel.php:109
321
+ msgid "There is a field of term that sender is needed to accept"
322
+ msgstr "هناك خانة في الشروط يحتاج المرسل إلى الموافقه عليها."
323
+
324
+ #: contact-form-7/includes/admin-panel.php:113
325
+ msgid "Email address that sender entered is invalid"
326
+ msgstr "البريد الذي أدخله المرسل غير صحيح"
327
+
328
+ #: contact-form-7/includes/admin-panel.php:117
329
+ msgid "There is a field that sender is needed to fill in"
330
+ msgstr "هناك خانة يحتاج المرسل إلى ملأها."
331
+
332
+ #: contact-form-7/includes/admin-panel.php:121
333
+ msgid "The code that sender entered does not match the CAPTCHA"
334
+ msgstr "الكود الذي أدخله المرسل لم يتطابق مع خاصية CAPTCHA"
335
+
336
+ #: contact-form-7/includes/admin-panel.php:130
337
+ msgid "Save"
338
+ msgstr "حفظ"
339
+
340
+ #: contact-form-7/includes/admin-panel.php:137
341
+ msgid "Delete this contact form"
342
+ msgstr "احذف نموذج الاتصال هذا"
343
+
344
+ #: contact-form-7/includes/admin-panel.php:138
345
+ msgid ""
346
+ "You are about to delete this contact form.\n"
347
+ " 'Cancel' to stop, 'OK' to delete."
348
+ msgstr "انت على وشك حذف نموذج الاتصال المحدد.أضغط \"إلغاء\" أو \"نعم\" للحذف."
349
+
languages/wpcf7-ja.mo CHANGED
Binary file
languages/wpcf7-ja.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Contact Form 7\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-11-08 23:29+0900\n"
6
- "PO-Revision-Date: 2008-11-08 23:31+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,339 +17,391 @@ 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:323
21
  msgid "Contact form"
22
  msgstr "コンタクトフォーム"
23
 
24
- #: contact-form-7/wp-contact-form-7.php:456
25
  #: contact-form-7/includes/admin-panel.php:5
26
  msgid "Contact Form 7"
27
  msgstr "Contact Form 7"
28
 
29
- #: contact-form-7/wp-contact-form-7.php:494
30
  msgid "optional"
31
  msgstr "オプション"
32
 
33
- #: contact-form-7/wp-contact-form-7.php:495
34
  msgid "Generate Tag"
35
  msgstr "タグの作成"
36
 
37
- #: contact-form-7/wp-contact-form-7.php:496
38
  msgid "Text field"
39
  msgstr "テキスト項目"
40
 
41
- #: contact-form-7/wp-contact-form-7.php:497
42
  msgid "Email field"
43
  msgstr "メールアドレス項目"
44
 
45
- #: contact-form-7/wp-contact-form-7.php:498
46
  msgid "Text area"
47
  msgstr "テキストエリア"
48
 
49
- #: contact-form-7/wp-contact-form-7.php:499
50
  msgid "Drop-down menu"
51
  msgstr "ドロップダウン・メニュー"
52
 
53
- #: contact-form-7/wp-contact-form-7.php:500
54
  msgid "Checkboxes"
55
  msgstr "チェックボックス"
56
 
57
- #: contact-form-7/wp-contact-form-7.php:501
58
  msgid "Radio buttons"
59
  msgstr "ラジオボタン"
60
 
61
- #: contact-form-7/wp-contact-form-7.php:502
62
  msgid "Acceptance"
63
  msgstr "承諾の確認"
64
 
65
- #: contact-form-7/wp-contact-form-7.php:503
66
  msgid "Make this checkbox checked by default?"
67
  msgstr "初期状態でチェックボックスにチェックを入れますか?"
68
 
69
- #: contact-form-7/wp-contact-form-7.php:504
70
  msgid "Make this checkbox work inversely?"
71
  msgstr "チェックボックスを反転させますか?"
72
 
73
- #: contact-form-7/wp-contact-form-7.php:505
74
  msgid "* That means visitor who accepts the term unchecks it."
75
  msgstr "* つまり、利用者には条項に承諾する場合にチェックボックスのチェックをはずしてもらいます。"
76
 
77
- #: contact-form-7/wp-contact-form-7.php:506
78
  msgid "CAPTCHA"
79
  msgstr "CAPTCHA"
80
 
81
- #: contact-form-7/wp-contact-form-7.php:507
 
 
 
 
82
  msgid "Submit button"
83
  msgstr "送信ボタン"
84
 
85
- #: contact-form-7/wp-contact-form-7.php:508
86
  msgid "Name"
87
  msgstr "名前"
88
 
89
- #: contact-form-7/wp-contact-form-7.php:509
90
  msgid "Required field?"
91
  msgstr "必須入力の項目ですか?"
92
 
93
- #: contact-form-7/wp-contact-form-7.php:510
94
  msgid "Allow multiple selections?"
95
  msgstr "複数選択を可能にしますか?"
96
 
97
- #: contact-form-7/wp-contact-form-7.php:511
98
  msgid "Insert a blank item as the first option?"
99
  msgstr "先頭に空の項目を挿入しますか?"
100
 
101
- #: contact-form-7/wp-contact-form-7.php:512
102
  msgid "Make checkboxes exclusive?"
103
  msgstr "チェックボックスを排他化しますか?"
104
 
105
- #: contact-form-7/wp-contact-form-7.php:513
106
  msgid "Choices"
107
  msgstr "選択項目"
108
 
109
- #: contact-form-7/wp-contact-form-7.php:514
110
  msgid "Label"
111
  msgstr "ラベル"
112
 
113
- #: contact-form-7/wp-contact-form-7.php:515
114
  msgid "Default value"
115
  msgstr "デフォルト値"
116
 
117
- #: contact-form-7/wp-contact-form-7.php:516
118
  msgid "Akismet"
119
  msgstr "Akismet"
120
 
121
- #: contact-form-7/wp-contact-form-7.php:517
122
  msgid "This field requires author's name"
123
  msgstr "送信者の名前の入力を要求する項目"
124
 
125
- #: contact-form-7/wp-contact-form-7.php:518
126
  msgid "This field requires author's URL"
127
  msgstr "送信者の URL の入力を要求する項目"
128
 
129
- #: contact-form-7/wp-contact-form-7.php:519
130
  msgid "This field requires author's email address"
131
  msgstr "送信者のメールアドレスの入力を要求する項目"
132
 
133
- #: contact-form-7/wp-contact-form-7.php:520
134
- msgid "Copy and paste this code into the form"
135
- msgstr "次のコードをコピーしてフォームにペーストして下さい。"
136
 
137
- #: contact-form-7/wp-contact-form-7.php:521
138
  msgid "Foreground color"
139
  msgstr "文字色"
140
 
141
- #: contact-form-7/wp-contact-form-7.php:522
142
  msgid "Background color"
143
  msgstr "背景色"
144
 
145
- #: contact-form-7/wp-contact-form-7.php:523
146
  msgid "Image size"
147
  msgstr "画像サイズ"
148
 
149
- #: contact-form-7/wp-contact-form-7.php:524
150
  msgid "Small"
151
  msgstr "小"
152
 
153
- #: contact-form-7/wp-contact-form-7.php:525
154
  msgid "Medium"
155
  msgstr "中"
156
 
157
- #: contact-form-7/wp-contact-form-7.php:526
158
  msgid "Large"
159
  msgstr "大"
160
 
161
- #: contact-form-7/wp-contact-form-7.php:527
162
  msgid "Image settings"
163
  msgstr "画像の設定"
164
 
165
- #: contact-form-7/wp-contact-form-7.php:528
166
  msgid "Input field settings"
167
  msgstr "入力項目の設定"
168
 
169
- #: contact-form-7/wp-contact-form-7.php:529
170
  msgid "For image"
171
  msgstr "画像"
172
 
173
- #: contact-form-7/wp-contact-form-7.php:530
174
  msgid "For input field"
175
  msgstr "入力項目"
176
 
177
- #: contact-form-7/wp-contact-form-7.php:531
178
  msgid "* One choice per line."
179
  msgstr "* 1行ごとに分けて入力してください。"
180
 
181
- #: contact-form-7/wp-contact-form-7.php:532
182
  msgid "Show"
183
  msgstr "表示"
184
 
185
- #: contact-form-7/wp-contact-form-7.php:533
186
  msgid "Hide"
187
  msgstr "非表示"
188
 
189
- #: contact-form-7/wp-contact-form-7.php:559
 
 
 
 
 
 
 
 
190
  msgid "Contact form created."
191
  msgstr "コンタクトフォームが作成されました。"
192
 
193
- #: contact-form-7/wp-contact-form-7.php:562
194
  msgid "Contact form saved."
195
  msgstr "コンタクトフォームが保存されました。"
196
 
197
- #: contact-form-7/wp-contact-form-7.php:565
198
  msgid "Contact form deleted."
199
  msgstr "コンタクトフォームが削除されました。"
200
 
201
- #: contact-form-7/wp-contact-form-7.php:576
202
  msgid "Untitled"
203
  msgstr "無題"
204
 
205
- #: contact-form-7/wp-contact-form-7.php:603
206
  msgid "Your Name"
207
  msgstr "お名前"
208
 
209
- #: contact-form-7/wp-contact-form-7.php:603
210
- #: contact-form-7/wp-contact-form-7.php:605
211
  msgid "(required)"
212
  msgstr "(必須)"
213
 
214
- #: contact-form-7/wp-contact-form-7.php:605
215
  msgid "Your Email"
216
  msgstr "メールアドレス"
217
 
218
- #: contact-form-7/wp-contact-form-7.php:607
219
  msgid "Subject"
220
  msgstr "題名"
221
 
222
- #: contact-form-7/wp-contact-form-7.php:609
223
  msgid "Your Message"
224
  msgstr "メッセージ本文"
225
 
226
- #: contact-form-7/wp-contact-form-7.php:611
227
- #: contact-form-7/wp-contact-form-7.php:1158
228
  msgid "Send"
229
  msgstr "送信"
230
 
231
- #: contact-form-7/wp-contact-form-7.php:659
232
  msgid "Your message was sent successfully. Thanks."
233
  msgstr "あなたのメッセージは送信されました。ありがとうございました。"
234
 
235
- #: contact-form-7/wp-contact-form-7.php:661
236
- #: contact-form-7/wp-contact-form-7.php:663
237
  msgid "Failed to send your message. Please try later or contact administrator by other way."
238
  msgstr "メッセージの送信に失敗しました。間をおいてもう一度お試しいただくか、別の手段で管理者にお問い合わせ下さい。"
239
 
240
- #: contact-form-7/wp-contact-form-7.php:665
241
  msgid "Validation errors occurred. Please confirm the fields and submit it again."
242
  msgstr "入力内容に不備があります。確認してもう一度送信してください。"
243
 
244
- #: contact-form-7/wp-contact-form-7.php:667
245
  msgid "Please accept the terms to proceed."
246
  msgstr "進めるには条項の承諾が必要です。"
247
 
248
- #: contact-form-7/wp-contact-form-7.php:669
249
  msgid "Email address seems invalid."
250
  msgstr "メールアドレスの形式が正しくないようです。"
251
 
252
- #: contact-form-7/wp-contact-form-7.php:671
253
  msgid "Please fill the required field."
254
  msgstr "必須項目に記入もれがあります。"
255
 
256
- #: contact-form-7/wp-contact-form-7.php:673
257
  msgid "Your entered code is incorrect."
258
  msgstr "入力されたコードが正しくありません。"
259
 
260
- #: contact-form-7/includes/admin-panel.php:16
 
 
 
 
 
 
 
 
 
 
 
 
261
  msgid "Add new"
262
  msgstr "新規追加"
263
 
264
- #: contact-form-7/includes/admin-panel.php:32
265
- msgid "Copy and paste this code into your post content."
266
- msgstr "次のコードをコピーして投稿の本文中にペーストして下さい。"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
 
268
- #: contact-form-7/includes/admin-panel.php:38
269
  msgid "Form"
270
  msgstr "フォーム"
271
 
272
- #: contact-form-7/includes/admin-panel.php:42
273
  msgid "Mail"
274
  msgstr "メール"
275
 
276
- #: contact-form-7/includes/admin-panel.php:44
277
- #: contact-form-7/includes/admin-panel.php:67
278
  msgid "To:"
279
  msgstr "宛先:"
280
 
281
- #: contact-form-7/includes/admin-panel.php:48
282
- #: contact-form-7/includes/admin-panel.php:71
283
  msgid "From:"
284
  msgstr "差出人:"
285
 
286
- #: contact-form-7/includes/admin-panel.php:52
287
- #: contact-form-7/includes/admin-panel.php:75
288
  msgid "Subject:"
289
  msgstr "件名:"
290
 
291
- #: contact-form-7/includes/admin-panel.php:56
292
- #: contact-form-7/includes/admin-panel.php:79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
293
  msgid "Message body:"
294
  msgstr "メッセージ本文:"
295
 
296
- #: contact-form-7/includes/admin-panel.php:61
297
  msgid "Mail (2)"
298
  msgstr "メール (2)"
299
 
300
- #: contact-form-7/includes/admin-panel.php:63
301
  msgid "Use mail (2)"
302
  msgstr "メール (2) を使う"
303
 
304
- #: contact-form-7/includes/admin-panel.php:87
305
  msgid "Messages"
306
  msgstr "メッセージ"
307
 
308
- #: contact-form-7/includes/admin-panel.php:93
309
  msgid "Sender's message was sent successfully"
310
  msgstr "メッセージが正常に送信された"
311
 
312
- #: contact-form-7/includes/admin-panel.php:97
313
  msgid "Sender's message was failed to send"
314
  msgstr "メッセージの送信に失敗した"
315
 
316
- #: contact-form-7/includes/admin-panel.php:101
317
  msgid "Akismet judged the sending activity as spamming"
318
  msgstr "Akismet によりスパム行為と判定された"
319
 
320
- #: contact-form-7/includes/admin-panel.php:105
321
  msgid "Validation errors occurred"
322
  msgstr "入力内容に不備が見つかった"
323
 
324
- #: contact-form-7/includes/admin-panel.php:109
325
- msgid "There is a field of term that sender is needed to accept"
326
- msgstr "承諾が必要な項目が承諾されていない"
327
 
328
- #: contact-form-7/includes/admin-panel.php:113
329
  msgid "Email address that sender entered is invalid"
330
  msgstr "入力されたメールアドレスの形式が正しくない"
331
 
332
- #: contact-form-7/includes/admin-panel.php:117
333
- msgid "There is a field that sender is needed to fill in"
334
- msgstr "入力必須の項目が入力されていない"
335
 
336
- #: contact-form-7/includes/admin-panel.php:121
337
  msgid "The code that sender entered does not match the CAPTCHA"
338
  msgstr "入力されたコードが CAPTCHA に適合していない"
339
 
340
- #: contact-form-7/includes/admin-panel.php:130
341
- msgid "Save"
342
- msgstr "保存"
343
 
344
- #: contact-form-7/includes/admin-panel.php:137
345
- msgid "Delete this contact form"
346
- msgstr "このコンタクトフォームを削除"
347
 
348
- #: contact-form-7/includes/admin-panel.php:138
349
- msgid ""
350
- "You are about to delete this contact form.\n"
351
- " 'Cancel' to stop, 'OK' to delete."
352
- msgstr ""
353
- "このコンタクトフォームを削除しようとしています。\n"
354
- " 'キャンセル' で中止、 'OK' で削除します。"
355
 
2
  msgstr ""
3
  "Project-Id-Version: Contact Form 7\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-12-07 00:21+0900\n"
6
+ "PO-Revision-Date: 2008-12-07 00:33+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:391
21
  msgid "Contact form"
22
  msgstr "コンタクトフォーム"
23
 
24
+ #: contact-form-7/wp-contact-form-7.php:548
25
  #: contact-form-7/includes/admin-panel.php:5
26
  msgid "Contact Form 7"
27
  msgstr "Contact Form 7"
28
 
29
+ #: contact-form-7/wp-contact-form-7.php:566
30
  msgid "optional"
31
  msgstr "オプション"
32
 
33
+ #: contact-form-7/wp-contact-form-7.php:567
34
  msgid "Generate Tag"
35
  msgstr "タグの作成"
36
 
37
+ #: contact-form-7/wp-contact-form-7.php:568
38
  msgid "Text field"
39
  msgstr "テキスト項目"
40
 
41
+ #: contact-form-7/wp-contact-form-7.php:569
42
  msgid "Email field"
43
  msgstr "メールアドレス項目"
44
 
45
+ #: contact-form-7/wp-contact-form-7.php:570
46
  msgid "Text area"
47
  msgstr "テキストエリア"
48
 
49
+ #: contact-form-7/wp-contact-form-7.php:571
50
  msgid "Drop-down menu"
51
  msgstr "ドロップダウン・メニュー"
52
 
53
+ #: contact-form-7/wp-contact-form-7.php:572
54
  msgid "Checkboxes"
55
  msgstr "チェックボックス"
56
 
57
+ #: contact-form-7/wp-contact-form-7.php:573
58
  msgid "Radio buttons"
59
  msgstr "ラジオボタン"
60
 
61
+ #: contact-form-7/wp-contact-form-7.php:574
62
  msgid "Acceptance"
63
  msgstr "承諾の確認"
64
 
65
+ #: contact-form-7/wp-contact-form-7.php:575
66
  msgid "Make this checkbox checked by default?"
67
  msgstr "初期状態でチェックボックスにチェックを入れますか?"
68
 
69
+ #: contact-form-7/wp-contact-form-7.php:576
70
  msgid "Make this checkbox work inversely?"
71
  msgstr "チェックボックスを反転させますか?"
72
 
73
+ #: contact-form-7/wp-contact-form-7.php:577
74
  msgid "* That means visitor who accepts the term unchecks it."
75
  msgstr "* つまり、利用者には条項に承諾する場合にチェックボックスのチェックをはずしてもらいます。"
76
 
77
+ #: contact-form-7/wp-contact-form-7.php:578
78
  msgid "CAPTCHA"
79
  msgstr "CAPTCHA"
80
 
81
+ #: contact-form-7/wp-contact-form-7.php:579
82
+ msgid "File upload"
83
+ msgstr "ファイルのアップロード"
84
+
85
+ #: contact-form-7/wp-contact-form-7.php:580
86
  msgid "Submit button"
87
  msgstr "送信ボタン"
88
 
89
+ #: contact-form-7/wp-contact-form-7.php:581
90
  msgid "Name"
91
  msgstr "名前"
92
 
93
+ #: contact-form-7/wp-contact-form-7.php:582
94
  msgid "Required field?"
95
  msgstr "必須入力の項目ですか?"
96
 
97
+ #: contact-form-7/wp-contact-form-7.php:583
98
  msgid "Allow multiple selections?"
99
  msgstr "複数選択を可能にしますか?"
100
 
101
+ #: contact-form-7/wp-contact-form-7.php:584
102
  msgid "Insert a blank item as the first option?"
103
  msgstr "先頭に空の項目を挿入しますか?"
104
 
105
+ #: contact-form-7/wp-contact-form-7.php:585
106
  msgid "Make checkboxes exclusive?"
107
  msgstr "チェックボックスを排他化しますか?"
108
 
109
+ #: contact-form-7/wp-contact-form-7.php:586
110
  msgid "Choices"
111
  msgstr "選択項目"
112
 
113
+ #: contact-form-7/wp-contact-form-7.php:587
114
  msgid "Label"
115
  msgstr "ラベル"
116
 
117
+ #: contact-form-7/wp-contact-form-7.php:588
118
  msgid "Default value"
119
  msgstr "デフォルト値"
120
 
121
+ #: contact-form-7/wp-contact-form-7.php:589
122
  msgid "Akismet"
123
  msgstr "Akismet"
124
 
125
+ #: contact-form-7/wp-contact-form-7.php:590
126
  msgid "This field requires author's name"
127
  msgstr "送信者の名前の入力を要求する項目"
128
 
129
+ #: contact-form-7/wp-contact-form-7.php:591
130
  msgid "This field requires author's URL"
131
  msgstr "送信者の URL の入力を要求する項目"
132
 
133
+ #: contact-form-7/wp-contact-form-7.php:592
134
  msgid "This field requires author's email address"
135
  msgstr "送信者のメールアドレスの入力を要求する項目"
136
 
137
+ #: contact-form-7/wp-contact-form-7.php:593
138
+ msgid "Copy this code and paste it into the form left."
139
+ msgstr "このコードをコピーして、左のフォーム内にペーストしてください。"
140
 
141
+ #: contact-form-7/wp-contact-form-7.php:594
142
  msgid "Foreground color"
143
  msgstr "文字色"
144
 
145
+ #: contact-form-7/wp-contact-form-7.php:595
146
  msgid "Background color"
147
  msgstr "背景色"
148
 
149
+ #: contact-form-7/wp-contact-form-7.php:596
150
  msgid "Image size"
151
  msgstr "画像サイズ"
152
 
153
+ #: contact-form-7/wp-contact-form-7.php:597
154
  msgid "Small"
155
  msgstr "小"
156
 
157
+ #: contact-form-7/wp-contact-form-7.php:598
158
  msgid "Medium"
159
  msgstr "中"
160
 
161
+ #: contact-form-7/wp-contact-form-7.php:599
162
  msgid "Large"
163
  msgstr "大"
164
 
165
+ #: contact-form-7/wp-contact-form-7.php:600
166
  msgid "Image settings"
167
  msgstr "画像の設定"
168
 
169
+ #: contact-form-7/wp-contact-form-7.php:601
170
  msgid "Input field settings"
171
  msgstr "入力項目の設定"
172
 
173
+ #: contact-form-7/wp-contact-form-7.php:602
174
  msgid "For image"
175
  msgstr "画像"
176
 
177
+ #: contact-form-7/wp-contact-form-7.php:603
178
  msgid "For input field"
179
  msgstr "入力項目"
180
 
181
+ #: contact-form-7/wp-contact-form-7.php:604
182
  msgid "* One choice per line."
183
  msgstr "* 1行ごとに分けて入力してください。"
184
 
185
+ #: contact-form-7/wp-contact-form-7.php:605
186
  msgid "Show"
187
  msgstr "表示"
188
 
189
+ #: contact-form-7/wp-contact-form-7.php:606
190
  msgid "Hide"
191
  msgstr "非表示"
192
 
193
+ #: contact-form-7/wp-contact-form-7.php:607
194
+ msgid "File size limit"
195
+ msgstr "ファイルサイズの上限"
196
+
197
+ #: contact-form-7/wp-contact-form-7.php:608
198
+ msgid "Acceptable file types"
199
+ msgstr "受け入れ可能なファイル形式"
200
+
201
+ #: contact-form-7/wp-contact-form-7.php:634
202
  msgid "Contact form created."
203
  msgstr "コンタクトフォームが作成されました。"
204
 
205
+ #: contact-form-7/wp-contact-form-7.php:637
206
  msgid "Contact form saved."
207
  msgstr "コンタクトフォームが保存されました。"
208
 
209
+ #: contact-form-7/wp-contact-form-7.php:640
210
  msgid "Contact form deleted."
211
  msgstr "コンタクトフォームが削除されました。"
212
 
213
+ #: contact-form-7/wp-contact-form-7.php:651
214
  msgid "Untitled"
215
  msgstr "無題"
216
 
217
+ #: contact-form-7/wp-contact-form-7.php:678
218
  msgid "Your Name"
219
  msgstr "お名前"
220
 
221
+ #: contact-form-7/wp-contact-form-7.php:678
222
+ #: contact-form-7/wp-contact-form-7.php:680
223
  msgid "(required)"
224
  msgstr "(必須)"
225
 
226
+ #: contact-form-7/wp-contact-form-7.php:680
227
  msgid "Your Email"
228
  msgstr "メールアドレス"
229
 
230
+ #: contact-form-7/wp-contact-form-7.php:682
231
  msgid "Subject"
232
  msgstr "題名"
233
 
234
+ #: contact-form-7/wp-contact-form-7.php:684
235
  msgid "Your Message"
236
  msgstr "メッセージ本文"
237
 
238
+ #: contact-form-7/wp-contact-form-7.php:686
239
+ #: contact-form-7/wp-contact-form-7.php:1325
240
  msgid "Send"
241
  msgstr "送信"
242
 
243
+ #: contact-form-7/wp-contact-form-7.php:739
244
  msgid "Your message was sent successfully. Thanks."
245
  msgstr "あなたのメッセージは送信されました。ありがとうございました。"
246
 
247
+ #: contact-form-7/wp-contact-form-7.php:741
248
+ #: contact-form-7/wp-contact-form-7.php:743
249
  msgid "Failed to send your message. Please try later or contact administrator by other way."
250
  msgstr "メッセージの送信に失敗しました。間をおいてもう一度お試しいただくか、別の手段で管理者にお問い合わせ下さい。"
251
 
252
+ #: contact-form-7/wp-contact-form-7.php:745
253
  msgid "Validation errors occurred. Please confirm the fields and submit it again."
254
  msgstr "入力内容に不備があります。確認してもう一度送信してください。"
255
 
256
+ #: contact-form-7/wp-contact-form-7.php:747
257
  msgid "Please accept the terms to proceed."
258
  msgstr "進めるには条項の承諾が必要です。"
259
 
260
+ #: contact-form-7/wp-contact-form-7.php:749
261
  msgid "Email address seems invalid."
262
  msgstr "メールアドレスの形式が正しくないようです。"
263
 
264
+ #: contact-form-7/wp-contact-form-7.php:751
265
  msgid "Please fill the required field."
266
  msgstr "必須項目に記入もれがあります。"
267
 
268
+ #: contact-form-7/wp-contact-form-7.php:753
269
  msgid "Your entered code is incorrect."
270
  msgstr "入力されたコードが正しくありません。"
271
 
272
+ #: contact-form-7/wp-contact-form-7.php:755
273
+ msgid "Failed to upload file."
274
+ msgstr "ファイルのアップロードに失敗しました。"
275
+
276
+ #: contact-form-7/wp-contact-form-7.php:757
277
+ msgid "This file type is not allowed."
278
+ msgstr "許可されていないファイル形式です。"
279
+
280
+ #: contact-form-7/wp-contact-form-7.php:759
281
+ msgid "This file is too large."
282
+ msgstr "ファイルが大きすぎます。"
283
+
284
+ #: contact-form-7/includes/admin-panel.php:20
285
  msgid "Add new"
286
  msgstr "新規追加"
287
 
288
+ #: contact-form-7/includes/admin-panel.php:42
289
+ msgid "Copy this code and paste it into your post, page or text widget content."
290
+ msgstr "このコードをコピーして、投稿、ページ、またはテキストウィジェットの本文内にペーストしてください。"
291
+
292
+ #: contact-form-7/includes/admin-panel.php:49
293
+ #: contact-form-7/includes/admin-panel.php:253
294
+ msgid "Save"
295
+ msgstr "保存"
296
+
297
+ #: contact-form-7/includes/admin-panel.php:55
298
+ msgid "Delete this contact form"
299
+ msgstr "このコンタクトフォームを削除"
300
+
301
+ #: contact-form-7/includes/admin-panel.php:56
302
+ msgid ""
303
+ "You are about to delete this contact form.\n"
304
+ " 'Cancel' to stop, 'OK' to delete."
305
+ msgstr ""
306
+ "このコンタクトフォームを削除しようとしています。\n"
307
+ " 'キャンセル' で中止、 'OK' で削除します。"
308
 
309
+ #: contact-form-7/includes/admin-panel.php:70
310
  msgid "Form"
311
  msgstr "フォーム"
312
 
313
+ #: contact-form-7/includes/admin-panel.php:90
314
  msgid "Mail"
315
  msgstr "メール"
316
 
317
+ #: contact-form-7/includes/admin-panel.php:97
318
+ #: contact-form-7/includes/admin-panel.php:149
319
  msgid "To:"
320
  msgstr "宛先:"
321
 
322
+ #: contact-form-7/includes/admin-panel.php:101
323
+ #: contact-form-7/includes/admin-panel.php:153
324
  msgid "From:"
325
  msgstr "差出人:"
326
 
327
+ #: contact-form-7/includes/admin-panel.php:105
328
+ #: contact-form-7/includes/admin-panel.php:157
329
  msgid "Subject:"
330
  msgstr "件名:"
331
 
332
+ #: contact-form-7/includes/admin-panel.php:110
333
+ #: contact-form-7/includes/admin-panel.php:162
334
+ msgid "File attachments:"
335
+ msgstr "ファイル添付:"
336
+
337
+ #: contact-form-7/includes/admin-panel.php:112
338
+ #: contact-form-7/includes/admin-panel.php:164
339
+ msgid "(You need WordPress 2.7 or greater to use this feature)"
340
+ msgstr "(この機能を使うためには WordPress 2.7 以上が必要です)"
341
+
342
+ #: contact-form-7/includes/admin-panel.php:120
343
+ #: contact-form-7/includes/admin-panel.php:172
344
+ msgid "Use HTML content type"
345
+ msgstr "HTML 形式のメールを使用する"
346
+
347
+ #: contact-form-7/includes/admin-panel.php:125
348
+ #: contact-form-7/includes/admin-panel.php:177
349
  msgid "Message body:"
350
  msgstr "メッセージ本文:"
351
 
352
+ #: contact-form-7/includes/admin-panel.php:136
353
  msgid "Mail (2)"
354
  msgstr "メール (2)"
355
 
356
+ #: contact-form-7/includes/admin-panel.php:143
357
  msgid "Use mail (2)"
358
  msgstr "メール (2) を使う"
359
 
360
+ #: contact-form-7/includes/admin-panel.php:188
361
  msgid "Messages"
362
  msgstr "メッセージ"
363
 
364
+ #: contact-form-7/includes/admin-panel.php:196
365
  msgid "Sender's message was sent successfully"
366
  msgstr "メッセージが正常に送信された"
367
 
368
+ #: contact-form-7/includes/admin-panel.php:200
369
  msgid "Sender's message was failed to send"
370
  msgstr "メッセージの送信に失敗した"
371
 
372
+ #: contact-form-7/includes/admin-panel.php:204
373
  msgid "Akismet judged the sending activity as spamming"
374
  msgstr "Akismet によりスパム行為と判定された"
375
 
376
+ #: contact-form-7/includes/admin-panel.php:208
377
  msgid "Validation errors occurred"
378
  msgstr "入力内容に不備が見つかった"
379
 
380
+ #: contact-form-7/includes/admin-panel.php:212
381
+ msgid "There is a field that sender is needed to fill in"
382
+ msgstr "入力必須の項目が入力されていない"
383
 
384
+ #: contact-form-7/includes/admin-panel.php:216
385
  msgid "Email address that sender entered is invalid"
386
  msgstr "入力されたメールアドレスの形式が正しくない"
387
 
388
+ #: contact-form-7/includes/admin-panel.php:220
389
+ msgid "There is a field of term that sender is needed to accept"
390
+ msgstr "承諾が必要な項目が承諾されていない"
391
 
392
+ #: contact-form-7/includes/admin-panel.php:224
393
  msgid "The code that sender entered does not match the CAPTCHA"
394
  msgstr "入力されたコードが CAPTCHA に適合していない"
395
 
396
+ #: contact-form-7/includes/admin-panel.php:228
397
+ msgid "Uploading a file fails for any reason"
398
+ msgstr "ファイルのアップロードが何らかの理由により失敗している"
399
 
400
+ #: contact-form-7/includes/admin-panel.php:232
401
+ msgid "Uploaded file is not allowed file type"
402
+ msgstr "アップロードされたファイルが許可されたファイル形式に適合しない"
403
 
404
+ #: contact-form-7/includes/admin-panel.php:236
405
+ msgid "Uploaded file is too large"
406
+ msgstr "アップロードされたファイルが大きすぎる"
 
 
 
 
407
 
languages/wpcf7.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Contact Form 7\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-11-08 23:29+0900\n"
6
- "PO-Revision-Date: 2008-11-08 23:29+0900\n"
7
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -15,337 +15,389 @@ 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:323
19
  msgid "Contact form"
20
  msgstr ""
21
 
22
- #: contact-form-7/wp-contact-form-7.php:456
23
  #: contact-form-7/includes/admin-panel.php:5
24
  msgid "Contact Form 7"
25
  msgstr ""
26
 
27
- #: contact-form-7/wp-contact-form-7.php:494
28
  msgid "optional"
29
  msgstr ""
30
 
31
- #: contact-form-7/wp-contact-form-7.php:495
32
  msgid "Generate Tag"
33
  msgstr ""
34
 
35
- #: contact-form-7/wp-contact-form-7.php:496
36
  msgid "Text field"
37
  msgstr ""
38
 
39
- #: contact-form-7/wp-contact-form-7.php:497
40
  msgid "Email field"
41
  msgstr ""
42
 
43
- #: contact-form-7/wp-contact-form-7.php:498
44
  msgid "Text area"
45
  msgstr ""
46
 
47
- #: contact-form-7/wp-contact-form-7.php:499
48
  msgid "Drop-down menu"
49
  msgstr ""
50
 
51
- #: contact-form-7/wp-contact-form-7.php:500
52
  msgid "Checkboxes"
53
  msgstr ""
54
 
55
- #: contact-form-7/wp-contact-form-7.php:501
56
  msgid "Radio buttons"
57
  msgstr ""
58
 
59
- #: contact-form-7/wp-contact-form-7.php:502
60
  msgid "Acceptance"
61
  msgstr ""
62
 
63
- #: contact-form-7/wp-contact-form-7.php:503
64
  msgid "Make this checkbox checked by default?"
65
  msgstr ""
66
 
67
- #: contact-form-7/wp-contact-form-7.php:504
68
  msgid "Make this checkbox work inversely?"
69
  msgstr ""
70
 
71
- #: contact-form-7/wp-contact-form-7.php:505
72
  msgid "* That means visitor who accepts the term unchecks it."
73
  msgstr ""
74
 
75
- #: contact-form-7/wp-contact-form-7.php:506
76
  msgid "CAPTCHA"
77
  msgstr ""
78
 
79
- #: contact-form-7/wp-contact-form-7.php:507
 
 
 
 
80
  msgid "Submit button"
81
  msgstr ""
82
 
83
- #: contact-form-7/wp-contact-form-7.php:508
84
  msgid "Name"
85
  msgstr ""
86
 
87
- #: contact-form-7/wp-contact-form-7.php:509
88
  msgid "Required field?"
89
  msgstr ""
90
 
91
- #: contact-form-7/wp-contact-form-7.php:510
92
  msgid "Allow multiple selections?"
93
  msgstr ""
94
 
95
- #: contact-form-7/wp-contact-form-7.php:511
96
  msgid "Insert a blank item as the first option?"
97
  msgstr ""
98
 
99
- #: contact-form-7/wp-contact-form-7.php:512
100
  msgid "Make checkboxes exclusive?"
101
  msgstr ""
102
 
103
- #: contact-form-7/wp-contact-form-7.php:513
104
  msgid "Choices"
105
  msgstr ""
106
 
107
- #: contact-form-7/wp-contact-form-7.php:514
108
  msgid "Label"
109
  msgstr ""
110
 
111
- #: contact-form-7/wp-contact-form-7.php:515
112
  msgid "Default value"
113
  msgstr ""
114
 
115
- #: contact-form-7/wp-contact-form-7.php:516
116
  msgid "Akismet"
117
  msgstr ""
118
 
119
- #: contact-form-7/wp-contact-form-7.php:517
120
  msgid "This field requires author's name"
121
  msgstr ""
122
 
123
- #: contact-form-7/wp-contact-form-7.php:518
124
  msgid "This field requires author's URL"
125
  msgstr ""
126
 
127
- #: contact-form-7/wp-contact-form-7.php:519
128
  msgid "This field requires author's email address"
129
  msgstr ""
130
 
131
- #: contact-form-7/wp-contact-form-7.php:520
132
- msgid "Copy and paste this code into the form"
133
  msgstr ""
134
 
135
- #: contact-form-7/wp-contact-form-7.php:521
136
  msgid "Foreground color"
137
  msgstr ""
138
 
139
- #: contact-form-7/wp-contact-form-7.php:522
140
  msgid "Background color"
141
  msgstr ""
142
 
143
- #: contact-form-7/wp-contact-form-7.php:523
144
  msgid "Image size"
145
  msgstr ""
146
 
147
- #: contact-form-7/wp-contact-form-7.php:524
148
  msgid "Small"
149
  msgstr ""
150
 
151
- #: contact-form-7/wp-contact-form-7.php:525
152
  msgid "Medium"
153
  msgstr ""
154
 
155
- #: contact-form-7/wp-contact-form-7.php:526
156
  msgid "Large"
157
  msgstr ""
158
 
159
- #: contact-form-7/wp-contact-form-7.php:527
160
  msgid "Image settings"
161
  msgstr ""
162
 
163
- #: contact-form-7/wp-contact-form-7.php:528
164
  msgid "Input field settings"
165
  msgstr ""
166
 
167
- #: contact-form-7/wp-contact-form-7.php:529
168
  msgid "For image"
169
  msgstr ""
170
 
171
- #: contact-form-7/wp-contact-form-7.php:530
172
  msgid "For input field"
173
  msgstr ""
174
 
175
- #: contact-form-7/wp-contact-form-7.php:531
176
  msgid "* One choice per line."
177
  msgstr ""
178
 
179
- #: contact-form-7/wp-contact-form-7.php:532
180
  msgid "Show"
181
  msgstr ""
182
 
183
- #: contact-form-7/wp-contact-form-7.php:533
184
  msgid "Hide"
185
  msgstr ""
186
 
187
- #: contact-form-7/wp-contact-form-7.php:559
 
 
 
 
 
 
 
 
188
  msgid "Contact form created."
189
  msgstr ""
190
 
191
- #: contact-form-7/wp-contact-form-7.php:562
192
  msgid "Contact form saved."
193
  msgstr ""
194
 
195
- #: contact-form-7/wp-contact-form-7.php:565
196
  msgid "Contact form deleted."
197
  msgstr ""
198
 
199
- #: contact-form-7/wp-contact-form-7.php:576
200
  msgid "Untitled"
201
  msgstr ""
202
 
203
- #: contact-form-7/wp-contact-form-7.php:603
204
  msgid "Your Name"
205
  msgstr ""
206
 
207
- #: contact-form-7/wp-contact-form-7.php:603
208
- #: contact-form-7/wp-contact-form-7.php:605
209
  msgid "(required)"
210
  msgstr ""
211
 
212
- #: contact-form-7/wp-contact-form-7.php:605
213
  msgid "Your Email"
214
  msgstr ""
215
 
216
- #: contact-form-7/wp-contact-form-7.php:607
217
  msgid "Subject"
218
  msgstr ""
219
 
220
- #: contact-form-7/wp-contact-form-7.php:609
221
  msgid "Your Message"
222
  msgstr ""
223
 
224
- #: contact-form-7/wp-contact-form-7.php:611
225
- #: contact-form-7/wp-contact-form-7.php:1158
226
  msgid "Send"
227
  msgstr ""
228
 
229
- #: contact-form-7/wp-contact-form-7.php:659
230
  msgid "Your message was sent successfully. Thanks."
231
  msgstr ""
232
 
233
- #: contact-form-7/wp-contact-form-7.php:661
234
- #: contact-form-7/wp-contact-form-7.php:663
235
  msgid "Failed to send your message. Please try later or contact administrator by other way."
236
  msgstr ""
237
 
238
- #: contact-form-7/wp-contact-form-7.php:665
239
  msgid "Validation errors occurred. Please confirm the fields and submit it again."
240
  msgstr ""
241
 
242
- #: contact-form-7/wp-contact-form-7.php:667
243
  msgid "Please accept the terms to proceed."
244
  msgstr ""
245
 
246
- #: contact-form-7/wp-contact-form-7.php:669
247
  msgid "Email address seems invalid."
248
  msgstr ""
249
 
250
- #: contact-form-7/wp-contact-form-7.php:671
251
  msgid "Please fill the required field."
252
  msgstr ""
253
 
254
- #: contact-form-7/wp-contact-form-7.php:673
255
  msgid "Your entered code is incorrect."
256
  msgstr ""
257
 
258
- #: contact-form-7/includes/admin-panel.php:16
 
 
 
 
 
 
 
 
 
 
 
 
259
  msgid "Add new"
260
  msgstr ""
261
 
262
- #: contact-form-7/includes/admin-panel.php:32
263
- msgid "Copy and paste this code into your post content."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  msgstr ""
265
 
266
- #: contact-form-7/includes/admin-panel.php:38
267
  msgid "Form"
268
  msgstr ""
269
 
270
- #: contact-form-7/includes/admin-panel.php:42
271
  msgid "Mail"
272
  msgstr ""
273
 
274
- #: contact-form-7/includes/admin-panel.php:44
275
- #: contact-form-7/includes/admin-panel.php:67
276
  msgid "To:"
277
  msgstr ""
278
 
279
- #: contact-form-7/includes/admin-panel.php:48
280
- #: contact-form-7/includes/admin-panel.php:71
281
  msgid "From:"
282
  msgstr ""
283
 
284
- #: contact-form-7/includes/admin-panel.php:52
285
- #: contact-form-7/includes/admin-panel.php:75
286
  msgid "Subject:"
287
  msgstr ""
288
 
289
- #: contact-form-7/includes/admin-panel.php:56
290
- #: contact-form-7/includes/admin-panel.php:79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
  msgid "Message body:"
292
  msgstr ""
293
 
294
- #: contact-form-7/includes/admin-panel.php:61
295
  msgid "Mail (2)"
296
  msgstr ""
297
 
298
- #: contact-form-7/includes/admin-panel.php:63
299
  msgid "Use mail (2)"
300
  msgstr ""
301
 
302
- #: contact-form-7/includes/admin-panel.php:87
303
  msgid "Messages"
304
  msgstr ""
305
 
306
- #: contact-form-7/includes/admin-panel.php:93
307
  msgid "Sender's message was sent successfully"
308
  msgstr ""
309
 
310
- #: contact-form-7/includes/admin-panel.php:97
311
  msgid "Sender's message was failed to send"
312
  msgstr ""
313
 
314
- #: contact-form-7/includes/admin-panel.php:101
315
  msgid "Akismet judged the sending activity as spamming"
316
  msgstr ""
317
 
318
- #: contact-form-7/includes/admin-panel.php:105
319
  msgid "Validation errors occurred"
320
  msgstr ""
321
 
322
- #: contact-form-7/includes/admin-panel.php:109
323
- msgid "There is a field of term that sender is needed to accept"
324
  msgstr ""
325
 
326
- #: contact-form-7/includes/admin-panel.php:113
327
  msgid "Email address that sender entered is invalid"
328
  msgstr ""
329
 
330
- #: contact-form-7/includes/admin-panel.php:117
331
- msgid "There is a field that sender is needed to fill in"
332
  msgstr ""
333
 
334
- #: contact-form-7/includes/admin-panel.php:121
335
  msgid "The code that sender entered does not match the CAPTCHA"
336
  msgstr ""
337
 
338
- #: contact-form-7/includes/admin-panel.php:130
339
- msgid "Save"
340
  msgstr ""
341
 
342
- #: contact-form-7/includes/admin-panel.php:137
343
- msgid "Delete this contact form"
344
  msgstr ""
345
 
346
- #: contact-form-7/includes/admin-panel.php:138
347
- msgid ""
348
- "You are about to delete this contact form.\n"
349
- " 'Cancel' to stop, 'OK' to delete."
350
  msgstr ""
351
 
2
  msgstr ""
3
  "Project-Id-Version: Contact Form 7\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-12-07 00:21+0900\n"
6
+ "PO-Revision-Date: 2008-12-07 00:22+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:391
19
  msgid "Contact form"
20
  msgstr ""
21
 
22
+ #: contact-form-7/wp-contact-form-7.php:548
23
  #: contact-form-7/includes/admin-panel.php:5
24
  msgid "Contact Form 7"
25
  msgstr ""
26
 
27
+ #: contact-form-7/wp-contact-form-7.php:566
28
  msgid "optional"
29
  msgstr ""
30
 
31
+ #: contact-form-7/wp-contact-form-7.php:567
32
  msgid "Generate Tag"
33
  msgstr ""
34
 
35
+ #: contact-form-7/wp-contact-form-7.php:568
36
  msgid "Text field"
37
  msgstr ""
38
 
39
+ #: contact-form-7/wp-contact-form-7.php:569
40
  msgid "Email field"
41
  msgstr ""
42
 
43
+ #: contact-form-7/wp-contact-form-7.php:570
44
  msgid "Text area"
45
  msgstr ""
46
 
47
+ #: contact-form-7/wp-contact-form-7.php:571
48
  msgid "Drop-down menu"
49
  msgstr ""
50
 
51
+ #: contact-form-7/wp-contact-form-7.php:572
52
  msgid "Checkboxes"
53
  msgstr ""
54
 
55
+ #: contact-form-7/wp-contact-form-7.php:573
56
  msgid "Radio buttons"
57
  msgstr ""
58
 
59
+ #: contact-form-7/wp-contact-form-7.php:574
60
  msgid "Acceptance"
61
  msgstr ""
62
 
63
+ #: contact-form-7/wp-contact-form-7.php:575
64
  msgid "Make this checkbox checked by default?"
65
  msgstr ""
66
 
67
+ #: contact-form-7/wp-contact-form-7.php:576
68
  msgid "Make this checkbox work inversely?"
69
  msgstr ""
70
 
71
+ #: contact-form-7/wp-contact-form-7.php:577
72
  msgid "* That means visitor who accepts the term unchecks it."
73
  msgstr ""
74
 
75
+ #: contact-form-7/wp-contact-form-7.php:578
76
  msgid "CAPTCHA"
77
  msgstr ""
78
 
79
+ #: contact-form-7/wp-contact-form-7.php:579
80
+ msgid "File upload"
81
+ msgstr ""
82
+
83
+ #: contact-form-7/wp-contact-form-7.php:580
84
  msgid "Submit button"
85
  msgstr ""
86
 
87
+ #: contact-form-7/wp-contact-form-7.php:581
88
  msgid "Name"
89
  msgstr ""
90
 
91
+ #: contact-form-7/wp-contact-form-7.php:582
92
  msgid "Required field?"
93
  msgstr ""
94
 
95
+ #: contact-form-7/wp-contact-form-7.php:583
96
  msgid "Allow multiple selections?"
97
  msgstr ""
98
 
99
+ #: contact-form-7/wp-contact-form-7.php:584
100
  msgid "Insert a blank item as the first option?"
101
  msgstr ""
102
 
103
+ #: contact-form-7/wp-contact-form-7.php:585
104
  msgid "Make checkboxes exclusive?"
105
  msgstr ""
106
 
107
+ #: contact-form-7/wp-contact-form-7.php:586
108
  msgid "Choices"
109
  msgstr ""
110
 
111
+ #: contact-form-7/wp-contact-form-7.php:587
112
  msgid "Label"
113
  msgstr ""
114
 
115
+ #: contact-form-7/wp-contact-form-7.php:588
116
  msgid "Default value"
117
  msgstr ""
118
 
119
+ #: contact-form-7/wp-contact-form-7.php:589
120
  msgid "Akismet"
121
  msgstr ""
122
 
123
+ #: contact-form-7/wp-contact-form-7.php:590
124
  msgid "This field requires author's name"
125
  msgstr ""
126
 
127
+ #: contact-form-7/wp-contact-form-7.php:591
128
  msgid "This field requires author's URL"
129
  msgstr ""
130
 
131
+ #: contact-form-7/wp-contact-form-7.php:592
132
  msgid "This field requires author's email address"
133
  msgstr ""
134
 
135
+ #: contact-form-7/wp-contact-form-7.php:593
136
+ msgid "Copy this code and paste it into the form left."
137
  msgstr ""
138
 
139
+ #: contact-form-7/wp-contact-form-7.php:594
140
  msgid "Foreground color"
141
  msgstr ""
142
 
143
+ #: contact-form-7/wp-contact-form-7.php:595
144
  msgid "Background color"
145
  msgstr ""
146
 
147
+ #: contact-form-7/wp-contact-form-7.php:596
148
  msgid "Image size"
149
  msgstr ""
150
 
151
+ #: contact-form-7/wp-contact-form-7.php:597
152
  msgid "Small"
153
  msgstr ""
154
 
155
+ #: contact-form-7/wp-contact-form-7.php:598
156
  msgid "Medium"
157
  msgstr ""
158
 
159
+ #: contact-form-7/wp-contact-form-7.php:599
160
  msgid "Large"
161
  msgstr ""
162
 
163
+ #: contact-form-7/wp-contact-form-7.php:600
164
  msgid "Image settings"
165
  msgstr ""
166
 
167
+ #: contact-form-7/wp-contact-form-7.php:601
168
  msgid "Input field settings"
169
  msgstr ""
170
 
171
+ #: contact-form-7/wp-contact-form-7.php:602
172
  msgid "For image"
173
  msgstr ""
174
 
175
+ #: contact-form-7/wp-contact-form-7.php:603
176
  msgid "For input field"
177
  msgstr ""
178
 
179
+ #: contact-form-7/wp-contact-form-7.php:604
180
  msgid "* One choice per line."
181
  msgstr ""
182
 
183
+ #: contact-form-7/wp-contact-form-7.php:605
184
  msgid "Show"
185
  msgstr ""
186
 
187
+ #: contact-form-7/wp-contact-form-7.php:606
188
  msgid "Hide"
189
  msgstr ""
190
 
191
+ #: contact-form-7/wp-contact-form-7.php:607
192
+ msgid "File size limit"
193
+ msgstr ""
194
+
195
+ #: contact-form-7/wp-contact-form-7.php:608
196
+ msgid "Acceptable file types"
197
+ msgstr ""
198
+
199
+ #: contact-form-7/wp-contact-form-7.php:634
200
  msgid "Contact form created."
201
  msgstr ""
202
 
203
+ #: contact-form-7/wp-contact-form-7.php:637
204
  msgid "Contact form saved."
205
  msgstr ""
206
 
207
+ #: contact-form-7/wp-contact-form-7.php:640
208
  msgid "Contact form deleted."
209
  msgstr ""
210
 
211
+ #: contact-form-7/wp-contact-form-7.php:651
212
  msgid "Untitled"
213
  msgstr ""
214
 
215
+ #: contact-form-7/wp-contact-form-7.php:678
216
  msgid "Your Name"
217
  msgstr ""
218
 
219
+ #: contact-form-7/wp-contact-form-7.php:678
220
+ #: contact-form-7/wp-contact-form-7.php:680
221
  msgid "(required)"
222
  msgstr ""
223
 
224
+ #: contact-form-7/wp-contact-form-7.php:680
225
  msgid "Your Email"
226
  msgstr ""
227
 
228
+ #: contact-form-7/wp-contact-form-7.php:682
229
  msgid "Subject"
230
  msgstr ""
231
 
232
+ #: contact-form-7/wp-contact-form-7.php:684
233
  msgid "Your Message"
234
  msgstr ""
235
 
236
+ #: contact-form-7/wp-contact-form-7.php:686
237
+ #: contact-form-7/wp-contact-form-7.php:1325
238
  msgid "Send"
239
  msgstr ""
240
 
241
+ #: contact-form-7/wp-contact-form-7.php:739
242
  msgid "Your message was sent successfully. Thanks."
243
  msgstr ""
244
 
245
+ #: contact-form-7/wp-contact-form-7.php:741
246
+ #: contact-form-7/wp-contact-form-7.php:743
247
  msgid "Failed to send your message. Please try later or contact administrator by other way."
248
  msgstr ""
249
 
250
+ #: contact-form-7/wp-contact-form-7.php:745
251
  msgid "Validation errors occurred. Please confirm the fields and submit it again."
252
  msgstr ""
253
 
254
+ #: contact-form-7/wp-contact-form-7.php:747
255
  msgid "Please accept the terms to proceed."
256
  msgstr ""
257
 
258
+ #: contact-form-7/wp-contact-form-7.php:749
259
  msgid "Email address seems invalid."
260
  msgstr ""
261
 
262
+ #: contact-form-7/wp-contact-form-7.php:751
263
  msgid "Please fill the required field."
264
  msgstr ""
265
 
266
+ #: contact-form-7/wp-contact-form-7.php:753
267
  msgid "Your entered code is incorrect."
268
  msgstr ""
269
 
270
+ #: contact-form-7/wp-contact-form-7.php:755
271
+ msgid "Failed to upload file."
272
+ msgstr ""
273
+
274
+ #: contact-form-7/wp-contact-form-7.php:757
275
+ msgid "This file type is not allowed."
276
+ msgstr ""
277
+
278
+ #: contact-form-7/wp-contact-form-7.php:759
279
+ msgid "This file is too large."
280
+ msgstr ""
281
+
282
+ #: contact-form-7/includes/admin-panel.php:20
283
  msgid "Add new"
284
  msgstr ""
285
 
286
+ #: contact-form-7/includes/admin-panel.php:42
287
+ msgid "Copy this code and paste it into your post, page or text widget content."
288
+ msgstr ""
289
+
290
+ #: contact-form-7/includes/admin-panel.php:49
291
+ #: contact-form-7/includes/admin-panel.php:253
292
+ msgid "Save"
293
+ msgstr ""
294
+
295
+ #: contact-form-7/includes/admin-panel.php:55
296
+ msgid "Delete this contact form"
297
+ msgstr ""
298
+
299
+ #: contact-form-7/includes/admin-panel.php:56
300
+ msgid ""
301
+ "You are about to delete this contact form.\n"
302
+ " 'Cancel' to stop, 'OK' to delete."
303
  msgstr ""
304
 
305
+ #: contact-form-7/includes/admin-panel.php:70
306
  msgid "Form"
307
  msgstr ""
308
 
309
+ #: contact-form-7/includes/admin-panel.php:90
310
  msgid "Mail"
311
  msgstr ""
312
 
313
+ #: contact-form-7/includes/admin-panel.php:97
314
+ #: contact-form-7/includes/admin-panel.php:149
315
  msgid "To:"
316
  msgstr ""
317
 
318
+ #: contact-form-7/includes/admin-panel.php:101
319
+ #: contact-form-7/includes/admin-panel.php:153
320
  msgid "From:"
321
  msgstr ""
322
 
323
+ #: contact-form-7/includes/admin-panel.php:105
324
+ #: contact-form-7/includes/admin-panel.php:157
325
  msgid "Subject:"
326
  msgstr ""
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 ""
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 ""
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 ""
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 ""
347
 
348
+ #: contact-form-7/includes/admin-panel.php:136
349
  msgid "Mail (2)"
350
  msgstr ""
351
 
352
+ #: contact-form-7/includes/admin-panel.php:143
353
  msgid "Use mail (2)"
354
  msgstr ""
355
 
356
+ #: contact-form-7/includes/admin-panel.php:188
357
  msgid "Messages"
358
  msgstr ""
359
 
360
+ #: contact-form-7/includes/admin-panel.php:196
361
  msgid "Sender's message was sent successfully"
362
  msgstr ""
363
 
364
+ #: contact-form-7/includes/admin-panel.php:200
365
  msgid "Sender's message was failed to send"
366
  msgstr ""
367
 
368
+ #: contact-form-7/includes/admin-panel.php:204
369
  msgid "Akismet judged the sending activity as spamming"
370
  msgstr ""
371
 
372
+ #: contact-form-7/includes/admin-panel.php:208
373
  msgid "Validation errors occurred"
374
  msgstr ""
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 ""
379
 
380
+ #: contact-form-7/includes/admin-panel.php:216
381
  msgid "Email address that sender entered is invalid"
382
  msgstr ""
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 ""
387
 
388
+ #: contact-form-7/includes/admin-panel.php:224
389
  msgid "The code that sender entered does not match the CAPTCHA"
390
  msgstr ""
391
 
392
+ #: contact-form-7/includes/admin-panel.php:228
393
+ msgid "Uploading a file fails for any reason"
394
  msgstr ""
395
 
396
+ #: contact-form-7/includes/admin-panel.php:232
397
+ msgid "Uploaded file is not allowed file type"
398
  msgstr ""
399
 
400
+ #: contact-form-7/includes/admin-panel.php:236
401
+ msgid "Uploaded file is too large"
 
 
402
  msgstr ""
403
 
screenshot-1.png CHANGED
Binary file
screenshot-2.png DELETED
Binary file
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.1.1
8
  Author URI: http://ideasilo.wordpress.com/
9
  */
10
 
@@ -25,11 +25,7 @@ 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.8.1.1');
29
-
30
- function wpcf7_version() {
31
- return WPCF7_VERSION;
32
- }
33
 
34
  if (! defined('WP_CONTENT_DIR'))
35
  define('WP_CONTENT_DIR', ABSPATH . 'wp-content');
@@ -51,9 +47,16 @@ if (! defined('WPCF7_CAPTCHA_TMP_DIR'))
51
  if (! defined('WPCF7_CAPTCHA_TMP_URL'))
52
  define('WPCF7_CAPTCHA_TMP_URL', WP_CONTENT_URL . '/uploads/wpcf7_captcha');
53
 
54
- if (! defined('WPCF7_SUBSTITUTE_WPAUTOP'))
55
- define('WPCF7_SUBSTITUTE_WPAUTOP', true);
56
-
 
 
 
 
 
 
 
57
  if (! function_exists('wpcf7_read_capability')) {
58
  function wpcf7_read_capability() { return 'edit_posts'; }
59
  }
@@ -68,8 +71,7 @@ class tam_contact_form_seven {
68
  var $captcha;
69
 
70
  function tam_contact_form_seven() {
71
- // This backslash replacement for Win32 will be unnecessary. See http://trac.wordpress.org/ticket/3002
72
- add_action('activate_' . strtr(plugin_basename(__FILE__), '\\', '/'), array(&$this, 'set_initial'));
73
  add_action('init', array(&$this, 'load_plugin_textdomain'));
74
  add_action('admin_menu', array(&$this, 'add_pages'));
75
  add_action('admin_head', array(&$this, 'admin_head'));
@@ -77,57 +79,13 @@ class tam_contact_form_seven {
77
  add_action('wp_print_scripts', array(&$this, 'load_js'));
78
  add_action('init', array(&$this, 'init_switch'), 11);
79
  add_filter('the_content', array(&$this, 'the_content_filter'), 9);
80
- add_filter('widget_text', array(&$this, 'widget_text_filter'));
81
- if (WPCF7_SUBSTITUTE_WPAUTOP && remove_filter('the_content', 'wpautop'))
82
- add_filter('the_content', array(&$this, 'wpautop_substitute'));
83
- }
84
-
85
- function wpautop_substitute($pee, $br = 1) {
86
- $pee = $pee . "\n"; // just to make things a little easier, pad the end
87
- $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
88
- // Space things out a little
89
- $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)';
90
- $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee);
91
- $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
92
- $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines
93
- if ( strpos($pee, '<object') !== false ) {
94
- $pee = preg_replace('|\s*<param([^>]*)>\s*|', "<param$1>", $pee); // no pee inside object/embed
95
- $pee = preg_replace('|\s*</embed>\s*|', '</embed>', $pee);
96
- }
97
- $pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates
98
- // make paragraphs, including one at the end
99
- $pees = preg_split('/\n\s*\n/', $pee, -1, PREG_SPLIT_NO_EMPTY);
100
- $pee = '';
101
- foreach ( $pees as $tinkle )
102
- $pee .= '<p>' . trim($tinkle, "\n") . "</p>\n";
103
- $pee = preg_replace('|<p>\s*?</p>|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace
104
- $pee = preg_replace('!<p>([^<]+)\s*?(</(?:div|address|form)[^>]*>)!', "<p>$1</p>$2", $pee);
105
- $pee = preg_replace( '|<p>|', "$1<p>", $pee );
106
- $pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee); // don't pee all over a tag
107
- $pee = preg_replace("|<p>(<li.+?)</p>|", "$1", $pee); // problem with nested lists
108
- $pee = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee);
109
- $pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee);
110
- $pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee);
111
- $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee);
112
- if ($br) {
113
- $pee = preg_replace_callback('/<(script|style).*?<\/\\1>/s', create_function('$matches', 'return str_replace("\n", "<WPPreserveNewline />", $matches[0]);'), $pee);
114
- $pee = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $pee); // optionally make line breaks
115
- $pee = str_replace('<WPPreserveNewline />', "\n", $pee);
116
- }
117
- $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*<br />!', "$1", $pee);
118
- $pee = preg_replace('!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $pee);
119
- if (strpos($pee, '<pre') !== false)
120
- $pee = preg_replace_callback('!(<pre.*?>)(.*?)</pre>!is', 'clean_pre', $pee );
121
- $pee = preg_replace( "|\n</p>$|", '</p>', $pee );
122
 
123
- if (function_exists('get_shortcode_regex'))
124
- $pee = preg_replace('/<p>\s*?(' . get_shortcode_regex() . ')\s*<\/p>/s', '$1', $pee); // don't auto-p wrap shortcodes that stand alone
125
-
126
- return $pee;
127
- }
128
 
129
  function init_switch() {
130
- if ('POST' == $_SERVER['REQUEST_METHOD'] && $_POST['_wpcf7_is_ajax_call']) {
131
  $this->ajax_json_echo();
132
  exit();
133
  } elseif (! is_admin()) {
@@ -137,6 +95,8 @@ class tam_contact_form_seven {
137
  }
138
 
139
  function ajax_json_echo() {
 
 
140
  if (isset($_POST['_wpcf7'])) {
141
  $id = (int) $_POST['_wpcf7'];
142
  $unit_tag = $_POST['_wpcf7_unit_tag'];
@@ -145,6 +105,11 @@ class tam_contact_form_seven {
145
  $cf = stripslashes_deep($cf);
146
  $validation = $this->validate($cf);
147
 
 
 
 
 
 
148
  $captchas = $this->refill_captcha($cf);
149
  if (! empty($captchas)) {
150
  $captchas_js = array();
@@ -156,57 +121,160 @@ class tam_contact_form_seven {
156
  $captcha = 'null';
157
  }
158
 
159
- @header('Content-Type: text/plain; charset=' . get_option('blog_charset'));
160
-
161
  if (! $validation['valid']) { // Validation error occured
162
  $invalids = array();
163
  foreach ($validation['reason'] as $name => $reason) {
164
  $invalids[] = '{ into: "span.wpcf7-form-control-wrap.' . $name . '", message: "' . js_escape($reason) . '" }';
165
  }
166
  $invalids = '[' . join(', ', $invalids) . ']';
167
- echo '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'validation_error')) . '", into: "#' . $unit_tag . '", invalids: ' . $invalids . ', captcha: ' . $captcha . ' }';
168
  } elseif (! $this->acceptance($cf)) { // Not accepted terms
169
- echo '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'accept_terms')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ' }';
170
  } elseif ($this->akismet($cf)) { // Spam!
171
- echo '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'akismet_says_spam')) . '", into: "#' . $unit_tag . '", spam: 1, captcha: ' . $captcha . ' }';
172
- } elseif ($this->mail($cf)) {
173
- echo '{ mailSent: 1, message: "' . js_escape($this->message($cf, 'mail_sent_ok')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ' }';
174
  } else {
175
- echo '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'mail_sent_ng')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ' }';
176
  }
 
 
 
 
 
177
  }
178
  }
 
 
 
 
 
 
 
 
179
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
 
181
- function mail($contact_form) {
 
 
 
 
 
182
  $contact_form = $this->upgrade($contact_form);
183
- $regex = '/\[\s*([a-zA-Z][0-9a-zA-Z:._-]*)\s*\]/';
184
- $callback = array(&$this, 'mail_callback');
185
- $mail_subject = preg_replace_callback($regex, $callback, $contact_form['mail']['subject']);
186
- $mail_sender = preg_replace_callback($regex, $callback, $contact_form['mail']['sender']);
187
- $mail_body = preg_replace_callback($regex, $callback, $contact_form['mail']['body']);
188
- $mail_recipient = preg_replace_callback($regex, $callback, $contact_form['mail']['recipient']);
189
- $mail_headers = "From: $mail_sender\n"
190
- . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
191
- if (@wp_mail($mail_recipient, $mail_subject, $mail_body, $mail_headers)) {
192
-
193
- // Mail 2
194
- if ($contact_form['mail_2']['active']) {
195
- $mail_2_subject = preg_replace_callback($regex, $callback, $contact_form['mail_2']['subject']);
196
- $mail_2_sender = preg_replace_callback($regex, $callback, $contact_form['mail_2']['sender']);
197
- $mail_2_body = preg_replace_callback($regex, $callback, $contact_form['mail_2']['body']);
198
- $mail_2_recipient = preg_replace_callback($regex, $callback, $contact_form['mail_2']['recipient']);
199
- $mail_2_headers = "From: $mail_2_sender\n"
200
- . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
201
- @wp_mail($mail_2_recipient, $mail_2_subject, $mail_2_body, $mail_2_headers);
202
- }
203
-
204
- return true;
205
- } else {
206
- return false;
207
- }
208
  }
209
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  function mail_callback($matches) {
211
  if (isset($_POST[$matches[1]])) {
212
  $submitted = $_POST[$matches[1]];
@@ -276,7 +344,7 @@ class tam_contact_form_seven {
276
  $ignore = array('HTTP_COOKIE');
277
 
278
  foreach ($_SERVER as $key => $value)
279
- if (! in_array($key, $ignore))
280
  $c["$key"] = $value;
281
 
282
  $query_string = '';
@@ -354,6 +422,7 @@ class tam_contact_form_seven {
354
  function upgrade($contact_form) {
355
  $contact_form = $this->upgrade_160($contact_form);
356
  $contact_form = $this->upgrade_181($contact_form);
 
357
  return $contact_form;
358
  }
359
 
@@ -377,13 +446,29 @@ class tam_contact_form_seven {
377
  );
378
  return $contact_form;
379
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
380
 
381
  /* Admin panel */
382
 
383
  function admin_menu_parent() {
384
  global $wp_version;
385
  if (version_compare($wp_version, '2.7-alpha', '>='))
386
- return 'import.php';
387
  else
388
  return 'edit.php';
389
  }
@@ -407,14 +492,18 @@ class tam_contact_form_seven {
407
  'subject' => trim($_POST['wpcf7-mail-subject']),
408
  'sender' => trim($_POST['wpcf7-mail-sender']),
409
  'body' => trim($_POST['wpcf7-mail-body']),
410
- 'recipient' => trim($_POST['wpcf7-mail-recipient'])
 
 
411
  );
412
  $mail_2 = array(
413
  'active' => (1 == $_POST['wpcf7-mail-2-active']) ? true : false,
414
  'subject' => trim($_POST['wpcf7-mail-2-subject']),
415
  'sender' => trim($_POST['wpcf7-mail-2-sender']),
416
  'body' => trim($_POST['wpcf7-mail-2-body']),
417
- 'recipient' => trim($_POST['wpcf7-mail-2-recipient'])
 
 
418
  );
419
  $messages = array(
420
  'mail_sent_ok' => trim($_POST['wpcf7-message-mail-sent-ok']),
@@ -424,7 +513,10 @@ class tam_contact_form_seven {
424
  'accept_terms' => trim($_POST['wpcf7-message-accept-terms']),
425
  'invalid_email' => trim($_POST['wpcf7-message-invalid-email']),
426
  'invalid_required' => trim($_POST['wpcf7-message-invalid-required']),
427
- 'captcha_not_match' => trim($_POST['wpcf7-message-captcha-not-match'])
 
 
 
428
  );
429
  $options = array(
430
  'recipient' => trim($_POST['wpcf7-options-recipient']) // For backward compatibility.
@@ -460,31 +552,11 @@ class tam_contact_form_seven {
460
  global $plugin_page, $wp_version;
461
 
462
  if (isset($plugin_page) && $plugin_page == plugin_basename(__FILE__)) {
 
463
  $admin_stylesheet_url = WPCF7_PLUGIN_URL . '/admin-stylesheet.css';
464
- echo '<link rel="stylesheet" href="' . $admin_stylesheet_url . '" type="text/css" />';
465
-
466
- $javascript_url = WPCF7_PLUGIN_URL . '/wpcf7-admin.js';
467
-
468
- /* default styles for backward compatibility */
469
- if (version_compare($wp_version, '2.5', '<')) : // Using old WordPress
470
- ?>
471
- <style type="text/css">
472
- .subsubsub { list-style: none; margin: 14px 0 8px 0; padding: 0; white-space: nowrap; font-size: 12px; }
473
- .subsubsub a { line-height: 200%; padding: 3px; text-decoration: none; }
474
- .subsubsub a.current { font-weight: bold; background: none; border: none;}
475
- .subsubsub li { display: inline; margin: 0; padding: 0; }
476
- </style>
477
- <?php
478
- endif;
479
 
480
- /* looks little bit more WP 2.7 fashion */
481
- if (version_compare($wp_version, '2.7-alpha', '>=')) : // Using WordPress 2.7 or latar
482
- ?>
483
- <style type="text/css">
484
- input#contact-form-anchor-text { -moz-border-radius: 6px; -khtml-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; }
485
- </style>
486
- <?php
487
- endif;
488
 
489
  ?>
490
  <script type="text/javascript">
@@ -504,6 +576,7 @@ var _wpcf7 = {
504
  isAcceptanceInvert: "<?php echo js_escape(__("Make this checkbox work inversely?", 'wpcf7')); ?>",
505
  isAcceptanceInvertMeans: "<?php echo js_escape(__("* That means visitor who accepts the term unchecks it.", 'wpcf7')); ?>",
506
  captcha: "<?php echo js_escape(__('CAPTCHA', 'wpcf7')); ?>",
 
507
  submit: "<?php echo js_escape(__('Submit button', 'wpcf7')); ?>",
508
  tagName: "<?php echo js_escape(__('Name', 'wpcf7')); ?>",
509
  isRequiredField: "<?php echo js_escape(__('Required field?', 'wpcf7')); ?>",
@@ -517,7 +590,7 @@ var _wpcf7 = {
517
  akismetAuthor: "<?php echo js_escape(__("This field requires author's name", 'wpcf7')); ?>",
518
  akismetAuthorUrl: "<?php echo js_escape(__("This field requires author's URL", 'wpcf7')); ?>",
519
  akismetAuthorEmail: "<?php echo js_escape(__("This field requires author's email address", 'wpcf7')); ?>",
520
- generatedTag: "<?php echo js_escape(__("Copy and paste this code into the form", 'wpcf7')); ?>",
521
  fgColor: "<?php echo js_escape(__("Foreground color", 'wpcf7')); ?>",
522
  bgColor: "<?php echo js_escape(__("Background color", 'wpcf7')); ?>",
523
  imageSize: "<?php echo js_escape(__("Image size", 'wpcf7')); ?>",
@@ -530,7 +603,9 @@ var _wpcf7 = {
530
  tagForInputField: "<?php echo js_escape(__("For input field", 'wpcf7')); ?>",
531
  oneChoicePerLine: "<?php echo js_escape(__("* One choice per line.", 'wpcf7')); ?>",
532
  show: "<?php echo js_escape(__("Show", 'wpcf7')); ?>",
533
- hide: "<?php echo js_escape(__("Hide", 'wpcf7')); ?>"
 
 
534
  }
535
  };
536
  //]]>
@@ -583,8 +658,8 @@ var _wpcf7 = {
583
  $cf = stripslashes_deep($contact_forms[$current]);
584
  $cf = $this->upgrade($cf);
585
  }
586
-
587
- require_once WPCF7_PLUGIN_DIR . '/includes/admin-panel.php';
588
  }
589
 
590
  function default_pack($title, $initial = false) {
@@ -638,7 +713,12 @@ var _wpcf7 = {
638
  $invalid_email = $this->default_message('invalid_email');
639
  $invalid_required = $this->default_message('invalid_required');
640
  $captcha_not_match = $this->default_message('captcha_not_match');
641
- return compact('mail_sent_ok', 'mail_sent_ng', 'akismet_says_spam', 'validation_error', 'accept_terms', 'invalid_email', 'invalid_required', 'captcha_not_match');
 
 
 
 
 
642
  }
643
 
644
  function default_options_template() {
@@ -671,6 +751,12 @@ var _wpcf7 = {
671
  return __('Please fill the required field.', 'wpcf7');
672
  case 'captcha_not_match':
673
  return __('Your entered code is incorrect.', 'wpcf7');
 
 
 
 
 
 
674
  }
675
  }
676
 
@@ -683,17 +769,28 @@ var _wpcf7 = {
683
  if ($cf = $contact_forms[$id]) {
684
  $cf = stripslashes_deep($cf);
685
  $validation = $this->validate($cf);
 
 
 
 
 
 
686
  if (! $validation['valid']) {
687
  $_POST['_wpcf7_validation_errors'] = array('id' => $id, 'messages' => $validation['reason']);
688
  } elseif (! $this->acceptance($cf)) { // Not accepted terms
689
  $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message($cf, 'accept_terms'));
690
  } elseif ($this->akismet($cf)) { // Spam!
691
  $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message($cf, 'akismet_says_spam'), 'spam' => true);
692
- } elseif ($this->mail($cf)) {
693
  $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => true, 'message' => $this->message($cf, 'mail_sent_ok'));
694
  } else {
695
  $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message($cf, 'mail_sent_ng'));
696
  }
 
 
 
 
 
697
  }
698
  }
699
 
@@ -708,10 +805,7 @@ var _wpcf7 = {
708
  $this->processing_within = 'p' . get_the_ID();
709
  $this->unit_count = 0;
710
 
711
- $regex = '/\[\s*contact-form\s+(\d+)(?:\s+.*?)?\s*\]/';
712
- return preg_replace_callback($regex, array(&$this, 'the_content_filter_callback'), $content);
713
-
714
- $this->processing_within = null;
715
  }
716
 
717
  function widget_text_filter($content) {
@@ -719,17 +813,26 @@ var _wpcf7 = {
719
  $this->processing_within = 'w' . $this->widget_count;
720
  $this->unit_count = 0;
721
 
722
- $regex = '/\[\s*contact-form\s+(\d+)(?:\s+.*?)?\s*\]/';
723
- return preg_replace_callback($regex, array(&$this, 'the_content_filter_callback'), $content);
724
-
725
- $this->processing_within = null;
726
  }
727
-
728
- function the_content_filter_callback($matches) {
 
 
 
 
 
 
 
 
 
 
 
729
  $contact_forms = $this->contact_forms();
730
 
731
- $id = (int) $matches[1];
732
- if (! ($cf = $contact_forms[$id])) return $matches[0];
733
 
734
  $cf = stripslashes_deep($cf);
735
 
@@ -741,8 +844,18 @@ var _wpcf7 = {
741
 
742
  $url = parse_url($_SERVER['REQUEST_URI']);
743
  $url = $url['path'] . (empty($url['query']) ? '' : '?' . $url['query']) . '#' . $unit_tag;
 
 
 
 
 
 
 
 
 
 
744
 
745
- $form .= '<form action="' . $url . '" method="post" class="wpcf7-form">';
746
  $form .= '<div style="display: none;">';
747
  $form .= '<input type="hidden" name="_wpcf7" value="' . $id . '" />';
748
  $form .= '<input type="hidden" name="_wpcf7_version" value="' . wpcf7_version() . '" />';
@@ -778,9 +891,57 @@ var _wpcf7 = {
778
  $form .= '</div>';
779
 
780
  $this->processing_unit_tag = null;
 
 
 
 
781
  return $form;
782
- }
783
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
784
  function validate($contact_form) {
785
  $fes = $this->form_elements($contact_form['form'], false);
786
  $valid = true;
@@ -802,12 +963,12 @@ var _wpcf7 = {
802
  if (is_array($_POST[$name])) {
803
  foreach ($_POST[$name] as $key => $value) {
804
  $value = stripslashes($value);
805
- if (! in_array($value, $values)) // Not in given choices.
806
  unset($_POST[$name][$key]);
807
  }
808
  } else {
809
  $value = stripslashes($_POST[$name]);
810
- if (! in_array($value, $values)) // Not in given choices.
811
  $_POST[$name] = '';
812
  }
813
  }
@@ -901,8 +1062,8 @@ var _wpcf7 = {
901
  /* Processing form element placeholders */
902
 
903
  function form_elements($form, $replace = true) {
904
- $types = 'text[*]?|email[*]?|textarea[*]?|select[*]?|checkbox[*]?|radio|acceptance|captchac|captchar';
905
- $regex = '%\[\s*(' . $types . ')(\s+[a-zA-Z][0-9a-zA-Z:._-]*)([-0-9a-zA-Z:#_/\s]*)?((?:\s*(?:"[^"]*"|\'[^\']*\'))*)?\s*\]%';
906
  $submit_regex = '%\[\s*submit(\s[-0-9a-zA-Z:#_/\s]*)?(\s+(?:"[^"]*"|\'[^\']*\'))?\s*\]%';
907
  if ($replace) {
908
  $form = preg_replace_callback($regex, array(&$this, 'form_element_replace_callback'), $form);
@@ -1046,10 +1207,10 @@ var _wpcf7 = {
1046
  $html = '';
1047
  foreach ($values as $key => $value) {
1048
  $selected = '';
1049
- if (! $empty_select && in_array($key + 1, $scr_default))
1050
  $selected = ' selected="selected"';
1051
  if ($this->processing_unit_tag == $_POST['_wpcf7_unit_tag'] && (
1052
- $multiple && in_array($value, $_POST[$name]) ||
1053
  ! $multiple && $_POST[$name] == $value))
1054
  $selected = ' selected="selected"';
1055
  $html .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . $value . '</option>';
@@ -1075,10 +1236,10 @@ var _wpcf7 = {
1075
 
1076
  foreach ($values as $key => $value) {
1077
  $checked = '';
1078
- if (in_array($key + 1, $scr_default))
1079
  $checked = ' checked="checked"';
1080
  if ($this->processing_unit_tag == $_POST['_wpcf7_unit_tag'] && (
1081
- $multiple && in_array($value, $_POST[$name]) ||
1082
  ! $multiple && $_POST[$name] == $value))
1083
  $checked = ' checked="checked"';
1084
  if (preg_grep('%^label[_-]?first$%', $options)) { // put label first, input last
@@ -1127,6 +1288,12 @@ var _wpcf7 = {
1127
  $html = '<input type="hidden" name="_wpcf7_captcha_challenge_' . $name . '" value="' . $ref . '" />' . $html;
1128
  return $html;
1129
  break;
 
 
 
 
 
 
1130
  }
1131
  }
1132
 
@@ -1195,6 +1362,11 @@ var _wpcf7 = {
1195
  }
1196
  }
1197
 
 
 
 
 
 
1198
  function init_captcha() {
1199
  if (! is_object($this->captcha))
1200
  $this->captcha = new tam_captcha();
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.9
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.9');
 
 
 
 
29
 
30
  if (! defined('WP_CONTENT_DIR'))
31
  define('WP_CONTENT_DIR', ABSPATH . 'wp-content');
47
  if (! defined('WPCF7_CAPTCHA_TMP_URL'))
48
  define('WPCF7_CAPTCHA_TMP_URL', WP_CONTENT_URL . '/uploads/wpcf7_captcha');
49
 
50
+ if (! defined('WPCF7_UPLOADS_TMP_DIR'))
51
+ define('WPCF7_UPLOADS_TMP_DIR', WP_CONTENT_DIR . '/uploads/wpcf7_uploads');
52
+
53
+ if (! defined('WPCF7_AUTOP'))
54
+ define('WPCF7_AUTOP', true);
55
+
56
+ if (! function_exists('wpcf7_version')) {
57
+ function wpcf7_version() { return WPCF7_VERSION; }
58
+ }
59
+
60
  if (! function_exists('wpcf7_read_capability')) {
61
  function wpcf7_read_capability() { return 'edit_posts'; }
62
  }
71
  var $captcha;
72
 
73
  function tam_contact_form_seven() {
74
+ add_action('activate_' . plugin_basename(__FILE__), array(&$this, 'set_initial'));
 
75
  add_action('init', array(&$this, 'load_plugin_textdomain'));
76
  add_action('admin_menu', array(&$this, 'add_pages'));
77
  add_action('admin_head', array(&$this, 'admin_head'));
79
  add_action('wp_print_scripts', array(&$this, 'load_js'));
80
  add_action('init', array(&$this, 'init_switch'), 11);
81
  add_filter('the_content', array(&$this, 'the_content_filter'), 9);
82
+ add_filter('widget_text', array(&$this, 'widget_text_filter'), 9);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
+ add_shortcode('contact-form', array(&$this, 'contact_form_tag_func'));
85
+ }
 
 
 
86
 
87
  function init_switch() {
88
+ if ('POST' == $_SERVER['REQUEST_METHOD'] && 1 == (int) $_POST['_wpcf7_is_ajax_call']) {
89
  $this->ajax_json_echo();
90
  exit();
91
  } elseif (! is_admin()) {
95
  }
96
 
97
  function ajax_json_echo() {
98
+ $echo = '';
99
+
100
  if (isset($_POST['_wpcf7'])) {
101
  $id = (int) $_POST['_wpcf7'];
102
  $unit_tag = $_POST['_wpcf7_unit_tag'];
105
  $cf = stripslashes_deep($cf);
106
  $validation = $this->validate($cf);
107
 
108
+ $handled_uploads = $this->handle_uploads($cf);
109
+ if (! $handled_uploads['validation']['valid'])
110
+ $validation['valid'] = false;
111
+ $validation['reason'] = array_merge($validation['reason'], $handled_uploads['validation']['reason']);
112
+
113
  $captchas = $this->refill_captcha($cf);
114
  if (! empty($captchas)) {
115
  $captchas_js = array();
121
  $captcha = 'null';
122
  }
123
 
 
 
124
  if (! $validation['valid']) { // Validation error occured
125
  $invalids = array();
126
  foreach ($validation['reason'] as $name => $reason) {
127
  $invalids[] = '{ into: "span.wpcf7-form-control-wrap.' . $name . '", message: "' . js_escape($reason) . '" }';
128
  }
129
  $invalids = '[' . join(', ', $invalids) . ']';
130
+ $echo = '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'validation_error')) . '", into: "#' . $unit_tag . '", invalids: ' . $invalids . ', captcha: ' . $captcha . ' }';
131
  } elseif (! $this->acceptance($cf)) { // Not accepted terms
132
+ $echo = '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'accept_terms')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ' }';
133
  } elseif ($this->akismet($cf)) { // Spam!
134
+ $echo = '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'akismet_says_spam')) . '", into: "#' . $unit_tag . '", spam: 1, captcha: ' . $captcha . ' }';
135
+ } elseif ($this->mail($cf, $handled_uploads['files'])) {
136
+ $echo = '{ mailSent: 1, message: "' . js_escape($this->message($cf, 'mail_sent_ok')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ' }';
137
  } else {
138
+ $echo = '{ mailSent: 0, message: "' . js_escape($this->message($cf, 'mail_sent_ng')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ' }';
139
  }
140
+
141
+ // remove upload files
142
+ foreach ($handled_uploads['files'] as $name => $path) {
143
+ @unlink($path);
144
+ }
145
  }
146
  }
147
+
148
+ if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
149
+ @header('Content-Type: application/json; charset=' . get_option('blog_charset'));
150
+ echo $echo;
151
+ } else {
152
+ @header('Content-Type: text/html; charset=' . get_option('blog_charset'));
153
+ echo '<textarea>' . $echo . '</textarea>';
154
+ }
155
  }
156
+
157
+ function handle_uploads($contact_form) {
158
+ $files = array();
159
+ $valid = true;
160
+ $reason = array();
161
+
162
+ $this->init_uploads(); // Confirm upload dir
163
+ $uploads_dir = WPCF7_UPLOADS_TMP_DIR;
164
+
165
+ $fes = $this->form_elements($contact_form['form'], false);
166
+
167
+ foreach ($fes as $fe) {
168
+ if ('file' != $fe['type'] && 'file*' != $fe['type'])
169
+ continue;
170
+
171
+ $name = $fe['name'];
172
+ $options = (array) $fe['options'];
173
+
174
+ $file = $_FILES[$name];
175
+
176
+ if (empty($file) && 'file*' == $fe['type']) {
177
+ $valid = false;
178
+ $reason[$name] = $this->message($contact_form, 'invalid_required');
179
+ continue;
180
+ }
181
+
182
+ if (! is_uploaded_file($file['tmp_name']))
183
+ continue;
184
+
185
+ $filename = wp_unique_filename($uploads_dir, $file['name']);
186
+ $new_file = trailingslashit($uploads_dir) . $filename;
187
+ if (false === @move_uploaded_file($file['tmp_name'], $new_file)) {
188
+ $valid = false;
189
+ $reason[$name] = $this->message($contact_form, 'upload_failed');
190
+ continue;
191
+ }
192
+
193
+ $files[$name] = $new_file;
194
+
195
+ if ($allowed_types_options = preg_grep('%^filetypes:%', $options)) {
196
+ $pattern = '';
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
+ $pattern = trim($pattern, '|');
208
+ $pattern = '(' . $pattern . ')';
209
+ $pattern = '/\.' . $pattern . '$/i';
210
+ if (! preg_match($pattern, $file['name'])) {
211
+ $valid = false;
212
+ $reason[$name] = $this->message($contact_form, 'upload_file_type_invalid');
213
+ continue;
214
+ }
215
+ }
216
+
217
+ if ($allowed_size_options = preg_grep('%^limit:%', $options)) {
218
+ $allowed_size_option = array_shift($allowed_size_options);
219
+ preg_match('/^limit:([1-9][0-9]*)$/', $allowed_size_option, $matches);
220
+ $allowed_size = (int) $matches[1];
221
+
222
+ if ($file['size'] > $allowed_size) {
223
+ $valid = false;
224
+ $reason[$name] = $this->message($contact_form, 'upload_file_too_large');
225
+ continue;
226
+ }
227
+ }
228
+ }
229
+
230
+ $validation = compact('valid', 'reason');
231
+
232
+ return compact('files', 'validation');
233
+ }
234
 
235
+ function mail($contact_form, $files = array()) {
236
+ global $wp_version;
237
+
238
+ if (version_compare($wp_version, '2.7-beta1', '<')) // wp_mail() file uploading option isn't suppoted
239
+ $files = array();
240
+
241
  $contact_form = $this->upgrade($contact_form);
242
+
243
+ if ($this->compose_and_send_mail($contact_form['mail'], $files)) {
244
+ if ($contact_form['mail_2']['active'])
245
+ $this->compose_and_send_mail($contact_form['mail_2'], $files);
246
+
247
+ return true;
248
+ }
249
+
250
+ return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
251
  }
252
 
253
+ function compose_and_send_mail($mail_template, $attachments = array()) {
254
+ $regex = '/\[\s*([a-zA-Z][0-9a-zA-Z:._-]*)\s*\]/';
255
+ $callback = array(&$this, 'mail_callback');
256
+ $mail_subject = preg_replace_callback($regex, $callback, $mail_template['subject']);
257
+ $mail_sender = preg_replace_callback($regex, $callback, $mail_template['sender']);
258
+ $mail_body = preg_replace_callback($regex, $callback, $mail_template['body']);
259
+ $mail_recipient = preg_replace_callback($regex, $callback, $mail_template['recipient']);
260
+ $mail_headers = "From: $mail_sender\n";
261
+
262
+ if ($mail_template['use_html'])
263
+ $mail_headers .= "Content-Type: text/html\n";
264
+
265
+ if ($attachments) {
266
+ $for_this_mail = array();
267
+ foreach ($attachments as $name => $path) {
268
+ if (false === strpos($mail_template['attachments'], "[${name}]"))
269
+ continue;
270
+ $for_this_mail[] = $path;
271
+ }
272
+ return @wp_mail($mail_recipient, $mail_subject, $mail_body, $mail_headers, $for_this_mail);
273
+ } else {
274
+ return @wp_mail($mail_recipient, $mail_subject, $mail_body, $mail_headers);
275
+ }
276
+ }
277
+
278
  function mail_callback($matches) {
279
  if (isset($_POST[$matches[1]])) {
280
  $submitted = $_POST[$matches[1]];
344
  $ignore = array('HTTP_COOKIE');
345
 
346
  foreach ($_SERVER as $key => $value)
347
+ if (! in_array($key, (array) $ignore))
348
  $c["$key"] = $value;
349
 
350
  $query_string = '';
422
  function upgrade($contact_form) {
423
  $contact_form = $this->upgrade_160($contact_form);
424
  $contact_form = $this->upgrade_181($contact_form);
425
+ $contact_form = $this->upgrade_190($contact_form);
426
  return $contact_form;
427
  }
428
 
446
  );
447
  return $contact_form;
448
  }
449
+
450
+ function upgrade_190($contact_form) {
451
+ if (! isset($contact_form['messages']) || ! is_array($contact_form['messages']))
452
+ $contact_form['messages'] = array();
453
+
454
+ if (! isset($contact_form['messages']['upload_failed']))
455
+ $contact_form['messages']['upload_failed'] = $this->default_message('upload_failed');
456
+
457
+ if (! isset($contact_form['messages']['upload_file_type_invalid']))
458
+ $contact_form['messages']['upload_file_type_invalid'] = $this->default_message('upload_file_type_invalid');
459
+
460
+ if (! isset($contact_form['messages']['upload_file_too_large']))
461
+ $contact_form['messages']['upload_file_too_large'] = $this->default_message('upload_file_too_large');
462
+
463
+ return $contact_form;
464
+ }
465
 
466
  /* Admin panel */
467
 
468
  function admin_menu_parent() {
469
  global $wp_version;
470
  if (version_compare($wp_version, '2.7-alpha', '>='))
471
+ return 'tools.php';
472
  else
473
  return 'edit.php';
474
  }
492
  'subject' => trim($_POST['wpcf7-mail-subject']),
493
  'sender' => trim($_POST['wpcf7-mail-sender']),
494
  'body' => trim($_POST['wpcf7-mail-body']),
495
+ 'recipient' => trim($_POST['wpcf7-mail-recipient']),
496
+ 'attachments' => trim($_POST['wpcf7-mail-attachments']),
497
+ 'use_html' => (1 == $_POST['wpcf7-mail-use-html']) ? true : false
498
  );
499
  $mail_2 = array(
500
  'active' => (1 == $_POST['wpcf7-mail-2-active']) ? true : false,
501
  'subject' => trim($_POST['wpcf7-mail-2-subject']),
502
  'sender' => trim($_POST['wpcf7-mail-2-sender']),
503
  'body' => trim($_POST['wpcf7-mail-2-body']),
504
+ 'recipient' => trim($_POST['wpcf7-mail-2-recipient']),
505
+ 'attachments' => trim($_POST['wpcf7-mail-2-attachments']),
506
+ 'use_html' => (1 == $_POST['wpcf7-mail-2-use-html']) ? true : false
507
  );
508
  $messages = array(
509
  'mail_sent_ok' => trim($_POST['wpcf7-message-mail-sent-ok']),
513
  'accept_terms' => trim($_POST['wpcf7-message-accept-terms']),
514
  'invalid_email' => trim($_POST['wpcf7-message-invalid-email']),
515
  'invalid_required' => trim($_POST['wpcf7-message-invalid-required']),
516
+ 'captcha_not_match' => trim($_POST['wpcf7-message-captcha-not-match']),
517
+ 'upload_failed' => trim($_POST['wpcf7-message-upload-failed']),
518
+ 'upload_file_type_invalid' => trim($_POST['wpcf7-message-upload-file-type-invalid']),
519
+ 'upload_file_too_large' => trim($_POST['wpcf7-message-upload-file-too-large'])
520
  );
521
  $options = array(
522
  'recipient' => trim($_POST['wpcf7-options-recipient']) // For backward compatibility.
552
  global $plugin_page, $wp_version;
553
 
554
  if (isset($plugin_page) && $plugin_page == plugin_basename(__FILE__)) {
555
+
556
  $admin_stylesheet_url = WPCF7_PLUGIN_URL . '/admin-stylesheet.css';
557
+ $javascript_url = WPCF7_PLUGIN_URL . '/wpcf7-admin.js';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
 
559
+ echo '<link rel="stylesheet" href="' . $admin_stylesheet_url . '" type="text/css" />';
 
 
 
 
 
 
 
560
 
561
  ?>
562
  <script type="text/javascript">
576
  isAcceptanceInvert: "<?php echo js_escape(__("Make this checkbox work inversely?", 'wpcf7')); ?>",
577
  isAcceptanceInvertMeans: "<?php echo js_escape(__("* That means visitor who accepts the term unchecks it.", 'wpcf7')); ?>",
578
  captcha: "<?php echo js_escape(__('CAPTCHA', 'wpcf7')); ?>",
579
+ fileUpload: "<?php echo js_escape(__('File upload', 'wpcf7')); ?>",
580
  submit: "<?php echo js_escape(__('Submit button', 'wpcf7')); ?>",
581
  tagName: "<?php echo js_escape(__('Name', 'wpcf7')); ?>",
582
  isRequiredField: "<?php echo js_escape(__('Required field?', 'wpcf7')); ?>",
590
  akismetAuthor: "<?php echo js_escape(__("This field requires author's name", 'wpcf7')); ?>",
591
  akismetAuthorUrl: "<?php echo js_escape(__("This field requires author's URL", 'wpcf7')); ?>",
592
  akismetAuthorEmail: "<?php echo js_escape(__("This field requires author's email address", 'wpcf7')); ?>",
593
+ generatedTag: "<?php echo js_escape(__("Copy this code and paste it into the form left.", 'wpcf7')); ?>",
594
  fgColor: "<?php echo js_escape(__("Foreground color", 'wpcf7')); ?>",
595
  bgColor: "<?php echo js_escape(__("Background color", 'wpcf7')); ?>",
596
  imageSize: "<?php echo js_escape(__("Image size", 'wpcf7')); ?>",
603
  tagForInputField: "<?php echo js_escape(__("For input field", 'wpcf7')); ?>",
604
  oneChoicePerLine: "<?php echo js_escape(__("* One choice per line.", 'wpcf7')); ?>",
605
  show: "<?php echo js_escape(__("Show", 'wpcf7')); ?>",
606
+ hide: "<?php echo js_escape(__("Hide", 'wpcf7')); ?>",
607
+ fileSizeLimit: "<?php echo js_escape(__("File size limit", 'wpcf7')); ?>",
608
+ acceptableFileTypes: "<?php echo js_escape(__("Acceptable file types", 'wpcf7')); ?>"
609
  }
610
  };
611
  //]]>
658
  $cf = stripslashes_deep($contact_forms[$current]);
659
  $cf = $this->upgrade($cf);
660
  }
661
+
662
+ require_once WPCF7_PLUGIN_DIR . '/includes/admin-panel.php';
663
  }
664
 
665
  function default_pack($title, $initial = false) {
713
  $invalid_email = $this->default_message('invalid_email');
714
  $invalid_required = $this->default_message('invalid_required');
715
  $captcha_not_match = $this->default_message('captcha_not_match');
716
+ $upload_failed = $this->default_message('upload_failed');
717
+ $upload_file_type_invalid = $this->default_message('upload_file_type_invalid');
718
+ $upload_file_too_large = $this->default_message('upload_file_too_large');
719
+ return compact('mail_sent_ok', 'mail_sent_ng', 'akismet_says_spam',
720
+ 'validation_error', 'accept_terms', 'invalid_email', 'invalid_required',
721
+ 'captcha_not_match', 'upload_failed', 'upload_file_type_invalid', 'upload_file_too_large');
722
  }
723
 
724
  function default_options_template() {
751
  return __('Please fill the required field.', 'wpcf7');
752
  case 'captcha_not_match':
753
  return __('Your entered code is incorrect.', 'wpcf7');
754
+ case 'upload_failed':
755
+ return __('Failed to upload file.', 'wpcf7');
756
+ case 'upload_file_type_invalid':
757
+ return __('This file type is not allowed.', 'wpcf7');
758
+ case 'upload_file_too_large':
759
+ return __('This file is too large.', 'wpcf7');
760
  }
761
  }
762
 
769
  if ($cf = $contact_forms[$id]) {
770
  $cf = stripslashes_deep($cf);
771
  $validation = $this->validate($cf);
772
+
773
+ $handled_uploads = $this->handle_uploads($cf);
774
+ if (! $handled_uploads['validation']['valid'])
775
+ $validation['valid'] = false;
776
+ $validation['reason'] = array_merge($validation['reason'], $handled_uploads['validation']['reason']);
777
+
778
  if (! $validation['valid']) {
779
  $_POST['_wpcf7_validation_errors'] = array('id' => $id, 'messages' => $validation['reason']);
780
  } elseif (! $this->acceptance($cf)) { // Not accepted terms
781
  $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message($cf, 'accept_terms'));
782
  } elseif ($this->akismet($cf)) { // Spam!
783
  $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message($cf, 'akismet_says_spam'), 'spam' => true);
784
+ } elseif ($this->mail($cf, $handled_uploads['files'])) {
785
  $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => true, 'message' => $this->message($cf, 'mail_sent_ok'));
786
  } else {
787
  $_POST['_wpcf7_mail_sent'] = array('id' => $id, 'ok' => false, 'message' => $this->message($cf, 'mail_sent_ng'));
788
  }
789
+
790
+ // remove upload files
791
+ foreach ($handled_uploads['files'] as $name => $path) {
792
+ @unlink($path);
793
+ }
794
  }
795
  }
796
 
805
  $this->processing_within = 'p' . get_the_ID();
806
  $this->unit_count = 0;
807
 
808
+ return $content;
 
 
 
809
  }
810
 
811
  function widget_text_filter($content) {
813
  $this->processing_within = 'w' . $this->widget_count;
814
  $this->unit_count = 0;
815
 
816
+ $regex = '/\[\s*contact-form\s+(\d+(?:\s+.*)?)\]/';
817
+ return preg_replace_callback($regex, array(&$this, 'widget_text_filter_callback'), $content);
 
 
818
  }
819
+
820
+ function widget_text_filter_callback($matches) {
821
+ return $this->contact_form_tag_func($matches[1]);
822
+ }
823
+
824
+ function contact_form_tag_func($atts) {
825
+ if (is_string($atts))
826
+ $atts = explode(' ', $atts, 2);
827
+
828
+ $atts = (array) $atts;
829
+
830
+ $id = (int) array_shift($atts);
831
+
832
  $contact_forms = $this->contact_forms();
833
 
834
+ if (! ($cf = $contact_forms[$id]))
835
+ return '[contact-form 404 "Not Found"]';
836
 
837
  $cf = stripslashes_deep($cf);
838
 
844
 
845
  $url = parse_url($_SERVER['REQUEST_URI']);
846
  $url = $url['path'] . (empty($url['query']) ? '' : '?' . $url['query']) . '#' . $unit_tag;
847
+
848
+ $form_elements = $this->form_elements($cf['form'], false);
849
+ $multipart = false;
850
+ foreach ($form_elements as $form_element) {
851
+ if ('file' == $form_element['type']) {
852
+ $multipart = true;
853
+ break;
854
+ }
855
+ }
856
+ $enctype = $multipart ? ' enctype="multipart/form-data"' : '';
857
 
858
+ $form .= '<form action="' . $url . '" method="post" class="wpcf7-form"' . $enctype . '>';
859
  $form .= '<div style="display: none;">';
860
  $form .= '<input type="hidden" name="_wpcf7" value="' . $id . '" />';
861
  $form .= '<input type="hidden" name="_wpcf7_version" value="' . wpcf7_version() . '" />';
891
  $form .= '</div>';
892
 
893
  $this->processing_unit_tag = null;
894
+
895
+ if (WPCF7_AUTOP)
896
+ $form = $this->wpautop_substitute($form);
897
+
898
  return $form;
899
+ }
900
 
901
+ function wpautop_substitute($pee, $br = 1) {
902
+ $pee = $pee . "\n"; // just to make things a little easier, pad the end
903
+ $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
904
+ // Space things out a little
905
+ $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)';
906
+ $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee);
907
+ $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
908
+ $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines
909
+ if ( strpos($pee, '<object') !== false ) {
910
+ $pee = preg_replace('|\s*<param([^>]*)>\s*|', "<param$1>", $pee); // no pee inside object/embed
911
+ $pee = preg_replace('|\s*</embed>\s*|', '</embed>', $pee);
912
+ }
913
+ $pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates
914
+ // make paragraphs, including one at the end
915
+ $pees = preg_split('/\n\s*\n/', $pee, -1, PREG_SPLIT_NO_EMPTY);
916
+ $pee = '';
917
+ foreach ( $pees as $tinkle )
918
+ $pee .= '<p>' . trim($tinkle, "\n") . "</p>\n";
919
+ $pee = preg_replace('|<p>\s*?</p>|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace
920
+ $pee = preg_replace('!<p>([^<]+)\s*?(</(?:div|address|form)[^>]*>)!', "<p>$1</p>$2", $pee);
921
+ $pee = preg_replace( '|<p>|', "$1<p>", $pee );
922
+ $pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee); // don't pee all over a tag
923
+ $pee = preg_replace("|<p>(<li.+?)</p>|", "$1", $pee); // problem with nested lists
924
+ $pee = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee);
925
+ $pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee);
926
+ $pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee);
927
+ $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee);
928
+ if ($br) {
929
+ $pee = preg_replace_callback('/<(script|style).*?<\/\\1>/s', create_function('$matches', 'return str_replace("\n", "<WPPreserveNewline />", $matches[0]);'), $pee);
930
+ $pee = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $pee); // optionally make line breaks
931
+ $pee = str_replace('<WPPreserveNewline />', "\n", $pee);
932
+ }
933
+ $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*<br />!', "$1", $pee);
934
+ $pee = preg_replace('!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $pee);
935
+ if (strpos($pee, '<pre') !== false)
936
+ $pee = preg_replace_callback('!(<pre.*?>)(.*?)</pre>!is', 'clean_pre', $pee );
937
+ $pee = preg_replace( "|\n</p>$|", '</p>', $pee );
938
+
939
+ if (function_exists('get_shortcode_regex'))
940
+ $pee = preg_replace('/<p>\s*?(' . get_shortcode_regex() . ')\s*<\/p>/s', '$1', $pee); // don't auto-p wrap shortcodes that stand alone
941
+
942
+ return $pee;
943
+ }
944
+
945
  function validate($contact_form) {
946
  $fes = $this->form_elements($contact_form['form'], false);
947
  $valid = true;
963
  if (is_array($_POST[$name])) {
964
  foreach ($_POST[$name] as $key => $value) {
965
  $value = stripslashes($value);
966
+ if (! in_array($value, (array) $values)) // Not in given choices.
967
  unset($_POST[$name][$key]);
968
  }
969
  } else {
970
  $value = stripslashes($_POST[$name]);
971
+ if (! in_array($value, (array) $values)) // Not in given choices.
972
  $_POST[$name] = '';
973
  }
974
  }
1062
  /* Processing form element placeholders */
1063
 
1064
  function form_elements($form, $replace = true) {
1065
+ $types = 'text[*]?|email[*]?|textarea[*]?|select[*]?|checkbox[*]?|radio|acceptance|captchac|captchar|file[*]?';
1066
+ $regex = '%\[\s*(' . $types . ')(\s+[a-zA-Z][0-9a-zA-Z:._-]*)([-0-9a-zA-Z:#_/|\s]*)?((?:\s*(?:"[^"]*"|\'[^\']*\'))*)?\s*\]%';
1067
  $submit_regex = '%\[\s*submit(\s[-0-9a-zA-Z:#_/\s]*)?(\s+(?:"[^"]*"|\'[^\']*\'))?\s*\]%';
1068
  if ($replace) {
1069
  $form = preg_replace_callback($regex, array(&$this, 'form_element_replace_callback'), $form);
1207
  $html = '';
1208
  foreach ($values as $key => $value) {
1209
  $selected = '';
1210
+ if (! $empty_select && in_array($key + 1, (array) $scr_default))
1211
  $selected = ' selected="selected"';
1212
  if ($this->processing_unit_tag == $_POST['_wpcf7_unit_tag'] && (
1213
+ $multiple && in_array($value, (array) $_POST[$name]) ||
1214
  ! $multiple && $_POST[$name] == $value))
1215
  $selected = ' selected="selected"';
1216
  $html .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . $value . '</option>';
1236
 
1237
  foreach ($values as $key => $value) {
1238
  $checked = '';
1239
+ if (in_array($key + 1, (array) $scr_default))
1240
  $checked = ' checked="checked"';
1241
  if ($this->processing_unit_tag == $_POST['_wpcf7_unit_tag'] && (
1242
+ $multiple && in_array($value, (array) $_POST[$name]) ||
1243
  ! $multiple && $_POST[$name] == $value))
1244
  $checked = ' checked="checked"';
1245
  if (preg_grep('%^label[_-]?first$%', $options)) { // put label first, input last
1288
  $html = '<input type="hidden" name="_wpcf7_captcha_challenge_' . $name . '" value="' . $ref . '" />' . $html;
1289
  return $html;
1290
  break;
1291
+ case 'file':
1292
+ case 'file*':
1293
+ $html = '<input type="file" name="' . $name . '"' . $atts . ' value="1" />';
1294
+ $html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
1295
+ return $html;
1296
+ break;
1297
  }
1298
  }
1299
 
1362
  }
1363
  }
1364
 
1365
+ function init_uploads() {
1366
+ wp_mkdir_p(trailingslashit(WPCF7_UPLOADS_TMP_DIR));
1367
+ @chmod(WPCF7_UPLOADS_TMP_DIR, 0733);
1368
+ }
1369
+
1370
  function init_captcha() {
1371
  if (! is_object($this->captcha))
1372
  $this->captcha = new tam_captcha();
wpcf7-admin.js CHANGED
@@ -1,5 +1,5 @@
1
  jQuery(document).ready(function() {
2
- jQuery('#form-content-fieldset textarea:first:enabled').after(tagGenerator());
3
 
4
  jQuery('input#wpcf7-title:enabled').css({
5
  cursor: 'pointer'
@@ -70,6 +70,20 @@ jQuery(document).ready(function() {
70
  jQuery('#message-fields-toggle-switch').text(_wpcf7.l10n.show);
71
  }
72
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  });
74
 
75
  function updateTag() {
@@ -93,7 +107,11 @@ function tagGenerator() {
93
  selector.css({
94
  border: '1px solid #ddd',
95
  padding: '2px 4px',
96
- background: '#fff url( ../wp-admin/images/fade-butt.png ) repeat-x 0 0'
 
 
 
 
97
  });
98
  selector.mouseover(function() {
99
  jQuery(this).css({ 'border-color': '#bbb' });
@@ -108,7 +126,7 @@ function tagGenerator() {
108
  jQuery(this).css({ background: '#fff url( ../wp-admin/images/fade-butt.png ) repeat-x 0 0' });
109
  });
110
  selector.click(function() {
111
- dropdown.show();
112
  return false;
113
  });
114
  jQuery('body').click(function() {
@@ -123,7 +141,11 @@ function tagGenerator() {
123
  var dropdown = jQuery('<div class="tg-dropdown"></div>');
124
  dropdown.hide();
125
 
126
- jQuery.each([ 'textField', 'emailField', 'textArea', 'menu', 'checkboxes', 'radioButtons', 'acceptance', 'captcha', 'submit' ], function(i, n) {
 
 
 
 
127
  var submenu = jQuery('<div>' + _wpcf7.l10n[n] + '</div>');
128
  submenu.css({
129
  margin: 0,
@@ -142,7 +164,7 @@ function tagGenerator() {
142
  pane.hide();
143
  pane.empty();
144
  tgPane(pane, n);
145
- pane.show();
146
  return false;
147
  });
148
  dropdown.append(submenu);
@@ -158,7 +180,7 @@ function tgPane(pane, tagType) {
158
  closeButtonDiv.css({ float: 'right' });
159
  var closeButton = jQuery('<span class="tg-closebutton">&#215;</span>');
160
  closeButton.click(function() {
161
- pane.hide().empty();
162
  });
163
  closeButtonDiv.append(closeButton);
164
  pane.append(closeButtonDiv);
@@ -168,9 +190,9 @@ function tgPane(pane, tagType) {
168
 
169
  var tgInputs = {};
170
  jQuery.each([ 'tagName', 'tagId', 'tagClasses', 'tagId2', 'tagClasses2', 'defaultValue',
171
- 'tagSize', 'tagMaxLength', 'tagCols', 'tagRows', 'label', 'fgColor', 'bgColor' ], function(i, n) {
172
  tgInputs[n] = jQuery('<input type="text" />');
173
- tgInputs[n].css({ width: '80%', 'font-size': 'smaller' });
174
  tgInputs[n].change(function() {
175
  tgCreateTag(tagType, tgInputs, n);
176
  });
@@ -187,14 +209,14 @@ function tgPane(pane, tagType) {
187
  });
188
  jQuery.each([ 'menuChoices' ], function(i, n) {
189
  tgInputs[n] = jQuery('<textarea></textarea>');
190
- tgInputs[n].css({ width: '80%', height: '100px', 'font-size': 'smaller' });
191
  tgInputs[n].change(function() {
192
  tgCreateTag(tagType, tgInputs, n);
193
  });
194
  });
195
  jQuery.each([ 'tag1st', 'tag2nd' ], function(i, n) {
196
  tgInputs[n] = jQuery('<input type="text" class="tag" readonly="readonly" onfocus="this.select()" />');
197
- tgInputs[n].css({ width: '96%' });
198
  });
199
 
200
  switch (tagType) {
@@ -325,7 +347,7 @@ function tgPane(pane, tagType) {
325
  var menuOpt2 = jQuery('<span>&nbsp;' + _wpcf7.l10n.isAcceptanceInvert + '</span>').prepend(tgInputs.isAcceptanceInvert).prepend('<br />');
326
  menuOpt2.append('<br /><span style="font-size: smaller;">' + _wpcf7.l10n.isAcceptanceInvertMeans + '</span>');
327
 
328
- table2.append(tgTr(menuOpt1.append(menuOpt2)));
329
 
330
  pane.append(jQuery('<div class="tg-tag">' + _wpcf7.l10n.generatedTag + '<br /></div>').append(tgInputs.tag1st));
331
  break;
@@ -346,9 +368,7 @@ function tgPane(pane, tagType) {
346
  imageSizeOpts.append(tgInputs.imageSizeMedium).append('&nbsp;' + _wpcf7.l10n.imageSizeMedium);
347
  imageSizeOpts.append('&emsp;');
348
  imageSizeOpts.append(tgInputs.imageSizeLarge).append('&nbsp;' + _wpcf7.l10n.imageSizeLarge);
349
- table2.append(tgTr(
350
- imageSizeOpts
351
- ));
352
  table2.append(tgTr(
353
  jQuery('<span>' + _wpcf7.l10n.fgColor + ' (' + _wpcf7.l10n.optional + ')<br /></span>').append(tgInputs.fgColor),
354
  jQuery('<span>' + _wpcf7.l10n.bgColor + ' (' + _wpcf7.l10n.optional + ')<br /></span>').append(tgInputs.bgColor)
@@ -377,6 +397,29 @@ function tgPane(pane, tagType) {
377
  .append(tgInputs.tag2nd)
378
  );
379
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
380
  case 'submit':
381
  var table = jQuery('<table></table>');
382
  pane.append(table);
@@ -418,7 +461,7 @@ function tgCreateTag(tagType, tgInputs, trigger) {
418
  tgInputs[n].val(val);
419
  });
420
 
421
- jQuery.each([ 'tagSize', 'tagMaxLength', 'tagCols', 'tagRows' ], function(i, n) {
422
  var val = tgInputs[n].val();
423
  val = val.replace(/[^0-9]/g, '');
424
  tgInputs[n].val(val);
@@ -445,6 +488,12 @@ function tgCreateTag(tagType, tgInputs, trigger) {
445
  tgInputs[n].val(val);
446
  });
447
 
 
 
 
 
 
 
448
  if ('akismetAuthor' == trigger && tgInputs.akismetAuthor.is(':checked')) {
449
  tgInputs.akismetAuthorUrl.removeAttr('checked');
450
  tgInputs.akismetAuthorEmail.removeAttr('checked');
@@ -612,6 +661,26 @@ function tgCreateTag(tagType, tgInputs, trigger) {
612
  var tag = name ? '[' + type + ' ' + name + options + ']' : '';
613
  tgInputs.tag2nd.val(tag);
614
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
615
  case 'submit':
616
  var type = 'submit';
617
 
@@ -651,5 +720,7 @@ function tgDefaultName(tagType) {
651
  return 'acceptance-' + rand;
652
  } else if ('captcha' == tagType) {
653
  return 'captcha-' + rand;
 
 
654
  }
655
  }
1
  jQuery(document).ready(function() {
2
+ jQuery('#tag-generator-div').append(tagGenerator());
3
 
4
  jQuery('input#wpcf7-title:enabled').css({
5
  cursor: 'pointer'
70
  jQuery('#message-fields-toggle-switch').text(_wpcf7.l10n.show);
71
  }
72
  });
73
+
74
+ jQuery('.delete-link input').mouseover(function() {
75
+ jQuery(this).css({
76
+ color: '#fff',
77
+ 'background-color': '#ff0000'
78
+ });
79
+ });
80
+
81
+ jQuery('.delete-link input').mouseout(function() {
82
+ jQuery(this).css({
83
+ color: '#ff0000',
84
+ 'background-color': '#fff'
85
+ });
86
+ });
87
  });
88
 
89
  function updateTag() {
107
  selector.css({
108
  border: '1px solid #ddd',
109
  padding: '2px 4px',
110
+ background: '#fff url( ../wp-admin/images/fade-butt.png ) repeat-x 0 0',
111
+ '-moz-border-radius': '3px',
112
+ '-khtml-border-radius': '3px',
113
+ '-webkit-border-radius': '3px',
114
+ 'border-radius': '3px'
115
  });
116
  selector.mouseover(function() {
117
  jQuery(this).css({ 'border-color': '#bbb' });
126
  jQuery(this).css({ background: '#fff url( ../wp-admin/images/fade-butt.png ) repeat-x 0 0' });
127
  });
128
  selector.click(function() {
129
+ dropdown.slideDown('fast');
130
  return false;
131
  });
132
  jQuery('body').click(function() {
141
  var dropdown = jQuery('<div class="tg-dropdown"></div>');
142
  dropdown.hide();
143
 
144
+ var tag_types = [
145
+ 'textField', 'emailField', 'textArea', 'menu', 'checkboxes', 'radioButtons',
146
+ 'acceptance', 'captcha', 'fileUpload', 'submit'];
147
+
148
+ jQuery.each(tag_types, function(i, n) {
149
  var submenu = jQuery('<div>' + _wpcf7.l10n[n] + '</div>');
150
  submenu.css({
151
  margin: 0,
164
  pane.hide();
165
  pane.empty();
166
  tgPane(pane, n);
167
+ pane.slideDown('fast');
168
  return false;
169
  });
170
  dropdown.append(submenu);
180
  closeButtonDiv.css({ float: 'right' });
181
  var closeButton = jQuery('<span class="tg-closebutton">&#215;</span>');
182
  closeButton.click(function() {
183
+ pane.slideUp('fast').empty();
184
  });
185
  closeButtonDiv.append(closeButton);
186
  pane.append(closeButtonDiv);
190
 
191
  var tgInputs = {};
192
  jQuery.each([ 'tagName', 'tagId', 'tagClasses', 'tagId2', 'tagClasses2', 'defaultValue',
193
+ 'tagSize', 'tagMaxLength', 'tagFileSizeLimit', 'tagAcceptableFileTypes', 'tagCols', 'tagRows', 'label', 'fgColor', 'bgColor' ], function(i, n) {
194
  tgInputs[n] = jQuery('<input type="text" />');
195
+ tgInputs[n].css({ width: '98%', 'font-size': 'smaller' });
196
  tgInputs[n].change(function() {
197
  tgCreateTag(tagType, tgInputs, n);
198
  });
209
  });
210
  jQuery.each([ 'menuChoices' ], function(i, n) {
211
  tgInputs[n] = jQuery('<textarea></textarea>');
212
+ tgInputs[n].css({ width: '98%', height: '100px', 'font-size': 'smaller' });
213
  tgInputs[n].change(function() {
214
  tgCreateTag(tagType, tgInputs, n);
215
  });
216
  });
217
  jQuery.each([ 'tag1st', 'tag2nd' ], function(i, n) {
218
  tgInputs[n] = jQuery('<input type="text" class="tag" readonly="readonly" onfocus="this.select()" />');
219
+ tgInputs[n].css({ width: '98%' });
220
  });
221
 
222
  switch (tagType) {
347
  var menuOpt2 = jQuery('<span>&nbsp;' + _wpcf7.l10n.isAcceptanceInvert + '</span>').prepend(tgInputs.isAcceptanceInvert).prepend('<br />');
348
  menuOpt2.append('<br /><span style="font-size: smaller;">' + _wpcf7.l10n.isAcceptanceInvertMeans + '</span>');
349
 
350
+ table2.append(jQuery('<tr></tr>').append(jQuery('<td colspan="2"></td>').append(menuOpt1).append(menuOpt2)));
351
 
352
  pane.append(jQuery('<div class="tg-tag">' + _wpcf7.l10n.generatedTag + '<br /></div>').append(tgInputs.tag1st));
353
  break;
368
  imageSizeOpts.append(tgInputs.imageSizeMedium).append('&nbsp;' + _wpcf7.l10n.imageSizeMedium);
369
  imageSizeOpts.append('&emsp;');
370
  imageSizeOpts.append(tgInputs.imageSizeLarge).append('&nbsp;' + _wpcf7.l10n.imageSizeLarge);
371
+ table2.append(jQuery('<tr></tr>').append(jQuery('<td colspan="2"></td>').append(imageSizeOpts)));
 
 
372
  table2.append(tgTr(
373
  jQuery('<span>' + _wpcf7.l10n.fgColor + ' (' + _wpcf7.l10n.optional + ')<br /></span>').append(tgInputs.fgColor),
374
  jQuery('<span>' + _wpcf7.l10n.bgColor + ' (' + _wpcf7.l10n.optional + ')<br /></span>').append(tgInputs.bgColor)
397
  .append(tgInputs.tag2nd)
398
  );
399
  break;
400
+ case 'fileUpload':
401
+ var table1 = jQuery('<table></table>');
402
+ pane.append(table1);
403
+ table1.append(tgTr(
404
+ jQuery('<span>&nbsp;' + _wpcf7.l10n.isRequiredField + '</span>').prepend(tgInputs.isRequiredField)
405
+ ));
406
+ table1.append(tgTr(
407
+ jQuery('<span>' + _wpcf7.l10n.tagName + '<br /></span>').append(tgInputs.tagName),
408
+ jQuery('<span></span>')
409
+ ));
410
+
411
+ var table2 = jQuery('<table></table>');
412
+ pane.append(table2);
413
+ table2.append(tgTr(
414
+ jQuery('<span>' + _wpcf7.l10n.fileSizeLimit + ' (' + _wpcf7.l10n.optional + ')<br /></span>').append(tgInputs.tagFileSizeLimit),
415
+ jQuery('<span>' + _wpcf7.l10n.acceptableFileTypes + ' (' + _wpcf7.l10n.optional + ')<br /></span>').append(tgInputs.tagAcceptableFileTypes)
416
+ ));
417
+ table2.append(tgTr(
418
+ jQuery('<span><code>id</code> (' + _wpcf7.l10n.optional + ')<br /></span>').append(tgInputs.tagId),
419
+ jQuery('<span><code>class</code> (' + _wpcf7.l10n.optional + ')<br /></span>').append(tgInputs.tagClasses)
420
+ ));
421
+ pane.append(jQuery('<div class="tg-tag">' + _wpcf7.l10n.generatedTag + '<br /></div>').append(tgInputs.tag1st));
422
+ break;
423
  case 'submit':
424
  var table = jQuery('<table></table>');
425
  pane.append(table);
461
  tgInputs[n].val(val);
462
  });
463
 
464
+ jQuery.each([ 'tagSize', 'tagMaxLength', 'tagCols', 'tagRows', 'tagFileSizeLimit' ], function(i, n) {
465
  var val = tgInputs[n].val();
466
  val = val.replace(/[^0-9]/g, '');
467
  tgInputs[n].val(val);
488
  tgInputs[n].val(val);
489
  });
490
 
491
+ jQuery.each([ 'tagAcceptableFileTypes' ], function(i, n) {
492
+ var val = tgInputs[n].val();
493
+ val = val.replace(/[^0-9a-zA-Z.\s]/g, '');
494
+ tgInputs[n].val(val);
495
+ });
496
+
497
  if ('akismetAuthor' == trigger && tgInputs.akismetAuthor.is(':checked')) {
498
  tgInputs.akismetAuthorUrl.removeAttr('checked');
499
  tgInputs.akismetAuthorEmail.removeAttr('checked');
661
  var tag = name ? '[' + type + ' ' + name + options + ']' : '';
662
  tgInputs.tag2nd.val(tag);
663
  break;
664
+ case 'fileUpload':
665
+ var type = 'file';
666
+ if (tgInputs.isRequiredField.is(':checked'))
667
+ type += '*';
668
+ var name = tgInputs.tagName.val();
669
+ var options = [];
670
+ if (tgInputs.tagId.val())
671
+ options.push('id:' + tgInputs.tagId.val());
672
+ if (tgInputs.tagClasses.val())
673
+ jQuery.each(tgInputs.tagClasses.val().split(' '), function(i, n) {
674
+ options.push('class:' + n);
675
+ });
676
+ if (tgInputs.tagFileSizeLimit.val())
677
+ options.push('limit:' + tgInputs.tagFileSizeLimit.val());
678
+ if (tgInputs.tagAcceptableFileTypes.val())
679
+ options.push('filetypes:' + tgInputs.tagAcceptableFileTypes.val().split(' ').join('|'));
680
+ options = (options.length > 0) ? ' ' + options.join(' ') : '';
681
+ var tag = name ? '[' + type + ' ' + name + options + ']' : '';
682
+ tgInputs.tag1st.val(tag);
683
+ break;
684
  case 'submit':
685
  var type = 'submit';
686
 
720
  return 'acceptance-' + rand;
721
  } else if ('captcha' == tagType) {
722
  return 'captcha-' + rand;
723
+ } else if ('fileUpload' == tagType) {
724
+ return 'file-' + rand;
725
  }
726
  }