Version Description
Download this release
Release Info
Developer | takayukister |
Plugin | Contact Form 7 |
Version | 4.2-beta |
Comparing to | |
See all releases |
Code changes from version 4.1.2 to 4.2-beta
- admin/admin-functions.php +9 -33
- admin/admin.php +44 -61
- admin/css/styles-rtl.css +9 -14
- admin/css/styles.css +168 -163
- admin/edit-contact-form.php +159 -69
- admin/images/dropdown.gif +0 -0
- admin/images/fade-butt.png +0 -0
- admin/includes/class-contact-forms-list-table.php +3 -7
- admin/includes/editor.php +201 -0
- admin/includes/help-tabs.php +3 -5
- admin/includes/meta-boxes.php +0 -142
- admin/includes/tag-generator.php +75 -0
- admin/js/scripts.js +101 -84
- admin/js/tag-generator.js +241 -0
- admin/js/taggenerator.js +0 -266
- includes/contact-form.php +45 -0
- includes/functions.php +26 -6
- includes/shortcodes.php +7 -3
- languages/contact-form-7-ja.mo +0 -0
- languages/contact-form-7-sl_SI.mo +0 -0
- languages/contact-form-7.pot +532 -329
- modules/acceptance.php +51 -31
- modules/captcha.php +65 -64
- modules/checkbox.php +74 -50
- modules/date.php +73 -50
- modules/file.php +63 -33
- modules/jetpack.php +8 -7
- modules/number.php +77 -56
- modules/quiz.php +51 -38
- modules/select.php +65 -37
- modules/submit.php +40 -27
- modules/text.php +94 -71
- modules/textarea.php +57 -44
- readme.txt +3 -3
- wp-contact-form-7.php +3 -5
admin/admin-functions.php
CHANGED
@@ -15,38 +15,16 @@ function wpcf7_admin_has_edit_cap() {
|
|
15 |
}
|
16 |
|
17 |
function wpcf7_add_tag_generator( $name, $title, $elm_id, $callback, $options = array() ) {
|
18 |
-
|
19 |
-
|
20 |
-
$name = trim( $name );
|
21 |
-
if ( '' == $name )
|
22 |
-
return false;
|
23 |
-
|
24 |
-
if ( ! is_array( $wpcf7_tag_generators ) )
|
25 |
-
$wpcf7_tag_generators = array();
|
26 |
-
|
27 |
-
$wpcf7_tag_generators[$name] = array(
|
28 |
-
'title' => $title,
|
29 |
-
'content' => $elm_id,
|
30 |
-
'options' => $options );
|
31 |
-
|
32 |
-
if ( is_callable( $callback ) )
|
33 |
-
add_action( 'wpcf7_admin_footer', $callback );
|
34 |
-
|
35 |
-
return true;
|
36 |
}
|
37 |
|
38 |
-
function
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
foreach ( (array) $wpcf7_tag_generators as $name => $tg ) {
|
44 |
-
$taggenerators[$name] = array_merge(
|
45 |
-
(array) $tg['options'],
|
46 |
-
array( 'title' => $tg['title'], 'content' => $tg['content'] ) );
|
47 |
}
|
48 |
-
|
49 |
-
return $taggenerators;
|
50 |
}
|
51 |
|
52 |
function wpcf7_save_contact_form( $post_id = -1 ) {
|
@@ -58,8 +36,8 @@ function wpcf7_save_contact_form( $post_id = -1 ) {
|
|
58 |
$contact_form = WPCF7_ContactForm::get_template();
|
59 |
}
|
60 |
|
61 |
-
if ( isset( $_POST['
|
62 |
-
$contact_form->set_title( $_POST['
|
63 |
}
|
64 |
|
65 |
if ( isset( $_POST['wpcf7-locale'] ) ) {
|
@@ -160,5 +138,3 @@ function wpcf7_save_contact_form( $post_id = -1 ) {
|
|
160 |
|
161 |
return $contact_form->save();
|
162 |
}
|
163 |
-
|
164 |
-
?>
|
15 |
}
|
16 |
|
17 |
function wpcf7_add_tag_generator( $name, $title, $elm_id, $callback, $options = array() ) {
|
18 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
19 |
+
return $tag_generator->add( $name, $title, $callback, $options );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
21 |
|
22 |
+
function wpcf7_mail_tags_suggestion( WPCF7_ContactForm $contact_form ) {
|
23 |
+
foreach ( $contact_form->collect_mail_tags() as $mailtag ) {
|
24 |
+
echo sprintf(
|
25 |
+
'<span class="mailtag code">[%s]</span>',
|
26 |
+
esc_html( $mailtag ) );
|
|
|
|
|
|
|
|
|
27 |
}
|
|
|
|
|
28 |
}
|
29 |
|
30 |
function wpcf7_save_contact_form( $post_id = -1 ) {
|
36 |
$contact_form = WPCF7_ContactForm::get_template();
|
37 |
}
|
38 |
|
39 |
+
if ( isset( $_POST['post_title'] ) ) {
|
40 |
+
$contact_form->set_title( $_POST['post_title'] );
|
41 |
}
|
42 |
|
43 |
if ( isset( $_POST['wpcf7-locale'] ) ) {
|
138 |
|
139 |
return $contact_form->save();
|
140 |
}
|
|
|
|
admin/admin.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
require_once WPCF7_PLUGIN_DIR . '/admin/admin-functions.php';
|
|
|
4 |
|
5 |
add_action( 'admin_menu', 'wpcf7_admin_menu', 9 );
|
6 |
|
@@ -55,7 +56,8 @@ function wpcf7_load_contact_form_admin() {
|
|
55 |
|
56 |
$query = array(
|
57 |
'message' => ( -1 == $_POST['post_ID'] ) ? 'created' : 'saved',
|
58 |
-
'post' => $id
|
|
|
59 |
|
60 |
$redirect_to = add_query_arg( $query, menu_page_url( 'wpcf7', false ) );
|
61 |
wp_safe_redirect( $redirect_to );
|
@@ -146,7 +148,6 @@ function wpcf7_load_contact_form_admin() {
|
|
146 |
|
147 |
if ( $post && current_user_can( 'wpcf7_edit_contact_form', $post->id() ) ) {
|
148 |
$help_tabs->set_help_tabs( 'edit' );
|
149 |
-
wpcf7_add_meta_boxes( $post->id() );
|
150 |
|
151 |
} else if ( 'wpcf7-new' == $plugin_page ) {
|
152 |
$help_tabs->set_help_tabs( 'add_new' );
|
@@ -171,8 +172,9 @@ function wpcf7_load_contact_form_admin() {
|
|
171 |
add_action( 'admin_enqueue_scripts', 'wpcf7_admin_enqueue_scripts' );
|
172 |
|
173 |
function wpcf7_admin_enqueue_scripts( $hook_suffix ) {
|
174 |
-
if ( false === strpos( $hook_suffix, 'wpcf7' ) )
|
175 |
return;
|
|
|
176 |
|
177 |
wp_enqueue_style( 'contact-form-7-admin',
|
178 |
wpcf7_plugin_url( 'admin/css/styles.css' ),
|
@@ -184,29 +186,30 @@ function wpcf7_admin_enqueue_scripts( $hook_suffix ) {
|
|
184 |
array(), WPCF7_VERSION, 'all' );
|
185 |
}
|
186 |
|
|
|
|
|
187 |
wp_enqueue_script( 'wpcf7-admin-taggenerator',
|
188 |
-
wpcf7_plugin_url( 'admin/js/
|
189 |
array( 'jquery' ), WPCF7_VERSION, true );
|
190 |
|
191 |
wp_enqueue_script( 'wpcf7-admin',
|
192 |
wpcf7_plugin_url( 'admin/js/scripts.js' ),
|
193 |
-
array( 'jquery', '
|
194 |
WPCF7_VERSION, true );
|
195 |
|
196 |
$current_screen = get_current_screen();
|
197 |
|
198 |
wp_localize_script( 'wpcf7-admin', '_wpcf7', array(
|
199 |
-
'screenId' => $current_screen->id,
|
200 |
-
'generateTag' => __( 'Generate Tag', 'contact-form-7' ),
|
201 |
'pluginUrl' => wpcf7_plugin_url(),
|
202 |
-
'
|
|
|
203 |
}
|
204 |
|
205 |
function wpcf7_admin_management_page() {
|
206 |
if ( $post = wpcf7_get_current_contact_form() ) {
|
207 |
$post_id = $post->initial() ? -1 : $post->id();
|
208 |
|
209 |
-
require_once WPCF7_PLUGIN_DIR . '/admin/includes/
|
210 |
require_once WPCF7_PLUGIN_DIR . '/admin/edit-contact-form.php';
|
211 |
return;
|
212 |
}
|
@@ -220,7 +223,9 @@ function wpcf7_admin_management_page() {
|
|
220 |
<h2><?php
|
221 |
echo esc_html( __( 'Contact Forms', 'contact-form-7' ) );
|
222 |
|
223 |
-
|
|
|
|
|
224 |
|
225 |
if ( ! empty( $_REQUEST['s'] ) ) {
|
226 |
echo sprintf( '<span class="subtitle">'
|
@@ -245,7 +250,7 @@ function wpcf7_admin_add_new_page() {
|
|
245 |
if ( $post = wpcf7_get_current_contact_form() ) {
|
246 |
$post_id = -1;
|
247 |
|
248 |
-
require_once WPCF7_PLUGIN_DIR . '/admin/includes/
|
249 |
require_once WPCF7_PLUGIN_DIR . '/admin/edit-contact-form.php';
|
250 |
return;
|
251 |
}
|
@@ -283,29 +288,6 @@ function wpcf7_admin_add_new_page() {
|
|
283 |
<?php
|
284 |
}
|
285 |
|
286 |
-
function wpcf7_add_meta_boxes( $post_id ) {
|
287 |
-
add_meta_box( 'formdiv', __( 'Form', 'contact-form-7' ),
|
288 |
-
'wpcf7_form_meta_box', null, 'form', 'core' );
|
289 |
-
|
290 |
-
add_meta_box( 'maildiv', __( 'Mail', 'contact-form-7' ),
|
291 |
-
'wpcf7_mail_meta_box', null, 'mail', 'core' );
|
292 |
-
|
293 |
-
add_meta_box( 'mail2div', __( 'Mail (2)', 'contact-form-7' ),
|
294 |
-
'wpcf7_mail_meta_box', null, 'mail_2', 'core',
|
295 |
-
array(
|
296 |
-
'id' => 'wpcf7-mail-2',
|
297 |
-
'name' => 'mail_2',
|
298 |
-
'use' => __( 'Use mail (2)', 'contact-form-7' ) ) );
|
299 |
-
|
300 |
-
add_meta_box( 'messagesdiv', __( 'Messages', 'contact-form-7' ),
|
301 |
-
'wpcf7_messages_meta_box', null, 'messages', 'core' );
|
302 |
-
|
303 |
-
add_meta_box( 'additionalsettingsdiv', __( 'Additional Settings', 'contact-form-7' ),
|
304 |
-
'wpcf7_additional_settings_meta_box', null, 'additional_settings', 'core' );
|
305 |
-
|
306 |
-
do_action( 'wpcf7_add_meta_boxes', $post_id );
|
307 |
-
}
|
308 |
-
|
309 |
/* Misc */
|
310 |
|
311 |
add_action( 'wpcf7_admin_notices', 'wpcf7_admin_updated_message' );
|
@@ -343,23 +325,6 @@ function wpcf7_plugin_action_links( $links, $file ) {
|
|
343 |
return $links;
|
344 |
}
|
345 |
|
346 |
-
add_action( 'wpcf7_admin_notices', 'wpcf7_cf7com_links', 9 );
|
347 |
-
|
348 |
-
function wpcf7_cf7com_links() {
|
349 |
-
$links = '<div class="cf7com-links">'
|
350 |
-
. '<a href="' . esc_url( __( 'http://contactform7.com/docs/', 'contact-form-7' ) ) . '" target="_blank">'
|
351 |
-
. esc_html( __( 'Docs', 'contact-form-7' ) ) . '</a> - '
|
352 |
-
. '<a href="' . esc_url( __( 'http://contactform7.com/faq/', 'contact-form-7' ) ) . '" target="_blank">'
|
353 |
-
. esc_html( __( 'FAQ', 'contact-form-7' ) ) . '</a> - '
|
354 |
-
. '<a href="' . esc_url( __( 'http://contactform7.com/support/', 'contact-form-7' ) ) . '" target="_blank">'
|
355 |
-
. esc_html( __( 'Support', 'contact-form-7' ) ) . '</a> - '
|
356 |
-
. '<a href="' . esc_url( __( 'http://contactform7.com/donate/', 'contact-form-7' ) ) . '" target="_blank">'
|
357 |
-
. esc_html( __( 'Donate', 'contact-form-7' ) ) . '</a>'
|
358 |
-
. '</div>';
|
359 |
-
|
360 |
-
echo apply_filters( 'wpcf7_cf7com_links', $links );
|
361 |
-
}
|
362 |
-
|
363 |
add_action( 'admin_notices', 'wpcf7_old_wp_version_error', 9 );
|
364 |
|
365 |
function wpcf7_old_wp_version_error() {
|
@@ -409,26 +374,26 @@ function wpcf7_welcome_panel() {
|
|
409 |
<div class="welcome-panel-column">
|
410 |
<h4><?php echo esc_html( __( 'Contact Form 7 Needs Your Support', 'contact-form-7' ) ); ?></h4>
|
411 |
<p class="message"><?php echo esc_html( __( "It is hard to continue development and support for this plugin without contributions from users like you. If you enjoy using Contact Form 7 and find it useful, please consider making a donation.", 'contact-form-7' ) ); ?></p>
|
412 |
-
<p
|
413 |
</div>
|
414 |
|
415 |
<div class="welcome-panel-column">
|
416 |
<h4><?php echo esc_html( __( 'Get Started', 'contact-form-7' ) ); ?></h4>
|
417 |
<ul>
|
418 |
-
<li
|
419 |
-
<li
|
420 |
-
<li
|
421 |
-
<li
|
422 |
</ul>
|
423 |
</div>
|
424 |
|
425 |
<div class="welcome-panel-column">
|
426 |
<h4><?php echo esc_html( __( 'Did You Know?', 'contact-form-7' ) ); ?></h4>
|
427 |
<ul>
|
428 |
-
<li
|
429 |
-
<li
|
430 |
-
<li
|
431 |
-
<li
|
432 |
</ul>
|
433 |
</div>
|
434 |
</div>
|
@@ -460,4 +425,22 @@ function wpcf7_admin_ajax_welcome_panel() {
|
|
460 |
wp_die( 1 );
|
461 |
}
|
462 |
|
463 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
|
3 |
require_once WPCF7_PLUGIN_DIR . '/admin/admin-functions.php';
|
4 |
+
require_once WPCF7_PLUGIN_DIR . '/admin/includes/tag-generator.php';
|
5 |
|
6 |
add_action( 'admin_menu', 'wpcf7_admin_menu', 9 );
|
7 |
|
56 |
|
57 |
$query = array(
|
58 |
'message' => ( -1 == $_POST['post_ID'] ) ? 'created' : 'saved',
|
59 |
+
'post' => $id,
|
60 |
+
'active-tab' => isset( $_POST['active-tab'] ) ? (int) $_POST['active-tab'] : 0 );
|
61 |
|
62 |
$redirect_to = add_query_arg( $query, menu_page_url( 'wpcf7', false ) );
|
63 |
wp_safe_redirect( $redirect_to );
|
148 |
|
149 |
if ( $post && current_user_can( 'wpcf7_edit_contact_form', $post->id() ) ) {
|
150 |
$help_tabs->set_help_tabs( 'edit' );
|
|
|
151 |
|
152 |
} else if ( 'wpcf7-new' == $plugin_page ) {
|
153 |
$help_tabs->set_help_tabs( 'add_new' );
|
172 |
add_action( 'admin_enqueue_scripts', 'wpcf7_admin_enqueue_scripts' );
|
173 |
|
174 |
function wpcf7_admin_enqueue_scripts( $hook_suffix ) {
|
175 |
+
if ( false === strpos( $hook_suffix, 'wpcf7' ) ) {
|
176 |
return;
|
177 |
+
}
|
178 |
|
179 |
wp_enqueue_style( 'contact-form-7-admin',
|
180 |
wpcf7_plugin_url( 'admin/css/styles.css' ),
|
186 |
array(), WPCF7_VERSION, 'all' );
|
187 |
}
|
188 |
|
189 |
+
add_thickbox();
|
190 |
+
|
191 |
wp_enqueue_script( 'wpcf7-admin-taggenerator',
|
192 |
+
wpcf7_plugin_url( 'admin/js/tag-generator.js' ),
|
193 |
array( 'jquery' ), WPCF7_VERSION, true );
|
194 |
|
195 |
wp_enqueue_script( 'wpcf7-admin',
|
196 |
wpcf7_plugin_url( 'admin/js/scripts.js' ),
|
197 |
+
array( 'jquery', 'jquery-ui-tabs', 'wpcf7-admin-taggenerator' ),
|
198 |
WPCF7_VERSION, true );
|
199 |
|
200 |
$current_screen = get_current_screen();
|
201 |
|
202 |
wp_localize_script( 'wpcf7-admin', '_wpcf7', array(
|
|
|
|
|
203 |
'pluginUrl' => wpcf7_plugin_url(),
|
204 |
+
'saveAlert' => __( "The changes you made will be lost if you navigate away from this page.", 'contact-form-7' ),
|
205 |
+
'activeTab' => isset( $_GET['active-tab'] ) ? (int) $_GET['active-tab'] : 0 ) );
|
206 |
}
|
207 |
|
208 |
function wpcf7_admin_management_page() {
|
209 |
if ( $post = wpcf7_get_current_contact_form() ) {
|
210 |
$post_id = $post->initial() ? -1 : $post->id();
|
211 |
|
212 |
+
require_once WPCF7_PLUGIN_DIR . '/admin/includes/editor.php';
|
213 |
require_once WPCF7_PLUGIN_DIR . '/admin/edit-contact-form.php';
|
214 |
return;
|
215 |
}
|
223 |
<h2><?php
|
224 |
echo esc_html( __( 'Contact Forms', 'contact-form-7' ) );
|
225 |
|
226 |
+
if ( current_user_can( 'wpcf7_edit_contact_forms' ) ) {
|
227 |
+
echo ' <a href="' . esc_url( menu_page_url( 'wpcf7-new', false ) ) . '" class="add-new-h2">' . esc_html( __( 'Add New', 'contact-form-7' ) ) . '</a>';
|
228 |
+
}
|
229 |
|
230 |
if ( ! empty( $_REQUEST['s'] ) ) {
|
231 |
echo sprintf( '<span class="subtitle">'
|
250 |
if ( $post = wpcf7_get_current_contact_form() ) {
|
251 |
$post_id = -1;
|
252 |
|
253 |
+
require_once WPCF7_PLUGIN_DIR . '/admin/includes/editor.php';
|
254 |
require_once WPCF7_PLUGIN_DIR . '/admin/edit-contact-form.php';
|
255 |
return;
|
256 |
}
|
288 |
<?php
|
289 |
}
|
290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
/* Misc */
|
292 |
|
293 |
add_action( 'wpcf7_admin_notices', 'wpcf7_admin_updated_message' );
|
325 |
return $links;
|
326 |
}
|
327 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
add_action( 'admin_notices', 'wpcf7_old_wp_version_error', 9 );
|
329 |
|
330 |
function wpcf7_old_wp_version_error() {
|
374 |
<div class="welcome-panel-column">
|
375 |
<h4><?php echo esc_html( __( 'Contact Form 7 Needs Your Support', 'contact-form-7' ) ); ?></h4>
|
376 |
<p class="message"><?php echo esc_html( __( "It is hard to continue development and support for this plugin without contributions from users like you. If you enjoy using Contact Form 7 and find it useful, please consider making a donation.", 'contact-form-7' ) ); ?></p>
|
377 |
+
<p><?php echo wpcf7_link( __( 'http://contactform7.com/donate/', 'contact-form-7' ), __( 'Donate', 'contact-form-7' ), array( 'class' => 'button button-primary' ) ); ?></p>
|
378 |
</div>
|
379 |
|
380 |
<div class="welcome-panel-column">
|
381 |
<h4><?php echo esc_html( __( 'Get Started', 'contact-form-7' ) ); ?></h4>
|
382 |
<ul>
|
383 |
+
<li><?php echo wpcf7_link( __( 'http://contactform7.com/getting-started-with-contact-form-7/', 'contact-form-7' ), __( 'Getting Started with Contact Form 7', 'contact-form-7' ) ); ?></li>
|
384 |
+
<li><?php echo wpcf7_link( __( 'http://contactform7.com/admin-screen/', 'contact-form-7' ), __( 'Admin Screen', 'contact-form-7' ) ); ?></li>
|
385 |
+
<li><?php echo wpcf7_link( __( 'http://contactform7.com/tag-syntax/', 'contact-form-7' ), __( 'How Tags Work', 'contact-form-7' ) ); ?></li>
|
386 |
+
<li><?php echo wpcf7_link( __( 'http://contactform7.com/setting-up-mail/', 'contact-form-7' ), __( 'Setting Up Mail', 'contact-form-7' ) ); ?></li>
|
387 |
</ul>
|
388 |
</div>
|
389 |
|
390 |
<div class="welcome-panel-column">
|
391 |
<h4><?php echo esc_html( __( 'Did You Know?', 'contact-form-7' ) ); ?></h4>
|
392 |
<ul>
|
393 |
+
<li><?php echo wpcf7_link( __( 'http://contactform7.com/spam-filtering-with-akismet/', 'contact-form-7' ), __( 'Spam Filtering with Akismet', 'contact-form-7' ) ); ?></li>
|
394 |
+
<li><?php echo wpcf7_link( __( 'http://contactform7.com/save-submitted-messages-with-flamingo/', 'contact-form-7' ), __( 'Save Messages with Flamingo', 'contact-form-7' ) ); ?></li>
|
395 |
+
<li><?php echo wpcf7_link( __( 'http://contactform7.com/selectable-recipient-with-pipes/', 'contact-form-7' ), __( 'Selectable Recipient with Pipes', 'contact-form-7' ) ); ?></li>
|
396 |
+
<li><?php echo wpcf7_link( __( 'http://contactform7.com/tracking-form-submissions-with-google-analytics/', 'contact-form-7' ), __( 'Tracking with Google Analytics', 'contact-form-7' ) ); ?></li>
|
397 |
</ul>
|
398 |
</div>
|
399 |
</div>
|
425 |
wp_die( 1 );
|
426 |
}
|
427 |
|
428 |
+
add_action( 'wpcf7_admin_notices', 'wpcf7_not_allowed_to_edit' );
|
429 |
+
|
430 |
+
function wpcf7_not_allowed_to_edit() {
|
431 |
+
if ( ! $contact_form = wpcf7_get_current_contact_form() ) {
|
432 |
+
return;
|
433 |
+
}
|
434 |
+
|
435 |
+
$post_id = $contact_form->id();
|
436 |
+
|
437 |
+
if ( current_user_can( 'wpcf7_edit_contact_form', $post_id ) ) {
|
438 |
+
return;
|
439 |
+
}
|
440 |
+
|
441 |
+
$message = __( "You are not allowed to edit this contact form.",
|
442 |
+
'contact-form-7' );
|
443 |
+
|
444 |
+
echo sprintf( '<div class="notice notice-warning"><p>%s</p></div>',
|
445 |
+
esc_html( $message ) );
|
446 |
+
}
|
admin/css/styles-rtl.css
CHANGED
@@ -1,21 +1,16 @@
|
|
1 |
-
|
2 |
-
|
3 |
}
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
}
|
9 |
|
10 |
-
|
11 |
-
|
12 |
}
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
right: 0;
|
17 |
}
|
18 |
-
|
19 |
-
div.wrap div.cf7com-links {
|
20 |
-
text-align: left;
|
21 |
-
}
|
1 |
+
.tag-generator-panel {
|
2 |
+
text-align: right;
|
3 |
}
|
4 |
|
5 |
+
.tag-generator-panel .control-box > fieldset legend {
|
6 |
+
border: 1px solid #dfdfdf;
|
7 |
+
border-right: 4px solid #00a0d2;
|
8 |
}
|
9 |
|
10 |
+
.tag-generator-panel .insert-box input.tag {
|
11 |
+
float: right;
|
12 |
}
|
13 |
|
14 |
+
.tag-generator-panel .insert-box .submitbox input[type="button"] {
|
15 |
+
float: left;
|
|
|
16 |
}
|
|
|
|
|
|
|
|
admin/css/styles.css
CHANGED
@@ -1,253 +1,258 @@
|
|
1 |
-
#
|
2 |
-
|
3 |
}
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
font-size: .9em;
|
8 |
-
margin: -20px 1em 1em 0;
|
9 |
}
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
}
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
div.save-contact-form {
|
25 |
-
padding: 1.4em 0 0 0;
|
26 |
-
text-align: right;
|
27 |
}
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
top: 0;
|
32 |
-
right: 0;
|
33 |
-
margin: 0;
|
34 |
-
padding: 6px;
|
35 |
}
|
36 |
|
37 |
-
|
38 |
padding: 0;
|
39 |
margin: 0;
|
40 |
border: none;
|
41 |
-
font-size: 11px;
|
42 |
cursor: pointer;
|
43 |
background: inherit;
|
|
|
44 |
}
|
45 |
|
46 |
-
|
47 |
-
|
48 |
}
|
49 |
|
50 |
-
|
51 |
-
|
52 |
}
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
box-shadow: none;
|
62 |
-
width: 80%;
|
63 |
}
|
64 |
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
71 |
}
|
72 |
|
73 |
-
|
74 |
-
background-color: #
|
75 |
}
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
80 |
}
|
81 |
|
82 |
-
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
84 |
}
|
85 |
|
86 |
-
|
87 |
-
|
88 |
-
|
|
|
89 |
}
|
90 |
|
91 |
-
|
92 |
-
|
93 |
}
|
94 |
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
|
|
|
|
|
|
99 |
|
100 |
-
|
101 |
-
|
102 |
-
|
|
|
|
|
|
|
103 |
|
104 |
-
|
105 |
-
|
106 |
-
}
|
107 |
}
|
108 |
|
109 |
-
|
110 |
-
|
111 |
-
margin
|
112 |
}
|
113 |
|
114 |
-
|
115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
}
|
122 |
|
123 |
-
|
124 |
-
|
|
|
|
|
|
|
125 |
}
|
126 |
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
}
|
130 |
|
131 |
-
|
132 |
width: 100%;
|
133 |
}
|
134 |
|
135 |
-
|
136 |
-
|
|
|
|
|
137 |
}
|
138 |
|
139 |
-
|
140 |
-
|
|
|
141 |
}
|
142 |
|
143 |
-
|
144 |
-
|
145 |
-
background: transparent;
|
146 |
-
padding: 0 0 5px 1px;
|
147 |
}
|
148 |
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
margin: 1ex 0 0 0;
|
153 |
-
padding: 10px;
|
154 |
-
line-height: 140%;
|
155 |
}
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
}
|
161 |
|
162 |
-
|
163 |
text-align: left;
|
164 |
-
|
165 |
-
font-weight:
|
166 |
color: #777;
|
|
|
167 |
}
|
168 |
|
169 |
-
|
170 |
-
|
171 |
}
|
172 |
|
173 |
-
|
174 |
-
|
175 |
-
width: 50%;
|
176 |
-
border: none;
|
177 |
-
padding: 2px 0;
|
178 |
}
|
179 |
|
180 |
-
|
|
|
|
|
|
|
|
|
181 |
width: 100%;
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
div.tg-mail-tag {
|
190 |
-
margin-top: 2.4em;
|
191 |
-
text-align: right;
|
192 |
-
}
|
193 |
-
|
194 |
-
div.tg-pane input.tg-name {
|
195 |
-
border-color: #555;
|
196 |
-
}
|
197 |
-
|
198 |
-
div.tg-pane input.oneline {
|
199 |
-
width: 94%;
|
200 |
-
font-size: smaller;
|
201 |
-
-moz-box-sizing: border-box;
|
202 |
}
|
203 |
|
204 |
-
|
205 |
-
width:
|
206 |
-
|
207 |
-
|
|
|
208 |
}
|
209 |
|
210 |
-
|
211 |
-
|
212 |
}
|
213 |
|
214 |
-
|
215 |
-
|
216 |
-
top: 26px;
|
217 |
-
left: 0;
|
218 |
-
z-index: 10;
|
219 |
-
border: 1px solid #ddd;
|
220 |
}
|
221 |
|
222 |
-
|
223 |
-
|
224 |
-
font: bold 18px monospace;
|
225 |
-
padding: 1px 4px;
|
226 |
-
cursor: pointer;
|
227 |
}
|
228 |
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
|
|
|
|
|
|
|
|
234 |
}
|
235 |
|
|
|
|
|
|
|
236 |
.fixed .column-title {
|
237 |
-
width:
|
238 |
}
|
239 |
|
240 |
-
|
241 |
-
width:
|
242 |
-
font-size: 90%;
|
243 |
-
}
|
244 |
-
|
245 |
-
input[readonly].code {
|
246 |
-
background: #f3f3f3;
|
247 |
-
color: #3f3f3f;
|
248 |
}
|
249 |
|
250 |
-
/*
|
|
|
|
|
251 |
.welcome-panel p.message {
|
252 |
line-height: 1.4em;
|
253 |
margin-right: 25px;
|
@@ -259,4 +264,4 @@ input[readonly].code {
|
|
259 |
|
260 |
.welcome-panel-close {
|
261 |
z-index: 2;
|
262 |
-
}
|
1 |
+
#titlediv .inside p.description {
|
2 |
+
margin: 8px 2px 0;
|
3 |
}
|
4 |
|
5 |
+
#titlediv .inside p.description label {
|
6 |
+
cursor: pointer;
|
|
|
|
|
7 |
}
|
8 |
|
9 |
+
span.shortcode {
|
10 |
+
display: block;
|
11 |
+
margin: 2px 0;
|
12 |
}
|
13 |
|
14 |
+
span.shortcode > input {
|
15 |
+
background: inherit;
|
16 |
+
color: inherit;
|
17 |
+
font-size: 12px;
|
18 |
+
border: none;
|
19 |
+
box-shadow: none;
|
20 |
+
padding: 4px 8px;
|
21 |
+
margin: 0;
|
|
|
|
|
|
|
22 |
}
|
23 |
|
24 |
+
#submitpost input.copy {
|
25 |
+
margin-bottom: 10px;
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
|
28 |
+
#submitpost input.delete {
|
29 |
padding: 0;
|
30 |
margin: 0;
|
31 |
border: none;
|
|
|
32 |
cursor: pointer;
|
33 |
background: inherit;
|
34 |
+
color: #a00;
|
35 |
}
|
36 |
|
37 |
+
#submitpost input.delete:focus {
|
38 |
+
outline: thin dotted;
|
39 |
}
|
40 |
|
41 |
+
.postbox-container .postbox h3 {
|
42 |
+
border-bottom: 1px solid transparent;
|
43 |
}
|
44 |
|
45 |
+
/*
|
46 |
+
* Tabs
|
47 |
+
*/
|
48 |
+
#contact-form-editor-tabs {
|
49 |
+
border-bottom: 1px solid #aaa;
|
50 |
+
padding: 9px 15px 0 10px;
|
51 |
+
margin: 0;
|
|
|
|
|
52 |
}
|
53 |
|
54 |
+
#contact-form-editor-tabs li {
|
55 |
+
display: inline-block;
|
56 |
+
list-style: none;
|
57 |
+
border: 1px solid #ccc;
|
58 |
+
border-bottom: 1px solid #aaa;
|
59 |
+
padding: 0;
|
60 |
+
margin: 0 4px -1px;
|
61 |
+
background-color: #e4e4e4;
|
62 |
}
|
63 |
|
64 |
+
#contact-form-editor-tabs li:hover {
|
65 |
+
background-color: #fff;
|
66 |
}
|
67 |
|
68 |
+
#contact-form-editor-tabs li.ui-tabs-active,
|
69 |
+
#contact-form-editor-tabs li.ui-tabs-active:hover {
|
70 |
+
border-top: 1px solid #aaa;
|
71 |
+
border-right: 1px solid #aaa;
|
72 |
+
border-left: 1px solid #aaa;
|
73 |
+
border-bottom: 1px solid #f5f5f5;
|
74 |
+
background-color: #f5f5f5;
|
75 |
}
|
76 |
|
77 |
+
#contact-form-editor-tabs li a {
|
78 |
+
padding: 6px 10px;
|
79 |
+
font-size: 14px;
|
80 |
+
font-weight: normal;
|
81 |
+
line-height: 30px;
|
82 |
+
color: #333;
|
83 |
+
text-decoration: none;
|
84 |
}
|
85 |
|
86 |
+
#contact-form-editor-tabs li.ui-tabs-active a {
|
87 |
+
color: #000;
|
88 |
+
font-size: 14px;
|
89 |
+
font-weight: bold;
|
90 |
}
|
91 |
|
92 |
+
#contact-form-editor-tabs li a:hover {
|
93 |
+
color: #000;
|
94 |
}
|
95 |
|
96 |
+
#contact-form-editor .contact-form-editor-panel h3 {
|
97 |
+
font-size: 18px;
|
98 |
+
font-weight: 400;
|
99 |
+
line-height: 24px;
|
100 |
+
margin: 8px 0;
|
101 |
+
padding: 0;
|
102 |
+
}
|
103 |
|
104 |
+
#contact-form-editor .contact-form-editor-panel {
|
105 |
+
background-color: #f5f5f5;
|
106 |
+
border: 1px solid #aaa;
|
107 |
+
border-top: none;
|
108 |
+
padding: 16px;
|
109 |
+
}
|
110 |
|
111 |
+
#contact-form-editor .form-table th {
|
112 |
+
width: 100px;
|
|
|
113 |
}
|
114 |
|
115 |
+
#contact-form-editor .contact-form-editor-panel fieldset legend {
|
116 |
+
line-height: 1.5;
|
117 |
+
margin: .6em 0 .4em;
|
118 |
}
|
119 |
|
120 |
+
/*
|
121 |
+
* Form Panel
|
122 |
+
*/
|
123 |
+
#tag-generator-list a.button {
|
124 |
+
font-size: 12px;
|
125 |
+
height: 26px;
|
126 |
+
line-height: 24px;
|
127 |
+
margin: 2px;
|
128 |
+
padding: 0 8px 1px;
|
129 |
}
|
130 |
|
131 |
+
.tag-generator-panel {
|
132 |
+
position: relative;
|
133 |
+
height: 495px;
|
134 |
}
|
135 |
|
136 |
+
.tag-generator-panel .control-box {
|
137 |
+
padding: 0;
|
138 |
+
margin: 0;
|
139 |
+
height: 380px;
|
140 |
+
overflow: auto;
|
141 |
}
|
142 |
|
143 |
+
.tag-generator-panel .control-box > fieldset legend {
|
144 |
+
border: 1px solid #dfdfdf;
|
145 |
+
border-left: 4px solid #00a0d2;
|
146 |
+
background: #f7fcfe;
|
147 |
+
padding: 4px 12px;
|
148 |
+
margin: 4px 0;
|
149 |
+
line-height: 1.4em;
|
150 |
+
width: 95%;
|
151 |
}
|
152 |
|
153 |
+
.tag-generator-panel table {
|
154 |
width: 100%;
|
155 |
}
|
156 |
|
157 |
+
.tag-generator-panel table.form-table th {
|
158 |
+
width: 120px;
|
159 |
+
padding: 4px 10px 4px 0;
|
160 |
+
font-size: 13px;
|
161 |
}
|
162 |
|
163 |
+
.tag-generator-panel table.form-table td {
|
164 |
+
padding: 4px 10px;
|
165 |
+
font-size: 13px;
|
166 |
}
|
167 |
|
168 |
+
.tag-generator-panel .control-box input.oneline {
|
169 |
+
width: 200px;
|
|
|
|
|
170 |
}
|
171 |
|
172 |
+
.tag-generator-panel .control-box textarea.values {
|
173 |
+
width: 200px;
|
174 |
+
height: 6em;
|
|
|
|
|
|
|
175 |
}
|
176 |
|
177 |
+
.tag-generator-panel .control-box input[type="number"],
|
178 |
+
.tag-generator-panel .control-box input[type="date"] {
|
179 |
+
width: 88px;
|
180 |
}
|
181 |
|
182 |
+
.tag-generator-panel .control-box table caption {
|
183 |
text-align: left;
|
184 |
+
font-size: 110%;
|
185 |
+
font-weight: bold;
|
186 |
color: #777;
|
187 |
+
margin: 10px 0 5px;
|
188 |
}
|
189 |
|
190 |
+
.tag-generator-panel .control-box table.form-table td label {
|
191 |
+
line-height: 1.1em;
|
192 |
}
|
193 |
|
194 |
+
.tag-generator-panel .control-box table.form-table td label .description {
|
195 |
+
line-height: 1.4em;
|
|
|
|
|
|
|
196 |
}
|
197 |
|
198 |
+
.tag-generator-panel .insert-box {
|
199 |
+
position: absolute;
|
200 |
+
left: -15px;
|
201 |
+
right: -15px;
|
202 |
+
bottom: -15px;
|
203 |
width: 100%;
|
204 |
+
height: 84px;
|
205 |
+
margin: 0;
|
206 |
+
padding: 8px 16px;
|
207 |
+
background-color: #fcfcfc;
|
208 |
+
border-top: 1px solid #dfdfdf;
|
209 |
+
overflow: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
}
|
211 |
|
212 |
+
.tag-generator-panel .insert-box input.tag {
|
213 |
+
width: 480px;
|
214 |
+
float: left;
|
215 |
+
background-color: transparent;
|
216 |
+
box-shadow: none;
|
217 |
}
|
218 |
|
219 |
+
.tag-generator-panel .insert-box .submitbox {
|
220 |
+
padding: 2px 4px;
|
221 |
}
|
222 |
|
223 |
+
.tag-generator-panel .insert-box .submitbox input[type="button"] {
|
224 |
+
float: right;
|
|
|
|
|
|
|
|
|
225 |
}
|
226 |
|
227 |
+
.tag-generator-panel .insert-box .description label {
|
228 |
+
cursor: text;
|
|
|
|
|
|
|
229 |
}
|
230 |
|
231 |
+
/*
|
232 |
+
* Mail Panel
|
233 |
+
*/
|
234 |
+
.contact-form-editor-box-mail span.mailtag {
|
235 |
+
display: inline-block;
|
236 |
+
margin: 0 0 0 4px;
|
237 |
+
padding: 1px 2px;
|
238 |
+
cursor: pointer;
|
239 |
+
color: #000;
|
240 |
}
|
241 |
|
242 |
+
/*
|
243 |
+
* List Table
|
244 |
+
*/
|
245 |
.fixed .column-title {
|
246 |
+
width: 38%;
|
247 |
}
|
248 |
|
249 |
+
.fixed .column-shortcode {
|
250 |
+
width: 38%;
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
}
|
252 |
|
253 |
+
/*
|
254 |
+
* Welcome Panel
|
255 |
+
*/
|
256 |
.welcome-panel p.message {
|
257 |
line-height: 1.4em;
|
258 |
margin-right: 25px;
|
264 |
|
265 |
.welcome-panel-close {
|
266 |
z-index: 2;
|
267 |
+
}
|
admin/edit-contact-form.php
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
<?php
|
2 |
|
3 |
// don't load directly
|
4 |
-
if ( ! defined( 'ABSPATH' ) )
|
5 |
die( '-1' );
|
|
|
6 |
|
7 |
?><div class="wrap">
|
8 |
|
@@ -12,106 +13,195 @@ if ( ! defined( 'ABSPATH' ) )
|
|
12 |
} else {
|
13 |
echo esc_html( __( 'Edit Contact Form', 'contact-form-7' ) );
|
14 |
|
15 |
-
|
|
|
|
|
16 |
}
|
17 |
?></h2>
|
18 |
|
19 |
<?php do_action( 'wpcf7_admin_notices' ); ?>
|
20 |
|
21 |
-
<br class="clear" />
|
22 |
-
|
23 |
<?php
|
24 |
if ( $post ) :
|
25 |
|
26 |
-
if ( current_user_can( 'wpcf7_edit_contact_form', $post_id ) )
|
27 |
$disabled = '';
|
28 |
-
else
|
29 |
$disabled = ' disabled="disabled"';
|
|
|
30 |
?>
|
31 |
|
32 |
<form method="post" action="<?php echo esc_url( add_query_arg( array( 'post' => $post_id ), menu_page_url( 'wpcf7', false ) ) ); ?>" id="wpcf7-admin-form-element"<?php do_action( 'wpcf7_post_edit_form_tag' ); ?>>
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
<?php if ( current_user_can( 'wpcf7_edit_contact_form', $post_id ) && ! $post->initial() ) : ?>
|
66 |
-
<div class="actions-link">
|
67 |
-
<?php $copy_nonce = wp_create_nonce( 'wpcf7-copy-contact-form_' . $post_id ); ?>
|
68 |
-
<input type="submit" name="wpcf7-copy" class="copy" value="<?php echo esc_attr( __( 'Duplicate', 'contact-form-7' ) ); ?>"
|
69 |
-
<?php echo "onclick=\"this.form._wpnonce.value = '$copy_nonce'; this.form.action.value = 'copy'; return true;\""; ?> />
|
70 |
-
|
|
71 |
-
|
72 |
-
<?php $delete_nonce = wp_create_nonce( 'wpcf7-delete-contact-form_' . $post_id ); ?>
|
73 |
-
<input type="submit" name="wpcf7-delete" class="delete" value="<?php echo esc_attr( __( 'Delete', 'contact-form-7' ) ); ?>"
|
74 |
-
<?php echo "onclick=\"if (confirm('" .
|
75 |
-
esc_js( __( "You are about to delete this contact form.\n 'Cancel' to stop, 'OK' to delete.", 'contact-form-7' ) ) .
|
76 |
-
"')) {this.form._wpnonce.value = '$delete_nonce'; this.form.action.value = 'delete'; return true;} return false;\""; ?> />
|
77 |
-
</div>
|
78 |
-
<?php endif; ?>
|
79 |
-
</div>
|
80 |
|
|
|
81 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
-
|
86 |
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
-
|
90 |
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
-
|
98 |
|
99 |
-
|
|
|
|
|
100 |
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
-
|
104 |
|
105 |
-
|
106 |
-
|
|
|
107 |
|
|
|
108 |
?>
|
109 |
-
|
|
|
|
|
|
|
|
|
110 |
|
|
|
|
|
|
|
|
|
|
|
111 |
</form>
|
112 |
|
113 |
<?php endif; ?>
|
114 |
|
115 |
-
</div
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
-
|
1 |
<?php
|
2 |
|
3 |
// don't load directly
|
4 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
5 |
die( '-1' );
|
6 |
+
}
|
7 |
|
8 |
?><div class="wrap">
|
9 |
|
13 |
} else {
|
14 |
echo esc_html( __( 'Edit Contact Form', 'contact-form-7' ) );
|
15 |
|
16 |
+
if ( current_user_can( 'wpcf7_edit_contact_forms' ) ) {
|
17 |
+
echo ' <a href="' . esc_url( menu_page_url( 'wpcf7-new', false ) ) . '" class="add-new-h2">' . esc_html( __( 'Add New', 'contact-form-7' ) ) . '</a>';
|
18 |
+
}
|
19 |
}
|
20 |
?></h2>
|
21 |
|
22 |
<?php do_action( 'wpcf7_admin_notices' ); ?>
|
23 |
|
|
|
|
|
24 |
<?php
|
25 |
if ( $post ) :
|
26 |
|
27 |
+
if ( current_user_can( 'wpcf7_edit_contact_form', $post_id ) ) {
|
28 |
$disabled = '';
|
29 |
+
} else {
|
30 |
$disabled = ' disabled="disabled"';
|
31 |
+
}
|
32 |
?>
|
33 |
|
34 |
<form method="post" action="<?php echo esc_url( add_query_arg( array( 'post' => $post_id ), menu_page_url( 'wpcf7', false ) ) ); ?>" id="wpcf7-admin-form-element"<?php do_action( 'wpcf7_post_edit_form_tag' ); ?>>
|
35 |
+
<?php
|
36 |
+
if ( current_user_can( 'wpcf7_edit_contact_form', $post_id ) ) {
|
37 |
+
wp_nonce_field( 'wpcf7-save-contact-form_' . $post_id );
|
38 |
+
}
|
39 |
+
?>
|
40 |
+
<input type="hidden" id="post_ID" name="post_ID" value="<?php echo (int) $post_id; ?>" />
|
41 |
+
<input type="hidden" id="wpcf7-locale" name="wpcf7-locale" value="<?php echo esc_attr( $post->locale ); ?>" />
|
42 |
+
<input type="hidden" id="hiddenaction" name="action" value="save" />
|
43 |
+
<input type="hidden" id="active-tab" name="active-tab" value="<?php echo isset( $_GET['active-tab'] ) ? (int) $_GET['active-tab'] : '0'; ?>" />
|
44 |
+
|
45 |
+
<div id="poststuff">
|
46 |
+
<div id="post-body" class="metabox-holder columns-2">
|
47 |
+
<div id="post-body-content">
|
48 |
+
<div id="titlediv">
|
49 |
+
<div id="titlewrap">
|
50 |
+
<label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo esc_html( __( 'Enter title here', 'contact-form-7' ) ); ?></label>
|
51 |
+
<?php
|
52 |
+
$posttitle_atts = array(
|
53 |
+
'type' => 'text',
|
54 |
+
'name' => 'post_title',
|
55 |
+
'size' => 30,
|
56 |
+
'value' => $post->initial() ? '' : $post->title(),
|
57 |
+
'id' => 'title',
|
58 |
+
'spellcheck' => 'true',
|
59 |
+
'autocomplete' => 'off',
|
60 |
+
'disabled' => current_user_can( 'wpcf7_edit_contact_form', $post_id )
|
61 |
+
? '' : 'disabled' );
|
62 |
+
|
63 |
+
echo sprintf( '<input %s />', wpcf7_format_atts( $posttitle_atts ) );
|
64 |
+
?>
|
65 |
+
</div><!-- #titlewrap -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
+
<div class="inside">
|
68 |
<?php
|
69 |
+
if ( ! $post->initial() ) :
|
70 |
+
?>
|
71 |
+
<p class="description">
|
72 |
+
<label for="wpcf7-shortcode"><?php echo esc_html( __( "Copy this shortcode and paste it into your post, page, or text widget content:", 'contact-form-7' ) ); ?></label>
|
73 |
+
<span class="shortcode wp-ui-highlight"><input type="text" id="wpcf7-shortcode" onfocus="this.select();" readonly="readonly" class="large-text code" value="<?php echo esc_attr( $post->shortcode() ); ?>" /></span>
|
74 |
+
</p>
|
75 |
+
<?php
|
76 |
+
if ( $old_shortcode = $post->shortcode( array( 'use_old_format' => true ) ) ) :
|
77 |
+
?>
|
78 |
+
<p class="description">
|
79 |
+
<label for="wpcf7-shortcode-old"><?php echo esc_html( __( "You can also use this old-style shortcode:", 'contact-form-7' ) ); ?></label>
|
80 |
+
<span class="shortcode old"><input type="text" id="wpcf7-shortcode-old" onfocus="this.select();" readonly="readonly" class="large-text code" value="<?php echo esc_attr( $old_shortcode ); ?>" /></span>
|
81 |
+
</p>
|
82 |
+
<?php
|
83 |
+
endif;
|
84 |
+
endif;
|
85 |
+
?>
|
86 |
+
</div>
|
87 |
+
</div><!-- #titlediv -->
|
88 |
+
</div><!-- #post-body-content -->
|
89 |
|
90 |
+
<div id="postbox-container-1" class="postbox-container">
|
91 |
+
<?php if ( current_user_can( 'wpcf7_edit_contact_form', $post_id ) ) : ?>
|
92 |
+
<div id="submitdiv" class="postbox">
|
93 |
+
<h3><?php echo esc_html( __( 'Status', 'contact-form-7' ) ); ?></h3>
|
94 |
+
<div class="inside">
|
95 |
+
<div class="submitbox" id="submitpost">
|
96 |
|
97 |
+
<div id="minor-publishing-actions">
|
98 |
|
99 |
+
<div class="hidden">
|
100 |
+
<input type="submit" class="button-primary" name="wpcf7-save" value="<?php echo esc_attr( __( 'Save', 'contact-form-7' ) ); ?>" />
|
101 |
+
</div>
|
102 |
+
|
103 |
+
<?php
|
104 |
+
if ( ! $post->initial() ) :
|
105 |
+
$copy_nonce = wp_create_nonce( 'wpcf7-copy-contact-form_' . $post_id );
|
106 |
+
?>
|
107 |
+
<input type="submit" name="wpcf7-copy" class="copy button" value="<?php echo esc_attr( __( 'Duplicate', 'contact-form-7' ) ); ?>" <?php echo "onclick=\"this.form._wpnonce.value = '$copy_nonce'; this.form.action.value = 'copy'; return true;\""; ?> />
|
108 |
+
<?php endif; ?>
|
109 |
+
</div><!-- #minor-publishing-actions -->
|
110 |
|
111 |
+
<div id="major-publishing-actions">
|
112 |
|
113 |
+
<?php
|
114 |
+
if ( ! $post->initial() ) :
|
115 |
+
$delete_nonce = wp_create_nonce( 'wpcf7-delete-contact-form_' . $post_id );
|
116 |
+
?>
|
117 |
+
<div id="delete-action">
|
118 |
+
<input type="submit" name="wpcf7-delete" class="delete submitdelete" value="<?php echo esc_attr( __( 'Delete', 'contact-form-7' ) ); ?>" <?php echo "onclick=\"if (confirm('" . esc_js( __( "You are about to delete this contact form.\n 'Cancel' to stop, 'OK' to delete.", 'contact-form-7' ) ) . "')) {this.form._wpnonce.value = '$delete_nonce'; this.form.action.value = 'delete'; return true;} return false;\""; ?> />
|
119 |
+
</div><!-- #delete-action -->
|
120 |
+
<?php endif; ?>
|
121 |
|
122 |
+
<div class="save-contact-form textright">
|
123 |
+
<input type="submit" class="button-primary" name="wpcf7-save" value="<?php echo esc_attr( __( 'Save', 'contact-form-7' ) ); ?>" />
|
124 |
+
</div>
|
125 |
+
</div><!-- #major-publishing-actions -->
|
126 |
+
</div><!-- #submitpost -->
|
127 |
+
</div>
|
128 |
+
</div><!-- #submitdiv -->
|
129 |
+
<?php endif; ?>
|
130 |
|
131 |
+
<div id="informationdiv" class="postbox">
|
132 |
+
<h3><?php echo esc_html( __( 'Information', 'contact-form-7' ) ); ?></h3>
|
133 |
+
<div class="inside">
|
134 |
+
<ul>
|
135 |
+
<li><?php echo wpcf7_link( __( 'http://contactform7.com/docs/', 'contact-form-7' ), __( 'Docs', 'contact-form-7' ) ); ?></li>
|
136 |
+
<li><?php echo wpcf7_link( __( 'http://contactform7.com/faq/', 'contact-form-7' ), __( 'FAQ', 'contact-form-7' ) ); ?></li>
|
137 |
+
<li><?php echo wpcf7_link( __( 'http://contactform7.com/support/', 'contact-form-7' ), __( 'Support', 'contact-form-7' ) ); ?></li>
|
138 |
+
</ul>
|
139 |
+
</div>
|
140 |
+
</div><!-- #informationdiv -->
|
141 |
|
142 |
+
</div><!-- #postbox-container-1 -->
|
143 |
|
144 |
+
<div id="postbox-container-2" class="postbox-container">
|
145 |
+
<div id="contact-form-editor">
|
146 |
+
<?php
|
147 |
|
148 |
+
$editor = new WPCF7_Editor( $post );
|
149 |
+
$panels = array();
|
150 |
+
|
151 |
+
if ( current_user_can( 'wpcf7_edit_contact_form', $post_id ) ) {
|
152 |
+
$panels = array(
|
153 |
+
'form-panel' => array(
|
154 |
+
'title' => __( 'Form', 'contact-form-7' ),
|
155 |
+
'callback' => 'wpcf7_editor_panel_form' ),
|
156 |
+
'mail-panel' => array(
|
157 |
+
'title' => __( 'Mail', 'contact-form-7' ),
|
158 |
+
'callback' => 'wpcf7_editor_panel_mail' ),
|
159 |
+
'messages-panel' => array(
|
160 |
+
'title' => __( 'Messages', 'contact-form-7' ),
|
161 |
+
'callback' => 'wpcf7_editor_panel_messages' ) );
|
162 |
+
|
163 |
+
$additional_settings = trim( $post->prop( 'additional_settings' ) );
|
164 |
+
$additional_settings = explode( "\n", $additional_settings );
|
165 |
+
$additional_settings = array_filter( $additional_settings );
|
166 |
+
$additional_settings = count( $additional_settings );
|
167 |
+
|
168 |
+
$panels['additional-settings-panel'] = array(
|
169 |
+
'title' => $additional_settings
|
170 |
+
? sprintf(
|
171 |
+
__( 'Additional Settings (%d)', 'contact-form-7' ),
|
172 |
+
$additional_settings )
|
173 |
+
: __( 'Additional Settings', 'contact-form-7' ),
|
174 |
+
'callback' => 'wpcf7_editor_panel_additional_settings' );
|
175 |
+
}
|
176 |
|
177 |
+
$panels = apply_filters( 'wpcf7_editor_panels', $panels );
|
178 |
|
179 |
+
foreach ( $panels as $id => $panel ) {
|
180 |
+
$editor->add_panel( $id, $panel['title'], $panel['callback'] );
|
181 |
+
}
|
182 |
|
183 |
+
$editor->display();
|
184 |
?>
|
185 |
+
</div><!-- #contact-form-editor -->
|
186 |
+
|
187 |
+
<?php if ( current_user_can( 'wpcf7_edit_contact_form', $post_id ) ) : ?>
|
188 |
+
<p class="submit"><input type="submit" class="button-primary" name="wpcf7-save" value="<?php echo esc_attr( __( 'Save', 'contact-form-7' ) ); ?>" /></p>
|
189 |
+
<?php endif; ?>
|
190 |
|
191 |
+
</div><!-- #postbox-container-2 -->
|
192 |
+
|
193 |
+
</div><!-- #post-body -->
|
194 |
+
<br class="clear" />
|
195 |
+
</div><!-- #poststuff -->
|
196 |
</form>
|
197 |
|
198 |
<?php endif; ?>
|
199 |
|
200 |
+
</div><!-- .wrap -->
|
201 |
+
|
202 |
+
<?php
|
203 |
+
|
204 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
205 |
+
$tag_generator->print_panels( $post );
|
206 |
|
207 |
+
do_action( 'wpcf7_admin_footer', $post );
|
admin/images/dropdown.gif
DELETED
Binary file
|
admin/images/fade-butt.png
DELETED
Binary file
|
admin/includes/class-contact-forms-list-table.php
CHANGED
@@ -137,17 +137,15 @@ class WPCF7_Contact_Form_List_Table extends WP_List_Table {
|
|
137 |
}
|
138 |
|
139 |
function column_shortcode( $item ) {
|
140 |
-
$shortcodes = array(
|
141 |
-
sprintf( '[contact-form-7 id="%1$d" title="%2$s"]',
|
142 |
-
$item->id(), $item->title() ) );
|
143 |
|
144 |
$output = '';
|
145 |
|
146 |
foreach ( $shortcodes as $shortcode ) {
|
147 |
-
$output .= "\n" . '<input type="text"'
|
148 |
. ' onfocus="this.select();" readonly="readonly"'
|
149 |
. ' value="' . esc_attr( $shortcode ) . '"'
|
150 |
-
. ' class="
|
151 |
}
|
152 |
|
153 |
return trim( $output );
|
@@ -173,5 +171,3 @@ class WPCF7_Contact_Form_List_Table extends WP_List_Table {
|
|
173 |
return '<abbr title="' . $t_time . '">' . $h_time . '</abbr>';
|
174 |
}
|
175 |
}
|
176 |
-
|
177 |
-
?>
|
137 |
}
|
138 |
|
139 |
function column_shortcode( $item ) {
|
140 |
+
$shortcodes = array( $item->shortcode() );
|
|
|
|
|
141 |
|
142 |
$output = '';
|
143 |
|
144 |
foreach ( $shortcodes as $shortcode ) {
|
145 |
+
$output .= "\n" . '<span class="shortcode"><input type="text"'
|
146 |
. ' onfocus="this.select();" readonly="readonly"'
|
147 |
. ' value="' . esc_attr( $shortcode ) . '"'
|
148 |
+
. ' class="large-text code" /></span>';
|
149 |
}
|
150 |
|
151 |
return trim( $output );
|
171 |
return '<abbr title="' . $t_time . '">' . $h_time . '</abbr>';
|
172 |
}
|
173 |
}
|
|
|
|
admin/includes/editor.php
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class WPCF7_Editor {
|
4 |
+
|
5 |
+
private $contact_form;
|
6 |
+
private $panels = array();
|
7 |
+
|
8 |
+
public function __construct( WPCF7_ContactForm $contact_form ) {
|
9 |
+
$this->contact_form = $contact_form;
|
10 |
+
}
|
11 |
+
|
12 |
+
public function add_panel( $id, $title, $callback ) {
|
13 |
+
if ( wpcf7_is_name( $id ) ) {
|
14 |
+
$this->panels[$id] = array(
|
15 |
+
'title' => $title,
|
16 |
+
'callback' => $callback );
|
17 |
+
}
|
18 |
+
}
|
19 |
+
|
20 |
+
public function display() {
|
21 |
+
if ( empty( $this->panels ) ) {
|
22 |
+
return;
|
23 |
+
}
|
24 |
+
|
25 |
+
echo '<ul id="contact-form-editor-tabs">';
|
26 |
+
|
27 |
+
foreach ( $this->panels as $id => $panel ) {
|
28 |
+
echo sprintf( '<li id="%1$s-tab"><a href="#%1$s">%2$s</a></li>',
|
29 |
+
esc_attr( $id ), esc_html( $panel['title'] ) );
|
30 |
+
}
|
31 |
+
|
32 |
+
echo '</ul>';
|
33 |
+
|
34 |
+
foreach ( $this->panels as $id => $panel ) {
|
35 |
+
echo sprintf( '<div class="contact-form-editor-panel" id="%1$s">',
|
36 |
+
esc_attr( $id ) );
|
37 |
+
call_user_func( $panel['callback'], $this->contact_form );
|
38 |
+
echo '</div>';
|
39 |
+
}
|
40 |
+
}
|
41 |
+
}
|
42 |
+
|
43 |
+
function wpcf7_editor_panel_form( $post ) {
|
44 |
+
?>
|
45 |
+
<h3><?php echo esc_html( __( 'Form', 'contact-form-7' ) ); ?></h3>
|
46 |
+
|
47 |
+
<?php
|
48 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
49 |
+
$tag_generator->print_buttons();
|
50 |
+
?>
|
51 |
+
|
52 |
+
<textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="24" class="large-text code"><?php echo esc_textarea( $post->prop( 'form' ) ); ?></textarea>
|
53 |
+
<?php
|
54 |
+
}
|
55 |
+
|
56 |
+
function wpcf7_editor_panel_mail( $post ) {
|
57 |
+
wpcf7_editor_box_mail( $post );
|
58 |
+
|
59 |
+
echo '<br class="clear" />';
|
60 |
+
|
61 |
+
wpcf7_editor_box_mail( $post, array(
|
62 |
+
'id' => 'wpcf7-mail-2',
|
63 |
+
'name' => 'mail_2',
|
64 |
+
'title' => __( 'Mail (2)', 'contact-form-7' ),
|
65 |
+
'use' => __( 'Use Mail (2)', 'contact-form-7' ) ) );
|
66 |
+
}
|
67 |
+
|
68 |
+
function wpcf7_editor_box_mail( $post, $args = '' ) {
|
69 |
+
$args = wp_parse_args( $args, array(
|
70 |
+
'id' => 'wpcf7-mail',
|
71 |
+
'name' => 'mail',
|
72 |
+
'title' => __( 'Mail', 'contact-form-7' ),
|
73 |
+
'use' => null ) );
|
74 |
+
|
75 |
+
$id = esc_attr( $args['id'] );
|
76 |
+
|
77 |
+
$mail = wp_parse_args( $post->prop( $args['name'] ), array(
|
78 |
+
'active' => false, 'recipient' => '', 'sender' => '',
|
79 |
+
'subject' => '', 'body' => '', 'additional_headers' => '',
|
80 |
+
'attachments' => '', 'use_html' => false, 'exclude_blank' => false ) );
|
81 |
+
|
82 |
+
?>
|
83 |
+
<div class="contact-form-editor-box-mail" id="<?php echo $id; ?>">
|
84 |
+
<h3><?php echo esc_html( $args['title'] ); ?></h3>
|
85 |
+
|
86 |
+
<?php
|
87 |
+
if ( ! empty( $args['use'] ) ) :
|
88 |
+
?>
|
89 |
+
<label for="<?php echo $id; ?>-active"><input type="checkbox" id="<?php echo $id; ?>-active" name="<?php echo $id; ?>-active" class="toggle-form-table" value="1"<?php echo ( $mail['active'] ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html( $args['use'] ); ?></label>
|
90 |
+
<p class="description"><?php echo esc_html( __( "Mail (2) is an additional mail template often used as an autoresponder.", 'contact-form-7' ) ); ?></p>
|
91 |
+
<?php
|
92 |
+
endif;
|
93 |
+
?>
|
94 |
+
|
95 |
+
<fieldset>
|
96 |
+
<legend><?php echo esc_html( __( "In the following fields, you can use these mail-tags:", 'contact-form-7' ) ); ?><br />
|
97 |
+
<?php wpcf7_mail_tags_suggestion( $post ); ?></legend>
|
98 |
+
<table class="form-table">
|
99 |
+
<tbody>
|
100 |
+
<tr>
|
101 |
+
<th scope="row">
|
102 |
+
<label for="<?php echo $id; ?>-recipient"><?php echo esc_html( __( 'To', 'contact-form-7' ) ); ?></label>
|
103 |
+
</th>
|
104 |
+
<td>
|
105 |
+
<input type="text" id="<?php echo $id; ?>-recipient" name="<?php echo $id; ?>-recipient" class="large-text code" size="70" value="<?php echo esc_attr( $mail['recipient'] ); ?>" />
|
106 |
+
</td>
|
107 |
+
</tr>
|
108 |
+
|
109 |
+
<tr>
|
110 |
+
<th scope="row">
|
111 |
+
<label for="<?php echo $id; ?>-sender"><?php echo esc_html( __( 'From', 'contact-form-7' ) ); ?></label>
|
112 |
+
</th>
|
113 |
+
<td>
|
114 |
+
<input type="text" id="<?php echo $id; ?>-sender" name="<?php echo $id; ?>-sender" class="large-text code" size="70" value="<?php echo esc_attr( $mail['sender'] ); ?>" />
|
115 |
+
</td>
|
116 |
+
</tr>
|
117 |
+
|
118 |
+
<tr>
|
119 |
+
<th scope="row">
|
120 |
+
<label for="<?php echo $id; ?>-subject"><?php echo esc_html( __( 'Subject', 'contact-form-7' ) ); ?></label>
|
121 |
+
</th>
|
122 |
+
<td>
|
123 |
+
<input type="text" id="<?php echo $id; ?>-subject" name="<?php echo $id; ?>-subject" class="large-text code" size="70" value="<?php echo esc_attr( $mail['subject'] ); ?>" />
|
124 |
+
</td>
|
125 |
+
</tr>
|
126 |
+
|
127 |
+
<tr>
|
128 |
+
<th scope="row">
|
129 |
+
<label for="<?php echo $id; ?>-additional-headers"><?php echo esc_html( __( 'Additional Headers', 'contact-form-7' ) ); ?></label>
|
130 |
+
</th>
|
131 |
+
<td>
|
132 |
+
<textarea id="<?php echo $id; ?>-additional-headers" name="<?php echo $id; ?>-additional-headers" cols="100" rows="4" class="large-text code"><?php echo esc_textarea( $mail['additional_headers'] ); ?></textarea>
|
133 |
+
</td>
|
134 |
+
</tr>
|
135 |
+
|
136 |
+
<tr>
|
137 |
+
<th scope="row">
|
138 |
+
<label for="<?php echo $id; ?>-body"><?php echo esc_html( __( 'Message Body', 'contact-form-7' ) ); ?></label>
|
139 |
+
</th>
|
140 |
+
<td>
|
141 |
+
<textarea id="<?php echo $id; ?>-body" name="<?php echo $id; ?>-body" cols="100" rows="18" class="large-text code"><?php echo esc_textarea( $mail['body'] ); ?></textarea>
|
142 |
+
|
143 |
+
<p><label for="<?php echo $id; ?>-exclude-blank"><input type="checkbox" id="<?php echo $id; ?>-exclude-blank" name="<?php echo $id; ?>-exclude-blank" value="1"<?php echo ( ! empty( $mail['exclude_blank'] ) ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html( __( 'Exclude lines with blank mail-tags from output', 'contact-form-7' ) ); ?></label></p>
|
144 |
+
|
145 |
+
<p><label for="<?php echo $id; ?>-use-html"><input type="checkbox" id="<?php echo $id; ?>-use-html" name="<?php echo $id; ?>-use-html" value="1"<?php echo ( $mail['use_html'] ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html( __( 'Use HTML content type', 'contact-form-7' ) ); ?></label></p>
|
146 |
+
</td>
|
147 |
+
</tr>
|
148 |
+
|
149 |
+
<tr>
|
150 |
+
<th scope="row">
|
151 |
+
<label for="<?php echo $id; ?>-attachments"><?php echo esc_html( __( 'File Attachments', 'contact-form-7' ) ); ?></label>
|
152 |
+
</th>
|
153 |
+
<td>
|
154 |
+
<textarea id="<?php echo $id; ?>-attachments" name="<?php echo $id; ?>-attachments" cols="100" rows="4" class="large-text code"><?php echo esc_textarea( $mail['attachments'] ); ?></textarea>
|
155 |
+
</td>
|
156 |
+
</tr>
|
157 |
+
</tbody>
|
158 |
+
</table>
|
159 |
+
</fieldset>
|
160 |
+
</div>
|
161 |
+
<?php
|
162 |
+
}
|
163 |
+
|
164 |
+
function wpcf7_editor_panel_messages( $post ) {
|
165 |
+
$messages = wpcf7_messages();
|
166 |
+
?>
|
167 |
+
<h3><?php echo esc_html( __( 'Messages', 'contact-form-7' ) ); ?></h3>
|
168 |
+
<fieldset>
|
169 |
+
<legend><?php echo esc_html( __( 'Edit messages used in the following situations.', 'contact-form-7' ) ); ?></legend>
|
170 |
+
<?php
|
171 |
+
|
172 |
+
foreach ( $messages as $key => $arr ) {
|
173 |
+
$field_name = 'wpcf7-message-' . strtr( $key, '_', '-' );
|
174 |
+
?>
|
175 |
+
<p class="description">
|
176 |
+
<label for="<?php echo $field_name; ?>"><?php echo esc_html( $arr['description'] ); ?><br />
|
177 |
+
<input type="text" id="<?php echo $field_name; ?>" name="<?php echo $field_name; ?>" class="large-text" size="70" value="<?php echo esc_attr( $post->message( $key, false ) ); ?>" />
|
178 |
+
</label>
|
179 |
+
</p>
|
180 |
+
<?php
|
181 |
+
}
|
182 |
+
?>
|
183 |
+
</fieldset>
|
184 |
+
<?php
|
185 |
+
}
|
186 |
+
|
187 |
+
function wpcf7_editor_panel_additional_settings( $post ) {
|
188 |
+
$desc_link = wpcf7_link(
|
189 |
+
__( 'http://contactform7.com/additional-settings/', 'contact-form-7' ),
|
190 |
+
__( 'Additional Settings', 'contact-form-7' ) );
|
191 |
+
$description = __( "You can add customization code snippets here. For details, see %s.", 'contact-form-7' );
|
192 |
+
$description = sprintf( esc_html( $description ), $desc_link );
|
193 |
+
|
194 |
+
?>
|
195 |
+
<h3><?php echo esc_html( __( 'Additional Settings', 'contact-form-7' ) ); ?></h3>
|
196 |
+
<fieldset>
|
197 |
+
<legend><?php echo $description; ?></legend>
|
198 |
+
<textarea id="wpcf7-additional-settings" name="wpcf7-additional-settings" cols="100" rows="8" class="large-text"><?php echo esc_textarea( $post->prop( 'additional_settings' ) ); ?></textarea>
|
199 |
+
</fieldset>
|
200 |
+
<?php
|
201 |
+
}
|
admin/includes/help-tabs.php
CHANGED
@@ -87,12 +87,10 @@ class WPCF7_Help_Tabs {
|
|
87 |
|
88 |
public function sidebar() {
|
89 |
$content = '<p><strong>' . __( 'For more information:', 'contact-form-7' ) . '</strong></p>';
|
90 |
-
$content .= '<p>' . __( '
|
91 |
-
$content .= '<p>' . __( '
|
92 |
-
$content .= '<p>' . __( '
|
93 |
|
94 |
$this->screen->set_help_sidebar( $content );
|
95 |
}
|
96 |
}
|
97 |
-
|
98 |
-
?>
|
87 |
|
88 |
public function sidebar() {
|
89 |
$content = '<p><strong>' . __( 'For more information:', 'contact-form-7' ) . '</strong></p>';
|
90 |
+
$content .= '<p>' . wpcf7_link( __( 'http://contactform7.com/docs/', 'contact-form-7' ), __( 'Docs', 'contact-form-7' ) ) . '</p>';
|
91 |
+
$content .= '<p>' . wpcf7_link( __( 'http://contactform7.com/faq/', 'contact-form-7' ), __( 'FAQ', 'contact-form-7' ) ) . '</p>';
|
92 |
+
$content .= '<p>' . wpcf7_link( __( 'http://contactform7.com/support/', 'contact-form-7' ), __( 'Support', 'contact-form-7' ) ) . '</p>';
|
93 |
|
94 |
$this->screen->set_help_sidebar( $content );
|
95 |
}
|
96 |
}
|
|
|
|
admin/includes/meta-boxes.php
DELETED
@@ -1,142 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/* Form */
|
4 |
-
|
5 |
-
function wpcf7_form_meta_box( $post ) {
|
6 |
-
?>
|
7 |
-
<div class="half-left"><textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="24"><?php echo esc_textarea( $post->prop( 'form' ) ); ?></textarea></div>
|
8 |
-
|
9 |
-
<div class="half-right"><div id="taggenerator"></div></div>
|
10 |
-
|
11 |
-
<br class="clear" />
|
12 |
-
<?php
|
13 |
-
}
|
14 |
-
|
15 |
-
/* Mail */
|
16 |
-
|
17 |
-
function wpcf7_mail_meta_box( $post, $box ) {
|
18 |
-
$args = isset( $box['args'] ) && is_array( $box['args'] )
|
19 |
-
? $box['args'] : array();
|
20 |
-
|
21 |
-
$args = wp_parse_args( $args, array(
|
22 |
-
'id' => 'wpcf7-mail',
|
23 |
-
'name' => 'mail',
|
24 |
-
'use' => null ) );
|
25 |
-
|
26 |
-
$id = esc_attr( $args['id'] );
|
27 |
-
|
28 |
-
$mail = wp_parse_args( $post->prop( $args['name'] ), array(
|
29 |
-
'active' => false, 'recipient' => '', 'sender' => '',
|
30 |
-
'subject' => '', 'body' => '', 'additional_headers' => '',
|
31 |
-
'attachments' => '', 'use_html' => false, 'exclude_blank' => false ) );
|
32 |
-
|
33 |
-
if ( ! empty( $args['use'] ) ) :
|
34 |
-
?>
|
35 |
-
<div class="mail-field">
|
36 |
-
<label for="<?php echo $id; ?>-active">
|
37 |
-
<input type="checkbox" id="<?php echo $id; ?>-active" name="<?php echo $id; ?>-active" class="check-if-these-fields-are-active" value="1"<?php echo ( $mail['active'] ) ? ' checked="checked"' : ''; ?> />
|
38 |
-
<?php echo esc_html( $args['use'] ); ?>
|
39 |
-
</label>
|
40 |
-
<div class="pseudo-hr"></div>
|
41 |
-
</div>
|
42 |
-
|
43 |
-
<br class="clear" />
|
44 |
-
<?php endif; ?>
|
45 |
-
|
46 |
-
<div class="mail-fields">
|
47 |
-
<div class="half-left">
|
48 |
-
<div class="mail-field">
|
49 |
-
<label for="<?php echo $id; ?>-recipient"><?php echo esc_html( __( 'To:', 'contact-form-7' ) ); ?></label><br />
|
50 |
-
<input type="text" id="<?php echo $id; ?>-recipient" name="<?php echo $id; ?>-recipient" class="wide" size="70" value="<?php echo esc_attr( $mail['recipient'] ); ?>" />
|
51 |
-
</div>
|
52 |
-
|
53 |
-
<div class="mail-field">
|
54 |
-
<label for="<?php echo $id; ?>-sender"><?php echo esc_html( __( 'From:', 'contact-form-7' ) ); ?></label><br />
|
55 |
-
<input type="text" id="<?php echo $id; ?>-sender" name="<?php echo $id; ?>-sender" class="wide" size="70" value="<?php echo esc_attr( $mail['sender'] ); ?>" />
|
56 |
-
</div>
|
57 |
-
|
58 |
-
<div class="mail-field">
|
59 |
-
<label for="<?php echo $id; ?>-subject"><?php echo esc_html( __( 'Subject:', 'contact-form-7' ) ); ?></label><br />
|
60 |
-
<input type="text" id="<?php echo $id; ?>-subject" name="<?php echo $id; ?>-subject" class="wide" size="70" value="<?php echo esc_attr( $mail['subject'] ); ?>" />
|
61 |
-
</div>
|
62 |
-
|
63 |
-
<div class="pseudo-hr"></div>
|
64 |
-
|
65 |
-
<div class="mail-field">
|
66 |
-
<label for="<?php echo $id; ?>-additional-headers"><?php echo esc_html( __( 'Additional headers:', 'contact-form-7' ) ); ?></label><br />
|
67 |
-
<textarea id="<?php echo $id; ?>-additional-headers" name="<?php echo $id; ?>-additional-headers" cols="100" rows="2"><?php echo esc_textarea( $mail['additional_headers'] ); ?></textarea>
|
68 |
-
</div>
|
69 |
-
|
70 |
-
<div class="mail-field">
|
71 |
-
<label for="<?php echo $id; ?>-attachments"><?php echo esc_html( __( 'File attachments:', 'contact-form-7' ) ); ?></label><br />
|
72 |
-
<textarea id="<?php echo $id; ?>-attachments" name="<?php echo $id; ?>-attachments" cols="100" rows="2"><?php echo esc_textarea( $mail['attachments'] ); ?></textarea>
|
73 |
-
</div>
|
74 |
-
|
75 |
-
<div class="pseudo-hr"></div>
|
76 |
-
|
77 |
-
<div class="mail-field">
|
78 |
-
|
79 |
-
<label for="<?php echo $id; ?>-use-html">
|
80 |
-
<input type="checkbox" id="<?php echo $id; ?>-use-html" name="<?php echo $id; ?>-use-html" value="1"<?php echo ( $mail['use_html'] ) ? ' checked="checked"' : ''; ?> />
|
81 |
-
<?php echo esc_html( __( 'Use HTML content type', 'contact-form-7' ) ); ?>
|
82 |
-
</label>
|
83 |
-
</div>
|
84 |
-
</div>
|
85 |
-
|
86 |
-
<div class="half-right">
|
87 |
-
<div class="mail-field">
|
88 |
-
<label for="<?php echo $id; ?>-body"><?php echo esc_html( __( 'Message body:', 'contact-form-7' ) ); ?></label><br />
|
89 |
-
<textarea id="<?php echo $id; ?>-body" name="<?php echo $id; ?>-body" cols="100" rows="18"><?php echo esc_textarea( $mail['body'] ); ?></textarea>
|
90 |
-
</div>
|
91 |
-
|
92 |
-
<div class="mail-field">
|
93 |
-
|
94 |
-
<label for="<?php echo $id; ?>-exclude-blank">
|
95 |
-
<input type="checkbox" id="<?php echo $id; ?>-exclude-blank" name="<?php echo $id; ?>-exclude-blank" value="1"<?php echo ( ! empty( $mail['exclude_blank'] ) ) ? ' checked="checked"' : ''; ?> />
|
96 |
-
<?php echo esc_html( __( 'Exclude lines with blank mail-tags from output', 'contact-form-7' ) ); ?>
|
97 |
-
</label>
|
98 |
-
</div>
|
99 |
-
</div>
|
100 |
-
|
101 |
-
<br class="clear" />
|
102 |
-
</div>
|
103 |
-
<?php
|
104 |
-
}
|
105 |
-
|
106 |
-
function wpcf7_messages_meta_box( $post ) {
|
107 |
-
$updated = isset( $_REQUEST['message'] )
|
108 |
-
&& in_array( $_REQUEST['message'], array( 'saved', 'created' ) );
|
109 |
-
$count = 0;
|
110 |
-
$messages = wpcf7_messages();
|
111 |
-
|
112 |
-
foreach ( $messages as $key => $arr ) {
|
113 |
-
$count += 1;
|
114 |
-
$field_name = 'wpcf7-message-' . strtr( $key, '_', '-' );
|
115 |
-
|
116 |
-
?>
|
117 |
-
<div class="message-field">
|
118 |
-
<p class="description"><label for="<?php echo $field_name; ?>"><?php echo esc_html( $arr['description'] ); ?></label></p>
|
119 |
-
<input type="text" id="<?php echo $field_name; ?>" name="<?php echo $field_name; ?>" class="wide" size="70" value="<?php echo esc_attr( $post->message( $key, false ) ); ?>" />
|
120 |
-
</div>
|
121 |
-
<?php
|
122 |
-
|
123 |
-
if ( ! $updated && 10 <= count( $messages ) ) {
|
124 |
-
if ( 6 == $count ) {
|
125 |
-
echo '<p><a href="#" id="show-all-messages">' . esc_html( __( 'Show all messages', 'contact-form-7' ) ) . '</a></p>' . "\n";
|
126 |
-
echo '<div class="hide-initially">';
|
127 |
-
}
|
128 |
-
|
129 |
-
if ( count( $messages ) == $count ) {
|
130 |
-
echo '</div>';
|
131 |
-
}
|
132 |
-
}
|
133 |
-
}
|
134 |
-
}
|
135 |
-
|
136 |
-
function wpcf7_additional_settings_meta_box( $post ) {
|
137 |
-
?>
|
138 |
-
<textarea id="wpcf7-additional-settings" name="wpcf7-additional-settings" cols="100" rows="8"><?php echo esc_textarea( $post->prop( 'additional_settings' ) ); ?></textarea>
|
139 |
-
<?php
|
140 |
-
}
|
141 |
-
|
142 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/includes/tag-generator.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class WPCF7_TagGenerator {
|
4 |
+
|
5 |
+
private static $instance;
|
6 |
+
|
7 |
+
private $panels = array();
|
8 |
+
|
9 |
+
private function __construct() {}
|
10 |
+
|
11 |
+
public static function get_instance() {
|
12 |
+
if ( empty( self::$instance ) ) {
|
13 |
+
self::$instance = new self;
|
14 |
+
}
|
15 |
+
|
16 |
+
return self::$instance;
|
17 |
+
}
|
18 |
+
|
19 |
+
public function add( $id, $title, $callback, $options = array() ) {
|
20 |
+
$id = trim( $id );
|
21 |
+
|
22 |
+
if ( '' === $id || ! wpcf7_is_name( $id ) ) {
|
23 |
+
return false;
|
24 |
+
}
|
25 |
+
|
26 |
+
$this->panels[$id] = array(
|
27 |
+
'title' => $title,
|
28 |
+
'content' => 'tag-generator-panel-' . $id,
|
29 |
+
'options' => $options,
|
30 |
+
'callback' => $callback );
|
31 |
+
|
32 |
+
return true;
|
33 |
+
}
|
34 |
+
|
35 |
+
public function print_buttons() {
|
36 |
+
echo '<span id="tag-generator-list">';
|
37 |
+
|
38 |
+
foreach ( (array) $this->panels as $panel ) {
|
39 |
+
echo sprintf(
|
40 |
+
'<a href="#TB_inline?width=900&height=500&inlineId=%1$s" class="thickbox button" title="%2$s">%3$s</a>',
|
41 |
+
esc_attr( $panel['content'] ),
|
42 |
+
esc_attr( sprintf(
|
43 |
+
__( 'Form-tag Generator: %s', 'contact-form-7' ),
|
44 |
+
$panel['title'] ) ),
|
45 |
+
esc_html( $panel['title'] ) );
|
46 |
+
}
|
47 |
+
|
48 |
+
echo '</span>';
|
49 |
+
}
|
50 |
+
|
51 |
+
public function print_panels( WPCF7_ContactForm $contact_form ) {
|
52 |
+
foreach ( (array) $this->panels as $id => $panel ) {
|
53 |
+
$callback = $panel['callback'];
|
54 |
+
|
55 |
+
$options = wp_parse_args( $panel['options'], array() );
|
56 |
+
$options = array_merge( $options, array(
|
57 |
+
'id' => $id,
|
58 |
+
'title' => $panel['title'],
|
59 |
+
'content' => $panel['content'] ) );
|
60 |
+
|
61 |
+
if ( is_callable( $callback ) ) {
|
62 |
+
echo sprintf( '<div id="%s" class="hidden">',
|
63 |
+
esc_attr( $options['content'] ) );
|
64 |
+
echo sprintf(
|
65 |
+
'<form action="" class="tag-generator-panel" data-id="%s">',
|
66 |
+
$options['id'] );
|
67 |
+
|
68 |
+
call_user_func( $callback, $contact_form, $options );
|
69 |
+
|
70 |
+
echo '</form></div>';
|
71 |
+
}
|
72 |
+
}
|
73 |
+
}
|
74 |
+
|
75 |
+
}
|
admin/js/scripts.js
CHANGED
@@ -1,99 +1,116 @@
|
|
1 |
(function($) {
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
var updateWelcomePanel;
|
7 |
-
|
8 |
-
updateWelcomePanel = function( visible ) {
|
9 |
-
$.post( ajaxurl, {
|
10 |
-
action: 'wpcf7-update-welcome-panel',
|
11 |
-
visible: visible,
|
12 |
-
welcomepanelnonce: $( '#welcomepanelnonce' ).val()
|
13 |
-
});
|
14 |
-
};
|
15 |
-
|
16 |
-
$('a.welcome-panel-close', welcomePanel).click(function(event) {
|
17 |
-
event.preventDefault();
|
18 |
-
welcomePanel.addClass('hidden');
|
19 |
-
updateWelcomePanel( 0 );
|
20 |
-
});
|
21 |
-
|
22 |
-
$('div.cf7com-links').insertAfter($('div.wrap h2:first'));
|
23 |
-
|
24 |
-
$.extend($.tgPanes, _wpcf7.tagGenerators);
|
25 |
-
$('#taggenerator').tagGenerator(_wpcf7.generateTag, {
|
26 |
-
dropdownIconUrl: _wpcf7.pluginUrl + '/admin/images/dropdown.gif',
|
27 |
-
fadebuttImageUrl: _wpcf7.pluginUrl + '/admin/images/fade-butt.png' });
|
28 |
-
|
29 |
-
$('input#wpcf7-title:disabled').css({cursor: 'default'});
|
30 |
-
|
31 |
-
$('input#wpcf7-title').mouseover(function() {
|
32 |
-
$(this).not('.focus').addClass('mouseover');
|
33 |
-
});
|
34 |
-
|
35 |
-
$('input#wpcf7-title').mouseout(function() {
|
36 |
-
$(this).removeClass('mouseover');
|
37 |
-
});
|
38 |
-
|
39 |
-
$('input#wpcf7-title').focus(function() {
|
40 |
-
$(this).addClass('focus').removeClass('mouseover');
|
41 |
-
});
|
42 |
-
|
43 |
-
$('input#wpcf7-title').blur(function() {
|
44 |
-
$(this).removeClass('focus');
|
45 |
-
});
|
46 |
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
-
|
52 |
-
$('#messagesdiv .hide-initially').slideDown();
|
53 |
-
$(this).closest('p').remove();
|
54 |
-
return false;
|
55 |
-
});
|
56 |
|
57 |
-
|
|
|
|
|
|
|
|
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
$(this).parent().siblings('.mail-fields').hide();
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
}
|
68 |
-
|
69 |
-
|
|
|
70 |
}
|
71 |
-
}
|
72 |
});
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
});
|
79 |
|
80 |
-
function
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
|
|
|
|
|
|
|
|
|
|
96 |
}
|
97 |
-
}
|
98 |
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
(function($) {
|
2 |
|
3 |
+
if (typeof _wpcf7 == 'undefined' || _wpcf7 === null) {
|
4 |
+
_wpcf7 = {};
|
5 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
+
$(function() {
|
8 |
+
var welcomePanel = $('#welcome-panel');
|
9 |
+
var updateWelcomePanel;
|
10 |
+
|
11 |
+
updateWelcomePanel = function( visible ) {
|
12 |
+
$.post( ajaxurl, {
|
13 |
+
action: 'wpcf7-update-welcome-panel',
|
14 |
+
visible: visible,
|
15 |
+
welcomepanelnonce: $( '#welcomepanelnonce' ).val()
|
16 |
});
|
17 |
+
};
|
18 |
+
|
19 |
+
$('a.welcome-panel-close', welcomePanel).click(function(event) {
|
20 |
+
event.preventDefault();
|
21 |
+
welcomePanel.addClass('hidden');
|
22 |
+
updateWelcomePanel( 0 );
|
23 |
+
});
|
24 |
+
|
25 |
+
$('#contact-form-editor').tabs({
|
26 |
+
active: _wpcf7.activeTab,
|
27 |
+
activate: function(event, ui) {
|
28 |
+
$('#active-tab').val(ui.newTab.index());
|
29 |
+
}
|
30 |
+
});
|
31 |
+
|
32 |
+
$('input:checkbox.toggle-form-table').click(function(event) {
|
33 |
+
$(this).wpcf7ToggleFormTable();
|
34 |
+
}).wpcf7ToggleFormTable();
|
35 |
+
|
36 |
+
if ('' == $('#title').val()) {
|
37 |
+
$('#title').focus();
|
38 |
+
}
|
39 |
|
40 |
+
$.wpcf7TitleHint();
|
|
|
|
|
|
|
|
|
41 |
|
42 |
+
$('.contact-form-editor-box-mail span.mailtag').click(function(event) {
|
43 |
+
var range = document.createRange();
|
44 |
+
range.selectNodeContents(this);
|
45 |
+
window.getSelection().addRange(range);
|
46 |
+
});
|
47 |
|
48 |
+
$(window).on('beforeunload', function(event) {
|
49 |
+
var changed = false;
|
|
|
50 |
|
51 |
+
$('#wpcf7-admin-form-element :input[type!="hidden"]').each(function() {
|
52 |
+
if ($(this).is(':checkbox, :radio')) {
|
53 |
+
if (this.defaultChecked != $(this).is(':checked')) {
|
54 |
+
changed = true;
|
55 |
+
}
|
56 |
+
} else {
|
57 |
+
if (this.defaultValue != $(this).val()) {
|
58 |
+
changed = true;
|
59 |
}
|
60 |
+
}
|
61 |
});
|
62 |
|
63 |
+
if (changed) {
|
64 |
+
event.returnValue = _wpcf7.saveAlert;
|
65 |
+
return _wpcf7.saveAlert;
|
66 |
+
}
|
67 |
+
});
|
68 |
+
|
69 |
+
$('#wpcf7-admin-form-element').submit(function() {
|
70 |
+
if ('copy' != this.action.value) {
|
71 |
+
$(window).off('beforeunload');
|
72 |
+
}
|
73 |
+
});
|
74 |
});
|
75 |
|
76 |
+
$.fn.wpcf7ToggleFormTable = function() {
|
77 |
+
return this.each(function() {
|
78 |
+
var formtable = $(this).closest('.contact-form-editor-box-mail').find('fieldset');
|
79 |
+
|
80 |
+
if ($(this).is(':checked')) {
|
81 |
+
formtable.removeClass('hidden');
|
82 |
+
} else {
|
83 |
+
formtable.addClass('hidden');
|
84 |
+
}
|
85 |
+
});
|
86 |
+
};
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Copied from wptitlehint() in wp-admin/js/post.js
|
90 |
+
*/
|
91 |
+
$.wpcf7TitleHint = function() {
|
92 |
+
var title = $('#title');
|
93 |
+
var titleprompt = $('#title-prompt-text');
|
94 |
+
|
95 |
+
if ('' == title.val()) {
|
96 |
+
titleprompt.removeClass('screen-reader-text');
|
97 |
}
|
|
|
98 |
|
99 |
+
titleprompt.click(function() {
|
100 |
+
$(this).addClass('screen-reader-text');
|
101 |
+
title.focus();
|
102 |
+
});
|
103 |
+
|
104 |
+
title.blur(function() {
|
105 |
+
if ('' == $(this).val()) {
|
106 |
+
titleprompt.removeClass('screen-reader-text');
|
107 |
+
}
|
108 |
+
}).focus(function() {
|
109 |
+
titleprompt.addClass('screen-reader-text');
|
110 |
+
}).keydown(function(e) {
|
111 |
+
titleprompt.addClass('screen-reader-text');
|
112 |
+
$(this).unbind(e);
|
113 |
+
});
|
114 |
+
};
|
115 |
+
|
116 |
+
})(jQuery);
|
admin/js/tag-generator.js
ADDED
@@ -0,0 +1,241 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function($) {
|
2 |
+
|
3 |
+
if (typeof _wpcf7 == 'undefined' || _wpcf7 === null) {
|
4 |
+
_wpcf7 = {};
|
5 |
+
}
|
6 |
+
|
7 |
+
_wpcf7.taggen = {};
|
8 |
+
|
9 |
+
$(function() {
|
10 |
+
$('form.tag-generator-panel').each(function() {
|
11 |
+
_wpcf7.taggen.update($(this));
|
12 |
+
});
|
13 |
+
});
|
14 |
+
|
15 |
+
$('form.tag-generator-panel').submit(function(event) {
|
16 |
+
return false;
|
17 |
+
});
|
18 |
+
|
19 |
+
$('form.tag-generator-panel .control-box :input').change(function(event) {
|
20 |
+
var form = $(this).closest('form.tag-generator-panel');
|
21 |
+
_wpcf7.taggen.normalize($(this));
|
22 |
+
_wpcf7.taggen.update(form);
|
23 |
+
});
|
24 |
+
|
25 |
+
$('input.insert-tag').click(function(event) {
|
26 |
+
var form = $(this).closest('form.tag-generator-panel');
|
27 |
+
var tag = form.find('input.tag').val();
|
28 |
+
_wpcf7.taggen.insert(tag);
|
29 |
+
tb_remove(); // close thickbox
|
30 |
+
return false;
|
31 |
+
});
|
32 |
+
|
33 |
+
_wpcf7.taggen.update = function($form) {
|
34 |
+
var id = $form.attr('data-id');
|
35 |
+
var name = '';
|
36 |
+
var name_fields = $form.find('input[name="name"]');
|
37 |
+
|
38 |
+
if (name_fields.length) {
|
39 |
+
name = name_fields.val();
|
40 |
+
|
41 |
+
if ('' == name) {
|
42 |
+
name = id + '-' + Math.floor(Math.random() * 1000);
|
43 |
+
name_fields.val(name);
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
if ($.isFunction(_wpcf7.taggen.update[id])) {
|
48 |
+
return _wpcf7.taggen.update[id].call(this, $form);
|
49 |
+
}
|
50 |
+
|
51 |
+
$form.find('input.tag').each(function() {
|
52 |
+
var tag_type = $(this).attr('name');
|
53 |
+
|
54 |
+
if ($form.find(':input[name="tagtype"]').length) {
|
55 |
+
tag_type = $form.find(':input[name="tagtype"]').val();
|
56 |
+
}
|
57 |
+
|
58 |
+
if ($form.find(':input[name="required"]').is(':checked')) {
|
59 |
+
tag_type += '*';
|
60 |
+
}
|
61 |
+
|
62 |
+
components = _wpcf7.taggen.compose(tag_type, $form);
|
63 |
+
$(this).val(components);
|
64 |
+
});
|
65 |
+
|
66 |
+
$form.find('span.mail-tag').text('[' + name + ']');
|
67 |
+
|
68 |
+
$form.find('input.mail-tag').each(function() {
|
69 |
+
$(this).val('[' + name + ']');
|
70 |
+
});
|
71 |
+
|
72 |
+
};
|
73 |
+
|
74 |
+
_wpcf7.taggen.update.captcha = function($form) {
|
75 |
+
var captchac = _wpcf7.taggen.compose('captchac', $form);
|
76 |
+
var captchar = _wpcf7.taggen.compose('captchar', $form);
|
77 |
+
|
78 |
+
$form.find('input.tag').val(captchac + ' ' + captchar);
|
79 |
+
};
|
80 |
+
|
81 |
+
_wpcf7.taggen.compose = function(tagType, $form) {
|
82 |
+
var name = $form.find('input[name="name"]').val();
|
83 |
+
var scope = $form.find('.scope.' + tagType);
|
84 |
+
|
85 |
+
if (! scope.length) {
|
86 |
+
scope = $form;
|
87 |
+
}
|
88 |
+
|
89 |
+
var options = [];
|
90 |
+
|
91 |
+
var size = scope.find(':input[name="size"]').val() || '';
|
92 |
+
var maxlength = scope.find(':input[name="maxlength"]').val() || '';
|
93 |
+
var cols = scope.find(':input[name="cols"]').val() || '';
|
94 |
+
var rows = scope.find(':input[name="rows"]').val() || '';
|
95 |
+
|
96 |
+
if ((cols || rows) && maxlength) {
|
97 |
+
options.push(cols + 'x' + rows + '/' + maxlength);
|
98 |
+
} else if (cols || rows) {
|
99 |
+
options.push(cols + 'x' + rows);
|
100 |
+
} else if (size || maxlength) {
|
101 |
+
options.push(size + '/' + maxlength);
|
102 |
+
}
|
103 |
+
|
104 |
+
scope.find('input.option').not(':checkbox,:radio').each(function(i) {
|
105 |
+
var excluded = ['size', 'maxlength', 'cols', 'rows'];
|
106 |
+
|
107 |
+
if (-1 < $.inArray($(this).attr('name'), excluded)) {
|
108 |
+
return;
|
109 |
+
}
|
110 |
+
|
111 |
+
var val = $(this).val();
|
112 |
+
|
113 |
+
if (! val) {
|
114 |
+
return;
|
115 |
+
}
|
116 |
+
|
117 |
+
if ($(this).hasClass('filetype')) {
|
118 |
+
val = val.split(/[,|\s]+/).join('|');
|
119 |
+
}
|
120 |
+
|
121 |
+
if ($(this).hasClass('color')) {
|
122 |
+
val = '#' + val;
|
123 |
+
}
|
124 |
+
|
125 |
+
if ('class' == $(this).attr('name')) {
|
126 |
+
$.each(val.split(' '), function(i, n) { options.push('class:' + n) });
|
127 |
+
} else {
|
128 |
+
options.push($(this).attr('name') + ':' + val);
|
129 |
+
}
|
130 |
+
});
|
131 |
+
|
132 |
+
scope.find('input:checkbox.option').each(function(i) {
|
133 |
+
if ($(this).is(':checked')) {
|
134 |
+
options.push($(this).attr('name'));
|
135 |
+
}
|
136 |
+
});
|
137 |
+
|
138 |
+
options = (options.length > 0) ? options.join(' ') : '';
|
139 |
+
|
140 |
+
var value = '';
|
141 |
+
|
142 |
+
if (scope.find(':input[name="values"]').val()) {
|
143 |
+
$.each(scope.find(':input[name="values"]').val().split("\n"), function(i, n) {
|
144 |
+
value += ' "' + n.replace(/["]/g, '"') + '"';
|
145 |
+
});
|
146 |
+
}
|
147 |
+
|
148 |
+
var components = [];
|
149 |
+
|
150 |
+
$.each([tagType, name, options, value], function(i, v) {
|
151 |
+
v = $.trim(v);
|
152 |
+
|
153 |
+
if ('' != v) {
|
154 |
+
components.push(v);
|
155 |
+
}
|
156 |
+
});
|
157 |
+
|
158 |
+
components = $.trim(components.join(' '));
|
159 |
+
return '[' + components + ']';
|
160 |
+
}
|
161 |
+
|
162 |
+
_wpcf7.taggen.normalize = function($input) {
|
163 |
+
var val = $input.val();
|
164 |
+
|
165 |
+
if ($input.is('input[name="name"]')) {
|
166 |
+
val = val.replace(/[^0-9a-zA-Z:._-]/g, '').replace(/^[^a-zA-Z]+/, '');
|
167 |
+
}
|
168 |
+
|
169 |
+
if ($input.is('.numeric')) {
|
170 |
+
val = val.replace(/[^0-9.-]/g, '');
|
171 |
+
}
|
172 |
+
|
173 |
+
if ($input.is('.idvalue')) {
|
174 |
+
val = val.replace(/[^-0-9a-zA-Z_]/g, '');
|
175 |
+
}
|
176 |
+
|
177 |
+
if ($input.is('.classvalue')) {
|
178 |
+
val = $.map(val.split(' '), function(n) {
|
179 |
+
return n.replace(/[^-0-9a-zA-Z_]/g, '');
|
180 |
+
}).join(' ');
|
181 |
+
|
182 |
+
val = $.trim(val.replace(/\s+/g, ' '));
|
183 |
+
}
|
184 |
+
|
185 |
+
if ($input.is('.color')) {
|
186 |
+
val = val.replace(/[^0-9a-fA-F]/g, '');
|
187 |
+
}
|
188 |
+
|
189 |
+
if ($input.is('.filesize')) {
|
190 |
+
val = val.replace(/[^0-9kKmMbB]/g, '');
|
191 |
+
}
|
192 |
+
|
193 |
+
if ($input.is('.filetype')) {
|
194 |
+
val = val.replace(/[^0-9a-zA-Z.,|\s]/g, '');
|
195 |
+
}
|
196 |
+
|
197 |
+
if ($input.is('.date')) {
|
198 |
+
if (! val.match(/^\d{4}-\d{2}-\d{2}$/)) { // 'yyyy-mm-dd' ISO 8601 format
|
199 |
+
val = '';
|
200 |
+
}
|
201 |
+
}
|
202 |
+
|
203 |
+
if ($input.is(':input[name="values"]')) {
|
204 |
+
val = $.trim(val);
|
205 |
+
}
|
206 |
+
|
207 |
+
$input.val(val);
|
208 |
+
|
209 |
+
if ($input.is(':checkbox.exclusive')) {
|
210 |
+
_wpcf7.taggen.exclusiveCheckbox($input);
|
211 |
+
}
|
212 |
+
}
|
213 |
+
|
214 |
+
_wpcf7.taggen.exclusiveCheckbox = function($cb) {
|
215 |
+
if ($cb.is(':checked')) {
|
216 |
+
$cb.siblings(':checkbox.exclusive').prop('checked', false);
|
217 |
+
}
|
218 |
+
};
|
219 |
+
|
220 |
+
_wpcf7.taggen.insert = function(content) {
|
221 |
+
$('textarea#wpcf7-form').each(function() {
|
222 |
+
this.focus();
|
223 |
+
|
224 |
+
if (document.selection) { // IE
|
225 |
+
var selection = document.selection.createRange();
|
226 |
+
selection.text = content;
|
227 |
+
} else if (this.selectionEnd || 0 === this.selectionEnd) {
|
228 |
+
var val = $(this).val();
|
229 |
+
var end = this.selectionEnd;
|
230 |
+
$(this).val(val.substring(0, end) + content + val.substring(end, val.length));
|
231 |
+
this.selectionStart = end + content.length;
|
232 |
+
this.selectionEnd = end + content.length;
|
233 |
+
} else {
|
234 |
+
$(this).val($(this).val() + content);
|
235 |
+
}
|
236 |
+
|
237 |
+
this.focus();
|
238 |
+
});
|
239 |
+
};
|
240 |
+
|
241 |
+
})(jQuery);
|
admin/js/taggenerator.js
DELETED
@@ -1,266 +0,0 @@
|
|
1 |
-
(function($) {
|
2 |
-
|
3 |
-
$.fn.tagGenerator = function(title, options) {
|
4 |
-
var menu = $('<div class="tag-generator"></div>');
|
5 |
-
|
6 |
-
var selector = $('<span>' + title + '</span>');
|
7 |
-
|
8 |
-
selector.css({
|
9 |
-
border: '1px solid #ddd',
|
10 |
-
padding: '2px 4px',
|
11 |
-
background: '#fff url(' + options.fadebuttImageUrl + ') repeat-x 0 0',
|
12 |
-
'-moz-border-radius': '3px',
|
13 |
-
'-khtml-border-radius': '3px',
|
14 |
-
'-webkit-border-radius': '3px',
|
15 |
-
'border-radius': '3px'
|
16 |
-
});
|
17 |
-
|
18 |
-
selector.mouseover(function() {
|
19 |
-
$(this).css({ 'border-color': '#bbb' });
|
20 |
-
});
|
21 |
-
selector.mouseout(function() {
|
22 |
-
$(this).css({ 'border-color': '#ddd' });
|
23 |
-
});
|
24 |
-
selector.mousedown(function() {
|
25 |
-
$(this).css({ background: '#ddd' });
|
26 |
-
});
|
27 |
-
selector.mouseup(function() {
|
28 |
-
$(this).css({
|
29 |
-
background: '#fff url(' + options.fadebuttImageUrl + ') repeat-x 0 0'
|
30 |
-
});
|
31 |
-
});
|
32 |
-
selector.click(function() {
|
33 |
-
dropdown.slideDown('fast');
|
34 |
-
return false;
|
35 |
-
});
|
36 |
-
$('body').click(function() {
|
37 |
-
dropdown.hide();
|
38 |
-
});
|
39 |
-
|
40 |
-
if (options.dropdownIconUrl) {
|
41 |
-
var dropdown_icon = $('<img src="' + options.dropdownIconUrl + '" />');
|
42 |
-
dropdown_icon.css({ 'vertical-align': 'bottom' });
|
43 |
-
selector.append(dropdown_icon);
|
44 |
-
}
|
45 |
-
|
46 |
-
menu.append(selector);
|
47 |
-
|
48 |
-
var pane = $('<div class="tg-pane"></div>');
|
49 |
-
pane.hide();
|
50 |
-
menu.append(pane);
|
51 |
-
|
52 |
-
var dropdown = $('<div class="tg-dropdown"></div>');
|
53 |
-
dropdown.hide();
|
54 |
-
menu.append(dropdown);
|
55 |
-
|
56 |
-
$.each($.tgPanes, function(i, n) {
|
57 |
-
var submenu = $('<div>' + $.tgPanes[i].title + '</div>');
|
58 |
-
submenu.css({
|
59 |
-
margin: 0,
|
60 |
-
padding: '0 4px',
|
61 |
-
'line-height': '180%',
|
62 |
-
background: '#fff'
|
63 |
-
});
|
64 |
-
submenu.mouseover(function() {
|
65 |
-
$(this).css({ background: '#d4f2f2' });
|
66 |
-
});
|
67 |
-
submenu.mouseout(function() {
|
68 |
-
$(this).css({ background: '#fff' });
|
69 |
-
});
|
70 |
-
submenu.click(function() {
|
71 |
-
dropdown.hide();
|
72 |
-
pane.hide();
|
73 |
-
pane.empty();
|
74 |
-
$.tgPane(pane, i);
|
75 |
-
pane.slideDown('fast');
|
76 |
-
return false;
|
77 |
-
});
|
78 |
-
dropdown.append(submenu);
|
79 |
-
});
|
80 |
-
|
81 |
-
this.append(menu);
|
82 |
-
};
|
83 |
-
|
84 |
-
$.tgPane = function(pane, tagType) {
|
85 |
-
var closeButtonDiv = $('<div></div>');
|
86 |
-
closeButtonDiv.css({ float: 'right' });
|
87 |
-
|
88 |
-
var closeButton = $('<span class="tg-closebutton">×</span>');
|
89 |
-
closeButton.click(function() {
|
90 |
-
pane.slideUp('fast').empty();
|
91 |
-
});
|
92 |
-
closeButtonDiv.append(closeButton);
|
93 |
-
|
94 |
-
pane.append(closeButtonDiv);
|
95 |
-
|
96 |
-
var paneTitle = $('<div class="tg-panetitle">' + $.tgPanes[tagType].title + '</div>');
|
97 |
-
pane.append(paneTitle);
|
98 |
-
|
99 |
-
pane.append($('#' + $.tgPanes[tagType].content).clone().contents());
|
100 |
-
|
101 |
-
pane.find(':checkbox.exclusive').change(function() {
|
102 |
-
if ($(this).is(':checked'))
|
103 |
-
$(this).siblings(':checkbox.exclusive').removeAttr('checked');
|
104 |
-
});
|
105 |
-
|
106 |
-
if ($.isFunction($.tgPanes[tagType].change))
|
107 |
-
$.tgPanes[tagType].change(pane, tagType);
|
108 |
-
else
|
109 |
-
$.tgCreateTag(pane, tagType);
|
110 |
-
|
111 |
-
pane.find(':input').change(function() {
|
112 |
-
if ($.isFunction($.tgPanes[tagType].change))
|
113 |
-
$.tgPanes[tagType].change(pane, tagType);
|
114 |
-
else
|
115 |
-
$.tgCreateTag(pane, tagType);
|
116 |
-
});
|
117 |
-
}
|
118 |
-
|
119 |
-
$.tgCreateTag = function(pane, tagType) {
|
120 |
-
pane.find('input[name="name"]').each(function(i) {
|
121 |
-
var val = $(this).val();
|
122 |
-
val = val.replace(/[^0-9a-zA-Z:._-]/g, '').replace(/^[^a-zA-Z]+/, '');
|
123 |
-
if ('' == val) {
|
124 |
-
var rand = Math.floor(Math.random() * 1000);
|
125 |
-
val = tagType + '-' + rand;
|
126 |
-
}
|
127 |
-
$(this).val(val);
|
128 |
-
});
|
129 |
-
|
130 |
-
pane.find(':input.numeric').each(function(i) {
|
131 |
-
var val = $(this).val();
|
132 |
-
val = val.replace(/[^0-9.-]/g, '');
|
133 |
-
$(this).val(val);
|
134 |
-
});
|
135 |
-
|
136 |
-
pane.find(':input.idvalue').each(function(i) {
|
137 |
-
var val = $(this).val();
|
138 |
-
val = val.replace(/[^-0-9a-zA-Z_]/g, '');
|
139 |
-
$(this).val(val);
|
140 |
-
});
|
141 |
-
|
142 |
-
pane.find(':input.classvalue').each(function(i) {
|
143 |
-
var val = $(this).val();
|
144 |
-
val = $.map(val.split(' '), function(n) {
|
145 |
-
return n.replace(/[^-0-9a-zA-Z_]/g, '');
|
146 |
-
}).join(' ');
|
147 |
-
val = $.trim(val.replace(/\s+/g, ' '));
|
148 |
-
$(this).val(val);
|
149 |
-
});
|
150 |
-
|
151 |
-
pane.find(':input.color').each(function(i) {
|
152 |
-
var val = $(this).val();
|
153 |
-
val = val.replace(/[^0-9a-fA-F]/g, '');
|
154 |
-
$(this).val(val);
|
155 |
-
});
|
156 |
-
|
157 |
-
pane.find(':input.filesize').each(function(i) {
|
158 |
-
var val = $(this).val();
|
159 |
-
val = val.replace(/[^0-9kKmMbB]/g, '');
|
160 |
-
$(this).val(val);
|
161 |
-
});
|
162 |
-
|
163 |
-
pane.find(':input.filetype').each(function(i) {
|
164 |
-
var val = $(this).val();
|
165 |
-
val = val.replace(/[^0-9a-zA-Z.,|\s]/g, '');
|
166 |
-
$(this).val(val);
|
167 |
-
});
|
168 |
-
|
169 |
-
pane.find(':input.date').each(function(i) {
|
170 |
-
var val = $(this).val();
|
171 |
-
if (! val.match(/^\d{4}-\d{2}-\d{2}$/)) // 'yyyy-mm-dd' ISO 8601 format
|
172 |
-
$(this).val('');
|
173 |
-
});
|
174 |
-
|
175 |
-
pane.find(':input[name="values"]').each(function(i) {
|
176 |
-
var val = $(this).val();
|
177 |
-
val = $.trim(val);
|
178 |
-
$(this).val(val);
|
179 |
-
});
|
180 |
-
|
181 |
-
pane.find('input.tag').each(function(i) {
|
182 |
-
var type = $(this).attr('name');
|
183 |
-
|
184 |
-
var scope = pane.find('.scope.' + type);
|
185 |
-
if (! scope.length)
|
186 |
-
scope = pane;
|
187 |
-
|
188 |
-
if (pane.find(':input[name="required"]').is(':checked'))
|
189 |
-
type += '*';
|
190 |
-
|
191 |
-
var name = pane.find(':input[name="name"]').val();
|
192 |
-
|
193 |
-
var options = [];
|
194 |
-
|
195 |
-
var size = scope.find(':input[name="size"]').val() || '';
|
196 |
-
var maxlength = scope.find(':input[name="maxlength"]').val() || '';
|
197 |
-
var cols = scope.find(':input[name="cols"]').val() || '';
|
198 |
-
var rows = scope.find(':input[name="rows"]').val() || '';
|
199 |
-
|
200 |
-
if ((cols || rows) && maxlength)
|
201 |
-
options.push(cols + 'x' + rows + '/' + maxlength);
|
202 |
-
else if (cols || rows)
|
203 |
-
options.push(cols + 'x' + rows);
|
204 |
-
else if (size || maxlength)
|
205 |
-
options.push(size + '/' + maxlength);
|
206 |
-
|
207 |
-
scope.find('input.option').not(':checkbox,:radio').each(function(i) {
|
208 |
-
var excluded = ['size', 'maxlength', 'cols', 'rows'];
|
209 |
-
|
210 |
-
if (-1 < $.inArray($(this).attr('name'), excluded))
|
211 |
-
return;
|
212 |
-
|
213 |
-
var val = $(this).val();
|
214 |
-
|
215 |
-
if (! val)
|
216 |
-
return;
|
217 |
-
|
218 |
-
if ($(this).hasClass('filetype'))
|
219 |
-
val = val.split(/[,|\s]+/).join('|');
|
220 |
-
|
221 |
-
if ($(this).hasClass('color'))
|
222 |
-
val = '#' + val;
|
223 |
-
|
224 |
-
if ('class' == $(this).attr('name')) {
|
225 |
-
$.each(val.split(' '), function(i, n) { options.push('class:' + n) });
|
226 |
-
} else {
|
227 |
-
options.push($(this).attr('name') + ':' + val);
|
228 |
-
}
|
229 |
-
});
|
230 |
-
|
231 |
-
scope.find('input:checkbox.option').each(function(i) {
|
232 |
-
if ($(this).is(':checked'))
|
233 |
-
options.push($(this).attr('name'));
|
234 |
-
});
|
235 |
-
|
236 |
-
options = (options.length > 0) ? ' ' + options.join(' ') : '';
|
237 |
-
|
238 |
-
var value = '';
|
239 |
-
|
240 |
-
if (scope.find(':input[name="values"]').val()) {
|
241 |
-
$.each(scope.find(':input[name="values"]').val().split("\n"), function(i, n) {
|
242 |
-
value += ' "' + n.replace(/["]/g, '"') + '"';
|
243 |
-
});
|
244 |
-
}
|
245 |
-
|
246 |
-
if ($.tgPanes[tagType].nameless)
|
247 |
-
var tag = '[' + type + options + value + ']';
|
248 |
-
else
|
249 |
-
var tag = name ? '[' + type + ' ' + name + options + value + ']' : '';
|
250 |
-
|
251 |
-
$(this).val(tag);
|
252 |
-
});
|
253 |
-
|
254 |
-
pane.find('input.mail-tag').each(function(i) {
|
255 |
-
var name = pane.find(':input[name="name"]').val();
|
256 |
-
|
257 |
-
var tag = name ? '[' + name + ']' : '';
|
258 |
-
|
259 |
-
$(this).val(tag);
|
260 |
-
});
|
261 |
-
|
262 |
-
}
|
263 |
-
|
264 |
-
$.tgPanes = {};
|
265 |
-
|
266 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/contact-form.php
CHANGED
@@ -543,6 +543,29 @@ class WPCF7_ContactForm {
|
|
543 |
return apply_filters( 'wpcf7_form_elements', $this->form_do_shortcode() );
|
544 |
}
|
545 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
546 |
public function submit( $ajax = false ) {
|
547 |
$submission = WPCF7_Submission::get_instance( $this );
|
548 |
|
@@ -720,6 +743,28 @@ class WPCF7_ContactForm {
|
|
720 |
|
721 |
return false;
|
722 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
723 |
}
|
724 |
|
725 |
function wpcf7_contact_form( $id ) {
|
543 |
return apply_filters( 'wpcf7_form_elements', $this->form_do_shortcode() );
|
544 |
}
|
545 |
|
546 |
+
public function collect_mail_tags( $args = '' ) {
|
547 |
+
$args = wp_parse_args( $args, array(
|
548 |
+
'exclude' => array(
|
549 |
+
'acceptance', 'captchac', 'captchar', 'quiz', 'count' ) ) );
|
550 |
+
|
551 |
+
$tags = $this->form_scan_shortcode();
|
552 |
+
$mailtags = array();
|
553 |
+
|
554 |
+
foreach ( $tags as $tag ) {
|
555 |
+
$type = trim( $tag['type'], ' *' );
|
556 |
+
|
557 |
+
if ( empty( $type ) || in_array( $type, $args['exclude'] ) ) {
|
558 |
+
continue;
|
559 |
+
}
|
560 |
+
|
561 |
+
$mailtags[] = $tag['name'];
|
562 |
+
}
|
563 |
+
|
564 |
+
$mailtags = array_unique( array_filter( $mailtags ) );
|
565 |
+
|
566 |
+
return apply_filters( 'wpcf7_collect_mail_tags', $mailtags );
|
567 |
+
}
|
568 |
+
|
569 |
public function submit( $ajax = false ) {
|
570 |
$submission = WPCF7_Submission::get_instance( $this );
|
571 |
|
743 |
|
744 |
return false;
|
745 |
}
|
746 |
+
|
747 |
+
public function shortcode( $args = '' ) {
|
748 |
+
$args = wp_parse_args( $args, array(
|
749 |
+
'use_old_format' => false ) );
|
750 |
+
|
751 |
+
$title = str_replace( array( '"', '[', ']' ), '', $this->title );
|
752 |
+
|
753 |
+
if ( $args['use_old_format'] ) {
|
754 |
+
$old_unit_id = (int) get_post_meta( $this->id, '_old_cf7_unit_id', true );
|
755 |
+
|
756 |
+
if ( $old_unit_id ) {
|
757 |
+
$shortcode = sprintf( '[contact-form %1$d "%2$s"]', $old_unit_id, $title );
|
758 |
+
} else {
|
759 |
+
$shortcode = '';
|
760 |
+
}
|
761 |
+
} else {
|
762 |
+
$shortcode = sprintf( '[contact-form-7 id="%1$d" title="%2$s"]',
|
763 |
+
$this->id, $title );
|
764 |
+
}
|
765 |
+
|
766 |
+
return apply_filters( 'wpcf7_contact_form_shortcode', $shortcode, $args, $this );
|
767 |
+
}
|
768 |
}
|
769 |
|
770 |
function wpcf7_contact_form( $id ) {
|
includes/functions.php
CHANGED
@@ -144,19 +144,24 @@ function wpcf7_create_nonce( $action = -1 ) {
|
|
144 |
function wpcf7_blacklist_check( $target ) {
|
145 |
$mod_keys = trim( get_option( 'blacklist_keys' ) );
|
146 |
|
147 |
-
if ( empty( $mod_keys ) )
|
148 |
return false;
|
|
|
149 |
|
150 |
$words = explode( "\n", $mod_keys );
|
151 |
|
152 |
foreach ( (array) $words as $word ) {
|
153 |
$word = trim( $word );
|
154 |
|
155 |
-
if ( empty( $word ) )
|
156 |
continue;
|
|
|
|
|
|
|
157 |
|
158 |
-
if ( preg_match(
|
159 |
return true;
|
|
|
160 |
}
|
161 |
|
162 |
return false;
|
@@ -232,6 +237,23 @@ function wpcf7_format_atts( $atts ) {
|
|
232 |
return $html;
|
233 |
}
|
234 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
function wpcf7_load_textdomain( $locale = null ) {
|
236 |
global $l10n;
|
237 |
|
@@ -284,7 +306,7 @@ function wpcf7_load_modules() {
|
|
284 |
$file = trailingslashit( $dir ) . $mod . '.php';
|
285 |
|
286 |
if ( file_exists( $file ) ) {
|
287 |
-
include_once $file;
|
288 |
}
|
289 |
}
|
290 |
}
|
@@ -453,5 +475,3 @@ function wpcf7_count_code_units( $string ) {
|
|
453 |
|
454 |
return floor( $byte_count / 2 );
|
455 |
}
|
456 |
-
|
457 |
-
?>
|
144 |
function wpcf7_blacklist_check( $target ) {
|
145 |
$mod_keys = trim( get_option( 'blacklist_keys' ) );
|
146 |
|
147 |
+
if ( empty( $mod_keys ) ) {
|
148 |
return false;
|
149 |
+
}
|
150 |
|
151 |
$words = explode( "\n", $mod_keys );
|
152 |
|
153 |
foreach ( (array) $words as $word ) {
|
154 |
$word = trim( $word );
|
155 |
|
156 |
+
if ( empty( $word ) || 256 < strlen( $word ) ) {
|
157 |
continue;
|
158 |
+
}
|
159 |
+
|
160 |
+
$pattern = sprintf( '#%s#i', preg_quote( $word, '#' ) );
|
161 |
|
162 |
+
if ( preg_match( $pattern, $target ) ) {
|
163 |
return true;
|
164 |
+
}
|
165 |
}
|
166 |
|
167 |
return false;
|
237 |
return $html;
|
238 |
}
|
239 |
|
240 |
+
function wpcf7_link( $url, $anchor_text, $args = '' ) {
|
241 |
+
$defaults = array(
|
242 |
+
'id' => '',
|
243 |
+
'class' => '' );
|
244 |
+
|
245 |
+
$args = wp_parse_args( $args, $defaults );
|
246 |
+
$args = array_intersect_key( $args, $defaults );
|
247 |
+
$atts = wpcf7_format_atts( $args );
|
248 |
+
|
249 |
+
$link = sprintf( '<a href="%1$s"%3$s>%2$s</a>',
|
250 |
+
esc_url( $url ),
|
251 |
+
esc_html( $anchor_text ),
|
252 |
+
$atts ? ( ' ' . $atts ) : '' );
|
253 |
+
|
254 |
+
return $link;
|
255 |
+
}
|
256 |
+
|
257 |
function wpcf7_load_textdomain( $locale = null ) {
|
258 |
global $l10n;
|
259 |
|
306 |
$file = trailingslashit( $dir ) . $mod . '.php';
|
307 |
|
308 |
if ( file_exists( $file ) ) {
|
309 |
+
include_once $file;
|
310 |
}
|
311 |
}
|
312 |
}
|
475 |
|
476 |
return floor( $byte_count / 2 );
|
477 |
}
|
|
|
|
includes/shortcodes.php
CHANGED
@@ -304,6 +304,12 @@ class WPCF7_Shortcode {
|
|
304 |
}
|
305 |
|
306 |
public function get_size_option( $default = '' ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
$matches_a = $this->get_all_match_options( '%^([0-9]*)/[0-9]*$%' );
|
308 |
|
309 |
foreach ( (array) $matches_a as $matches ) {
|
@@ -429,7 +435,7 @@ class WPCF7_Shortcode {
|
|
429 |
return $val;
|
430 |
}
|
431 |
}
|
432 |
-
|
433 |
} elseif ( 'get' == $opt && isset( $_GET[$this->name] ) ) {
|
434 |
$vals = (array) $_GET[$this->name];
|
435 |
$vals = array_map( 'wpcf7_sanitize_query_var', $vals );
|
@@ -494,5 +500,3 @@ class WPCF7_Shortcode {
|
|
494 |
return $result;
|
495 |
}
|
496 |
}
|
497 |
-
|
498 |
-
?>
|
304 |
}
|
305 |
|
306 |
public function get_size_option( $default = '' ) {
|
307 |
+
$option = $this->get_option( 'size', 'int', true );
|
308 |
+
|
309 |
+
if ( $option ) {
|
310 |
+
return $option;
|
311 |
+
}
|
312 |
+
|
313 |
$matches_a = $this->get_all_match_options( '%^([0-9]*)/[0-9]*$%' );
|
314 |
|
315 |
foreach ( (array) $matches_a as $matches ) {
|
435 |
return $val;
|
436 |
}
|
437 |
}
|
438 |
+
|
439 |
} elseif ( 'get' == $opt && isset( $_GET[$this->name] ) ) {
|
440 |
$vals = (array) $_GET[$this->name];
|
441 |
$vals = array_map( 'wpcf7_sanitize_query_var', $vals );
|
500 |
return $result;
|
501 |
}
|
502 |
}
|
|
|
|
languages/contact-form-7-ja.mo
CHANGED
Binary file
|
languages/contact-form-7-sl_SI.mo
CHANGED
Binary file
|
languages/contact-form-7.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: 2015-
|
6 |
-
"PO-Revision-Date: 2015-
|
7 |
"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -20,270 +20,297 @@ msgstr ""
|
|
20 |
msgid "Just another contact form plugin. Simple but flexible."
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: contact-form-7/admin/admin.php:
|
24 |
msgid "Contact Form 7"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: contact-form-7/admin/admin.php:
|
28 |
msgid "Contact"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: contact-form-7/admin/admin.php:
|
32 |
-
#: contact-form-7/admin/edit-contact-form.php:
|
33 |
msgid "Edit Contact Form"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: contact-form-7/admin/admin.php:
|
37 |
-
#: contact-form-7/admin/admin.php:
|
38 |
#: contact-form-7/includes/contact-form.php:29
|
39 |
msgid "Contact Forms"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: contact-form-7/admin/admin.php:
|
43 |
-
#: contact-form-7/admin/edit-contact-form.php:
|
44 |
msgid "Add New Contact Form"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: contact-form-7/admin/admin.php:
|
48 |
-
#: contact-form-7/admin/admin.php:
|
49 |
-
#: contact-form-7/admin/edit-contact-form.php:
|
50 |
msgid "Add New"
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: contact-form-7/admin/admin.php:
|
54 |
msgid "You are not allowed to edit this item."
|
55 |
msgstr ""
|
56 |
|
57 |
-
#: contact-form-7/admin/admin.php:
|
58 |
msgid "You are not allowed to delete this item."
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: contact-form-7/admin/admin.php:
|
62 |
msgid "Error in deleting."
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: contact-form-7/admin/admin.php:
|
66 |
-
msgid "
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: contact-form-7/admin/admin.php:
|
70 |
#, php-format
|
71 |
msgid "Search results for “%s”"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: contact-form-7/admin/admin.php:
|
75 |
msgid "Search Contact Forms"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: contact-form-7/admin/admin.php:
|
79 |
#, php-format
|
80 |
msgid "Use the default language (%s)"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: contact-form-7/admin/admin.php:
|
84 |
msgid "Or"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: contact-form-7/admin/admin.php:
|
88 |
msgid "(select language)"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: contact-form-7/admin/admin.php:287
|
92 |
-
msgid "Form"
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: contact-form-7/admin/admin.php:290
|
96 |
-
msgid "Mail"
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: contact-form-7/admin/admin.php:293
|
100 |
-
msgid "Mail (2)"
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: contact-form-7/admin/admin.php:298
|
104 |
-
msgid "Use mail (2)"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
#: contact-form-7/admin/admin.php:300
|
108 |
-
msgid "Messages"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: contact-form-7/admin/admin.php:303
|
112 |
-
msgid "Additional Settings"
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: contact-form-7/admin/admin.php:318
|
116 |
msgid "Contact form created."
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: contact-form-7/admin/admin.php:
|
120 |
msgid "Contact form saved."
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: contact-form-7/admin/admin.php:
|
124 |
msgid "Contact form deleted."
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: contact-form-7/admin/admin.php:
|
128 |
msgid "Settings"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: contact-form-7/admin/admin.php:
|
132 |
-
msgid "http://contactform7.com/docs/"
|
133 |
-
msgstr ""
|
134 |
-
|
135 |
-
#: contact-form-7/admin/admin.php:351
|
136 |
-
msgid "Docs"
|
137 |
-
msgstr ""
|
138 |
-
|
139 |
-
#: contact-form-7/admin/admin.php:352
|
140 |
-
msgid "http://contactform7.com/faq/"
|
141 |
-
msgstr ""
|
142 |
-
|
143 |
-
#: contact-form-7/admin/admin.php:353
|
144 |
-
msgid "FAQ"
|
145 |
-
msgstr ""
|
146 |
-
|
147 |
-
#: contact-form-7/admin/admin.php:354
|
148 |
-
msgid "http://contactform7.com/support/"
|
149 |
-
msgstr ""
|
150 |
-
|
151 |
-
#: contact-form-7/admin/admin.php:355
|
152 |
-
msgid "Support"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#: contact-form-7/admin/admin.php:356 contact-form-7/admin/admin.php:412
|
156 |
-
msgid "http://contactform7.com/donate/"
|
157 |
-
msgstr ""
|
158 |
-
|
159 |
-
#: contact-form-7/admin/admin.php:357 contact-form-7/admin/admin.php:412
|
160 |
-
msgid "Donate"
|
161 |
-
msgstr ""
|
162 |
-
|
163 |
-
#: contact-form-7/admin/admin.php:379
|
164 |
#, php-format
|
165 |
msgid ""
|
166 |
"<strong>Contact Form 7 %1$s requires WordPress %2$s or higher.</strong> "
|
167 |
"Please <a href=\"%3$s\">update WordPress</a> first."
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: contact-form-7/admin/admin.php:
|
171 |
msgid "Dismiss"
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: contact-form-7/admin/admin.php:
|
175 |
msgid "Contact Form 7 Needs Your Support"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: contact-form-7/admin/admin.php:
|
179 |
msgid ""
|
180 |
"It is hard to continue development and support for this plugin without "
|
181 |
"contributions from users like you. If you enjoy using Contact Form 7 and "
|
182 |
"find it useful, please consider making a donation."
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: contact-form-7/admin/admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
msgid "Get Started"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: contact-form-7/admin/admin.php:
|
190 |
msgid "http://contactform7.com/getting-started-with-contact-form-7/"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: contact-form-7/admin/admin.php:
|
194 |
msgid "Getting Started with Contact Form 7"
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: contact-form-7/admin/admin.php:
|
198 |
msgid "http://contactform7.com/admin-screen/"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: contact-form-7/admin/admin.php:
|
202 |
msgid "Admin Screen"
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: contact-form-7/admin/admin.php:
|
206 |
msgid "http://contactform7.com/tag-syntax/"
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: contact-form-7/admin/admin.php:
|
210 |
msgid "How Tags Work"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: contact-form-7/admin/admin.php:
|
214 |
msgid "http://contactform7.com/setting-up-mail/"
|
215 |
msgstr ""
|
216 |
|
217 |
-
#: contact-form-7/admin/admin.php:
|
218 |
msgid "Setting Up Mail"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: contact-form-7/admin/admin.php:
|
222 |
msgid "Did You Know?"
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: contact-form-7/admin/admin.php:
|
226 |
msgid "http://contactform7.com/spam-filtering-with-akismet/"
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: contact-form-7/admin/admin.php:
|
230 |
msgid "Spam Filtering with Akismet"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: contact-form-7/admin/admin.php:
|
234 |
msgid "http://contactform7.com/save-submitted-messages-with-flamingo/"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: contact-form-7/admin/admin.php:
|
238 |
msgid "Save Messages with Flamingo"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: contact-form-7/admin/admin.php:
|
242 |
msgid "http://contactform7.com/selectable-recipient-with-pipes/"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: contact-form-7/admin/admin.php:
|
246 |
msgid "Selectable Recipient with Pipes"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: contact-form-7/admin/admin.php:
|
250 |
msgid ""
|
251 |
"http://contactform7.com/tracking-form-submissions-with-google-analytics/"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: contact-form-7/admin/admin.php:
|
255 |
msgid "Tracking with Google Analytics"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: contact-form-7/admin/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
msgid ""
|
260 |
-
"Copy this
|
|
|
|
|
|
|
|
|
|
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: contact-form-7/admin/edit-contact-form.php:
|
264 |
-
msgid "
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: contact-form-7/admin/edit-contact-form.php:
|
|
|
|
|
268 |
msgid "Save"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: contact-form-7/admin/edit-contact-form.php:
|
272 |
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:116
|
273 |
msgid "Duplicate"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: contact-form-7/admin/edit-contact-form.php:
|
277 |
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:83
|
278 |
msgid "Delete"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: contact-form-7/admin/edit-contact-form.php:
|
282 |
msgid ""
|
283 |
"You are about to delete this contact form.\n"
|
284 |
" 'Cancel' to stop, 'OK' to delete."
|
285 |
msgstr ""
|
286 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:11
|
288 |
msgid "Title"
|
289 |
msgstr ""
|
@@ -297,7 +324,6 @@ msgid "Author"
|
|
297 |
msgstr ""
|
298 |
|
299 |
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:14
|
300 |
-
#: contact-form-7/modules/date.php:141
|
301 |
msgid "Date"
|
302 |
msgstr ""
|
303 |
|
@@ -310,19 +336,81 @@ msgstr ""
|
|
310 |
msgid "Edit “%s”"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:
|
314 |
msgid "Y/m/d g:i:s A"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:
|
318 |
#, php-format
|
319 |
msgid "%s ago"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:
|
323 |
msgid "Y/m/d"
|
324 |
msgstr ""
|
325 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
#: contact-form-7/admin/includes/help-tabs.php:16
|
327 |
#: contact-form-7/admin/includes/help-tabs.php:39
|
328 |
msgid "Overview"
|
@@ -460,53 +548,9 @@ msgstr ""
|
|
460 |
msgid "For more information:"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: contact-form-7/admin/includes/
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
#: contact-form-7/admin/includes/help-tabs.php:91
|
468 |
-
msgid "<a href=\"http://contactform7.com/faq/\" target=\"_blank\">FAQ</a>"
|
469 |
-
msgstr ""
|
470 |
-
|
471 |
-
#: contact-form-7/admin/includes/help-tabs.php:92
|
472 |
-
msgid ""
|
473 |
-
"<a href=\"http://contactform7.com/support/\" target=\"_blank\">Support</a>"
|
474 |
-
msgstr ""
|
475 |
-
|
476 |
-
#: contact-form-7/admin/includes/meta-boxes.php:49
|
477 |
-
msgid "To:"
|
478 |
-
msgstr ""
|
479 |
-
|
480 |
-
#: contact-form-7/admin/includes/meta-boxes.php:54
|
481 |
-
msgid "From:"
|
482 |
-
msgstr ""
|
483 |
-
|
484 |
-
#: contact-form-7/admin/includes/meta-boxes.php:59
|
485 |
-
msgid "Subject:"
|
486 |
-
msgstr ""
|
487 |
-
|
488 |
-
#: contact-form-7/admin/includes/meta-boxes.php:66
|
489 |
-
msgid "Additional headers:"
|
490 |
-
msgstr ""
|
491 |
-
|
492 |
-
#: contact-form-7/admin/includes/meta-boxes.php:71
|
493 |
-
msgid "File attachments:"
|
494 |
-
msgstr ""
|
495 |
-
|
496 |
-
#: contact-form-7/admin/includes/meta-boxes.php:81
|
497 |
-
msgid "Use HTML content type"
|
498 |
-
msgstr ""
|
499 |
-
|
500 |
-
#: contact-form-7/admin/includes/meta-boxes.php:88
|
501 |
-
msgid "Message body:"
|
502 |
-
msgstr ""
|
503 |
-
|
504 |
-
#: contact-form-7/admin/includes/meta-boxes.php:96
|
505 |
-
msgid "Exclude lines with blank mail-tags from output"
|
506 |
-
msgstr ""
|
507 |
-
|
508 |
-
#: contact-form-7/admin/includes/meta-boxes.php:125
|
509 |
-
msgid "Show all messages"
|
510 |
msgstr ""
|
511 |
|
512 |
#: contact-form-7/includes/contact-form-template.php:23
|
@@ -522,10 +566,6 @@ msgstr ""
|
|
522 |
msgid "Your Email"
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: contact-form-7/includes/contact-form-template.php:29
|
526 |
-
msgid "Subject"
|
527 |
-
msgstr ""
|
528 |
-
|
529 |
#: contact-form-7/includes/contact-form-template.php:31
|
530 |
msgid "Your Message"
|
531 |
msgstr ""
|
@@ -900,76 +940,79 @@ msgstr ""
|
|
900 |
msgid "Vietnamese"
|
901 |
msgstr ""
|
902 |
|
903 |
-
#: contact-form-7/modules/acceptance.php:
|
904 |
-
msgid "
|
905 |
msgstr ""
|
906 |
|
907 |
-
#: contact-form-7/modules/acceptance.php:
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
#: contact-form-7/modules/quiz.php:172 contact-form-7/modules/select.php:171
|
912 |
-
#: contact-form-7/modules/text.php:231 contact-form-7/modules/textarea.php:137
|
913 |
-
msgid "Name"
|
914 |
msgstr ""
|
915 |
|
916 |
-
#: contact-form-7/modules/acceptance.php:
|
917 |
-
|
918 |
-
|
919 |
-
|
|
|
|
|
|
|
|
|
|
|
920 |
#: contact-form-7/modules/captcha.php:228
|
921 |
-
#: contact-form-7/modules/
|
922 |
-
#: contact-form-7/modules/
|
923 |
-
#: contact-form-7/modules/
|
924 |
-
#: contact-form-7/modules/
|
925 |
-
|
926 |
-
#: contact-form-7/modules/captcha.php:257
|
927 |
-
#: contact-form-7/modules/checkbox.php:300
|
928 |
-
#: contact-form-7/modules/checkbox.php:303 contact-form-7/modules/date.php:163
|
929 |
-
#: contact-form-7/modules/date.php:166 contact-form-7/modules/date.php:171
|
930 |
-
#: contact-form-7/modules/date.php:174 contact-form-7/modules/date.php:179
|
931 |
-
#: contact-form-7/modules/date.php:184 contact-form-7/modules/file.php:238
|
932 |
-
#: contact-form-7/modules/file.php:241 contact-form-7/modules/file.php:246
|
933 |
-
#: contact-form-7/modules/file.php:249 contact-form-7/modules/number.php:173
|
934 |
-
#: contact-form-7/modules/number.php:176 contact-form-7/modules/number.php:181
|
935 |
-
#: contact-form-7/modules/number.php:184 contact-form-7/modules/number.php:189
|
936 |
-
#: contact-form-7/modules/number.php:194 contact-form-7/modules/quiz.php:177
|
937 |
-
#: contact-form-7/modules/quiz.php:180 contact-form-7/modules/quiz.php:185
|
938 |
-
#: contact-form-7/modules/quiz.php:188 contact-form-7/modules/select.php:176
|
939 |
-
#: contact-form-7/modules/select.php:179 contact-form-7/modules/submit.php:59
|
940 |
-
#: contact-form-7/modules/submit.php:62 contact-form-7/modules/submit.php:67
|
941 |
-
#: contact-form-7/modules/text.php:236 contact-form-7/modules/text.php:239
|
942 |
-
#: contact-form-7/modules/text.php:244 contact-form-7/modules/text.php:247
|
943 |
-
#: contact-form-7/modules/text.php:253 contact-form-7/modules/text.php:266
|
944 |
-
#: contact-form-7/modules/textarea.php:142
|
945 |
-
#: contact-form-7/modules/textarea.php:145
|
946 |
-
#: contact-form-7/modules/textarea.php:150
|
947 |
-
#: contact-form-7/modules/textarea.php:153
|
948 |
-
#: contact-form-7/modules/textarea.php:158
|
949 |
-
#: contact-form-7/modules/textarea.php:163
|
950 |
-
msgid "optional"
|
951 |
msgstr ""
|
952 |
|
953 |
#: contact-form-7/modules/acceptance.php:155
|
954 |
-
|
|
|
|
|
|
|
|
|
955 |
msgstr ""
|
956 |
|
957 |
-
#: contact-form-7/modules/acceptance.php:
|
958 |
-
msgid "Make this checkbox
|
959 |
msgstr ""
|
960 |
|
961 |
-
#: contact-form-7/modules/acceptance.php:
|
962 |
-
msgid "
|
963 |
msgstr ""
|
964 |
|
965 |
-
#: contact-form-7/modules/acceptance.php:
|
966 |
-
#: contact-form-7/modules/captcha.php:
|
967 |
-
#: contact-form-7/modules/
|
968 |
-
#: contact-form-7/modules/
|
969 |
-
#: contact-form-7/modules/
|
970 |
-
#: contact-form-7/modules/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
971 |
#: contact-form-7/modules/textarea.php:171
|
972 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
973 |
msgstr ""
|
974 |
|
975 |
#: contact-form-7/modules/captcha.php:19
|
@@ -986,109 +1029,121 @@ msgstr ""
|
|
986 |
msgid "Your entered code is incorrect."
|
987 |
msgstr ""
|
988 |
|
989 |
-
#: contact-form-7/modules/captcha.php:
|
|
|
990 |
msgid "CAPTCHA"
|
991 |
msgstr ""
|
992 |
|
993 |
-
#: contact-form-7/modules/captcha.php:
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
#: contact-form-7/modules/captcha.php:217
|
998 |
-
msgid "Image settings"
|
999 |
msgstr ""
|
1000 |
|
1001 |
-
#: contact-form-7/modules/captcha.php:
|
1002 |
-
|
|
|
|
|
|
|
1003 |
msgstr ""
|
1004 |
|
1005 |
-
#: contact-form-7/modules/captcha.php:
|
1006 |
-
msgid "
|
1007 |
msgstr ""
|
1008 |
|
1009 |
#: contact-form-7/modules/captcha.php:235
|
1010 |
-
msgid "Image
|
1011 |
-
msgstr ""
|
1012 |
-
|
1013 |
-
#: contact-form-7/modules/captcha.php:236
|
1014 |
-
msgid "Small"
|
1015 |
msgstr ""
|
1016 |
|
1017 |
-
#: contact-form-7/modules/captcha.php:
|
1018 |
-
msgid "
|
1019 |
msgstr ""
|
1020 |
|
1021 |
-
#: contact-form-7/modules/captcha.php:
|
1022 |
-
|
|
|
|
|
|
|
|
|
1023 |
msgstr ""
|
1024 |
|
1025 |
-
#: contact-form-7/modules/captcha.php:
|
1026 |
-
msgid "
|
|
|
|
|
1027 |
msgstr ""
|
1028 |
|
1029 |
-
#: contact-form-7/modules/
|
1030 |
-
msgid "
|
1031 |
msgstr ""
|
1032 |
|
1033 |
-
#: contact-form-7/modules/
|
1034 |
-
msgid "
|
1035 |
msgstr ""
|
1036 |
|
1037 |
-
#: contact-form-7/modules/
|
1038 |
#, php-format
|
1039 |
msgid ""
|
1040 |
-
"
|
1041 |
-
"files (%s) does not exist or is not writable. You can create the folder or "
|
1042 |
-
"change its permission manually."
|
1043 |
msgstr ""
|
1044 |
|
1045 |
-
#: contact-form-7/modules/
|
|
|
1046 |
msgid ""
|
1047 |
-
"
|
1048 |
-
"and FreeType) are not available on your server."
|
1049 |
msgstr ""
|
1050 |
|
1051 |
-
#: contact-form-7/modules/checkbox.php:
|
1052 |
-
|
|
|
1053 |
msgstr ""
|
1054 |
|
1055 |
-
#: contact-form-7/modules/checkbox.php:
|
1056 |
-
|
|
|
1057 |
msgstr ""
|
1058 |
|
1059 |
-
#: contact-form-7/modules/checkbox.php:
|
1060 |
-
#: contact-form-7/modules/
|
1061 |
-
#: contact-form-7/modules/
|
1062 |
-
#: contact-form-7/modules/
|
1063 |
-
|
|
|
|
|
|
|
|
|
1064 |
msgstr ""
|
1065 |
|
1066 |
-
#: contact-form-7/modules/checkbox.php:
|
1067 |
-
#: contact-form-7/modules/
|
1068 |
-
|
|
|
|
|
1069 |
msgstr ""
|
1070 |
|
1071 |
-
#: contact-form-7/modules/checkbox.php:
|
1072 |
-
#: contact-form-7/modules/select.php:
|
1073 |
-
msgid "
|
1074 |
msgstr ""
|
1075 |
|
1076 |
-
#: contact-form-7/modules/checkbox.php:
|
1077 |
-
msgid "Put a label first, a checkbox last
|
1078 |
msgstr ""
|
1079 |
|
1080 |
-
#: contact-form-7/modules/checkbox.php:
|
1081 |
-
msgid "Wrap each item with
|
1082 |
msgstr ""
|
1083 |
|
1084 |
-
#: contact-form-7/modules/checkbox.php:
|
1085 |
-
msgid "Make checkboxes exclusive
|
1086 |
msgstr ""
|
1087 |
|
1088 |
-
#: contact-form-7/modules/checkbox.php:
|
1089 |
-
#: contact-form-7/modules/number.php:
|
1090 |
-
#: contact-form-7/modules/text.php:
|
1091 |
-
|
|
|
|
|
|
|
1092 |
msgstr ""
|
1093 |
|
1094 |
#: contact-form-7/modules/date.php:117
|
@@ -1115,14 +1170,44 @@ msgstr ""
|
|
1115 |
msgid "This date is too late."
|
1116 |
msgstr ""
|
1117 |
|
1118 |
-
#: contact-form-7/modules/date.php:
|
1119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1120 |
msgid "Default value"
|
1121 |
msgstr ""
|
1122 |
|
1123 |
-
#: contact-form-7/modules/date.php:
|
1124 |
-
#: contact-form-7/modules/text.php:
|
1125 |
-
msgid "Use this text as placeholder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1126 |
msgstr ""
|
1127 |
|
1128 |
#: contact-form-7/modules/file.php:193
|
@@ -1157,27 +1242,41 @@ msgstr ""
|
|
1157 |
msgid "Failed to upload file. Error occurred."
|
1158 |
msgstr ""
|
1159 |
|
1160 |
-
#: contact-form-7/modules/file.php:
|
1161 |
-
msgid "
|
1162 |
msgstr ""
|
1163 |
|
1164 |
-
#: contact-form-7/modules/file.php:
|
1165 |
-
|
|
|
|
|
1166 |
msgstr ""
|
1167 |
|
1168 |
-
#: contact-form-7/modules/file.php:
|
1169 |
-
msgid "
|
1170 |
msgstr ""
|
1171 |
|
1172 |
-
#: contact-form-7/modules/file.php:
|
1173 |
-
msgid "
|
1174 |
msgstr ""
|
1175 |
|
1176 |
#: contact-form-7/modules/file.php:256
|
1177 |
-
msgid "
|
1178 |
msgstr ""
|
1179 |
|
1180 |
-
#: contact-form-7/modules/file.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1181 |
#, php-format
|
1182 |
msgid ""
|
1183 |
"This contact form contains file uploading fields, but the temporary folder "
|
@@ -1185,11 +1284,19 @@ msgid ""
|
|
1185 |
"folder or change its permission manually."
|
1186 |
msgstr ""
|
1187 |
|
1188 |
-
#: contact-form-7/modules/jetpack.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1189 |
#, php-format
|
1190 |
msgid ""
|
1191 |
-
"
|
1192 |
-
"
|
1193 |
msgstr ""
|
1194 |
|
1195 |
#: contact-form-7/modules/number.php:120
|
@@ -1216,12 +1323,31 @@ msgstr ""
|
|
1216 |
msgid "This number is too large."
|
1217 |
msgstr ""
|
1218 |
|
1219 |
-
#: contact-form-7/modules/number.php:
|
1220 |
-
msgid "
|
1221 |
msgstr ""
|
1222 |
|
1223 |
-
#: contact-form-7/modules/number.php:
|
1224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1225 |
msgstr ""
|
1226 |
|
1227 |
#: contact-form-7/modules/quiz.php:149
|
@@ -1232,35 +1358,69 @@ msgstr ""
|
|
1232 |
msgid "Your answer is not correct."
|
1233 |
msgstr ""
|
1234 |
|
1235 |
-
#: contact-form-7/modules/quiz.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1236 |
msgid "Quiz"
|
1237 |
msgstr ""
|
1238 |
|
1239 |
-
#: contact-form-7/modules/quiz.php:
|
1240 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1241 |
msgstr ""
|
1242 |
|
1243 |
-
#: contact-form-7/modules/
|
1244 |
-
msgid "
|
1245 |
msgstr ""
|
1246 |
|
1247 |
-
#: contact-form-7/modules/select.php:
|
1248 |
-
msgid "
|
1249 |
msgstr ""
|
1250 |
|
1251 |
-
#: contact-form-7/modules/
|
1252 |
-
msgid "
|
1253 |
msgstr ""
|
1254 |
|
1255 |
-
#: contact-form-7/modules/
|
1256 |
-
|
|
|
1257 |
msgstr ""
|
1258 |
|
1259 |
-
#: contact-form-7/modules/submit.php:
|
1260 |
-
msgid "
|
1261 |
msgstr ""
|
1262 |
|
1263 |
-
#: contact-form-7/modules/submit.php:
|
|
|
|
|
|
|
|
|
1264 |
msgid "Label"
|
1265 |
msgstr ""
|
1266 |
|
@@ -1288,40 +1448,83 @@ msgstr ""
|
|
1288 |
msgid "Telephone number seems invalid."
|
1289 |
msgstr ""
|
1290 |
|
1291 |
-
#: contact-form-7/modules/text.php:
|
1292 |
-
msgid "
|
1293 |
msgstr ""
|
1294 |
|
1295 |
-
#: contact-form-7/modules/text.php:
|
1296 |
-
msgid "
|
1297 |
msgstr ""
|
1298 |
|
1299 |
-
#: contact-form-7/modules/text.php:
|
1300 |
msgid "URL"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
-
#: contact-form-7/modules/text.php:
|
1304 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1305 |
msgstr ""
|
1306 |
|
1307 |
-
#: contact-form-7/modules/text.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1308 |
msgid "Akismet"
|
1309 |
msgstr ""
|
1310 |
|
1311 |
-
#: contact-form-7/modules/text.php:
|
1312 |
msgid "This field requires author's name"
|
1313 |
msgstr ""
|
1314 |
|
1315 |
-
#: contact-form-7/modules/text.php:
|
1316 |
msgid "This field requires author's email address"
|
1317 |
msgstr ""
|
1318 |
|
1319 |
-
#: contact-form-7/modules/text.php:
|
1320 |
msgid "This field requires author's URL"
|
1321 |
msgstr ""
|
1322 |
|
1323 |
-
#: contact-form-7/modules/textarea.php:
|
1324 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1325 |
msgstr ""
|
1326 |
|
1327 |
#: contact-form-7/settings.php:72
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contact Form 7\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2015-05-18 21:49+0900\n"
|
6 |
+
"PO-Revision-Date: 2015-05-18 21:49+0900\n"
|
7 |
"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
20 |
msgid "Just another contact form plugin. Simple but flexible."
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: contact-form-7/admin/admin.php:9 contact-form-7/modules/flamingo.php:134
|
24 |
msgid "Contact Form 7"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: contact-form-7/admin/admin.php:10
|
28 |
msgid "Contact"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: contact-form-7/admin/admin.php:15
|
32 |
+
#: contact-form-7/admin/edit-contact-form.php:14
|
33 |
msgid "Edit Contact Form"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: contact-form-7/admin/admin.php:16 contact-form-7/admin/admin.php:166
|
37 |
+
#: contact-form-7/admin/admin.php:224
|
38 |
#: contact-form-7/includes/contact-form.php:29
|
39 |
msgid "Contact Forms"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: contact-form-7/admin/admin.php:23 contact-form-7/admin/admin.php:268
|
43 |
+
#: contact-form-7/admin/edit-contact-form.php:12
|
44 |
msgid "Add New Contact Form"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: contact-form-7/admin/admin.php:24 contact-form-7/admin/admin.php:227
|
48 |
+
#: contact-form-7/admin/admin.php:273 contact-form-7/admin/admin.php:285
|
49 |
+
#: contact-form-7/admin/edit-contact-form.php:17
|
50 |
msgid "Add New"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: contact-form-7/admin/admin.php:53 contact-form-7/admin/admin.php:75
|
54 |
msgid "You are not allowed to edit this item."
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: contact-form-7/admin/admin.php:114
|
58 |
msgid "You are not allowed to delete this item."
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: contact-form-7/admin/admin.php:117
|
62 |
msgid "Error in deleting."
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: contact-form-7/admin/admin.php:204
|
66 |
+
msgid "The changes you made will be lost if you navigate away from this page."
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: contact-form-7/admin/admin.php:232
|
70 |
#, php-format
|
71 |
msgid "Search results for “%s”"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: contact-form-7/admin/admin.php:241
|
75 |
msgid "Search Contact Forms"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: contact-form-7/admin/admin.php:272
|
79 |
#, php-format
|
80 |
msgid "Use the default language (%s)"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: contact-form-7/admin/admin.php:276
|
84 |
msgid "Or"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: contact-form-7/admin/admin.php:280
|
88 |
msgid "(select language)"
|
89 |
msgstr ""
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
#: contact-form-7/admin/admin.php:300
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
msgid "Contact form created."
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: contact-form-7/admin/admin.php:302
|
96 |
msgid "Contact form saved."
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: contact-form-7/admin/admin.php:304
|
100 |
msgid "Contact form deleted."
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: contact-form-7/admin/admin.php:321
|
104 |
msgid "Settings"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: contact-form-7/admin/admin.php:344
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
#, php-format
|
109 |
msgid ""
|
110 |
"<strong>Contact Form 7 %1$s requires WordPress %2$s or higher.</strong> "
|
111 |
"Please <a href=\"%3$s\">update WordPress</a> first."
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: contact-form-7/admin/admin.php:370
|
115 |
msgid "Dismiss"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: contact-form-7/admin/admin.php:375
|
119 |
msgid "Contact Form 7 Needs Your Support"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: contact-form-7/admin/admin.php:376
|
123 |
msgid ""
|
124 |
"It is hard to continue development and support for this plugin without "
|
125 |
"contributions from users like you. If you enjoy using Contact Form 7 and "
|
126 |
"find it useful, please consider making a donation."
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: contact-form-7/admin/admin.php:377
|
130 |
+
msgid "http://contactform7.com/donate/"
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: contact-form-7/admin/admin.php:377
|
134 |
+
msgid "Donate"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: contact-form-7/admin/admin.php:381
|
138 |
msgid "Get Started"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: contact-form-7/admin/admin.php:383
|
142 |
msgid "http://contactform7.com/getting-started-with-contact-form-7/"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: contact-form-7/admin/admin.php:383
|
146 |
msgid "Getting Started with Contact Form 7"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: contact-form-7/admin/admin.php:384
|
150 |
msgid "http://contactform7.com/admin-screen/"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: contact-form-7/admin/admin.php:384
|
154 |
msgid "Admin Screen"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: contact-form-7/admin/admin.php:385
|
158 |
msgid "http://contactform7.com/tag-syntax/"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: contact-form-7/admin/admin.php:385
|
162 |
msgid "How Tags Work"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: contact-form-7/admin/admin.php:386
|
166 |
msgid "http://contactform7.com/setting-up-mail/"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: contact-form-7/admin/admin.php:386
|
170 |
msgid "Setting Up Mail"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: contact-form-7/admin/admin.php:391
|
174 |
msgid "Did You Know?"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: contact-form-7/admin/admin.php:393
|
178 |
msgid "http://contactform7.com/spam-filtering-with-akismet/"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: contact-form-7/admin/admin.php:393
|
182 |
msgid "Spam Filtering with Akismet"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: contact-form-7/admin/admin.php:394
|
186 |
msgid "http://contactform7.com/save-submitted-messages-with-flamingo/"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: contact-form-7/admin/admin.php:394
|
190 |
msgid "Save Messages with Flamingo"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: contact-form-7/admin/admin.php:395
|
194 |
msgid "http://contactform7.com/selectable-recipient-with-pipes/"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: contact-form-7/admin/admin.php:395
|
198 |
msgid "Selectable Recipient with Pipes"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: contact-form-7/admin/admin.php:396
|
202 |
msgid ""
|
203 |
"http://contactform7.com/tracking-form-submissions-with-google-analytics/"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: contact-form-7/admin/admin.php:396
|
207 |
msgid "Tracking with Google Analytics"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: contact-form-7/admin/admin.php:441
|
211 |
+
msgid "You are not allowed to edit this contact form."
|
212 |
+
msgstr ""
|
213 |
+
|
214 |
+
#: contact-form-7/admin/edit-contact-form.php:50
|
215 |
+
msgid "Enter title here"
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#: contact-form-7/admin/edit-contact-form.php:72
|
219 |
msgid ""
|
220 |
+
"Copy this shortcode and paste it into your post, page, or text widget "
|
221 |
+
"content:"
|
222 |
+
msgstr ""
|
223 |
+
|
224 |
+
#: contact-form-7/admin/edit-contact-form.php:79
|
225 |
+
msgid "You can also use this old-style shortcode:"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: contact-form-7/admin/edit-contact-form.php:93
|
229 |
+
msgid "Status"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: contact-form-7/admin/edit-contact-form.php:100
|
233 |
+
#: contact-form-7/admin/edit-contact-form.php:123
|
234 |
+
#: contact-form-7/admin/edit-contact-form.php:188
|
235 |
msgid "Save"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: contact-form-7/admin/edit-contact-form.php:107
|
239 |
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:116
|
240 |
msgid "Duplicate"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: contact-form-7/admin/edit-contact-form.php:118
|
244 |
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:83
|
245 |
msgid "Delete"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: contact-form-7/admin/edit-contact-form.php:118
|
249 |
msgid ""
|
250 |
"You are about to delete this contact form.\n"
|
251 |
" 'Cancel' to stop, 'OK' to delete."
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: contact-form-7/admin/edit-contact-form.php:132
|
255 |
+
msgid "Information"
|
256 |
+
msgstr ""
|
257 |
+
|
258 |
+
#: contact-form-7/admin/edit-contact-form.php:135
|
259 |
+
#: contact-form-7/admin/includes/help-tabs.php:90
|
260 |
+
msgid "http://contactform7.com/docs/"
|
261 |
+
msgstr ""
|
262 |
+
|
263 |
+
#: contact-form-7/admin/edit-contact-form.php:135
|
264 |
+
#: contact-form-7/admin/includes/help-tabs.php:90
|
265 |
+
msgid "Docs"
|
266 |
+
msgstr ""
|
267 |
+
|
268 |
+
#: contact-form-7/admin/edit-contact-form.php:136
|
269 |
+
#: contact-form-7/admin/includes/help-tabs.php:91
|
270 |
+
msgid "http://contactform7.com/faq/"
|
271 |
+
msgstr ""
|
272 |
+
|
273 |
+
#: contact-form-7/admin/edit-contact-form.php:136
|
274 |
+
#: contact-form-7/admin/includes/help-tabs.php:91
|
275 |
+
msgid "FAQ"
|
276 |
+
msgstr ""
|
277 |
+
|
278 |
+
#: contact-form-7/admin/edit-contact-form.php:137
|
279 |
+
#: contact-form-7/admin/includes/help-tabs.php:92
|
280 |
+
msgid "http://contactform7.com/support/"
|
281 |
+
msgstr ""
|
282 |
+
|
283 |
+
#: contact-form-7/admin/edit-contact-form.php:137
|
284 |
+
#: contact-form-7/admin/includes/help-tabs.php:92
|
285 |
+
msgid "Support"
|
286 |
+
msgstr ""
|
287 |
+
|
288 |
+
#: contact-form-7/admin/edit-contact-form.php:154
|
289 |
+
#: contact-form-7/admin/includes/editor.php:45
|
290 |
+
msgid "Form"
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: contact-form-7/admin/edit-contact-form.php:157
|
294 |
+
#: contact-form-7/admin/includes/editor.php:72
|
295 |
+
msgid "Mail"
|
296 |
+
msgstr ""
|
297 |
+
|
298 |
+
#: contact-form-7/admin/edit-contact-form.php:160
|
299 |
+
#: contact-form-7/admin/includes/editor.php:167
|
300 |
+
msgid "Messages"
|
301 |
+
msgstr ""
|
302 |
+
|
303 |
+
#: contact-form-7/admin/edit-contact-form.php:171
|
304 |
+
#, php-format
|
305 |
+
msgid "Additional Settings (%d)"
|
306 |
+
msgstr ""
|
307 |
+
|
308 |
+
#: contact-form-7/admin/edit-contact-form.php:173
|
309 |
+
#: contact-form-7/admin/includes/editor.php:190
|
310 |
+
#: contact-form-7/admin/includes/editor.php:195
|
311 |
+
msgid "Additional Settings"
|
312 |
+
msgstr ""
|
313 |
+
|
314 |
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:11
|
315 |
msgid "Title"
|
316 |
msgstr ""
|
324 |
msgstr ""
|
325 |
|
326 |
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:14
|
|
|
327 |
msgid "Date"
|
328 |
msgstr ""
|
329 |
|
336 |
msgid "Edit “%s”"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:160
|
340 |
msgid "Y/m/d g:i:s A"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:167
|
344 |
#, php-format
|
345 |
msgid "%s ago"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:169
|
349 |
msgid "Y/m/d"
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: contact-form-7/admin/includes/editor.php:64
|
353 |
+
msgid "Mail (2)"
|
354 |
+
msgstr ""
|
355 |
+
|
356 |
+
#: contact-form-7/admin/includes/editor.php:65
|
357 |
+
msgid "Use Mail (2)"
|
358 |
+
msgstr ""
|
359 |
+
|
360 |
+
#: contact-form-7/admin/includes/editor.php:90
|
361 |
+
msgid "Mail (2) is an additional mail template often used as an autoresponder."
|
362 |
+
msgstr ""
|
363 |
+
|
364 |
+
#: contact-form-7/admin/includes/editor.php:96
|
365 |
+
msgid "In the following fields, you can use these mail-tags:"
|
366 |
+
msgstr ""
|
367 |
+
|
368 |
+
#: contact-form-7/admin/includes/editor.php:102
|
369 |
+
msgid "To"
|
370 |
+
msgstr ""
|
371 |
+
|
372 |
+
#: contact-form-7/admin/includes/editor.php:111
|
373 |
+
msgid "From"
|
374 |
+
msgstr ""
|
375 |
+
|
376 |
+
#: contact-form-7/admin/includes/editor.php:120
|
377 |
+
#: contact-form-7/includes/contact-form-template.php:29
|
378 |
+
msgid "Subject"
|
379 |
+
msgstr ""
|
380 |
+
|
381 |
+
#: contact-form-7/admin/includes/editor.php:129
|
382 |
+
msgid "Additional Headers"
|
383 |
+
msgstr ""
|
384 |
+
|
385 |
+
#: contact-form-7/admin/includes/editor.php:138
|
386 |
+
msgid "Message Body"
|
387 |
+
msgstr ""
|
388 |
+
|
389 |
+
#: contact-form-7/admin/includes/editor.php:143
|
390 |
+
msgid "Exclude lines with blank mail-tags from output"
|
391 |
+
msgstr ""
|
392 |
+
|
393 |
+
#: contact-form-7/admin/includes/editor.php:145
|
394 |
+
msgid "Use HTML content type"
|
395 |
+
msgstr ""
|
396 |
+
|
397 |
+
#: contact-form-7/admin/includes/editor.php:151
|
398 |
+
msgid "File Attachments"
|
399 |
+
msgstr ""
|
400 |
+
|
401 |
+
#: contact-form-7/admin/includes/editor.php:169
|
402 |
+
msgid "Edit messages used in the following situations."
|
403 |
+
msgstr ""
|
404 |
+
|
405 |
+
#: contact-form-7/admin/includes/editor.php:189
|
406 |
+
msgid "http://contactform7.com/additional-settings/"
|
407 |
+
msgstr ""
|
408 |
+
|
409 |
+
#: contact-form-7/admin/includes/editor.php:191
|
410 |
+
#, php-format
|
411 |
+
msgid "You can add customization code snippets here. For details, see %s."
|
412 |
+
msgstr ""
|
413 |
+
|
414 |
#: contact-form-7/admin/includes/help-tabs.php:16
|
415 |
#: contact-form-7/admin/includes/help-tabs.php:39
|
416 |
msgid "Overview"
|
548 |
msgid "For more information:"
|
549 |
msgstr ""
|
550 |
|
551 |
+
#: contact-form-7/admin/includes/tag-generator.php:43
|
552 |
+
#, php-format
|
553 |
+
msgid "Form-tag Generator: %s"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
554 |
msgstr ""
|
555 |
|
556 |
#: contact-form-7/includes/contact-form-template.php:23
|
566 |
msgid "Your Email"
|
567 |
msgstr ""
|
568 |
|
|
|
|
|
|
|
|
|
569 |
#: contact-form-7/includes/contact-form-template.php:31
|
570 |
msgid "Your Message"
|
571 |
msgstr ""
|
940 |
msgid "Vietnamese"
|
941 |
msgstr ""
|
942 |
|
943 |
+
#: contact-form-7/modules/acceptance.php:130
|
944 |
+
msgid "acceptance"
|
945 |
msgstr ""
|
946 |
|
947 |
+
#: contact-form-7/modules/acceptance.php:138
|
948 |
+
#, php-format
|
949 |
+
msgid ""
|
950 |
+
"Generate a form-tag for an acceptance checkbox. For more details, see %s."
|
|
|
|
|
|
|
951 |
msgstr ""
|
952 |
|
953 |
+
#: contact-form-7/modules/acceptance.php:140
|
954 |
+
msgid "http://contactform7.com/acceptance-checkbox/"
|
955 |
+
msgstr ""
|
956 |
+
|
957 |
+
#: contact-form-7/modules/acceptance.php:140
|
958 |
+
msgid "Acceptance Checkbox"
|
959 |
+
msgstr ""
|
960 |
+
|
961 |
+
#: contact-form-7/modules/acceptance.php:150
|
962 |
#: contact-form-7/modules/captcha.php:228
|
963 |
+
#: contact-form-7/modules/checkbox.php:308 contact-form-7/modules/date.php:169
|
964 |
+
#: contact-form-7/modules/file.php:251 contact-form-7/modules/number.php:177
|
965 |
+
#: contact-form-7/modules/quiz.php:181 contact-form-7/modules/select.php:188
|
966 |
+
#: contact-form-7/modules/text.php:239 contact-form-7/modules/textarea.php:155
|
967 |
+
msgid "Name"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
968 |
msgstr ""
|
969 |
|
970 |
#: contact-form-7/modules/acceptance.php:155
|
971 |
+
#: contact-form-7/modules/acceptance.php:158
|
972 |
+
#: contact-form-7/modules/checkbox.php:313
|
973 |
+
#: contact-form-7/modules/checkbox.php:316
|
974 |
+
#: contact-form-7/modules/select.php:193 contact-form-7/modules/select.php:196
|
975 |
+
msgid "Options"
|
976 |
msgstr ""
|
977 |
|
978 |
+
#: contact-form-7/modules/acceptance.php:159
|
979 |
+
msgid "Make this checkbox checked by default"
|
980 |
msgstr ""
|
981 |
|
982 |
+
#: contact-form-7/modules/acceptance.php:160
|
983 |
+
msgid "Make this work inversely"
|
984 |
msgstr ""
|
985 |
|
986 |
+
#: contact-form-7/modules/acceptance.php:166
|
987 |
+
#: contact-form-7/modules/captcha.php:238
|
988 |
+
#: contact-form-7/modules/captcha.php:253
|
989 |
+
#: contact-form-7/modules/checkbox.php:329 contact-form-7/modules/date.php:198
|
990 |
+
#: contact-form-7/modules/file.php:266 contact-form-7/modules/number.php:206
|
991 |
+
#: contact-form-7/modules/quiz.php:197 contact-form-7/modules/select.php:206
|
992 |
+
#: contact-form-7/modules/submit.php:71 contact-form-7/modules/text.php:279
|
993 |
+
#: contact-form-7/modules/textarea.php:166
|
994 |
+
msgid "Id attribute"
|
995 |
+
msgstr ""
|
996 |
+
|
997 |
+
#: contact-form-7/modules/acceptance.php:171
|
998 |
+
#: contact-form-7/modules/captcha.php:243
|
999 |
+
#: contact-form-7/modules/captcha.php:258
|
1000 |
+
#: contact-form-7/modules/checkbox.php:334 contact-form-7/modules/date.php:203
|
1001 |
+
#: contact-form-7/modules/file.php:271 contact-form-7/modules/number.php:211
|
1002 |
+
#: contact-form-7/modules/quiz.php:202 contact-form-7/modules/select.php:211
|
1003 |
+
#: contact-form-7/modules/submit.php:76 contact-form-7/modules/text.php:284
|
1004 |
#: contact-form-7/modules/textarea.php:171
|
1005 |
+
msgid "Class attribute"
|
1006 |
+
msgstr ""
|
1007 |
+
|
1008 |
+
#: contact-form-7/modules/acceptance.php:184
|
1009 |
+
#: contact-form-7/modules/captcha.php:270
|
1010 |
+
#: contact-form-7/modules/checkbox.php:347 contact-form-7/modules/date.php:215
|
1011 |
+
#: contact-form-7/modules/file.php:284 contact-form-7/modules/number.php:223
|
1012 |
+
#: contact-form-7/modules/quiz.php:215 contact-form-7/modules/select.php:224
|
1013 |
+
#: contact-form-7/modules/submit.php:89 contact-form-7/modules/text.php:297
|
1014 |
+
#: contact-form-7/modules/textarea.php:184
|
1015 |
+
msgid "Insert Tag"
|
1016 |
msgstr ""
|
1017 |
|
1018 |
#: contact-form-7/modules/captcha.php:19
|
1029 |
msgid "Your entered code is incorrect."
|
1030 |
msgstr ""
|
1031 |
|
1032 |
+
#: contact-form-7/modules/captcha.php:197
|
1033 |
+
#: contact-form-7/modules/captcha.php:218
|
1034 |
msgid "CAPTCHA"
|
1035 |
msgstr ""
|
1036 |
|
1037 |
+
#: contact-form-7/modules/captcha.php:208
|
1038 |
+
#, php-format
|
1039 |
+
msgid "To use CAPTCHA, you first need to install and activate %s plugin."
|
|
|
|
|
|
|
1040 |
msgstr ""
|
1041 |
|
1042 |
+
#: contact-form-7/modules/captcha.php:216
|
1043 |
+
#, php-format
|
1044 |
+
msgid ""
|
1045 |
+
"Generate form-tags for a CAPTCHA image and corresponding response input "
|
1046 |
+
"field. For more details, see %s."
|
1047 |
msgstr ""
|
1048 |
|
1049 |
+
#: contact-form-7/modules/captcha.php:218
|
1050 |
+
msgid "http://contactform7.com/captcha/"
|
1051 |
msgstr ""
|
1052 |
|
1053 |
#: contact-form-7/modules/captcha.php:235
|
1054 |
+
msgid "Image settings"
|
|
|
|
|
|
|
|
|
1055 |
msgstr ""
|
1056 |
|
1057 |
+
#: contact-form-7/modules/captcha.php:250
|
1058 |
+
msgid "Input field settings"
|
1059 |
msgstr ""
|
1060 |
|
1061 |
+
#: contact-form-7/modules/captcha.php:299
|
1062 |
+
#, php-format
|
1063 |
+
msgid ""
|
1064 |
+
"This contact form contains CAPTCHA fields, but the temporary folder for the "
|
1065 |
+
"files (%s) does not exist or is not writable. You can create the folder or "
|
1066 |
+
"change its permission manually."
|
1067 |
msgstr ""
|
1068 |
|
1069 |
+
#: contact-form-7/modules/captcha.php:305
|
1070 |
+
msgid ""
|
1071 |
+
"This contact form contains CAPTCHA fields, but the necessary libraries (GD "
|
1072 |
+
"and FreeType) are not available on your server."
|
1073 |
msgstr ""
|
1074 |
|
1075 |
+
#: contact-form-7/modules/checkbox.php:266
|
1076 |
+
msgid "checkboxes"
|
1077 |
msgstr ""
|
1078 |
|
1079 |
+
#: contact-form-7/modules/checkbox.php:268
|
1080 |
+
msgid "radio buttons"
|
1081 |
msgstr ""
|
1082 |
|
1083 |
+
#: contact-form-7/modules/checkbox.php:281
|
1084 |
#, php-format
|
1085 |
msgid ""
|
1086 |
+
"Generate a form-tag for a group of checkboxes. For more details, see %s."
|
|
|
|
|
1087 |
msgstr ""
|
1088 |
|
1089 |
+
#: contact-form-7/modules/checkbox.php:283
|
1090 |
+
#, php-format
|
1091 |
msgid ""
|
1092 |
+
"Generate a form-tag for a group of radio buttons. For more details, see %s."
|
|
|
1093 |
msgstr ""
|
1094 |
|
1095 |
+
#: contact-form-7/modules/checkbox.php:286
|
1096 |
+
#: contact-form-7/modules/select.php:168
|
1097 |
+
msgid "http://contactform7.com/checkboxes-radio-buttons-and-menus/"
|
1098 |
msgstr ""
|
1099 |
|
1100 |
+
#: contact-form-7/modules/checkbox.php:286
|
1101 |
+
#: contact-form-7/modules/select.php:168
|
1102 |
+
msgid "Checkboxes, Radio Buttons and Menus"
|
1103 |
msgstr ""
|
1104 |
|
1105 |
+
#: contact-form-7/modules/checkbox.php:297
|
1106 |
+
#: contact-form-7/modules/checkbox.php:300 contact-form-7/modules/date.php:159
|
1107 |
+
#: contact-form-7/modules/date.php:162 contact-form-7/modules/file.php:241
|
1108 |
+
#: contact-form-7/modules/file.php:244 contact-form-7/modules/number.php:162
|
1109 |
+
#: contact-form-7/modules/number.php:165 contact-form-7/modules/select.php:178
|
1110 |
+
#: contact-form-7/modules/select.php:181 contact-form-7/modules/text.php:229
|
1111 |
+
#: contact-form-7/modules/text.php:232 contact-form-7/modules/textarea.php:145
|
1112 |
+
#: contact-form-7/modules/textarea.php:148
|
1113 |
+
msgid "Field type"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
+
#: contact-form-7/modules/checkbox.php:301 contact-form-7/modules/date.php:163
|
1117 |
+
#: contact-form-7/modules/file.php:245 contact-form-7/modules/number.php:171
|
1118 |
+
#: contact-form-7/modules/select.php:182 contact-form-7/modules/text.php:233
|
1119 |
+
#: contact-form-7/modules/textarea.php:149
|
1120 |
+
msgid "Required field"
|
1121 |
msgstr ""
|
1122 |
|
1123 |
+
#: contact-form-7/modules/checkbox.php:318
|
1124 |
+
#: contact-form-7/modules/select.php:198
|
1125 |
+
msgid "One option per line."
|
1126 |
msgstr ""
|
1127 |
|
1128 |
+
#: contact-form-7/modules/checkbox.php:319
|
1129 |
+
msgid "Put a label first, a checkbox last"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
+
#: contact-form-7/modules/checkbox.php:320
|
1133 |
+
msgid "Wrap each item with label element"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
+
#: contact-form-7/modules/checkbox.php:322
|
1137 |
+
msgid "Make checkboxes exclusive"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
+
#: contact-form-7/modules/checkbox.php:352 contact-form-7/modules/date.php:220
|
1141 |
+
#: contact-form-7/modules/number.php:228 contact-form-7/modules/select.php:229
|
1142 |
+
#: contact-form-7/modules/text.php:302 contact-form-7/modules/textarea.php:189
|
1143 |
+
#, php-format
|
1144 |
+
msgid ""
|
1145 |
+
"To use the value input through this field in a mail field, you need to "
|
1146 |
+
"insert the corresponding mail-tag (%s) into the field on the Mail tab."
|
1147 |
msgstr ""
|
1148 |
|
1149 |
#: contact-form-7/modules/date.php:117
|
1170 |
msgid "This date is too late."
|
1171 |
msgstr ""
|
1172 |
|
1173 |
+
#: contact-form-7/modules/date.php:139
|
1174 |
+
msgid "date"
|
1175 |
+
msgstr ""
|
1176 |
+
|
1177 |
+
#: contact-form-7/modules/date.php:147
|
1178 |
+
#, php-format
|
1179 |
+
msgid "Generate a form-tag for a date input field. For more details, see %s."
|
1180 |
+
msgstr ""
|
1181 |
+
|
1182 |
+
#: contact-form-7/modules/date.php:149
|
1183 |
+
msgid "http://contactform7.com/date-field/"
|
1184 |
+
msgstr ""
|
1185 |
+
|
1186 |
+
#: contact-form-7/modules/date.php:149
|
1187 |
+
msgid "Date Field"
|
1188 |
+
msgstr ""
|
1189 |
+
|
1190 |
+
#: contact-form-7/modules/date.php:174 contact-form-7/modules/number.php:182
|
1191 |
+
#: contact-form-7/modules/text.php:244 contact-form-7/modules/textarea.php:160
|
1192 |
msgid "Default value"
|
1193 |
msgstr ""
|
1194 |
|
1195 |
+
#: contact-form-7/modules/date.php:176 contact-form-7/modules/number.php:184
|
1196 |
+
#: contact-form-7/modules/text.php:246 contact-form-7/modules/textarea.php:162
|
1197 |
+
msgid "Use this text as the placeholder of the field"
|
1198 |
+
msgstr ""
|
1199 |
+
|
1200 |
+
#: contact-form-7/modules/date.php:180 contact-form-7/modules/date.php:183
|
1201 |
+
#: contact-form-7/modules/number.php:188 contact-form-7/modules/number.php:191
|
1202 |
+
msgid "Range"
|
1203 |
+
msgstr ""
|
1204 |
+
|
1205 |
+
#: contact-form-7/modules/date.php:185 contact-form-7/modules/number.php:193
|
1206 |
+
msgid "Min"
|
1207 |
+
msgstr ""
|
1208 |
+
|
1209 |
+
#: contact-form-7/modules/date.php:190 contact-form-7/modules/number.php:198
|
1210 |
+
msgid "Max"
|
1211 |
msgstr ""
|
1212 |
|
1213 |
#: contact-form-7/modules/file.php:193
|
1242 |
msgid "Failed to upload file. Error occurred."
|
1243 |
msgstr ""
|
1244 |
|
1245 |
+
#: contact-form-7/modules/file.php:221
|
1246 |
+
msgid "file"
|
1247 |
msgstr ""
|
1248 |
|
1249 |
+
#: contact-form-7/modules/file.php:229
|
1250 |
+
#, php-format
|
1251 |
+
msgid ""
|
1252 |
+
"Generate a form-tag for a file uploading field. For more details, see %s."
|
1253 |
msgstr ""
|
1254 |
|
1255 |
+
#: contact-form-7/modules/file.php:231
|
1256 |
+
msgid "http://contactform7.com/file-uploading-and-attachment/"
|
1257 |
msgstr ""
|
1258 |
|
1259 |
+
#: contact-form-7/modules/file.php:231
|
1260 |
+
msgid "File Uploading and Attachment"
|
1261 |
msgstr ""
|
1262 |
|
1263 |
#: contact-form-7/modules/file.php:256
|
1264 |
+
msgid "File size limit (bytes)"
|
1265 |
msgstr ""
|
1266 |
|
1267 |
+
#: contact-form-7/modules/file.php:261
|
1268 |
+
msgid "Acceptable file types"
|
1269 |
+
msgstr ""
|
1270 |
+
|
1271 |
+
#: contact-form-7/modules/file.php:289
|
1272 |
+
#, php-format
|
1273 |
+
msgid ""
|
1274 |
+
"To attach the file uploaded through this field to mail, you need to insert "
|
1275 |
+
"the corresponding mail-tag (%s) into the File Attachments field on the Mail "
|
1276 |
+
"tab."
|
1277 |
+
msgstr ""
|
1278 |
+
|
1279 |
+
#: contact-form-7/modules/file.php:314
|
1280 |
#, php-format
|
1281 |
msgid ""
|
1282 |
"This contact form contains file uploading fields, but the temporary folder "
|
1284 |
"folder or change its permission manually."
|
1285 |
msgstr ""
|
1286 |
|
1287 |
+
#: contact-form-7/modules/jetpack.php:20
|
1288 |
+
msgid "http://contactform7.com/jetpack-overrides-contact-forms/"
|
1289 |
+
msgstr ""
|
1290 |
+
|
1291 |
+
#: contact-form-7/modules/jetpack.php:20
|
1292 |
+
msgid "Jetpack Overrides Contact Forms"
|
1293 |
+
msgstr ""
|
1294 |
+
|
1295 |
+
#: contact-form-7/modules/jetpack.php:24
|
1296 |
#, php-format
|
1297 |
msgid ""
|
1298 |
+
"Jetpack may cause problems for other plugins in certain cases. For more "
|
1299 |
+
"details, see %s."
|
1300 |
msgstr ""
|
1301 |
|
1302 |
#: contact-form-7/modules/number.php:120
|
1323 |
msgid "This number is too large."
|
1324 |
msgstr ""
|
1325 |
|
1326 |
+
#: contact-form-7/modules/number.php:142
|
1327 |
+
msgid "number"
|
1328 |
msgstr ""
|
1329 |
|
1330 |
+
#: contact-form-7/modules/number.php:150
|
1331 |
+
#, php-format
|
1332 |
+
msgid ""
|
1333 |
+
"Generate a form-tag for a field for numeric value input. For more details, "
|
1334 |
+
"see %s."
|
1335 |
+
msgstr ""
|
1336 |
+
|
1337 |
+
#: contact-form-7/modules/number.php:152
|
1338 |
+
msgid "http://contactform7.com/number-fields/"
|
1339 |
+
msgstr ""
|
1340 |
+
|
1341 |
+
#: contact-form-7/modules/number.php:152
|
1342 |
+
msgid "Number Fields"
|
1343 |
+
msgstr ""
|
1344 |
+
|
1345 |
+
#: contact-form-7/modules/number.php:167
|
1346 |
+
msgid "Spinbox"
|
1347 |
+
msgstr ""
|
1348 |
+
|
1349 |
+
#: contact-form-7/modules/number.php:168
|
1350 |
+
msgid "Slider"
|
1351 |
msgstr ""
|
1352 |
|
1353 |
#: contact-form-7/modules/quiz.php:149
|
1358 |
msgid "Your answer is not correct."
|
1359 |
msgstr ""
|
1360 |
|
1361 |
+
#: contact-form-7/modules/quiz.php:161
|
1362 |
+
msgid "quiz"
|
1363 |
+
msgstr ""
|
1364 |
+
|
1365 |
+
#: contact-form-7/modules/quiz.php:169
|
1366 |
+
#, php-format
|
1367 |
+
msgid ""
|
1368 |
+
"Generate a form-tag for a question-answer pair. For more details, see %s."
|
1369 |
+
msgstr ""
|
1370 |
+
|
1371 |
+
#: contact-form-7/modules/quiz.php:171
|
1372 |
+
msgid "http://contactform7.com/quiz/"
|
1373 |
+
msgstr ""
|
1374 |
+
|
1375 |
+
#: contact-form-7/modules/quiz.php:171
|
1376 |
msgid "Quiz"
|
1377 |
msgstr ""
|
1378 |
|
1379 |
+
#: contact-form-7/modules/quiz.php:186 contact-form-7/modules/quiz.php:189
|
1380 |
+
msgid "Questions and answers"
|
1381 |
+
msgstr ""
|
1382 |
+
|
1383 |
+
#: contact-form-7/modules/quiz.php:191
|
1384 |
+
msgid ""
|
1385 |
+
"One pipe-separated question-answer pair (e.g. The capital of Brazil?|Rio) "
|
1386 |
+
"per line."
|
1387 |
+
msgstr ""
|
1388 |
+
|
1389 |
+
#: contact-form-7/modules/select.php:159
|
1390 |
+
msgid "drop-down menu"
|
1391 |
+
msgstr ""
|
1392 |
+
|
1393 |
+
#: contact-form-7/modules/select.php:166
|
1394 |
+
#, php-format
|
1395 |
+
msgid "Generate a form-tag for a drop-down menu. For more details, see %s."
|
1396 |
msgstr ""
|
1397 |
|
1398 |
+
#: contact-form-7/modules/select.php:199
|
1399 |
+
msgid "Allow multiple selections"
|
1400 |
msgstr ""
|
1401 |
|
1402 |
+
#: contact-form-7/modules/select.php:200
|
1403 |
+
msgid "Insert a blank item as the first option"
|
1404 |
msgstr ""
|
1405 |
|
1406 |
+
#: contact-form-7/modules/submit.php:47
|
1407 |
+
msgid "submit"
|
1408 |
msgstr ""
|
1409 |
|
1410 |
+
#: contact-form-7/modules/submit.php:54
|
1411 |
+
#, php-format
|
1412 |
+
msgid "Generate a form-tag for a submit button. For more details, see %s."
|
1413 |
msgstr ""
|
1414 |
|
1415 |
+
#: contact-form-7/modules/submit.php:56
|
1416 |
+
msgid "http://contactform7.com/submit-button/"
|
1417 |
msgstr ""
|
1418 |
|
1419 |
+
#: contact-form-7/modules/submit.php:56
|
1420 |
+
msgid "Submit Button"
|
1421 |
+
msgstr ""
|
1422 |
+
|
1423 |
+
#: contact-form-7/modules/submit.php:66
|
1424 |
msgid "Label"
|
1425 |
msgstr ""
|
1426 |
|
1448 |
msgid "Telephone number seems invalid."
|
1449 |
msgstr ""
|
1450 |
|
1451 |
+
#: contact-form-7/modules/text.php:191
|
1452 |
+
msgid "text"
|
1453 |
msgstr ""
|
1454 |
|
1455 |
+
#: contact-form-7/modules/text.php:193
|
1456 |
+
msgid "email"
|
1457 |
msgstr ""
|
1458 |
|
1459 |
+
#: contact-form-7/modules/text.php:195
|
1460 |
msgid "URL"
|
1461 |
msgstr ""
|
1462 |
|
1463 |
+
#: contact-form-7/modules/text.php:197
|
1464 |
+
msgid "tel"
|
1465 |
+
msgstr ""
|
1466 |
+
|
1467 |
+
#: contact-form-7/modules/text.php:210
|
1468 |
+
#, php-format
|
1469 |
+
msgid ""
|
1470 |
+
"Generate a form-tag for a single-line plain text input field. For more "
|
1471 |
+
"details, see %s."
|
1472 |
+
msgstr ""
|
1473 |
+
|
1474 |
+
#: contact-form-7/modules/text.php:212
|
1475 |
+
#, php-format
|
1476 |
+
msgid ""
|
1477 |
+
"Generate a form-tag for a single-line email address input field. For more "
|
1478 |
+
"details, see %s."
|
1479 |
msgstr ""
|
1480 |
|
1481 |
+
#: contact-form-7/modules/text.php:214
|
1482 |
+
#, php-format
|
1483 |
+
msgid ""
|
1484 |
+
"Generate a form-tag for a single-line URL input field. For more details, see "
|
1485 |
+
"%s."
|
1486 |
+
msgstr ""
|
1487 |
+
|
1488 |
+
#: contact-form-7/modules/text.php:216
|
1489 |
+
#, php-format
|
1490 |
+
msgid ""
|
1491 |
+
"Generate a form-tag for a single-line telephone number input field. For more "
|
1492 |
+
"details, see %s."
|
1493 |
+
msgstr ""
|
1494 |
+
|
1495 |
+
#: contact-form-7/modules/text.php:219 contact-form-7/modules/textarea.php:135
|
1496 |
+
msgid "http://contactform7.com/text-fields/"
|
1497 |
+
msgstr ""
|
1498 |
+
|
1499 |
+
#: contact-form-7/modules/text.php:219 contact-form-7/modules/textarea.php:135
|
1500 |
+
msgid "Text Fields"
|
1501 |
+
msgstr ""
|
1502 |
+
|
1503 |
+
#: contact-form-7/modules/text.php:251 contact-form-7/modules/text.php:254
|
1504 |
msgid "Akismet"
|
1505 |
msgstr ""
|
1506 |
|
1507 |
+
#: contact-form-7/modules/text.php:259
|
1508 |
msgid "This field requires author's name"
|
1509 |
msgstr ""
|
1510 |
|
1511 |
+
#: contact-form-7/modules/text.php:264
|
1512 |
msgid "This field requires author's email address"
|
1513 |
msgstr ""
|
1514 |
|
1515 |
+
#: contact-form-7/modules/text.php:269
|
1516 |
msgid "This field requires author's URL"
|
1517 |
msgstr ""
|
1518 |
|
1519 |
+
#: contact-form-7/modules/textarea.php:125
|
1520 |
+
msgid "text area"
|
1521 |
+
msgstr ""
|
1522 |
+
|
1523 |
+
#: contact-form-7/modules/textarea.php:133
|
1524 |
+
#, php-format
|
1525 |
+
msgid ""
|
1526 |
+
"Generate a form-tag for a multi-line text input field. For more details, see "
|
1527 |
+
"%s."
|
1528 |
msgstr ""
|
1529 |
|
1530 |
#: contact-form-7/settings.php:72
|
modules/acceptance.php
CHANGED
@@ -126,43 +126,63 @@ function wpcf7_acceptance_as_validation() {
|
|
126 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_acceptance', 35 );
|
127 |
|
128 |
function wpcf7_add_tag_generator_acceptance() {
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
wpcf7_add_tag_generator( 'acceptance', __( 'Acceptance', 'contact-form-7' ),
|
133 |
-
'wpcf7-tg-pane-acceptance', 'wpcf7_tg_pane_acceptance' );
|
134 |
}
|
135 |
|
136 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
?>
|
138 |
-
<div
|
139 |
-
<
|
140 |
-
<
|
141 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
</table>
|
|
|
|
|
143 |
|
144 |
-
<
|
145 |
-
<
|
146 |
-
<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
147 |
-
<input type="text" name="id" class="idvalue oneline option" /></td>
|
148 |
-
|
149 |
-
<td><code>class</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
150 |
-
<input type="text" name="class" class="classvalue oneline option" /></td>
|
151 |
-
</tr>
|
152 |
-
|
153 |
-
<tr>
|
154 |
-
<td colspan="2">
|
155 |
-
<br /><input type="checkbox" name="default:on" class="option" /> <?php echo esc_html( __( "Make this checkbox checked by default?", 'contact-form-7' ) ); ?>
|
156 |
-
<br /><input type="checkbox" name="invert" class="option" /> <?php echo esc_html( __( "Make this checkbox work inversely?", 'contact-form-7' ) ); ?>
|
157 |
-
<br /><span style="font-size: smaller;"><?php echo esc_html( __( "* That means visitor who accepts the term unchecks it.", 'contact-form-7' ) ); ?></span>
|
158 |
-
</td>
|
159 |
-
</tr>
|
160 |
-
</table>
|
161 |
|
162 |
-
<div class="
|
163 |
-
|
|
|
164 |
</div>
|
165 |
<?php
|
166 |
}
|
167 |
-
|
168 |
-
?>
|
126 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_acceptance', 35 );
|
127 |
|
128 |
function wpcf7_add_tag_generator_acceptance() {
|
129 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
130 |
+
$tag_generator->add( 'acceptance', __( 'acceptance', 'contact-form-7' ),
|
131 |
+
'wpcf7_tag_generator_acceptance' );
|
|
|
|
|
132 |
}
|
133 |
|
134 |
+
function wpcf7_tag_generator_acceptance( $contact_form, $args = '' ) {
|
135 |
+
$args = wp_parse_args( $args, array() );
|
136 |
+
$type = 'acceptance';
|
137 |
+
|
138 |
+
$description = __( "Generate a form-tag for an acceptance checkbox. For more details, see %s.", 'contact-form-7' );
|
139 |
+
|
140 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/acceptance-checkbox/', 'contact-form-7' ), __( 'Acceptance Checkbox', 'contact-form-7' ) );
|
141 |
+
|
142 |
?>
|
143 |
+
<div class="control-box">
|
144 |
+
<fieldset>
|
145 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
146 |
+
|
147 |
+
<table class="form-table">
|
148 |
+
<tbody>
|
149 |
+
<tr>
|
150 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
|
151 |
+
<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
|
152 |
+
</tr>
|
153 |
+
|
154 |
+
<tr>
|
155 |
+
<th scope="row"><?php echo esc_html( __( 'Options', 'contact-form-7' ) ); ?></th>
|
156 |
+
<td>
|
157 |
+
<fieldset>
|
158 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Options', 'contact-form-7' ) ); ?></legend>
|
159 |
+
<label><input type="checkbox" name="default:on" class="option" /> <?php echo esc_html( __( 'Make this checkbox checked by default', 'contact-form-7' ) ); ?></label><br />
|
160 |
+
<label><input type="checkbox" name="invert" class="option" /> <?php echo esc_html( __( 'Make this work inversely', 'contact-form-7' ) ); ?></label>
|
161 |
+
</fieldset>
|
162 |
+
</td>
|
163 |
+
</tr>
|
164 |
+
|
165 |
+
<tr>
|
166 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
167 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
|
168 |
+
</tr>
|
169 |
+
|
170 |
+
<tr>
|
171 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
172 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
|
173 |
+
</tr>
|
174 |
+
|
175 |
+
</tbody>
|
176 |
</table>
|
177 |
+
</fieldset>
|
178 |
+
</div>
|
179 |
|
180 |
+
<div class="insert-box">
|
181 |
+
<input type="text" name="<?php echo $type; ?>" class="tag code" readonly="readonly" onfocus="this.select()" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
|
183 |
+
<div class="submitbox">
|
184 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
185 |
+
</div>
|
186 |
</div>
|
187 |
<?php
|
188 |
}
|
|
|
|
modules/captcha.php
CHANGED
@@ -193,79 +193,82 @@ function wpcf7_captcha_messages( $messages ) {
|
|
193 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_captcha', 45 );
|
194 |
|
195 |
function wpcf7_add_tag_generator_captcha() {
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
wpcf7_add_tag_generator( 'captcha', __( 'CAPTCHA', 'contact-form-7' ),
|
200 |
-
'wpcf7-tg-pane-captcha', 'wpcf7_tg_pane_captcha' );
|
201 |
}
|
202 |
|
203 |
-
function
|
204 |
-
|
205 |
-
<div id="wpcf7-tg-pane-captcha" class="hidden">
|
206 |
-
<form action="">
|
207 |
-
<table>
|
208 |
-
|
209 |
-
<?php if ( ! class_exists( 'ReallySimpleCaptcha' ) ) : ?>
|
210 |
-
<tr><td colspan="2"><strong style="color: #e6255b"><?php echo esc_html( __( "Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed.", 'contact-form-7' ) ); ?></strong><br /><a href="http://wordpress.org/extend/plugins/really-simple-captcha/">http://wordpress.org/extend/plugins/really-simple-captcha/</a></td></tr>
|
211 |
-
<?php endif; ?>
|
212 |
-
|
213 |
-
<tr><td><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr>
|
214 |
-
</table>
|
215 |
|
216 |
-
|
217 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
|
219 |
-
|
220 |
-
|
221 |
-
<input type="text" name="id" class="idvalue oneline option" /></td>
|
222 |
|
223 |
-
|
224 |
-
<input type="text" name="class" class="classvalue oneline option" /></td>
|
225 |
-
</tr>
|
226 |
|
227 |
-
|
228 |
-
<td><?php echo esc_html( __( "Foreground color", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
229 |
-
<input type="text" name="fg" class="color oneline option" /></td>
|
230 |
|
231 |
-
|
232 |
-
<
|
233 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
|
235 |
-
<
|
236 |
-
<
|
237 |
-
<
|
238 |
-
<
|
239 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
</table>
|
241 |
|
242 |
-
<table class="scope captchar">
|
243 |
<caption><?php echo esc_html( __( "Input field settings", 'contact-form-7' ) ); ?></caption>
|
244 |
-
|
245 |
-
<tr>
|
246 |
-
<
|
247 |
-
<input type="text" name="id" class="idvalue oneline option" /></td>
|
248 |
-
|
249 |
-
|
250 |
-
<
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
<input type="number" name="size" class="numeric oneline option" min="1" /></td>
|
256 |
-
|
257 |
-
<td><code>maxlength</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
258 |
-
<input type="number" name="maxlength" class="numeric oneline option" min="1" /></td>
|
259 |
-
</tr>
|
260 |
</table>
|
261 |
-
|
262 |
-
<div class="tg-tag"><?php echo esc_html( __( "Copy this code and paste it into the form left.", 'contact-form-7' ) ); ?>
|
263 |
-
<br />1) <?php echo esc_html( __( "For image", 'contact-form-7' ) ); ?>
|
264 |
-
<input type="text" name="captchac" class="tag wp-ui-text-highlight code" readonly="readonly" onfocus="this.select()" />
|
265 |
-
<br />2) <?php echo esc_html( __( "For input field", 'contact-form-7' ) ); ?>
|
266 |
-
<input type="text" name="captchar" class="tag wp-ui-text-highlight code" readonly="readonly" onfocus="this.select()" />
|
267 |
</div>
|
268 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
</div>
|
270 |
<?php
|
271 |
}
|
@@ -295,13 +298,13 @@ function wpcf7_captcha_display_warning_message() {
|
|
295 |
if ( ! is_dir( $uploads_dir ) || ! wp_is_writable( $uploads_dir ) ) {
|
296 |
$message = sprintf( __( 'This contact form contains CAPTCHA fields, but the temporary folder for the files (%s) does not exist or is not writable. You can create the folder or change its permission manually.', 'contact-form-7' ), $uploads_dir );
|
297 |
|
298 |
-
echo '<div class="error"><p
|
299 |
}
|
300 |
|
301 |
if ( ! function_exists( 'imagecreatetruecolor' ) || ! function_exists( 'imagettftext' ) ) {
|
302 |
$message = __( 'This contact form contains CAPTCHA fields, but the necessary libraries (GD and FreeType) are not available on your server.', 'contact-form-7' );
|
303 |
|
304 |
-
echo '<div class="error"><p
|
305 |
}
|
306 |
}
|
307 |
|
@@ -531,5 +534,3 @@ function wpcf7_captchac_options( $options ) {
|
|
531 |
|
532 |
return $op;
|
533 |
}
|
534 |
-
|
535 |
-
?>
|
193 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_captcha', 45 );
|
194 |
|
195 |
function wpcf7_add_tag_generator_captcha() {
|
196 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
197 |
+
$tag_generator->add( 'captcha', __( 'CAPTCHA', 'contact-form-7' ),
|
198 |
+
'wpcf7_tag_generator_captcha' );
|
|
|
|
|
199 |
}
|
200 |
|
201 |
+
function wpcf7_tag_generator_captcha( $contact_form, $args = '' ) {
|
202 |
+
$args = wp_parse_args( $args, array() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
|
204 |
+
if ( ! class_exists( 'ReallySimpleCaptcha' ) ) {
|
205 |
+
?>
|
206 |
+
<div class="control-box">
|
207 |
+
<fieldset>
|
208 |
+
<legend><?php echo sprintf( esc_html( __( "To use CAPTCHA, you first need to install and activate %s plugin.", 'contact-form-7' ) ), wpcf7_link( 'http://wordpress.org/extend/plugins/really-simple-captcha/', 'Really Simple CAPTCHA' ) ); ?></legend>
|
209 |
+
</fieldset>
|
210 |
+
</div>
|
211 |
+
<?php
|
212 |
|
213 |
+
return;
|
214 |
+
}
|
|
|
215 |
|
216 |
+
$description = __( "Generate form-tags for a CAPTCHA image and corresponding response input field. For more details, see %s.", 'contact-form-7' );
|
|
|
|
|
217 |
|
218 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/captcha/', 'contact-form-7' ), __( 'CAPTCHA', 'contact-form-7' ) );
|
|
|
|
|
219 |
|
220 |
+
?>
|
221 |
+
<div class="control-box">
|
222 |
+
<fieldset>
|
223 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
224 |
+
|
225 |
+
<table class="form-table">
|
226 |
+
<tbody>
|
227 |
+
<tr>
|
228 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
|
229 |
+
<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
|
230 |
+
</tr>
|
231 |
+
</tbody>
|
232 |
+
</table>
|
233 |
|
234 |
+
<table class="form-table scope captchac">
|
235 |
+
<caption><?php echo esc_html( __( "Image settings", 'contact-form-7' ) ); ?></caption>
|
236 |
+
<tbody>
|
237 |
+
<tr>
|
238 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-captchac-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
239 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-captchac-id' ); ?>" /></td>
|
240 |
+
</tr>
|
241 |
+
|
242 |
+
<tr>
|
243 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-captchac-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
244 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-captchac-class' ); ?>" /></td>
|
245 |
+
</tr>
|
246 |
+
</tbody>
|
247 |
</table>
|
248 |
|
249 |
+
<table class="form-table scope captchar">
|
250 |
<caption><?php echo esc_html( __( "Input field settings", 'contact-form-7' ) ); ?></caption>
|
251 |
+
<tbody>
|
252 |
+
<tr>
|
253 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-captchar-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
254 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-captchar-id' ); ?>" /></td>
|
255 |
+
</tr>
|
256 |
+
|
257 |
+
<tr>
|
258 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-captchar-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
259 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-captchar-class' ); ?>" /></td>
|
260 |
+
</tr>
|
261 |
+
</tbody>
|
|
|
|
|
|
|
|
|
|
|
262 |
</table>
|
263 |
+
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
264 |
</div>
|
265 |
+
|
266 |
+
<div class="insert-box">
|
267 |
+
<input type="text" name="captcha" class="tag code" readonly="readonly" onfocus="this.select()" />
|
268 |
+
|
269 |
+
<div class="submitbox">
|
270 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
271 |
+
</div>
|
272 |
</div>
|
273 |
<?php
|
274 |
}
|
298 |
if ( ! is_dir( $uploads_dir ) || ! wp_is_writable( $uploads_dir ) ) {
|
299 |
$message = sprintf( __( 'This contact form contains CAPTCHA fields, but the temporary folder for the files (%s) does not exist or is not writable. You can create the folder or change its permission manually.', 'contact-form-7' ), $uploads_dir );
|
300 |
|
301 |
+
echo '<div class="error"><p>' . esc_html( $message ) . '</p></div>';
|
302 |
}
|
303 |
|
304 |
if ( ! function_exists( 'imagecreatetruecolor' ) || ! function_exists( 'imagettftext' ) ) {
|
305 |
$message = __( 'This contact form contains CAPTCHA fields, but the necessary libraries (GD and FreeType) are not available on your server.', 'contact-form-7' );
|
306 |
|
307 |
+
echo '<div class="error"><p>' . esc_html( $message ) . '</p></div>';
|
308 |
}
|
309 |
}
|
310 |
|
534 |
|
535 |
return $op;
|
536 |
}
|
|
|
|
modules/checkbox.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
add_action( 'wpcf7_init', 'wpcf7_add_shortcode_checkbox' );
|
9 |
|
10 |
function wpcf7_add_shortcode_checkbox() {
|
11 |
-
wpcf7_add_shortcode( array( 'checkbox', 'checkbox*', 'radio' ),
|
12 |
'wpcf7_checkbox_shortcode_handler', true );
|
13 |
}
|
14 |
|
@@ -262,70 +262,94 @@ function wpcf7_checkbox_posted_data( $posted_data ) {
|
|
262 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_checkbox_and_radio', 30 );
|
263 |
|
264 |
function wpcf7_add_tag_generator_checkbox_and_radio() {
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
'
|
270 |
-
|
271 |
-
wpcf7_add_tag_generator( 'radio', __( 'Radio buttons', 'contact-form-7' ),
|
272 |
-
'wpcf7-tg-pane-radio', 'wpcf7_tg_pane_radio' );
|
273 |
}
|
274 |
|
275 |
-
function
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
function wpcf7_tg_pane_radio( $contact_form ) {
|
280 |
-
wpcf7_tg_pane_checkbox_and_radio( 'radio' );
|
281 |
-
}
|
282 |
|
283 |
-
|
284 |
-
if ( 'radio' != $type )
|
285 |
$type = 'checkbox';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
|
287 |
?>
|
288 |
-
<div
|
289 |
-
<
|
290 |
-
<
|
|
|
|
|
|
|
291 |
<?php if ( 'checkbox' == $type ) : ?>
|
292 |
-
<tr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
<?php endif; ?>
|
294 |
|
295 |
-
<tr
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
<
|
301 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
|
303 |
-
<
|
304 |
-
<
|
305 |
-
|
|
|
306 |
|
307 |
-
<tr>
|
308 |
-
<
|
309 |
-
<
|
310 |
-
|
311 |
-
</td>
|
312 |
|
313 |
-
|
314 |
-
<br /><input type="checkbox" name="label_first" class="option" /> <?php echo esc_html( __( 'Put a label first, a checkbox last?', 'contact-form-7' ) ); ?>
|
315 |
-
<br /><input type="checkbox" name="use_label_element" class="option" /> <?php echo esc_html( __( 'Wrap each item with <label> tag?', 'contact-form-7' ) ); ?>
|
316 |
-
<?php if ( 'checkbox' == $type ) : ?>
|
317 |
-
<br /><input type="checkbox" name="exclusive" class="option" /> <?php echo esc_html( __( 'Make checkboxes exclusive?', 'contact-form-7' ) ); ?>
|
318 |
-
<?php endif; ?>
|
319 |
-
</td>
|
320 |
-
</tr>
|
321 |
</table>
|
|
|
|
|
|
|
|
|
|
|
322 |
|
323 |
-
<div class="
|
|
|
|
|
324 |
|
325 |
-
<
|
326 |
-
|
|
|
327 |
</div>
|
328 |
<?php
|
329 |
}
|
330 |
-
|
331 |
-
?>
|
8 |
add_action( 'wpcf7_init', 'wpcf7_add_shortcode_checkbox' );
|
9 |
|
10 |
function wpcf7_add_shortcode_checkbox() {
|
11 |
+
wpcf7_add_shortcode( array( 'checkbox', 'checkbox*', 'radio' ),
|
12 |
'wpcf7_checkbox_shortcode_handler', true );
|
13 |
}
|
14 |
|
262 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_checkbox_and_radio', 30 );
|
263 |
|
264 |
function wpcf7_add_tag_generator_checkbox_and_radio() {
|
265 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
266 |
+
$tag_generator->add( 'checkbox', __( 'checkboxes', 'contact-form-7' ),
|
267 |
+
'wpcf7_tag_generator_checkbox' );
|
268 |
+
$tag_generator->add( 'radio', __( 'radio buttons', 'contact-form-7' ),
|
269 |
+
'wpcf7_tag_generator_checkbox' );
|
|
|
|
|
|
|
270 |
}
|
271 |
|
272 |
+
function wpcf7_tag_generator_checkbox( $contact_form, $args = '' ) {
|
273 |
+
$args = wp_parse_args( $args, array() );
|
274 |
+
$type = $args['id'];
|
|
|
|
|
|
|
|
|
275 |
|
276 |
+
if ( 'radio' != $type ) {
|
|
|
277 |
$type = 'checkbox';
|
278 |
+
}
|
279 |
+
|
280 |
+
if ( 'checkbox' == $type ) {
|
281 |
+
$description = __( "Generate a form-tag for a group of checkboxes. For more details, see %s.", 'contact-form-7' );
|
282 |
+
} elseif ( 'radio' == $type ) {
|
283 |
+
$description = __( "Generate a form-tag for a group of radio buttons. For more details, see %s.", 'contact-form-7' );
|
284 |
+
}
|
285 |
+
|
286 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/checkboxes-radio-buttons-and-menus/', 'contact-form-7' ), __( 'Checkboxes, Radio Buttons and Menus', 'contact-form-7' ) );
|
287 |
|
288 |
?>
|
289 |
+
<div class="control-box">
|
290 |
+
<fieldset>
|
291 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
292 |
+
|
293 |
+
<table class="form-table">
|
294 |
+
<tbody>
|
295 |
<?php if ( 'checkbox' == $type ) : ?>
|
296 |
+
<tr>
|
297 |
+
<th scope="row"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></th>
|
298 |
+
<td>
|
299 |
+
<fieldset>
|
300 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></legend>
|
301 |
+
<label><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field', 'contact-form-7' ) ); ?></label>
|
302 |
+
</fieldset>
|
303 |
+
</td>
|
304 |
+
</tr>
|
305 |
<?php endif; ?>
|
306 |
|
307 |
+
<tr>
|
308 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
|
309 |
+
<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
|
310 |
+
</tr>
|
311 |
+
|
312 |
+
<tr>
|
313 |
+
<th scope="row"><?php echo esc_html( __( 'Options', 'contact-form-7' ) ); ?></th>
|
314 |
+
<td>
|
315 |
+
<fieldset>
|
316 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Options', 'contact-form-7' ) ); ?></legend>
|
317 |
+
<textarea name="values" class="values" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>"></textarea>
|
318 |
+
<label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><span class="description"><?php echo esc_html( __( "One option per line.", 'contact-form-7' ) ); ?></span></label><br />
|
319 |
+
<label><input type="checkbox" name="label_first" class="option" /> <?php echo esc_html( __( 'Put a label first, a checkbox last', 'contact-form-7' ) ); ?></label><br />
|
320 |
+
<label><input type="checkbox" name="use_label_element" class="option" /> <?php echo esc_html( __( 'Wrap each item with label element', 'contact-form-7' ) ); ?></label>
|
321 |
+
<?php if ( 'checkbox' == $type ) : ?>
|
322 |
+
<br /><label><input type="checkbox" name="exclusive" class="option" /> <?php echo esc_html( __( 'Make checkboxes exclusive', 'contact-form-7' ) ); ?></label>
|
323 |
+
<?php endif; ?>
|
324 |
+
</fieldset>
|
325 |
+
</td>
|
326 |
+
</tr>
|
327 |
|
328 |
+
<tr>
|
329 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
330 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
|
331 |
+
</tr>
|
332 |
|
333 |
+
<tr>
|
334 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
335 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
|
336 |
+
</tr>
|
|
|
337 |
|
338 |
+
</tbody>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
</table>
|
340 |
+
</fieldset>
|
341 |
+
</div>
|
342 |
+
|
343 |
+
<div class="insert-box">
|
344 |
+
<input type="text" name="<?php echo $type; ?>" class="tag code" readonly="readonly" onfocus="this.select()" />
|
345 |
|
346 |
+
<div class="submitbox">
|
347 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
348 |
+
</div>
|
349 |
|
350 |
+
<br class="clear" />
|
351 |
+
|
352 |
+
<p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p>
|
353 |
</div>
|
354 |
<?php
|
355 |
}
|
|
|
|
modules/date.php
CHANGED
@@ -135,66 +135,89 @@ function wpcf7_date_messages( $messages ) {
|
|
135 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_date', 19 );
|
136 |
|
137 |
function wpcf7_add_tag_generator_date() {
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
wpcf7_add_tag_generator( 'date', __( 'Date', 'contact-form-7' ),
|
142 |
-
'wpcf7-tg-pane-date', 'wpcf7_tg_pane_date' );
|
143 |
}
|
144 |
|
145 |
-
function
|
146 |
-
|
147 |
-
|
|
|
|
|
148 |
|
149 |
-
|
150 |
-
if ( ! in_array( $type, array() ) )
|
151 |
-
$type = 'date';
|
152 |
|
153 |
?>
|
154 |
-
<div
|
155 |
-
<
|
156 |
-
<
|
157 |
-
|
158 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
</table>
|
|
|
|
|
160 |
|
161 |
-
<
|
162 |
-
<
|
163 |
-
<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
164 |
-
<input type="text" name="id" class="idvalue oneline option" /></td>
|
165 |
-
|
166 |
-
<td><code>class</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
167 |
-
<input type="text" name="class" class="classvalue oneline option" /></td>
|
168 |
-
</tr>
|
169 |
-
|
170 |
-
<tr>
|
171 |
-
<td><code>min</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
172 |
-
<input type="date" name="min" class="date oneline option" /></td>
|
173 |
-
|
174 |
-
<td><code>max</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
175 |
-
<input type="date" name="max" class="date oneline option" /></td>
|
176 |
-
</tr>
|
177 |
-
|
178 |
-
<tr>
|
179 |
-
<td><code>step</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
180 |
-
<input type="number" name="step" class="numeric oneline option" min="1" /></td>
|
181 |
-
</tr>
|
182 |
|
183 |
-
<
|
184 |
-
<
|
|
|
185 |
|
186 |
-
<
|
187 |
-
<br /><input type="checkbox" name="placeholder" class="option" /> <?php echo esc_html( __( 'Use this text as placeholder?', 'contact-form-7' ) ); ?>
|
188 |
-
</td>
|
189 |
-
</tr>
|
190 |
-
</table>
|
191 |
|
192 |
-
<
|
193 |
-
|
194 |
-
<div class="tg-mail-tag"><?php echo esc_html( __( "And, put this code into the Mail fields below.", 'contact-form-7' ) ); ?><br /><input type="text" class="mail-tag wp-ui-text-highlight code" readonly="readonly" onfocus="this.select()" /></div>
|
195 |
-
</form>
|
196 |
</div>
|
197 |
<?php
|
198 |
}
|
199 |
-
|
200 |
-
?>
|
135 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_date', 19 );
|
136 |
|
137 |
function wpcf7_add_tag_generator_date() {
|
138 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
139 |
+
$tag_generator->add( 'date', __( 'date', 'contact-form-7' ),
|
140 |
+
'wpcf7_tag_generator_date' );
|
|
|
|
|
141 |
}
|
142 |
|
143 |
+
function wpcf7_tag_generator_date( $contact_form, $args = '' ) {
|
144 |
+
$args = wp_parse_args( $args, array() );
|
145 |
+
$type = 'date';
|
146 |
+
|
147 |
+
$description = __( "Generate a form-tag for a date input field. For more details, see %s.", 'contact-form-7' );
|
148 |
|
149 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/date-field/', 'contact-form-7' ), __( 'Date Field', 'contact-form-7' ) );
|
|
|
|
|
150 |
|
151 |
?>
|
152 |
+
<div class="control-box">
|
153 |
+
<fieldset>
|
154 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
155 |
+
|
156 |
+
<table class="form-table">
|
157 |
+
<tbody>
|
158 |
+
<tr>
|
159 |
+
<th scope="row"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></th>
|
160 |
+
<td>
|
161 |
+
<fieldset>
|
162 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></legend>
|
163 |
+
<label><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field', 'contact-form-7' ) ); ?></label>
|
164 |
+
</fieldset>
|
165 |
+
</td>
|
166 |
+
</tr>
|
167 |
+
|
168 |
+
<tr>
|
169 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
|
170 |
+
<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
|
171 |
+
</tr>
|
172 |
+
|
173 |
+
<tr>
|
174 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Default value', 'contact-form-7' ) ); ?></label></th>
|
175 |
+
<td><input type="text" name="values" class="oneline" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>" /><br />
|
176 |
+
<label><input type="checkbox" name="placeholder" class="option" /> <?php echo esc_html( __( 'Use this text as the placeholder of the field', 'contact-form-7' ) ); ?></label></td>
|
177 |
+
</tr>
|
178 |
+
|
179 |
+
<tr>
|
180 |
+
<th scope="row"><?php echo esc_html( __( 'Range', 'contact-form-7' ) ); ?></th>
|
181 |
+
<td>
|
182 |
+
<fieldset>
|
183 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Range', 'contact-form-7' ) ); ?></legend>
|
184 |
+
<label>
|
185 |
+
<?php echo esc_html( __( 'Min', 'contact-form-7' ) ); ?>
|
186 |
+
<input type="date" name="min" class="date option" />
|
187 |
+
</label>
|
188 |
+
–
|
189 |
+
<label>
|
190 |
+
<?php echo esc_html( __( 'Max', 'contact-form-7' ) ); ?>
|
191 |
+
<input type="date" name="max" class="date option" />
|
192 |
+
</label>
|
193 |
+
</fieldset>
|
194 |
+
</td>
|
195 |
+
</tr>
|
196 |
+
|
197 |
+
<tr>
|
198 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
199 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
|
200 |
+
</tr>
|
201 |
+
|
202 |
+
<tr>
|
203 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
204 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
|
205 |
+
</tr>
|
206 |
+
</tbody>
|
207 |
</table>
|
208 |
+
</fieldset>
|
209 |
+
</div>
|
210 |
|
211 |
+
<div class="insert-box">
|
212 |
+
<input type="text" name="<?php echo $type; ?>" class="tag code" readonly="readonly" onfocus="this.select()" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
|
214 |
+
<div class="submitbox">
|
215 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
216 |
+
</div>
|
217 |
|
218 |
+
<br class="clear" />
|
|
|
|
|
|
|
|
|
219 |
|
220 |
+
<p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p>
|
|
|
|
|
|
|
221 |
</div>
|
222 |
<?php
|
223 |
}
|
|
|
|
modules/file.php
CHANGED
@@ -217,44 +217,76 @@ function wpcf7_file_messages( $messages ) {
|
|
217 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_file', 50 );
|
218 |
|
219 |
function wpcf7_add_tag_generator_file() {
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
wpcf7_add_tag_generator( 'file', __( 'File upload', 'contact-form-7' ),
|
224 |
-
'wpcf7-tg-pane-file', 'wpcf7_tg_pane_file' );
|
225 |
}
|
226 |
|
227 |
-
function
|
228 |
-
|
229 |
-
|
230 |
-
<form action="">
|
231 |
-
<table>
|
232 |
-
<tr><td><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field?', 'contact-form-7' ) ); ?></td></tr>
|
233 |
-
<tr><td><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr>
|
234 |
-
</table>
|
235 |
-
|
236 |
-
<table>
|
237 |
-
<tr>
|
238 |
-
<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
239 |
-
<input type="text" name="id" class="idvalue oneline option" /></td>
|
240 |
|
241 |
-
|
242 |
-
<input type="text" name="class" class="classvalue oneline option" /></td>
|
243 |
-
</tr>
|
244 |
|
245 |
-
|
246 |
-
<td><?php echo esc_html( __( "File size limit", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'bytes', 'contact-form-7' ) ); ?>) (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
247 |
-
<input type="text" name="limit" class="filesize oneline option" /></td>
|
248 |
|
249 |
-
|
250 |
-
<
|
251 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
</table>
|
|
|
|
|
|
|
|
|
|
|
253 |
|
254 |
-
<div class="
|
|
|
|
|
255 |
|
256 |
-
<
|
257 |
-
|
|
|
258 |
</div>
|
259 |
<?php
|
260 |
}
|
@@ -281,7 +313,7 @@ function wpcf7_file_display_warning_message() {
|
|
281 |
if ( ! is_dir( $uploads_dir ) || ! wp_is_writable( $uploads_dir ) ) {
|
282 |
$message = sprintf( __( 'This contact form contains file uploading fields, but the temporary folder for the files (%s) does not exist or is not writable. You can create the folder or change its permission manually.', 'contact-form-7' ), $uploads_dir );
|
283 |
|
284 |
-
echo '<div class="error"><p
|
285 |
}
|
286 |
}
|
287 |
|
@@ -357,5 +389,3 @@ function wpcf7_cleanup_upload_files() {
|
|
357 |
closedir( $handle );
|
358 |
}
|
359 |
}
|
360 |
-
|
361 |
-
?>
|
217 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_file', 50 );
|
218 |
|
219 |
function wpcf7_add_tag_generator_file() {
|
220 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
221 |
+
$tag_generator->add( 'file', __( 'file', 'contact-form-7' ),
|
222 |
+
'wpcf7_tag_generator_file' );
|
|
|
|
|
223 |
}
|
224 |
|
225 |
+
function wpcf7_tag_generator_file( $contact_form, $args = '' ) {
|
226 |
+
$args = wp_parse_args( $args, array() );
|
227 |
+
$type = 'file';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
|
229 |
+
$description = __( "Generate a form-tag for a file uploading field. For more details, see %s.", 'contact-form-7' );
|
|
|
|
|
230 |
|
231 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/file-uploading-and-attachment/', 'contact-form-7' ), __( 'File Uploading and Attachment', 'contact-form-7' ) );
|
|
|
|
|
232 |
|
233 |
+
?>
|
234 |
+
<div class="control-box">
|
235 |
+
<fieldset>
|
236 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
237 |
+
|
238 |
+
<table class="form-table">
|
239 |
+
<tbody>
|
240 |
+
<tr>
|
241 |
+
<th scope="row"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></th>
|
242 |
+
<td>
|
243 |
+
<fieldset>
|
244 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></legend>
|
245 |
+
<label><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field', 'contact-form-7' ) ); ?></label>
|
246 |
+
</fieldset>
|
247 |
+
</td>
|
248 |
+
</tr>
|
249 |
+
|
250 |
+
<tr>
|
251 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
|
252 |
+
<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
|
253 |
+
</tr>
|
254 |
+
|
255 |
+
<tr>
|
256 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-limit' ); ?>"><?php echo esc_html( __( "File size limit (bytes)", 'contact-form-7' ) ); ?></label></th>
|
257 |
+
<td><input type="text" name="limit" class="filesize oneline option" id="<?php echo esc_attr( $args['content'] . '-limit' ); ?>" /></td>
|
258 |
+
</tr>
|
259 |
+
|
260 |
+
<tr>
|
261 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-filetypes' ); ?>"><?php echo esc_html( __( 'Acceptable file types', 'contact-form-7' ) ); ?></label></th>
|
262 |
+
<td><input type="text" name="filetypes" class="filetype oneline option" id="<?php echo esc_attr( $args['content'] . '-filetypes' ); ?>" /></td>
|
263 |
+
</tr>
|
264 |
+
|
265 |
+
<tr>
|
266 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
267 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
|
268 |
+
</tr>
|
269 |
+
|
270 |
+
<tr>
|
271 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
272 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
|
273 |
+
</tr>
|
274 |
+
|
275 |
+
</tbody>
|
276 |
</table>
|
277 |
+
</fieldset>
|
278 |
+
</div>
|
279 |
+
|
280 |
+
<div class="insert-box">
|
281 |
+
<input type="text" name="<?php echo $type; ?>" class="tag code" readonly="readonly" onfocus="this.select()" />
|
282 |
|
283 |
+
<div class="submitbox">
|
284 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
285 |
+
</div>
|
286 |
|
287 |
+
<br class="clear" />
|
288 |
+
|
289 |
+
<p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To attach the file uploaded through this field to mail, you need to insert the corresponding mail-tag (%s) into the File Attachments field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p>
|
290 |
</div>
|
291 |
<?php
|
292 |
}
|
313 |
if ( ! is_dir( $uploads_dir ) || ! wp_is_writable( $uploads_dir ) ) {
|
314 |
$message = sprintf( __( 'This contact form contains file uploading fields, but the temporary folder for the files (%s) does not exist or is not writable. You can create the folder or change its permission manually.', 'contact-form-7' ), $uploads_dir );
|
315 |
|
316 |
+
echo '<div class="error"><p>' . esc_html( $message ) . '</p></div>';
|
317 |
}
|
318 |
}
|
319 |
|
389 |
closedir( $handle );
|
390 |
}
|
391 |
}
|
|
|
|
modules/jetpack.php
CHANGED
@@ -7,20 +7,21 @@ function wpcf7_jetpack_admin_notices() {
|
|
7 |
|
8 |
if ( ! class_exists( 'Jetpack' )
|
9 |
|| ! Jetpack::is_module( 'contact-form' )
|
10 |
-
|| ! in_array( 'contact-form', Jetpack::get_active_modules() ) )
|
11 |
return;
|
|
|
12 |
|
13 |
$q = "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_old_cf7_unit_id'";
|
14 |
|
15 |
-
if ( ! $wpdb->get_var( $q ) )
|
16 |
return;
|
|
|
|
|
|
|
17 |
|
18 |
-
$url = 'http://contactform7.com/jetpack-overrides-contact-forms/';
|
19 |
?>
|
20 |
-
<div class="
|
21 |
-
<p><?php echo sprintf( __( '
|
22 |
</div>
|
23 |
<?php
|
24 |
}
|
25 |
-
|
26 |
-
?>
|
7 |
|
8 |
if ( ! class_exists( 'Jetpack' )
|
9 |
|| ! Jetpack::is_module( 'contact-form' )
|
10 |
+
|| ! in_array( 'contact-form', Jetpack::get_active_modules() ) ) {
|
11 |
return;
|
12 |
+
}
|
13 |
|
14 |
$q = "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_old_cf7_unit_id'";
|
15 |
|
16 |
+
if ( ! $wpdb->get_var( $q ) ) {
|
17 |
return;
|
18 |
+
}
|
19 |
+
|
20 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/jetpack-overrides-contact-forms/', 'contact-form-7' ), __( 'Jetpack Overrides Contact Forms', 'contact-form-7' ) );
|
21 |
|
|
|
22 |
?>
|
23 |
+
<div class="notice notice-warning">
|
24 |
+
<p><?php echo sprintf( esc_html( __( 'Jetpack may cause problems for other plugins in certain cases. For more details, see %s.', 'contact-form-7' ) ), $desc_link ); ?></p>
|
25 |
</div>
|
26 |
<?php
|
27 |
}
|
|
|
|
modules/number.php
CHANGED
@@ -138,73 +138,94 @@ function wpcf7_number_messages( $messages ) {
|
|
138 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_number', 18 );
|
139 |
|
140 |
function wpcf7_add_tag_generator_number() {
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
wpcf7_add_tag_generator( 'number', __( 'Number (spinbox)', 'contact-form-7' ),
|
145 |
-
'wpcf7-tg-pane-number', 'wpcf7_tg_pane_number' );
|
146 |
-
|
147 |
-
wpcf7_add_tag_generator( 'range', __( 'Number (slider)', 'contact-form-7' ),
|
148 |
-
'wpcf7-tg-pane-range', 'wpcf7_tg_pane_range' );
|
149 |
}
|
150 |
|
151 |
-
function
|
152 |
-
|
153 |
-
|
154 |
|
155 |
-
|
156 |
-
wpcf7_tg_pane_number_and_relatives( 'range' );
|
157 |
-
}
|
158 |
|
159 |
-
|
160 |
-
if ( ! in_array( $type, array( 'range' ) ) )
|
161 |
-
$type = 'number';
|
162 |
|
163 |
?>
|
164 |
-
<div
|
165 |
-
<
|
166 |
-
<
|
167 |
-
|
168 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
</table>
|
|
|
|
|
170 |
|
171 |
-
<
|
172 |
-
<
|
173 |
-
<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
174 |
-
<input type="text" name="id" class="idvalue oneline option" /></td>
|
175 |
-
|
176 |
-
<td><code>class</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
177 |
-
<input type="text" name="class" class="classvalue oneline option" /></td>
|
178 |
-
</tr>
|
179 |
-
|
180 |
-
<tr>
|
181 |
-
<td><code>min</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
182 |
-
<input type="number" name="min" class="numeric oneline option" /></td>
|
183 |
-
|
184 |
-
<td><code>max</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
185 |
-
<input type="number" name="max" class="numeric oneline option" /></td>
|
186 |
-
</tr>
|
187 |
-
|
188 |
-
<tr>
|
189 |
-
<td><code>step</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
190 |
-
<input type="number" name="step" class="numeric oneline option" min="1" /></td>
|
191 |
-
</tr>
|
192 |
-
|
193 |
-
<tr>
|
194 |
-
<td><?php echo esc_html( __( 'Default value', 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /><input type="text" name="values" class="oneline" /></td>
|
195 |
|
196 |
-
<
|
197 |
-
<
|
198 |
-
</
|
199 |
-
</tr>
|
200 |
-
</table>
|
201 |
|
202 |
-
<
|
203 |
|
204 |
-
<
|
205 |
-
</form>
|
206 |
</div>
|
207 |
<?php
|
208 |
}
|
209 |
-
|
210 |
-
?>
|
138 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_number', 18 );
|
139 |
|
140 |
function wpcf7_add_tag_generator_number() {
|
141 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
142 |
+
$tag_generator->add( 'number', __( 'number', 'contact-form-7' ),
|
143 |
+
'wpcf7_tag_generator_number' );
|
|
|
|
|
|
|
|
|
|
|
144 |
}
|
145 |
|
146 |
+
function wpcf7_tag_generator_number( $contact_form, $args = '' ) {
|
147 |
+
$args = wp_parse_args( $args, array() );
|
148 |
+
$type = 'number';
|
149 |
|
150 |
+
$description = __( "Generate a form-tag for a field for numeric value input. For more details, see %s.", 'contact-form-7' );
|
|
|
|
|
151 |
|
152 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/number-fields/', 'contact-form-7' ), __( 'Number Fields', 'contact-form-7' ) );
|
|
|
|
|
153 |
|
154 |
?>
|
155 |
+
<div class="control-box">
|
156 |
+
<fieldset>
|
157 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
158 |
+
|
159 |
+
<table class="form-table">
|
160 |
+
<tbody>
|
161 |
+
<tr>
|
162 |
+
<th scope="row"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></th>
|
163 |
+
<td>
|
164 |
+
<fieldset>
|
165 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></legend>
|
166 |
+
<select name="tagtype">
|
167 |
+
<option value="number" selected="selected"><?php echo esc_html( __( 'Spinbox', 'contact-form-7' ) ); ?></option>
|
168 |
+
<option value="range"><?php echo esc_html( __( 'Slider', 'contact-form-7' ) ); ?></option>
|
169 |
+
</select>
|
170 |
+
<br />
|
171 |
+
<label><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field', 'contact-form-7' ) ); ?></label>
|
172 |
+
</fieldset>
|
173 |
+
</td>
|
174 |
+
</tr>
|
175 |
+
|
176 |
+
<tr>
|
177 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
|
178 |
+
<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
|
179 |
+
</tr>
|
180 |
+
|
181 |
+
<tr>
|
182 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Default value', 'contact-form-7' ) ); ?></label></th>
|
183 |
+
<td><input type="text" name="values" class="oneline" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>" /><br />
|
184 |
+
<label><input type="checkbox" name="placeholder" class="option" /> <?php echo esc_html( __( 'Use this text as the placeholder of the field', 'contact-form-7' ) ); ?></label></td>
|
185 |
+
</tr>
|
186 |
+
|
187 |
+
<tr>
|
188 |
+
<th scope="row"><?php echo esc_html( __( 'Range', 'contact-form-7' ) ); ?></th>
|
189 |
+
<td>
|
190 |
+
<fieldset>
|
191 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Range', 'contact-form-7' ) ); ?></legend>
|
192 |
+
<label>
|
193 |
+
<?php echo esc_html( __( 'Min', 'contact-form-7' ) ); ?>
|
194 |
+
<input type="number" name="min" class="numeric option" />
|
195 |
+
</label>
|
196 |
+
–
|
197 |
+
<label>
|
198 |
+
<?php echo esc_html( __( 'Max', 'contact-form-7' ) ); ?>
|
199 |
+
<input type="number" name="max" class="numeric option" />
|
200 |
+
</label>
|
201 |
+
</fieldset>
|
202 |
+
</td>
|
203 |
+
</tr>
|
204 |
+
|
205 |
+
<tr>
|
206 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
207 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
|
208 |
+
</tr>
|
209 |
+
|
210 |
+
<tr>
|
211 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
212 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
|
213 |
+
</tr>
|
214 |
+
</tbody>
|
215 |
</table>
|
216 |
+
</fieldset>
|
217 |
+
</div>
|
218 |
|
219 |
+
<div class="insert-box">
|
220 |
+
<input type="text" name="<?php echo $type; ?>" class="tag code" readonly="readonly" onfocus="this.select()" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
|
222 |
+
<div class="submitbox">
|
223 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
224 |
+
</div>
|
|
|
|
|
225 |
|
226 |
+
<br class="clear" />
|
227 |
|
228 |
+
<p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p>
|
|
|
229 |
</div>
|
230 |
<?php
|
231 |
}
|
|
|
|
modules/quiz.php
CHANGED
@@ -157,50 +157,63 @@ function wpcf7_quiz_messages( $messages ) {
|
|
157 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_quiz', 40 );
|
158 |
|
159 |
function wpcf7_add_tag_generator_quiz() {
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
wpcf7_add_tag_generator( 'quiz', __( 'Quiz', 'contact-form-7' ),
|
164 |
-
'wpcf7-tg-pane-quiz', 'wpcf7_tg_pane_quiz' );
|
165 |
}
|
166 |
|
167 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
?>
|
169 |
-
<div
|
170 |
-
<
|
171 |
-
<
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
</table>
|
|
|
|
|
174 |
|
175 |
-
<
|
176 |
-
<
|
177 |
-
<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
178 |
-
<input type="text" name="id" class="idvalue oneline option" /></td>
|
179 |
-
|
180 |
-
<td><code>class</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
181 |
-
<input type="text" name="class" class="classvalue oneline option" /></td>
|
182 |
-
</tr>
|
183 |
-
|
184 |
-
<tr>
|
185 |
-
<td><code>size</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
186 |
-
<input type="number" name="size" class="numeric oneline option" min="1" /></td>
|
187 |
-
|
188 |
-
<td><code>maxlength</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
189 |
-
<input type="number" name="maxlength" class="numeric oneline option" min="1" /></td>
|
190 |
-
</tr>
|
191 |
-
|
192 |
-
<tr>
|
193 |
-
<td><?php echo esc_html( __( 'Quizzes', 'contact-form-7' ) ); ?><br />
|
194 |
-
<textarea name="values"></textarea><br />
|
195 |
-
<span style="font-size: smaller"><?php echo esc_html( __( "* quiz|answer (e.g. 1+1=?|2)", 'contact-form-7' ) ); ?></span>
|
196 |
-
</td>
|
197 |
-
</tr>
|
198 |
-
</table>
|
199 |
|
200 |
-
<div class="
|
201 |
-
|
|
|
202 |
</div>
|
203 |
<?php
|
204 |
}
|
205 |
-
|
206 |
-
?>
|
157 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_quiz', 40 );
|
158 |
|
159 |
function wpcf7_add_tag_generator_quiz() {
|
160 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
161 |
+
$tag_generator->add( 'quiz', __( 'quiz', 'contact-form-7' ),
|
162 |
+
'wpcf7_tag_generator_quiz' );
|
|
|
|
|
163 |
}
|
164 |
|
165 |
+
function wpcf7_tag_generator_quiz( $contact_form, $args = '' ) {
|
166 |
+
$args = wp_parse_args( $args, array() );
|
167 |
+
$type = 'quiz';
|
168 |
+
|
169 |
+
$description = __( "Generate a form-tag for a question-answer pair. For more details, see %s.", 'contact-form-7' );
|
170 |
+
|
171 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/quiz/', 'contact-form-7' ), __( 'Quiz', 'contact-form-7' ) );
|
172 |
+
|
173 |
?>
|
174 |
+
<div class="control-box">
|
175 |
+
<fieldset>
|
176 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
177 |
+
|
178 |
+
<table class="form-table">
|
179 |
+
<tbody>
|
180 |
+
<tr>
|
181 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
|
182 |
+
<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
|
183 |
+
</tr>
|
184 |
+
|
185 |
+
<tr>
|
186 |
+
<th scope="row"><?php echo esc_html( __( 'Questions and answers', 'contact-form-7' ) ); ?></th>
|
187 |
+
<td>
|
188 |
+
<fieldset>
|
189 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Questions and answers', 'contact-form-7' ) ); ?></legend>
|
190 |
+
<textarea name="values" class="values" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>"></textarea><br />
|
191 |
+
<label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><span class="description"><?php echo esc_html( __( "One pipe-separated question-answer pair (e.g. The capital of Brazil?|Rio) per line.", 'contact-form-7' ) ); ?></span></label>
|
192 |
+
</fieldset>
|
193 |
+
</td>
|
194 |
+
</tr>
|
195 |
+
|
196 |
+
<tr>
|
197 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
198 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
|
199 |
+
</tr>
|
200 |
+
|
201 |
+
<tr>
|
202 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
203 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
|
204 |
+
</tr>
|
205 |
+
|
206 |
+
</tbody>
|
207 |
</table>
|
208 |
+
</fieldset>
|
209 |
+
</div>
|
210 |
|
211 |
+
<div class="insert-box">
|
212 |
+
<input type="text" name="<?php echo $type; ?>" class="tag code" readonly="readonly" onfocus="this.select()" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
|
214 |
+
<div class="submitbox">
|
215 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
216 |
+
</div>
|
217 |
</div>
|
218 |
<?php
|
219 |
}
|
|
|
|
modules/select.php
CHANGED
@@ -155,50 +155,78 @@ function wpcf7_select_validation_filter( $result, $tag ) {
|
|
155 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_menu', 25 );
|
156 |
|
157 |
function wpcf7_add_tag_generator_menu() {
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
wpcf7_add_tag_generator( 'menu', __( 'Drop-down menu', 'contact-form-7' ),
|
162 |
-
'wpcf7-tg-pane-menu', 'wpcf7_tg_pane_menu' );
|
163 |
}
|
164 |
|
165 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
?>
|
167 |
-
<div
|
168 |
-
<
|
169 |
-
<
|
170 |
-
|
171 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
</table>
|
|
|
|
|
173 |
|
174 |
-
<
|
175 |
-
<
|
176 |
-
<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
177 |
-
<input type="text" name="id" class="idvalue oneline option" /></td>
|
178 |
-
|
179 |
-
<td><code>class</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
180 |
-
<input type="text" name="class" class="classvalue oneline option" /></td>
|
181 |
-
</tr>
|
182 |
-
|
183 |
-
<tr>
|
184 |
-
<td><?php echo esc_html( __( 'Choices', 'contact-form-7' ) ); ?><br />
|
185 |
-
<textarea name="values"></textarea><br />
|
186 |
-
<span style="font-size: smaller"><?php echo esc_html( __( "* One choice per line.", 'contact-form-7' ) ); ?></span>
|
187 |
-
</td>
|
188 |
-
|
189 |
-
<td>
|
190 |
-
<br /><input type="checkbox" name="multiple" class="option" /> <?php echo esc_html( __( 'Allow multiple selections?', 'contact-form-7' ) ); ?>
|
191 |
-
<br /><input type="checkbox" name="include_blank" class="option" /> <?php echo esc_html( __( 'Insert a blank item as the first option?', 'contact-form-7' ) ); ?>
|
192 |
-
</td>
|
193 |
-
</tr>
|
194 |
-
</table>
|
195 |
|
196 |
-
<div class="
|
|
|
|
|
197 |
|
198 |
-
<
|
199 |
-
|
|
|
200 |
</div>
|
201 |
<?php
|
202 |
}
|
203 |
-
|
204 |
-
?>
|
155 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_menu', 25 );
|
156 |
|
157 |
function wpcf7_add_tag_generator_menu() {
|
158 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
159 |
+
$tag_generator->add( 'menu', __( 'drop-down menu', 'contact-form-7' ),
|
160 |
+
'wpcf7_tag_generator_menu' );
|
|
|
|
|
161 |
}
|
162 |
|
163 |
+
function wpcf7_tag_generator_menu( $contact_form, $args = '' ) {
|
164 |
+
$args = wp_parse_args( $args, array() );
|
165 |
+
|
166 |
+
$description = __( "Generate a form-tag for a drop-down menu. For more details, see %s.", 'contact-form-7' );
|
167 |
+
|
168 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/checkboxes-radio-buttons-and-menus/', 'contact-form-7' ), __( 'Checkboxes, Radio Buttons and Menus', 'contact-form-7' ) );
|
169 |
+
|
170 |
?>
|
171 |
+
<div class="control-box">
|
172 |
+
<fieldset>
|
173 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
174 |
+
|
175 |
+
<table class="form-table">
|
176 |
+
<tbody>
|
177 |
+
<tr>
|
178 |
+
<th scope="row"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></th>
|
179 |
+
<td>
|
180 |
+
<fieldset>
|
181 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></legend>
|
182 |
+
<label><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field', 'contact-form-7' ) ); ?></label>
|
183 |
+
</fieldset>
|
184 |
+
</td>
|
185 |
+
</tr>
|
186 |
+
|
187 |
+
<tr>
|
188 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
|
189 |
+
<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
|
190 |
+
</tr>
|
191 |
+
|
192 |
+
<tr>
|
193 |
+
<th scope="row"><?php echo esc_html( __( 'Options', 'contact-form-7' ) ); ?></th>
|
194 |
+
<td>
|
195 |
+
<fieldset>
|
196 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Options', 'contact-form-7' ) ); ?></legend>
|
197 |
+
<textarea name="values" class="values" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>"></textarea>
|
198 |
+
<label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><span class="description"><?php echo esc_html( __( "One option per line.", 'contact-form-7' ) ); ?></span></label><br />
|
199 |
+
<label><input type="checkbox" name="multiple" class="option" /> <?php echo esc_html( __( 'Allow multiple selections', 'contact-form-7' ) ); ?></label><br />
|
200 |
+
<label><input type="checkbox" name="include_blank" class="option" /> <?php echo esc_html( __( 'Insert a blank item as the first option', 'contact-form-7' ) ); ?></label>
|
201 |
+
</fieldset>
|
202 |
+
</td>
|
203 |
+
</tr>
|
204 |
+
|
205 |
+
<tr>
|
206 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
207 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
|
208 |
+
</tr>
|
209 |
+
|
210 |
+
<tr>
|
211 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
212 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
|
213 |
+
</tr>
|
214 |
+
|
215 |
+
</tbody>
|
216 |
</table>
|
217 |
+
</fieldset>
|
218 |
+
</div>
|
219 |
|
220 |
+
<div class="insert-box">
|
221 |
+
<input type="text" name="select" class="tag code" readonly="readonly" onfocus="this.select()" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
|
223 |
+
<div class="submitbox">
|
224 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
225 |
+
</div>
|
226 |
|
227 |
+
<br class="clear" />
|
228 |
+
|
229 |
+
<p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p>
|
230 |
</div>
|
231 |
<?php
|
232 |
}
|
|
|
|
modules/submit.php
CHANGED
@@ -43,38 +43,51 @@ function wpcf7_submit_shortcode_handler( $tag ) {
|
|
43 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_submit', 55 );
|
44 |
|
45 |
function wpcf7_add_tag_generator_submit() {
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
wpcf7_add_tag_generator( 'submit', __( 'Submit button', 'contact-form-7' ),
|
50 |
-
'wpcf7-tg-pane-submit', 'wpcf7_tg_pane_submit', array( 'nameless' => 1 ) );
|
51 |
}
|
52 |
|
53 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
?>
|
55 |
-
<div
|
56 |
-
<
|
57 |
-
<
|
58 |
-
|
59 |
-
<
|
60 |
-
<
|
61 |
-
|
62 |
-
<
|
63 |
-
<input type="text" name="
|
64 |
-
</tr>
|
65 |
-
|
66 |
-
<tr>
|
67 |
-
<
|
68 |
-
<input type="text" name="
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
72 |
</table>
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
-
<div class="
|
75 |
-
|
|
|
76 |
</div>
|
77 |
<?php
|
78 |
}
|
79 |
-
|
80 |
-
?>
|
43 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_submit', 55 );
|
44 |
|
45 |
function wpcf7_add_tag_generator_submit() {
|
46 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
47 |
+
$tag_generator->add( 'submit', __( 'submit', 'contact-form-7' ),
|
48 |
+
'wpcf7_tag_generator_submit', array( 'nameless' => 1 ) );
|
|
|
|
|
49 |
}
|
50 |
|
51 |
+
function wpcf7_tag_generator_submit( $contact_form, $args = '' ) {
|
52 |
+
$args = wp_parse_args( $args, array() );
|
53 |
+
|
54 |
+
$description = __( "Generate a form-tag for a submit button. For more details, see %s.", 'contact-form-7' );
|
55 |
+
|
56 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/submit-button/', 'contact-form-7' ), __( 'Submit Button', 'contact-form-7' ) );
|
57 |
+
|
58 |
?>
|
59 |
+
<div class="control-box">
|
60 |
+
<fieldset>
|
61 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
62 |
+
|
63 |
+
<table class="form-table">
|
64 |
+
<tbody>
|
65 |
+
<tr>
|
66 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Label', 'contact-form-7' ) ); ?></label></th>
|
67 |
+
<td><input type="text" name="values" class="oneline" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>" /></td>
|
68 |
+
</tr>
|
69 |
+
|
70 |
+
<tr>
|
71 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
72 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
|
73 |
+
</tr>
|
74 |
+
|
75 |
+
<tr>
|
76 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
77 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
|
78 |
+
</tr>
|
79 |
+
|
80 |
+
</tbody>
|
81 |
</table>
|
82 |
+
</fieldset>
|
83 |
+
</div>
|
84 |
+
|
85 |
+
<div class="insert-box">
|
86 |
+
<input type="text" name="submit" class="tag code" readonly="readonly" onfocus="this.select()" />
|
87 |
|
88 |
+
<div class="submitbox">
|
89 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
90 |
+
</div>
|
91 |
</div>
|
92 |
<?php
|
93 |
}
|
|
|
|
modules/text.php
CHANGED
@@ -187,96 +187,119 @@ function wpcf7_text_messages( $messages ) {
|
|
187 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_text', 15 );
|
188 |
|
189 |
function wpcf7_add_tag_generator_text() {
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
'
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
wpcf7_add_tag_generator( 'url', __( 'URL', 'contact-form-7' ),
|
200 |
-
'wpcf7-tg-pane-url', 'wpcf7_tg_pane_url' );
|
201 |
-
|
202 |
-
wpcf7_add_tag_generator( 'tel', __( 'Telephone number', 'contact-form-7' ),
|
203 |
-
'wpcf7-tg-pane-tel', 'wpcf7_tg_pane_tel' );
|
204 |
}
|
205 |
|
206 |
-
function
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
function wpcf7_tg_pane_email( $contact_form ) {
|
211 |
-
wpcf7_tg_pane_text_and_relatives( 'email' );
|
212 |
-
}
|
213 |
|
214 |
-
|
215 |
-
wpcf7_tg_pane_text_and_relatives( 'url' );
|
216 |
-
}
|
217 |
-
|
218 |
-
function wpcf7_tg_pane_tel( $contact_form ) {
|
219 |
-
wpcf7_tg_pane_text_and_relatives( 'tel' );
|
220 |
-
}
|
221 |
-
|
222 |
-
function wpcf7_tg_pane_text_and_relatives( $type = 'text' ) {
|
223 |
-
if ( ! in_array( $type, array( 'email', 'url', 'tel' ) ) )
|
224 |
$type = 'text';
|
|
|
225 |
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
<tr>
|
236 |
-
<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
237 |
-
<input type="text" name="id" class="idvalue oneline option" /></td>
|
238 |
-
|
239 |
-
<td><code>class</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
240 |
-
<input type="text" name="class" class="classvalue oneline option" /></td>
|
241 |
-
</tr>
|
242 |
|
243 |
-
|
244 |
-
<td><code>size</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
245 |
-
<input type="number" name="size" class="numeric oneline option" min="1" /></td>
|
246 |
|
247 |
-
|
248 |
-
<
|
249 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
|
251 |
<?php if ( in_array( $type, array( 'text', 'email', 'url' ) ) ) : ?>
|
252 |
-
<tr>
|
253 |
-
<
|
|
|
|
|
|
|
|
|
254 |
<?php if ( 'text' == $type ) : ?>
|
255 |
-
<
|
|
|
|
|
|
|
256 |
<?php elseif ( 'email' == $type ) : ?>
|
257 |
-
<
|
|
|
|
|
|
|
258 |
<?php elseif ( 'url' == $type ) : ?>
|
259 |
-
<
|
|
|
|
|
|
|
260 |
<?php endif; ?>
|
261 |
-
|
262 |
-
</
|
|
|
|
|
263 |
<?php endif; ?>
|
264 |
|
265 |
-
<tr>
|
266 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
|
268 |
-
|
269 |
-
<br /><input type="checkbox" name="placeholder" class="option" /> <?php echo esc_html( __( 'Use this text as placeholder?', 'contact-form-7' ) ); ?>
|
270 |
-
</td>
|
271 |
-
</tr>
|
272 |
</table>
|
|
|
|
|
273 |
|
274 |
-
<div class="
|
|
|
275 |
|
276 |
-
<div class="
|
277 |
-
|
|
|
|
|
|
|
|
|
|
|
278 |
</div>
|
279 |
<?php
|
280 |
}
|
281 |
-
|
282 |
-
?>
|
187 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_text', 15 );
|
188 |
|
189 |
function wpcf7_add_tag_generator_text() {
|
190 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
191 |
+
$tag_generator->add( 'text', __( 'text', 'contact-form-7' ),
|
192 |
+
'wpcf7_tag_generator_text' );
|
193 |
+
$tag_generator->add( 'email', __( 'email', 'contact-form-7' ),
|
194 |
+
'wpcf7_tag_generator_text' );
|
195 |
+
$tag_generator->add( 'url', __( 'URL', 'contact-form-7' ),
|
196 |
+
'wpcf7_tag_generator_text' );
|
197 |
+
$tag_generator->add( 'tel', __( 'tel', 'contact-form-7' ),
|
198 |
+
'wpcf7_tag_generator_text' );
|
|
|
|
|
|
|
|
|
|
|
199 |
}
|
200 |
|
201 |
+
function wpcf7_tag_generator_text( $contact_form, $args = '' ) {
|
202 |
+
$args = wp_parse_args( $args, array() );
|
203 |
+
$type = $args['id'];
|
|
|
|
|
|
|
|
|
204 |
|
205 |
+
if ( ! in_array( $type, array( 'email', 'url', 'tel' ) ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
$type = 'text';
|
207 |
+
}
|
208 |
|
209 |
+
if ( 'text' == $type ) {
|
210 |
+
$description = __( "Generate a form-tag for a single-line plain text input field. For more details, see %s.", 'contact-form-7' );
|
211 |
+
} elseif ( 'email' == $type ) {
|
212 |
+
$description = __( "Generate a form-tag for a single-line email address input field. For more details, see %s.", 'contact-form-7' );
|
213 |
+
} elseif ( 'url' == $type ) {
|
214 |
+
$description = __( "Generate a form-tag for a single-line URL input field. For more details, see %s.", 'contact-form-7' );
|
215 |
+
} elseif ( 'tel' == $type ) {
|
216 |
+
$description = __( "Generate a form-tag for a single-line telephone number input field. For more details, see %s.", 'contact-form-7' );
|
217 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
|
219 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/text-fields/', 'contact-form-7' ), __( 'Text Fields', 'contact-form-7' ) );
|
|
|
|
|
220 |
|
221 |
+
?>
|
222 |
+
<div class="control-box">
|
223 |
+
<fieldset>
|
224 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
225 |
+
|
226 |
+
<table class="form-table">
|
227 |
+
<tbody>
|
228 |
+
<tr>
|
229 |
+
<th scope="row"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></th>
|
230 |
+
<td>
|
231 |
+
<fieldset>
|
232 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></legend>
|
233 |
+
<label><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field', 'contact-form-7' ) ); ?></label>
|
234 |
+
</fieldset>
|
235 |
+
</td>
|
236 |
+
</tr>
|
237 |
+
|
238 |
+
<tr>
|
239 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
|
240 |
+
<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
|
241 |
+
</tr>
|
242 |
+
|
243 |
+
<tr>
|
244 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Default value', 'contact-form-7' ) ); ?></label></th>
|
245 |
+
<td><input type="text" name="values" class="oneline" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>" /><br />
|
246 |
+
<label><input type="checkbox" name="placeholder" class="option" /> <?php echo esc_html( __( 'Use this text as the placeholder of the field', 'contact-form-7' ) ); ?></label></td>
|
247 |
+
</tr>
|
248 |
|
249 |
<?php if ( in_array( $type, array( 'text', 'email', 'url' ) ) ) : ?>
|
250 |
+
<tr>
|
251 |
+
<th scope="row"><?php echo esc_html( __( 'Akismet', 'contact-form-7' ) ); ?></th>
|
252 |
+
<td>
|
253 |
+
<fieldset>
|
254 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Akismet', 'contact-form-7' ) ); ?></legend>
|
255 |
+
|
256 |
<?php if ( 'text' == $type ) : ?>
|
257 |
+
<label>
|
258 |
+
<input type="checkbox" name="akismet:author" class="option" />
|
259 |
+
<?php echo esc_html( __( "This field requires author's name", 'contact-form-7' ) ); ?>
|
260 |
+
</label>
|
261 |
<?php elseif ( 'email' == $type ) : ?>
|
262 |
+
<label>
|
263 |
+
<input type="checkbox" name="akismet:author_email" class="option" />
|
264 |
+
<?php echo esc_html( __( "This field requires author's email address", 'contact-form-7' ) ); ?>
|
265 |
+
</label>
|
266 |
<?php elseif ( 'url' == $type ) : ?>
|
267 |
+
<label>
|
268 |
+
<input type="checkbox" name="akismet:author_url" class="option" />
|
269 |
+
<?php echo esc_html( __( "This field requires author's URL", 'contact-form-7' ) ); ?>
|
270 |
+
</label>
|
271 |
<?php endif; ?>
|
272 |
+
|
273 |
+
</fieldset>
|
274 |
+
</td>
|
275 |
+
</tr>
|
276 |
<?php endif; ?>
|
277 |
|
278 |
+
<tr>
|
279 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
280 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
|
281 |
+
</tr>
|
282 |
+
|
283 |
+
<tr>
|
284 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
285 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
|
286 |
+
</tr>
|
287 |
|
288 |
+
</tbody>
|
|
|
|
|
|
|
289 |
</table>
|
290 |
+
</fieldset>
|
291 |
+
</div>
|
292 |
|
293 |
+
<div class="insert-box">
|
294 |
+
<input type="text" name="<?php echo $type; ?>" class="tag code" readonly="readonly" onfocus="this.select()" />
|
295 |
|
296 |
+
<div class="submitbox">
|
297 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
298 |
+
</div>
|
299 |
+
|
300 |
+
<br class="clear" />
|
301 |
+
|
302 |
+
<p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p>
|
303 |
</div>
|
304 |
<?php
|
305 |
}
|
|
|
|
modules/textarea.php
CHANGED
@@ -121,59 +121,72 @@ function wpcf7_textarea_validation_filter( $result, $tag ) {
|
|
121 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_textarea', 20 );
|
122 |
|
123 |
function wpcf7_add_tag_generator_textarea() {
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
wpcf7_add_tag_generator( 'textarea', __( 'Text area', 'contact-form-7' ),
|
128 |
-
'wpcf7-tg-pane-textarea', 'wpcf7_tg_pane_textarea' );
|
129 |
}
|
130 |
|
131 |
-
function
|
132 |
-
|
133 |
-
|
134 |
-
<form action="">
|
135 |
-
<table>
|
136 |
-
<tr><td><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field?', 'contact-form-7' ) ); ?></td></tr>
|
137 |
-
<tr><td><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr>
|
138 |
-
</table>
|
139 |
-
|
140 |
-
<table>
|
141 |
-
<tr>
|
142 |
-
<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
143 |
-
<input type="text" name="id" class="idvalue oneline option" /></td>
|
144 |
-
|
145 |
-
<td><code>class</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
146 |
-
<input type="text" name="class" class="classvalue oneline option" /></td>
|
147 |
-
</tr>
|
148 |
|
149 |
-
|
150 |
-
<td><code>cols</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
|
151 |
-
<input type="number" name="cols" class="numeric oneline option" min="1" /></td>
|
152 |
|
153 |
-
|
154 |
-
<input type="number" name="rows" class="numeric oneline option" min="1" /></td>
|
155 |
-
</tr>
|
156 |
|
157 |
-
|
158 |
-
<
|
159 |
-
<
|
160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
|
162 |
-
<
|
163 |
-
<
|
164 |
|
165 |
-
<
|
166 |
-
<
|
167 |
-
</
|
168 |
-
</tr>
|
169 |
-
</table>
|
170 |
|
171 |
-
<
|
172 |
|
173 |
-
<
|
174 |
-
</form>
|
175 |
</div>
|
176 |
<?php
|
177 |
}
|
178 |
-
|
179 |
-
?>
|
121 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_textarea', 20 );
|
122 |
|
123 |
function wpcf7_add_tag_generator_textarea() {
|
124 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
125 |
+
$tag_generator->add( 'textarea', __( 'text area', 'contact-form-7' ),
|
126 |
+
'wpcf7_tag_generator_textarea' );
|
|
|
|
|
127 |
}
|
128 |
|
129 |
+
function wpcf7_tag_generator_textarea( $contact_form, $args = '' ) {
|
130 |
+
$args = wp_parse_args( $args, array() );
|
131 |
+
$type = 'textarea';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
|
133 |
+
$description = __( "Generate a form-tag for a multi-line text input field. For more details, see %s.", 'contact-form-7' );
|
|
|
|
|
134 |
|
135 |
+
$desc_link = wpcf7_link( __( 'http://contactform7.com/text-fields/', 'contact-form-7' ), __( 'Text Fields', 'contact-form-7' ) );
|
|
|
|
|
136 |
|
137 |
+
?>
|
138 |
+
<div class="control-box">
|
139 |
+
<fieldset>
|
140 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
141 |
+
|
142 |
+
<table class="form-table">
|
143 |
+
<tbody>
|
144 |
+
<tr>
|
145 |
+
<th scope="row"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></th>
|
146 |
+
<td>
|
147 |
+
<fieldset>
|
148 |
+
<legend class="screen-reader-text"><?php echo esc_html( __( 'Field type', 'contact-form-7' ) ); ?></legend>
|
149 |
+
<label><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field', 'contact-form-7' ) ); ?></label>
|
150 |
+
</fieldset>
|
151 |
+
</td>
|
152 |
+
</tr>
|
153 |
+
|
154 |
+
<tr>
|
155 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
|
156 |
+
<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
|
157 |
+
</tr>
|
158 |
+
|
159 |
+
<tr>
|
160 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Default value', 'contact-form-7' ) ); ?></label></th>
|
161 |
+
<td><input type="text" name="values" class="oneline" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>" /><br />
|
162 |
+
<label><input type="checkbox" name="placeholder" class="option" /> <?php echo esc_html( __( 'Use this text as the placeholder of the field', 'contact-form-7' ) ); ?></label></td>
|
163 |
+
</tr>
|
164 |
+
|
165 |
+
<tr>
|
166 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
|
167 |
+
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
|
168 |
+
</tr>
|
169 |
+
|
170 |
+
<tr>
|
171 |
+
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
|
172 |
+
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
|
173 |
+
</tr>
|
174 |
+
|
175 |
+
</tbody>
|
176 |
+
</table>
|
177 |
+
</fieldset>
|
178 |
+
</div>
|
179 |
|
180 |
+
<div class="insert-box">
|
181 |
+
<input type="text" name="<?php echo $type; ?>" class="tag code" readonly="readonly" onfocus="this.select()" />
|
182 |
|
183 |
+
<div class="submitbox">
|
184 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
185 |
+
</div>
|
|
|
|
|
186 |
|
187 |
+
<br class="clear" />
|
188 |
|
189 |
+
<p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p>
|
|
|
190 |
</div>
|
191 |
<?php
|
192 |
}
|
|
|
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: takayukister
|
3 |
Donate link: http://contactform7.com/donate/
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
-
Requires at least: 4.
|
6 |
-
Tested up to: 4.2
|
7 |
Stable tag: 4.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -86,7 +86,7 @@ The following are other recommended plugins by the author of Contact Form 7.
|
|
86 |
* Serbian (sr_RS) - Vedran, Aleksandar Urošević
|
87 |
* Sinhala (si_LK) - Nitin Aggarwal
|
88 |
* Slovak (sk_SK) - Patrik Bóna, WordPress Slovakia
|
89 |
-
* Slovene (sl_SI) - Mihael Simonič, Jani Roskar
|
90 |
* Spanish (es_ES) - Jordi Sancho, Vladimir Prieto, Federico Mikaelian, Matias Baldanza, Carlos Agnese, Lourdes Cuesta, Carlos Oropesa
|
91 |
* Swedish (sv_SE) - Fredrik Jonsson, the Swedish community
|
92 |
* Tagalog (tl) - Rupert Agnew Lanuza, Hanne, Language Connect
|
2 |
Contributors: takayukister
|
3 |
Donate link: http://contactform7.com/donate/
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
+
Requires at least: 4.1
|
6 |
+
Tested up to: 4.2.2
|
7 |
Stable tag: 4.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
86 |
* Serbian (sr_RS) - Vedran, Aleksandar Urošević
|
87 |
* Sinhala (si_LK) - Nitin Aggarwal
|
88 |
* Slovak (sk_SK) - Patrik Bóna, WordPress Slovakia
|
89 |
+
* Slovene (sl_SI) - Mihael Simonič, Jani Roskar, Marko Ambrožič
|
90 |
* Spanish (es_ES) - Jordi Sancho, Vladimir Prieto, Federico Mikaelian, Matias Baldanza, Carlos Agnese, Lourdes Cuesta, Carlos Oropesa
|
91 |
* Swedish (sv_SE) - Fredrik Jonsson, the Swedish community
|
92 |
* Tagalog (tl) - Rupert Agnew Lanuza, Hanne, Language Connect
|
wp-contact-form-7.php
CHANGED
@@ -7,7 +7,7 @@ Author: Takayuki Miyoshi
|
|
7 |
Author URI: http://ideasilo.wordpress.com/
|
8 |
Text Domain: contact-form-7
|
9 |
Domain Path: /languages/
|
10 |
-
Version: 4.
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2007-2015 Takayuki Miyoshi (email: takayukister at gmail.com)
|
@@ -27,9 +27,9 @@ Version: 4.1.2
|
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
*/
|
29 |
|
30 |
-
define( 'WPCF7_VERSION', '4.
|
31 |
|
32 |
-
define( 'WPCF7_REQUIRED_WP_VERSION', '4.
|
33 |
|
34 |
define( 'WPCF7_PLUGIN', __FILE__ );
|
35 |
|
@@ -73,5 +73,3 @@ if ( ! defined( 'WPCF7_VERIFY_NONCE' ) ) {
|
|
73 |
define( 'WPCF7_PLUGIN_URL', untrailingslashit( plugins_url( '', WPCF7_PLUGIN ) ) );
|
74 |
|
75 |
require_once WPCF7_PLUGIN_DIR . '/settings.php';
|
76 |
-
|
77 |
-
?>
|
7 |
Author URI: http://ideasilo.wordpress.com/
|
8 |
Text Domain: contact-form-7
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 4.2-beta
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2007-2015 Takayuki Miyoshi (email: takayukister at gmail.com)
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
*/
|
29 |
|
30 |
+
define( 'WPCF7_VERSION', '4.2-beta' );
|
31 |
|
32 |
+
define( 'WPCF7_REQUIRED_WP_VERSION', '4.1' );
|
33 |
|
34 |
define( 'WPCF7_PLUGIN', __FILE__ );
|
35 |
|
73 |
define( 'WPCF7_PLUGIN_URL', untrailingslashit( plugins_url( '', WPCF7_PLUGIN ) ) );
|
74 |
|
75 |
require_once WPCF7_PLUGIN_DIR . '/settings.php';
|
|
|
|