Version Description
- 15.08.2016 =
- Bugfix : XSS vulnerability was removed.
- Bugfix : The bug with displaying google captcha has been fixed.
Download this release
Release Info
Developer | bestwebsoft |
Plugin | Contact Form by BestWebSoft |
Version | 4.0.2 |
Comparing to | |
See all releases |
Code changes from version 4.0.1 to 4.0.2
- bws_menu/bws_functions.php +68 -25
- bws_menu/bws_menu.php +30 -24
- bws_menu/css/general_style.css +7 -6
- bws_menu/css/style.css +48 -16
- bws_menu/icons/themes/renty.png +0 -0
- bws_menu/images/logo-white-min.png +0 -0
- bws_menu/languages/bestwebsoft-fr_FR.mo +0 -0
- bws_menu/languages/bestwebsoft-fr_FR.po +113 -113
- bws_menu/languages/bestwebsoft-pl_PL.mo +0 -0
- bws_menu/languages/bestwebsoft-pl_PL.po +107 -110
- bws_menu/languages/bestwebsoft-ru_RU.mo +0 -0
- bws_menu/languages/bestwebsoft-ru_RU.po +112 -112
- bws_menu/languages/bestwebsoft-uk.mo +0 -0
- bws_menu/languages/bestwebsoft-uk.po +112 -112
- contact_form.php +764 -832
- css/style.css +0 -3
- images/google-captcha.png +0 -0
- includes/deprecated.php +136 -0
- readme.txt +106 -76
bws_menu/bws_functions.php
CHANGED
@@ -33,7 +33,7 @@ if ( ! function_exists ( 'bws_general_menu' ) ) {
|
|
33 |
}
|
34 |
}
|
35 |
|
36 |
-
add_menu_page( 'BWS Panel', 'BWS Panel', 'manage_options', 'bws_panel', 'bws_add_menu_render', plugins_url( 'images/
|
37 |
|
38 |
add_submenu_page( 'bws_panel', __( 'Plugins', 'bestwebsoft' ), __( 'Plugins', 'bestwebsoft' ), 'manage_options', 'bws_panel', 'bws_add_menu_render' );
|
39 |
add_submenu_page( 'bws_panel', __( 'Themes', 'bestwebsoft' ), __( 'Themes', 'bestwebsoft' ), 'manage_options', 'bws_themes', 'bws_add_menu_render' );
|
@@ -305,7 +305,7 @@ if ( ! function_exists( 'bws_go_pro_tab_check' ) ) {
|
|
305 |
$to_send["plugins"][ $bws_license_plugin ]["bws_license_key"] = $bws_license_key;
|
306 |
$to_send["plugins"][ $bws_license_plugin ]["bws_illegal_client"] = true;
|
307 |
$options = array(
|
308 |
-
'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3 ),
|
309 |
'body' => array( 'plugins' => serialize( $to_send ) ),
|
310 |
'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) );
|
311 |
$raw_response = wp_remote_post( 'http://bestwebsoft.com/wp-content/plugins/paid-products/plugins/update-check/1.0/', $options );
|
@@ -417,6 +417,9 @@ if ( ! function_exists( 'bws_go_pro_tab_check' ) ) {
|
|
417 |
update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
|
418 |
else
|
419 |
update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
|
|
|
|
|
|
|
420 |
}
|
421 |
} else {
|
422 |
$result['error'] = __( "Please, enter Your license key", 'bestwebsoft' );
|
@@ -558,6 +561,9 @@ if ( ! function_exists( 'bws_check_pro_license' ) ) {
|
|
558 |
$license_key = isset( $_POST['bws_license_key'] ) ? stripslashes( esc_html( trim( $_POST['bws_license_key'] ) ) ) : '';
|
559 |
|
560 |
if ( '' != $license_key ) {
|
|
|
|
|
|
|
561 |
if ( ! function_exists( 'get_plugins' ) )
|
562 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
563 |
$plugins_all = get_plugins();
|
@@ -597,7 +603,7 @@ if ( ! function_exists( 'bws_check_pro_license' ) ) {
|
|
597 |
else
|
598 |
$result['message'] = __( 'The license key is valid.', 'bestwebsoft' );
|
599 |
|
600 |
-
if (
|
601 |
$result['message'] .= ' ' . __( 'Your license will expire on', 'bestwebsoft' ) . ' ' . $value->time_out . '.';
|
602 |
|
603 |
if ( isset( $value->trial ) && $trial_plugin != false )
|
@@ -612,16 +618,25 @@ if ( ! function_exists( 'bws_check_pro_license' ) ) {
|
|
612 |
if ( empty( $result['error'] ) ) {
|
613 |
if ( $bstwbsftwppdtplgns_options[ $plugin_basename ] != $license_key ) {
|
614 |
$bstwbsftwppdtplgns_options[ $plugin_basename ] = $license_key;
|
615 |
-
|
616 |
-
if ( is_multisite() )
|
617 |
-
update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
|
618 |
-
else
|
619 |
-
update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
|
620 |
$file = @fopen( dirname( dirname( __FILE__ ) ) . "/license_key.txt" , "w+" );
|
621 |
if ( $file ) {
|
622 |
@fwrite( $file, $license_key );
|
623 |
@fclose( $file );
|
624 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
625 |
}
|
626 |
}
|
627 |
}
|
@@ -657,37 +672,63 @@ if ( ! function_exists ( 'bws_check_pro_license_form' ) ) {
|
|
657 |
|
658 |
if ( ! function_exists ( 'bws_plugin_update_row' ) ) {
|
659 |
function bws_plugin_update_row( $plugin_key, $link_slug = false, $free_plugin_name = false ) {
|
660 |
-
global $bstwbsftwppdtplgns_options;
|
661 |
$wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
|
662 |
if ( isset( $bstwbsftwppdtplgns_options['wrong_license_key'][ $plugin_key ] ) ) {
|
663 |
-
|
|
|
|
|
|
|
|
|
664 |
<td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
|
665 |
-
<div class="update-message
|
|
|
|
|
|
|
|
|
|
|
|
|
666 |
</td>
|
667 |
</tr>';
|
668 |
} elseif ( isset( $bstwbsftwppdtplgns_options['time_out'][ $plugin_key ] ) && strtotime( $bstwbsftwppdtplgns_options['time_out'][ $plugin_key ] ) < strtotime( date("m/d/Y") ) ) {
|
669 |
-
|
|
|
|
|
|
|
|
|
670 |
<td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
|
671 |
-
<div class="update-message" style
|
|
|
|
|
672 |
if ( isset( $bstwbsftwppdtplgns_options['trial'][ $plugin_key ] ) && $link_slug != false ) {
|
673 |
echo __( 'Notice: Your Pro Trial license has expired. To continue using the plugin you should buy a Pro license', 'bestwebsoft' ) . ' - <a href="http://bestwebsoft.com/products/' . $link_slug .'/">http://bestwebsoft.com/products/' . $link_slug . '/</a>';
|
674 |
} else {
|
675 |
echo __( 'Your license has expired. To continue getting top-priority support and plugin updates you should extend it.', 'bestwebsoft' ) . ' <a target="_new" href="http://support.bestwebsoft.com/entries/53487136">' . __( "Learn more", 'bestwebsoft' ) . '</a>';
|
676 |
}
|
|
|
|
|
677 |
echo '</div>
|
678 |
</td>
|
679 |
</tr>';
|
680 |
} elseif ( isset( $bstwbsftwppdtplgns_options['trial'][ $plugin_key ] ) ) {
|
681 |
-
|
|
|
|
|
|
|
|
|
682 |
<td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
|
683 |
-
<div class="update-message" style
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
|
|
|
|
|
|
|
|
691 |
echo '</div>
|
692 |
</td>
|
693 |
</tr>';
|
@@ -1386,7 +1427,7 @@ if ( ! function_exists( 'bws_custom_code_tab' ) ) {
|
|
1386 |
<?php if ( 'css' == $extension )
|
1387 |
_e( 'These styles will be added to the header on all pages of your site.', 'bestwebsoft' );
|
1388 |
else
|
1389 |
-
printf( __( '
|
1390 |
</p>
|
1391 |
<p><big>
|
1392 |
<?php if ( ! file_exists( ${"real_{$extension}_file"} ) || ( is_writeable( ${"real_{$extension}_file"} ) ) ) {
|
@@ -1457,7 +1498,8 @@ if ( ! function_exists( 'bws_enqueue_custom_code_php' ) ) {
|
|
1457 |
if ( ! $is_multisite && ! empty( $bstwbsftwppdtplgns_options['custom_code']['bws-custom-code.php'] ) ) {
|
1458 |
|
1459 |
if ( file_exists( $bstwbsftwppdtplgns_options['custom_code']['bws-custom-code.php'] ) ) {
|
1460 |
-
|
|
|
1461 |
require_once( $bstwbsftwppdtplgns_options['custom_code']['bws-custom-code.php'] );
|
1462 |
} else {
|
1463 |
unset( $bstwbsftwppdtplgns_options['custom_code']['bws-custom-code.php'] );
|
@@ -1468,7 +1510,8 @@ if ( ! function_exists( 'bws_enqueue_custom_code_php' ) ) {
|
|
1468 |
}
|
1469 |
} elseif ( $is_multisite && ! empty( $bstwbsftwppdtplgns_options['custom_code'][ $blog_id ]['bws-custom-code.php'] ) ) {
|
1470 |
if ( file_exists( $bstwbsftwppdtplgns_options['custom_code'][ $blog_id ]['bws-custom-code.php'] ) ) {
|
1471 |
-
|
|
|
1472 |
require_once( $bstwbsftwppdtplgns_options['custom_code'][ $blog_id ]['bws-custom-code.php'] );
|
1473 |
} else {
|
1474 |
unset( $bstwbsftwppdtplgns_options['custom_code'][ $blog_id ]['bws-custom-code.php'] );
|
33 |
}
|
34 |
}
|
35 |
|
36 |
+
add_menu_page( 'BWS Panel', 'BWS Panel', 'manage_options', 'bws_panel', 'bws_add_menu_render', plugins_url( 'images/logo-white-min.png', __FILE__ ), '1001' );
|
37 |
|
38 |
add_submenu_page( 'bws_panel', __( 'Plugins', 'bestwebsoft' ), __( 'Plugins', 'bestwebsoft' ), 'manage_options', 'bws_panel', 'bws_add_menu_render' );
|
39 |
add_submenu_page( 'bws_panel', __( 'Themes', 'bestwebsoft' ), __( 'Themes', 'bestwebsoft' ), 'manage_options', 'bws_themes', 'bws_add_menu_render' );
|
305 |
$to_send["plugins"][ $bws_license_plugin ]["bws_license_key"] = $bws_license_key;
|
306 |
$to_send["plugins"][ $bws_license_plugin ]["bws_illegal_client"] = true;
|
307 |
$options = array(
|
308 |
+
'timeout' => ( ( defined( 'DOING_CRON' ) && DOING_CRON ) ? 30 : 3 ),
|
309 |
'body' => array( 'plugins' => serialize( $to_send ) ),
|
310 |
'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) );
|
311 |
$raw_response = wp_remote_post( 'http://bestwebsoft.com/wp-content/plugins/paid-products/plugins/update-check/1.0/', $options );
|
417 |
update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
|
418 |
else
|
419 |
update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
|
420 |
+
|
421 |
+
if ( ! empty( $result['pro_plugin_is_activated'] ) )
|
422 |
+
delete_transient( 'bws_plugins_update' );
|
423 |
}
|
424 |
} else {
|
425 |
$result['error'] = __( "Please, enter Your license key", 'bestwebsoft' );
|
561 |
$license_key = isset( $_POST['bws_license_key'] ) ? stripslashes( esc_html( trim( $_POST['bws_license_key'] ) ) ) : '';
|
562 |
|
563 |
if ( '' != $license_key ) {
|
564 |
+
|
565 |
+
delete_transient( 'bws_plugins_update' );
|
566 |
+
|
567 |
if ( ! function_exists( 'get_plugins' ) )
|
568 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
569 |
$plugins_all = get_plugins();
|
603 |
else
|
604 |
$result['message'] = __( 'The license key is valid.', 'bestwebsoft' );
|
605 |
|
606 |
+
if ( ! empty( $value->time_out ) )
|
607 |
$result['message'] .= ' ' . __( 'Your license will expire on', 'bestwebsoft' ) . ' ' . $value->time_out . '.';
|
608 |
|
609 |
if ( isset( $value->trial ) && $trial_plugin != false )
|
618 |
if ( empty( $result['error'] ) ) {
|
619 |
if ( $bstwbsftwppdtplgns_options[ $plugin_basename ] != $license_key ) {
|
620 |
$bstwbsftwppdtplgns_options[ $plugin_basename ] = $license_key;
|
621 |
+
|
|
|
|
|
|
|
|
|
622 |
$file = @fopen( dirname( dirname( __FILE__ ) ) . "/license_key.txt" , "w+" );
|
623 |
if ( $file ) {
|
624 |
@fwrite( $file, $license_key );
|
625 |
@fclose( $file );
|
626 |
}
|
627 |
+
$update_option = true;
|
628 |
+
}
|
629 |
+
|
630 |
+
if ( $bstwbsftwppdtplgns_options['time_out'][ $plugin_basename ] != $value->time_out ) {
|
631 |
+
$bstwbsftwppdtplgns_options['time_out'][ $plugin_basename ] = $value->time_out;
|
632 |
+
$update_option = true;
|
633 |
+
}
|
634 |
+
|
635 |
+
if ( isset( $update_option ) ) {
|
636 |
+
if ( is_multisite() )
|
637 |
+
update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
|
638 |
+
else
|
639 |
+
update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
|
640 |
}
|
641 |
}
|
642 |
}
|
672 |
|
673 |
if ( ! function_exists ( 'bws_plugin_update_row' ) ) {
|
674 |
function bws_plugin_update_row( $plugin_key, $link_slug = false, $free_plugin_name = false ) {
|
675 |
+
global $bstwbsftwppdtplgns_options, $wp_version;
|
676 |
$wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
|
677 |
if ( isset( $bstwbsftwppdtplgns_options['wrong_license_key'][ $plugin_key ] ) ) {
|
678 |
+
$explode_plugin_key = explode( '/', $plugin_key );
|
679 |
+
$class = ( $wp_version >= 4.6 ) ? 'active' : '';
|
680 |
+
$style = ( $wp_version < 4.6 ) ? ' style="background-color: #FFEBE8;border-color: #CC0000;"' : '';
|
681 |
+
$div_class = ( $wp_version >= 4.6 ) ? ' notice inline notice-warning notice-alt' : '';
|
682 |
+
echo '<tr class="bws-plugin-update-tr plugin-update-tr ' . $class . '" id="' . $explode_plugin_key[0] . '-update" data-slug="' . $explode_plugin_key[0] . '" data-plugin="' . $plugin_key . '">
|
683 |
<td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
|
684 |
+
<div class="update-message' . $div_class . '"' . $style . '>';
|
685 |
+
if ( $wp_version >= 4.6 )
|
686 |
+
echo '<p>';
|
687 |
+
echo '<strong>' . __( 'WARNING: Illegal use notification', 'bestwebsoft' ) . '.</strong> ' . __( 'You can use one license of the Pro plugin for one domain only. Please check and edit your license or domain if necessary using you personal Client Area. We strongly recommend you to solve the problem within 24 hours, otherwise the Pro plugin will be deactivated.', 'bestwebsoft' ) . ' <a target="_blank" href="http://support.bestwebsoft.com/hc/en-us/articles/204240089">' . __( 'Learn More', 'bestwebsoft' ) . '</a>';
|
688 |
+
if ( $wp_version >= 4.6 )
|
689 |
+
echo '</p>';
|
690 |
+
echo '</div>
|
691 |
</td>
|
692 |
</tr>';
|
693 |
} elseif ( isset( $bstwbsftwppdtplgns_options['time_out'][ $plugin_key ] ) && strtotime( $bstwbsftwppdtplgns_options['time_out'][ $plugin_key ] ) < strtotime( date("m/d/Y") ) ) {
|
694 |
+
$explode_plugin_key = explode( '/', $plugin_key );
|
695 |
+
$class = ( $wp_version >= 4.6 ) ? 'active' : '';
|
696 |
+
$style = ( $wp_version < 4.6 ) ? ' style="color: #8C0000;"' : '';
|
697 |
+
$div_class = ( $wp_version >= 4.6 ) ? ' notice inline notice-warning notice-alt' : '';
|
698 |
+
echo '<tr class="bws-plugin-update-tr plugin-update-tr ' . $class . '" id="' . $explode_plugin_key[0] . '-update" data-slug="' . $explode_plugin_key[0] . '" data-plugin="' . $plugin_key . '">
|
699 |
<td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
|
700 |
+
<div class="update-message' . $div_class . '"' . $style . '>';
|
701 |
+
if ( $wp_version >= 4.6 )
|
702 |
+
echo '<p>';
|
703 |
if ( isset( $bstwbsftwppdtplgns_options['trial'][ $plugin_key ] ) && $link_slug != false ) {
|
704 |
echo __( 'Notice: Your Pro Trial license has expired. To continue using the plugin you should buy a Pro license', 'bestwebsoft' ) . ' - <a href="http://bestwebsoft.com/products/' . $link_slug .'/">http://bestwebsoft.com/products/' . $link_slug . '/</a>';
|
705 |
} else {
|
706 |
echo __( 'Your license has expired. To continue getting top-priority support and plugin updates you should extend it.', 'bestwebsoft' ) . ' <a target="_new" href="http://support.bestwebsoft.com/entries/53487136">' . __( "Learn more", 'bestwebsoft' ) . '</a>';
|
707 |
}
|
708 |
+
if ( $wp_version >= 4.6 )
|
709 |
+
echo '</p>';
|
710 |
echo '</div>
|
711 |
</td>
|
712 |
</tr>';
|
713 |
} elseif ( isset( $bstwbsftwppdtplgns_options['trial'][ $plugin_key ] ) ) {
|
714 |
+
$explode_plugin_key = explode( '/', $plugin_key );
|
715 |
+
$class = ( $wp_version >= 4.6 ) ? 'active' : '';
|
716 |
+
$style = ( $wp_version < 4.6 ) ? ' style="color: #8C0000;"' : '';
|
717 |
+
$div_class = ( $wp_version >= 4.6 ) ? ' notice inline notice-warning notice-alt' : '';
|
718 |
+
echo '<tr class="bws-plugin-update-tr plugin-update-tr ' . $class . '" id="' . $explode_plugin_key[0] . '-update" data-slug="' . $explode_plugin_key[0] . '" data-plugin="' . $plugin_key . '">
|
719 |
<td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange">
|
720 |
+
<div class="update-message' . $div_class . '"' . $style . '>';
|
721 |
+
if ( $wp_version >= 4.6 )
|
722 |
+
echo '<p>';
|
723 |
+
if ( $free_plugin_name != false ) {
|
724 |
+
echo sprintf( __( 'Notice: You are using the Pro Trial license of %s plugin.', 'bestwebsoft' ), $free_plugin_name );
|
725 |
+
} else {
|
726 |
+
_e( 'Notice: You are using the Pro Trial license of plugin.', 'bestwebsoft' );
|
727 |
+
}
|
728 |
+
if ( isset( $bstwbsftwppdtplgns_options['time_out'][ $plugin_key ] ) )
|
729 |
+
echo ' ' . __( "The Pro Trial license will expire on", 'bestwebsoft' ) . ' ' . $bstwbsftwppdtplgns_options['time_out'][ $plugin_key ] . '.';
|
730 |
+
if ( $wp_version >= 4.6 )
|
731 |
+
echo '</p>';
|
732 |
echo '</div>
|
733 |
</td>
|
734 |
</tr>';
|
1427 |
<?php if ( 'css' == $extension )
|
1428 |
_e( 'These styles will be added to the header on all pages of your site.', 'bestwebsoft' );
|
1429 |
else
|
1430 |
+
printf( __( 'This PHP code will be hooked to the %s action and will be printed on front end only.', 'bestwebsoft' ), '<a href="http://codex.wordpress.org/Plugin_API/Action_Reference/init" target="_blank"><code>init</code></a>' ); ?>
|
1431 |
</p>
|
1432 |
<p><big>
|
1433 |
<?php if ( ! file_exists( ${"real_{$extension}_file"} ) || ( is_writeable( ${"real_{$extension}_file"} ) ) ) {
|
1498 |
if ( ! $is_multisite && ! empty( $bstwbsftwppdtplgns_options['custom_code']['bws-custom-code.php'] ) ) {
|
1499 |
|
1500 |
if ( file_exists( $bstwbsftwppdtplgns_options['custom_code']['bws-custom-code.php'] ) ) {
|
1501 |
+
if ( ! defined( 'BWS_GLOBAL' ) )
|
1502 |
+
define( 'BWS_GLOBAL', true );
|
1503 |
require_once( $bstwbsftwppdtplgns_options['custom_code']['bws-custom-code.php'] );
|
1504 |
} else {
|
1505 |
unset( $bstwbsftwppdtplgns_options['custom_code']['bws-custom-code.php'] );
|
1510 |
}
|
1511 |
} elseif ( $is_multisite && ! empty( $bstwbsftwppdtplgns_options['custom_code'][ $blog_id ]['bws-custom-code.php'] ) ) {
|
1512 |
if ( file_exists( $bstwbsftwppdtplgns_options['custom_code'][ $blog_id ]['bws-custom-code.php'] ) ) {
|
1513 |
+
if ( ! defined( 'BWS_GLOBAL' ) )
|
1514 |
+
define( 'BWS_GLOBAL', true );
|
1515 |
require_once( $bstwbsftwppdtplgns_options['custom_code'][ $blog_id ]['bws-custom-code.php'] );
|
1516 |
} else {
|
1517 |
unset( $bstwbsftwppdtplgns_options['custom_code'][ $blog_id ]['bws-custom-code.php'] );
|
bws_menu/bws_menu.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Function for displaying BestWebSoft menu
|
4 |
-
* Version: 1.9.
|
5 |
*/
|
6 |
|
7 |
if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
|
@@ -292,32 +292,34 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
|
|
292 |
<?php if ( 'bws_panel' == $_GET['page'] && ! isset( $_POST['bws_plugin_action_submit'] ) ) { ?>
|
293 |
<div class="bws-membership-wrap">
|
294 |
<div class="bws-membership-backround"></div>
|
295 |
-
<div class="bws-membership">
|
296 |
-
<
|
|
|
|
|
297 |
<?php if ( isset( $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] ) &&
|
298 |
'5' < $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] &&
|
299 |
$bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['time'] > ( time() - ( 24 * 60 * 60 ) ) ) { ?>
|
300 |
-
<div>
|
301 |
<input disabled="disabled" type="text" name="bws_license_key" value="<?php echo $bws_license_key; ?>" />
|
302 |
-
<
|
303 |
</div>
|
304 |
-
<
|
305 |
<?php } else { ?>
|
306 |
-
<div>
|
307 |
-
<input type="text" placeholder="<?php _e( 'Enter your license key', 'bestwebsoft' ); ?>" maxlength="100" name="bws_license_key" value="<?php echo $bws_license_key; ?>" />
|
308 |
-
<
|
309 |
-
<input type="hidden" name="bws_license_submit" value="submit" />
|
310 |
-
<?php if ( empty( $plugins_array ) ) { ?>
|
311 |
-
<input type="submit" class="bws-button" value="<?php _e( 'Activate Membership', 'bestwebsoft' ); ?>" />
|
312 |
-
<?php } else { ?>
|
313 |
-
<input type="submit" class="bws-button" value="<?php _e( 'Check license key', 'bestwebsoft' ); ?>" />
|
314 |
-
<?php } ?>
|
315 |
-
<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_nonce_name' ); ?>
|
316 |
</div>
|
317 |
-
<
|
318 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
</form>
|
320 |
-
<div class="
|
321 |
</div>
|
322 |
</div>
|
323 |
<?php } ?>
|
@@ -598,8 +600,8 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
|
|
598 |
</div>
|
599 |
<?php }
|
600 |
} else { ?>
|
601 |
-
<div class="theme-browser">
|
602 |
-
<div class="themes">
|
603 |
<?php foreach ( $themes as $key => $theme ) {
|
604 |
$installed_theme = wp_get_theme( $theme->slug ); ?>
|
605 |
<div class="theme" tabindex="0">
|
@@ -611,9 +613,13 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
|
|
611 |
<div class="theme-actions">
|
612 |
<a class="button button-secondary preview install-theme-preview" href="<?php echo $theme->href; ?>" target="_blank"><?php esc_html_e( 'Learn More', 'bestwebsoft' ); ?></a>
|
613 |
</div>
|
614 |
-
<?php if ( $installed_theme->exists() ) {
|
615 |
-
|
616 |
-
|
|
|
|
|
|
|
|
|
617 |
</div>
|
618 |
<?php } ?>
|
619 |
<br class="clear" />
|
1 |
<?php
|
2 |
/*
|
3 |
* Function for displaying BestWebSoft menu
|
4 |
+
* Version: 1.9.2
|
5 |
*/
|
6 |
|
7 |
if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
|
292 |
<?php if ( 'bws_panel' == $_GET['page'] && ! isset( $_POST['bws_plugin_action_submit'] ) ) { ?>
|
293 |
<div class="bws-membership-wrap">
|
294 |
<div class="bws-membership-backround"></div>
|
295 |
+
<div class="bws-membership">
|
296 |
+
<div class="bws-membership-title"><?php printf( __( 'Get Access to %s+ Premium Plugins', 'bestwebsoft' ), '30' ); ?></div>
|
297 |
+
<form class="bws-membership-form" method="post" action="">
|
298 |
+
<span class="bws-membership-link"><a target="_blank" href="http://bestwebsoft.com/membership/"><?php _e( 'Subscribe to Pro Membership', 'bestwebsoft' ); ?></a> <?php _e( 'or', 'bestwebsoft' ); ?></span>
|
299 |
<?php if ( isset( $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] ) &&
|
300 |
'5' < $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] &&
|
301 |
$bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['time'] > ( time() - ( 24 * 60 * 60 ) ) ) { ?>
|
302 |
+
<div class="bws_form_input_wrap">
|
303 |
<input disabled="disabled" type="text" name="bws_license_key" value="<?php echo $bws_license_key; ?>" />
|
304 |
+
<div class="bws_error"><?php _e( "Unfortunately, you have exceeded the number of available tries per day.", 'bestwebsoft' ); ?></div>
|
305 |
</div>
|
306 |
+
<input disabled="disabled" type="submit" class="bws-button" value="<?php _e( 'Check license key', 'bestwebsoft' ); ?>" />
|
307 |
<?php } else { ?>
|
308 |
+
<div class="bws_form_input_wrap">
|
309 |
+
<input <?php if ( "" != $error ) echo "class=\"bws_input_error\""; ?> type="text" placeholder="<?php _e( 'Enter your license key', 'bestwebsoft' ); ?>" maxlength="100" name="bws_license_key" value="<?php echo $bws_license_key; ?>" />
|
310 |
+
<div class="bws_error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><?php echo $error; ?></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
</div>
|
312 |
+
<input type="hidden" name="bws_license_plugin" value="<?php echo $bws_license_plugin; ?>" />
|
313 |
+
<input type="hidden" name="bws_license_submit" value="submit" />
|
314 |
+
<?php if ( empty( $plugins_array ) ) { ?>
|
315 |
+
<input type="submit" class="bws-button" value="<?php _e( 'Activate', 'bestwebsoft' ); ?>" />
|
316 |
+
<?php } else { ?>
|
317 |
+
<input type="submit" class="bws-button" value="<?php _e( 'Check license key', 'bestwebsoft' ); ?>" />
|
318 |
+
<?php } ?>
|
319 |
+
<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_nonce_name' ); ?>
|
320 |
+
<?php } ?>
|
321 |
</form>
|
322 |
+
<div class="clear"></div>
|
323 |
</div>
|
324 |
</div>
|
325 |
<?php } ?>
|
600 |
</div>
|
601 |
<?php }
|
602 |
} else { ?>
|
603 |
+
<div class="theme-browser content-filterable rendered">
|
604 |
+
<div class="themes wp-clearfix">
|
605 |
<?php foreach ( $themes as $key => $theme ) {
|
606 |
$installed_theme = wp_get_theme( $theme->slug ); ?>
|
607 |
<div class="theme" tabindex="0">
|
613 |
<div class="theme-actions">
|
614 |
<a class="button button-secondary preview install-theme-preview" href="<?php echo $theme->href; ?>" target="_blank"><?php esc_html_e( 'Learn More', 'bestwebsoft' ); ?></a>
|
615 |
</div>
|
616 |
+
<?php if ( $installed_theme->exists() ) {
|
617 |
+
if ( $wp_version < '4.6' ) { ?>
|
618 |
+
<div class="theme-installed"><?php _e( 'Already Installed', 'bestwebsoft' ); ?></div>
|
619 |
+
<?php } else { ?>
|
620 |
+
<div class="notice notice-success notice-alt inline"><p><?php _e( 'Installed', 'bestwebsoft' ); ?></p></div>
|
621 |
+
<?php }
|
622 |
+
} ?>
|
623 |
</div>
|
624 |
<?php } ?>
|
625 |
<br class="clear" />
|
bws_menu/css/general_style.css
CHANGED
@@ -1,9 +1,3 @@
|
|
1 |
-
#adminmenu #toplevel_page_bws_panel div.wp-menu-image img,
|
2 |
-
.admin-color-classic #adminmenu #toplevel_page_bws_panel div.wp-menu-image img,
|
3 |
-
#adminmenu #toplevel_page_bws_panel:hover div.wp-menu-image img,
|
4 |
-
#adminmenu #toplevel_page_bws_panel.wp-has-current-submenu div.wp-menu-image img {
|
5 |
-
width: 18px;
|
6 |
-
}
|
7 |
#adminmenu #toplevel_page_bws_panel .wp-submenu li:nth-child(4) a {
|
8 |
border-bottom: 1px solid #444;
|
9 |
padding-bottom: 12px;
|
@@ -502,4 +496,11 @@ span.bws_code {
|
|
502 |
#bws_shortcode_content .title,
|
503 |
#bws_shortcode_content .checkbox-title {
|
504 |
white-space: normal;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
#adminmenu #toplevel_page_bws_panel .wp-submenu li:nth-child(4) a {
|
2 |
border-bottom: 1px solid #444;
|
3 |
padding-bottom: 12px;
|
496 |
#bws_shortcode_content .title,
|
497 |
#bws_shortcode_content .checkbox-title {
|
498 |
white-space: normal;
|
499 |
+
}
|
500 |
+
/* styles for notices (license has expired, Illegal use notification ond other) on the /plugins.php page */
|
501 |
+
.bws-plugin-update-tr .update-message {
|
502 |
+
margin-top: 0 !important;
|
503 |
+
}
|
504 |
+
.bws-plugin-update-tr .update-message :before {
|
505 |
+
content: '';
|
506 |
}
|
bws_menu/css/style.css
CHANGED
@@ -111,7 +111,6 @@ a.toplevel_page_bws_panel.wp-has-current-submenu:after {
|
|
111 |
overflow: hidden;
|
112 |
position: relative;
|
113 |
margin: 20px 20px 0 20px;
|
114 |
-
border-radius: 4px;
|
115 |
}
|
116 |
.bws-membership-backround {
|
117 |
background-color: #000;
|
@@ -123,19 +122,30 @@ a.toplevel_page_bws_panel.wp-has-current-submenu:after {
|
|
123 |
}
|
124 |
.bws-membership {
|
125 |
color: #fff;
|
126 |
-
padding:
|
127 |
-
text-align: center;
|
128 |
z-index: 6;
|
129 |
position: relative;
|
130 |
}
|
131 |
-
.bws-membership
|
132 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
}
|
134 |
.bws-membership input[type="text"] {
|
135 |
border-radius: 3px;
|
136 |
border: none;
|
137 |
-
font-size:
|
138 |
-
padding: 8px
|
139 |
text-align: left;
|
140 |
}
|
141 |
.bws-membership .bws-button {
|
@@ -144,35 +154,39 @@ a.toplevel_page_bws_panel.wp-has-current-submenu:after {
|
|
144 |
text-align: center;
|
145 |
display: inline-block;
|
146 |
text-decoration: none;
|
147 |
-
font-size:
|
148 |
-
|
149 |
-
padding: 8px 30px;
|
150 |
border-radius: 3px;
|
151 |
border: none;
|
152 |
cursor: pointer;
|
|
|
153 |
}
|
154 |
.bws-membership-link {
|
155 |
-
font-size:
|
156 |
color: #999;
|
157 |
-
|
158 |
-
|
159 |
}
|
160 |
.bws-membership-link a {
|
161 |
color: #fff;
|
162 |
text-decoration: none;
|
163 |
border-bottom: 1px solid #999;
|
|
|
164 |
}
|
165 |
.bws-membership-link a:hover {
|
166 |
border-bottom: none;
|
167 |
}
|
168 |
.bws_error {
|
169 |
color: #c5412b;
|
170 |
-
margin-top:
|
171 |
}
|
172 |
.bws_error a {
|
173 |
color: #fff;
|
174 |
text-decoration: none;
|
175 |
}
|
|
|
|
|
|
|
176 |
/*
|
177 |
* themes
|
178 |
*/
|
@@ -411,6 +425,14 @@ a.bws_donate {
|
|
411 |
.bws-products {
|
412 |
width: 370px;
|
413 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
414 |
}
|
415 |
@media screen and (max-width: 782px) {
|
416 |
.bws-header {
|
@@ -434,12 +456,22 @@ a.bws_donate {
|
|
434 |
width: 100%;
|
435 |
padding: 17px 20px 20px;
|
436 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
.bws-membership .bws-button,
|
|
|
438 |
.bws-membership input[type="text"] {
|
439 |
width: 100%;
|
|
|
440 |
}
|
441 |
-
.bws-membership
|
442 |
-
margin-
|
443 |
}
|
444 |
.bws-filter {
|
445 |
display: none;
|
111 |
overflow: hidden;
|
112 |
position: relative;
|
113 |
margin: 20px 20px 0 20px;
|
|
|
114 |
}
|
115 |
.bws-membership-backround {
|
116 |
background-color: #000;
|
122 |
}
|
123 |
.bws-membership {
|
124 |
color: #fff;
|
125 |
+
padding: 23px 22px 23px 20px;
|
|
|
126 |
z-index: 6;
|
127 |
position: relative;
|
128 |
}
|
129 |
+
.bws-membership-title {
|
130 |
+
font-size: 18px;
|
131 |
+
line-height: 30px;
|
132 |
+
font-weight: 600;
|
133 |
+
float: left;
|
134 |
+
}
|
135 |
+
.bws-membership-form {
|
136 |
+
float: right;
|
137 |
+
}
|
138 |
+
.bws-membership-form * {
|
139 |
+
vertical-align: top;
|
140 |
+
}
|
141 |
+
.bws_form_input_wrap {
|
142 |
+
display: inline-block;
|
143 |
}
|
144 |
.bws-membership input[type="text"] {
|
145 |
border-radius: 3px;
|
146 |
border: none;
|
147 |
+
font-size: 13px;
|
148 |
+
padding: 8px 19px 8px 9px;
|
149 |
text-align: left;
|
150 |
}
|
151 |
.bws-membership .bws-button {
|
154 |
text-align: center;
|
155 |
display: inline-block;
|
156 |
text-decoration: none;
|
157 |
+
font-size: 13px;
|
158 |
+
padding: 8px 9px;
|
|
|
159 |
border-radius: 3px;
|
160 |
border: none;
|
161 |
cursor: pointer;
|
162 |
+
margin: 0 6px;
|
163 |
}
|
164 |
.bws-membership-link {
|
165 |
+
font-size: 15px;
|
166 |
color: #999;
|
167 |
+
padding: 0 8px;
|
168 |
+
line-height: 27px;
|
169 |
}
|
170 |
.bws-membership-link a {
|
171 |
color: #fff;
|
172 |
text-decoration: none;
|
173 |
border-bottom: 1px solid #999;
|
174 |
+
padding: 0 3px;
|
175 |
}
|
176 |
.bws-membership-link a:hover {
|
177 |
border-bottom: none;
|
178 |
}
|
179 |
.bws_error {
|
180 |
color: #c5412b;
|
181 |
+
margin-top: 1px;
|
182 |
}
|
183 |
.bws_error a {
|
184 |
color: #fff;
|
185 |
text-decoration: none;
|
186 |
}
|
187 |
+
.bws_input_error {
|
188 |
+
border: 1px solid #c5412b !important;
|
189 |
+
}
|
190 |
/*
|
191 |
* themes
|
192 |
*/
|
425 |
.bws-products {
|
426 |
width: 370px;
|
427 |
}
|
428 |
+
.bws-membership-title,
|
429 |
+
.bws-membership-form {
|
430 |
+
float: none;
|
431 |
+
text-align: center;
|
432 |
+
}
|
433 |
+
.bws-membership-title {
|
434 |
+
margin-bottom: 10px;
|
435 |
+
}
|
436 |
}
|
437 |
@media screen and (max-width: 782px) {
|
438 |
.bws-header {
|
456 |
width: 100%;
|
457 |
padding: 17px 20px 20px;
|
458 |
}
|
459 |
+
.bws-membership * {
|
460 |
+
text-align: center;
|
461 |
+
}
|
462 |
+
.bws-membership-title,
|
463 |
+
.bws-membership-link {
|
464 |
+
margin-bottom: 10px;
|
465 |
+
display: block;
|
466 |
+
}
|
467 |
.bws-membership .bws-button,
|
468 |
+
.bws_form_input_wrap,
|
469 |
.bws-membership input[type="text"] {
|
470 |
width: 100%;
|
471 |
+
margin: 0;
|
472 |
}
|
473 |
+
.bws-membership .bws-button {
|
474 |
+
margin-top: 8px;
|
475 |
}
|
476 |
.bws-filter {
|
477 |
display: none;
|
bws_menu/icons/themes/renty.png
ADDED
Binary file
|
bws_menu/images/logo-white-min.png
ADDED
Binary file
|
bws_menu/languages/bestwebsoft-fr_FR.mo
CHANGED
Binary file
|
bws_menu/languages/bestwebsoft-fr_FR.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bestwebsoft\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2016-
|
6 |
-
"PO-Revision-Date: 2016-
|
7 |
"Last-Translator: Luc Capronnier <lcapronnier@yahoo.com>\n"
|
8 |
"Language-Team: Luc Capronnier <lcapronnier@yahoo.com>\n"
|
9 |
"Language: fr_FR\n"
|
@@ -17,11 +17,11 @@ msgstr ""
|
|
17 |
"X-Generator: Poedit 1.5.4\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
-
#: bws_functions.php:38 bws_menu.php:282 bws_menu.php:
|
21 |
msgid "Plugins"
|
22 |
msgstr "Extensions"
|
23 |
|
24 |
-
#: bws_functions.php:39 bws_menu.php:283 bws_menu.php:
|
25 |
msgid "Themes"
|
26 |
msgstr "Thèmes"
|
27 |
|
@@ -65,12 +65,12 @@ msgstr "Merci d'avoir installé"
|
|
65 |
msgid "Let's get started"
|
66 |
msgstr "Démarrer"
|
67 |
|
68 |
-
#: bws_functions.php:120 bws_functions.php:153 bws_menu.php:
|
69 |
-
#: bws_menu.php:
|
70 |
msgid "Settings"
|
71 |
msgstr "Réglages"
|
72 |
|
73 |
-
#: bws_functions.php:122 bws_functions.php:479
|
74 |
msgid "or"
|
75 |
msgstr "ou"
|
76 |
|
@@ -79,7 +79,7 @@ msgid "Add New"
|
|
79 |
msgstr "Ajouter"
|
80 |
|
81 |
#: bws_functions.php:127 bws_functions.php:137 bws_functions.php:213
|
82 |
-
#: bws_functions.php:
|
83 |
msgid "Close notice"
|
84 |
msgstr "Effacer l'avertissement"
|
85 |
|
@@ -113,7 +113,7 @@ msgstr ""
|
|
113 |
"Étend les fonctionnalités classiques de l'extension avec des nouvelles "
|
114 |
"options."
|
115 |
|
116 |
-
#: bws_functions.php:222 bws_functions.php:
|
117 |
msgid "Learn More"
|
118 |
msgstr "En savoir plus"
|
119 |
|
@@ -189,19 +189,19 @@ msgstr ""
|
|
189 |
"peut-être installée qu'une seule fois."
|
190 |
|
191 |
#: bws_functions.php:349 bws_functions.php:371 bws_functions.php:393
|
192 |
-
#: bws_menu.php:
|
193 |
msgid "Failed to download the zip archive. Please, upload the plugin manually"
|
194 |
msgstr ""
|
195 |
"Erreur de téléchargement de l'archive ZIP. Merci de télécharger l'extension "
|
196 |
"manuellement."
|
197 |
|
198 |
-
#: bws_functions.php:361 bws_menu.php:
|
199 |
msgid "Failed to open the zip archive. Please, upload the plugin manually"
|
200 |
msgstr ""
|
201 |
"Erreur d'ouverture de l'archive zip. Merci de télécharger l'extension "
|
202 |
"manuellement."
|
203 |
|
204 |
-
#: bws_functions.php:367 bws_menu.php:
|
205 |
msgid ""
|
206 |
"Your server does not support either ZipArchive or Phar. Please, upload the "
|
207 |
"plugin manually"
|
@@ -209,7 +209,7 @@ msgstr ""
|
|
209 |
"Votre serveur n'a pas le support du format des archives ZIP ou Phar. Merci "
|
210 |
"de télécharger l'extension manuellement."
|
211 |
|
212 |
-
#: bws_functions.php:374 bws_menu.php:
|
213 |
msgid "UploadDir is not writable. Please, upload the plugin manually"
|
214 |
msgstr ""
|
215 |
"Erreur d'ouverture de l'archive zip. Merci de télécharger l'extension "
|
@@ -275,8 +275,8 @@ msgid "Start Your Free %s-Day Trial Now"
|
|
275 |
msgstr "Débuter votre licence d'évaluation gratuite de %s jours"
|
276 |
|
277 |
#: bws_functions.php:485 bws_functions.php:494 bws_functions.php:524
|
278 |
-
#: bws_functions.php:532 bws_functions.php:
|
279 |
-
#: bws_menu.php:
|
280 |
msgid "Activate"
|
281 |
msgstr "Activé"
|
282 |
|
@@ -372,15 +372,15 @@ msgstr ""
|
|
372 |
"l'achat de l'extension). Si nécessaire, utilisez la fonction de demande de "
|
373 |
"mot de passe perdu."
|
374 |
|
375 |
-
#: bws_functions.php:651 bws_menu.php:
|
376 |
msgid "Check license key"
|
377 |
msgstr "Vérifier la clé de licence"
|
378 |
|
379 |
-
#: bws_functions.php:
|
380 |
msgid "WARNING: Illegal use notification"
|
381 |
msgstr "AVERTISSEMENT : Notification d'utilisation abusive"
|
382 |
|
383 |
-
#: bws_functions.php:
|
384 |
msgid ""
|
385 |
"You can use one license of the Pro plugin for one domain only. Please check "
|
386 |
"and edit your license or domain if necessary using you personal Client Area. "
|
@@ -393,7 +393,7 @@ msgstr ""
|
|
393 |
"de résoudre ce problème dans les 24 heures, sinon l'extension sera rendue "
|
394 |
"inactive."
|
395 |
|
396 |
-
#: bws_functions.php:
|
397 |
msgid ""
|
398 |
"Notice: Your Pro Trial license has expired. To continue using the plugin you "
|
399 |
"should buy a Pro license"
|
@@ -401,7 +401,7 @@ msgstr ""
|
|
401 |
"Votre licence d'évaluation est terminée. Pour continuer à disposer du "
|
402 |
"support rapide et des mises à jour de l'extension vous devez la renouveler."
|
403 |
|
404 |
-
#: bws_functions.php:
|
405 |
msgid ""
|
406 |
"Your license has expired. To continue getting top-priority support and "
|
407 |
"plugin updates you should extend it."
|
@@ -409,41 +409,41 @@ msgstr ""
|
|
409 |
"Votre licence est terminée. Pour continuer à disposer du support rapide et "
|
410 |
"des mises à jour de l'extension vous devez la renouveller."
|
411 |
|
412 |
-
#: bws_functions.php:
|
413 |
msgid "Learn more"
|
414 |
msgstr "En savoir plus"
|
415 |
|
416 |
-
#: bws_functions.php:
|
417 |
#, php-format
|
418 |
msgid "Notice: You are using the Pro Trial license of %s plugin."
|
419 |
msgstr ""
|
420 |
"Avertissement : vous utilisez la version d'évaluation de l'extension %s."
|
421 |
|
422 |
-
#: bws_functions.php:
|
423 |
msgid "Notice: You are using the Pro Trial license of plugin."
|
424 |
msgstr "Avertissement : vous utilisez la version d'évaluation de l'extension."
|
425 |
|
426 |
-
#: bws_functions.php:
|
427 |
msgid "The Pro Trial license will expire on"
|
428 |
msgstr "La licence PRO d'évaluation expirera le"
|
429 |
|
430 |
-
#: bws_functions.php:
|
431 |
msgid "You license for"
|
432 |
msgstr "Votre licence pour"
|
433 |
|
434 |
-
#: bws_functions.php:
|
435 |
msgid "expires on"
|
436 |
msgstr "se termine le"
|
437 |
|
438 |
-
#: bws_functions.php:
|
439 |
msgid "and you won't be granted TOP-PRIORITY SUPPORT or UPDATES."
|
440 |
msgstr "et vous ne disposerez plus du support rapide et des mises à jour."
|
441 |
|
442 |
-
#: bws_functions.php:
|
443 |
msgid "Thank you for choosing"
|
444 |
msgstr "Merci d'avoir choisi"
|
445 |
|
446 |
-
#: bws_functions.php:
|
447 |
msgid ""
|
448 |
"If you have a feature, suggestion or idea you'd like to see in the plugin, "
|
449 |
"we'd love to hear about it!"
|
@@ -451,23 +451,23 @@ msgstr ""
|
|
451 |
"Si vous avez une fonctionnalité, une suggestion ou une idée que vous "
|
452 |
"souhaitez pour cette extension, nous serons ravis d'en parler avec vous !"
|
453 |
|
454 |
-
#: bws_functions.php:
|
455 |
msgid "Suggest a Feature"
|
456 |
msgstr "Proposer une fonctionnalité"
|
457 |
|
458 |
-
#: bws_functions.php:
|
459 |
msgid "Notice"
|
460 |
msgstr "Avertissement"
|
461 |
|
462 |
-
#: bws_functions.php:
|
463 |
msgid "The plugin's settings have been changed."
|
464 |
msgstr "Les paramètres de l'extension ont été modifiés."
|
465 |
|
466 |
-
#: bws_functions.php:
|
467 |
msgid "Save Changes"
|
468 |
msgstr "Sauvegarder les modifications"
|
469 |
|
470 |
-
#: bws_functions.php:
|
471 |
msgid ""
|
472 |
"You can always look at premium options by clicking on the \"Show Pro features"
|
473 |
"\" in the \"Go PRO\" tab"
|
@@ -475,124 +475,124 @@ msgstr ""
|
|
475 |
"Vous pouvez toujours consulter les options premium en cliquant sur le lien "
|
476 |
"\"Voir les fonctionnalités de la version PRO\" dans l'onglet Passer PRO"
|
477 |
|
478 |
-
#: bws_functions.php:
|
479 |
msgid "Add shortcode"
|
480 |
msgstr "Ajouter le code court"
|
481 |
|
482 |
-
#: bws_functions.php:
|
483 |
msgid "Add BestWebSoft plugins' shortcodes using this button."
|
484 |
msgstr "Ajouter le code court des extensions BestWebSoft avec ce bouton."
|
485 |
|
486 |
-
#: bws_functions.php:
|
487 |
msgid "Close"
|
488 |
msgstr "Fermer"
|
489 |
|
490 |
-
#: bws_functions.php:
|
491 |
msgid "Restore all plugin settings to defaults"
|
492 |
msgstr "Remettre les valeurs par défaut des paramètres de l'extension"
|
493 |
|
494 |
-
#: bws_functions.php:
|
495 |
msgid "Restore settings"
|
496 |
msgstr "Remettre les paramètres"
|
497 |
|
498 |
-
#: bws_functions.php:
|
499 |
msgid "Are you sure you want to restore all settings by default?"
|
500 |
msgstr "Êtes vous sûr de vouloir remettre toutes les valeurs par défaut ?"
|
501 |
|
502 |
-
#: bws_functions.php:
|
503 |
msgid "Yes, restore all settings"
|
504 |
msgstr "Oui, remettre les valeurs par défaut"
|
505 |
|
506 |
-
#: bws_functions.php:
|
507 |
msgid "No, go back to the settings page"
|
508 |
msgstr "Non, retourner à la page des paramètres"
|
509 |
|
510 |
-
#: bws_functions.php:
|
511 |
msgid "Plugin"
|
512 |
msgstr "Extension"
|
513 |
|
514 |
-
#: bws_functions.php:
|
515 |
msgid "Shortcode settings"
|
516 |
msgstr "Paramètres du code court"
|
517 |
|
518 |
-
#: bws_functions.php:
|
519 |
msgid "The shortcode will be inserted"
|
520 |
msgstr "Le code court sera inséré"
|
521 |
|
522 |
-
#: bws_functions.php:
|
523 |
msgid "Insert"
|
524 |
msgstr "Insérer"
|
525 |
|
526 |
-
#: bws_functions.php:
|
527 |
msgid "Visit Help Center"
|
528 |
msgstr "Visiter le site du support"
|
529 |
|
530 |
-
#: bws_functions.php:
|
531 |
msgid "FAQ"
|
532 |
msgstr "FAQ"
|
533 |
|
534 |
-
#: bws_functions.php:
|
535 |
msgid "For more information:"
|
536 |
msgstr "Pour plus d'informations :"
|
537 |
|
538 |
-
#: bws_functions.php:
|
539 |
msgid "Documentation"
|
540 |
msgstr "Documentation"
|
541 |
|
542 |
-
#: bws_functions.php:
|
543 |
msgid "Video Instructions"
|
544 |
msgstr "Vidéo explicative"
|
545 |
|
546 |
-
#: bws_functions.php:
|
547 |
msgid "Submit a Request"
|
548 |
msgstr "Soumettre une requête"
|
549 |
|
550 |
-
#: bws_functions.php:
|
551 |
msgid "You do not have sufficient permissions to edit plugins for this site."
|
552 |
msgstr ""
|
553 |
"Vous n'avez pas assez de droits pour modifier l'extension pour ce site."
|
554 |
|
555 |
-
#: bws_functions.php:
|
556 |
#, php-format
|
557 |
msgid "File %s edited successfully."
|
558 |
msgstr "Le fichier %s a été modifié avec succès."
|
559 |
|
560 |
-
#: bws_functions.php:
|
561 |
msgid "Not enough permissions to create or update the file"
|
562 |
msgstr "Pas assez de droits pour créer ou modifier le fichier"
|
563 |
|
564 |
-
#: bws_functions.php:
|
565 |
msgid "Not enough permissions to create the file"
|
566 |
msgstr "Pas assez de droits pour créer le fichier"
|
567 |
|
568 |
-
#: bws_functions.php:
|
569 |
msgid "These styles will be added to the header on all pages of your site."
|
570 |
msgstr ""
|
571 |
"Ces styles seront ajoutés aux entêtes sur tous les pages de votre site."
|
572 |
|
573 |
-
#: bws_functions.php:
|
574 |
-
#, php-format
|
575 |
msgid ""
|
576 |
-
"
|
577 |
"end only."
|
578 |
msgstr ""
|
579 |
"Ce code PHP sera rattaché à l'action %s et sera affiché uniquement sur la "
|
580 |
"partie publique."
|
581 |
|
582 |
-
#: bws_functions.php:
|
583 |
msgid "Editing"
|
584 |
msgstr "Modifier"
|
585 |
|
586 |
-
#: bws_functions.php:
|
587 |
msgid "Browsing"
|
588 |
msgstr "Parcourir"
|
589 |
|
590 |
-
#: bws_functions.php:
|
591 |
#, php-format
|
592 |
msgid "Learn more about %s"
|
593 |
msgstr "En savoir plus sur %s"
|
594 |
|
595 |
-
#: bws_functions.php:
|
596 |
#, php-format
|
597 |
msgid ""
|
598 |
"You need to make this files writable before you can save your changes. See "
|
@@ -752,7 +752,7 @@ msgstr "Merci de nous avoir contacté."
|
|
752 |
msgid "Sorry, email message could not be delivered."
|
753 |
msgstr "Désolé, votre e-mail n'a pas pu être envoyé."
|
754 |
|
755 |
-
#: bws_menu.php:286 bws_menu.php:
|
756 |
msgid "System status"
|
757 |
msgstr "Etat du système"
|
758 |
|
@@ -768,28 +768,25 @@ msgstr "Gérer les licences et les adhésions"
|
|
768 |
msgid "Client Area"
|
769 |
msgstr "Espace client"
|
770 |
|
771 |
-
#: bws_menu.php:
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
#: bws_menu.php:311
|
776 |
-
msgid "Activate Membership"
|
777 |
-
msgstr "Activer l'adhésion"
|
778 |
-
|
779 |
-
#: bws_menu.php:320
|
780 |
-
msgid "Don’t have valid license key yet?"
|
781 |
-
msgstr "Vous n'avez pas encore de licence valide ?"
|
782 |
|
783 |
-
#: bws_menu.php:
|
784 |
#, fuzzy
|
785 |
-
msgid "Subscribe to Pro Membership
|
786 |
msgstr "Souscrire une adhésion PRO"
|
787 |
|
788 |
-
#: bws_menu.php:
|
|
|
|
|
|
|
|
|
789 |
msgid "Upload Plugin"
|
790 |
msgstr "Charger l'extension"
|
791 |
|
792 |
-
#: bws_menu.php:
|
793 |
#, php-format
|
794 |
msgid ""
|
795 |
"The plugin generated %d characters of <strong>unexpected output</strong> "
|
@@ -802,7 +799,7 @@ msgstr ""
|
|
802 |
"sent”, des problèmes avec les flux de syndication ou autres, essayez "
|
803 |
"de désactiver l'extension ou supprimer l'extension."
|
804 |
|
805 |
-
#: bws_menu.php:
|
806 |
msgid ""
|
807 |
"Plugin could not be activated because it triggered a <strong>fatal error</"
|
808 |
"strong>."
|
@@ -810,126 +807,126 @@ msgstr ""
|
|
810 |
"L'extension ne peut pas être activée car une <strong>erreur fatale</strong> "
|
811 |
"a été détectée."
|
812 |
|
813 |
-
#: bws_menu.php:
|
814 |
msgid "Plugin <strong>activated</strong>."
|
815 |
msgstr "Extension <strong>activée</strong>."
|
816 |
|
817 |
-
#: bws_menu.php:
|
818 |
msgid "Installing Plugin"
|
819 |
msgstr "Extensions installées"
|
820 |
|
821 |
-
#: bws_menu.php:
|
822 |
msgid "Downloading install package from"
|
823 |
msgstr "Télécharger le paquet d'installation depuis"
|
824 |
|
825 |
-
#: bws_menu.php:
|
826 |
msgid "Unpacking the package"
|
827 |
msgstr "Décompresser le paquet"
|
828 |
|
829 |
-
#: bws_menu.php:
|
830 |
msgid "Installing the plugin"
|
831 |
msgstr "Installer l'extension"
|
832 |
|
833 |
-
#: bws_menu.php:
|
834 |
msgid "Successfully installed the plugin"
|
835 |
msgstr "Extension installée avec succès"
|
836 |
|
837 |
-
#: bws_menu.php:
|
838 |
msgid "Activate Plugin"
|
839 |
msgstr "Activer l'extension"
|
840 |
|
841 |
-
#: bws_menu.php:
|
842 |
msgid "Return to BestWebSoft Panel"
|
843 |
msgstr "Retourner à l'administration BestWebSoft"
|
844 |
|
845 |
-
#: bws_menu.php:
|
846 |
msgid "All"
|
847 |
msgstr "Tous"
|
848 |
|
849 |
-
#: bws_menu.php:
|
850 |
msgid "Installed"
|
851 |
msgstr "Installé"
|
852 |
|
853 |
-
#: bws_menu.php:
|
854 |
msgid "Not Installed"
|
855 |
msgstr "Non installé"
|
856 |
|
857 |
-
#: bws_menu.php:
|
858 |
msgid "Filter results"
|
859 |
msgstr "Filtrer les résultats"
|
860 |
|
861 |
-
#: bws_menu.php:
|
862 |
msgid "Category"
|
863 |
msgstr "Catégorie"
|
864 |
|
865 |
-
#: bws_menu.php:
|
866 |
#, fuzzy
|
867 |
msgid "Not installed"
|
868 |
msgstr "Non installé"
|
869 |
|
870 |
-
#: bws_menu.php:
|
871 |
msgid "Renew to get updates"
|
872 |
msgstr "Se réabonner pour avoir les mises à jour"
|
873 |
|
874 |
-
#: bws_menu.php:
|
875 |
#, php-format
|
876 |
msgid "Update to v %s"
|
877 |
msgstr "Mettre à jour avec la version %s"
|
878 |
|
879 |
-
#: bws_menu.php:
|
880 |
msgid "Install Now"
|
881 |
msgstr "Installer maintenant"
|
882 |
|
883 |
-
#: bws_menu.php:
|
884 |
msgid "Upgrade to Pro"
|
885 |
msgstr "Passer à la version PRO"
|
886 |
|
887 |
-
#: bws_menu.php:
|
888 |
msgid "Donate"
|
889 |
msgstr "Don"
|
890 |
|
891 |
-
#: bws_menu.php:
|
892 |
msgid "Activate this plugin"
|
893 |
msgstr "Activer cette extension"
|
894 |
|
895 |
-
#: bws_menu.php:
|
896 |
msgid "Install this plugin"
|
897 |
msgstr "Installer cette extension"
|
898 |
|
899 |
-
#: bws_menu.php:
|
900 |
msgid "Nothing found. Try another criteria."
|
901 |
msgstr "Pas de réponse. essayer d'autres critères."
|
902 |
|
903 |
-
#: bws_menu.php:
|
904 |
#, php-format
|
905 |
msgid "By %s"
|
906 |
msgstr "Par %s"
|
907 |
|
908 |
-
#: bws_menu.php:
|
909 |
msgid "Already Installed"
|
910 |
msgstr "Déjà installé"
|
911 |
|
912 |
-
#: bws_menu.php:
|
913 |
msgid "Browse Free WordPress Themes"
|
914 |
msgstr "Parcourir les thèmes gratuits pour WordPress"
|
915 |
|
916 |
-
#: bws_menu.php:
|
917 |
msgid "Send to support"
|
918 |
msgstr "Envoyé au support"
|
919 |
|
920 |
-
#: bws_menu.php:
|
921 |
msgid "Send to custom email »"
|
922 |
msgstr "Envoyer un e-mail spécifique »"
|
923 |
|
924 |
-
#: bws_menu.php:
|
925 |
msgid "Environment"
|
926 |
msgstr "Environnent"
|
927 |
|
928 |
-
#: bws_menu.php:
|
929 |
msgid "Active Plugins"
|
930 |
msgstr "Extensions actives"
|
931 |
|
932 |
-
#: bws_menu.php:
|
933 |
msgid "Inactive Plugins"
|
934 |
msgstr "Extensions inactives"
|
935 |
|
@@ -969,8 +966,11 @@ msgstr "Utilitaires"
|
|
969 |
msgid "Other"
|
970 |
msgstr "Autre"
|
971 |
|
972 |
-
#~ msgid "
|
973 |
-
#~ msgstr "
|
|
|
|
|
|
|
974 |
|
975 |
#~ msgid ""
|
976 |
#~ "Join BestWebSoft Pro Membership today, cancel any time and use all "
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bestwebsoft\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2016-08-04 15:44+0300\n"
|
6 |
+
"PO-Revision-Date: 2016-08-04 15:44+0300\n"
|
7 |
"Last-Translator: Luc Capronnier <lcapronnier@yahoo.com>\n"
|
8 |
"Language-Team: Luc Capronnier <lcapronnier@yahoo.com>\n"
|
9 |
"Language: fr_FR\n"
|
17 |
"X-Generator: Poedit 1.5.4\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
+
#: bws_functions.php:38 bws_menu.php:282 bws_menu.php:330
|
21 |
msgid "Plugins"
|
22 |
msgstr "Extensions"
|
23 |
|
24 |
+
#: bws_functions.php:39 bws_menu.php:283 bws_menu.php:581
|
25 |
msgid "Themes"
|
26 |
msgstr "Thèmes"
|
27 |
|
65 |
msgid "Let's get started"
|
66 |
msgstr "Démarrer"
|
67 |
|
68 |
+
#: bws_functions.php:120 bws_functions.php:153 bws_menu.php:527
|
69 |
+
#: bws_menu.php:529
|
70 |
msgid "Settings"
|
71 |
msgstr "Réglages"
|
72 |
|
73 |
+
#: bws_functions.php:122 bws_functions.php:479 bws_menu.php:298
|
74 |
msgid "or"
|
75 |
msgstr "ou"
|
76 |
|
79 |
msgstr "Ajouter"
|
80 |
|
81 |
#: bws_functions.php:127 bws_functions.php:137 bws_functions.php:213
|
82 |
+
#: bws_functions.php:727 bws_functions.php:831
|
83 |
msgid "Close notice"
|
84 |
msgstr "Effacer l'avertissement"
|
85 |
|
113 |
"Étend les fonctionnalités classiques de l'extension avec des nouvelles "
|
114 |
"options."
|
115 |
|
116 |
+
#: bws_functions.php:222 bws_functions.php:666 bws_menu.php:597
|
117 |
msgid "Learn More"
|
118 |
msgstr "En savoir plus"
|
119 |
|
189 |
"peut-être installée qu'une seule fois."
|
190 |
|
191 |
#: bws_functions.php:349 bws_functions.php:371 bws_functions.php:393
|
192 |
+
#: bws_menu.php:370 bws_menu.php:401 bws_menu.php:412
|
193 |
msgid "Failed to download the zip archive. Please, upload the plugin manually"
|
194 |
msgstr ""
|
195 |
"Erreur de téléchargement de l'archive ZIP. Merci de télécharger l'extension "
|
196 |
"manuellement."
|
197 |
|
198 |
+
#: bws_functions.php:361 bws_menu.php:387
|
199 |
msgid "Failed to open the zip archive. Please, upload the plugin manually"
|
200 |
msgstr ""
|
201 |
"Erreur d'ouverture de l'archive zip. Merci de télécharger l'extension "
|
202 |
"manuellement."
|
203 |
|
204 |
+
#: bws_functions.php:367 bws_menu.php:394
|
205 |
msgid ""
|
206 |
"Your server does not support either ZipArchive or Phar. Please, upload the "
|
207 |
"plugin manually"
|
209 |
"Votre serveur n'a pas le support du format des archives ZIP ou Phar. Merci "
|
210 |
"de télécharger l'extension manuellement."
|
211 |
|
212 |
+
#: bws_functions.php:374 bws_menu.php:404
|
213 |
msgid "UploadDir is not writable. Please, upload the plugin manually"
|
214 |
msgstr ""
|
215 |
"Erreur d'ouverture de l'archive zip. Merci de télécharger l'extension "
|
275 |
msgstr "Débuter votre licence d'évaluation gratuite de %s jours"
|
276 |
|
277 |
#: bws_functions.php:485 bws_functions.php:494 bws_functions.php:524
|
278 |
+
#: bws_functions.php:532 bws_functions.php:1401 bws_menu.php:315
|
279 |
+
#: bws_menu.php:533 bws_menu.php:542
|
280 |
msgid "Activate"
|
281 |
msgstr "Activé"
|
282 |
|
372 |
"l'achat de l'extension). Si nécessaire, utilisez la fonction de demande de "
|
373 |
"mot de passe perdu."
|
374 |
|
375 |
+
#: bws_functions.php:651 bws_menu.php:306 bws_menu.php:317
|
376 |
msgid "Check license key"
|
377 |
msgstr "Vérifier la clé de licence"
|
378 |
|
379 |
+
#: bws_functions.php:666
|
380 |
msgid "WARNING: Illegal use notification"
|
381 |
msgstr "AVERTISSEMENT : Notification d'utilisation abusive"
|
382 |
|
383 |
+
#: bws_functions.php:666
|
384 |
msgid ""
|
385 |
"You can use one license of the Pro plugin for one domain only. Please check "
|
386 |
"and edit your license or domain if necessary using you personal Client Area. "
|
393 |
"de résoudre ce problème dans les 24 heures, sinon l'extension sera rendue "
|
394 |
"inactive."
|
395 |
|
396 |
+
#: bws_functions.php:675
|
397 |
msgid ""
|
398 |
"Notice: Your Pro Trial license has expired. To continue using the plugin you "
|
399 |
"should buy a Pro license"
|
401 |
"Votre licence d'évaluation est terminée. Pour continuer à disposer du "
|
402 |
"support rapide et des mises à jour de l'extension vous devez la renouveler."
|
403 |
|
404 |
+
#: bws_functions.php:677
|
405 |
msgid ""
|
406 |
"Your license has expired. To continue getting top-priority support and "
|
407 |
"plugin updates you should extend it."
|
409 |
"Votre licence est terminée. Pour continuer à disposer du support rapide et "
|
410 |
"des mises à jour de l'extension vous devez la renouveller."
|
411 |
|
412 |
+
#: bws_functions.php:677 bws_functions.php:731 bws_functions.php:1356
|
413 |
msgid "Learn more"
|
414 |
msgstr "En savoir plus"
|
415 |
|
416 |
+
#: bws_functions.php:688
|
417 |
#, php-format
|
418 |
msgid "Notice: You are using the Pro Trial license of %s plugin."
|
419 |
msgstr ""
|
420 |
"Avertissement : vous utilisez la version d'évaluation de l'extension %s."
|
421 |
|
422 |
+
#: bws_functions.php:690
|
423 |
msgid "Notice: You are using the Pro Trial license of plugin."
|
424 |
msgstr "Avertissement : vous utilisez la version d'évaluation de l'extension."
|
425 |
|
426 |
+
#: bws_functions.php:693
|
427 |
msgid "The Pro Trial license will expire on"
|
428 |
msgstr "La licence PRO d'évaluation expirera le"
|
429 |
|
430 |
+
#: bws_functions.php:731
|
431 |
msgid "You license for"
|
432 |
msgstr "Votre licence pour"
|
433 |
|
434 |
+
#: bws_functions.php:731
|
435 |
msgid "expires on"
|
436 |
msgstr "se termine le"
|
437 |
|
438 |
+
#: bws_functions.php:731
|
439 |
msgid "and you won't be granted TOP-PRIORITY SUPPORT or UPDATES."
|
440 |
msgstr "et vous ne disposerez plus du support rapide et des mises à jour."
|
441 |
|
442 |
+
#: bws_functions.php:826
|
443 |
msgid "Thank you for choosing"
|
444 |
msgstr "Merci d'avoir choisi"
|
445 |
|
446 |
+
#: bws_functions.php:827
|
447 |
msgid ""
|
448 |
"If you have a feature, suggestion or idea you'd like to see in the plugin, "
|
449 |
"we'd love to hear about it!"
|
451 |
"Si vous avez une fonctionnalité, une suggestion ou une idée que vous "
|
452 |
"souhaitez pour cette extension, nous serons ravis d'en parler avec vous !"
|
453 |
|
454 |
+
#: bws_functions.php:828
|
455 |
msgid "Suggest a Feature"
|
456 |
msgstr "Proposer une fonctionnalité"
|
457 |
|
458 |
+
#: bws_functions.php:844
|
459 |
msgid "Notice"
|
460 |
msgstr "Avertissement"
|
461 |
|
462 |
+
#: bws_functions.php:844
|
463 |
msgid "The plugin's settings have been changed."
|
464 |
msgstr "Les paramètres de l'extension ont été modifiés."
|
465 |
|
466 |
+
#: bws_functions.php:845 bws_functions.php:1412
|
467 |
msgid "Save Changes"
|
468 |
msgstr "Sauvegarder les modifications"
|
469 |
|
470 |
+
#: bws_functions.php:859
|
471 |
msgid ""
|
472 |
"You can always look at premium options by clicking on the \"Show Pro features"
|
473 |
"\" in the \"Go PRO\" tab"
|
475 |
"Vous pouvez toujours consulter les options premium en cliquant sur le lien "
|
476 |
"\"Voir les fonctionnalités de la version PRO\" dans l'onglet Passer PRO"
|
477 |
|
478 |
+
#: bws_functions.php:988
|
479 |
msgid "Add shortcode"
|
480 |
msgstr "Ajouter le code court"
|
481 |
|
482 |
+
#: bws_functions.php:988
|
483 |
msgid "Add BestWebSoft plugins' shortcodes using this button."
|
484 |
msgstr "Ajouter le code court des extensions BestWebSoft avec ce bouton."
|
485 |
|
486 |
+
#: bws_functions.php:1037
|
487 |
msgid "Close"
|
488 |
msgstr "Fermer"
|
489 |
|
490 |
+
#: bws_functions.php:1129
|
491 |
msgid "Restore all plugin settings to defaults"
|
492 |
msgstr "Remettre les valeurs par défaut des paramètres de l'extension"
|
493 |
|
494 |
+
#: bws_functions.php:1131
|
495 |
msgid "Restore settings"
|
496 |
msgstr "Remettre les paramètres"
|
497 |
|
498 |
+
#: bws_functions.php:1142
|
499 |
msgid "Are you sure you want to restore all settings by default?"
|
500 |
msgstr "Êtes vous sûr de vouloir remettre toutes les valeurs par défaut ?"
|
501 |
|
502 |
+
#: bws_functions.php:1145
|
503 |
msgid "Yes, restore all settings"
|
504 |
msgstr "Oui, remettre les valeurs par défaut"
|
505 |
|
506 |
+
#: bws_functions.php:1146
|
507 |
msgid "No, go back to the settings page"
|
508 |
msgstr "Non, retourner à la page des paramètres"
|
509 |
|
510 |
+
#: bws_functions.php:1192
|
511 |
msgid "Plugin"
|
512 |
msgstr "Extension"
|
513 |
|
514 |
+
#: bws_functions.php:1201
|
515 |
msgid "Shortcode settings"
|
516 |
msgstr "Paramètres du code court"
|
517 |
|
518 |
+
#: bws_functions.php:1206
|
519 |
msgid "The shortcode will be inserted"
|
520 |
msgstr "Le code court sera inséré"
|
521 |
|
522 |
+
#: bws_functions.php:1211
|
523 |
msgid "Insert"
|
524 |
msgstr "Insérer"
|
525 |
|
526 |
+
#: bws_functions.php:1244
|
527 |
msgid "Visit Help Center"
|
528 |
msgstr "Visiter le site du support"
|
529 |
|
530 |
+
#: bws_functions.php:1249
|
531 |
msgid "FAQ"
|
532 |
msgstr "FAQ"
|
533 |
|
534 |
+
#: bws_functions.php:1255
|
535 |
msgid "For more information:"
|
536 |
msgstr "Pour plus d'informations :"
|
537 |
|
538 |
+
#: bws_functions.php:1256
|
539 |
msgid "Documentation"
|
540 |
msgstr "Documentation"
|
541 |
|
542 |
+
#: bws_functions.php:1257
|
543 |
msgid "Video Instructions"
|
544 |
msgstr "Vidéo explicative"
|
545 |
|
546 |
+
#: bws_functions.php:1258
|
547 |
msgid "Submit a Request"
|
548 |
msgstr "Soumettre une requête"
|
549 |
|
550 |
+
#: bws_functions.php:1269
|
551 |
msgid "You do not have sufficient permissions to edit plugins for this site."
|
552 |
msgstr ""
|
553 |
"Vous n'avez pas assez de droits pour modifier l'extension pour ce site."
|
554 |
|
555 |
+
#: bws_functions.php:1320 bws_functions.php:1347
|
556 |
#, php-format
|
557 |
msgid "File %s edited successfully."
|
558 |
msgstr "Le fichier %s a été modifié avec succès."
|
559 |
|
560 |
+
#: bws_functions.php:1322 bws_functions.php:1349
|
561 |
msgid "Not enough permissions to create or update the file"
|
562 |
msgstr "Pas assez de droits pour créer ou modifier le fichier"
|
563 |
|
564 |
+
#: bws_functions.php:1352
|
565 |
msgid "Not enough permissions to create the file"
|
566 |
msgstr "Pas assez de droits pour créer le fichier"
|
567 |
|
568 |
+
#: bws_functions.php:1390
|
569 |
msgid "These styles will be added to the header on all pages of your site."
|
570 |
msgstr ""
|
571 |
"Ces styles seront ajoutés aux entêtes sur tous les pages de votre site."
|
572 |
|
573 |
+
#: bws_functions.php:1392
|
574 |
+
#, fuzzy, php-format
|
575 |
msgid ""
|
576 |
+
"This PHP code will be hooked to the %s action and will be printed on front "
|
577 |
"end only."
|
578 |
msgstr ""
|
579 |
"Ce code PHP sera rattaché à l'action %s et sera affiché uniquement sur la "
|
580 |
"partie publique."
|
581 |
|
582 |
+
#: bws_functions.php:1396
|
583 |
msgid "Editing"
|
584 |
msgstr "Modifier"
|
585 |
|
586 |
+
#: bws_functions.php:1398
|
587 |
msgid "Browsing"
|
588 |
msgstr "Parcourir"
|
589 |
|
590 |
+
#: bws_functions.php:1405
|
591 |
#, php-format
|
592 |
msgid "Learn more about %s"
|
593 |
msgstr "En savoir plus sur %s"
|
594 |
|
595 |
+
#: bws_functions.php:1416
|
596 |
#, php-format
|
597 |
msgid ""
|
598 |
"You need to make this files writable before you can save your changes. See "
|
752 |
msgid "Sorry, email message could not be delivered."
|
753 |
msgstr "Désolé, votre e-mail n'a pas pu être envoyé."
|
754 |
|
755 |
+
#: bws_menu.php:286 bws_menu.php:632
|
756 |
msgid "System status"
|
757 |
msgstr "Etat du système"
|
758 |
|
768 |
msgid "Client Area"
|
769 |
msgstr "Espace client"
|
770 |
|
771 |
+
#: bws_menu.php:296
|
772 |
+
#, php-format
|
773 |
+
msgid "Get Access to %s+ Premium Plugins"
|
774 |
+
msgstr "Accéder à plus de %s extension premiums"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
775 |
|
776 |
+
#: bws_menu.php:298
|
777 |
#, fuzzy
|
778 |
+
msgid "Subscribe to Pro Membership"
|
779 |
msgstr "Souscrire une adhésion PRO"
|
780 |
|
781 |
+
#: bws_menu.php:309
|
782 |
+
msgid "Enter your license key"
|
783 |
+
msgstr "Merci de saisir votre clé de licence"
|
784 |
+
|
785 |
+
#: bws_menu.php:331
|
786 |
msgid "Upload Plugin"
|
787 |
msgstr "Charger l'extension"
|
788 |
|
789 |
+
#: bws_menu.php:335
|
790 |
#, php-format
|
791 |
msgid ""
|
792 |
"The plugin generated %d characters of <strong>unexpected output</strong> "
|
799 |
"sent”, des problèmes avec les flux de syndication ou autres, essayez "
|
800 |
"de désactiver l'extension ou supprimer l'extension."
|
801 |
|
802 |
+
#: bws_menu.php:337
|
803 |
msgid ""
|
804 |
"Plugin could not be activated because it triggered a <strong>fatal error</"
|
805 |
"strong>."
|
807 |
"L'extension ne peut pas être activée car une <strong>erreur fatale</strong> "
|
808 |
"a été détectée."
|
809 |
|
810 |
+
#: bws_menu.php:340
|
811 |
msgid "Plugin <strong>activated</strong>."
|
812 |
msgstr "Extension <strong>activée</strong>."
|
813 |
|
814 |
+
#: bws_menu.php:347
|
815 |
msgid "Installing Plugin"
|
816 |
msgstr "Extensions installées"
|
817 |
|
818 |
+
#: bws_menu.php:353
|
819 |
msgid "Downloading install package from"
|
820 |
msgstr "Télécharger le paquet d'installation depuis"
|
821 |
|
822 |
+
#: bws_menu.php:378
|
823 |
msgid "Unpacking the package"
|
824 |
msgstr "Décompresser le paquet"
|
825 |
|
826 |
+
#: bws_menu.php:383 bws_menu.php:391
|
827 |
msgid "Installing the plugin"
|
828 |
msgstr "Installer l'extension"
|
829 |
|
830 |
+
#: bws_menu.php:397
|
831 |
msgid "Successfully installed the plugin"
|
832 |
msgstr "Extension installée avec succès"
|
833 |
|
834 |
+
#: bws_menu.php:409
|
835 |
msgid "Activate Plugin"
|
836 |
msgstr "Activer l'extension"
|
837 |
|
838 |
+
#: bws_menu.php:409 bws_menu.php:415
|
839 |
msgid "Return to BestWebSoft Panel"
|
840 |
msgstr "Retourner à l'administration BestWebSoft"
|
841 |
|
842 |
+
#: bws_menu.php:419 bws_menu.php:434 bws_menu.php:563
|
843 |
msgid "All"
|
844 |
msgstr "Tous"
|
845 |
|
846 |
+
#: bws_menu.php:420 bws_menu.php:620
|
847 |
msgid "Installed"
|
848 |
msgstr "Installé"
|
849 |
|
850 |
+
#: bws_menu.php:421
|
851 |
msgid "Not Installed"
|
852 |
msgstr "Non installé"
|
853 |
|
854 |
+
#: bws_menu.php:427
|
855 |
msgid "Filter results"
|
856 |
msgstr "Filtrer les résultats"
|
857 |
|
858 |
+
#: bws_menu.php:430 bws_menu.php:559
|
859 |
msgid "Category"
|
860 |
msgstr "Catégorie"
|
861 |
|
862 |
+
#: bws_menu.php:494
|
863 |
#, fuzzy
|
864 |
msgid "Not installed"
|
865 |
msgstr "Non installé"
|
866 |
|
867 |
+
#: bws_menu.php:498
|
868 |
msgid "Renew to get updates"
|
869 |
msgstr "Se réabonner pour avoir les mises à jour"
|
870 |
|
871 |
+
#: bws_menu.php:501
|
872 |
#, php-format
|
873 |
msgid "Update to v %s"
|
874 |
msgstr "Mettre à jour avec la version %s"
|
875 |
|
876 |
+
#: bws_menu.php:513 bws_menu.php:536 bws_menu.php:545
|
877 |
msgid "Install Now"
|
878 |
msgstr "Installer maintenant"
|
879 |
|
880 |
+
#: bws_menu.php:519
|
881 |
msgid "Upgrade to Pro"
|
882 |
msgstr "Passer à la version PRO"
|
883 |
|
884 |
+
#: bws_menu.php:523
|
885 |
msgid "Donate"
|
886 |
msgstr "Don"
|
887 |
|
888 |
+
#: bws_menu.php:533 bws_menu.php:542
|
889 |
msgid "Activate this plugin"
|
890 |
msgstr "Activer cette extension"
|
891 |
|
892 |
+
#: bws_menu.php:545
|
893 |
msgid "Install this plugin"
|
894 |
msgstr "Installer cette extension"
|
895 |
|
896 |
+
#: bws_menu.php:554
|
897 |
msgid "Nothing found. Try another criteria."
|
898 |
msgstr "Pas de réponse. essayer d'autres critères."
|
899 |
|
900 |
+
#: bws_menu.php:591 bws_menu.php:611
|
901 |
#, php-format
|
902 |
msgid "By %s"
|
903 |
msgstr "Par %s"
|
904 |
|
905 |
+
#: bws_menu.php:618
|
906 |
msgid "Already Installed"
|
907 |
msgstr "Déjà installé"
|
908 |
|
909 |
+
#: bws_menu.php:629
|
910 |
msgid "Browse Free WordPress Themes"
|
911 |
msgstr "Parcourir les thèmes gratuits pour WordPress"
|
912 |
|
913 |
+
#: bws_menu.php:638
|
914 |
msgid "Send to support"
|
915 |
msgstr "Envoyé au support"
|
916 |
|
917 |
+
#: bws_menu.php:645
|
918 |
msgid "Send to custom email »"
|
919 |
msgstr "Envoyer un e-mail spécifique »"
|
920 |
|
921 |
+
#: bws_menu.php:652
|
922 |
msgid "Environment"
|
923 |
msgstr "Environnent"
|
924 |
|
925 |
+
#: bws_menu.php:663
|
926 |
msgid "Active Plugins"
|
927 |
msgstr "Extensions actives"
|
928 |
|
929 |
+
#: bws_menu.php:676
|
930 |
msgid "Inactive Plugins"
|
931 |
msgstr "Extensions inactives"
|
932 |
|
966 |
msgid "Other"
|
967 |
msgstr "Autre"
|
968 |
|
969 |
+
#~ msgid "Activate Membership"
|
970 |
+
#~ msgstr "Activer l'adhésion"
|
971 |
+
|
972 |
+
#~ msgid "Don’t have valid license key yet?"
|
973 |
+
#~ msgstr "Vous n'avez pas encore de licence valide ?"
|
974 |
|
975 |
#~ msgid ""
|
976 |
#~ "Join BestWebSoft Pro Membership today, cancel any time and use all "
|
bws_menu/languages/bestwebsoft-pl_PL.mo
CHANGED
Binary file
|
bws_menu/languages/bestwebsoft-pl_PL.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bestwebsoft\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2016-
|
6 |
-
"PO-Revision-Date: 2016-
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: Damian Dąbrowski <contact@codester.pl>\n"
|
9 |
"Language: pl_PL\n"
|
@@ -18,11 +18,11 @@ msgstr ""
|
|
18 |
"|| n%100>=20) ? 1 : 2);\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
-
#: bws_functions.php:38 bws_menu.php:282 bws_menu.php:
|
22 |
msgid "Plugins"
|
23 |
msgstr "Wtyczki"
|
24 |
|
25 |
-
#: bws_functions.php:39 bws_menu.php:283 bws_menu.php:
|
26 |
msgid "Themes"
|
27 |
msgstr "Motywy"
|
28 |
|
@@ -67,12 +67,12 @@ msgstr "Dziękujemy za instalację"
|
|
67 |
msgid "Let's get started"
|
68 |
msgstr "Zaczynajmny"
|
69 |
|
70 |
-
#: bws_functions.php:120 bws_functions.php:153 bws_menu.php:
|
71 |
-
#: bws_menu.php:
|
72 |
msgid "Settings"
|
73 |
msgstr "Ustawienia"
|
74 |
|
75 |
-
#: bws_functions.php:122 bws_functions.php:479
|
76 |
msgid "or"
|
77 |
msgstr "lub"
|
78 |
|
@@ -81,7 +81,7 @@ msgid "Add New"
|
|
81 |
msgstr "Dodaj nowy"
|
82 |
|
83 |
#: bws_functions.php:127 bws_functions.php:137 bws_functions.php:213
|
84 |
-
#: bws_functions.php:
|
85 |
msgid "Close notice"
|
86 |
msgstr "Zamknij powiadomienie"
|
87 |
|
@@ -116,7 +116,7 @@ msgstr "wersji!"
|
|
116 |
msgid "Extend standard plugin functionality with new great options."
|
117 |
msgstr "Rozszerz podstawowe funkcje wtyczki o nowe wspaniałe opcje."
|
118 |
|
119 |
-
#: bws_functions.php:222 bws_functions.php:
|
120 |
msgid "Learn More"
|
121 |
msgstr "Dowiedz się więcej"
|
122 |
|
@@ -188,26 +188,26 @@ msgstr ""
|
|
188 |
"może być wykorzystana tylko raz."
|
189 |
|
190 |
#: bws_functions.php:349 bws_functions.php:371 bws_functions.php:393
|
191 |
-
#: bws_menu.php:
|
192 |
msgid "Failed to download the zip archive. Please, upload the plugin manually"
|
193 |
msgstr ""
|
194 |
"Pobieranie archiwum zip zakończyło się niepowodzeniem. Proszę dodać wtyczkę "
|
195 |
"manualnie"
|
196 |
|
197 |
-
#: bws_functions.php:361 bws_menu.php:
|
198 |
msgid "Failed to open the zip archive. Please, upload the plugin manually"
|
199 |
msgstr ""
|
200 |
"Otwieranie archiwum zip zakończyło się niepowodzeniem. Proszę dodać wtyczkę "
|
201 |
"manualnie"
|
202 |
|
203 |
-
#: bws_functions.php:367 bws_menu.php:
|
204 |
msgid ""
|
205 |
"Your server does not support either ZipArchive or Phar. Please, upload the "
|
206 |
"plugin manually"
|
207 |
msgstr ""
|
208 |
"Twój serwer nie wspiera ZipAcrchive lub Phar. Proszę dodać wtyczkę manualnie"
|
209 |
|
210 |
-
#: bws_functions.php:374 bws_menu.php:
|
211 |
msgid "UploadDir is not writable. Please, upload the plugin manually"
|
212 |
msgstr ""
|
213 |
"Folder uploadu jest chroniony przez zapisem. Proszę dodać wtyczkę manualnie"
|
@@ -271,8 +271,8 @@ msgid "Start Your Free %s-Day Trial Now"
|
|
271 |
msgstr "Rozpocznij swój darmowy %s-dniowy okres testowy"
|
272 |
|
273 |
#: bws_functions.php:485 bws_functions.php:494 bws_functions.php:524
|
274 |
-
#: bws_functions.php:532 bws_functions.php:
|
275 |
-
#: bws_menu.php:
|
276 |
msgid "Activate"
|
277 |
msgstr "Aktywuj"
|
278 |
|
@@ -360,15 +360,15 @@ msgstr ""
|
|
360 |
"(login to adres email podany przy zakupie). Jeśli to koniczne użyj opcji "
|
361 |
"\"Zgubiłeś swoje hasło?\"."
|
362 |
|
363 |
-
#: bws_functions.php:651 bws_menu.php:
|
364 |
msgid "Check license key"
|
365 |
msgstr "Sprawdź klucz licencji"
|
366 |
|
367 |
-
#: bws_functions.php:
|
368 |
msgid "WARNING: Illegal use notification"
|
369 |
msgstr "UWAGA: Odnotowano nielegalne użycie"
|
370 |
|
371 |
-
#: bws_functions.php:
|
372 |
msgid ""
|
373 |
"You can use one license of the Pro plugin for one domain only. Please check "
|
374 |
"and edit your license or domain if necessary using you personal Client Area. "
|
@@ -380,7 +380,7 @@ msgstr ""
|
|
380 |
"Panel Klienta. Zalecamy rozwiązanie tego problemu w przeciągu 24 godzin, w "
|
381 |
"przeciwnym wypadku wersja PRO zostanie zablokowana."
|
382 |
|
383 |
-
#: bws_functions.php:
|
384 |
msgid ""
|
385 |
"Notice: Your Pro Trial license has expired. To continue using the plugin you "
|
386 |
"should buy a Pro license"
|
@@ -388,7 +388,7 @@ msgstr ""
|
|
388 |
"Uwaga: Testowa wersja PRO niestety wygasła. Aby kontynuować korzystanie z "
|
389 |
"naszej wtyczki powinieneś zakupić klucz licencji."
|
390 |
|
391 |
-
#: bws_functions.php:
|
392 |
msgid ""
|
393 |
"Your license has expired. To continue getting top-priority support and "
|
394 |
"plugin updates you should extend it."
|
@@ -396,65 +396,65 @@ msgstr ""
|
|
396 |
"Twoja licencja wygasła. Aby podtrzymać szybki dostęp do pomocy i "
|
397 |
"aktualizacji powinieneś przedłużyć licencję."
|
398 |
|
399 |
-
#: bws_functions.php:
|
400 |
msgid "Learn more"
|
401 |
msgstr "Dowiedz się więcej"
|
402 |
|
403 |
-
#: bws_functions.php:
|
404 |
#, php-format
|
405 |
msgid "Notice: You are using the Pro Trial license of %s plugin."
|
406 |
msgstr "Uwaga: Wykorzystujesz próbną licencję wersji PRO dla %s."
|
407 |
|
408 |
-
#: bws_functions.php:
|
409 |
msgid "Notice: You are using the Pro Trial license of plugin."
|
410 |
msgstr "Uwaga: Wykorzystywana jest próbna licencja wtyczki."
|
411 |
|
412 |
-
#: bws_functions.php:
|
413 |
msgid "The Pro Trial license will expire on"
|
414 |
msgstr "Licencja próbna wygaśnie"
|
415 |
|
416 |
-
#: bws_functions.php:
|
417 |
msgid "You license for"
|
418 |
msgstr "Twoja licencja na"
|
419 |
|
420 |
-
#: bws_functions.php:
|
421 |
msgid "expires on"
|
422 |
msgstr "wygasa"
|
423 |
|
424 |
-
#: bws_functions.php:
|
425 |
msgid "and you won't be granted TOP-PRIORITY SUPPORT or UPDATES."
|
426 |
msgstr ""
|
427 |
"zostaniesz wówczas pozbawiony SZYBKIEGO DOSTĘDO DO SUPPORTU oraz "
|
428 |
"AKTUALIZACJI."
|
429 |
|
430 |
-
#: bws_functions.php:
|
431 |
#, fuzzy
|
432 |
msgid "Thank you for choosing"
|
433 |
msgstr "Dziękujemy za instalację"
|
434 |
|
435 |
-
#: bws_functions.php:
|
436 |
msgid ""
|
437 |
"If you have a feature, suggestion or idea you'd like to see in the plugin, "
|
438 |
"we'd love to hear about it!"
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: bws_functions.php:
|
442 |
msgid "Suggest a Feature"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: bws_functions.php:
|
446 |
msgid "Notice"
|
447 |
msgstr "Uwaga"
|
448 |
|
449 |
-
#: bws_functions.php:
|
450 |
msgid "The plugin's settings have been changed."
|
451 |
msgstr "Ustawienia wtyczki zostały zmienione."
|
452 |
|
453 |
-
#: bws_functions.php:
|
454 |
msgid "Save Changes"
|
455 |
msgstr "Zapisz zmiany"
|
456 |
|
457 |
-
#: bws_functions.php:
|
458 |
msgid ""
|
459 |
"You can always look at premium options by clicking on the \"Show Pro features"
|
460 |
"\" in the \"Go PRO\" tab"
|
@@ -462,124 +462,124 @@ msgstr ""
|
|
462 |
"Zawsze możesz sprawdzić funkcje premium poprzez kliknięcie \"Pokaż funkcje "
|
463 |
"PRO\" w zakładce \"Go PRO\""
|
464 |
|
465 |
-
#: bws_functions.php:
|
466 |
#, fuzzy
|
467 |
msgid "Add shortcode"
|
468 |
msgstr "Dodaj BWS Shortcode"
|
469 |
|
470 |
-
#: bws_functions.php:
|
471 |
msgid "Add BestWebSoft plugins' shortcodes using this button."
|
472 |
msgstr ""
|
473 |
|
474 |
-
#: bws_functions.php:
|
475 |
msgid "Close"
|
476 |
msgstr "Zamknij"
|
477 |
|
478 |
-
#: bws_functions.php:
|
479 |
msgid "Restore all plugin settings to defaults"
|
480 |
msgstr "Przywróć wszystkie ustawienia do wartości domyśłnych"
|
481 |
|
482 |
-
#: bws_functions.php:
|
483 |
msgid "Restore settings"
|
484 |
msgstr "Przywróć ustawienia"
|
485 |
|
486 |
-
#: bws_functions.php:
|
487 |
msgid "Are you sure you want to restore all settings by default?"
|
488 |
msgstr ""
|
489 |
"Czy jesteś pewien, że chcesz przywrócić wszystkie ustawienia do wartości "
|
490 |
"domyślnych?"
|
491 |
|
492 |
-
#: bws_functions.php:
|
493 |
msgid "Yes, restore all settings"
|
494 |
msgstr "Tak, przywróć wszystkie ustawienia"
|
495 |
|
496 |
-
#: bws_functions.php:
|
497 |
msgid "No, go back to the settings page"
|
498 |
msgstr "Nie, wróć do ustawień"
|
499 |
|
500 |
-
#: bws_functions.php:
|
501 |
msgid "Plugin"
|
502 |
msgstr "Wtyczka"
|
503 |
|
504 |
-
#: bws_functions.php:
|
505 |
msgid "Shortcode settings"
|
506 |
msgstr "Ustawienia shortcode"
|
507 |
|
508 |
-
#: bws_functions.php:
|
509 |
msgid "The shortcode will be inserted"
|
510 |
msgstr "Shortcode zostanie umieszczony"
|
511 |
|
512 |
-
#: bws_functions.php:
|
513 |
msgid "Insert"
|
514 |
msgstr "Umieść"
|
515 |
|
516 |
-
#: bws_functions.php:
|
517 |
msgid "Visit Help Center"
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: bws_functions.php:
|
521 |
msgid "FAQ"
|
522 |
msgstr "FAQ"
|
523 |
|
524 |
-
#: bws_functions.php:
|
525 |
msgid "For more information:"
|
526 |
msgstr ""
|
527 |
|
528 |
-
#: bws_functions.php:
|
529 |
msgid "Documentation"
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: bws_functions.php:
|
533 |
msgid "Video Instructions"
|
534 |
msgstr ""
|
535 |
|
536 |
-
#: bws_functions.php:
|
537 |
#, fuzzy
|
538 |
msgid "Submit a Request"
|
539 |
msgstr "送信ボタン"
|
540 |
|
541 |
-
#: bws_functions.php:
|
542 |
msgid "You do not have sufficient permissions to edit plugins for this site."
|
543 |
msgstr ""
|
544 |
|
545 |
-
#: bws_functions.php:
|
546 |
#, php-format
|
547 |
msgid "File %s edited successfully."
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: bws_functions.php:
|
551 |
msgid "Not enough permissions to create or update the file"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: bws_functions.php:
|
555 |
msgid "Not enough permissions to create the file"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: bws_functions.php:
|
559 |
msgid "These styles will be added to the header on all pages of your site."
|
560 |
msgstr ""
|
561 |
|
562 |
-
#: bws_functions.php:
|
563 |
#, php-format
|
564 |
msgid ""
|
565 |
-
"
|
566 |
"end only."
|
567 |
msgstr ""
|
568 |
|
569 |
-
#: bws_functions.php:
|
570 |
msgid "Editing"
|
571 |
msgstr ""
|
572 |
|
573 |
-
#: bws_functions.php:
|
574 |
msgid "Browsing"
|
575 |
msgstr ""
|
576 |
|
577 |
-
#: bws_functions.php:
|
578 |
#, fuzzy, php-format
|
579 |
msgid "Learn more about %s"
|
580 |
msgstr "Dowiedz się więcej"
|
581 |
|
582 |
-
#: bws_functions.php:
|
583 |
#, php-format
|
584 |
msgid ""
|
585 |
"You need to make this files writable before you can save your changes. See "
|
@@ -736,7 +736,7 @@ msgstr "Dziękujemy za kontakt."
|
|
736 |
msgid "Sorry, email message could not be delivered."
|
737 |
msgstr "Przepraszamy, wiadomość nie została dostarczona."
|
738 |
|
739 |
-
#: bws_menu.php:286 bws_menu.php:
|
740 |
msgid "System status"
|
741 |
msgstr "Status systemu"
|
742 |
|
@@ -753,30 +753,27 @@ msgstr ""
|
|
753 |
msgid "Client Area"
|
754 |
msgstr "Panel Klienta"
|
755 |
|
756 |
-
#: bws_menu.php:
|
757 |
-
#,
|
758 |
-
msgid "
|
759 |
-
msgstr "
|
760 |
|
761 |
-
#: bws_menu.php:
|
762 |
#, fuzzy
|
763 |
-
msgid "
|
764 |
msgstr "有効なテーマ"
|
765 |
|
766 |
-
#: bws_menu.php:
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
#: bws_menu.php:320
|
771 |
-
msgid "Subscribe to Pro Membership Now"
|
772 |
-
msgstr ""
|
773 |
|
774 |
-
#: bws_menu.php:
|
775 |
#, fuzzy
|
776 |
msgid "Upload Plugin"
|
777 |
msgstr "Wtyczka"
|
778 |
|
779 |
-
#: bws_menu.php:
|
780 |
#, php-format
|
781 |
msgid ""
|
782 |
"The plugin generated %d characters of <strong>unexpected output</strong> "
|
@@ -785,139 +782,139 @@ msgid ""
|
|
785 |
"or removing this plugin."
|
786 |
msgstr ""
|
787 |
|
788 |
-
#: bws_menu.php:
|
789 |
msgid ""
|
790 |
"Plugin could not be activated because it triggered a <strong>fatal error</"
|
791 |
"strong>."
|
792 |
msgstr ""
|
793 |
|
794 |
-
#: bws_menu.php:
|
795 |
msgid "Plugin <strong>activated</strong>."
|
796 |
msgstr ""
|
797 |
|
798 |
-
#: bws_menu.php:
|
799 |
#, fuzzy
|
800 |
msgid "Installing Plugin"
|
801 |
msgstr "Zainstalowane"
|
802 |
|
803 |
-
#: bws_menu.php:
|
804 |
msgid "Downloading install package from"
|
805 |
msgstr ""
|
806 |
|
807 |
-
#: bws_menu.php:
|
808 |
msgid "Unpacking the package"
|
809 |
msgstr ""
|
810 |
|
811 |
-
#: bws_menu.php:
|
812 |
#, fuzzy
|
813 |
msgid "Installing the plugin"
|
814 |
msgstr "Zainstalowane"
|
815 |
|
816 |
-
#: bws_menu.php:
|
817 |
#, fuzzy
|
818 |
msgid "Successfully installed the plugin"
|
819 |
msgstr "Zainstalowane"
|
820 |
|
821 |
-
#: bws_menu.php:
|
822 |
#, fuzzy
|
823 |
msgid "Activate Plugin"
|
824 |
msgstr "Aktywne wtyczki"
|
825 |
|
826 |
-
#: bws_menu.php:
|
827 |
msgid "Return to BestWebSoft Panel"
|
828 |
msgstr ""
|
829 |
|
830 |
-
#: bws_menu.php:
|
831 |
msgid "All"
|
832 |
msgstr "Wszystko"
|
833 |
|
834 |
-
#: bws_menu.php:
|
835 |
msgid "Installed"
|
836 |
msgstr "Zainstalowane"
|
837 |
|
838 |
-
#: bws_menu.php:
|
839 |
#, fuzzy
|
840 |
msgid "Not Installed"
|
841 |
msgstr "Zainstalowane"
|
842 |
|
843 |
-
#: bws_menu.php:
|
844 |
msgid "Filter results"
|
845 |
msgstr ""
|
846 |
|
847 |
-
#: bws_menu.php:
|
848 |
msgid "Category"
|
849 |
msgstr ""
|
850 |
|
851 |
-
#: bws_menu.php:
|
852 |
#, fuzzy
|
853 |
msgid "Not installed"
|
854 |
msgstr "Zainstalowane"
|
855 |
|
856 |
-
#: bws_menu.php:
|
857 |
#, fuzzy
|
858 |
msgid "Renew to get updates"
|
859 |
msgstr "ページに転送"
|
860 |
|
861 |
-
#: bws_menu.php:
|
862 |
#, fuzzy, php-format
|
863 |
msgid "Update to v %s"
|
864 |
msgstr "Aktualizuj do wersji %s"
|
865 |
|
866 |
-
#: bws_menu.php:
|
867 |
msgid "Install Now"
|
868 |
msgstr "Instaluj teraz"
|
869 |
|
870 |
-
#: bws_menu.php:
|
871 |
msgid "Upgrade to Pro"
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: bws_menu.php:
|
875 |
msgid "Donate"
|
876 |
msgstr ""
|
877 |
|
878 |
-
#: bws_menu.php:
|
879 |
msgid "Activate this plugin"
|
880 |
msgstr "Aktywuj wtyczkę"
|
881 |
|
882 |
-
#: bws_menu.php:
|
883 |
#, fuzzy
|
884 |
msgid "Install this plugin"
|
885 |
msgstr "Zainstalowane"
|
886 |
|
887 |
-
#: bws_menu.php:
|
888 |
msgid "Nothing found. Try another criteria."
|
889 |
msgstr ""
|
890 |
|
891 |
-
#: bws_menu.php:
|
892 |
#, php-format
|
893 |
msgid "By %s"
|
894 |
msgstr "Od %s"
|
895 |
|
896 |
-
#: bws_menu.php:
|
897 |
msgid "Already Installed"
|
898 |
msgstr "Zainstalowane"
|
899 |
|
900 |
-
#: bws_menu.php:
|
901 |
msgid "Browse Free WordPress Themes"
|
902 |
msgstr ""
|
903 |
|
904 |
-
#: bws_menu.php:
|
905 |
msgid "Send to support"
|
906 |
msgstr "Wyślij do supportu"
|
907 |
|
908 |
-
#: bws_menu.php:
|
909 |
msgid "Send to custom email »"
|
910 |
msgstr "Prześlij na własny adres »"
|
911 |
|
912 |
-
#: bws_menu.php:
|
913 |
msgid "Environment"
|
914 |
msgstr "Środowisko"
|
915 |
|
916 |
-
#: bws_menu.php:
|
917 |
msgid "Active Plugins"
|
918 |
msgstr "Aktywne wtyczki"
|
919 |
|
920 |
-
#: bws_menu.php:
|
921 |
msgid "Inactive Plugins"
|
922 |
msgstr "Nieaktywne wtyczki"
|
923 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bestwebsoft\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2016-08-04 15:44+0300\n"
|
6 |
+
"PO-Revision-Date: 2016-08-04 15:44+0300\n"
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: Damian Dąbrowski <contact@codester.pl>\n"
|
9 |
"Language: pl_PL\n"
|
18 |
"|| n%100>=20) ? 1 : 2);\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
+
#: bws_functions.php:38 bws_menu.php:282 bws_menu.php:330
|
22 |
msgid "Plugins"
|
23 |
msgstr "Wtyczki"
|
24 |
|
25 |
+
#: bws_functions.php:39 bws_menu.php:283 bws_menu.php:581
|
26 |
msgid "Themes"
|
27 |
msgstr "Motywy"
|
28 |
|
67 |
msgid "Let's get started"
|
68 |
msgstr "Zaczynajmny"
|
69 |
|
70 |
+
#: bws_functions.php:120 bws_functions.php:153 bws_menu.php:527
|
71 |
+
#: bws_menu.php:529
|
72 |
msgid "Settings"
|
73 |
msgstr "Ustawienia"
|
74 |
|
75 |
+
#: bws_functions.php:122 bws_functions.php:479 bws_menu.php:298
|
76 |
msgid "or"
|
77 |
msgstr "lub"
|
78 |
|
81 |
msgstr "Dodaj nowy"
|
82 |
|
83 |
#: bws_functions.php:127 bws_functions.php:137 bws_functions.php:213
|
84 |
+
#: bws_functions.php:727 bws_functions.php:831
|
85 |
msgid "Close notice"
|
86 |
msgstr "Zamknij powiadomienie"
|
87 |
|
116 |
msgid "Extend standard plugin functionality with new great options."
|
117 |
msgstr "Rozszerz podstawowe funkcje wtyczki o nowe wspaniałe opcje."
|
118 |
|
119 |
+
#: bws_functions.php:222 bws_functions.php:666 bws_menu.php:597
|
120 |
msgid "Learn More"
|
121 |
msgstr "Dowiedz się więcej"
|
122 |
|
188 |
"może być wykorzystana tylko raz."
|
189 |
|
190 |
#: bws_functions.php:349 bws_functions.php:371 bws_functions.php:393
|
191 |
+
#: bws_menu.php:370 bws_menu.php:401 bws_menu.php:412
|
192 |
msgid "Failed to download the zip archive. Please, upload the plugin manually"
|
193 |
msgstr ""
|
194 |
"Pobieranie archiwum zip zakończyło się niepowodzeniem. Proszę dodać wtyczkę "
|
195 |
"manualnie"
|
196 |
|
197 |
+
#: bws_functions.php:361 bws_menu.php:387
|
198 |
msgid "Failed to open the zip archive. Please, upload the plugin manually"
|
199 |
msgstr ""
|
200 |
"Otwieranie archiwum zip zakończyło się niepowodzeniem. Proszę dodać wtyczkę "
|
201 |
"manualnie"
|
202 |
|
203 |
+
#: bws_functions.php:367 bws_menu.php:394
|
204 |
msgid ""
|
205 |
"Your server does not support either ZipArchive or Phar. Please, upload the "
|
206 |
"plugin manually"
|
207 |
msgstr ""
|
208 |
"Twój serwer nie wspiera ZipAcrchive lub Phar. Proszę dodać wtyczkę manualnie"
|
209 |
|
210 |
+
#: bws_functions.php:374 bws_menu.php:404
|
211 |
msgid "UploadDir is not writable. Please, upload the plugin manually"
|
212 |
msgstr ""
|
213 |
"Folder uploadu jest chroniony przez zapisem. Proszę dodać wtyczkę manualnie"
|
271 |
msgstr "Rozpocznij swój darmowy %s-dniowy okres testowy"
|
272 |
|
273 |
#: bws_functions.php:485 bws_functions.php:494 bws_functions.php:524
|
274 |
+
#: bws_functions.php:532 bws_functions.php:1401 bws_menu.php:315
|
275 |
+
#: bws_menu.php:533 bws_menu.php:542
|
276 |
msgid "Activate"
|
277 |
msgstr "Aktywuj"
|
278 |
|
360 |
"(login to adres email podany przy zakupie). Jeśli to koniczne użyj opcji "
|
361 |
"\"Zgubiłeś swoje hasło?\"."
|
362 |
|
363 |
+
#: bws_functions.php:651 bws_menu.php:306 bws_menu.php:317
|
364 |
msgid "Check license key"
|
365 |
msgstr "Sprawdź klucz licencji"
|
366 |
|
367 |
+
#: bws_functions.php:666
|
368 |
msgid "WARNING: Illegal use notification"
|
369 |
msgstr "UWAGA: Odnotowano nielegalne użycie"
|
370 |
|
371 |
+
#: bws_functions.php:666
|
372 |
msgid ""
|
373 |
"You can use one license of the Pro plugin for one domain only. Please check "
|
374 |
"and edit your license or domain if necessary using you personal Client Area. "
|
380 |
"Panel Klienta. Zalecamy rozwiązanie tego problemu w przeciągu 24 godzin, w "
|
381 |
"przeciwnym wypadku wersja PRO zostanie zablokowana."
|
382 |
|
383 |
+
#: bws_functions.php:675
|
384 |
msgid ""
|
385 |
"Notice: Your Pro Trial license has expired. To continue using the plugin you "
|
386 |
"should buy a Pro license"
|
388 |
"Uwaga: Testowa wersja PRO niestety wygasła. Aby kontynuować korzystanie z "
|
389 |
"naszej wtyczki powinieneś zakupić klucz licencji."
|
390 |
|
391 |
+
#: bws_functions.php:677
|
392 |
msgid ""
|
393 |
"Your license has expired. To continue getting top-priority support and "
|
394 |
"plugin updates you should extend it."
|
396 |
"Twoja licencja wygasła. Aby podtrzymać szybki dostęp do pomocy i "
|
397 |
"aktualizacji powinieneś przedłużyć licencję."
|
398 |
|
399 |
+
#: bws_functions.php:677 bws_functions.php:731 bws_functions.php:1356
|
400 |
msgid "Learn more"
|
401 |
msgstr "Dowiedz się więcej"
|
402 |
|
403 |
+
#: bws_functions.php:688
|
404 |
#, php-format
|
405 |
msgid "Notice: You are using the Pro Trial license of %s plugin."
|
406 |
msgstr "Uwaga: Wykorzystujesz próbną licencję wersji PRO dla %s."
|
407 |
|
408 |
+
#: bws_functions.php:690
|
409 |
msgid "Notice: You are using the Pro Trial license of plugin."
|
410 |
msgstr "Uwaga: Wykorzystywana jest próbna licencja wtyczki."
|
411 |
|
412 |
+
#: bws_functions.php:693
|
413 |
msgid "The Pro Trial license will expire on"
|
414 |
msgstr "Licencja próbna wygaśnie"
|
415 |
|
416 |
+
#: bws_functions.php:731
|
417 |
msgid "You license for"
|
418 |
msgstr "Twoja licencja na"
|
419 |
|
420 |
+
#: bws_functions.php:731
|
421 |
msgid "expires on"
|
422 |
msgstr "wygasa"
|
423 |
|
424 |
+
#: bws_functions.php:731
|
425 |
msgid "and you won't be granted TOP-PRIORITY SUPPORT or UPDATES."
|
426 |
msgstr ""
|
427 |
"zostaniesz wówczas pozbawiony SZYBKIEGO DOSTĘDO DO SUPPORTU oraz "
|
428 |
"AKTUALIZACJI."
|
429 |
|
430 |
+
#: bws_functions.php:826
|
431 |
#, fuzzy
|
432 |
msgid "Thank you for choosing"
|
433 |
msgstr "Dziękujemy za instalację"
|
434 |
|
435 |
+
#: bws_functions.php:827
|
436 |
msgid ""
|
437 |
"If you have a feature, suggestion or idea you'd like to see in the plugin, "
|
438 |
"we'd love to hear about it!"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: bws_functions.php:828
|
442 |
msgid "Suggest a Feature"
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: bws_functions.php:844
|
446 |
msgid "Notice"
|
447 |
msgstr "Uwaga"
|
448 |
|
449 |
+
#: bws_functions.php:844
|
450 |
msgid "The plugin's settings have been changed."
|
451 |
msgstr "Ustawienia wtyczki zostały zmienione."
|
452 |
|
453 |
+
#: bws_functions.php:845 bws_functions.php:1412
|
454 |
msgid "Save Changes"
|
455 |
msgstr "Zapisz zmiany"
|
456 |
|
457 |
+
#: bws_functions.php:859
|
458 |
msgid ""
|
459 |
"You can always look at premium options by clicking on the \"Show Pro features"
|
460 |
"\" in the \"Go PRO\" tab"
|
462 |
"Zawsze możesz sprawdzić funkcje premium poprzez kliknięcie \"Pokaż funkcje "
|
463 |
"PRO\" w zakładce \"Go PRO\""
|
464 |
|
465 |
+
#: bws_functions.php:988
|
466 |
#, fuzzy
|
467 |
msgid "Add shortcode"
|
468 |
msgstr "Dodaj BWS Shortcode"
|
469 |
|
470 |
+
#: bws_functions.php:988
|
471 |
msgid "Add BestWebSoft plugins' shortcodes using this button."
|
472 |
msgstr ""
|
473 |
|
474 |
+
#: bws_functions.php:1037
|
475 |
msgid "Close"
|
476 |
msgstr "Zamknij"
|
477 |
|
478 |
+
#: bws_functions.php:1129
|
479 |
msgid "Restore all plugin settings to defaults"
|
480 |
msgstr "Przywróć wszystkie ustawienia do wartości domyśłnych"
|
481 |
|
482 |
+
#: bws_functions.php:1131
|
483 |
msgid "Restore settings"
|
484 |
msgstr "Przywróć ustawienia"
|
485 |
|
486 |
+
#: bws_functions.php:1142
|
487 |
msgid "Are you sure you want to restore all settings by default?"
|
488 |
msgstr ""
|
489 |
"Czy jesteś pewien, że chcesz przywrócić wszystkie ustawienia do wartości "
|
490 |
"domyślnych?"
|
491 |
|
492 |
+
#: bws_functions.php:1145
|
493 |
msgid "Yes, restore all settings"
|
494 |
msgstr "Tak, przywróć wszystkie ustawienia"
|
495 |
|
496 |
+
#: bws_functions.php:1146
|
497 |
msgid "No, go back to the settings page"
|
498 |
msgstr "Nie, wróć do ustawień"
|
499 |
|
500 |
+
#: bws_functions.php:1192
|
501 |
msgid "Plugin"
|
502 |
msgstr "Wtyczka"
|
503 |
|
504 |
+
#: bws_functions.php:1201
|
505 |
msgid "Shortcode settings"
|
506 |
msgstr "Ustawienia shortcode"
|
507 |
|
508 |
+
#: bws_functions.php:1206
|
509 |
msgid "The shortcode will be inserted"
|
510 |
msgstr "Shortcode zostanie umieszczony"
|
511 |
|
512 |
+
#: bws_functions.php:1211
|
513 |
msgid "Insert"
|
514 |
msgstr "Umieść"
|
515 |
|
516 |
+
#: bws_functions.php:1244
|
517 |
msgid "Visit Help Center"
|
518 |
msgstr ""
|
519 |
|
520 |
+
#: bws_functions.php:1249
|
521 |
msgid "FAQ"
|
522 |
msgstr "FAQ"
|
523 |
|
524 |
+
#: bws_functions.php:1255
|
525 |
msgid "For more information:"
|
526 |
msgstr ""
|
527 |
|
528 |
+
#: bws_functions.php:1256
|
529 |
msgid "Documentation"
|
530 |
msgstr ""
|
531 |
|
532 |
+
#: bws_functions.php:1257
|
533 |
msgid "Video Instructions"
|
534 |
msgstr ""
|
535 |
|
536 |
+
#: bws_functions.php:1258
|
537 |
#, fuzzy
|
538 |
msgid "Submit a Request"
|
539 |
msgstr "送信ボタン"
|
540 |
|
541 |
+
#: bws_functions.php:1269
|
542 |
msgid "You do not have sufficient permissions to edit plugins for this site."
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: bws_functions.php:1320 bws_functions.php:1347
|
546 |
#, php-format
|
547 |
msgid "File %s edited successfully."
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: bws_functions.php:1322 bws_functions.php:1349
|
551 |
msgid "Not enough permissions to create or update the file"
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: bws_functions.php:1352
|
555 |
msgid "Not enough permissions to create the file"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: bws_functions.php:1390
|
559 |
msgid "These styles will be added to the header on all pages of your site."
|
560 |
msgstr ""
|
561 |
|
562 |
+
#: bws_functions.php:1392
|
563 |
#, php-format
|
564 |
msgid ""
|
565 |
+
"This PHP code will be hooked to the %s action and will be printed on front "
|
566 |
"end only."
|
567 |
msgstr ""
|
568 |
|
569 |
+
#: bws_functions.php:1396
|
570 |
msgid "Editing"
|
571 |
msgstr ""
|
572 |
|
573 |
+
#: bws_functions.php:1398
|
574 |
msgid "Browsing"
|
575 |
msgstr ""
|
576 |
|
577 |
+
#: bws_functions.php:1405
|
578 |
#, fuzzy, php-format
|
579 |
msgid "Learn more about %s"
|
580 |
msgstr "Dowiedz się więcej"
|
581 |
|
582 |
+
#: bws_functions.php:1416
|
583 |
#, php-format
|
584 |
msgid ""
|
585 |
"You need to make this files writable before you can save your changes. See "
|
736 |
msgid "Sorry, email message could not be delivered."
|
737 |
msgstr "Przepraszamy, wiadomość nie została dostarczona."
|
738 |
|
739 |
+
#: bws_menu.php:286 bws_menu.php:632
|
740 |
msgid "System status"
|
741 |
msgstr "Status systemu"
|
742 |
|
753 |
msgid "Client Area"
|
754 |
msgstr "Panel Klienta"
|
755 |
|
756 |
+
#: bws_menu.php:296
|
757 |
+
#, php-format
|
758 |
+
msgid "Get Access to %s+ Premium Plugins"
|
759 |
+
msgstr ""
|
760 |
|
761 |
+
#: bws_menu.php:298
|
762 |
#, fuzzy
|
763 |
+
msgid "Subscribe to Pro Membership"
|
764 |
msgstr "有効なテーマ"
|
765 |
|
766 |
+
#: bws_menu.php:309
|
767 |
+
#, fuzzy
|
768 |
+
msgid "Enter your license key"
|
769 |
+
msgstr "Podaj klucz licencji"
|
|
|
|
|
|
|
770 |
|
771 |
+
#: bws_menu.php:331
|
772 |
#, fuzzy
|
773 |
msgid "Upload Plugin"
|
774 |
msgstr "Wtyczka"
|
775 |
|
776 |
+
#: bws_menu.php:335
|
777 |
#, php-format
|
778 |
msgid ""
|
779 |
"The plugin generated %d characters of <strong>unexpected output</strong> "
|
782 |
"or removing this plugin."
|
783 |
msgstr ""
|
784 |
|
785 |
+
#: bws_menu.php:337
|
786 |
msgid ""
|
787 |
"Plugin could not be activated because it triggered a <strong>fatal error</"
|
788 |
"strong>."
|
789 |
msgstr ""
|
790 |
|
791 |
+
#: bws_menu.php:340
|
792 |
msgid "Plugin <strong>activated</strong>."
|
793 |
msgstr ""
|
794 |
|
795 |
+
#: bws_menu.php:347
|
796 |
#, fuzzy
|
797 |
msgid "Installing Plugin"
|
798 |
msgstr "Zainstalowane"
|
799 |
|
800 |
+
#: bws_menu.php:353
|
801 |
msgid "Downloading install package from"
|
802 |
msgstr ""
|
803 |
|
804 |
+
#: bws_menu.php:378
|
805 |
msgid "Unpacking the package"
|
806 |
msgstr ""
|
807 |
|
808 |
+
#: bws_menu.php:383 bws_menu.php:391
|
809 |
#, fuzzy
|
810 |
msgid "Installing the plugin"
|
811 |
msgstr "Zainstalowane"
|
812 |
|
813 |
+
#: bws_menu.php:397
|
814 |
#, fuzzy
|
815 |
msgid "Successfully installed the plugin"
|
816 |
msgstr "Zainstalowane"
|
817 |
|
818 |
+
#: bws_menu.php:409
|
819 |
#, fuzzy
|
820 |
msgid "Activate Plugin"
|
821 |
msgstr "Aktywne wtyczki"
|
822 |
|
823 |
+
#: bws_menu.php:409 bws_menu.php:415
|
824 |
msgid "Return to BestWebSoft Panel"
|
825 |
msgstr ""
|
826 |
|
827 |
+
#: bws_menu.php:419 bws_menu.php:434 bws_menu.php:563
|
828 |
msgid "All"
|
829 |
msgstr "Wszystko"
|
830 |
|
831 |
+
#: bws_menu.php:420 bws_menu.php:620
|
832 |
msgid "Installed"
|
833 |
msgstr "Zainstalowane"
|
834 |
|
835 |
+
#: bws_menu.php:421
|
836 |
#, fuzzy
|
837 |
msgid "Not Installed"
|
838 |
msgstr "Zainstalowane"
|
839 |
|
840 |
+
#: bws_menu.php:427
|
841 |
msgid "Filter results"
|
842 |
msgstr ""
|
843 |
|
844 |
+
#: bws_menu.php:430 bws_menu.php:559
|
845 |
msgid "Category"
|
846 |
msgstr ""
|
847 |
|
848 |
+
#: bws_menu.php:494
|
849 |
#, fuzzy
|
850 |
msgid "Not installed"
|
851 |
msgstr "Zainstalowane"
|
852 |
|
853 |
+
#: bws_menu.php:498
|
854 |
#, fuzzy
|
855 |
msgid "Renew to get updates"
|
856 |
msgstr "ページに転送"
|
857 |
|
858 |
+
#: bws_menu.php:501
|
859 |
#, fuzzy, php-format
|
860 |
msgid "Update to v %s"
|
861 |
msgstr "Aktualizuj do wersji %s"
|
862 |
|
863 |
+
#: bws_menu.php:513 bws_menu.php:536 bws_menu.php:545
|
864 |
msgid "Install Now"
|
865 |
msgstr "Instaluj teraz"
|
866 |
|
867 |
+
#: bws_menu.php:519
|
868 |
msgid "Upgrade to Pro"
|
869 |
msgstr ""
|
870 |
|
871 |
+
#: bws_menu.php:523
|
872 |
msgid "Donate"
|
873 |
msgstr ""
|
874 |
|
875 |
+
#: bws_menu.php:533 bws_menu.php:542
|
876 |
msgid "Activate this plugin"
|
877 |
msgstr "Aktywuj wtyczkę"
|
878 |
|
879 |
+
#: bws_menu.php:545
|
880 |
#, fuzzy
|
881 |
msgid "Install this plugin"
|
882 |
msgstr "Zainstalowane"
|
883 |
|
884 |
+
#: bws_menu.php:554
|
885 |
msgid "Nothing found. Try another criteria."
|
886 |
msgstr ""
|
887 |
|
888 |
+
#: bws_menu.php:591 bws_menu.php:611
|
889 |
#, php-format
|
890 |
msgid "By %s"
|
891 |
msgstr "Od %s"
|
892 |
|
893 |
+
#: bws_menu.php:618
|
894 |
msgid "Already Installed"
|
895 |
msgstr "Zainstalowane"
|
896 |
|
897 |
+
#: bws_menu.php:629
|
898 |
msgid "Browse Free WordPress Themes"
|
899 |
msgstr ""
|
900 |
|
901 |
+
#: bws_menu.php:638
|
902 |
msgid "Send to support"
|
903 |
msgstr "Wyślij do supportu"
|
904 |
|
905 |
+
#: bws_menu.php:645
|
906 |
msgid "Send to custom email »"
|
907 |
msgstr "Prześlij na własny adres »"
|
908 |
|
909 |
+
#: bws_menu.php:652
|
910 |
msgid "Environment"
|
911 |
msgstr "Środowisko"
|
912 |
|
913 |
+
#: bws_menu.php:663
|
914 |
msgid "Active Plugins"
|
915 |
msgstr "Aktywne wtyczki"
|
916 |
|
917 |
+
#: bws_menu.php:676
|
918 |
msgid "Inactive Plugins"
|
919 |
msgstr "Nieaktywne wtyczki"
|
920 |
|
bws_menu/languages/bestwebsoft-ru_RU.mo
CHANGED
Binary file
|
bws_menu/languages/bestwebsoft-ru_RU.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bestwebsoft\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2016-
|
6 |
-
"PO-Revision-Date: 2016-
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: bestwebsoft.com <http://support.bestwebsoft.com>\n"
|
9 |
"Language: ru_RU\n"
|
@@ -16,11 +16,11 @@ msgstr ""
|
|
16 |
"X-Generator: Poedit 1.5.4\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
-
#: bws_functions.php:38 bws_menu.php:282 bws_menu.php:
|
20 |
msgid "Plugins"
|
21 |
msgstr "Плагины"
|
22 |
|
23 |
-
#: bws_functions.php:39 bws_menu.php:283 bws_menu.php:
|
24 |
msgid "Themes"
|
25 |
msgstr "Темы"
|
26 |
|
@@ -64,12 +64,12 @@ msgstr "Спасибо за установку"
|
|
64 |
msgid "Let's get started"
|
65 |
msgstr "Давайте начнем"
|
66 |
|
67 |
-
#: bws_functions.php:120 bws_functions.php:153 bws_menu.php:
|
68 |
-
#: bws_menu.php:
|
69 |
msgid "Settings"
|
70 |
msgstr "Настройки"
|
71 |
|
72 |
-
#: bws_functions.php:122 bws_functions.php:479
|
73 |
msgid "or"
|
74 |
msgstr "или"
|
75 |
|
@@ -78,7 +78,7 @@ msgid "Add New"
|
|
78 |
msgstr "Добавить"
|
79 |
|
80 |
#: bws_functions.php:127 bws_functions.php:137 bws_functions.php:213
|
81 |
-
#: bws_functions.php:
|
82 |
msgid "Close notice"
|
83 |
msgstr "Закрыть"
|
84 |
|
@@ -110,7 +110,7 @@ msgstr "версии!"
|
|
110 |
msgid "Extend standard plugin functionality with new great options."
|
111 |
msgstr "Расширяет возможности стандартного функционала плагина."
|
112 |
|
113 |
-
#: bws_functions.php:222 bws_functions.php:
|
114 |
msgid "Learn More"
|
115 |
msgstr "Подробнее"
|
116 |
|
@@ -184,16 +184,16 @@ msgstr ""
|
|
184 |
"лицензия может быть установлена только один раз."
|
185 |
|
186 |
#: bws_functions.php:349 bws_functions.php:371 bws_functions.php:393
|
187 |
-
#: bws_menu.php:
|
188 |
msgid "Failed to download the zip archive. Please, upload the plugin manually"
|
189 |
msgstr ""
|
190 |
"Не удалось загрузить архив плагина. Пожалуйста, загрузите плагин вручную"
|
191 |
|
192 |
-
#: bws_functions.php:361 bws_menu.php:
|
193 |
msgid "Failed to open the zip archive. Please, upload the plugin manually"
|
194 |
msgstr "Не удалось открыть архив ZIP. Пожалуйста, загрузите плагин вручную"
|
195 |
|
196 |
-
#: bws_functions.php:367 bws_menu.php:
|
197 |
msgid ""
|
198 |
"Your server does not support either ZipArchive or Phar. Please, upload the "
|
199 |
"plugin manually"
|
@@ -201,7 +201,7 @@ msgstr ""
|
|
201 |
"Ваш сервер не поддерживает ни библиотеку ZipArchive, ни библиотеку Phar. "
|
202 |
"Пожалуйста, загрузите плагин вручную"
|
203 |
|
204 |
-
#: bws_functions.php:374 bws_menu.php:
|
205 |
msgid "UploadDir is not writable. Please, upload the plugin manually"
|
206 |
msgstr ""
|
207 |
"Папка загрузки не доступна для записи. Пожалуйста, загрузите плагин вручную"
|
@@ -262,8 +262,8 @@ msgid "Start Your Free %s-Day Trial Now"
|
|
262 |
msgstr "Попробуйте %s-дневную Trial версию бесплатно"
|
263 |
|
264 |
#: bws_functions.php:485 bws_functions.php:494 bws_functions.php:524
|
265 |
-
#: bws_functions.php:532 bws_functions.php:
|
266 |
-
#: bws_menu.php:
|
267 |
msgid "Activate"
|
268 |
msgstr "Активировать"
|
269 |
|
@@ -349,15 +349,15 @@ msgstr ""
|
|
349 |
"(ваше имя пользователя - это емейл, указанный при покупке). При "
|
350 |
"необходимости нажмите \"Забыли пароль?\"."
|
351 |
|
352 |
-
#: bws_functions.php:651 bws_menu.php:
|
353 |
msgid "Check license key"
|
354 |
msgstr "Проверка лицензионного ключа"
|
355 |
|
356 |
-
#: bws_functions.php:
|
357 |
msgid "WARNING: Illegal use notification"
|
358 |
msgstr "ВНИМАНИЕ: уведомление о незаконном использовании"
|
359 |
|
360 |
-
#: bws_functions.php:
|
361 |
msgid ""
|
362 |
"You can use one license of the Pro plugin for one domain only. Please check "
|
363 |
"and edit your license or domain if necessary using you personal Client Area. "
|
@@ -369,7 +369,7 @@ msgstr ""
|
|
369 |
"используя Ваш личный Client Area. Мы настоятельно рекомендуем вам решить "
|
370 |
"проблему в течение 24 часов, в противном случае плагин будет деактивирован."
|
371 |
|
372 |
-
#: bws_functions.php:
|
373 |
msgid ""
|
374 |
"Notice: Your Pro Trial license has expired. To continue using the plugin you "
|
375 |
"should buy a Pro license"
|
@@ -377,7 +377,7 @@ msgstr ""
|
|
377 |
"Внимание: Срок действия Pro Trial версии истек. Чтобы продолжить "
|
378 |
"пользоваться плагином, пожалуйста, приобретите лицензию Pro"
|
379 |
|
380 |
-
#: bws_functions.php:
|
381 |
msgid ""
|
382 |
"Your license has expired. To continue getting top-priority support and "
|
383 |
"plugin updates you should extend it."
|
@@ -386,40 +386,40 @@ msgstr ""
|
|
386 |
"плагин в дальнейшем и иметь приоритетную тех.поддержку, то вам нужно "
|
387 |
"продлить лицензию."
|
388 |
|
389 |
-
#: bws_functions.php:
|
390 |
msgid "Learn more"
|
391 |
msgstr "Подробнее"
|
392 |
|
393 |
-
#: bws_functions.php:
|
394 |
#, php-format
|
395 |
msgid "Notice: You are using the Pro Trial license of %s plugin."
|
396 |
msgstr "Внимание: Вы используете Pro Trial версию плагина %s."
|
397 |
|
398 |
-
#: bws_functions.php:
|
399 |
msgid "Notice: You are using the Pro Trial license of plugin."
|
400 |
msgstr "Внимание: Вы используете Pro Trial версию плагина."
|
401 |
|
402 |
-
#: bws_functions.php:
|
403 |
msgid "The Pro Trial license will expire on"
|
404 |
msgstr "Ваша лицензия Pro Trial версии плагина истекает"
|
405 |
|
406 |
-
#: bws_functions.php:
|
407 |
msgid "You license for"
|
408 |
msgstr "Ваш лицензионный ключ для"
|
409 |
|
410 |
-
#: bws_functions.php:
|
411 |
msgid "expires on"
|
412 |
msgstr "истекает"
|
413 |
|
414 |
-
#: bws_functions.php:
|
415 |
msgid "and you won't be granted TOP-PRIORITY SUPPORT or UPDATES."
|
416 |
msgstr "и вы не будете получать приоритетную тех.поддержку или обновления."
|
417 |
|
418 |
-
#: bws_functions.php:
|
419 |
msgid "Thank you for choosing"
|
420 |
msgstr "Спасибо за выбор"
|
421 |
|
422 |
-
#: bws_functions.php:
|
423 |
msgid ""
|
424 |
"If you have a feature, suggestion or idea you'd like to see in the plugin, "
|
425 |
"we'd love to hear about it!"
|
@@ -428,23 +428,23 @@ msgstr ""
|
|
428 |
"функционала плагина, пожалуйста, присылайте их нам! Мы вседа открыты для "
|
429 |
"новых идей!"
|
430 |
|
431 |
-
#: bws_functions.php:
|
432 |
msgid "Suggest a Feature"
|
433 |
msgstr "Предложить функционал"
|
434 |
|
435 |
-
#: bws_functions.php:
|
436 |
msgid "Notice"
|
437 |
msgstr "Внимание"
|
438 |
|
439 |
-
#: bws_functions.php:
|
440 |
msgid "The plugin's settings have been changed."
|
441 |
msgstr "Настройки плагина были изменены"
|
442 |
|
443 |
-
#: bws_functions.php:
|
444 |
msgid "Save Changes"
|
445 |
msgstr "Сохранить изменения"
|
446 |
|
447 |
-
#: bws_functions.php:
|
448 |
msgid ""
|
449 |
"You can always look at premium options by clicking on the \"Show Pro features"
|
450 |
"\" in the \"Go PRO\" tab"
|
@@ -452,125 +452,125 @@ msgstr ""
|
|
452 |
"Вы всегда можете просмотреть премиум опции нажав на кнопку \"Показать Pro "
|
453 |
"опции\" на вкладке \"Перейти на PRO\""
|
454 |
|
455 |
-
#: bws_functions.php:
|
456 |
msgid "Add shortcode"
|
457 |
msgstr "Добавить шорткод"
|
458 |
|
459 |
-
#: bws_functions.php:
|
460 |
msgid "Add BestWebSoft plugins' shortcodes using this button."
|
461 |
msgstr "Добавьте шорткоды BestWebSoft плагинов с помощью этой кнопки."
|
462 |
|
463 |
-
#: bws_functions.php:
|
464 |
msgid "Close"
|
465 |
msgstr "Закрыть"
|
466 |
|
467 |
-
#: bws_functions.php:
|
468 |
msgid "Restore all plugin settings to defaults"
|
469 |
msgstr "Восстановить все настройки плагина к настройкам по умолчанию"
|
470 |
|
471 |
-
#: bws_functions.php:
|
472 |
msgid "Restore settings"
|
473 |
msgstr "Восстановить настройки"
|
474 |
|
475 |
-
#: bws_functions.php:
|
476 |
msgid "Are you sure you want to restore all settings by default?"
|
477 |
msgstr ""
|
478 |
"Вы уверены что хотите восстановить все настройки плагина к настройкам по "
|
479 |
"умолчанию?"
|
480 |
|
481 |
-
#: bws_functions.php:
|
482 |
msgid "Yes, restore all settings"
|
483 |
msgstr "Да, восстановить все настройки"
|
484 |
|
485 |
-
#: bws_functions.php:
|
486 |
msgid "No, go back to the settings page"
|
487 |
msgstr "Нет, вернуться на страницу настроек"
|
488 |
|
489 |
-
#: bws_functions.php:
|
490 |
msgid "Plugin"
|
491 |
msgstr "Плагин"
|
492 |
|
493 |
-
#: bws_functions.php:
|
494 |
msgid "Shortcode settings"
|
495 |
msgstr "Настройки шорткода"
|
496 |
|
497 |
-
#: bws_functions.php:
|
498 |
msgid "The shortcode will be inserted"
|
499 |
msgstr "Будет вставлен шорткод"
|
500 |
|
501 |
-
#: bws_functions.php:
|
502 |
msgid "Insert"
|
503 |
msgstr "Вставить"
|
504 |
|
505 |
-
#: bws_functions.php:
|
506 |
msgid "Visit Help Center"
|
507 |
msgstr "Перейти в Help Center"
|
508 |
|
509 |
-
#: bws_functions.php:
|
510 |
msgid "FAQ"
|
511 |
msgstr "FAQ"
|
512 |
|
513 |
-
#: bws_functions.php:
|
514 |
msgid "For more information:"
|
515 |
msgstr "Для дополнительной информации:"
|
516 |
|
517 |
-
#: bws_functions.php:
|
518 |
msgid "Documentation"
|
519 |
msgstr "Документация"
|
520 |
|
521 |
-
#: bws_functions.php:
|
522 |
msgid "Video Instructions"
|
523 |
msgstr "Видео инструкции"
|
524 |
|
525 |
-
#: bws_functions.php:
|
526 |
msgid "Submit a Request"
|
527 |
msgstr "Отправить запрос"
|
528 |
|
529 |
-
#: bws_functions.php:
|
530 |
msgid "You do not have sufficient permissions to edit plugins for this site."
|
531 |
msgstr ""
|
532 |
"У вас недостаточно полномочий, чтобы редактировать плагины на этом сайте."
|
533 |
|
534 |
-
#: bws_functions.php:
|
535 |
#, php-format
|
536 |
msgid "File %s edited successfully."
|
537 |
msgstr "Файл %s успешно изменён."
|
538 |
|
539 |
-
#: bws_functions.php:
|
540 |
msgid "Not enough permissions to create or update the file"
|
541 |
msgstr "Не достаточно прав для создания или обновления файла"
|
542 |
|
543 |
-
#: bws_functions.php:
|
544 |
msgid "Not enough permissions to create the file"
|
545 |
msgstr "Не достаточно прав для создания файла"
|
546 |
|
547 |
-
#: bws_functions.php:
|
548 |
msgid "These styles will be added to the header on all pages of your site."
|
549 |
msgstr "Эти стили будут добавлены в хедер на всех страницах вашего сайта."
|
550 |
|
551 |
-
#: bws_functions.php:
|
552 |
#, php-format
|
553 |
msgid ""
|
554 |
-
"
|
555 |
"end only."
|
556 |
msgstr ""
|
557 |
"Этот PHP код будет прикреплен к %s аction и будет добавлен только во "
|
558 |
"фронтенде."
|
559 |
|
560 |
-
#: bws_functions.php:
|
561 |
msgid "Editing"
|
562 |
msgstr "Редактирование"
|
563 |
|
564 |
-
#: bws_functions.php:
|
565 |
msgid "Browsing"
|
566 |
msgstr "Просмотр"
|
567 |
|
568 |
-
#: bws_functions.php:
|
569 |
#, php-format
|
570 |
msgid "Learn more about %s"
|
571 |
msgstr "Подробнее о %s"
|
572 |
|
573 |
-
#: bws_functions.php:
|
574 |
#, php-format
|
575 |
msgid ""
|
576 |
"You need to make this files writable before you can save your changes. See "
|
@@ -727,7 +727,7 @@ msgstr "Спасибо что связались с нами."
|
|
727 |
msgid "Sorry, email message could not be delivered."
|
728 |
msgstr "Извините, ваш емейл не может быть отправлен."
|
729 |
|
730 |
-
#: bws_menu.php:286 bws_menu.php:
|
731 |
msgid "System status"
|
732 |
msgstr "Системная информация"
|
733 |
|
@@ -743,27 +743,24 @@ msgstr "Управление купленными лицензиями и под
|
|
743 |
msgid "Client Area"
|
744 |
msgstr "Client Area"
|
745 |
|
746 |
-
#: bws_menu.php:
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
#: bws_menu.php:311
|
751 |
-
msgid "Activate Membership"
|
752 |
-
msgstr "Активировать Membership"
|
753 |
|
754 |
-
#: bws_menu.php:
|
755 |
-
msgid "
|
756 |
-
msgstr "
|
757 |
|
758 |
-
#: bws_menu.php:
|
759 |
-
msgid "
|
760 |
-
msgstr "
|
761 |
|
762 |
-
#: bws_menu.php:
|
763 |
msgid "Upload Plugin"
|
764 |
msgstr "Добавить новый"
|
765 |
|
766 |
-
#: bws_menu.php:
|
767 |
#, php-format
|
768 |
msgid ""
|
769 |
"The plugin generated %d characters of <strong>unexpected output</strong> "
|
@@ -776,7 +773,7 @@ msgstr ""
|
|
776 |
"проблемы с RSS-лентами или другие неполадки, попробуйте деактивировать или "
|
777 |
"удалить этот плагин."
|
778 |
|
779 |
-
#: bws_menu.php:
|
780 |
msgid ""
|
781 |
"Plugin could not be activated because it triggered a <strong>fatal error</"
|
782 |
"strong>."
|
@@ -784,125 +781,125 @@ msgstr ""
|
|
784 |
"Плагин не может быть активирован, поскольку он вызвал <strong>фатальную "
|
785 |
"ошибку</strong>."
|
786 |
|
787 |
-
#: bws_menu.php:
|
788 |
msgid "Plugin <strong>activated</strong>."
|
789 |
msgstr "Плагин <strong>активировано</strong>."
|
790 |
|
791 |
-
#: bws_menu.php:
|
792 |
msgid "Installing Plugin"
|
793 |
msgstr "Установка плагина"
|
794 |
|
795 |
-
#: bws_menu.php:
|
796 |
msgid "Downloading install package from"
|
797 |
msgstr "Скачивание установочного пакета из"
|
798 |
|
799 |
-
#: bws_menu.php:
|
800 |
msgid "Unpacking the package"
|
801 |
msgstr "Распаковка пакета"
|
802 |
|
803 |
-
#: bws_menu.php:
|
804 |
msgid "Installing the plugin"
|
805 |
msgstr "Установка плагина"
|
806 |
|
807 |
-
#: bws_menu.php:
|
808 |
msgid "Successfully installed the plugin"
|
809 |
msgstr "Успешно установлен плагин"
|
810 |
|
811 |
-
#: bws_menu.php:
|
812 |
msgid "Activate Plugin"
|
813 |
msgstr "Активировать плагин"
|
814 |
|
815 |
-
#: bws_menu.php:
|
816 |
msgid "Return to BestWebSoft Panel"
|
817 |
msgstr "Возврат к BestWebSoft Panel"
|
818 |
|
819 |
-
#: bws_menu.php:
|
820 |
msgid "All"
|
821 |
msgstr "Все"
|
822 |
|
823 |
-
#: bws_menu.php:
|
824 |
msgid "Installed"
|
825 |
msgstr "Установленные"
|
826 |
|
827 |
-
#: bws_menu.php:
|
828 |
msgid "Not Installed"
|
829 |
msgstr "Не установленные"
|
830 |
|
831 |
-
#: bws_menu.php:
|
832 |
msgid "Filter results"
|
833 |
msgstr "Фильтр результатов"
|
834 |
|
835 |
-
#: bws_menu.php:
|
836 |
msgid "Category"
|
837 |
msgstr "Категория"
|
838 |
|
839 |
-
#: bws_menu.php:
|
840 |
msgid "Not installed"
|
841 |
msgstr "Не установлен"
|
842 |
|
843 |
-
#: bws_menu.php:
|
844 |
msgid "Renew to get updates"
|
845 |
msgstr "Продлить для обновления"
|
846 |
|
847 |
-
#: bws_menu.php:
|
848 |
#, php-format
|
849 |
msgid "Update to v %s"
|
850 |
msgstr "Обновить до версии %s"
|
851 |
|
852 |
-
#: bws_menu.php:
|
853 |
msgid "Install Now"
|
854 |
msgstr "Установить"
|
855 |
|
856 |
-
#: bws_menu.php:
|
857 |
msgid "Upgrade to Pro"
|
858 |
msgstr "Обновиться на Pro"
|
859 |
|
860 |
-
#: bws_menu.php:
|
861 |
msgid "Donate"
|
862 |
msgstr "Пожертвовать"
|
863 |
|
864 |
-
#: bws_menu.php:
|
865 |
msgid "Activate this plugin"
|
866 |
msgstr "Активировать плагин"
|
867 |
|
868 |
-
#: bws_menu.php:
|
869 |
msgid "Install this plugin"
|
870 |
msgstr "Установить этот плагин"
|
871 |
|
872 |
-
#: bws_menu.php:
|
873 |
msgid "Nothing found. Try another criteria."
|
874 |
msgstr "Ничего не найдено. Попробуйте другие критерии."
|
875 |
|
876 |
-
#: bws_menu.php:
|
877 |
#, php-format
|
878 |
msgid "By %s"
|
879 |
msgstr "%s"
|
880 |
|
881 |
-
#: bws_menu.php:
|
882 |
msgid "Already Installed"
|
883 |
msgstr "Уже установлена"
|
884 |
|
885 |
-
#: bws_menu.php:
|
886 |
msgid "Browse Free WordPress Themes"
|
887 |
msgstr "Обзор бесплатных WordPress тем"
|
888 |
|
889 |
-
#: bws_menu.php:
|
890 |
msgid "Send to support"
|
891 |
msgstr "Отправить в тех. поддержку"
|
892 |
|
893 |
-
#: bws_menu.php:
|
894 |
msgid "Send to custom email »"
|
895 |
msgstr "Отправить на емейл »"
|
896 |
|
897 |
-
#: bws_menu.php:
|
898 |
msgid "Environment"
|
899 |
msgstr "Системная среда"
|
900 |
|
901 |
-
#: bws_menu.php:
|
902 |
msgid "Active Plugins"
|
903 |
msgstr "Активированные плагины"
|
904 |
|
905 |
-
#: bws_menu.php:
|
906 |
msgid "Inactive Plugins"
|
907 |
msgstr "Неактивированные плагины"
|
908 |
|
@@ -942,8 +939,11 @@ msgstr "Утилиты"
|
|
942 |
msgid "Other"
|
943 |
msgstr "Другое"
|
944 |
|
945 |
-
#~ msgid "
|
946 |
-
#~ msgstr "
|
|
|
|
|
|
|
947 |
|
948 |
#~ msgid ""
|
949 |
#~ "Join BestWebSoft Pro Membership today, cancel any time and use all "
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bestwebsoft\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2016-08-04 15:44+0300\n"
|
6 |
+
"PO-Revision-Date: 2016-08-04 15:44+0300\n"
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: bestwebsoft.com <http://support.bestwebsoft.com>\n"
|
9 |
"Language: ru_RU\n"
|
16 |
"X-Generator: Poedit 1.5.4\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
+
#: bws_functions.php:38 bws_menu.php:282 bws_menu.php:330
|
20 |
msgid "Plugins"
|
21 |
msgstr "Плагины"
|
22 |
|
23 |
+
#: bws_functions.php:39 bws_menu.php:283 bws_menu.php:581
|
24 |
msgid "Themes"
|
25 |
msgstr "Темы"
|
26 |
|
64 |
msgid "Let's get started"
|
65 |
msgstr "Давайте начнем"
|
66 |
|
67 |
+
#: bws_functions.php:120 bws_functions.php:153 bws_menu.php:527
|
68 |
+
#: bws_menu.php:529
|
69 |
msgid "Settings"
|
70 |
msgstr "Настройки"
|
71 |
|
72 |
+
#: bws_functions.php:122 bws_functions.php:479 bws_menu.php:298
|
73 |
msgid "or"
|
74 |
msgstr "или"
|
75 |
|
78 |
msgstr "Добавить"
|
79 |
|
80 |
#: bws_functions.php:127 bws_functions.php:137 bws_functions.php:213
|
81 |
+
#: bws_functions.php:727 bws_functions.php:831
|
82 |
msgid "Close notice"
|
83 |
msgstr "Закрыть"
|
84 |
|
110 |
msgid "Extend standard plugin functionality with new great options."
|
111 |
msgstr "Расширяет возможности стандартного функционала плагина."
|
112 |
|
113 |
+
#: bws_functions.php:222 bws_functions.php:666 bws_menu.php:597
|
114 |
msgid "Learn More"
|
115 |
msgstr "Подробнее"
|
116 |
|
184 |
"лицензия может быть установлена только один раз."
|
185 |
|
186 |
#: bws_functions.php:349 bws_functions.php:371 bws_functions.php:393
|
187 |
+
#: bws_menu.php:370 bws_menu.php:401 bws_menu.php:412
|
188 |
msgid "Failed to download the zip archive. Please, upload the plugin manually"
|
189 |
msgstr ""
|
190 |
"Не удалось загрузить архив плагина. Пожалуйста, загрузите плагин вручную"
|
191 |
|
192 |
+
#: bws_functions.php:361 bws_menu.php:387
|
193 |
msgid "Failed to open the zip archive. Please, upload the plugin manually"
|
194 |
msgstr "Не удалось открыть архив ZIP. Пожалуйста, загрузите плагин вручную"
|
195 |
|
196 |
+
#: bws_functions.php:367 bws_menu.php:394
|
197 |
msgid ""
|
198 |
"Your server does not support either ZipArchive or Phar. Please, upload the "
|
199 |
"plugin manually"
|
201 |
"Ваш сервер не поддерживает ни библиотеку ZipArchive, ни библиотеку Phar. "
|
202 |
"Пожалуйста, загрузите плагин вручную"
|
203 |
|
204 |
+
#: bws_functions.php:374 bws_menu.php:404
|
205 |
msgid "UploadDir is not writable. Please, upload the plugin manually"
|
206 |
msgstr ""
|
207 |
"Папка загрузки не доступна для записи. Пожалуйста, загрузите плагин вручную"
|
262 |
msgstr "Попробуйте %s-дневную Trial версию бесплатно"
|
263 |
|
264 |
#: bws_functions.php:485 bws_functions.php:494 bws_functions.php:524
|
265 |
+
#: bws_functions.php:532 bws_functions.php:1401 bws_menu.php:315
|
266 |
+
#: bws_menu.php:533 bws_menu.php:542
|
267 |
msgid "Activate"
|
268 |
msgstr "Активировать"
|
269 |
|
349 |
"(ваше имя пользователя - это емейл, указанный при покупке). При "
|
350 |
"необходимости нажмите \"Забыли пароль?\"."
|
351 |
|
352 |
+
#: bws_functions.php:651 bws_menu.php:306 bws_menu.php:317
|
353 |
msgid "Check license key"
|
354 |
msgstr "Проверка лицензионного ключа"
|
355 |
|
356 |
+
#: bws_functions.php:666
|
357 |
msgid "WARNING: Illegal use notification"
|
358 |
msgstr "ВНИМАНИЕ: уведомление о незаконном использовании"
|
359 |
|
360 |
+
#: bws_functions.php:666
|
361 |
msgid ""
|
362 |
"You can use one license of the Pro plugin for one domain only. Please check "
|
363 |
"and edit your license or domain if necessary using you personal Client Area. "
|
369 |
"используя Ваш личный Client Area. Мы настоятельно рекомендуем вам решить "
|
370 |
"проблему в течение 24 часов, в противном случае плагин будет деактивирован."
|
371 |
|
372 |
+
#: bws_functions.php:675
|
373 |
msgid ""
|
374 |
"Notice: Your Pro Trial license has expired. To continue using the plugin you "
|
375 |
"should buy a Pro license"
|
377 |
"Внимание: Срок действия Pro Trial версии истек. Чтобы продолжить "
|
378 |
"пользоваться плагином, пожалуйста, приобретите лицензию Pro"
|
379 |
|
380 |
+
#: bws_functions.php:677
|
381 |
msgid ""
|
382 |
"Your license has expired. To continue getting top-priority support and "
|
383 |
"plugin updates you should extend it."
|
386 |
"плагин в дальнейшем и иметь приоритетную тех.поддержку, то вам нужно "
|
387 |
"продлить лицензию."
|
388 |
|
389 |
+
#: bws_functions.php:677 bws_functions.php:731 bws_functions.php:1356
|
390 |
msgid "Learn more"
|
391 |
msgstr "Подробнее"
|
392 |
|
393 |
+
#: bws_functions.php:688
|
394 |
#, php-format
|
395 |
msgid "Notice: You are using the Pro Trial license of %s plugin."
|
396 |
msgstr "Внимание: Вы используете Pro Trial версию плагина %s."
|
397 |
|
398 |
+
#: bws_functions.php:690
|
399 |
msgid "Notice: You are using the Pro Trial license of plugin."
|
400 |
msgstr "Внимание: Вы используете Pro Trial версию плагина."
|
401 |
|
402 |
+
#: bws_functions.php:693
|
403 |
msgid "The Pro Trial license will expire on"
|
404 |
msgstr "Ваша лицензия Pro Trial версии плагина истекает"
|
405 |
|
406 |
+
#: bws_functions.php:731
|
407 |
msgid "You license for"
|
408 |
msgstr "Ваш лицензионный ключ для"
|
409 |
|
410 |
+
#: bws_functions.php:731
|
411 |
msgid "expires on"
|
412 |
msgstr "истекает"
|
413 |
|
414 |
+
#: bws_functions.php:731
|
415 |
msgid "and you won't be granted TOP-PRIORITY SUPPORT or UPDATES."
|
416 |
msgstr "и вы не будете получать приоритетную тех.поддержку или обновления."
|
417 |
|
418 |
+
#: bws_functions.php:826
|
419 |
msgid "Thank you for choosing"
|
420 |
msgstr "Спасибо за выбор"
|
421 |
|
422 |
+
#: bws_functions.php:827
|
423 |
msgid ""
|
424 |
"If you have a feature, suggestion or idea you'd like to see in the plugin, "
|
425 |
"we'd love to hear about it!"
|
428 |
"функционала плагина, пожалуйста, присылайте их нам! Мы вседа открыты для "
|
429 |
"новых идей!"
|
430 |
|
431 |
+
#: bws_functions.php:828
|
432 |
msgid "Suggest a Feature"
|
433 |
msgstr "Предложить функционал"
|
434 |
|
435 |
+
#: bws_functions.php:844
|
436 |
msgid "Notice"
|
437 |
msgstr "Внимание"
|
438 |
|
439 |
+
#: bws_functions.php:844
|
440 |
msgid "The plugin's settings have been changed."
|
441 |
msgstr "Настройки плагина были изменены"
|
442 |
|
443 |
+
#: bws_functions.php:845 bws_functions.php:1412
|
444 |
msgid "Save Changes"
|
445 |
msgstr "Сохранить изменения"
|
446 |
|
447 |
+
#: bws_functions.php:859
|
448 |
msgid ""
|
449 |
"You can always look at premium options by clicking on the \"Show Pro features"
|
450 |
"\" in the \"Go PRO\" tab"
|
452 |
"Вы всегда можете просмотреть премиум опции нажав на кнопку \"Показать Pro "
|
453 |
"опции\" на вкладке \"Перейти на PRO\""
|
454 |
|
455 |
+
#: bws_functions.php:988
|
456 |
msgid "Add shortcode"
|
457 |
msgstr "Добавить шорткод"
|
458 |
|
459 |
+
#: bws_functions.php:988
|
460 |
msgid "Add BestWebSoft plugins' shortcodes using this button."
|
461 |
msgstr "Добавьте шорткоды BestWebSoft плагинов с помощью этой кнопки."
|
462 |
|
463 |
+
#: bws_functions.php:1037
|
464 |
msgid "Close"
|
465 |
msgstr "Закрыть"
|
466 |
|
467 |
+
#: bws_functions.php:1129
|
468 |
msgid "Restore all plugin settings to defaults"
|
469 |
msgstr "Восстановить все настройки плагина к настройкам по умолчанию"
|
470 |
|
471 |
+
#: bws_functions.php:1131
|
472 |
msgid "Restore settings"
|
473 |
msgstr "Восстановить настройки"
|
474 |
|
475 |
+
#: bws_functions.php:1142
|
476 |
msgid "Are you sure you want to restore all settings by default?"
|
477 |
msgstr ""
|
478 |
"Вы уверены что хотите восстановить все настройки плагина к настройкам по "
|
479 |
"умолчанию?"
|
480 |
|
481 |
+
#: bws_functions.php:1145
|
482 |
msgid "Yes, restore all settings"
|
483 |
msgstr "Да, восстановить все настройки"
|
484 |
|
485 |
+
#: bws_functions.php:1146
|
486 |
msgid "No, go back to the settings page"
|
487 |
msgstr "Нет, вернуться на страницу настроек"
|
488 |
|
489 |
+
#: bws_functions.php:1192
|
490 |
msgid "Plugin"
|
491 |
msgstr "Плагин"
|
492 |
|
493 |
+
#: bws_functions.php:1201
|
494 |
msgid "Shortcode settings"
|
495 |
msgstr "Настройки шорткода"
|
496 |
|
497 |
+
#: bws_functions.php:1206
|
498 |
msgid "The shortcode will be inserted"
|
499 |
msgstr "Будет вставлен шорткод"
|
500 |
|
501 |
+
#: bws_functions.php:1211
|
502 |
msgid "Insert"
|
503 |
msgstr "Вставить"
|
504 |
|
505 |
+
#: bws_functions.php:1244
|
506 |
msgid "Visit Help Center"
|
507 |
msgstr "Перейти в Help Center"
|
508 |
|
509 |
+
#: bws_functions.php:1249
|
510 |
msgid "FAQ"
|
511 |
msgstr "FAQ"
|
512 |
|
513 |
+
#: bws_functions.php:1255
|
514 |
msgid "For more information:"
|
515 |
msgstr "Для дополнительной информации:"
|
516 |
|
517 |
+
#: bws_functions.php:1256
|
518 |
msgid "Documentation"
|
519 |
msgstr "Документация"
|
520 |
|
521 |
+
#: bws_functions.php:1257
|
522 |
msgid "Video Instructions"
|
523 |
msgstr "Видео инструкции"
|
524 |
|
525 |
+
#: bws_functions.php:1258
|
526 |
msgid "Submit a Request"
|
527 |
msgstr "Отправить запрос"
|
528 |
|
529 |
+
#: bws_functions.php:1269
|
530 |
msgid "You do not have sufficient permissions to edit plugins for this site."
|
531 |
msgstr ""
|
532 |
"У вас недостаточно полномочий, чтобы редактировать плагины на этом сайте."
|
533 |
|
534 |
+
#: bws_functions.php:1320 bws_functions.php:1347
|
535 |
#, php-format
|
536 |
msgid "File %s edited successfully."
|
537 |
msgstr "Файл %s успешно изменён."
|
538 |
|
539 |
+
#: bws_functions.php:1322 bws_functions.php:1349
|
540 |
msgid "Not enough permissions to create or update the file"
|
541 |
msgstr "Не достаточно прав для создания или обновления файла"
|
542 |
|
543 |
+
#: bws_functions.php:1352
|
544 |
msgid "Not enough permissions to create the file"
|
545 |
msgstr "Не достаточно прав для создания файла"
|
546 |
|
547 |
+
#: bws_functions.php:1390
|
548 |
msgid "These styles will be added to the header on all pages of your site."
|
549 |
msgstr "Эти стили будут добавлены в хедер на всех страницах вашего сайта."
|
550 |
|
551 |
+
#: bws_functions.php:1392
|
552 |
#, php-format
|
553 |
msgid ""
|
554 |
+
"This PHP code will be hooked to the %s action and will be printed on front "
|
555 |
"end only."
|
556 |
msgstr ""
|
557 |
"Этот PHP код будет прикреплен к %s аction и будет добавлен только во "
|
558 |
"фронтенде."
|
559 |
|
560 |
+
#: bws_functions.php:1396
|
561 |
msgid "Editing"
|
562 |
msgstr "Редактирование"
|
563 |
|
564 |
+
#: bws_functions.php:1398
|
565 |
msgid "Browsing"
|
566 |
msgstr "Просмотр"
|
567 |
|
568 |
+
#: bws_functions.php:1405
|
569 |
#, php-format
|
570 |
msgid "Learn more about %s"
|
571 |
msgstr "Подробнее о %s"
|
572 |
|
573 |
+
#: bws_functions.php:1416
|
574 |
#, php-format
|
575 |
msgid ""
|
576 |
"You need to make this files writable before you can save your changes. See "
|
727 |
msgid "Sorry, email message could not be delivered."
|
728 |
msgstr "Извините, ваш емейл не может быть отправлен."
|
729 |
|
730 |
+
#: bws_menu.php:286 bws_menu.php:632
|
731 |
msgid "System status"
|
732 |
msgstr "Системная информация"
|
733 |
|
743 |
msgid "Client Area"
|
744 |
msgstr "Client Area"
|
745 |
|
746 |
+
#: bws_menu.php:296
|
747 |
+
#, php-format
|
748 |
+
msgid "Get Access to %s+ Premium Plugins"
|
749 |
+
msgstr "Получить Доступ к %s+ Премиум Плагинам"
|
|
|
|
|
|
|
750 |
|
751 |
+
#: bws_menu.php:298
|
752 |
+
msgid "Subscribe to Pro Membership"
|
753 |
+
msgstr "Подписаться на Pro Membership"
|
754 |
|
755 |
+
#: bws_menu.php:309
|
756 |
+
msgid "Enter your license key"
|
757 |
+
msgstr "Ваш лицензионный ключ"
|
758 |
|
759 |
+
#: bws_menu.php:331
|
760 |
msgid "Upload Plugin"
|
761 |
msgstr "Добавить новый"
|
762 |
|
763 |
+
#: bws_menu.php:335
|
764 |
#, php-format
|
765 |
msgid ""
|
766 |
"The plugin generated %d characters of <strong>unexpected output</strong> "
|
773 |
"проблемы с RSS-лентами или другие неполадки, попробуйте деактивировать или "
|
774 |
"удалить этот плагин."
|
775 |
|
776 |
+
#: bws_menu.php:337
|
777 |
msgid ""
|
778 |
"Plugin could not be activated because it triggered a <strong>fatal error</"
|
779 |
"strong>."
|
781 |
"Плагин не может быть активирован, поскольку он вызвал <strong>фатальную "
|
782 |
"ошибку</strong>."
|
783 |
|
784 |
+
#: bws_menu.php:340
|
785 |
msgid "Plugin <strong>activated</strong>."
|
786 |
msgstr "Плагин <strong>активировано</strong>."
|
787 |
|
788 |
+
#: bws_menu.php:347
|
789 |
msgid "Installing Plugin"
|
790 |
msgstr "Установка плагина"
|
791 |
|
792 |
+
#: bws_menu.php:353
|
793 |
msgid "Downloading install package from"
|
794 |
msgstr "Скачивание установочного пакета из"
|
795 |
|
796 |
+
#: bws_menu.php:378
|
797 |
msgid "Unpacking the package"
|
798 |
msgstr "Распаковка пакета"
|
799 |
|
800 |
+
#: bws_menu.php:383 bws_menu.php:391
|
801 |
msgid "Installing the plugin"
|
802 |
msgstr "Установка плагина"
|
803 |
|
804 |
+
#: bws_menu.php:397
|
805 |
msgid "Successfully installed the plugin"
|
806 |
msgstr "Успешно установлен плагин"
|
807 |
|
808 |
+
#: bws_menu.php:409
|
809 |
msgid "Activate Plugin"
|
810 |
msgstr "Активировать плагин"
|
811 |
|
812 |
+
#: bws_menu.php:409 bws_menu.php:415
|
813 |
msgid "Return to BestWebSoft Panel"
|
814 |
msgstr "Возврат к BestWebSoft Panel"
|
815 |
|
816 |
+
#: bws_menu.php:419 bws_menu.php:434 bws_menu.php:563
|
817 |
msgid "All"
|
818 |
msgstr "Все"
|
819 |
|
820 |
+
#: bws_menu.php:420 bws_menu.php:620
|
821 |
msgid "Installed"
|
822 |
msgstr "Установленные"
|
823 |
|
824 |
+
#: bws_menu.php:421
|
825 |
msgid "Not Installed"
|
826 |
msgstr "Не установленные"
|
827 |
|
828 |
+
#: bws_menu.php:427
|
829 |
msgid "Filter results"
|
830 |
msgstr "Фильтр результатов"
|
831 |
|
832 |
+
#: bws_menu.php:430 bws_menu.php:559
|
833 |
msgid "Category"
|
834 |
msgstr "Категория"
|
835 |
|
836 |
+
#: bws_menu.php:494
|
837 |
msgid "Not installed"
|
838 |
msgstr "Не установлен"
|
839 |
|
840 |
+
#: bws_menu.php:498
|
841 |
msgid "Renew to get updates"
|
842 |
msgstr "Продлить для обновления"
|
843 |
|
844 |
+
#: bws_menu.php:501
|
845 |
#, php-format
|
846 |
msgid "Update to v %s"
|
847 |
msgstr "Обновить до версии %s"
|
848 |
|
849 |
+
#: bws_menu.php:513 bws_menu.php:536 bws_menu.php:545
|
850 |
msgid "Install Now"
|
851 |
msgstr "Установить"
|
852 |
|
853 |
+
#: bws_menu.php:519
|
854 |
msgid "Upgrade to Pro"
|
855 |
msgstr "Обновиться на Pro"
|
856 |
|
857 |
+
#: bws_menu.php:523
|
858 |
msgid "Donate"
|
859 |
msgstr "Пожертвовать"
|
860 |
|
861 |
+
#: bws_menu.php:533 bws_menu.php:542
|
862 |
msgid "Activate this plugin"
|
863 |
msgstr "Активировать плагин"
|
864 |
|
865 |
+
#: bws_menu.php:545
|
866 |
msgid "Install this plugin"
|
867 |
msgstr "Установить этот плагин"
|
868 |
|
869 |
+
#: bws_menu.php:554
|
870 |
msgid "Nothing found. Try another criteria."
|
871 |
msgstr "Ничего не найдено. Попробуйте другие критерии."
|
872 |
|
873 |
+
#: bws_menu.php:591 bws_menu.php:611
|
874 |
#, php-format
|
875 |
msgid "By %s"
|
876 |
msgstr "%s"
|
877 |
|
878 |
+
#: bws_menu.php:618
|
879 |
msgid "Already Installed"
|
880 |
msgstr "Уже установлена"
|
881 |
|
882 |
+
#: bws_menu.php:629
|
883 |
msgid "Browse Free WordPress Themes"
|
884 |
msgstr "Обзор бесплатных WordPress тем"
|
885 |
|
886 |
+
#: bws_menu.php:638
|
887 |
msgid "Send to support"
|
888 |
msgstr "Отправить в тех. поддержку"
|
889 |
|
890 |
+
#: bws_menu.php:645
|
891 |
msgid "Send to custom email »"
|
892 |
msgstr "Отправить на емейл »"
|
893 |
|
894 |
+
#: bws_menu.php:652
|
895 |
msgid "Environment"
|
896 |
msgstr "Системная среда"
|
897 |
|
898 |
+
#: bws_menu.php:663
|
899 |
msgid "Active Plugins"
|
900 |
msgstr "Активированные плагины"
|
901 |
|
902 |
+
#: bws_menu.php:676
|
903 |
msgid "Inactive Plugins"
|
904 |
msgstr "Неактивированные плагины"
|
905 |
|
939 |
msgid "Other"
|
940 |
msgstr "Другое"
|
941 |
|
942 |
+
#~ msgid "Activate Membership"
|
943 |
+
#~ msgstr "Активировать Membership"
|
944 |
+
|
945 |
+
#~ msgid "Don’t have valid license key yet?"
|
946 |
+
#~ msgstr "Нет действующего лицензионного ключа?"
|
947 |
|
948 |
#~ msgid ""
|
949 |
#~ "Join BestWebSoft Pro Membership today, cancel any time and use all "
|
bws_menu/languages/bestwebsoft-uk.mo
CHANGED
Binary file
|
bws_menu/languages/bestwebsoft-uk.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bestwebsoft\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2016-
|
6 |
-
"PO-Revision-Date: 2016-
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: bestwebsoft.com <http://support.bestwebsoft.com>\n"
|
9 |
"Language: ru_RU\n"
|
@@ -16,11 +16,11 @@ msgstr ""
|
|
16 |
"X-Generator: Poedit 1.5.4\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
-
#: bws_functions.php:38 bws_menu.php:282 bws_menu.php:
|
20 |
msgid "Plugins"
|
21 |
msgstr "Плагіни"
|
22 |
|
23 |
-
#: bws_functions.php:39 bws_menu.php:283 bws_menu.php:
|
24 |
msgid "Themes"
|
25 |
msgstr "Теми"
|
26 |
|
@@ -64,12 +64,12 @@ msgstr "Дякуємо, що встановили"
|
|
64 |
msgid "Let's get started"
|
65 |
msgstr "Розпочнемо"
|
66 |
|
67 |
-
#: bws_functions.php:120 bws_functions.php:153 bws_menu.php:
|
68 |
-
#: bws_menu.php:
|
69 |
msgid "Settings"
|
70 |
msgstr "Налаштування"
|
71 |
|
72 |
-
#: bws_functions.php:122 bws_functions.php:479
|
73 |
msgid "or"
|
74 |
msgstr "або"
|
75 |
|
@@ -78,7 +78,7 @@ msgid "Add New"
|
|
78 |
msgstr "Додати"
|
79 |
|
80 |
#: bws_functions.php:127 bws_functions.php:137 bws_functions.php:213
|
81 |
-
#: bws_functions.php:
|
82 |
msgid "Close notice"
|
83 |
msgstr "Закрити"
|
84 |
|
@@ -110,7 +110,7 @@ msgstr "версії!"
|
|
110 |
msgid "Extend standard plugin functionality with new great options."
|
111 |
msgstr "Розширює можливості стандартного функціоналу плагіна."
|
112 |
|
113 |
-
#: bws_functions.php:222 bws_functions.php:
|
114 |
msgid "Learn More"
|
115 |
msgstr "Дізнатись більше"
|
116 |
|
@@ -183,16 +183,16 @@ msgstr ""
|
|
183 |
"версії плагіну можна використати лише один раз."
|
184 |
|
185 |
#: bws_functions.php:349 bws_functions.php:371 bws_functions.php:393
|
186 |
-
#: bws_menu.php:
|
187 |
msgid "Failed to download the zip archive. Please, upload the plugin manually"
|
188 |
msgstr ""
|
189 |
"Помилка при завантаженні zip-архіву. Будь ласка, завантажте плагін вручну"
|
190 |
|
191 |
-
#: bws_functions.php:361 bws_menu.php:
|
192 |
msgid "Failed to open the zip archive. Please, upload the plugin manually"
|
193 |
msgstr "Помилка при відкритті zip-архіву. Будь ласка, завантажте плагін вручну"
|
194 |
|
195 |
-
#: bws_functions.php:367 bws_menu.php:
|
196 |
msgid ""
|
197 |
"Your server does not support either ZipArchive or Phar. Please, upload the "
|
198 |
"plugin manually"
|
@@ -200,7 +200,7 @@ msgstr ""
|
|
200 |
"Ваш сервер не підтримує формати Zip і Phar. Будь ласка, завантажте плагін "
|
201 |
"вручну"
|
202 |
|
203 |
-
#: bws_functions.php:374 bws_menu.php:
|
204 |
msgid "UploadDir is not writable. Please, upload the plugin manually"
|
205 |
msgstr ""
|
206 |
"Немає доступу до теки завантажень WordPress. Будь ласка, завантажте плагін "
|
@@ -262,8 +262,8 @@ msgid "Start Your Free %s-Day Trial Now"
|
|
262 |
msgstr "Спробуйте %s-денну тріал версію безкоштовно"
|
263 |
|
264 |
#: bws_functions.php:485 bws_functions.php:494 bws_functions.php:524
|
265 |
-
#: bws_functions.php:532 bws_functions.php:
|
266 |
-
#: bws_menu.php:
|
267 |
msgid "Activate"
|
268 |
msgstr "Активувати"
|
269 |
|
@@ -349,15 +349,15 @@ msgstr ""
|
|
349 |
"(ваше ім'я користувача - це емейл, який ви вказували при купівлі). При "
|
350 |
"необхідності, будь ласка, відправте запит на відновлення вашого паролю."
|
351 |
|
352 |
-
#: bws_functions.php:651 bws_menu.php:
|
353 |
msgid "Check license key"
|
354 |
msgstr "Перевірте ліцензійний ключ"
|
355 |
|
356 |
-
#: bws_functions.php:
|
357 |
msgid "WARNING: Illegal use notification"
|
358 |
msgstr "УВАГА: виявлено несанкціоноване використання плагіну"
|
359 |
|
360 |
-
#: bws_functions.php:
|
361 |
msgid ""
|
362 |
"You can use one license of the Pro plugin for one domain only. Please check "
|
363 |
"and edit your license or domain if necessary using you personal Client Area. "
|
@@ -369,7 +369,7 @@ msgstr ""
|
|
369 |
"вкладці Client Area. Ми настійливо рекомендуємо Вам вирішити це питання "
|
370 |
"протягом 24 годин, інакше плагін буде деактивовано."
|
371 |
|
372 |
-
#: bws_functions.php:
|
373 |
msgid ""
|
374 |
"Notice: Your Pro Trial license has expired. To continue using the plugin you "
|
375 |
"should buy a Pro license"
|
@@ -377,7 +377,7 @@ msgstr ""
|
|
377 |
"Увага: Термін дії тріал періоду Pro версії плагіну скінчився. Щоб продовжити "
|
378 |
"користуватись плагіном, будь ласка, придбайте ліцензію Pro"
|
379 |
|
380 |
-
#: bws_functions.php:
|
381 |
msgid ""
|
382 |
"Your license has expired. To continue getting top-priority support and "
|
383 |
"plugin updates you should extend it."
|
@@ -385,42 +385,42 @@ msgstr ""
|
|
385 |
"Строк вашої ліцензії витік. Якщо ви хочете оновлювати наш плагін у "
|
386 |
"майбутньому, вам слід подовжити ліцензію."
|
387 |
|
388 |
-
#: bws_functions.php:
|
389 |
msgid "Learn more"
|
390 |
msgstr "Дізнатись більше"
|
391 |
|
392 |
-
#: bws_functions.php:
|
393 |
#, php-format
|
394 |
msgid "Notice: You are using the Pro Trial license of %s plugin."
|
395 |
msgstr "Увага: Ви використовуєте тріал Pro версію плагіну %s."
|
396 |
|
397 |
-
#: bws_functions.php:
|
398 |
msgid "Notice: You are using the Pro Trial license of plugin."
|
399 |
msgstr "Увага: Ви використовуєте тріал Pro версію плагіну."
|
400 |
|
401 |
-
#: bws_functions.php:
|
402 |
msgid "The Pro Trial license will expire on"
|
403 |
msgstr "Тріал період Pro версії плагіну закінчується"
|
404 |
|
405 |
-
#: bws_functions.php:
|
406 |
msgid "You license for"
|
407 |
msgstr "Ваша ліцензія для"
|
408 |
|
409 |
-
#: bws_functions.php:
|
410 |
msgid "expires on"
|
411 |
msgstr "витікає"
|
412 |
|
413 |
-
#: bws_functions.php:
|
414 |
msgid "and you won't be granted TOP-PRIORITY SUPPORT or UPDATES."
|
415 |
msgstr ""
|
416 |
"та ви більше не будете отримувати першочергову технічну підтримку та "
|
417 |
"оновлення."
|
418 |
|
419 |
-
#: bws_functions.php:
|
420 |
msgid "Thank you for choosing"
|
421 |
msgstr "Дякуємо, що обрали"
|
422 |
|
423 |
-
#: bws_functions.php:
|
424 |
msgid ""
|
425 |
"If you have a feature, suggestion or idea you'd like to see in the plugin, "
|
426 |
"we'd love to hear about it!"
|
@@ -429,23 +429,23 @@ msgstr ""
|
|
429 |
"функціоналу плагіна, будь ласка, надсилайте їх нам! Ми завжди відкриті для "
|
430 |
"нових ідей!"
|
431 |
|
432 |
-
#: bws_functions.php:
|
433 |
msgid "Suggest a Feature"
|
434 |
msgstr "Запропонувати функціонал"
|
435 |
|
436 |
-
#: bws_functions.php:
|
437 |
msgid "Notice"
|
438 |
msgstr "Зауважте"
|
439 |
|
440 |
-
#: bws_functions.php:
|
441 |
msgid "The plugin's settings have been changed."
|
442 |
msgstr "Налаштування плагіну змінено."
|
443 |
|
444 |
-
#: bws_functions.php:
|
445 |
msgid "Save Changes"
|
446 |
msgstr "Зберегти зміни"
|
447 |
|
448 |
-
#: bws_functions.php:
|
449 |
msgid ""
|
450 |
"You can always look at premium options by clicking on the \"Show Pro features"
|
451 |
"\" in the \"Go PRO\" tab"
|
@@ -453,121 +453,121 @@ msgstr ""
|
|
453 |
"Ви завжди можете подивитися на преміум опції, натиснувши на кнопку "
|
454 |
"\"Показати Pro особливост\" на вкладці \"Перейти на PRO\""
|
455 |
|
456 |
-
#: bws_functions.php:
|
457 |
msgid "Add shortcode"
|
458 |
msgstr "Додати шорткод"
|
459 |
|
460 |
-
#: bws_functions.php:
|
461 |
msgid "Add BestWebSoft plugins' shortcodes using this button."
|
462 |
msgstr "Додайте шорткоди BestWebSoft плагінів за допомогою цієї кнопки."
|
463 |
|
464 |
-
#: bws_functions.php:
|
465 |
msgid "Close"
|
466 |
msgstr "Закрити"
|
467 |
|
468 |
-
#: bws_functions.php:
|
469 |
msgid "Restore all plugin settings to defaults"
|
470 |
msgstr "Скинути налаштування плагіну до стандартних"
|
471 |
|
472 |
-
#: bws_functions.php:
|
473 |
msgid "Restore settings"
|
474 |
msgstr "Скинути налаштування"
|
475 |
|
476 |
-
#: bws_functions.php:
|
477 |
msgid "Are you sure you want to restore all settings by default?"
|
478 |
msgstr "Ви впевнені, що хочете скинути налаштування плагіну до стандартних?"
|
479 |
|
480 |
-
#: bws_functions.php:
|
481 |
msgid "Yes, restore all settings"
|
482 |
msgstr "Так, скинути налаштування"
|
483 |
|
484 |
-
#: bws_functions.php:
|
485 |
msgid "No, go back to the settings page"
|
486 |
msgstr "Ні, повернутись назад на сторінку налаштувань"
|
487 |
|
488 |
-
#: bws_functions.php:
|
489 |
msgid "Plugin"
|
490 |
msgstr "Плагін"
|
491 |
|
492 |
-
#: bws_functions.php:
|
493 |
msgid "Shortcode settings"
|
494 |
msgstr "Налаштування шорткоду"
|
495 |
|
496 |
-
#: bws_functions.php:
|
497 |
msgid "The shortcode will be inserted"
|
498 |
msgstr "Буде вставлено шорткод"
|
499 |
|
500 |
-
#: bws_functions.php:
|
501 |
msgid "Insert"
|
502 |
msgstr "Вставити"
|
503 |
|
504 |
-
#: bws_functions.php:
|
505 |
msgid "Visit Help Center"
|
506 |
msgstr "Перейти в Help Center"
|
507 |
|
508 |
-
#: bws_functions.php:
|
509 |
msgid "FAQ"
|
510 |
msgstr "FAQ"
|
511 |
|
512 |
-
#: bws_functions.php:
|
513 |
msgid "For more information:"
|
514 |
msgstr "Для отримання додаткової інформації:"
|
515 |
|
516 |
-
#: bws_functions.php:
|
517 |
msgid "Documentation"
|
518 |
msgstr "Документація"
|
519 |
|
520 |
-
#: bws_functions.php:
|
521 |
msgid "Video Instructions"
|
522 |
msgstr "Відео інструкції"
|
523 |
|
524 |
-
#: bws_functions.php:
|
525 |
msgid "Submit a Request"
|
526 |
msgstr "Надіслати запит"
|
527 |
|
528 |
-
#: bws_functions.php:
|
529 |
msgid "You do not have sufficient permissions to edit plugins for this site."
|
530 |
msgstr "У вас недостатньо повноважень для редагування плагінів цього сайту."
|
531 |
|
532 |
-
#: bws_functions.php:
|
533 |
#, php-format
|
534 |
msgid "File %s edited successfully."
|
535 |
msgstr "Файл %s успішно відредаговано."
|
536 |
|
537 |
-
#: bws_functions.php:
|
538 |
msgid "Not enough permissions to create or update the file"
|
539 |
msgstr "У Вас недостатньо дозволів для створення або поновлення файлу"
|
540 |
|
541 |
-
#: bws_functions.php:
|
542 |
msgid "Not enough permissions to create the file"
|
543 |
msgstr "У Вас недостатньо дозволів для створення файлу"
|
544 |
|
545 |
-
#: bws_functions.php:
|
546 |
msgid "These styles will be added to the header on all pages of your site."
|
547 |
msgstr "Ці стилі будуть додані в заголовок на всіх сторінках вашого сайту."
|
548 |
|
549 |
-
#: bws_functions.php:
|
550 |
#, php-format
|
551 |
msgid ""
|
552 |
-
"
|
553 |
"end only."
|
554 |
msgstr ""
|
555 |
"Цей PHP код буде прикріплений до %s action і буде додано лише у фронтенді."
|
556 |
|
557 |
-
#: bws_functions.php:
|
558 |
msgid "Editing"
|
559 |
msgstr "Редагування"
|
560 |
|
561 |
-
#: bws_functions.php:
|
562 |
msgid "Browsing"
|
563 |
msgstr "Огляд"
|
564 |
|
565 |
-
#: bws_functions.php:
|
566 |
#, php-format
|
567 |
msgid "Learn more about %s"
|
568 |
msgstr "Дізнатись більше про %s"
|
569 |
|
570 |
-
#: bws_functions.php:
|
571 |
#, php-format
|
572 |
msgid ""
|
573 |
"You need to make this files writable before you can save your changes. See "
|
@@ -724,7 +724,7 @@ msgstr "Дякуємо, що звернулись до нас."
|
|
724 |
msgid "Sorry, email message could not be delivered."
|
725 |
msgstr "Вибачте, ваше емейл не може бути доставлено"
|
726 |
|
727 |
-
#: bws_menu.php:286 bws_menu.php:
|
728 |
msgid "System status"
|
729 |
msgstr "Системна інформація"
|
730 |
|
@@ -740,27 +740,24 @@ msgstr "Управління придбаними ліцензіями і під
|
|
740 |
msgid "Client Area"
|
741 |
msgstr "Client Area"
|
742 |
|
743 |
-
#: bws_menu.php:
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
#: bws_menu.php:311
|
748 |
-
msgid "Activate Membership"
|
749 |
-
msgstr "Активувати Membership"
|
750 |
|
751 |
-
#: bws_menu.php:
|
752 |
-
msgid "
|
753 |
-
msgstr "
|
754 |
|
755 |
-
#: bws_menu.php:
|
756 |
-
msgid "
|
757 |
-
msgstr "
|
758 |
|
759 |
-
#: bws_menu.php:
|
760 |
msgid "Upload Plugin"
|
761 |
msgstr "Завантажити плагін"
|
762 |
|
763 |
-
#: bws_menu.php:
|
764 |
#, php-format
|
765 |
msgid ""
|
766 |
"The plugin generated %d characters of <strong>unexpected output</strong> "
|
@@ -773,7 +770,7 @@ msgstr ""
|
|
773 |
"надіслані”, проблеми з каналами чи інші неполадки, спробуйте вимкнути "
|
774 |
"чи видалити цей плагін."
|
775 |
|
776 |
-
#: bws_menu.php:
|
777 |
msgid ""
|
778 |
"Plugin could not be activated because it triggered a <strong>fatal error</"
|
779 |
"strong>."
|
@@ -781,125 +778,125 @@ msgstr ""
|
|
781 |
"Плагін не вдалося активувати, бо він спричинив <strong>критичну помилку</"
|
782 |
"strong>."
|
783 |
|
784 |
-
#: bws_menu.php:
|
785 |
msgid "Plugin <strong>activated</strong>."
|
786 |
msgstr "Плагін <strong>активовано</strong>."
|
787 |
|
788 |
-
#: bws_menu.php:
|
789 |
msgid "Installing Plugin"
|
790 |
msgstr "Встановлення плагіну"
|
791 |
|
792 |
-
#: bws_menu.php:
|
793 |
msgid "Downloading install package from"
|
794 |
msgstr "Завантаження встановлюючого пакунку з"
|
795 |
|
796 |
-
#: bws_menu.php:
|
797 |
msgid "Unpacking the package"
|
798 |
msgstr "Розпакування пакета"
|
799 |
|
800 |
-
#: bws_menu.php:
|
801 |
msgid "Installing the plugin"
|
802 |
msgstr "Встановлення плагіну"
|
803 |
|
804 |
-
#: bws_menu.php:
|
805 |
msgid "Successfully installed the plugin"
|
806 |
msgstr "Успішно встановлено плагін"
|
807 |
|
808 |
-
#: bws_menu.php:
|
809 |
msgid "Activate Plugin"
|
810 |
msgstr "Активувати плагін"
|
811 |
|
812 |
-
#: bws_menu.php:
|
813 |
msgid "Return to BestWebSoft Panel"
|
814 |
msgstr "Назад до BestWebSoft Panel"
|
815 |
|
816 |
-
#: bws_menu.php:
|
817 |
msgid "All"
|
818 |
msgstr "Всі"
|
819 |
|
820 |
-
#: bws_menu.php:
|
821 |
msgid "Installed"
|
822 |
msgstr "Встановлені"
|
823 |
|
824 |
-
#: bws_menu.php:
|
825 |
msgid "Not Installed"
|
826 |
msgstr "Не встановлені"
|
827 |
|
828 |
-
#: bws_menu.php:
|
829 |
msgid "Filter results"
|
830 |
msgstr "Фільтр результатів"
|
831 |
|
832 |
-
#: bws_menu.php:
|
833 |
msgid "Category"
|
834 |
msgstr "Категорія"
|
835 |
|
836 |
-
#: bws_menu.php:
|
837 |
msgid "Not installed"
|
838 |
msgstr "Не встановлен"
|
839 |
|
840 |
-
#: bws_menu.php:
|
841 |
msgid "Renew to get updates"
|
842 |
msgstr "Продовжити для поновлення"
|
843 |
|
844 |
-
#: bws_menu.php:
|
845 |
#, php-format
|
846 |
msgid "Update to v %s"
|
847 |
msgstr "Оновити до версії %s"
|
848 |
|
849 |
-
#: bws_menu.php:
|
850 |
msgid "Install Now"
|
851 |
msgstr "Встановити"
|
852 |
|
853 |
-
#: bws_menu.php:
|
854 |
msgid "Upgrade to Pro"
|
855 |
msgstr "Оновитися на Pro"
|
856 |
|
857 |
-
#: bws_menu.php:
|
858 |
msgid "Donate"
|
859 |
msgstr "Пожертвувати"
|
860 |
|
861 |
-
#: bws_menu.php:
|
862 |
msgid "Activate this plugin"
|
863 |
msgstr "Активувати плагін"
|
864 |
|
865 |
-
#: bws_menu.php:
|
866 |
msgid "Install this plugin"
|
867 |
msgstr "Встановити плагін"
|
868 |
|
869 |
-
#: bws_menu.php:
|
870 |
msgid "Nothing found. Try another criteria."
|
871 |
msgstr "Нічого не знайдено. Спробуйте інші критерії."
|
872 |
|
873 |
-
#: bws_menu.php:
|
874 |
#, php-format
|
875 |
msgid "By %s"
|
876 |
msgstr "За %s"
|
877 |
|
878 |
-
#: bws_menu.php:
|
879 |
msgid "Already Installed"
|
880 |
msgstr "Уже встановлено %s"
|
881 |
|
882 |
-
#: bws_menu.php:
|
883 |
msgid "Browse Free WordPress Themes"
|
884 |
msgstr "Огляд безкоштовних WordPress тем"
|
885 |
|
886 |
-
#: bws_menu.php:
|
887 |
msgid "Send to support"
|
888 |
msgstr "Відправити службі тех. підтримки"
|
889 |
|
890 |
-
#: bws_menu.php:
|
891 |
msgid "Send to custom email »"
|
892 |
msgstr "Відправити на електронну адресу »"
|
893 |
|
894 |
-
#: bws_menu.php:
|
895 |
msgid "Environment"
|
896 |
msgstr "Системне оточення"
|
897 |
|
898 |
-
#: bws_menu.php:
|
899 |
msgid "Active Plugins"
|
900 |
msgstr "Активні плагіни"
|
901 |
|
902 |
-
#: bws_menu.php:
|
903 |
msgid "Inactive Plugins"
|
904 |
msgstr "Не активні плагіни"
|
905 |
|
@@ -939,8 +936,11 @@ msgstr "Утиліти"
|
|
939 |
msgid "Other"
|
940 |
msgstr "Інше"
|
941 |
|
942 |
-
#~ msgid "
|
943 |
-
#~ msgstr "
|
|
|
|
|
|
|
944 |
|
945 |
#~ msgid ""
|
946 |
#~ "Join BestWebSoft Pro Membership today, cancel any time and use all "
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bestwebsoft\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2016-08-04 15:44+0300\n"
|
6 |
+
"PO-Revision-Date: 2016-08-04 15:44+0300\n"
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: bestwebsoft.com <http://support.bestwebsoft.com>\n"
|
9 |
"Language: ru_RU\n"
|
16 |
"X-Generator: Poedit 1.5.4\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
+
#: bws_functions.php:38 bws_menu.php:282 bws_menu.php:330
|
20 |
msgid "Plugins"
|
21 |
msgstr "Плагіни"
|
22 |
|
23 |
+
#: bws_functions.php:39 bws_menu.php:283 bws_menu.php:581
|
24 |
msgid "Themes"
|
25 |
msgstr "Теми"
|
26 |
|
64 |
msgid "Let's get started"
|
65 |
msgstr "Розпочнемо"
|
66 |
|
67 |
+
#: bws_functions.php:120 bws_functions.php:153 bws_menu.php:527
|
68 |
+
#: bws_menu.php:529
|
69 |
msgid "Settings"
|
70 |
msgstr "Налаштування"
|
71 |
|
72 |
+
#: bws_functions.php:122 bws_functions.php:479 bws_menu.php:298
|
73 |
msgid "or"
|
74 |
msgstr "або"
|
75 |
|
78 |
msgstr "Додати"
|
79 |
|
80 |
#: bws_functions.php:127 bws_functions.php:137 bws_functions.php:213
|
81 |
+
#: bws_functions.php:727 bws_functions.php:831
|
82 |
msgid "Close notice"
|
83 |
msgstr "Закрити"
|
84 |
|
110 |
msgid "Extend standard plugin functionality with new great options."
|
111 |
msgstr "Розширює можливості стандартного функціоналу плагіна."
|
112 |
|
113 |
+
#: bws_functions.php:222 bws_functions.php:666 bws_menu.php:597
|
114 |
msgid "Learn More"
|
115 |
msgstr "Дізнатись більше"
|
116 |
|
183 |
"версії плагіну можна використати лише один раз."
|
184 |
|
185 |
#: bws_functions.php:349 bws_functions.php:371 bws_functions.php:393
|
186 |
+
#: bws_menu.php:370 bws_menu.php:401 bws_menu.php:412
|
187 |
msgid "Failed to download the zip archive. Please, upload the plugin manually"
|
188 |
msgstr ""
|
189 |
"Помилка при завантаженні zip-архіву. Будь ласка, завантажте плагін вручну"
|
190 |
|
191 |
+
#: bws_functions.php:361 bws_menu.php:387
|
192 |
msgid "Failed to open the zip archive. Please, upload the plugin manually"
|
193 |
msgstr "Помилка при відкритті zip-архіву. Будь ласка, завантажте плагін вручну"
|
194 |
|
195 |
+
#: bws_functions.php:367 bws_menu.php:394
|
196 |
msgid ""
|
197 |
"Your server does not support either ZipArchive or Phar. Please, upload the "
|
198 |
"plugin manually"
|
200 |
"Ваш сервер не підтримує формати Zip і Phar. Будь ласка, завантажте плагін "
|
201 |
"вручну"
|
202 |
|
203 |
+
#: bws_functions.php:374 bws_menu.php:404
|
204 |
msgid "UploadDir is not writable. Please, upload the plugin manually"
|
205 |
msgstr ""
|
206 |
"Немає доступу до теки завантажень WordPress. Будь ласка, завантажте плагін "
|
262 |
msgstr "Спробуйте %s-денну тріал версію безкоштовно"
|
263 |
|
264 |
#: bws_functions.php:485 bws_functions.php:494 bws_functions.php:524
|
265 |
+
#: bws_functions.php:532 bws_functions.php:1401 bws_menu.php:315
|
266 |
+
#: bws_menu.php:533 bws_menu.php:542
|
267 |
msgid "Activate"
|
268 |
msgstr "Активувати"
|
269 |
|
349 |
"(ваше ім'я користувача - це емейл, який ви вказували при купівлі). При "
|
350 |
"необхідності, будь ласка, відправте запит на відновлення вашого паролю."
|
351 |
|
352 |
+
#: bws_functions.php:651 bws_menu.php:306 bws_menu.php:317
|
353 |
msgid "Check license key"
|
354 |
msgstr "Перевірте ліцензійний ключ"
|
355 |
|
356 |
+
#: bws_functions.php:666
|
357 |
msgid "WARNING: Illegal use notification"
|
358 |
msgstr "УВАГА: виявлено несанкціоноване використання плагіну"
|
359 |
|
360 |
+
#: bws_functions.php:666
|
361 |
msgid ""
|
362 |
"You can use one license of the Pro plugin for one domain only. Please check "
|
363 |
"and edit your license or domain if necessary using you personal Client Area. "
|
369 |
"вкладці Client Area. Ми настійливо рекомендуємо Вам вирішити це питання "
|
370 |
"протягом 24 годин, інакше плагін буде деактивовано."
|
371 |
|
372 |
+
#: bws_functions.php:675
|
373 |
msgid ""
|
374 |
"Notice: Your Pro Trial license has expired. To continue using the plugin you "
|
375 |
"should buy a Pro license"
|
377 |
"Увага: Термін дії тріал періоду Pro версії плагіну скінчився. Щоб продовжити "
|
378 |
"користуватись плагіном, будь ласка, придбайте ліцензію Pro"
|
379 |
|
380 |
+
#: bws_functions.php:677
|
381 |
msgid ""
|
382 |
"Your license has expired. To continue getting top-priority support and "
|
383 |
"plugin updates you should extend it."
|
385 |
"Строк вашої ліцензії витік. Якщо ви хочете оновлювати наш плагін у "
|
386 |
"майбутньому, вам слід подовжити ліцензію."
|
387 |
|
388 |
+
#: bws_functions.php:677 bws_functions.php:731 bws_functions.php:1356
|
389 |
msgid "Learn more"
|
390 |
msgstr "Дізнатись більше"
|
391 |
|
392 |
+
#: bws_functions.php:688
|
393 |
#, php-format
|
394 |
msgid "Notice: You are using the Pro Trial license of %s plugin."
|
395 |
msgstr "Увага: Ви використовуєте тріал Pro версію плагіну %s."
|
396 |
|
397 |
+
#: bws_functions.php:690
|
398 |
msgid "Notice: You are using the Pro Trial license of plugin."
|
399 |
msgstr "Увага: Ви використовуєте тріал Pro версію плагіну."
|
400 |
|
401 |
+
#: bws_functions.php:693
|
402 |
msgid "The Pro Trial license will expire on"
|
403 |
msgstr "Тріал період Pro версії плагіну закінчується"
|
404 |
|
405 |
+
#: bws_functions.php:731
|
406 |
msgid "You license for"
|
407 |
msgstr "Ваша ліцензія для"
|
408 |
|
409 |
+
#: bws_functions.php:731
|
410 |
msgid "expires on"
|
411 |
msgstr "витікає"
|
412 |
|
413 |
+
#: bws_functions.php:731
|
414 |
msgid "and you won't be granted TOP-PRIORITY SUPPORT or UPDATES."
|
415 |
msgstr ""
|
416 |
"та ви більше не будете отримувати першочергову технічну підтримку та "
|
417 |
"оновлення."
|
418 |
|
419 |
+
#: bws_functions.php:826
|
420 |
msgid "Thank you for choosing"
|
421 |
msgstr "Дякуємо, що обрали"
|
422 |
|
423 |
+
#: bws_functions.php:827
|
424 |
msgid ""
|
425 |
"If you have a feature, suggestion or idea you'd like to see in the plugin, "
|
426 |
"we'd love to hear about it!"
|
429 |
"функціоналу плагіна, будь ласка, надсилайте їх нам! Ми завжди відкриті для "
|
430 |
"нових ідей!"
|
431 |
|
432 |
+
#: bws_functions.php:828
|
433 |
msgid "Suggest a Feature"
|
434 |
msgstr "Запропонувати функціонал"
|
435 |
|
436 |
+
#: bws_functions.php:844
|
437 |
msgid "Notice"
|
438 |
msgstr "Зауважте"
|
439 |
|
440 |
+
#: bws_functions.php:844
|
441 |
msgid "The plugin's settings have been changed."
|
442 |
msgstr "Налаштування плагіну змінено."
|
443 |
|
444 |
+
#: bws_functions.php:845 bws_functions.php:1412
|
445 |
msgid "Save Changes"
|
446 |
msgstr "Зберегти зміни"
|
447 |
|
448 |
+
#: bws_functions.php:859
|
449 |
msgid ""
|
450 |
"You can always look at premium options by clicking on the \"Show Pro features"
|
451 |
"\" in the \"Go PRO\" tab"
|
453 |
"Ви завжди можете подивитися на преміум опції, натиснувши на кнопку "
|
454 |
"\"Показати Pro особливост\" на вкладці \"Перейти на PRO\""
|
455 |
|
456 |
+
#: bws_functions.php:988
|
457 |
msgid "Add shortcode"
|
458 |
msgstr "Додати шорткод"
|
459 |
|
460 |
+
#: bws_functions.php:988
|
461 |
msgid "Add BestWebSoft plugins' shortcodes using this button."
|
462 |
msgstr "Додайте шорткоди BestWebSoft плагінів за допомогою цієї кнопки."
|
463 |
|
464 |
+
#: bws_functions.php:1037
|
465 |
msgid "Close"
|
466 |
msgstr "Закрити"
|
467 |
|
468 |
+
#: bws_functions.php:1129
|
469 |
msgid "Restore all plugin settings to defaults"
|
470 |
msgstr "Скинути налаштування плагіну до стандартних"
|
471 |
|
472 |
+
#: bws_functions.php:1131
|
473 |
msgid "Restore settings"
|
474 |
msgstr "Скинути налаштування"
|
475 |
|
476 |
+
#: bws_functions.php:1142
|
477 |
msgid "Are you sure you want to restore all settings by default?"
|
478 |
msgstr "Ви впевнені, що хочете скинути налаштування плагіну до стандартних?"
|
479 |
|
480 |
+
#: bws_functions.php:1145
|
481 |
msgid "Yes, restore all settings"
|
482 |
msgstr "Так, скинути налаштування"
|
483 |
|
484 |
+
#: bws_functions.php:1146
|
485 |
msgid "No, go back to the settings page"
|
486 |
msgstr "Ні, повернутись назад на сторінку налаштувань"
|
487 |
|
488 |
+
#: bws_functions.php:1192
|
489 |
msgid "Plugin"
|
490 |
msgstr "Плагін"
|
491 |
|
492 |
+
#: bws_functions.php:1201
|
493 |
msgid "Shortcode settings"
|
494 |
msgstr "Налаштування шорткоду"
|
495 |
|
496 |
+
#: bws_functions.php:1206
|
497 |
msgid "The shortcode will be inserted"
|
498 |
msgstr "Буде вставлено шорткод"
|
499 |
|
500 |
+
#: bws_functions.php:1211
|
501 |
msgid "Insert"
|
502 |
msgstr "Вставити"
|
503 |
|
504 |
+
#: bws_functions.php:1244
|
505 |
msgid "Visit Help Center"
|
506 |
msgstr "Перейти в Help Center"
|
507 |
|
508 |
+
#: bws_functions.php:1249
|
509 |
msgid "FAQ"
|
510 |
msgstr "FAQ"
|
511 |
|
512 |
+
#: bws_functions.php:1255
|
513 |
msgid "For more information:"
|
514 |
msgstr "Для отримання додаткової інформації:"
|
515 |
|
516 |
+
#: bws_functions.php:1256
|
517 |
msgid "Documentation"
|
518 |
msgstr "Документація"
|
519 |
|
520 |
+
#: bws_functions.php:1257
|
521 |
msgid "Video Instructions"
|
522 |
msgstr "Відео інструкції"
|
523 |
|
524 |
+
#: bws_functions.php:1258
|
525 |
msgid "Submit a Request"
|
526 |
msgstr "Надіслати запит"
|
527 |
|
528 |
+
#: bws_functions.php:1269
|
529 |
msgid "You do not have sufficient permissions to edit plugins for this site."
|
530 |
msgstr "У вас недостатньо повноважень для редагування плагінів цього сайту."
|
531 |
|
532 |
+
#: bws_functions.php:1320 bws_functions.php:1347
|
533 |
#, php-format
|
534 |
msgid "File %s edited successfully."
|
535 |
msgstr "Файл %s успішно відредаговано."
|
536 |
|
537 |
+
#: bws_functions.php:1322 bws_functions.php:1349
|
538 |
msgid "Not enough permissions to create or update the file"
|
539 |
msgstr "У Вас недостатньо дозволів для створення або поновлення файлу"
|
540 |
|
541 |
+
#: bws_functions.php:1352
|
542 |
msgid "Not enough permissions to create the file"
|
543 |
msgstr "У Вас недостатньо дозволів для створення файлу"
|
544 |
|
545 |
+
#: bws_functions.php:1390
|
546 |
msgid "These styles will be added to the header on all pages of your site."
|
547 |
msgstr "Ці стилі будуть додані в заголовок на всіх сторінках вашого сайту."
|
548 |
|
549 |
+
#: bws_functions.php:1392
|
550 |
#, php-format
|
551 |
msgid ""
|
552 |
+
"This PHP code will be hooked to the %s action and will be printed on front "
|
553 |
"end only."
|
554 |
msgstr ""
|
555 |
"Цей PHP код буде прикріплений до %s action і буде додано лише у фронтенді."
|
556 |
|
557 |
+
#: bws_functions.php:1396
|
558 |
msgid "Editing"
|
559 |
msgstr "Редагування"
|
560 |
|
561 |
+
#: bws_functions.php:1398
|
562 |
msgid "Browsing"
|
563 |
msgstr "Огляд"
|
564 |
|
565 |
+
#: bws_functions.php:1405
|
566 |
#, php-format
|
567 |
msgid "Learn more about %s"
|
568 |
msgstr "Дізнатись більше про %s"
|
569 |
|
570 |
+
#: bws_functions.php:1416
|
571 |
#, php-format
|
572 |
msgid ""
|
573 |
"You need to make this files writable before you can save your changes. See "
|
724 |
msgid "Sorry, email message could not be delivered."
|
725 |
msgstr "Вибачте, ваше емейл не може бути доставлено"
|
726 |
|
727 |
+
#: bws_menu.php:286 bws_menu.php:632
|
728 |
msgid "System status"
|
729 |
msgstr "Системна інформація"
|
730 |
|
740 |
msgid "Client Area"
|
741 |
msgstr "Client Area"
|
742 |
|
743 |
+
#: bws_menu.php:296
|
744 |
+
#, php-format
|
745 |
+
msgid "Get Access to %s+ Premium Plugins"
|
746 |
+
msgstr "Отримати Доступ до %s+ Преміум Плагинам"
|
|
|
|
|
|
|
747 |
|
748 |
+
#: bws_menu.php:298
|
749 |
+
msgid "Subscribe to Pro Membership"
|
750 |
+
msgstr "Підписатися на Pro Membership"
|
751 |
|
752 |
+
#: bws_menu.php:309
|
753 |
+
msgid "Enter your license key"
|
754 |
+
msgstr "Ваш ліцензійний ключ"
|
755 |
|
756 |
+
#: bws_menu.php:331
|
757 |
msgid "Upload Plugin"
|
758 |
msgstr "Завантажити плагін"
|
759 |
|
760 |
+
#: bws_menu.php:335
|
761 |
#, php-format
|
762 |
msgid ""
|
763 |
"The plugin generated %d characters of <strong>unexpected output</strong> "
|
770 |
"надіслані”, проблеми з каналами чи інші неполадки, спробуйте вимкнути "
|
771 |
"чи видалити цей плагін."
|
772 |
|
773 |
+
#: bws_menu.php:337
|
774 |
msgid ""
|
775 |
"Plugin could not be activated because it triggered a <strong>fatal error</"
|
776 |
"strong>."
|
778 |
"Плагін не вдалося активувати, бо він спричинив <strong>критичну помилку</"
|
779 |
"strong>."
|
780 |
|
781 |
+
#: bws_menu.php:340
|
782 |
msgid "Plugin <strong>activated</strong>."
|
783 |
msgstr "Плагін <strong>активовано</strong>."
|
784 |
|
785 |
+
#: bws_menu.php:347
|
786 |
msgid "Installing Plugin"
|
787 |
msgstr "Встановлення плагіну"
|
788 |
|
789 |
+
#: bws_menu.php:353
|
790 |
msgid "Downloading install package from"
|
791 |
msgstr "Завантаження встановлюючого пакунку з"
|
792 |
|
793 |
+
#: bws_menu.php:378
|
794 |
msgid "Unpacking the package"
|
795 |
msgstr "Розпакування пакета"
|
796 |
|
797 |
+
#: bws_menu.php:383 bws_menu.php:391
|
798 |
msgid "Installing the plugin"
|
799 |
msgstr "Встановлення плагіну"
|
800 |
|
801 |
+
#: bws_menu.php:397
|
802 |
msgid "Successfully installed the plugin"
|
803 |
msgstr "Успішно встановлено плагін"
|
804 |
|
805 |
+
#: bws_menu.php:409
|
806 |
msgid "Activate Plugin"
|
807 |
msgstr "Активувати плагін"
|
808 |
|
809 |
+
#: bws_menu.php:409 bws_menu.php:415
|
810 |
msgid "Return to BestWebSoft Panel"
|
811 |
msgstr "Назад до BestWebSoft Panel"
|
812 |
|
813 |
+
#: bws_menu.php:419 bws_menu.php:434 bws_menu.php:563
|
814 |
msgid "All"
|
815 |
msgstr "Всі"
|
816 |
|
817 |
+
#: bws_menu.php:420 bws_menu.php:620
|
818 |
msgid "Installed"
|
819 |
msgstr "Встановлені"
|
820 |
|
821 |
+
#: bws_menu.php:421
|
822 |
msgid "Not Installed"
|
823 |
msgstr "Не встановлені"
|
824 |
|
825 |
+
#: bws_menu.php:427
|
826 |
msgid "Filter results"
|
827 |
msgstr "Фільтр результатів"
|
828 |
|
829 |
+
#: bws_menu.php:430 bws_menu.php:559
|
830 |
msgid "Category"
|
831 |
msgstr "Категорія"
|
832 |
|
833 |
+
#: bws_menu.php:494
|
834 |
msgid "Not installed"
|
835 |
msgstr "Не встановлен"
|
836 |
|
837 |
+
#: bws_menu.php:498
|
838 |
msgid "Renew to get updates"
|
839 |
msgstr "Продовжити для поновлення"
|
840 |
|
841 |
+
#: bws_menu.php:501
|
842 |
#, php-format
|
843 |
msgid "Update to v %s"
|
844 |
msgstr "Оновити до версії %s"
|
845 |
|
846 |
+
#: bws_menu.php:513 bws_menu.php:536 bws_menu.php:545
|
847 |
msgid "Install Now"
|
848 |
msgstr "Встановити"
|
849 |
|
850 |
+
#: bws_menu.php:519
|
851 |
msgid "Upgrade to Pro"
|
852 |
msgstr "Оновитися на Pro"
|
853 |
|
854 |
+
#: bws_menu.php:523
|
855 |
msgid "Donate"
|
856 |
msgstr "Пожертвувати"
|
857 |
|
858 |
+
#: bws_menu.php:533 bws_menu.php:542
|
859 |
msgid "Activate this plugin"
|
860 |
msgstr "Активувати плагін"
|
861 |
|
862 |
+
#: bws_menu.php:545
|
863 |
msgid "Install this plugin"
|
864 |
msgstr "Встановити плагін"
|
865 |
|
866 |
+
#: bws_menu.php:554
|
867 |
msgid "Nothing found. Try another criteria."
|
868 |
msgstr "Нічого не знайдено. Спробуйте інші критерії."
|
869 |
|
870 |
+
#: bws_menu.php:591 bws_menu.php:611
|
871 |
#, php-format
|
872 |
msgid "By %s"
|
873 |
msgstr "За %s"
|
874 |
|
875 |
+
#: bws_menu.php:618
|
876 |
msgid "Already Installed"
|
877 |
msgstr "Уже встановлено %s"
|
878 |
|
879 |
+
#: bws_menu.php:629
|
880 |
msgid "Browse Free WordPress Themes"
|
881 |
msgstr "Огляд безкоштовних WordPress тем"
|
882 |
|
883 |
+
#: bws_menu.php:638
|
884 |
msgid "Send to support"
|
885 |
msgstr "Відправити службі тех. підтримки"
|
886 |
|
887 |
+
#: bws_menu.php:645
|
888 |
msgid "Send to custom email »"
|
889 |
msgstr "Відправити на електронну адресу »"
|
890 |
|
891 |
+
#: bws_menu.php:652
|
892 |
msgid "Environment"
|
893 |
msgstr "Системне оточення"
|
894 |
|
895 |
+
#: bws_menu.php:663
|
896 |
msgid "Active Plugins"
|
897 |
msgstr "Активні плагіни"
|
898 |
|
899 |
+
#: bws_menu.php:676
|
900 |
msgid "Inactive Plugins"
|
901 |
msgstr "Не активні плагіни"
|
902 |
|
936 |
msgid "Other"
|
937 |
msgstr "Інше"
|
938 |
|
939 |
+
#~ msgid "Activate Membership"
|
940 |
+
#~ msgstr "Активувати Membership"
|
941 |
+
|
942 |
+
#~ msgid "Don’t have valid license key yet?"
|
943 |
+
#~ msgstr "Немає чинного ліцензійного ключа?"
|
944 |
|
945 |
#~ msgid ""
|
946 |
#~ "Join BestWebSoft Pro Membership today, cancel any time and use all "
|
contact_form.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/*
|
3 |
Plugin Name: Contact Form by BestWebSoft
|
4 |
Plugin URI: http://bestwebsoft.com/products/contact-form/
|
5 |
-
Description:
|
6 |
Author: BestWebSoft
|
7 |
Text Domain: contact-form-plugin
|
8 |
Domain Path: /languages
|
9 |
-
Version: 4.0.
|
10 |
Author URI: http://bestwebsoft.com/
|
11 |
License: GPLv2 or later
|
12 |
*/
|
@@ -27,6 +27,11 @@ License: GPLv2 or later
|
|
27 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
28 |
*/
|
29 |
|
|
|
|
|
|
|
|
|
|
|
30 |
/**
|
31 |
* Add Wordpress page 'bws_panel' and sub-page of this plugin to admin-panel.
|
32 |
* @return void
|
@@ -55,7 +60,7 @@ if ( ! function_exists ( 'cntctfrm_init' ) ) {
|
|
55 |
$cntctfrm_plugin_info = get_plugin_data( __FILE__ );
|
56 |
}
|
57 |
/* Function check if plugin is compatible with current WP version */
|
58 |
-
bws_wp_min_version_check( plugin_basename( __FILE__ ), $cntctfrm_plugin_info, '3.8'
|
59 |
|
60 |
if ( ! is_admin() )
|
61 |
cntctfrm_check_and_send();
|
@@ -67,7 +72,7 @@ if ( ! function_exists ( 'cntctfrm_admin_init' ) ) {
|
|
67 |
global $bws_plugin_info, $cntctfrm_plugin_info, $bws_shortcode_list, $cntctfrm_lang_codes;
|
68 |
/* Add variable for bws_menu */
|
69 |
|
70 |
-
if (
|
71 |
$bws_plugin_info = array( 'id' => '77', 'version' => $cntctfrm_plugin_info["Version"] );
|
72 |
|
73 |
/* Display form on the setting page */
|
@@ -119,176 +124,41 @@ if ( ! function_exists ( 'cntctfrm_plugins_loaded' ) ) {
|
|
119 |
/* Register settings for plugin */
|
120 |
if ( ! function_exists( 'cntctfrm_settings' ) ) {
|
121 |
function cntctfrm_settings( $form_id = false ) {
|
122 |
-
global $cntctfrm_options, $
|
123 |
-
$
|
124 |
|
125 |
$contact_form_multi_active = cntctfrm_check_cf_multi_active();
|
126 |
|
127 |
if ( ! $cntctfrm_plugin_info )
|
128 |
$cntctfrm_plugin_info = get_plugin_data( __FILE__ );
|
129 |
|
130 |
-
$sitename = strtolower( filter_var( $_SERVER['SERVER_NAME'], FILTER_SANITIZE_STRING ) );
|
131 |
-
if ( substr( $sitename, 0, 4 ) == 'www.' ) {
|
132 |
-
$sitename = substr( $sitename, 4 );
|
133 |
-
}
|
134 |
-
$from_email = 'wordpress@' . $sitename;
|
135 |
-
|
136 |
-
$cntctfrm_option_defaults = array(
|
137 |
-
'plugin_option_version' => $cntctfrm_plugin_info["Version"],
|
138 |
-
'plugin_db_version' => $cntctfrm_db_version,
|
139 |
-
'cntctfrm_user_email' => 'admin',
|
140 |
-
'cntctfrm_custom_email' => get_option("admin_email"),
|
141 |
-
'cntctfrm_select_email' => 'custom',
|
142 |
-
'cntctfrm_from_email' => 'custom',
|
143 |
-
'cntctfrm_custom_from_email' => $from_email,
|
144 |
-
'cntctfrm_attachment' => 0,
|
145 |
-
'cntctfrm_attachment_explanations' => 1,
|
146 |
-
'cntctfrm_send_copy' => 0,
|
147 |
-
'cntctfrm_from_field' => get_bloginfo( 'name' ),
|
148 |
-
'cntctfrm_select_from_field' => 'custom',
|
149 |
-
'cntctfrm_display_name_field' => 1,
|
150 |
-
'cntctfrm_display_address_field' => 0,
|
151 |
-
'cntctfrm_display_phone_field' => 0,
|
152 |
-
'cntctfrm_required_name_field' => 1,
|
153 |
-
'cntctfrm_required_address_field' => 0,
|
154 |
-
'cntctfrm_required_email_field' => 1,
|
155 |
-
'cntctfrm_required_phone_field' => 0,
|
156 |
-
'cntctfrm_required_subject_field' => 1,
|
157 |
-
'cntctfrm_required_message_field' => 1,
|
158 |
-
'cntctfrm_required_symbol' => '*',
|
159 |
-
'cntctfrm_display_add_info' => 1,
|
160 |
-
'cntctfrm_display_sent_from' => 1,
|
161 |
-
'cntctfrm_display_date_time' => 1,
|
162 |
-
'cntctfrm_mail_method' => 'wp-mail',
|
163 |
-
'cntctfrm_display_coming_from' => 1,
|
164 |
-
'cntctfrm_display_user_agent' => 1,
|
165 |
-
'cntctfrm_language' => array(),
|
166 |
-
'cntctfrm_change_label' => 0,
|
167 |
-
'cntctfrm_name_label' => array( 'default' => __( "Name", 'contact-form-plugin' ) . ':' ),
|
168 |
-
'cntctfrm_address_label' => array( 'default' => __( "Address", 'contact-form-plugin' ) . ':' ),
|
169 |
-
'cntctfrm_email_label' => array( 'default' => __( "Email Address", 'contact-form-plugin' ) . ':' ),
|
170 |
-
'cntctfrm_phone_label' => array( 'default' => __( "Phone number", 'contact-form-plugin' ) . ':' ),
|
171 |
-
'cntctfrm_subject_label' => array( 'default' => __( "Subject", 'contact-form-plugin' ) . ':' ),
|
172 |
-
'cntctfrm_message_label' => array( 'default' => __( "Message", 'contact-form-plugin' ) . ':' ),
|
173 |
-
'cntctfrm_attachment_label' => array( 'default' => __( "Attachment", 'contact-form-plugin' ) . ':' ),
|
174 |
-
'cntctfrm_attachment_tooltip' => array( 'default' => __( "Supported file types: HTML, TXT, CSS, GIF, PNG, JPEG, JPG, TIFF, BMP, AI, EPS, PS, CSV, RTF, PDF, DOC, DOCX, XLS, XLSX, ZIP, RAR, WAV, MP3, PPT.", 'contact-form-plugin' ) ),
|
175 |
-
'cntctfrm_send_copy_label' => array( 'default' => __( "Send me a copy", 'contact-form-plugin' ) ),
|
176 |
-
'cntctfrm_submit_label' => array( 'default' => __( "Submit", 'contact-form-plugin' ) ),
|
177 |
-
'cntctfrm_name_error' => array( 'default' => __( "Your name is required.", 'contact-form-plugin' ) ),
|
178 |
-
'cntctfrm_address_error' => array( 'default' => __( "Address is required.", 'contact-form-plugin' ) ),
|
179 |
-
'cntctfrm_email_error' => array( 'default' => __( "A valid email address is required.", 'contact-form-plugin' ) ),
|
180 |
-
'cntctfrm_phone_error' => array( 'default' => __( "Phone number is required.", 'contact-form-plugin' ) ),
|
181 |
-
'cntctfrm_subject_error' => array( 'default' => __( "Subject is required.", 'contact-form-plugin' ) ),
|
182 |
-
'cntctfrm_message_error' => array( 'default' => __( "Message text is required.", 'contact-form-plugin' ) ),
|
183 |
-
'cntctfrm_attachment_error' => array( 'default' => __( "File format is not valid.", 'contact-form-plugin' ) ),
|
184 |
-
'cntctfrm_attachment_upload_error' => array( 'default' => __( "File upload error.", 'contact-form-plugin' ) ),
|
185 |
-
'cntctfrm_attachment_move_error' => array( 'default' => __( "The file could not be uploaded.", 'contact-form-plugin' ) ),
|
186 |
-
'cntctfrm_attachment_size_error' => array( 'default' => __( "This file is too large.", 'contact-form-plugin' ) ),
|
187 |
-
'cntctfrm_captcha_error' => array( 'default' => __( "Please fill out the CAPTCHA.", 'contact-form-plugin' ) ),
|
188 |
-
'cntctfrm_form_error' => array( 'default' => __( "Please make corrections below and try again.", 'contact-form-plugin' ) ),
|
189 |
-
'cntctfrm_action_after_send' => 1,
|
190 |
-
'cntctfrm_thank_text' => array( 'default' => __( "Thank you for contacting us.", 'contact-form-plugin' ) ),
|
191 |
-
'cntctfrm_redirect_url' => '',
|
192 |
-
'cntctfrm_delete_attached_file' => '0',
|
193 |
-
'cntctfrm_html_email' => 1,
|
194 |
-
'cntctfrm_change_label_in_email' => 0,
|
195 |
-
'cntctfrm_layout' => 1,
|
196 |
-
'cntctfrm_submit_position' => 'left',
|
197 |
-
'cntctfrm_order_fields' => array(
|
198 |
-
'first_column' => array(
|
199 |
-
'cntctfrm_contact_name',
|
200 |
-
'cntctfrm_contact_address',
|
201 |
-
'cntctfrm_contact_email',
|
202 |
-
'cntctfrm_contact_phone',
|
203 |
-
'cntctfrm_contact_subject',
|
204 |
-
'cntctfrm_contact_message',
|
205 |
-
'cntctfrm_contact_attachment',
|
206 |
-
'cntctfrm_contact_send_copy',
|
207 |
-
'cntctfrm_subscribe',
|
208 |
-
'cntctfrm_captcha'
|
209 |
-
),
|
210 |
-
'second_column' => array()
|
211 |
-
),
|
212 |
-
'display_settings_notice' => 1,
|
213 |
-
'first_install' => strtotime( "now" ),
|
214 |
-
'suggest_feature_banner' => 1
|
215 |
-
);
|
216 |
-
|
217 |
-
$plugin_basename = plugin_basename( __FILE__ );
|
218 |
-
|
219 |
-
if ( isset( $_POST['cntctfrm_add_language_button'] ) && check_admin_referer( $plugin_basename, 'cntctfrm_nonce_name' ) )
|
220 |
-
cntctfrm_add_language();
|
221 |
-
|
222 |
-
if( isset( $_POST['cntctfrm_delete_button'] ) && check_admin_referer( $plugin_basename, 'cntctfrm_nonce_name' ) )
|
223 |
-
cntctfrm_remove_language();
|
224 |
-
|
225 |
/* Install the option defaults */
|
226 |
-
if ( ! get_option( 'cntctfrm_options' ) )
|
227 |
-
|
|
|
|
|
228 |
|
229 |
/* Get options from the database for default options */
|
230 |
if ( $contact_form_multi_active ) {
|
231 |
-
if ( ! get_option( 'cntctfrmmlt_options' ) )
|
232 |
-
|
|
|
|
|
|
|
233 |
|
234 |
$cntctfrmmlt_options = get_option( 'cntctfrmmlt_options' );
|
235 |
|
236 |
if ( ! isset( $cntctfrmmlt_options['plugin_option_version'] ) || $cntctfrmmlt_options['plugin_option_version'] != $cntctfrm_plugin_info["Version"] ) {
|
237 |
|
|
|
|
|
238 |
/**
|
239 |
* @since 3.98
|
240 |
-
* @todo delete after
|
241 |
*/
|
242 |
-
|
243 |
-
$cntctfrmmlt_options['cntctfrm_name_label']['default'] = $cntctfrmmlt_options['cntctfrm_name_label']['en'];
|
244 |
-
unset( $cntctfrmmlt_options['cntctfrm_name_label']['en'] );
|
245 |
-
$cntctfrmmlt_options['cntctfrm_address_label']['default'] = $cntctfrmmlt_options['cntctfrm_address_label']['en'];
|
246 |
-
unset( $cntctfrmmlt_options['cntctfrm_address_label']['en'] );
|
247 |
-
$cntctfrmmlt_options['cntctfrm_email_label']['default'] = $cntctfrmmlt_options['cntctfrm_email_label']['en'];
|
248 |
-
unset( $cntctfrmmlt_options['cntctfrm_email_label']['en'] );
|
249 |
-
$cntctfrmmlt_options['cntctfrm_phone_label']['default'] = $cntctfrmmlt_options['cntctfrm_phone_label']['en'];
|
250 |
-
unset( $cntctfrmmlt_options['cntctfrm_phone_label']['en'] );
|
251 |
-
$cntctfrmmlt_options['cntctfrm_subject_label']['default'] = $cntctfrmmlt_options['cntctfrm_subject_label']['en'];
|
252 |
-
unset( $cntctfrmmlt_options['cntctfrm_subject_label']['en'] );
|
253 |
-
$cntctfrmmlt_options['cntctfrm_message_label']['default'] = $cntctfrmmlt_options['cntctfrm_message_label']['en'];
|
254 |
-
unset( $cntctfrmmlt_options['cntctfrm_message_label']['en'] );
|
255 |
-
$cntctfrmmlt_options['cntctfrm_attachment_label']['default'] = $cntctfrmmlt_options['cntctfrm_attachment_label']['en'];
|
256 |
-
unset( $cntctfrmmlt_options['cntctfrm_attachment_label']['en'] );
|
257 |
-
$cntctfrmmlt_options['cntctfrm_attachment_tooltip']['default'] = $cntctfrmmlt_options['cntctfrm_attachment_tooltip']['en'];
|
258 |
-
unset( $cntctfrmmlt_options['cntctfrm_attachment_tooltip']['en'] );
|
259 |
-
$cntctfrmmlt_options['cntctfrm_send_copy_label']['default'] = $cntctfrmmlt_options['cntctfrm_send_copy_label']['en'];
|
260 |
-
unset( $cntctfrmmlt_options['cntctfrm_send_copy_label']['en'] );
|
261 |
-
$cntctfrmmlt_options['cntctfrm_submit_label']['default'] = $cntctfrmmlt_options['cntctfrm_submit_label']['en'];
|
262 |
-
unset( $cntctfrmmlt_options['cntctfrm_submit_label']['en'] );
|
263 |
-
$cntctfrmmlt_options['cntctfrm_name_error']['default'] = $cntctfrmmlt_options['cntctfrm_name_error']['en'];
|
264 |
-
unset( $cntctfrmmlt_options['cntctfrm_name_error']['en'] );
|
265 |
-
$cntctfrmmlt_options['cntctfrm_address_error']['default'] = $cntctfrmmlt_options['cntctfrm_address_error']['en'];
|
266 |
-
unset( $cntctfrmmlt_options['cntctfrm_address_error']['en'] );
|
267 |
-
$cntctfrmmlt_options['cntctfrm_email_error']['default'] = $cntctfrmmlt_options['cntctfrm_email_error']['en'];
|
268 |
-
unset( $cntctfrmmlt_options['cntctfrm_email_error']['en'] );
|
269 |
-
$cntctfrmmlt_options['cntctfrm_phone_error']['default'] = $cntctfrmmlt_options['cntctfrm_phone_error']['en'];
|
270 |
-
unset( $cntctfrmmlt_options['cntctfrm_phone_error']['en'] );
|
271 |
-
$cntctfrmmlt_options['cntctfrm_subject_error']['default'] = $cntctfrmmlt_options['cntctfrm_subject_error']['en'];
|
272 |
-
unset( $cntctfrmmlt_options['cntctfrm_subject_error']['en'] );
|
273 |
-
$cntctfrmmlt_options['cntctfrm_message_error']['default'] = $cntctfrmmlt_options['cntctfrm_message_error']['en'];
|
274 |
-
unset( $cntctfrmmlt_options['cntctfrm_message_error']['en'] );
|
275 |
-
$cntctfrmmlt_options['cntctfrm_attachment_error']['default'] = $cntctfrmmlt_options['cntctfrm_attachment_error']['en'];
|
276 |
-
unset( $cntctfrmmlt_options['cntctfrm_attachment_error']['en'] );
|
277 |
-
$cntctfrmmlt_options['cntctfrm_attachment_upload_error']['default'] = $cntctfrmmlt_options['cntctfrm_attachment_upload_error']['en'];
|
278 |
-
unset( $cntctfrmmlt_options['cntctfrm_attachment_upload_error']['en'] );
|
279 |
-
$cntctfrmmlt_options['cntctfrm_attachment_move_error']['default'] = $cntctfrmmlt_options['cntctfrm_attachment_move_error']['en'];
|
280 |
-
unset( $cntctfrmmlt_options['cntctfrm_attachment_move_error']['en'] );
|
281 |
-
$cntctfrmmlt_options['cntctfrm_attachment_size_error']['default'] = $cntctfrmmlt_options['cntctfrm_attachment_size_error']['en'];
|
282 |
-
unset( $cntctfrmmlt_options['cntctfrm_attachment_size_error']['en'] );
|
283 |
-
$cntctfrmmlt_options['cntctfrm_captcha_error']['default'] = $cntctfrmmlt_options['cntctfrm_captcha_error']['en'];
|
284 |
-
unset( $cntctfrmmlt_options['cntctfrm_captcha_error']['en'] );
|
285 |
-
$cntctfrmmlt_options['cntctfrm_form_error']['default'] = $cntctfrmmlt_options['cntctfrm_form_error']['en'];
|
286 |
-
unset( $cntctfrmmlt_options['cntctfrm_form_error']['en'] );
|
287 |
-
$cntctfrmmlt_options['cntctfrm_thank_text']['default'] = $cntctfrmmlt_options['cntctfrm_thank_text']['en'];
|
288 |
-
unset( $cntctfrmmlt_options['cntctfrm_thank_text']['en'] );
|
289 |
-
}
|
290 |
|
291 |
-
$cntctfrmmlt_options = array_merge( $
|
292 |
$cntctfrmmlt_options['plugin_option_version'] = $cntctfrm_plugin_info["Version"];
|
293 |
update_option( 'cntctfrmmlt_options', $cntctfrmmlt_options );
|
294 |
}
|
@@ -296,8 +166,8 @@ if ( ! function_exists( 'cntctfrm_settings' ) ) {
|
|
296 |
/* Get options from the database */
|
297 |
if ( isset( $_SESSION['cntctfrmmlt_id_form'] ) || $form_id ) {
|
298 |
$id = ( $form_id ) ? $form_id : $_SESSION['cntctfrmmlt_id_form'];
|
299 |
-
if ( get_option( 'cntctfrmmlt_options_' . $id ) ) {
|
300 |
-
|
301 |
} else {
|
302 |
if ( 'pro' == $contact_form_multi_active && $options_main = get_option( 'cntctfrmmltpr_options_main' ) ) {
|
303 |
/**/
|
@@ -322,89 +192,16 @@ if ( ! function_exists( 'cntctfrm_settings' ) ) {
|
|
322 |
|
323 |
if ( ! isset( $cntctfrm_options['plugin_option_version'] ) || $cntctfrm_options['plugin_option_version'] != $cntctfrm_plugin_info["Version"] ) {
|
324 |
|
325 |
-
$
|
326 |
-
|
327 |
/**
|
328 |
* @since 3.98
|
329 |
-
* @todo delete after
|
330 |
*/
|
331 |
-
|
332 |
-
$cntctfrm_options['cntctfrm_name_label']['default'] = $cntctfrm_options['cntctfrm_name_label']['en'];
|
333 |
-
unset( $cntctfrm_options['cntctfrm_name_label']['en'] );
|
334 |
-
$cntctfrm_options['cntctfrm_address_label']['default'] = $cntctfrm_options['cntctfrm_address_label']['en'];
|
335 |
-
unset( $cntctfrm_options['cntctfrm_address_label']['en'] );
|
336 |
-
$cntctfrm_options['cntctfrm_email_label']['default'] = $cntctfrm_options['cntctfrm_email_label']['en'];
|
337 |
-
unset( $cntctfrm_options['cntctfrm_email_label']['en'] );
|
338 |
-
$cntctfrm_options['cntctfrm_phone_label']['default'] = $cntctfrm_options['cntctfrm_phone_label']['en'];
|
339 |
-
unset( $cntctfrm_options['cntctfrm_phone_label']['en'] );
|
340 |
-
$cntctfrm_options['cntctfrm_subject_label']['default'] = $cntctfrm_options['cntctfrm_subject_label']['en'];
|
341 |
-
unset( $cntctfrm_options['cntctfrm_subject_label']['en'] );
|
342 |
-
$cntctfrm_options['cntctfrm_message_label']['default'] = $cntctfrm_options['cntctfrm_message_label']['en'];
|
343 |
-
unset( $cntctfrm_options['cntctfrm_message_label']['en'] );
|
344 |
-
$cntctfrm_options['cntctfrm_attachment_label']['default'] = $cntctfrm_options['cntctfrm_attachment_label']['en'];
|
345 |
-
unset( $cntctfrm_options['cntctfrm_attachment_label']['en'] );
|
346 |
-
$cntctfrm_options['cntctfrm_attachment_tooltip']['default'] = $cntctfrm_options['cntctfrm_attachment_tooltip']['en'];
|
347 |
-
unset( $cntctfrm_options['cntctfrm_attachment_tooltip']['en'] );
|
348 |
-
$cntctfrm_options['cntctfrm_send_copy_label']['default'] = $cntctfrm_options['cntctfrm_send_copy_label']['en'];
|
349 |
-
unset( $cntctfrm_options['cntctfrm_send_copy_label']['en'] );
|
350 |
-
$cntctfrm_options['cntctfrm_submit_label']['default'] = $cntctfrm_options['cntctfrm_submit_label']['en'];
|
351 |
-
unset( $cntctfrm_options['cntctfrm_submit_label']['en'] );
|
352 |
-
$cntctfrm_options['cntctfrm_name_error']['default'] = $cntctfrm_options['cntctfrm_name_error']['en'];
|
353 |
-
unset( $cntctfrm_options['cntctfrm_name_error']['en'] );
|
354 |
-
$cntctfrm_options['cntctfrm_address_error']['default'] = $cntctfrm_options['cntctfrm_address_error']['en'];
|
355 |
-
unset( $cntctfrm_options['cntctfrm_address_error']['en'] );
|
356 |
-
$cntctfrm_options['cntctfrm_email_error']['default'] = $cntctfrm_options['cntctfrm_email_error']['en'];
|
357 |
-
unset( $cntctfrm_options['cntctfrm_email_error']['en'] );
|
358 |
-
$cntctfrm_options['cntctfrm_phone_error']['default'] = $cntctfrm_options['cntctfrm_phone_error']['en'];
|
359 |
-
unset( $cntctfrm_options['cntctfrm_phone_error']['en'] );
|
360 |
-
$cntctfrm_options['cntctfrm_subject_error']['default'] = $cntctfrm_options['cntctfrm_subject_error']['en'];
|
361 |
-
unset( $cntctfrm_options['cntctfrm_subject_error']['en'] );
|
362 |
-
$cntctfrm_options['cntctfrm_message_error']['default'] = $cntctfrm_options['cntctfrm_message_error']['en'];
|
363 |
-
unset( $cntctfrm_options['cntctfrm_message_error']['en'] );
|
364 |
-
$cntctfrm_options['cntctfrm_attachment_error']['default'] = $cntctfrm_options['cntctfrm_attachment_error']['en'];
|
365 |
-
unset( $cntctfrm_options['cntctfrm_attachment_error']['en'] );
|
366 |
-
$cntctfrm_options['cntctfrm_attachment_upload_error']['default'] = $cntctfrm_options['cntctfrm_attachment_upload_error']['en'];
|
367 |
-
unset( $cntctfrm_options['cntctfrm_attachment_upload_error']['en'] );
|
368 |
-
$cntctfrm_options['cntctfrm_attachment_move_error']['default'] = $cntctfrm_options['cntctfrm_attachment_move_error']['en'];
|
369 |
-
unset( $cntctfrm_options['cntctfrm_attachment_move_error']['en'] );
|
370 |
-
$cntctfrm_options['cntctfrm_attachment_size_error']['default'] = $cntctfrm_options['cntctfrm_attachment_size_error']['en'];
|
371 |
-
unset( $cntctfrm_options['cntctfrm_attachment_size_error']['en'] );
|
372 |
-
$cntctfrm_options['cntctfrm_captcha_error']['default'] = $cntctfrm_options['cntctfrm_captcha_error']['en'];
|
373 |
-
unset( $cntctfrm_options['cntctfrm_captcha_error']['en'] );
|
374 |
-
$cntctfrm_options['cntctfrm_form_error']['default'] = $cntctfrm_options['cntctfrm_form_error']['en'];
|
375 |
-
unset( $cntctfrm_options['cntctfrm_form_error']['en'] );
|
376 |
-
$cntctfrm_options['cntctfrm_thank_text']['default'] = $cntctfrm_options['cntctfrm_thank_text']['en'];
|
377 |
-
unset( $cntctfrm_options['cntctfrm_thank_text']['en'] );
|
378 |
-
}
|
379 |
|
380 |
-
|
381 |
-
|
382 |
-
$cntctfrm_options['cntctfrm_address_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_address_label']['default'] );
|
383 |
-
$cntctfrm_options['cntctfrm_email_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_email_label']['default'] );
|
384 |
-
$cntctfrm_options['cntctfrm_phone_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_phone_label']['default'] );
|
385 |
-
$cntctfrm_options['cntctfrm_subject_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_subject_label']['default'] );
|
386 |
-
$cntctfrm_options['cntctfrm_message_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_message_label']['default'] );
|
387 |
-
$cntctfrm_options['cntctfrm_attachment_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_label']['default'] );
|
388 |
-
$cntctfrm_options['cntctfrm_attachment_tooltip'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_tooltip']['default'] );
|
389 |
-
$cntctfrm_options['cntctfrm_send_copy_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_send_copy_label']['default'] );
|
390 |
-
$cntctfrm_options['cntctfrm_thank_text'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_thank_text']['default'] );
|
391 |
-
$cntctfrm_options['cntctfrm_submit_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_submit_label']['default'] );
|
392 |
-
$cntctfrm_options['cntctfrm_name_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_name_error']['default'] );
|
393 |
-
$cntctfrm_options['cntctfrm_address_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_address_error']['default'] );
|
394 |
-
$cntctfrm_options['cntctfrm_email_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_email_error']['default'] );
|
395 |
-
$cntctfrm_options['cntctfrm_phone_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_phone_error']['default'] );
|
396 |
-
$cntctfrm_options['cntctfrm_subject_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_subject_error']['default'] );
|
397 |
-
$cntctfrm_options['cntctfrm_message_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_message_error']['default'] );
|
398 |
-
$cntctfrm_options['cntctfrm_attachment_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_error']['default'] );
|
399 |
-
$cntctfrm_options['cntctfrm_attachment_upload_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_upload_error']['default'] );
|
400 |
-
$cntctfrm_options['cntctfrm_attachment_move_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_move_error']['default'] );
|
401 |
-
$cntctfrm_options['cntctfrm_attachment_size_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_size_error']['default'] );
|
402 |
-
$cntctfrm_options['cntctfrm_captcha_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_captcha_error']['default'] );
|
403 |
-
$cntctfrm_options['cntctfrm_form_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_form_error']['default'] );
|
404 |
-
}
|
405 |
-
|
406 |
-
$cntctfrm_options = array_merge( $cntctfrm_option_defaults, $cntctfrm_options );
|
407 |
-
$cntctfrm_options['plugin_option_version'] = $cntctfrm_plugin_info["Version"];
|
408 |
/* show pro features */
|
409 |
$cntctfrm_options['hide_premium_options'] = array();
|
410 |
|
@@ -425,9 +222,9 @@ if ( ! function_exists( 'cntctfrm_settings' ) ) {
|
|
425 |
}
|
426 |
|
427 |
/* Create db table of fields list */
|
428 |
-
if ( ! isset( $cntctfrm_options['plugin_db_version'] ) || $cntctfrm_options['plugin_db_version'] != $
|
429 |
cntctfrm_db_create();
|
430 |
-
$cntctfrm_options['plugin_db_version'] = $
|
431 |
if ( $contact_form_multi_active ) {
|
432 |
if ( isset( $_SESSION['cntctfrmmlt_id_form'] ) || $form_id ) {
|
433 |
$id = ( $form_id ) ? $form_id : $_SESSION['cntctfrmmlt_id_form'];
|
@@ -446,6 +243,106 @@ if ( ! function_exists( 'cntctfrm_settings' ) ) {
|
|
446 |
}
|
447 |
}
|
448 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
449 |
/* Function check if plugin is compatible with current WP version */
|
450 |
if ( ! function_exists ( 'cntctfrm_db_create' ) ) {
|
451 |
function cntctfrm_db_create() {
|
@@ -474,7 +371,7 @@ if ( ! function_exists ( 'cntctfrm_db_create' ) ) {
|
|
474 |
);
|
475 |
foreach ( $fields as $key => $value ) {
|
476 |
$db_row = $wpdb->get_row( "SELECT * FROM " . $wpdb->prefix . "cntctfrm_field WHERE `name` = '" . $value . "'", ARRAY_A );
|
477 |
-
if (
|
478 |
$wpdb->insert( $wpdb->prefix . "cntctfrm_field", array( 'name' => $value ), array( '%s' ) );
|
479 |
}
|
480 |
}
|
@@ -546,7 +443,7 @@ if ( ! function_exists( 'cntctfrm_related_plugins' ) ) {
|
|
546 |
/*#*/'required_symbol' => $required_symbol,
|
547 |
'settings_page' => 'captcha-plus.php'
|
548 |
);
|
549 |
-
} elseif( is_plugin_active( 'captcha-pro/captcha_pro.php' ) ) {
|
550 |
if ( $cptchpr_options = get_option( 'cptchpr_options' ) ) {
|
551 |
/*#*/ $options_name = 'cptchpr_options';
|
552 |
} elseif ( $cptchpr_options = get_option( 'cptch_options' ) ) {
|
@@ -566,7 +463,7 @@ if ( ! function_exists( 'cntctfrm_related_plugins' ) ) {
|
|
566 |
}
|
567 |
|
568 |
/* Get Google Captcha options */
|
569 |
-
if( is_plugin_active( 'google-captcha/google-captcha.php' ) ) {
|
570 |
$gglcptch_options = get_option( 'gglcptch_options' );
|
571 |
|
572 |
$cntctfrm_related_plugins['google-captcha'] = array(
|
@@ -574,7 +471,7 @@ if ( ! function_exists( 'cntctfrm_related_plugins' ) ) {
|
|
574 |
/*#*/ 'options_name' => 'gglcptch_options',
|
575 |
'settings_page' => 'google-captcha.php'
|
576 |
);
|
577 |
-
} elseif( is_plugin_active( 'google-captcha-pro/google-captcha-pro.php' ) ) {
|
578 |
if ( $gglcptchpr_options = get_option( 'gglcptchpr_options' ) ) {
|
579 |
/*#*/ $options_name = 'gglcptchpr_options';
|
580 |
} elseif ( $gglcptchpr_options = get_option( 'gglcptch_options' ) ) {
|
@@ -589,7 +486,7 @@ if ( ! function_exists( 'cntctfrm_related_plugins' ) ) {
|
|
589 |
|
590 |
/* Get Subscriber options */
|
591 |
if ( is_multisite() ) {
|
592 |
-
if( is_plugin_active( 'subscriber/subscriber.php' ) ) {
|
593 |
$sbscrbr_options = get_site_option( 'sbscrbr_options' );
|
594 |
|
595 |
$cntctfrm_related_plugins['subscriber'] = array(
|
@@ -611,7 +508,7 @@ if ( ! function_exists( 'cntctfrm_related_plugins' ) ) {
|
|
611 |
);
|
612 |
}
|
613 |
} else {
|
614 |
-
if( is_plugin_active( 'subscriber/subscriber.php' ) ) {
|
615 |
$sbscrbr_options = get_option( 'sbscrbr_options' );
|
616 |
|
617 |
$cntctfrm_related_plugins['subscriber'] = array(
|
@@ -635,7 +532,7 @@ if ( ! function_exists( 'cntctfrm_related_plugins' ) ) {
|
|
635 |
}
|
636 |
|
637 |
/* Get Contact Form to DB options */
|
638 |
-
if( is_plugin_active( 'contact-form-to-db/contact_form_to_db.php' ) ) {
|
639 |
$cntctfrmtdb_options = get_option( 'cntctfrmtdb_options' );
|
640 |
|
641 |
/*#*/$save_option = isset( $cntctfrmtdb_options['save_messages_to_db'] ) ? 'save_messages_to_db' : 'cntctfrmtdb_save_messages_to_db';
|
@@ -687,9 +584,8 @@ if ( ! function_exists( 'cntctfrm_get_ordered_fields' ) ) {
|
|
687 |
function cntctfrm_get_ordered_fields() {
|
688 |
global $cntctfrm_options, $cntctfrm_related_plugins;
|
689 |
|
690 |
-
if ( ! isset( $cntctfrm_options['
|
691 |
cntctfrm_settings();
|
692 |
-
}
|
693 |
|
694 |
if ( empty( $cntctfrm_related_plugins ) )
|
695 |
cntctfrm_related_plugins();
|
@@ -702,26 +598,26 @@ if ( ! function_exists( 'cntctfrm_get_ordered_fields' ) ) {
|
|
702 |
if ( array_key_exists( 'captcha', $cntctfrm_related_plugins ) )
|
703 |
$display_captcha = $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['display_option'] ];
|
704 |
|
705 |
-
if ( array_key_exists( '
|
706 |
-
$display_google_captcha = $cntctfrm_related_plugins['
|
707 |
|
708 |
if ( array_key_exists( 'subscriber', $cntctfrm_related_plugins ) )
|
709 |
$display_subscriber = $cntctfrm_related_plugins['subscriber']['options']['contact_form'];
|
710 |
} else {
|
711 |
-
$display_captcha = ( isset( $cntctfrm_options['
|
712 |
-
$display_google_captcha = ( isset( $cntctfrm_options['
|
713 |
-
$display_subscriber = ( isset( $cntctfrm_options['
|
714 |
}
|
715 |
|
716 |
$default_order_fields = array(
|
717 |
-
'cntctfrm_contact_name' => ( 1 == $cntctfrm_options['
|
718 |
-
'cntctfrm_contact_address' => ( 1 == $cntctfrm_options['
|
719 |
'cntctfrm_contact_email' => true,
|
720 |
-
'cntctfrm_contact_phone' => ( 1 == $cntctfrm_options['
|
721 |
'cntctfrm_contact_subject' => true,
|
722 |
'cntctfrm_contact_message' => true,
|
723 |
-
'cntctfrm_contact_attachment' => ( 1 == $cntctfrm_options['
|
724 |
-
'cntctfrm_contact_send_copy' => ( 1 == $cntctfrm_options['
|
725 |
'cntctfrm_subscribe' => $display_subscriber,
|
726 |
'cntctfrm_captcha' => $display_captcha || $display_google_captcha ? true : false,
|
727 |
);
|
@@ -733,21 +629,21 @@ if ( ! function_exists( 'cntctfrm_get_ordered_fields' ) ) {
|
|
733 |
}
|
734 |
}
|
735 |
|
736 |
-
$ordered_fields = array_merge( $cntctfrm_options['
|
737 |
$diff_fields = array_diff( $display_fields, $ordered_fields );
|
738 |
|
739 |
foreach ( $diff_fields as $field ) {
|
740 |
-
array_push( $cntctfrm_options['
|
741 |
}
|
742 |
|
743 |
-
return $cntctfrm_options['
|
744 |
}
|
745 |
}
|
746 |
|
747 |
/* Add settings page in admin area */
|
748 |
if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
749 |
function cntctfrm_settings_page() {
|
750 |
-
global $cntctfrm_options, $wpdb, $
|
751 |
|
752 |
if ( empty( $cntctfrm_related_plugins ) )
|
753 |
cntctfrm_related_plugins();
|
@@ -761,9 +657,8 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
761 |
if ( ! function_exists( 'get_plugins' ) )
|
762 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
763 |
|
764 |
-
if ( ! isset( $_GET['action'] ) || 'additional' == $_GET['action'] || 'appearance' == $_GET['action'] )
|
765 |
$all_plugins = get_plugins();
|
766 |
-
}
|
767 |
|
768 |
$userslogin = get_users( 'blog_id=' . $GLOBALS['blog_id'] . '&role=administrator' );
|
769 |
|
@@ -797,10 +692,10 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
797 |
$layout_second_column = array();
|
798 |
}
|
799 |
|
800 |
-
$options_submit['
|
801 |
-
$options_submit['
|
802 |
-
$options_submit['
|
803 |
-
$options_submit['
|
804 |
|
805 |
$cntctfrm_options = array_merge( $cntctfrm_options, $options_submit );
|
806 |
|
@@ -838,29 +733,35 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
838 |
}
|
839 |
}
|
840 |
|
841 |
-
$options_submit['
|
842 |
-
$options_submit['
|
843 |
-
$options_submit['
|
844 |
-
$options_submit['
|
845 |
-
$options_submit['
|
846 |
-
|
847 |
-
$options_submit['
|
848 |
-
$options_submit['
|
849 |
-
$options_submit['
|
850 |
-
$options_submit['
|
851 |
-
$options_submit['
|
852 |
-
$options_submit['
|
853 |
-
$options_submit['
|
854 |
-
$options_submit['
|
855 |
-
$options_submit['
|
856 |
-
|
857 |
-
$options_submit['
|
858 |
-
|
859 |
-
if( $
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
864 |
} else {
|
865 |
/* Update related plugins options if Contact Form Multi is not active */
|
866 |
if ( array_key_exists( 'captcha', $cntctfrm_related_plugins ) ) {
|
@@ -891,157 +792,159 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
891 |
}
|
892 |
}
|
893 |
|
894 |
-
if ( 0 == $options_submit['
|
895 |
-
$options_submit['
|
896 |
} else {
|
897 |
-
$options_submit['
|
898 |
}
|
899 |
-
if ( 0 == $options_submit['
|
900 |
-
$options_submit['
|
901 |
} else {
|
902 |
-
$options_submit['
|
903 |
}
|
904 |
-
$options_submit['
|
905 |
-
if ( 0 == $options_submit['
|
906 |
-
$options_submit['
|
907 |
} else {
|
908 |
-
$options_submit['
|
909 |
}
|
910 |
-
$options_submit['
|
911 |
-
$options_submit['
|
912 |
-
|
913 |
-
$options_submit['
|
914 |
-
$options_submit['
|
915 |
-
$options_submit['
|
916 |
-
|
917 |
-
$options_submit['
|
918 |
-
$options_submit['
|
919 |
-
$options_submit['
|
920 |
-
$options_submit['
|
921 |
-
|
922 |
-
if ( 0 == $options_submit['
|
923 |
-
$options_submit['
|
924 |
-
|
925 |
-
if ( 0 == $options_submit['
|
926 |
-
$options_submit['
|
927 |
-
$options_submit['
|
928 |
-
$options_submit['
|
929 |
-
$options_submit['
|
930 |
}
|
931 |
|
932 |
-
$options_submit['
|
933 |
-
$options_submit['
|
934 |
|
935 |
-
if ( 1 == $options_submit['
|
936 |
foreach ( $_POST['cntctfrm_name_label'] as $key => $val ) {
|
937 |
-
$options_submit['
|
938 |
-
$options_submit['
|
939 |
-
$options_submit['
|
940 |
-
$options_submit['
|
941 |
-
$options_submit['
|
942 |
-
$options_submit['
|
943 |
-
$options_submit['
|
944 |
-
$options_submit['
|
945 |
-
$options_submit['
|
946 |
-
$options_submit['
|
947 |
-
$options_submit['
|
948 |
-
$options_submit['
|
949 |
-
$options_submit['
|
950 |
-
$options_submit['
|
951 |
-
$options_submit['
|
952 |
-
$options_submit['
|
953 |
-
$options_submit['
|
954 |
-
$options_submit['
|
955 |
-
$options_submit['
|
956 |
-
$options_submit['
|
957 |
-
$options_submit['
|
958 |
-
$options_submit['
|
959 |
-
$options_submit['
|
960 |
}
|
961 |
} else {
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
$options_submit['
|
966 |
-
$options_submit['
|
967 |
-
$options_submit['
|
968 |
-
$options_submit['
|
969 |
-
$options_submit['
|
970 |
-
$options_submit['
|
971 |
-
$options_submit['
|
972 |
-
$options_submit['
|
973 |
-
$options_submit['
|
974 |
-
$options_submit['
|
975 |
-
$options_submit['
|
976 |
-
$options_submit['
|
977 |
-
$options_submit['
|
978 |
-
$options_submit['
|
979 |
-
$options_submit['
|
980 |
-
$options_submit['
|
981 |
-
$options_submit['
|
982 |
-
$options_submit['
|
983 |
-
$options_submit['
|
984 |
-
$options_submit['
|
985 |
-
$options_submit['
|
986 |
-
|
987 |
-
|
|
|
|
|
988 |
}
|
989 |
} else {
|
990 |
-
$options_submit['
|
991 |
-
$options_submit['
|
992 |
-
$options_submit['
|
993 |
-
$options_submit['
|
994 |
-
$options_submit['
|
995 |
-
$options_submit['
|
996 |
-
$options_submit['
|
997 |
-
$options_submit['
|
998 |
-
$options_submit['
|
999 |
-
$options_submit['
|
1000 |
-
$options_submit['
|
1001 |
-
$options_submit['
|
1002 |
-
$options_submit['
|
1003 |
-
$options_submit['
|
1004 |
-
$options_submit['
|
1005 |
-
$options_submit['
|
1006 |
-
$options_submit['
|
1007 |
-
$options_submit['
|
1008 |
-
$options_submit['
|
1009 |
-
$options_submit['
|
1010 |
-
$options_submit['
|
1011 |
-
$options_submit['
|
1012 |
|
1013 |
foreach ( $_POST['cntctfrm_thank_text'] as $key => $val ) {
|
1014 |
-
$options_submit['
|
1015 |
}
|
1016 |
}
|
1017 |
}
|
1018 |
/* if 'FROM' field was changed */
|
1019 |
-
if ( ( 'custom' == $cntctfrm_options['
|
1020 |
-
( 'custom' == $options_submit['
|
1021 |
$notice = __( "Email 'FROM' field option was changed, which may cause email messages being moved to the spam folder or email delivery failures.", 'contact-form-plugin' );
|
1022 |
}
|
1023 |
|
1024 |
-
$options_submit['
|
1025 |
-
$options_submit['
|
1026 |
$cntctfrm_options = array_merge( $cntctfrm_options, $options_submit );
|
1027 |
|
1028 |
-
if ( 0 == $options_submit['
|
1029 |
-
&& ( "" == trim( $options_submit['
|
1030 |
-
|| ! filter_var( $options_submit['
|
1031 |
$error .= __( "If the 'Redirect to page' option is selected then the URL field should be in the following format", 'contact-form-plugin' )." <code>http://your_site/your_page</code>";
|
1032 |
-
$cntctfrm_options['
|
1033 |
}
|
1034 |
-
if ( 'user' == $options_submit['
|
1035 |
-
if ( false !== get_user_by( 'login', $options_submit['
|
1036 |
/**/
|
1037 |
} else {
|
1038 |
$error .= __( "Such user does not exist.", 'contact-form-plugin' );
|
1039 |
}
|
1040 |
} else {
|
1041 |
-
if ( preg_match( '|,|', $options_submit['
|
1042 |
-
$cntctfrm_custom_emails = explode( ',', $options_submit['
|
1043 |
} else {
|
1044 |
-
$cntctfrm_custom_emails[0] = $options_submit['
|
1045 |
}
|
1046 |
foreach ( $cntctfrm_custom_emails as $cntctfrm_custom_email ) {
|
1047 |
if ( $cntctfrm_custom_email == "" || ! is_email( trim( $cntctfrm_custom_email ) ) ) {
|
@@ -1050,9 +953,9 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1050 |
}
|
1051 |
}
|
1052 |
}
|
1053 |
-
if ( 'custom' == $options_submit['
|
1054 |
-
if ( "" == $options_submit['
|
1055 |
-
|| ! is_email( trim( $options_submit['
|
1056 |
$error .= __( "Please enter a valid email address in the 'FROM' field.", 'contact-form-plugin' );
|
1057 |
}
|
1058 |
}
|
@@ -1092,17 +995,18 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1092 |
|
1093 |
/* Add restore function */
|
1094 |
if ( isset( $_REQUEST['bws_restore_confirm'] ) && check_admin_referer( $plugin_basename, 'bws_settings_nonce_name' ) ) {
|
|
|
1095 |
if ( $contact_form_multi_active ) {
|
1096 |
$contact_form_multi_options = array(
|
1097 |
-
'
|
1098 |
-
'
|
1099 |
-
'
|
1100 |
-
'
|
1101 |
-
);
|
1102 |
-
$
|
1103 |
}
|
1104 |
|
1105 |
-
$cntctfrm_options = $
|
1106 |
if ( $contact_form_multi_active ) {
|
1107 |
if ( isset( $_SESSION['cntctfrmmlt_id_form'] ) && get_option( 'cntctfrmmlt_options_' . $_SESSION['cntctfrmmlt_id_form'] ) ) {
|
1108 |
update_option( 'cntctfrmmlt_options_' . $_SESSION['cntctfrmmlt_id_form'] , $cntctfrm_options );
|
@@ -1167,17 +1071,17 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1167 |
<tr valign="top">
|
1168 |
<th scope="row"><?php _e( "The user's email address", 'contact-form-plugin' ); ?>: </th>
|
1169 |
<td colspan="2">
|
1170 |
-
<label><input type="radio" id="cntctfrm_select_email_user" name="cntctfrm_select_email" value="user" <?php if ( $cntctfrm_options['
|
1171 |
<select class="cntctfrm_user_email" name="cntctfrm_user_email">
|
1172 |
<option disabled><?php _e( "Select a username", 'contact-form-plugin' ); ?></option>
|
1173 |
<?php foreach ( $userslogin as $key => $value ) {
|
1174 |
if ( isset( $value->data ) ) {
|
1175 |
if ( $value->data->user_email != '' ) { ?>
|
1176 |
-
<option value="<?php echo $value->data->user_login; ?>" <?php if ( $cntctfrm_options['
|
1177 |
<?php }
|
1178 |
} else {
|
1179 |
if ( $value->user_email != '' ) { ?>
|
1180 |
-
<option value="<?php echo $value->user_login; ?>" <?php if ( $cntctfrm_options['
|
1181 |
<?php }
|
1182 |
}
|
1183 |
} ?>
|
@@ -1188,8 +1092,8 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1188 |
<tr valign="top">
|
1189 |
<th scope="row"><?php _e( "Use this email address", 'contact-form-plugin' ); ?>:</th>
|
1190 |
<td colspan="2">
|
1191 |
-
<label><input type="radio" id="cntctfrm_select_email_custom" name="cntctfrm_select_email" value="custom" <?php if ( 'custom' == $cntctfrm_options['
|
1192 |
-
<input type="text" name="cntctfrm_custom_email" value="<?php echo $cntctfrm_options['
|
1193 |
<span class="bws_info cntctfrm_info"><?php _e( "Enter the email address for receiving messages", 'contact-form-plugin' ); ?>.</span></label>
|
1194 |
</td>
|
1195 |
</tr>
|
@@ -1231,12 +1135,13 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1231 |
<td colspan="2">
|
1232 |
<?php if ( array_key_exists( 'contact-form-to-db/contact_form_to_db.php', $all_plugins ) || array_key_exists( 'contact-form-to-db-pro/contact_form_to_db_pro.php', $all_plugins ) ) {
|
1233 |
if ( array_key_exists( 'contact-form-to-db', $cntctfrm_related_plugins ) ) {
|
|
|
1234 |
if ( ! $contact_form_multi_active ) {
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
if( ! $contact_form_multi_active || ! empty( $cntctfrm_related_plugins['contact-form-to-db']['options'][ $cntctfrm_related_plugins['contact-form-to-db']['save_option'] ] ) ) { ?>
|
1240 |
<label><input type="checkbox" name="cntctfrm_save_email_to_db" value="1" <?php if ( $save_emails ) echo 'checked="checked"'; ?> />
|
1241 |
<span class="bws_info"> (<?php _e( 'Using', 'contact-form-plugin' ); ?>
|
1242 |
<a href="<?php echo self_admin_url( '/admin.php?page=' . $cntctfrm_related_plugins['contact-form-to-db']['settings_page'] ); ?>" target="_blank">Contact Form to DB by BestWebSoft</a>)
|
@@ -1269,19 +1174,19 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1269 |
</table>
|
1270 |
</div>
|
1271 |
<!-- end of main 'settings' div -->
|
1272 |
-
<div <?php if ( ! isset( $_GET['action'] ) ) echo 'style="display: none;"';
|
1273 |
<table class="form-table" style="width:auto;">
|
1274 |
<tr>
|
1275 |
<th scope="row"><?php _e( 'Sending method', 'contact-form-plugin' ); ?></th>
|
1276 |
<td colspan="2">
|
1277 |
<fieldset>
|
1278 |
<label>
|
1279 |
-
<input type='radio' name='cntctfrm_mail_method' value='wp-mail' <?php if ( 'wp-mail' == $cntctfrm_options['
|
1280 |
<?php _e( 'Wp-mail', 'contact-form-plugin' ); ?>
|
1281 |
</label>
|
1282 |
<label><span class="bws_info">(<?php _e( 'You can use the Wordpress wp_mail function for mailing', 'contact-form-plugin' ); ?>)</span></label><br />
|
1283 |
<label>
|
1284 |
-
<input type='radio' name='cntctfrm_mail_method' value='mail' <?php if ( 'mail' == $cntctfrm_options['
|
1285 |
<?php _e( 'Mail', 'contact-form-plugin' ); ?>
|
1286 |
</label>
|
1287 |
<label><span class="bws_info">(<?php _e( 'You can use the PHP mail function for mailing', 'contact-form-plugin' ); ?>)</span></label>
|
@@ -1293,8 +1198,8 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1293 |
<td class="cntctfrm_td_name" style="vertical-align: top;width: 210px;">
|
1294 |
<legend><?php _e( "Name", 'contact-form-plugin' ); ?></legend>
|
1295 |
<fieldset>
|
1296 |
-
<label><input type="radio" id="cntctfrm_select_from_custom_field" name="cntctfrm_select_from_field" value="custom" <?php if ( 'custom' == $cntctfrm_options['
|
1297 |
-
<label><input type="radio" id="cntctfrm_select_from_field" name="cntctfrm_select_from_field" value="user_name" <?php if ( 'user_name' == $cntctfrm_options['
|
1298 |
<div class="bws_help_box dashicons dashicons-editor-help">
|
1299 |
<div class="bws_hidden_help_text" style="min-width: 200px;"><?php echo __( "The name of the user who fills the form will be used in the field 'From'.", 'contact-form-plugin' ); ?></div>
|
1300 |
</div>
|
@@ -1303,8 +1208,8 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1303 |
<td class="cntctfrm_td_email" >
|
1304 |
<legend><?php _e( "Email", 'contact-form-plugin' ); ?></legend>
|
1305 |
<fieldset>
|
1306 |
-
<label><input type="radio" id="cntctfrm_from_custom_email" name="cntctfrm_from_email" value="custom" <?php if ( 'custom' == $cntctfrm_options['
|
1307 |
-
<label><input type="radio" id="cntctfrm_from_email" name="cntctfrm_from_email" value="user" <?php if ( 'user' == $cntctfrm_options['
|
1308 |
<div class="bws_help_box dashicons dashicons-editor-help">
|
1309 |
<div class="bws_hidden_help_text" style="min-width: 200px;"><?php echo __( "The email address of the user who fills the form will be used in the field 'From'.", 'contact-form-plugin' ); ?></div>
|
1310 |
</div>
|
@@ -1317,7 +1222,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1317 |
<tr valign="top">
|
1318 |
<th scope="row"><?php _e( "Required symbol", 'contact-form-plugin' ); ?></th>
|
1319 |
<td colspan="2">
|
1320 |
-
<input type="text" id="cntctfrm_required_symbol" name="cntctfrm_required_symbol" value="<?php echo $cntctfrm_options['
|
1321 |
</td>
|
1322 |
</tr>
|
1323 |
</table>
|
@@ -1348,15 +1253,15 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1348 |
<td class="bws_pro_version"></td>
|
1349 |
<td class="bws_pro_version"></td>
|
1350 |
</tr>
|
1351 |
-
|
1352 |
<tr valign="top">
|
1353 |
<td><?php _e( "Name", 'contact-form-plugin' ); ?></td>
|
1354 |
<td>
|
1355 |
-
<label><input type="checkbox" name="cntctfrm_display_name_field" value="1" <?php if ( '1' == $cntctfrm_options['
|
1356 |
<span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
|
1357 |
</td>
|
1358 |
<td>
|
1359 |
-
<label><input type="checkbox" id="cntctfrm_required_name_field" name="cntctfrm_required_name_field" value="1" <?php if ( '1' == $cntctfrm_options['
|
1360 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1361 |
</td>
|
1362 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
@@ -1399,11 +1304,11 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1399 |
<tr valign="top">
|
1400 |
<td><?php _e( "Address", 'contact-form-plugin' ); ?></td>
|
1401 |
<td>
|
1402 |
-
<label><input type="checkbox" id="cntctfrm_display_address_field" name="cntctfrm_display_address_field" value="1" <?php if ( '1' == $cntctfrm_options['
|
1403 |
<span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
|
1404 |
</td>
|
1405 |
<td>
|
1406 |
-
<label><input type="checkbox" id="cntctfrm_required_address_field" name="cntctfrm_required_address_field" value="1" <?php if ( '1' == $cntctfrm_options['
|
1407 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1408 |
</td>
|
1409 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
@@ -1416,7 +1321,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1416 |
<td><?php _e( "Email Address", 'contact-form-plugin' ); ?></td>
|
1417 |
<td></td>
|
1418 |
<td>
|
1419 |
-
<label><input type="checkbox" id="cntctfrm_required_email_field" name="cntctfrm_required_email_field" value="1" <?php if ( '1' == $cntctfrm_options['
|
1420 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1421 |
</td>
|
1422 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
@@ -1438,11 +1343,11 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1438 |
<tr valign="top">
|
1439 |
<td><?php _e( "Phone number", 'contact-form-plugin' ); ?></td>
|
1440 |
<td>
|
1441 |
-
<label><input type="checkbox" id="cntctfrm_display_phone_field" name="cntctfrm_display_phone_field" value="1" <?php if ( '1' == $cntctfrm_options['
|
1442 |
<span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
|
1443 |
</td>
|
1444 |
<td>
|
1445 |
-
<label><input type="checkbox" id="cntctfrm_required_phone_field" name="cntctfrm_required_phone_field" value="1" <?php if ( '1' == $cntctfrm_options['
|
1446 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1447 |
</td>
|
1448 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
@@ -1455,7 +1360,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1455 |
<td><?php _e( "Subject", 'contact-form-plugin' ); ?></td>
|
1456 |
<td></td>
|
1457 |
<td>
|
1458 |
-
<label><input type="checkbox" id="cntctfrm_required_subject_field" name="cntctfrm_required_subject_field" value="1" <?php if ( '1' == $cntctfrm_options['
|
1459 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1460 |
</td>
|
1461 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
@@ -1479,7 +1384,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1479 |
<td><?php _e( "Message", 'contact-form-plugin' ); ?></td>
|
1480 |
<td></td>
|
1481 |
<td>
|
1482 |
-
<label><input type="checkbox" id="cntctfrm_required_message_field" name="cntctfrm_required_message_field" value="1" <?php if ( '1' == $cntctfrm_options['
|
1483 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1484 |
</td>
|
1485 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
@@ -1523,7 +1428,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1523 |
</div>
|
1524 |
</td>
|
1525 |
<td>
|
1526 |
-
<label><input type="checkbox" id="cntctfrm_attachment" name="cntctfrm_attachment" value="1" <?php if ( '1' == $cntctfrm_options['
|
1527 |
<span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
|
1528 |
</td>
|
1529 |
<td></td>
|
@@ -1541,7 +1446,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1541 |
<td colspan="3"><fieldset>
|
1542 |
<div>
|
1543 |
<label>
|
1544 |
-
<input type="checkbox" id="cntctfrm_attachment_explanations" name="cntctfrm_attachment_explanations" value="1" <?php if ( '1' == $cntctfrm_options['
|
1545 |
<?php _e( "Tips below the Attachment", 'contact-form-plugin' ); ?>
|
1546 |
</label>
|
1547 |
<div class="bws_help_box dashicons dashicons-editor-help">
|
@@ -1550,7 +1455,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1550 |
</div>
|
1551 |
<div>
|
1552 |
<label>
|
1553 |
-
<input type="checkbox" id="cntctfrm_send_copy" name="cntctfrm_send_copy" value="1" <?php if ( '1' == $cntctfrm_options['
|
1554 |
<?php _e( "'Send me a copy' block", 'contact-form-plugin' ); ?>
|
1555 |
</label>
|
1556 |
<div class="bws_help_box dashicons dashicons-editor-help">
|
@@ -1563,7 +1468,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1563 |
if ( ! $contact_form_multi_active ) {
|
1564 |
$display_subscriber = ! empty( $cntctfrm_related_plugins['subscriber']['options']['contact_form'] ) ? true : false;
|
1565 |
} else {
|
1566 |
-
$display_subscriber = ! empty( $cntctfrm_options['
|
1567 |
}
|
1568 |
if ( ! $contact_form_multi_active || ! empty( $cntctfrm_related_plugins['subscriber']['options']['contact_form'] ) ) { ?>
|
1569 |
<label><input type="checkbox" name="cntctfrm_display_subscriber" value="1" <?php if ( $display_subscriber ) echo 'checked="checked"'; ?> /> Subscriber by BestWebSoft</label>
|
@@ -1594,14 +1499,14 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1594 |
if ( ! $contact_form_multi_active ) {
|
1595 |
$display_captcha = ! empty( $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['display_option'] ] ) ? true : false;
|
1596 |
} else {
|
1597 |
-
$display_captcha = ! empty( $cntctfrm_options['
|
1598 |
}
|
1599 |
|
1600 |
if ( ! $contact_form_multi_active || ! empty( $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['display_option'] ] ) ) { ?>
|
1601 |
<label><input type="checkbox" name="cntctfrm_display_captcha" value="1" <?php if ( $display_captcha ) echo 'checked="checked"'; ?> /> Captcha by BestWebSoft </label>
|
1602 |
<?php } else { ?>
|
1603 |
<label>
|
1604 |
-
<input type="checkbox" name="cntctfrm_display_captcha" value="1" disabled="disabled" <?php if ( $display_captcha ) echo 'checked="checked"'; ?> /> Captcha by BestWebSoft
|
1605 |
<span class="bws_info"> (<?php _e( 'Please activate the appropriate option on', 'contact-form-plugin' ) ?>
|
1606 |
<?php printf( '<a href="%s" target="_blank"> Captcha %s</a> )',
|
1607 |
self_admin_url( '/admin.php?page=' . $cntctfrm_related_plugins['captcha']['settings_page'] ),
|
@@ -1610,13 +1515,13 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1610 |
</label>
|
1611 |
<?php }
|
1612 |
} else { ?>
|
1613 |
-
<input disabled="disabled" type="checkbox" name="cntctfrm_display_captcha" value="1"
|
1614 |
<span class="bws_info">
|
1615 |
<?php printf( '<a href="%s" target="_blank">%s Captcha</a>', self_admin_url( 'plugins.php' ), __( 'Activate', 'contact-form-plugin' ) ); ?>
|
1616 |
</span>
|
1617 |
<?php }
|
1618 |
} else { ?>
|
1619 |
-
<input disabled="disabled" type="checkbox" name="cntctfrm_display_captcha" value="1" />
|
1620 |
<span class="bws_info">
|
1621 |
<?php printf( '<a href="http://bestwebsoft.com/products/captcha/?k=19ac1e9b23bea947cfc4a9b8e3326c03&pn=77&v=%s&wp_v=%s">%s Captcha</a>', $cntctfrm_plugin_info["Version"], $wp_version, __( 'Download', 'contact-form-plugin' ) ) ?>
|
1622 |
</span>
|
@@ -1628,31 +1533,29 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1628 |
if ( ! $contact_form_multi_active ) {
|
1629 |
$display_google_captcha = ! empty( $cntctfrm_related_plugins['google-captcha']['options']['contact_form'] ) ? true : false;
|
1630 |
} else {
|
1631 |
-
$display_google_captcha = ! empty( $cntctfrm_options['
|
1632 |
}
|
1633 |
|
1634 |
if ( ! $contact_form_multi_active || ! empty( $cntctfrm_related_plugins['google-captcha']['options']['contact_form'] ) ) { ?>
|
1635 |
-
<label><input type="checkbox" name="cntctfrm_display_google_captcha" value="1" <?php if ( $display_google_captcha )
|
1636 |
-
echo 'checked="checked"'; ?> /> Google Captcha (reCaptcha) by BestWebSoft</label>
|
1637 |
<?php } else { ?>
|
1638 |
<label>
|
1639 |
-
<input type="checkbox" name="cntctfrm_display_google_captcha" value="1" disabled="disabled" <?php if ( $display_google_captcha ) echo 'checked="checked"'; ?> /> Google Captcha (reCaptcha) by BestWebSoft
|
1640 |
<span class="bws_info"> (<?php _e( 'Please activate the appropriate option on', 'contact-form-plugin' ) ?>
|
1641 |
<?php printf( '<a href="%s" target="_blank"> Google Captcha %s</a> )',
|
1642 |
self_admin_url( '/admin.php?page=' . $cntctfrm_related_plugins['google-captcha']['settings_page'] ),
|
1643 |
__( 'settings page', 'contact-form-plugin' ) ); ?>
|
1644 |
-
|
1645 |
</span>
|
1646 |
</label>
|
1647 |
<?php }
|
1648 |
} else { ?>
|
1649 |
-
<input disabled="disabled" type="checkbox" name="cntctfrm_display_google_captcha" value="1"
|
1650 |
<span class="bws_info">
|
1651 |
<?php printf( '<a href="%s" target="_blank">%s Google Captcha</a>', self_admin_url( 'plugins.php' ), __( 'Activate', 'contact-form-plugin' ) ); ?>
|
1652 |
</span>
|
1653 |
<?php }
|
1654 |
} else { ?>
|
1655 |
-
<input disabled="disabled" type="checkbox" name="cntctfrm_display_google_captcha" value="1" />
|
1656 |
<?php printf( '<a href="http://bestwebsoft.com/products/google-captcha/?k=7d74e61dd1cea23d0e9bf2fa88b5b117&pn=77&v=%s&wp_v=%s">%s Google Captcha</a>', $cntctfrm_plugin_info["Version"], $wp_version, __( 'Download', 'contact-form-plugin' ) ) ?>
|
1657 |
</span>
|
1658 |
<?php } ?>
|
@@ -1688,24 +1591,24 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1688 |
<tr valign="top">
|
1689 |
<th scope="row"><?php _e( "Delete an attachment file from the server after the email is sent", 'contact-form-plugin' ); ?> </th>
|
1690 |
<td colspan="3">
|
1691 |
-
<input type="checkbox" id="cntctfrm_delete_attached_file" name="cntctfrm_delete_attached_file" value="1" <?php if ( '1' == $cntctfrm_options['
|
1692 |
</td>
|
1693 |
</tr>
|
1694 |
<tr valign="top">
|
1695 |
<th scope="row"><?php _e( "Email in HTML format sending", 'contact-form-plugin' ); ?></th>
|
1696 |
-
<td colspan="2"><input type="checkbox" name="cntctfrm_html_email" value="1" <?php if ( '1' == $cntctfrm_options['
|
1697 |
</tr>
|
1698 |
<tr valign="top">
|
1699 |
<th scope="row"><?php _e( "Display additional info in the email", 'contact-form-plugin' ); ?></th>
|
1700 |
<td style="width:15px;" class="cntctfrm_td_top_align">
|
1701 |
-
<input type="checkbox" id="cntctfrm_display_add_info" name="cntctfrm_display_add_info" value="1" <?php if ( '1' == $cntctfrm_options['
|
1702 |
</td>
|
1703 |
-
<td class="cntctfrm_display_add_info_block" <?php if ( '0' == $cntctfrm_options['
|
1704 |
<fieldset>
|
1705 |
-
<label><input type="checkbox" id="cntctfrm_display_sent_from" name="cntctfrm_display_sent_from" value="1" <?php if ( '1' == $cntctfrm_options['
|
1706 |
-
<label><input type="checkbox" id="cntctfrm_display_date_time" name="cntctfrm_display_date_time" value="1" <?php if ( '1' == $cntctfrm_options['
|
1707 |
-
<label><input type="checkbox" id="cntctfrm_display_coming_from" name="cntctfrm_display_coming_from" value="1" <?php if ( '1' == $cntctfrm_options['
|
1708 |
-
<label><input type="checkbox" id="cntctfrm_display_user_agent" name="cntctfrm_display_user_agent" value="1" <?php if ( '1' == $cntctfrm_options['
|
1709 |
</fieldset>
|
1710 |
</td>
|
1711 |
</tr>
|
@@ -1713,28 +1616,28 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1713 |
<th scope="row"><?php _e( "Language settings for the field names in the form", 'contact-form-plugin' ); ?></th>
|
1714 |
<td colspan="2">
|
1715 |
<select name="cntctfrm_languages" id="cntctfrm_languages" style="width:300px;">
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
</select>
|
1722 |
-
<input type="submit" class="button-
|
1723 |
</td>
|
1724 |
</tr>
|
1725 |
<tr valign="top">
|
1726 |
<th scope="row"><?php _e( "Change the names of the contact form fields and error messages", 'contact-form-plugin' ); ?></th>
|
1727 |
<td style="width:15px;" class="cntctfrm_td_top_align">
|
1728 |
-
<input type="checkbox" id="cntctfrm_change_label" name="cntctfrm_change_label" value="1" <?php if ( $cntctfrm_options['
|
1729 |
</td>
|
1730 |
-
<td class="cntctfrm_change_label_block" <?php if ( '0' == $cntctfrm_options['
|
1731 |
<div class="cntctfrm_label_language_tab <?php echo ! isset( $_POST['cntctfrm_change_tab'] ) || 'default' == $_POST['cntctfrm_change_tab'] ? 'cntctfrm_active' : ''; ?>" id="cntctfrm_label_default"><?php _e( 'Default', 'contact-form-plugin' ); ?>
|
1732 |
<noscript>
|
1733 |
<input type="submit" class="cntctfrm_change_tab" value="default" name="cntctfrm_change_tab">
|
1734 |
</noscript>
|
1735 |
</div>
|
1736 |
-
<?php if ( ! empty( $cntctfrm_options['
|
1737 |
-
foreach ( $cntctfrm_options['
|
1738 |
$active_tab_class = isset( $_POST["cntctfrm_change_tab"] ) && $val == $_POST["cntctfrm_change_tab"] ? "cntctfrm_active" : "";
|
1739 |
echo '<div class="cntctfrm_label_language_tab ' . $active_tab_class . '" id="cntctfrm_label_' . $val . '">' . $cntctfrm_lang_codes[ $val ] . ' <span class="cntctfrm_delete" rel="' . $val . '">X</span><noscript><input type="submit" class="cntctfrm_change_tab" value="' . $val . '" name="cntctfrm_change_tab"><span class="cntctfrm_del_button_wrap"><input type="submit" class="cntctfrm_delete_button" value="' . $val . '" name="cntctfrm_delete_button"></span></noscript></div>';
|
1740 |
}
|
@@ -1743,28 +1646,28 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1743 |
<div class="cntctfrm_language_tab cntctfrm_tab_default <?php echo ! isset( $_POST['cntctfrm_change_tab'] ) || 'default' == $_POST['cntctfrm_change_tab'] ? '' : 'hidden' ?>" style="padding: 1px 3px;">
|
1744 |
<div class="cntctfrm_language_tab_block_mini" style="display:none;"><?php _e( "click to expand/hide the list", 'contact-form-plugin' ); ?></div>
|
1745 |
<div class="cntctfrm_language_tab_block">
|
1746 |
-
<input type="text" maxlength="250" name="cntctfrm_name_label[default]" value="<?php echo $cntctfrm_options['
|
1747 |
-
<input type="text" maxlength="250" name="cntctfrm_address_label[default]" value="<?php echo $cntctfrm_options['
|
1748 |
-
<input type="text" maxlength="250" name="cntctfrm_email_label[default]" value="<?php echo $cntctfrm_options['
|
1749 |
-
<input type="text" maxlength="250" name="cntctfrm_phone_label[default]" value="<?php echo $cntctfrm_options['
|
1750 |
-
<input type="text" maxlength="250" name="cntctfrm_subject_label[default]" value="<?php echo $cntctfrm_options['
|
1751 |
-
<input type="text" maxlength="250" name="cntctfrm_message_label[default]" value="<?php echo $cntctfrm_options['
|
1752 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_label[default]" value="<?php echo $cntctfrm_options['
|
1753 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_tooltip[default]" value="<?php echo $cntctfrm_options['
|
1754 |
-
<input type="text" maxlength="250" name="cntctfrm_send_copy_label[default]" value="<?php echo $cntctfrm_options['
|
1755 |
-
<input type="text" maxlength="250" name="cntctfrm_submit_label[default]" value="<?php echo $cntctfrm_options['
|
1756 |
-
<input type="text" maxlength="250" name="cntctfrm_name_error[default]" value="<?php echo $cntctfrm_options['
|
1757 |
-
<input type="text" maxlength="250" name="cntctfrm_address_error[default]" value="<?php echo $cntctfrm_options['
|
1758 |
-
<input type="text" maxlength="250" name="cntctfrm_email_error[default]" value="<?php echo $cntctfrm_options['
|
1759 |
-
<input type="text" maxlength="250" name="cntctfrm_phone_error[default]" value="<?php echo $cntctfrm_options['
|
1760 |
-
<input type="text" maxlength="250" name="cntctfrm_subject_error[default]" value="<?php echo $cntctfrm_options['
|
1761 |
-
<input type="text" maxlength="250" name="cntctfrm_message_error[default]" value="<?php echo $cntctfrm_options['
|
1762 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_error[default]" value="<?php echo $cntctfrm_options['
|
1763 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_upload_error[default]" value="<?php echo $cntctfrm_options['
|
1764 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_move_error[default]" value="<?php echo $cntctfrm_options['
|
1765 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_size_error[default]" value="<?php echo $cntctfrm_options['
|
1766 |
-
<input type="text" maxlength="250" name="cntctfrm_captcha_error[default]" value="<?php echo $cntctfrm_options['
|
1767 |
-
<input type="text" maxlength="250" name="cntctfrm_form_error[default]" value="<?php echo $cntctfrm_options['
|
1768 |
</div>
|
1769 |
<?php if ( ! $contact_form_multi_active ) { ?>
|
1770 |
<span class="bws_info cntctfrm_shortcode_for_language" style="margin-left: 5px;"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
@@ -1772,8 +1675,8 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1772 |
<span class="bws_info cntctfrm_shortcode_for_language" style="margin-left: 5px;"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form id=<?php echo $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
1773 |
<?php } ?>
|
1774 |
</div>
|
1775 |
-
<?php if ( ! empty( $cntctfrm_options['
|
1776 |
-
foreach ( $cntctfrm_options['
|
1777 |
if ( ( isset( $_POST['cntctfrm_change_tab'] ) && $val != $_POST['cntctfrm_change_tab'] ) || ! isset($_POST['cntctfrm_change_tab'] ) )
|
1778 |
$labels_table_class = 'hidden';
|
1779 |
else
|
@@ -1781,28 +1684,28 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1781 |
<div class="cntctfrm_language_tab <?php echo $labels_table_class; ?> cntctfrm_tab_<?php echo $val; ?>">
|
1782 |
<div class="cntctfrm_language_tab_block_mini" style="display:none;"><?php _e( "click to expand/hide the list", 'contact-form-plugin' ); ?></div>
|
1783 |
<div class="cntctfrm_language_tab_block">
|
1784 |
-
<input type="text" maxlength="250" name="cntctfrm_name_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1785 |
-
<input type="text" maxlength="250" name="cntctfrm_address_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1786 |
-
<input type="text" maxlength="250" name="cntctfrm_email_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1787 |
-
<input type="text" maxlength="250" name="cntctfrm_phone_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1788 |
-
<input type="text" maxlength="250" name="cntctfrm_subject_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1789 |
-
<input type="text" maxlength="250" name="cntctfrm_message_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1790 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1791 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_tooltip[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1792 |
-
<input type="text" maxlength="250" name="cntctfrm_send_copy_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1793 |
-
<input type="text" maxlength="250" name="cntctfrm_submit_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1794 |
-
<input type="text" maxlength="250" name="cntctfrm_name_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1795 |
-
<input type="text" maxlength="250" name="cntctfrm_address_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1796 |
-
<input type="text" maxlength="250" name="cntctfrm_email_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1797 |
-
<input type="text" maxlength="250" name="cntctfrm_phone_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1798 |
-
<input type="text" maxlength="250" name="cntctfrm_subject_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1799 |
-
<input type="text" maxlength="250" name="cntctfrm_message_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1800 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1801 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_upload_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1802 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_move_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1803 |
-
<input type="text" maxlength="250" name="cntctfrm_attachment_size_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1804 |
-
<input type="text" maxlength="250" name="cntctfrm_captcha_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1805 |
-
<input type="text" maxlength="250" name="cntctfrm_form_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1806 |
</div>
|
1807 |
<?php if ( ! $contact_form_multi_active ) { ?>
|
1808 |
<span class="bws_info cntctfrm_shortcode_for_language" style="margin-left: 5px;"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=<?php echo $val; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
@@ -1817,41 +1720,41 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1817 |
<tr valign="top">
|
1818 |
<th scope="row"><?php _e( 'Use the changed names of the contact form fields in the email', 'contact-form-plugin' ); ?></th>
|
1819 |
<td colspan="2">
|
1820 |
-
<input type="checkbox" name="cntctfrm_change_label_in_email" value="1" <?php if ( $cntctfrm_options['
|
1821 |
</td>
|
1822 |
</tr>
|
1823 |
<tr valign="top">
|
1824 |
<th scope="row"><?php _e( "Action after email is sent", 'contact-form-plugin' ); ?></th>
|
1825 |
<td colspan="2" class="cntctfrm_action_after_send_block">
|
1826 |
-
<label><input type="radio" id="cntctfrm_action_after_send" name="cntctfrm_action_after_send" value="1" <?php if ( '1' == $cntctfrm_options['
|
1827 |
<div class="cntctfrm_label_language_tab <?php echo ! isset( $_POST['cntctfrm_change_tab'] ) || 'default' == $_POST['cntctfrm_change_tab'] ? 'cntctfrm_active' : ''; ?>" id="cntctfrm_text_default"><?php _e( 'Default', 'contact-form-plugin' ); ?>
|
1828 |
<noscript>
|
1829 |
<input type="submit" class="cntctfrm_change_tab" value="default" name="cntctfrm_change_tab">
|
1830 |
</noscript>
|
1831 |
</div>
|
1832 |
-
<?php if ( ! empty( $cntctfrm_options['
|
1833 |
-
foreach ( $cntctfrm_options['
|
1834 |
$active_tab_class = isset( $_POST["cntctfrm_change_tab"] ) && $val == $_POST["cntctfrm_change_tab"] ? "cntctfrm_active" : "";
|
1835 |
echo '<div class="cntctfrm_label_language_tab ' . $active_tab_class . '" id="cntctfrm_text_' . $val . '">' . $cntctfrm_lang_codes[ $val ] . ' <span class="cntctfrm_delete" rel="' . $val . '">X</span><noscript><input type="submit" class="cntctfrm_change_tab" value="' . $val . '" name="cntctfrm_change_tab"><span class="cntctfrm_del_button_wrap"><input type="submit" class="cntctfrm_delete_button" value="' . $val . '" name="cntctfrm_delete_button"></span></noscript></div>';
|
1836 |
}
|
1837 |
} ?>
|
1838 |
<div class="clear"></div>
|
1839 |
<div class="cntctfrm_language_tab cntctfrm_tab_default <?php echo ! isset( $_POST['cntctfrm_change_tab'] ) || 'default' == $_POST['cntctfrm_change_tab'] ? '' : 'hidden' ?>" style="padding: 5px 10px 5px 5px;">
|
1840 |
-
<label><input type="text" maxlength="250" name="cntctfrm_thank_text[default]" value="<?php echo $cntctfrm_options['
|
1841 |
<?php if ( ! $contact_form_multi_active ) { ?>
|
1842 |
<span class="bws_info cntctfrm_shortcode_for_language"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
1843 |
<?php } else { ?>
|
1844 |
<span class="bws_info cntctfrm_shortcode_for_language"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form id=<?php echo $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
1845 |
<?php } ?>
|
1846 |
</div>
|
1847 |
-
<?php if ( ! empty( $cntctfrm_options['
|
1848 |
-
foreach ( $cntctfrm_options['
|
1849 |
if ( ( isset( $_POST['cntctfrm_change_tab'] ) && $val != $_POST['cntctfrm_change_tab'] ) || ! isset($_POST['cntctfrm_change_tab'] ) )
|
1850 |
$labels_table_class = 'hidden';
|
1851 |
else
|
1852 |
$labels_table_class = ''; ?>
|
1853 |
<div class="cntctfrm_language_tab <?php echo $labels_table_class; ?> cntctfrm_tab_<?php echo $val; ?>" style="padding: 5px 10px 5px 5px;">
|
1854 |
-
<label><input type="text" maxlength="250" name="cntctfrm_thank_text[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['
|
1855 |
<?php if ( ! $contact_form_multi_active ) { ?>
|
1856 |
<span class="bws_info cntctfrm_shortcode_for_language"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=<?php echo $val; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
1857 |
<?php } else { ?>
|
@@ -1862,8 +1765,8 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1862 |
} ?>
|
1863 |
<div id="cntctfrm_before"></div>
|
1864 |
<br />
|
1865 |
-
<label><input type="radio" id="cntctfrm_action_after_send_url" name="cntctfrm_action_after_send" value="0" <?php if ( '0' == $cntctfrm_options['
|
1866 |
-
<label><input type="text" maxlength="250" name="cntctfrm_redirect_url" value="<?php echo $cntctfrm_options['
|
1867 |
</td>
|
1868 |
</tr>
|
1869 |
</table>
|
@@ -1934,10 +1837,10 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1934 |
<th scope="row"><?php _e( "Form layout", 'contact-form-plugin' ); ?></th>
|
1935 |
<td colspan="2">
|
1936 |
<fieldset>
|
1937 |
-
<input id="cntctfrm_layout_one_column" name="cntctfrm_layout" type="radio" value="1" <?php if ( $cntctfrm_options['
|
1938 |
<label for="cntctfrm_layout_one_column"><?php _e( 'One column', 'contact-form-plugin' ); ?></label>
|
1939 |
<br/>
|
1940 |
-
<input id="cntctfrm_layout_two_columns" name="cntctfrm_layout" type="radio" value="2" <?php if ( $cntctfrm_options['
|
1941 |
<label for="cntctfrm_layout_two_columns"><?php _e( 'Two columns', 'contact-form-plugin' ); ?></label>
|
1942 |
</fieldset>
|
1943 |
</td>
|
@@ -1946,10 +1849,10 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
1946 |
<th scope="row"><?php _e( "Submit position", 'contact-form-plugin' ); ?></th>
|
1947 |
<td colspan="2">
|
1948 |
<fieldset>
|
1949 |
-
<input id="cntctfrm_submit_position_left" name="cntctfrm_submit_position" type="radio" value="left" <?php if ( $cntctfrm_options['
|
1950 |
<label for="cntctfrm_submit_position_left"><?php _e( 'Left', 'contact-form-plugin' ); ?></label>
|
1951 |
<br/>
|
1952 |
-
<input id="cntctfrm_submit_position_right" name="cntctfrm_submit_position" type="radio" value="right" <?php if ( $cntctfrm_options['
|
1953 |
<label for="cntctfrm_submit_position_right"><?php _e( 'Right', 'contact-form-plugin' ); ?></label>
|
1954 |
</fieldset>
|
1955 |
</td>
|
@@ -2032,7 +1935,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2032 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_name" value="1" />
|
2033 |
<label for="cntctfrm_tooltip_display_name"><?php _e( "Name", 'contact-form-plugin' ); ?></label>
|
2034 |
</div>
|
2035 |
-
<?php if ( '1' == $cntctfrm_options['
|
2036 |
<div>
|
2037 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_address" value="1" />
|
2038 |
<label for="cntctfrm_tooltip_display_address"><?php _e( "Address", 'contact-form-plugin' ); ?></label>
|
@@ -2042,7 +1945,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2042 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_email" value="1" />
|
2043 |
<label for="cntctfrm_tooltip_display_email"><?php _e( "Email address", 'contact-form-plugin' ); ?></label>
|
2044 |
</div>
|
2045 |
-
<?php if ( '1' == $cntctfrm_options['
|
2046 |
<div>
|
2047 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_phone" value="1" />
|
2048 |
<label for="cntctfrm_tooltip_display_phone"><?php _e( "Phone Number", 'contact-form-plugin' ); ?></label>
|
@@ -2056,7 +1959,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2056 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_message" value="1" />
|
2057 |
<label for="cntctfrm_tooltip_display_message"><?php _e( "Message", 'contact-form-plugin' ); ?></label>
|
2058 |
</div>
|
2059 |
-
<?php if ( '1' == $cntctfrm_options['
|
2060 |
<div>
|
2061 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_attachment" value="1" />
|
2062 |
<label for="cntctfrm_tooltip_display_attachment"><?php _e( "Attachment", 'contact-form-plugin' ); ?></label>
|
@@ -2188,25 +2091,25 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2188 |
<h3><?php _e( 'Contact Form | Preview', 'contact-form-plugin' ); ?></h3>
|
2189 |
<span class="bws_info"><?php _e( 'Drag the necessary field to sort fields.', 'contact-form-plugin' ); ?></span>
|
2190 |
<?php
|
2191 |
-
$
|
2192 |
-
$
|
2193 |
?>
|
2194 |
-
<div id="cntctfrm_contact_form" class="cntctfrm_contact_form<?php echo $
|
2195 |
-
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['
|
2196 |
<div id="cntctfrm_wrap">
|
2197 |
<?php $cntctfrm_ordered_fields = cntctfrm_get_ordered_fields();
|
2198 |
for ( $i = 1; $i <= 2; $i++ ) {
|
2199 |
-
$
|
2200 |
-
<ul id="cntctfrm_<?php echo $
|
2201 |
-
<?php foreach ( $cntctfrm_ordered_fields[ $
|
2202 |
switch( $cntctfrm_field ) {
|
2203 |
case 'cntctfrm_contact_name':
|
2204 |
-
if ( 1 == $cntctfrm_options['
|
2205 |
<li class="cntctfrm_field_wrap">
|
2206 |
<div class="cntctfrm_label cntctfrm_label_name">
|
2207 |
-
<label for="cntctfrm_contact_name"><?php echo $cntctfrm_options['
|
2208 |
</div>
|
2209 |
-
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['
|
2210 |
<div class="cntctfrm_input cntctfrm_input_name">
|
2211 |
<div class="cntctfrm_drag_wrap"></div>
|
2212 |
<input class="text bws_no_bind_notice" type="text" size="40" value="" name="cntctfrm_contact_name" id="cntctfrm_contact_name" />
|
@@ -2215,13 +2118,13 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2215 |
<?php }
|
2216 |
break;
|
2217 |
case 'cntctfrm_contact_address':
|
2218 |
-
if ( 1 == $cntctfrm_options['
|
2219 |
<li class="cntctfrm_field_wrap">
|
2220 |
<div class="cntctfrm_label cntctfrm_label_address">
|
2221 |
-
<label for="cntctfrm_contact_address"><?php echo $cntctfrm_options['
|
2222 |
</div>
|
2223 |
-
<?php if ( 1 == $cntctfrm_options['
|
2224 |
-
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['
|
2225 |
<?php } ?>
|
2226 |
<div class="cntctfrm_input cntctfrm_input_address">
|
2227 |
<div class="cntctfrm_drag_wrap"></div>
|
@@ -2233,9 +2136,9 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2233 |
case 'cntctfrm_contact_email': ?>
|
2234 |
<li class="cntctfrm_field_wrap">
|
2235 |
<div class="cntctfrm_label cntctfrm_label_email">
|
2236 |
-
<label for="cntctfrm_contact_email"><?php echo $cntctfrm_options['
|
2237 |
</div>
|
2238 |
-
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['
|
2239 |
<div class="cntctfrm_input cntctfrm_input_email">
|
2240 |
<div class="cntctfrm_drag_wrap"></div>
|
2241 |
<input class="text bws_no_bind_notice" type="text" size="40" value="" name="cntctfrm_contact_email" id="cntctfrm_contact_email" />
|
@@ -2243,12 +2146,12 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2243 |
</li>
|
2244 |
<?php break;
|
2245 |
case 'cntctfrm_contact_phone':
|
2246 |
-
if ( 1 == $cntctfrm_options['
|
2247 |
<li class="cntctfrm_field_wrap">
|
2248 |
<div class="cntctfrm_label cntctfrm_label_phone">
|
2249 |
-
<label for="cntctfrm_contact_phone"><?php echo $cntctfrm_options['
|
2250 |
</div>
|
2251 |
-
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['
|
2252 |
<div class="cntctfrm_input cntctfrm_input_phone">
|
2253 |
<div class="cntctfrm_drag_wrap"></div>
|
2254 |
<input class="text bws_no_bind_notice" type="text" size="40" value="" name="cntctfrm_contact_phone" id="cntctfrm_contact_phone" />
|
@@ -2259,9 +2162,9 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2259 |
case 'cntctfrm_contact_subject': ?>
|
2260 |
<li class="cntctfrm_field_wrap">
|
2261 |
<div class="cntctfrm_label cntctfrm_label_subject">
|
2262 |
-
<label for="cntctfrm_contact_subject"><?php echo $cntctfrm_options['
|
2263 |
</div>
|
2264 |
-
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['
|
2265 |
<div class="cntctfrm_input cntctfrm_input_subject">
|
2266 |
<div class="cntctfrm_drag_wrap"></div>
|
2267 |
<input class="text bws_no_bind_notice" type="text" size="40" value="" name="cntctfrm_contact_subject" id="cntctfrm_contact_subject" />
|
@@ -2271,9 +2174,9 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2271 |
case 'cntctfrm_contact_message': ?>
|
2272 |
<li class="cntctfrm_field_wrap">
|
2273 |
<div class="cntctfrm_label cntctfrm_label_message">
|
2274 |
-
<label for="cntctfrm_contact_message"><?php echo $cntctfrm_options['
|
2275 |
</div>
|
2276 |
-
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['
|
2277 |
<div class="cntctfrm_input cntctfrm_input_message">
|
2278 |
<div class="cntctfrm_drag_wrap"></div>
|
2279 |
<textarea class="bws_no_bind_notice" rows="5" cols="30" name="cntctfrm_contact_message" id="cntctfrm_contact_message"></textarea>
|
@@ -2281,36 +2184,36 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2281 |
</li>
|
2282 |
<?php break;
|
2283 |
case 'cntctfrm_contact_attachment':
|
2284 |
-
if ( 1 == $cntctfrm_options['
|
2285 |
<li class="cntctfrm_field_wrap">
|
2286 |
<div class="cntctfrm_label cntctfrm_label_attachment">
|
2287 |
-
<label for="cntctfrm_contact_attachment"><?php echo $cntctfrm_options['
|
2288 |
</div>
|
2289 |
-
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['
|
2290 |
<div class="cntctfrm_input cntctfrm_input_attachment">
|
2291 |
<div class="cntctfrm_drag_wrap"></div>
|
2292 |
<input class="bws_no_bind_notice" type="file" name="cntctfrm_contact_attachment" id="cntctfrm_contact_attachment" />
|
2293 |
-
<?php if ( 1 == $cntctfrm_options['
|
2294 |
-
<label class="cntctfrm_contact_attachment_extensions"><?php echo $cntctfrm_options['
|
2295 |
<?php } ?>
|
2296 |
</div>
|
2297 |
</li>
|
2298 |
<?php }
|
2299 |
break;
|
2300 |
case 'cntctfrm_contact_send_copy':
|
2301 |
-
if ( 1 == $cntctfrm_options['
|
2302 |
<li class="cntctfrm_field_wrap">
|
2303 |
<div class="cntctfrm_checkbox cntctfrm_checkbox_send_copy">
|
2304 |
<div class="cntctfrm_drag_wrap"></div>
|
2305 |
<input type="checkbox" value="1" name="cntctfrm_contact_send_copy" id="cntctfrm_contact_send_copy" class="bws_no_bind_notice" style="margin: 0;" />
|
2306 |
-
<label for="cntctfrm_contact_send_copy"><?php echo $cntctfrm_options['
|
2307 |
</div>
|
2308 |
</li>
|
2309 |
<?php }
|
2310 |
break;
|
2311 |
case 'cntctfrm_subscribe':
|
2312 |
if ( array_key_exists( 'subscriber', $cntctfrm_related_plugins ) ) {
|
2313 |
-
if ( ( ! $contact_form_multi_active && ! empty( $cntctfrm_related_plugins['subscriber']['options']['contact_form'] ) ) || ! empty( $cntctfrm_options['
|
2314 |
<li class="cntctfrm_field_wrap">
|
2315 |
<div class="cntctfrm_checkbox cntctfrm_checkbox_subscribe">
|
2316 |
<div class="cntctfrm_drag_wrap"></div>
|
@@ -2325,25 +2228,45 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2325 |
}
|
2326 |
break;
|
2327 |
case 'cntctfrm_captcha':
|
2328 |
-
if ( array_key_exists( 'captcha', $cntctfrm_related_plugins )
|
2329 |
-
|
2330 |
-
|
2331 |
-
|
|
|
|
|
|
|
2332 |
|
|
|
|
|
|
|
2333 |
if ( ! empty( $captcha_label ) ) {
|
2334 |
-
$
|
2335 |
-
|
2336 |
-
|
2337 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2338 |
<li class="cntctfrm_field_wrap">
|
2339 |
<div class="cntctfrm_label cntctfrm_label_captcha">
|
2340 |
-
<label><?php echo $
|
2341 |
-
</div>
|
2342 |
-
<div class="cntctfrm_input cntctfrm_input_captcha">
|
2343 |
-
<div class="cntctfrm_drag_wrap"></div>
|
2344 |
-
<img src="<?php echo plugins_url( 'images/cptch.png', __FILE__ ); ?>">
|
2345 |
-
<input id="cntctfrm_captcha" type="hidden" name="cntctfrm_captcha">
|
2346 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2347 |
</li>
|
2348 |
<?php }
|
2349 |
}
|
@@ -2366,14 +2289,14 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2366 |
'rtl' => array(
|
2367 |
'left' => 2,
|
2368 |
'right' => 1
|
2369 |
-
)
|
2370 |
);
|
2371 |
for ( $i = 1; $i <= 2; $i++ ) {
|
2372 |
-
$
|
2373 |
-
<div id="cntctfrm_submit_<?php echo $
|
2374 |
-
<?php if ( $i == $submit_position_value[ $cntctfrm_direction ][ $cntctfrm_options['
|
2375 |
-
<div class="cntctfrm_input cntctfrm_input_submit" style="<?php printf( 'text-align: %s !important;', $cntctfrm_options['
|
2376 |
-
<input type="button" value="<?php echo $cntctfrm_options['
|
2377 |
</div>
|
2378 |
<?php } ?>
|
2379 |
</div>
|
@@ -2392,8 +2315,8 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
2392 |
</div>
|
2393 |
<div class="clear"></div>
|
2394 |
<input type="hidden" name="cntctfrm_form_appearance_submit" value="submit" />
|
2395 |
-
<input type="hidden" id="cntctfrm_layout_first_column" name="cntctfrm_layout_first_column" value="<?php echo implode( ',', $cntctfrm_options['
|
2396 |
-
<input type="hidden" id="cntctfrm_layout_second_column" name="cntctfrm_layout_second_column" value="<?php echo implode( ',', $cntctfrm_options['
|
2397 |
<p class="submit">
|
2398 |
<input id="bws-submit-button" type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'contact-form-plugin' ); ?>" />
|
2399 |
</p>
|
@@ -2422,7 +2345,7 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2422 |
|
2423 |
$contact_form_multi_active = cntctfrm_check_cf_multi_active();
|
2424 |
|
2425 |
-
if( ! wp_script_is( 'cntctfrm_frontend_script', 'registered' ) )
|
2426 |
wp_register_script( 'cntctfrm_frontend_script', plugins_url( 'js/cntctfrm.js', __FILE__ ), array( 'jquery' ), false, true );
|
2427 |
|
2428 |
$cntctfrm_form_count = empty( $cntctfrm_form_count ) ? 1 : ++$cntctfrm_form_count;
|
@@ -2503,10 +2426,10 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2503 |
if ( true === $cntctfrm_result && $cntctfrm_form_count == $form_submited ) {
|
2504 |
$_SESSION['cntctfrm_send_mail'] = true;
|
2505 |
|
2506 |
-
if ( 1 == $cntctfrm_options['
|
2507 |
-
$content .= '<div id="cntctfrm_contact_form' . $form_countid . '"><div id="cntctfrm_thanks">' . $cntctfrm_options['
|
2508 |
else
|
2509 |
-
$content .= "<script type='text/javascript'>window.location.href = '" . $cntctfrm_options['
|
2510 |
|
2511 |
} elseif ( false === $cntctfrm_result && $cntctfrm_form_count == $form_submited ) {
|
2512 |
/* If email not be delivered */
|
@@ -2516,11 +2439,11 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2516 |
if ( true !== $cntctfrm_result || $cntctfrm_form_count != $form_submited ) {
|
2517 |
$_SESSION['cntctfrm_send_mail'] = false;
|
2518 |
|
2519 |
-
$
|
2520 |
-
$
|
2521 |
|
2522 |
/* Output form */
|
2523 |
-
$content .= '<form method="post" id="cntctfrm_contact_form' . $form_countid . '" class="cntctfrm_contact_form' . $
|
2524 |
$content .= ' action="' . $page_url . $form_countid . '" enctype="multipart/form-data">';
|
2525 |
if ( isset( $cntctfrm_error_message['error_form'] ) && $cntctfrm_form_count == $form_submited ) {
|
2526 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_form'] . '</div>';
|
@@ -2528,18 +2451,18 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2528 |
|
2529 |
$cntctfrm_ordered_fields = cntctfrm_get_ordered_fields();
|
2530 |
|
2531 |
-
for ( $i = 1; $i <= $cntctfrm_options['
|
2532 |
|
2533 |
-
$
|
2534 |
-
$content .= '<div id="cntctfrm_' . $
|
2535 |
|
2536 |
-
foreach ( $cntctfrm_ordered_fields[ $
|
2537 |
switch( $cntctfrm_field ) {
|
2538 |
case 'cntctfrm_contact_name':
|
2539 |
-
if ( 1 == $cntctfrm_options['
|
2540 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_name_wrap">';
|
2541 |
$content .= '<div class="cntctfrm_label cntctfrm_label_name">
|
2542 |
-
<label for="cntctfrm_contact_name' . $form_countid . '">' . $cntctfrm_options['
|
2543 |
$content .= '</div>';
|
2544 |
if ( isset( $cntctfrm_error_message['error_name'] ) && $cntctfrm_form_count == $form_submited ) {
|
2545 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_name'] . '</div>';
|
@@ -2551,10 +2474,10 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2551 |
}
|
2552 |
break;
|
2553 |
case 'cntctfrm_contact_address':
|
2554 |
-
if ( 1 == $cntctfrm_options['
|
2555 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_address_wrap">';
|
2556 |
$content .= '<div class="cntctfrm_label cntctfrm_label_address">
|
2557 |
-
<label for="cntctfrm_contact_address' . $form_countid . '">' . $cntctfrm_options['
|
2558 |
if ( isset( $cntctfrm_error_message['error_address'] ) && $cntctfrm_form_count == $form_submited ) {
|
2559 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_address'] . '</div>';
|
2560 |
}
|
@@ -2567,7 +2490,7 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2567 |
case 'cntctfrm_contact_email':
|
2568 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_email_wrap">';
|
2569 |
$content .= '<div class="cntctfrm_label cntctfrm_label_email">
|
2570 |
-
<label for="cntctfrm_contact_email' . $form_countid . '">' . $cntctfrm_options['
|
2571 |
</div>';
|
2572 |
if ( isset( $cntctfrm_error_message['error_email'] ) && $cntctfrm_form_count == $form_submited ) {
|
2573 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_email'] . '</div>';
|
@@ -2578,10 +2501,10 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2578 |
$content .= '</div>';
|
2579 |
break;
|
2580 |
case 'cntctfrm_contact_phone':
|
2581 |
-
if ( 1 == $cntctfrm_options['
|
2582 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_phone_wrap">';
|
2583 |
$content .= '<div class="cntctfrm_label cntctfrm_label_phone">
|
2584 |
-
<label for="cntctfrm_contact_phone' . $form_countid . '">' . $cntctfrm_options['
|
2585 |
</div>';
|
2586 |
if ( isset( $cntctfrm_error_message['error_phone'] ) && $cntctfrm_form_count == $form_submited ) {
|
2587 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_phone'] . '</div>';
|
@@ -2595,7 +2518,7 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2595 |
case 'cntctfrm_contact_subject':
|
2596 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_subject_wrap">';
|
2597 |
$content .= '<div class="cntctfrm_label cntctfrm_label_subject">
|
2598 |
-
<label for="cntctfrm_contact_subject' . $form_countid . '">' . $cntctfrm_options['
|
2599 |
</div>';
|
2600 |
if ( isset( $cntctfrm_error_message['error_subject'] ) && $cntctfrm_form_count == $form_submited ) {
|
2601 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_subject'] . '</div>';
|
@@ -2608,7 +2531,7 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2608 |
case 'cntctfrm_contact_message':
|
2609 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_message_wrap">';
|
2610 |
$content .= '<div class="cntctfrm_label cntctfrm_label_message">
|
2611 |
-
<label for="cntctfrm_contact_message' . $form_countid . '">' . $cntctfrm_options['
|
2612 |
</div>';
|
2613 |
if ( isset( $cntctfrm_error_message['error_message'] ) && $cntctfrm_form_count == $form_submited ) {
|
2614 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_message'] . '</div>';
|
@@ -2619,35 +2542,35 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2619 |
$content .= '</div>';
|
2620 |
break;
|
2621 |
case 'cntctfrm_contact_attachment':
|
2622 |
-
if ( 1 == $cntctfrm_options['
|
2623 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_attachment_wrap">';
|
2624 |
$content .= '<div class="cntctfrm_label cntctfrm_label_attachment">
|
2625 |
-
<label for="cntctfrm_contact_attachment' . $form_countid . '">' . $cntctfrm_options['
|
2626 |
</div>';
|
2627 |
if ( isset( $cntctfrm_error_message['error_attachment'] ) && $cntctfrm_form_count == $form_submited ) {
|
2628 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_attachment'] . '</div>';
|
2629 |
}
|
2630 |
$content .= '<div class="cntctfrm_input cntctfrm_input_attachment">
|
2631 |
<input type="file" name="cntctfrm_contact_attachment" id="cntctfrm_contact_attachment' . $form_countid . '"' . ( isset( $cntctfrm_error_message['error_attachment'] ) ? "class='error'": "" ) . ' />';
|
2632 |
-
if ( 1 == $cntctfrm_options['
|
2633 |
-
$content .= '<label class="cntctfrm_contact_attachment_extensions"><br />' . $cntctfrm_options['
|
2634 |
}
|
2635 |
$content .= '</div>';
|
2636 |
$content .= '</div>';
|
2637 |
}
|
2638 |
break;
|
2639 |
case 'cntctfrm_contact_send_copy':
|
2640 |
-
if ( 1 == $cntctfrm_options['
|
2641 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_attachment_wrap">';
|
2642 |
$content .= '<div class="cntctfrm_checkbox cntctfrm_checkbox_send_copy">
|
2643 |
<input type="checkbox" value="1" name="cntctfrm_contact_send_copy" id="cntctfrm_contact_send_copy"' . ( $send_copy == '1' ? ' checked="checked" ' : "" ) . ' />
|
2644 |
-
<label for="cntctfrm_contact_send_copy">' . $cntctfrm_options['
|
2645 |
$content .= '</div>';
|
2646 |
$content .= '</div>';
|
2647 |
}
|
2648 |
break;
|
2649 |
case 'cntctfrm_subscribe':
|
2650 |
-
if ( has_filter( 'sbscrbr_cntctfrm_checkbox_add' ) && ( ( ! $contact_form_multi_active && ! empty( $cntctfrm_related_plugins['subscriber']['options']['contact_form'] ) ) || ! empty( $cntctfrm_options['
|
2651 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_checkbox_subscribe_wrap">';
|
2652 |
$content .= '<div class="cntctfrm_checkbox cntctfrm_checkbox_subscribe">';
|
2653 |
$cntctfrm_sbscrbr_checkbox = apply_filters( 'sbscrbr_cntctfrm_checkbox_add', array(
|
@@ -2661,36 +2584,40 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2661 |
}
|
2662 |
break;
|
2663 |
case 'cntctfrm_captcha':
|
2664 |
-
$removed_filters =
|
2665 |
if ( has_filter( 'cntctfrm_display_captcha' ) ) {
|
2666 |
-
|
|
|
2667 |
$display_captcha = true;
|
2668 |
-
}
|
|
|
2669 |
$display_google_captcha = true;
|
2670 |
}
|
2671 |
-
if ( ! empty( $display_captcha ) ) {
|
2672 |
-
$captcha_label = $captcha_required_symbol = '';
|
2673 |
|
|
|
2674 |
if ( array_key_exists( 'captcha', $cntctfrm_related_plugins ) ) {
|
2675 |
$captcha_label = $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['label'] ];
|
2676 |
-
|
2677 |
-
|
2678 |
-
|
2679 |
-
|
2680 |
-
$display_captcha_label = $captcha_label . $captcha_required_symbol;
|
2681 |
-
} else {
|
2682 |
-
$display_captcha_label = '';
|
2683 |
}
|
2684 |
}
|
|
|
2685 |
if ( ! empty( $display_captcha ) || ! empty( $display_google_captcha ) ) {
|
2686 |
-
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_captcha_wrap">';
|
|
|
|
|
|
|
|
|
|
|
2687 |
$content .= '<div class="cntctfrm_input cntctfrm_input_captcha">';
|
2688 |
-
$content .= apply_filters( 'cntctfrm_display_captcha'
|
2689 |
$content .= '</div>';
|
2690 |
$content .= '</div>';
|
2691 |
}
|
2692 |
}
|
2693 |
-
|
2694 |
break;
|
2695 |
default:
|
2696 |
break;
|
@@ -2716,17 +2643,17 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2716 |
|
2717 |
$content .= '<div class="cntctfrm_submit_wrap">';
|
2718 |
for ( $i = 1; $i <= 2; $i++ ) {
|
2719 |
-
$
|
2720 |
-
$content .= '<div id="cntctfrm_submit_' . $
|
2721 |
-
if ( $i == $submit_position_value[ $cntctfrm_direction ][ $cntctfrm_options['
|
2722 |
-
$content .= '<div class="cntctfrm_input cntctfrm_input_submit" style="text-align: ' . $cntctfrm_options['
|
2723 |
if ( isset( $atts['id'] ) )
|
2724 |
$content .= '<input type="hidden" value="' . esc_attr( $atts['id'] ) . '" name="cntctfrmmlt_shortcode_id">';
|
2725 |
$content .= '<input type="hidden" value="send" name="cntctfrm_contact_action"><input type="hidden" value="Version: 3.30" />
|
2726 |
<input type="hidden" value="' . esc_attr( $lang ) . '" name="cntctfrm_language">
|
2727 |
<input type="hidden" value="' . $cntctfrm_form_count . '" name="cntctfrm_form_submited">
|
2728 |
<input type="hidden" value="' . $options_name . '" name="cntctfrm_options_name">
|
2729 |
-
<input type="submit" value="' . $cntctfrm_options['
|
2730 |
</div>';
|
2731 |
}
|
2732 |
$content .= '</div>';
|
@@ -2739,23 +2666,31 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
2739 |
}
|
2740 |
}
|
2741 |
|
2742 |
-
|
2743 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2744 |
global $cntctfrm_options, $cntctfrm_related_plugins;
|
2745 |
|
2746 |
-
if (
|
2747 |
-
cntctfrm_related_plugins();
|
2748 |
|
2749 |
-
|
|
|
2750 |
|
2751 |
-
|
2752 |
-
$display_captcha = true;
|
2753 |
-
if ( array_key_exists( 'google-captcha', $cntctfrm_related_plugins ) && ( ! $contact_form_multi_active && ! empty( $cntctfrm_related_plugins['google-captcha']['options']['contact_form'] ) || ! empty( $cntctfrm_options['cntctfrm_display_google_captcha'] ) ) )
|
2754 |
-
$display_google_captcha = true;
|
2755 |
|
2756 |
-
|
2757 |
-
|
2758 |
-
$
|
|
|
|
|
|
|
|
|
|
|
2759 |
$filters = array(
|
2760 |
'google-captcha' => array(
|
2761 |
'gglcptch_cf_display' => 'gglcptch_recaptcha_check',
|
@@ -2768,14 +2703,8 @@ if ( ! function_exists( 'cntctfrm_add_remove_captcha_filters' ) ) {
|
|
2768 |
)
|
2769 |
);
|
2770 |
|
2771 |
-
if ( empty( $display_captcha ) )
|
2772 |
-
$remove_captcha[] = 'captcha';
|
2773 |
-
if ( empty( $display_google_captcha ) )
|
2774 |
-
$remove_captcha[] = 'google-captcha';
|
2775 |
-
|
2776 |
if ( ! empty( $remove_captcha ) ) {
|
2777 |
foreach ( $remove_captcha as $remove ) {
|
2778 |
-
|
2779 |
foreach ( $filters[ $remove ] as $display_filter => $check_filter ) {
|
2780 |
if ( has_filter( 'cntctfrm_display_captcha', $display_filter ) ) {
|
2781 |
remove_filter( 'cntctfrm_display_captcha', $display_filter );
|
@@ -2791,8 +2720,8 @@ if ( ! function_exists( 'cntctfrm_add_remove_captcha_filters' ) ) {
|
|
2791 |
}
|
2792 |
return $removed_filters;
|
2793 |
} elseif ( 'add_filters' == $action && ! empty( $removed_filters ) ) {
|
2794 |
-
|
2795 |
-
foreach( $
|
2796 |
add_filter( $tag, $function );
|
2797 |
}
|
2798 |
}
|
@@ -2814,8 +2743,8 @@ if ( ! function_exists( 'cntctfrm_check_and_send' ) ) {
|
|
2814 |
/* If it is good */
|
2815 |
if ( true === $cntctfrm_result ) {
|
2816 |
$_SESSION['cntctfrm_send_mail'] = true;
|
2817 |
-
if ( 0 == $cntctfrm_options['
|
2818 |
-
wp_redirect( $cntctfrm_options['
|
2819 |
exit;
|
2820 |
}
|
2821 |
}
|
@@ -2829,11 +2758,11 @@ if ( ! function_exists( 'cntctfrm_check_form' ) ) {
|
|
2829 |
global $cntctfrm_error_message, $cntctfrm_options, $cntctfrm_related_plugins;
|
2830 |
|
2831 |
if ( empty( $cntctfrm_related_plugins ) )
|
2832 |
-
|
2833 |
|
2834 |
$contact_form_multi_active = cntctfrm_check_cf_multi_active();
|
2835 |
|
2836 |
-
$removed_filters =
|
2837 |
|
2838 |
$language = isset( $_POST['cntctfrm_language'] ) ? $_POST['cntctfrm_language'] : 'default';
|
2839 |
$cntctfrm_path_of_uploaded_file = $cntctfrm_result = "";
|
@@ -2854,7 +2783,7 @@ if ( ! function_exists( 'cntctfrm_check_form' ) ) {
|
|
2854 |
$phone = strip_tags( preg_replace( '/<[^>]*>/', '', preg_replace( '/<script.*<\/[^>]*>/', '', $phone ) ) );
|
2855 |
|
2856 |
/* check language and replace with en default if need */
|
2857 |
-
if ( ! in_array( $language, $cntctfrm_options['
|
2858 |
foreach ( $cntctfrm_options as $key => $value ) {
|
2859 |
if ( is_array( $value ) && array_key_exists( 'default', $value ) && ( ! array_key_exists( $language, $value ) || ( isset( $cntctfrm_options[ $key ][ $language ] ) && $cntctfrm_options[ $key ][ $language ] == '' ) ) ) {
|
2860 |
$cntctfrm_options[ $key ][ $language ] = $cntctfrm_options[ $key ]['default'];
|
@@ -2862,20 +2791,20 @@ if ( ! function_exists( 'cntctfrm_check_form' ) ) {
|
|
2862 |
}
|
2863 |
}
|
2864 |
|
2865 |
-
if ( 1 == $cntctfrm_options['
|
2866 |
-
$cntctfrm_error_message['error_name'] = $cntctfrm_options['
|
2867 |
-
if ( 1 == $cntctfrm_options['
|
2868 |
-
$cntctfrm_error_message['error_address'] = $cntctfrm_options['
|
2869 |
-
if ( 1 == $cntctfrm_options['
|
2870 |
-
$cntctfrm_error_message['error_email'] = $cntctfrm_options['
|
2871 |
-
if ( 1 == $cntctfrm_options['
|
2872 |
-
$cntctfrm_error_message['error_subject'] = $cntctfrm_options['
|
2873 |
-
if ( 1 == $cntctfrm_options['
|
2874 |
-
$cntctfrm_error_message['error_message'] = $cntctfrm_options['
|
2875 |
-
if ( 1 == $cntctfrm_options['
|
2876 |
-
$cntctfrm_error_message['error_phone'] = $cntctfrm_options['
|
2877 |
-
$cntctfrm_error_message['error_form'] = $cntctfrm_options['
|
2878 |
-
if ( 1 == $cntctfrm_options['
|
2879 |
global $cntctfrm_path_of_uploaded_file, $cntctfrm_mime_type;
|
2880 |
$cntctfrm_mime_type= array(
|
2881 |
'html'=>'text/html',
|
@@ -2908,59 +2837,63 @@ if ( ! function_exists( 'cntctfrm_check_form' ) ) {
|
|
2908 |
'aar'=>'application/sb-replay',
|
2909 |
'sce'=>'application/sb-scenario'
|
2910 |
);
|
2911 |
-
$cntctfrm_error_message['error_attachment'] = $cntctfrm_options['
|
2912 |
}
|
2913 |
/* Check information wich was input in fields */
|
2914 |
-
if ( 1 == $cntctfrm_options['
|
2915 |
unset( $cntctfrm_error_message['error_name'] );
|
2916 |
-
if ( 1 == $cntctfrm_options['
|
2917 |
unset( $cntctfrm_error_message['error_address'] );
|
2918 |
-
if ( 1 == $cntctfrm_options['
|
2919 |
unset( $cntctfrm_error_message['error_email'] );
|
2920 |
-
if ( 1 == $cntctfrm_options['
|
2921 |
unset( $cntctfrm_error_message['error_phone'] );
|
2922 |
-
if ( 1 == $cntctfrm_options['
|
2923 |
unset( $cntctfrm_error_message['error_subject'] );
|
2924 |
-
if ( 1 == $cntctfrm_options['
|
2925 |
unset( $cntctfrm_error_message['error_message'] );
|
2926 |
|
2927 |
/* If captcha plugin exists */
|
2928 |
$result = true;
|
2929 |
-
if( has_filter( 'cntctfrm_check_form' ) )
|
2930 |
$result = apply_filters( 'cntctfrm_check_form', true );
|
2931 |
|
2932 |
-
|
2933 |
|
2934 |
if ( false === $result ) { /* for CAPTCHA older than PRO - v1.0.7, PLUS - v1.1.0 v FREE - 1.2.5 */
|
2935 |
-
$cntctfrm_error_message['error_captcha'] = $cntctfrm_options['
|
2936 |
-
} else if (
|
2937 |
-
$cntctfrm_error_message['error_captcha'] = $result;
|
2938 |
}
|
|
|
2939 |
if ( isset( $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) && "" != $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) {
|
|
|
|
|
|
|
2940 |
if ( is_multisite() ) {
|
2941 |
if ( defined('UPLOADS') ) {
|
2942 |
if ( ! is_dir( ABSPATH . UPLOADS ) ) {
|
2943 |
wp_mkdir_p( ABSPATH . UPLOADS );
|
2944 |
}
|
2945 |
-
$cntctfrm_path_of_uploaded_file = ABSPATH . UPLOADS .
|
2946 |
} else if ( defined( 'BLOGUPLOADDIR' ) ) {
|
2947 |
if ( ! is_dir( BLOGUPLOADDIR ) ) {
|
2948 |
wp_mkdir_p( BLOGUPLOADDIR );
|
2949 |
}
|
2950 |
-
$cntctfrm_path_of_uploaded_file = BLOGUPLOADDIR .
|
2951 |
} else {
|
2952 |
$uploads = wp_upload_dir();
|
2953 |
if ( ! isset( $uploads['path'] ) && isset( $uploads['error'] ) )
|
2954 |
$cntctfrm_error_message['error_attachment'] = $uploads['error'];
|
2955 |
else
|
2956 |
-
$cntctfrm_path_of_uploaded_file = $uploads['path'] . "/" .
|
2957 |
}
|
2958 |
} else {
|
2959 |
$uploads = wp_upload_dir();
|
2960 |
if ( ! isset( $uploads['path'] ) && isset( $uploads['error'] ) )
|
2961 |
$cntctfrm_error_message['error_attachment'] = $uploads['error'];
|
2962 |
else
|
2963 |
-
$cntctfrm_path_of_uploaded_file = $uploads['path'] . "/" .
|
2964 |
}
|
2965 |
|
2966 |
$tmp_path = $_FILES["cntctfrm_contact_attachment"]["tmp_name"];
|
@@ -2988,15 +2921,14 @@ if ( ! function_exists( 'cntctfrm_check_form' ) ) {
|
|
2988 |
$upload_max_size *= 1024;
|
2989 |
break;
|
2990 |
}
|
2991 |
-
if ( isset( $
|
2992 |
-
|
2993 |
-
$cntctfrm_error_message['error_attachment'] = $cntctfrm_options['cntctfrm_attachment_move_error'][ $language ];
|
2994 |
} else {
|
2995 |
-
$cntctfrm_error_message['error_attachment'] = $cntctfrm_options['
|
2996 |
}
|
2997 |
}
|
2998 |
} else {
|
2999 |
-
$cntctfrm_error_message['error_attachment'] = $cntctfrm_options['
|
3000 |
}
|
3001 |
}
|
3002 |
} else {
|
@@ -3018,10 +2950,12 @@ if ( ! function_exists( 'cntctfrm_check_form' ) ) {
|
|
3018 |
/* If all is good - send mail */
|
3019 |
$cntctfrm_result = cntctfrm_send_mail();
|
3020 |
|
|
|
3021 |
if ( ! $contact_form_multi_active && array_key_exists( 'contact-form-to-db' , $cntctfrm_related_plugins ) )
|
3022 |
$save_emails = ! empty( $cntctfrm_related_plugins['contact-form-to-db']['options'][ $cntctfrm_related_plugins['contact-form-to-db']['save_option'] ] );
|
3023 |
else
|
3024 |
$save_emails = ! empty( $cntctfrm_options['save_email_to_db'] );
|
|
|
3025 |
if ( $save_emails )
|
3026 |
do_action( 'cntctfrm_check_dispatch', $cntctfrm_result );
|
3027 |
}
|
@@ -3030,7 +2964,7 @@ if ( ! function_exists( 'cntctfrm_check_form' ) ) {
|
|
3030 |
}
|
3031 |
|
3032 |
/* Send mail function */
|
3033 |
-
if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
3034 |
function cntctfrm_send_mail() {
|
3035 |
global $cntctfrm_options, $cntctfrm_path_of_uploaded_file, $wp_version, $wpdb;
|
3036 |
$to = $headers = "";
|
@@ -3055,20 +2989,19 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3055 |
if ( isset( $_SESSION['cntctfrm_send_mail'] ) && true == $_SESSION['cntctfrm_send_mail'] )
|
3056 |
return true;
|
3057 |
|
3058 |
-
if ( 'user' == $cntctfrm_options['
|
3059 |
-
if ( false !== $user = get_user_by( 'login', $cntctfrm_options['
|
3060 |
$to = $user->user_email;
|
3061 |
-
} elseif ( $cntctfrm_options['
|
3062 |
-
$to = $cntctfrm_options['
|
3063 |
}
|
3064 |
|
3065 |
-
|
3066 |
-
|
3067 |
-
$to = get_option("admin_email");
|
3068 |
-
}
|
3069 |
|
3070 |
if ( "" != $to ) {
|
3071 |
-
$user_info_string = $userdomain =
|
3072 |
$attachments = array();
|
3073 |
|
3074 |
if ( 'on' == strtolower( getenv('HTTPS') ) ) {
|
@@ -3077,46 +3010,46 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3077 |
$form_action_url = esc_url( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
|
3078 |
}
|
3079 |
|
3080 |
-
if ( 1 == $cntctfrm_options['
|
3081 |
$cntctfrm_remote_addr = filter_var( $_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP );
|
3082 |
$userdomain = @gethostbyaddr( $cntctfrm_remote_addr );
|
3083 |
-
if ( 1 == $cntctfrm_options['
|
3084 |
-
1 == $cntctfrm_options['
|
3085 |
-
1 == $cntctfrm_options['
|
3086 |
-
1 == $cntctfrm_options['
|
3087 |
-
if ( 1 == $cntctfrm_options['
|
3088 |
$user_info_string .= '<tr><td><br /></td><td><br /></td></tr>';
|
3089 |
}
|
3090 |
-
if ( 1 == $cntctfrm_options['
|
3091 |
-
if ( 1 == $cntctfrm_options['
|
3092 |
$user_info_string .= '<tr><td>' . __( 'Sent from (ip address)', 'contact-form-plugin' ) . ':</td><td>' . $cntctfrm_remote_addr . " ( " . $userdomain . " )" . '</td></tr>';
|
3093 |
else
|
3094 |
$user_info_string .= __( 'Sent from (ip address)', 'contact-form-plugin' ) . ': ' . $cntctfrm_remote_addr . " ( " . $userdomain . " )" . "\n";
|
3095 |
}
|
3096 |
-
if ( 1 == $cntctfrm_options['
|
3097 |
-
if ( 1 == $cntctfrm_options['
|
3098 |
$user_info_string .= '<tr><td>' . __('Date/Time', 'contact-form-plugin') . ':</td><td>' . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), strtotime( current_time( 'mysql' ) ) ) . '</td></tr>';
|
3099 |
else
|
3100 |
$user_info_string .= __( 'Date/Time', 'contact-form-plugin' ) . ': ' . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), strtotime( current_time( 'mysql' ) ) ) . "\n";
|
3101 |
}
|
3102 |
-
if ( 1 == $cntctfrm_options['
|
3103 |
-
if ( 1 == $cntctfrm_options['
|
3104 |
$user_info_string .= '<tr><td>' . __( 'Sent from (referer)', 'contact-form-plugin' ) . ':</td><td>' . $form_action_url . '</td></tr>';
|
3105 |
else
|
3106 |
$user_info_string .= __( 'Sent from (referer)', 'contact-form-plugin' ) . ': ' . $form_action_url . "\n";
|
3107 |
}
|
3108 |
-
if ( 1 == $cntctfrm_options['
|
3109 |
-
if ( 1 == $cntctfrm_options['
|
3110 |
$user_info_string .= '<tr><td>' . __( 'Using (user agent)', 'contact-form-plugin' ) . ':</td><td>' . $user_agent . '</td></tr>';
|
3111 |
else
|
3112 |
$user_info_string .= __( 'Using (user agent)', 'contact-form-plugin' ) . ': ' . $user_agent . "\n";
|
3113 |
}
|
3114 |
}
|
|
|
3115 |
/* Message */
|
3116 |
-
$message_order_fields = $cntctfrm_options['
|
3117 |
-
$message_order_fields = array_merge( $message_order_fields['first_column'], $message_order_fields['second_column'] );
|
3118 |
|
3119 |
-
if ( 1 == $cntctfrm_options['
|
3120 |
$message_text = '<html>
|
3121 |
<head>
|
3122 |
<title>'. __( "Contact from", 'contact-form-plugin' ) . ' ' . get_bloginfo( 'name' ) . '</title>
|
@@ -3127,42 +3060,42 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3127 |
<td>' . __( "Site", 'contact-form-plugin' ) . '</td>
|
3128 |
<td>' . get_bloginfo( "url" ) . '</td>
|
3129 |
</tr>';
|
3130 |
-
foreach( $message_order_fields as $field ){
|
3131 |
$field = str_replace( 'cntctfrm_contact_', '', $field );
|
3132 |
switch ( $field ) {
|
3133 |
case "name":
|
3134 |
-
if ( 1 == $cntctfrm_options['
|
3135 |
$message_text .= '<tr><td width="160">';
|
3136 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3137 |
$message_text .= '</td><td>'. $name .'</td></tr>';
|
3138 |
}
|
3139 |
break;
|
3140 |
case "address":
|
3141 |
-
if ( 1 == $cntctfrm_options['
|
3142 |
$message_text .= '<tr><td>';
|
3143 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3144 |
$message_text .= '</td><td>'. $address .'</td></tr>';
|
3145 |
}
|
3146 |
break;
|
3147 |
case "email":
|
3148 |
$message_text .= '<tr><td>';
|
3149 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3150 |
$message_text .= '</td><td>'. $email .'</td></tr>';
|
3151 |
break;
|
3152 |
case "subject":
|
3153 |
$message_text .= '<tr><td>';
|
3154 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3155 |
$message_text .= '</td><td>' . $subject .'</td></tr>';
|
3156 |
break;
|
3157 |
case "message":
|
3158 |
$message_text .= '<tr><td>';
|
3159 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3160 |
$message_text .= '</td><td>' . $message .'</td></tr>';
|
3161 |
break;
|
3162 |
case "phone":
|
3163 |
-
if ( 1 == $cntctfrm_options['
|
3164 |
$message_text .= '<tr><td>';
|
3165 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3166 |
$message_text .= '</td><td>'. $phone .'</td></tr>';
|
3167 |
}
|
3168 |
break;
|
@@ -3174,36 +3107,36 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3174 |
$message_text .= $user_info_string . '</table></body></html>';
|
3175 |
} else {
|
3176 |
$message_text = __( "Site", 'contact-form-plugin' ) . ': ' . get_bloginfo("url") . "\n";;
|
3177 |
-
foreach( $message_order_fields as $field ){
|
3178 |
$field = str_replace( 'cntctfrm_contact_', '', $field );
|
3179 |
switch ( $field ) {
|
3180 |
case "name":
|
3181 |
-
if ( 1 == $cntctfrm_options['
|
3182 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3183 |
$message_text .= ': '. $name . "\n";
|
3184 |
}
|
3185 |
break;
|
3186 |
case "address":
|
3187 |
-
if ( 1 == $cntctfrm_options['
|
3188 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3189 |
$message_text .= ': '. $address . "\n";
|
3190 |
}
|
3191 |
break;
|
3192 |
case "email":
|
3193 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3194 |
$message_text .= ': ' . $email . "\n";
|
3195 |
break;
|
3196 |
case "subject":
|
3197 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3198 |
$message_text .= ': ' . $subject . "\n";
|
3199 |
break;
|
3200 |
case "message":
|
3201 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3202 |
$message_text .= ': ' . $message ."\n";
|
3203 |
break;
|
3204 |
case "phone":
|
3205 |
-
if ( 1 == $cntctfrm_options['
|
3206 |
-
$message_text .= ( 1 == $cntctfrm_options['
|
3207 |
$message_text .= ': '. $phone . "\n";
|
3208 |
}
|
3209 |
break;
|
@@ -3215,16 +3148,15 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3215 |
$message_text .= $user_info_string;
|
3216 |
}
|
3217 |
|
3218 |
-
|
3219 |
do_action( 'cntctfrm_get_mail_data', array( 'sendto' => $to, 'refer' => $form_action_url, 'useragent' => $user_agent ) );
|
3220 |
|
3221 |
if ( ! function_exists( 'is_plugin_active' ) )
|
3222 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
3223 |
|
3224 |
/* 'from' name */
|
3225 |
-
$from_field_name = ( 'custom' == $cntctfrm_options['
|
3226 |
/* 'from' email */
|
3227 |
-
$from_email = ( 'custom' == $cntctfrm_options['
|
3228 |
if ( $from_email == "" || ! is_email( $from_email ) ) {
|
3229 |
$sitename = strtolower( filter_var( $_SERVER['SERVER_NAME'], FILTER_SANITIZE_STRING ) );
|
3230 |
if ( substr( $sitename, 0, 4 ) == 'www.' ) {
|
@@ -3232,13 +3164,14 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3232 |
}
|
3233 |
$from_email = 'wordpress@' . $sitename;
|
3234 |
}
|
|
|
3235 |
if ( ( is_plugin_active( 'email-queue/email-queue.php' ) || is_plugin_active( 'email-queue-pro/email-queue-pro.php' ) ) && function_exists( 'mlq_if_mail_plugin_is_in_queue' ) && mlq_if_mail_plugin_is_in_queue( plugin_basename( __FILE__ ) ) ) {
|
3236 |
/* if email-queue plugin is active and this plugin's "in_queue" status is 'ON' */
|
3237 |
/* attachment path */
|
3238 |
-
$attachment_file = ( 1 == $cntctfrm_options['
|
3239 |
/* headers */
|
3240 |
/* content type */
|
3241 |
-
$headers .= ( 1 == $cntctfrm_options['
|
3242 |
/* 'from' name & email */
|
3243 |
$headers .= 'From: ' . $from_field_name . ' <' . $from_email . '>';
|
3244 |
/* send copy */
|
@@ -3250,9 +3183,9 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3250 |
/* return $mail_result = true if email-queue has successfully inserted mail in its DB; in other case - return false */
|
3251 |
return $mail_result = $mlq_mail_result;
|
3252 |
} else {
|
3253 |
-
if ( 'wp-mail' == $cntctfrm_options['
|
3254 |
/* To send HTML mail, the Content-type header must be set */
|
3255 |
-
if ( 1 == $cntctfrm_options['
|
3256 |
$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
|
3257 |
else
|
3258 |
$headers .= 'Content-type: text/plain; charset=utf-8' . "\n";
|
@@ -3260,7 +3193,7 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3260 |
/* Additional headers */
|
3261 |
$headers .= 'From: ' . $from_field_name . ' <' . $from_email . '>';
|
3262 |
|
3263 |
-
if ( 1 == $cntctfrm_options['
|
3264 |
$path_parts = pathinfo( $cntctfrm_path_of_uploaded_file );
|
3265 |
$cntctfrm_path_of_uploaded_file_changed = $path_parts['dirname'] . '/' . preg_replace( '/^cntctfrm_[A-Z,a-z,0-9]{32}_/i', '', $path_parts['basename'] );
|
3266 |
|
@@ -3276,11 +3209,11 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3276 |
/* Mail it */
|
3277 |
$mail_result = wp_mail( $to, $subject, $message_text, $headers, $attachments );
|
3278 |
/* Delete attachment */
|
3279 |
-
if ( 1 == $cntctfrm_options['
|
3280 |
&& $cntctfrm_path_of_uploaded_file_changed != $cntctfrm_path_of_uploaded_file ) {
|
3281 |
@unlink( $cntctfrm_path_of_uploaded_file_changed );
|
3282 |
}
|
3283 |
-
if ( 1 == $cntctfrm_options['
|
3284 |
@unlink( $cntctfrm_path_of_uploaded_file );
|
3285 |
}
|
3286 |
return $mail_result;
|
@@ -3288,7 +3221,7 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3288 |
/* Set headers */
|
3289 |
$headers .= 'MIME-Version: 1.0' . "\n";
|
3290 |
|
3291 |
-
if ( 1 == $cntctfrm_options['
|
3292 |
$message_block = $message_text;
|
3293 |
$message_block_for_user = $message_text_for_user;
|
3294 |
|
@@ -3305,7 +3238,7 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3305 |
|
3306 |
$message_text = $message_text_for_user = __( "If you can see this MIME, it means that the MIME type is not supported by your email client!", 'contact-form-plugin' ) . "\n";
|
3307 |
|
3308 |
-
if ( 1 == $cntctfrm_options['
|
3309 |
$message_text .= $bound . "\n" . "Content-Type: text/html; charset=\"utf-8\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message_block . "\n\n";
|
3310 |
$message_text_for_user .= $bound . "\n" . "Content-Type: text/html; charset=\"utf-8\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message_block_for_user . "\n\n";
|
3311 |
} else {
|
@@ -3329,7 +3262,7 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3329 |
$bound_last;
|
3330 |
} else {
|
3331 |
/* To send HTML mail, header must be set */
|
3332 |
-
if ( 1 == $cntctfrm_options['
|
3333 |
$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
|
3334 |
else
|
3335 |
$headers .= 'Content-type: text/plain; charset=utf-8' . "\n";
|
@@ -3342,7 +3275,7 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
3342 |
|
3343 |
$mail_result = @mail( $to, $subject, $message_text, $headers );
|
3344 |
/* Delete attachment */
|
3345 |
-
if ( 1 == $cntctfrm_options['
|
3346 |
@unlink( $cntctfrm_path_of_uploaded_file );
|
3347 |
}
|
3348 |
return $mail_result;
|
@@ -3488,7 +3421,6 @@ if ( ! function_exists( 'cntctfrm_wp_enqueue_style' ) ) {
|
|
3488 |
|
3489 |
if ( ! function_exists ( 'cntctfrm_wp_footer' ) ) {
|
3490 |
function cntctfrm_wp_footer() {
|
3491 |
-
$cntctfrm_plugin_info = get_plugin_data( dirname( __FILE__ ) . '/contact_form.php', false );
|
3492 |
if ( wp_script_is( 'cntctfrm_frontend_script', 'registered' ) ) {
|
3493 |
wp_enqueue_script( 'cntctfrm_frontend_script', plugins_url( 'js/cntctfrm.js', __FILE__ ), array( 'jquery' ) );
|
3494 |
}
|
@@ -3519,8 +3451,8 @@ if ( ! function_exists ( 'cntctfrm_add_language' ) ) {
|
|
3519 |
$cntctfrm_options = get_option( 'cntctfrm_options' );
|
3520 |
}
|
3521 |
|
3522 |
-
if ( ! in_array( $lang, $cntctfrm_options['
|
3523 |
-
$cntctfrm_options['
|
3524 |
|
3525 |
if ( 'pro' == $contact_form_multi_active && $options_main = get_option( 'cntctfrmmltpr_options_main' ) ) {
|
3526 |
update_option( 'cntctfrmmlt_options_' . $options_main['id_form'], $cntctfrm_options );
|
@@ -3539,7 +3471,7 @@ if ( ! function_exists ( 'cntctfrm_add_language' ) ) {
|
|
3539 |
$result = __( "Use shortcode", 'contact-form-plugin' ) . ' <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=' . $lang . ' id=' . $_SESSION['cntctfrmmlt_id_form'] . ']</span> ' . __( "for this language", 'contact-form-plugin' );
|
3540 |
}
|
3541 |
|
3542 |
-
if( $is_ajax ) {
|
3543 |
echo json_encode( $result );
|
3544 |
die();
|
3545 |
}
|
@@ -3568,54 +3500,54 @@ if ( ! function_exists ( 'cntctfrm_remove_language' ) ) {
|
|
3568 |
|
3569 |
$lang = $is_ajax ? $_REQUEST['lang'] : $_REQUEST['cntctfrm_delete_button'];
|
3570 |
|
3571 |
-
if ( $key = array_search( $lang, $cntctfrm_options['
|
3572 |
-
$cntctfrm_options['
|
3573 |
-
if ( isset( $cntctfrm_options['
|
3574 |
-
unset( $cntctfrm_options['
|
3575 |
-
if ( isset( $cntctfrm_options['
|
3576 |
-
unset( $cntctfrm_options['
|
3577 |
-
if ( isset( $cntctfrm_options['
|
3578 |
-
unset( $cntctfrm_options['
|
3579 |
-
if ( isset( $cntctfrm_options['
|
3580 |
-
unset( $cntctfrm_options['
|
3581 |
-
if ( isset( $cntctfrm_options['
|
3582 |
-
unset( $cntctfrm_options['
|
3583 |
-
if ( isset( $cntctfrm_options['
|
3584 |
-
unset( $cntctfrm_options['
|
3585 |
-
if ( isset( $cntctfrm_options['
|
3586 |
-
unset( $cntctfrm_options['
|
3587 |
-
if ( isset( $cntctfrm_options['
|
3588 |
-
unset( $cntctfrm_options['
|
3589 |
-
if ( isset( $cntctfrm_options['
|
3590 |
-
unset( $cntctfrm_options['
|
3591 |
-
if ( isset( $cntctfrm_options['
|
3592 |
-
unset( $cntctfrm_options['
|
3593 |
-
if ( isset( $cntctfrm_options['
|
3594 |
-
unset( $cntctfrm_options['
|
3595 |
-
if ( isset( $cntctfrm_options['
|
3596 |
-
unset( $cntctfrm_options['
|
3597 |
-
if ( isset( $cntctfrm_options['
|
3598 |
-
unset( $cntctfrm_options['
|
3599 |
-
if ( isset( $cntctfrm_options['
|
3600 |
-
unset( $cntctfrm_options['
|
3601 |
-
if ( isset( $cntctfrm_options['
|
3602 |
-
unset( $cntctfrm_options['
|
3603 |
-
if ( isset( $cntctfrm_options['
|
3604 |
-
unset( $cntctfrm_options['
|
3605 |
-
if ( isset( $cntctfrm_options['
|
3606 |
-
unset( $cntctfrm_options['
|
3607 |
-
if ( isset( $cntctfrm_options['
|
3608 |
-
unset( $cntctfrm_options['
|
3609 |
-
if ( isset( $cntctfrm_options['
|
3610 |
-
unset( $cntctfrm_options['
|
3611 |
-
if ( isset( $cntctfrm_options['
|
3612 |
-
unset( $cntctfrm_options['
|
3613 |
-
if ( isset( $cntctfrm_options['
|
3614 |
-
unset( $cntctfrm_options['
|
3615 |
-
if ( isset( $cntctfrm_options['
|
3616 |
-
unset( $cntctfrm_options['
|
3617 |
-
if ( isset( $cntctfrm_options['
|
3618 |
-
unset( $cntctfrm_options['
|
3619 |
|
3620 |
if ( 'pro' == $contact_form_multi_active && $options_main = get_option( 'cntctfrmmltpr_options_main' ) ) {
|
3621 |
update_option( 'cntctfrmmlt_options_' . $options_main['id_form'], $cntctfrm_options );
|
@@ -3626,7 +3558,7 @@ if ( ! function_exists ( 'cntctfrm_remove_language' ) ) {
|
|
3626 |
update_option( 'cntctfrm_options', $cntctfrm_options );
|
3627 |
}
|
3628 |
|
3629 |
-
if( $is_alax )
|
3630 |
die();
|
3631 |
}
|
3632 |
}
|
@@ -3741,7 +3673,7 @@ if ( ! function_exists ( 'cntctfrm_shortcode_button_content' ) ) {
|
|
3741 |
|
3742 |
if ( ! $contact_form_multi_active ) {
|
3743 |
$cntctfrm_options = get_option( 'cntctfrm_options' );
|
3744 |
-
array_unshift( $cntctfrm_options['
|
3745 |
} ?>
|
3746 |
<div id="cntctfrm" style="display:none;">
|
3747 |
<fieldset>
|
@@ -3771,7 +3703,7 @@ if ( ! function_exists ( 'cntctfrm_shortcode_button_content' ) ) {
|
|
3771 |
<?php } else { ?>
|
3772 |
<label>
|
3773 |
<select name="cntctfrm_languages_list" id="cntctfrm_languages_list">
|
3774 |
-
<?php foreach ( $cntctfrm_options['
|
3775 |
printf( '<option value="%1$s">%2$s</option>', strtolower( $language ), ( $language == 'default' ) ? $lang_default : $cntctfrm_lang_codes[ $language ] );
|
3776 |
} ?>
|
3777 |
</select>
|
@@ -3838,21 +3770,21 @@ if ( ! function_exists ( 'cntctfrm_delete_options' ) ) {
|
|
3838 |
global $wpdb;
|
3839 |
$all_plugins = get_plugins();
|
3840 |
|
3841 |
-
if (
|
3842 |
-
|
3843 |
-
|
3844 |
-
|
3845 |
-
|
3846 |
-
|
3847 |
-
|
3848 |
-
|
3849 |
$wpdb->query( "DROP TABLE IF EXISTS `" . $wpdb->prefix . "cntctfrm_field`;" );
|
3850 |
-
|
3851 |
-
|
3852 |
-
|
3853 |
-
|
3854 |
-
if ( ! array_key_exists( 'contact-form-pro/contact_form_pro.php', $all_plugins ) )
|
3855 |
$wpdb->query( "DROP TABLE IF EXISTS `" . $wpdb->prefix . "cntctfrm_field`;" );
|
|
|
3856 |
}
|
3857 |
|
3858 |
require_once( dirname( __FILE__ ) . '/bws_menu/bws_include.php' );
|
@@ -3865,7 +3797,7 @@ register_activation_hook( __FILE__, 'cntctfrm_activation' );
|
|
3865 |
|
3866 |
add_action( 'admin_menu', 'cntctfrm_admin_menu' );
|
3867 |
|
3868 |
-
add_action( 'init', 'cntctfrm_init' );
|
3869 |
add_action( 'admin_init', 'cntctfrm_admin_init' );
|
3870 |
add_action( 'plugins_loaded', 'cntctfrm_plugins_loaded' );
|
3871 |
|
2 |
/*
|
3 |
Plugin Name: Contact Form by BestWebSoft
|
4 |
Plugin URI: http://bestwebsoft.com/products/contact-form/
|
5 |
+
Description: Simple contact form plugin any WordPress website must have.
|
6 |
Author: BestWebSoft
|
7 |
Text Domain: contact-form-plugin
|
8 |
Domain Path: /languages
|
9 |
+
Version: 4.0.2
|
10 |
Author URI: http://bestwebsoft.com/
|
11 |
License: GPLv2 or later
|
12 |
*/
|
27 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
28 |
*/
|
29 |
|
30 |
+
/**
|
31 |
+
* @todo remove file after 01.03.2017
|
32 |
+
*/
|
33 |
+
require_once( dirname( __FILE__ ) . '/includes/deprecated.php' );
|
34 |
+
|
35 |
/**
|
36 |
* Add Wordpress page 'bws_panel' and sub-page of this plugin to admin-panel.
|
37 |
* @return void
|
60 |
$cntctfrm_plugin_info = get_plugin_data( __FILE__ );
|
61 |
}
|
62 |
/* Function check if plugin is compatible with current WP version */
|
63 |
+
bws_wp_min_version_check( plugin_basename( __FILE__ ), $cntctfrm_plugin_info, '3.8' );
|
64 |
|
65 |
if ( ! is_admin() )
|
66 |
cntctfrm_check_and_send();
|
72 |
global $bws_plugin_info, $cntctfrm_plugin_info, $bws_shortcode_list, $cntctfrm_lang_codes;
|
73 |
/* Add variable for bws_menu */
|
74 |
|
75 |
+
if ( empty( $bws_plugin_info ) )
|
76 |
$bws_plugin_info = array( 'id' => '77', 'version' => $cntctfrm_plugin_info["Version"] );
|
77 |
|
78 |
/* Display form on the setting page */
|
124 |
/* Register settings for plugin */
|
125 |
if ( ! function_exists( 'cntctfrm_settings' ) ) {
|
126 |
function cntctfrm_settings( $form_id = false ) {
|
127 |
+
global $cntctfrm_options, $cntctfrm_plugin_info;
|
128 |
+
$db_version = '1.0';
|
129 |
|
130 |
$contact_form_multi_active = cntctfrm_check_cf_multi_active();
|
131 |
|
132 |
if ( ! $cntctfrm_plugin_info )
|
133 |
$cntctfrm_plugin_info = get_plugin_data( __FILE__ );
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
/* Install the option defaults */
|
136 |
+
if ( ! get_option( 'cntctfrm_options' ) ) {
|
137 |
+
$option_defaults = cntctfrm_get_option_defaults();
|
138 |
+
add_option( 'cntctfrm_options', $option_defaults );
|
139 |
+
}
|
140 |
|
141 |
/* Get options from the database for default options */
|
142 |
if ( $contact_form_multi_active ) {
|
143 |
+
if ( ! get_option( 'cntctfrmmlt_options' ) ) {
|
144 |
+
if ( ! isset( $option_defaults ) )
|
145 |
+
$option_defaults = cntctfrm_get_option_defaults();
|
146 |
+
add_option( 'cntctfrmmlt_options', $option_defaults );
|
147 |
+
}
|
148 |
|
149 |
$cntctfrmmlt_options = get_option( 'cntctfrmmlt_options' );
|
150 |
|
151 |
if ( ! isset( $cntctfrmmlt_options['plugin_option_version'] ) || $cntctfrmmlt_options['plugin_option_version'] != $cntctfrm_plugin_info["Version"] ) {
|
152 |
|
153 |
+
if ( ! isset( $option_defaults ) )
|
154 |
+
$option_defaults = cntctfrm_get_option_defaults();
|
155 |
/**
|
156 |
* @since 3.98
|
157 |
+
* @todo delete after 25.04.2017
|
158 |
*/
|
159 |
+
$cntctfrmmlt_options = cntctfrm_options_update( $cntctfrmmlt_options, $option_defaults, $contact_form_multi_active );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
|
161 |
+
$cntctfrmmlt_options = array_merge( $option_defaults, $cntctfrmmlt_options );
|
162 |
$cntctfrmmlt_options['plugin_option_version'] = $cntctfrm_plugin_info["Version"];
|
163 |
update_option( 'cntctfrmmlt_options', $cntctfrmmlt_options );
|
164 |
}
|
166 |
/* Get options from the database */
|
167 |
if ( isset( $_SESSION['cntctfrmmlt_id_form'] ) || $form_id ) {
|
168 |
$id = ( $form_id ) ? $form_id : $_SESSION['cntctfrmmlt_id_form'];
|
169 |
+
if ( $cntctfrm_options = get_option( 'cntctfrmmlt_options_' . $id ) ) {
|
170 |
+
/* */
|
171 |
} else {
|
172 |
if ( 'pro' == $contact_form_multi_active && $options_main = get_option( 'cntctfrmmltpr_options_main' ) ) {
|
173 |
/**/
|
192 |
|
193 |
if ( ! isset( $cntctfrm_options['plugin_option_version'] ) || $cntctfrm_options['plugin_option_version'] != $cntctfrm_plugin_info["Version"] ) {
|
194 |
|
195 |
+
if ( ! isset( $option_defaults ) )
|
196 |
+
$option_defaults = cntctfrm_get_option_defaults();
|
197 |
/**
|
198 |
* @since 3.98
|
199 |
+
* @todo delete after 25.04.2017
|
200 |
*/
|
201 |
+
$cntctfrm_options = cntctfrm_options_update( $cntctfrm_options, $option_defaults, $contact_form_multi_active );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
|
203 |
+
$cntctfrm_options = array_merge( $option_defaults, $cntctfrm_options );
|
204 |
+
$cntctfrm_options['plugin_option_version'] = $cntctfrm_plugin_info["Version"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
/* show pro features */
|
206 |
$cntctfrm_options['hide_premium_options'] = array();
|
207 |
|
222 |
}
|
223 |
|
224 |
/* Create db table of fields list */
|
225 |
+
if ( ! isset( $cntctfrm_options['plugin_db_version'] ) || $cntctfrm_options['plugin_db_version'] != $db_version ) {
|
226 |
cntctfrm_db_create();
|
227 |
+
$cntctfrm_options['plugin_db_version'] = $db_version;
|
228 |
if ( $contact_form_multi_active ) {
|
229 |
if ( isset( $_SESSION['cntctfrmmlt_id_form'] ) || $form_id ) {
|
230 |
$id = ( $form_id ) ? $form_id : $_SESSION['cntctfrmmlt_id_form'];
|
243 |
}
|
244 |
}
|
245 |
|
246 |
+
/**
|
247 |
+
* @return array Default plugin options
|
248 |
+
* @since 4.0.2
|
249 |
+
*/
|
250 |
+
if ( ! function_exists( 'cntctfrm_get_option_defaults' ) ) {
|
251 |
+
function cntctfrm_get_option_defaults() {
|
252 |
+
global $cntctfrm_plugin_info;
|
253 |
+
|
254 |
+
if ( ! $cntctfrm_plugin_info )
|
255 |
+
$cntctfrm_plugin_info = get_plugin_data( __FILE__ );
|
256 |
+
|
257 |
+
$sitename = strtolower( filter_var( $_SERVER['SERVER_NAME'], FILTER_SANITIZE_STRING ) );
|
258 |
+
if ( substr( $sitename, 0, 4 ) == 'www.' )
|
259 |
+
$sitename = substr( $sitename, 4 );
|
260 |
+
$from_email = 'wordpress@' . $sitename;
|
261 |
+
|
262 |
+
$option_defaults = array(
|
263 |
+
'plugin_option_version' => $cntctfrm_plugin_info["Version"],
|
264 |
+
'display_settings_notice' => 1,
|
265 |
+
'first_install' => strtotime( "now" ),
|
266 |
+
'suggest_feature_banner' => 1,
|
267 |
+
'user_email' => 'admin',
|
268 |
+
'custom_email' => get_option("admin_email"),
|
269 |
+
'select_email' => 'custom',
|
270 |
+
'from_email' => 'custom',
|
271 |
+
'custom_from_email' => $from_email,
|
272 |
+
'attachment' => 0,
|
273 |
+
'attachment_explanations' => 1,
|
274 |
+
'send_copy' => 0,
|
275 |
+
'from_field' => get_bloginfo( 'name' ),
|
276 |
+
'select_from_field' => 'custom',
|
277 |
+
'display_name_field' => 1,
|
278 |
+
'display_address_field' => 0,
|
279 |
+
'display_phone_field' => 0,
|
280 |
+
'required_name_field' => 1,
|
281 |
+
'required_address_field' => 0,
|
282 |
+
'required_email_field' => 1,
|
283 |
+
'required_phone_field' => 0,
|
284 |
+
'required_subject_field' => 1,
|
285 |
+
'required_message_field' => 1,
|
286 |
+
'required_symbol' => '*',
|
287 |
+
'display_add_info' => 1,
|
288 |
+
'display_sent_from' => 1,
|
289 |
+
'display_date_time' => 1,
|
290 |
+
'mail_method' => 'wp-mail',
|
291 |
+
'display_coming_from' => 1,
|
292 |
+
'display_user_agent' => 1,
|
293 |
+
'language' => array(),
|
294 |
+
'change_label' => 0,
|
295 |
+
'name_label' => array( 'default' => __( "Name", 'contact-form-plugin' ) . ':' ),
|
296 |
+
'address_label' => array( 'default' => __( "Address", 'contact-form-plugin' ) . ':' ),
|
297 |
+
'email_label' => array( 'default' => __( "Email Address", 'contact-form-plugin' ) . ':' ),
|
298 |
+
'phone_label' => array( 'default' => __( "Phone number", 'contact-form-plugin' ) . ':' ),
|
299 |
+
'subject_label' => array( 'default' => __( "Subject", 'contact-form-plugin' ) . ':' ),
|
300 |
+
'message_label' => array( 'default' => __( "Message", 'contact-form-plugin' ) . ':' ),
|
301 |
+
'attachment_label' => array( 'default' => __( "Attachment", 'contact-form-plugin' ) . ':' ),
|
302 |
+
'attachment_tooltip' => array( 'default' => __( "Supported file types: HTML, TXT, CSS, GIF, PNG, JPEG, JPG, TIFF, BMP, AI, EPS, PS, CSV, RTF, PDF, DOC, DOCX, XLS, XLSX, ZIP, RAR, WAV, MP3, PPT.", 'contact-form-plugin' ) ),
|
303 |
+
'send_copy_label' => array( 'default' => __( "Send me a copy", 'contact-form-plugin' ) ),
|
304 |
+
'submit_label' => array( 'default' => __( "Submit", 'contact-form-plugin' ) ),
|
305 |
+
'name_error' => array( 'default' => __( "Your name is required.", 'contact-form-plugin' ) ),
|
306 |
+
'address_error' => array( 'default' => __( "Address is required.", 'contact-form-plugin' ) ),
|
307 |
+
'email_error' => array( 'default' => __( "A valid email address is required.", 'contact-form-plugin' ) ),
|
308 |
+
'phone_error' => array( 'default' => __( "Phone number is required.", 'contact-form-plugin' ) ),
|
309 |
+
'subject_error' => array( 'default' => __( "Subject is required.", 'contact-form-plugin' ) ),
|
310 |
+
'message_error' => array( 'default' => __( "Message text is required.", 'contact-form-plugin' ) ),
|
311 |
+
'attachment_error' => array( 'default' => __( "File format is not valid.", 'contact-form-plugin' ) ),
|
312 |
+
'attachment_upload_error' => array( 'default' => __( "File upload error.", 'contact-form-plugin' ) ),
|
313 |
+
'attachment_move_error' => array( 'default' => __( "The file could not be uploaded.", 'contact-form-plugin' ) ),
|
314 |
+
'attachment_size_error' => array( 'default' => __( "This file is too large.", 'contact-form-plugin' ) ),
|
315 |
+
'captcha_error' => array( 'default' => __( "Please fill out the CAPTCHA.", 'contact-form-plugin' ) ),
|
316 |
+
'form_error' => array( 'default' => __( "Please make corrections below and try again.", 'contact-form-plugin' ) ),
|
317 |
+
'action_after_send' => 1,
|
318 |
+
'thank_text' => array( 'default' => __( "Thank you for contacting us.", 'contact-form-plugin' ) ),
|
319 |
+
'redirect_url' => '',
|
320 |
+
'delete_attached_file' => '0',
|
321 |
+
'html_email' => 1,
|
322 |
+
'change_label_in_email' => 0,
|
323 |
+
'layout' => 1,
|
324 |
+
'submit_position' => 'left',
|
325 |
+
'order_fields' => array(
|
326 |
+
'first_column' => array(
|
327 |
+
'cntctfrm_contact_name',
|
328 |
+
'cntctfrm_contact_address',
|
329 |
+
'cntctfrm_contact_email',
|
330 |
+
'cntctfrm_contact_phone',
|
331 |
+
'cntctfrm_contact_subject',
|
332 |
+
'cntctfrm_contact_message',
|
333 |
+
'cntctfrm_contact_attachment',
|
334 |
+
'cntctfrm_contact_send_copy',
|
335 |
+
'cntctfrm_subscribe',
|
336 |
+
'cntctfrm_captcha'
|
337 |
+
),
|
338 |
+
'second_column' => array()
|
339 |
+
)
|
340 |
+
);
|
341 |
+
|
342 |
+
return $option_defaults;
|
343 |
+
}
|
344 |
+
}
|
345 |
+
|
346 |
/* Function check if plugin is compatible with current WP version */
|
347 |
if ( ! function_exists ( 'cntctfrm_db_create' ) ) {
|
348 |
function cntctfrm_db_create() {
|
371 |
);
|
372 |
foreach ( $fields as $key => $value ) {
|
373 |
$db_row = $wpdb->get_row( "SELECT * FROM " . $wpdb->prefix . "cntctfrm_field WHERE `name` = '" . $value . "'", ARRAY_A );
|
374 |
+
if ( empty( $db_row ) ) {
|
375 |
$wpdb->insert( $wpdb->prefix . "cntctfrm_field", array( 'name' => $value ), array( '%s' ) );
|
376 |
}
|
377 |
}
|
443 |
/*#*/'required_symbol' => $required_symbol,
|
444 |
'settings_page' => 'captcha-plus.php'
|
445 |
);
|
446 |
+
} elseif ( is_plugin_active( 'captcha-pro/captcha_pro.php' ) ) {
|
447 |
if ( $cptchpr_options = get_option( 'cptchpr_options' ) ) {
|
448 |
/*#*/ $options_name = 'cptchpr_options';
|
449 |
} elseif ( $cptchpr_options = get_option( 'cptch_options' ) ) {
|
463 |
}
|
464 |
|
465 |
/* Get Google Captcha options */
|
466 |
+
if ( is_plugin_active( 'google-captcha/google-captcha.php' ) ) {
|
467 |
$gglcptch_options = get_option( 'gglcptch_options' );
|
468 |
|
469 |
$cntctfrm_related_plugins['google-captcha'] = array(
|
471 |
/*#*/ 'options_name' => 'gglcptch_options',
|
472 |
'settings_page' => 'google-captcha.php'
|
473 |
);
|
474 |
+
} elseif ( is_plugin_active( 'google-captcha-pro/google-captcha-pro.php' ) ) {
|
475 |
if ( $gglcptchpr_options = get_option( 'gglcptchpr_options' ) ) {
|
476 |
/*#*/ $options_name = 'gglcptchpr_options';
|
477 |
} elseif ( $gglcptchpr_options = get_option( 'gglcptch_options' ) ) {
|
486 |
|
487 |
/* Get Subscriber options */
|
488 |
if ( is_multisite() ) {
|
489 |
+
if ( is_plugin_active( 'subscriber/subscriber.php' ) ) {
|
490 |
$sbscrbr_options = get_site_option( 'sbscrbr_options' );
|
491 |
|
492 |
$cntctfrm_related_plugins['subscriber'] = array(
|
508 |
);
|
509 |
}
|
510 |
} else {
|
511 |
+
if ( is_plugin_active( 'subscriber/subscriber.php' ) ) {
|
512 |
$sbscrbr_options = get_option( 'sbscrbr_options' );
|
513 |
|
514 |
$cntctfrm_related_plugins['subscriber'] = array(
|
532 |
}
|
533 |
|
534 |
/* Get Contact Form to DB options */
|
535 |
+
if ( is_plugin_active( 'contact-form-to-db/contact_form_to_db.php' ) ) {
|
536 |
$cntctfrmtdb_options = get_option( 'cntctfrmtdb_options' );
|
537 |
|
538 |
/*#*/$save_option = isset( $cntctfrmtdb_options['save_messages_to_db'] ) ? 'save_messages_to_db' : 'cntctfrmtdb_save_messages_to_db';
|
584 |
function cntctfrm_get_ordered_fields() {
|
585 |
global $cntctfrm_options, $cntctfrm_related_plugins;
|
586 |
|
587 |
+
if ( ! isset( $cntctfrm_options['order_fields'] ) )
|
588 |
cntctfrm_settings();
|
|
|
589 |
|
590 |
if ( empty( $cntctfrm_related_plugins ) )
|
591 |
cntctfrm_related_plugins();
|
598 |
if ( array_key_exists( 'captcha', $cntctfrm_related_plugins ) )
|
599 |
$display_captcha = $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['display_option'] ];
|
600 |
|
601 |
+
if ( array_key_exists( 'google-captcha', $cntctfrm_related_plugins ) )
|
602 |
+
$display_google_captcha = $cntctfrm_related_plugins['google-captcha']['options']['contact_form'];
|
603 |
|
604 |
if ( array_key_exists( 'subscriber', $cntctfrm_related_plugins ) )
|
605 |
$display_subscriber = $cntctfrm_related_plugins['subscriber']['options']['contact_form'];
|
606 |
} else {
|
607 |
+
$display_captcha = ( isset( $cntctfrm_options['display_captcha'] ) && 1 == $cntctfrm_options['display_captcha'] ) ? true : false;
|
608 |
+
$display_google_captcha = ( isset( $cntctfrm_options['display_google_captcha'] ) && 1 == $cntctfrm_options['display_google_captcha'] ) ? true : false;
|
609 |
+
$display_subscriber = ( isset( $cntctfrm_options['display_subscribe'] ) && 1 == $cntctfrm_options['display_subscribe'] ) ? true : false;
|
610 |
}
|
611 |
|
612 |
$default_order_fields = array(
|
613 |
+
'cntctfrm_contact_name' => ( 1 == $cntctfrm_options['display_name_field'] ) ? true : false,
|
614 |
+
'cntctfrm_contact_address' => ( 1 == $cntctfrm_options['display_address_field'] ) ? true : false,
|
615 |
'cntctfrm_contact_email' => true,
|
616 |
+
'cntctfrm_contact_phone' => ( 1 == $cntctfrm_options['display_phone_field'] ) ? true : false,
|
617 |
'cntctfrm_contact_subject' => true,
|
618 |
'cntctfrm_contact_message' => true,
|
619 |
+
'cntctfrm_contact_attachment' => ( 1 == $cntctfrm_options['attachment'] ) ? true : false,
|
620 |
+
'cntctfrm_contact_send_copy' => ( 1 == $cntctfrm_options['send_copy'] ) ? true : false,
|
621 |
'cntctfrm_subscribe' => $display_subscriber,
|
622 |
'cntctfrm_captcha' => $display_captcha || $display_google_captcha ? true : false,
|
623 |
);
|
629 |
}
|
630 |
}
|
631 |
|
632 |
+
$ordered_fields = array_merge( $cntctfrm_options['order_fields']['first_column'], $cntctfrm_options['order_fields']['second_column'] );
|
633 |
$diff_fields = array_diff( $display_fields, $ordered_fields );
|
634 |
|
635 |
foreach ( $diff_fields as $field ) {
|
636 |
+
array_push( $cntctfrm_options['order_fields'][ 'first_column' ], $field );
|
637 |
}
|
638 |
|
639 |
+
return $cntctfrm_options['order_fields'];
|
640 |
}
|
641 |
}
|
642 |
|
643 |
/* Add settings page in admin area */
|
644 |
if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
645 |
function cntctfrm_settings_page() {
|
646 |
+
global $cntctfrm_options, $wpdb, $wp_version, $cntctfrm_plugin_info, $cntctfrm_lang_codes, $cntctfrm_related_plugins;
|
647 |
|
648 |
if ( empty( $cntctfrm_related_plugins ) )
|
649 |
cntctfrm_related_plugins();
|
657 |
if ( ! function_exists( 'get_plugins' ) )
|
658 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
659 |
|
660 |
+
if ( ! isset( $_GET['action'] ) || 'additional' == $_GET['action'] || 'appearance' == $_GET['action'] )
|
661 |
$all_plugins = get_plugins();
|
|
|
662 |
|
663 |
$userslogin = get_users( 'blog_id=' . $GLOBALS['blog_id'] . '&role=administrator' );
|
664 |
|
692 |
$layout_second_column = array();
|
693 |
}
|
694 |
|
695 |
+
$options_submit['layout'] = $layout;
|
696 |
+
$options_submit['submit_position'] = $submit_position;
|
697 |
+
$options_submit['order_fields']['first_column'] = $layout_first_column;
|
698 |
+
$options_submit['order_fields']['second_column'] = $layout_second_column;
|
699 |
|
700 |
$cntctfrm_options = array_merge( $cntctfrm_options, $options_submit );
|
701 |
|
733 |
}
|
734 |
}
|
735 |
|
736 |
+
$options_submit['user_email'] = $_POST['cntctfrm_user_email'];
|
737 |
+
$options_submit['custom_email'] = trim( stripslashes( esc_html( $_POST['cntctfrm_custom_email'] ) ), " ," );
|
738 |
+
$options_submit['select_email'] = $_POST['cntctfrm_select_email'];
|
739 |
+
$options_submit['from_email'] = $_POST['cntctfrm_from_email'];
|
740 |
+
$options_submit['custom_from_email'] = stripslashes( esc_html( $_POST['cntctfrm_custom_from_email'] ) );
|
741 |
+
|
742 |
+
$options_submit['mail_method'] = $_POST['cntctfrm_mail_method'];
|
743 |
+
$options_submit['from_field'] = stripslashes( esc_html( $_POST['cntctfrm_from_field'] ) );
|
744 |
+
$options_submit['select_from_field'] = $_POST['cntctfrm_select_from_field'];
|
745 |
+
$options_submit['display_name_field'] = isset( $_POST['cntctfrm_display_name_field'] ) ? 1 : 0;
|
746 |
+
$options_submit['display_address_field'] = isset( $_POST['cntctfrm_display_address_field'] ) ? 1 : 0;
|
747 |
+
$options_submit['display_phone_field'] = isset( $_POST['cntctfrm_display_phone_field'] ) ? 1 : 0;
|
748 |
+
$options_submit['attachment'] = isset( $_POST['cntctfrm_attachment'] ) ? $_POST['cntctfrm_attachment'] : 0;
|
749 |
+
$options_submit['attachment_explanations'] = isset( $_POST['cntctfrm_attachment_explanations'] ) ? $_POST['cntctfrm_attachment_explanations'] : 0;
|
750 |
+
$options_submit['send_copy'] = isset( $_POST['cntctfrm_send_copy'] ) ? $_POST['cntctfrm_send_copy'] : 0;
|
751 |
+
|
752 |
+
$options_submit['delete_attached_file'] = isset( $_POST['cntctfrm_delete_attached_file'] ) ? $_POST['cntctfrm_delete_attached_file'] : 0;
|
753 |
+
|
754 |
+
if ( isset( $_POST['cntctfrm_add_language_button'] ) )
|
755 |
+
cntctfrm_add_language();
|
756 |
+
|
757 |
+
if ( isset( $_POST['cntctfrm_delete_button'] ) )
|
758 |
+
cntctfrm_remove_language();
|
759 |
+
|
760 |
+
if ( $contact_form_multi_active ) {
|
761 |
+
$options_submit['display_captcha'] = isset( $_POST['cntctfrm_display_captcha'] ) ? 1 : 0;
|
762 |
+
$options_submit['display_google_captcha'] = isset( $_POST['cntctfrm_display_google_captcha'] ) ? 1 : 0;
|
763 |
+
$options_submit['display_subscribe'] = isset( $_POST['cntctfrm_display_subscriber'] ) ? 1 : 0;
|
764 |
+
$options_submit['save_email_to_db'] = isset( $_POST['cntctfrm_save_email_to_db'] ) ? 1 : 0;
|
765 |
} else {
|
766 |
/* Update related plugins options if Contact Form Multi is not active */
|
767 |
if ( array_key_exists( 'captcha', $cntctfrm_related_plugins ) ) {
|
792 |
}
|
793 |
}
|
794 |
|
795 |
+
if ( 0 == $options_submit['display_name_field'] ) {
|
796 |
+
$options_submit['required_name_field'] = 0;
|
797 |
} else {
|
798 |
+
$options_submit['required_name_field'] = isset( $_POST['cntctfrm_required_name_field'] ) ? 1 : 0;
|
799 |
}
|
800 |
+
if ( 0 == $options_submit['display_address_field'] ) {
|
801 |
+
$options_submit['required_address_field'] = 0;
|
802 |
} else {
|
803 |
+
$options_submit['required_address_field'] = isset( $_POST['cntctfrm_required_address_field'] ) ? 1 : 0;
|
804 |
}
|
805 |
+
$options_submit['required_email_field'] = isset( $_POST['cntctfrm_required_email_field'] ) ? 1 : 0;
|
806 |
+
if ( 0 == $options_submit['display_phone_field'] ) {
|
807 |
+
$options_submit['required_phone_field'] = 0;
|
808 |
} else {
|
809 |
+
$options_submit['required_phone_field'] = isset( $_POST['cntctfrm_required_phone_field'] ) ? 1 : 0;
|
810 |
}
|
811 |
+
$options_submit['required_subject_field'] = isset( $_POST['cntctfrm_required_subject_field'] ) ? 1 : 0;
|
812 |
+
$options_submit['required_message_field'] = isset( $_POST['cntctfrm_required_message_field'] ) ? 1 : 0;
|
813 |
+
|
814 |
+
$options_submit['required_symbol'] = isset( $_POST['cntctfrm_required_symbol'] ) ? stripslashes( esc_html( $_POST['cntctfrm_required_symbol'] ) ) : '*';
|
815 |
+
$options_submit['html_email'] = isset( $_POST['cntctfrm_html_email'] ) ? 1 : 0;
|
816 |
+
$options_submit['display_add_info'] = isset( $_POST['cntctfrm_display_add_info'] ) ? 1 : 0;
|
817 |
+
|
818 |
+
$options_submit['display_sent_from'] = isset( $_POST['cntctfrm_display_sent_from'] ) ? 1 : 0;
|
819 |
+
$options_submit['display_date_time'] = isset( $_POST['cntctfrm_display_date_time'] ) ? 1 : 0;
|
820 |
+
$options_submit['display_coming_from'] = isset( $_POST['cntctfrm_display_coming_from'] ) ? 1 : 0;
|
821 |
+
$options_submit['display_user_agent'] = isset( $_POST['cntctfrm_display_user_agent'] ) ? 1 : 0;
|
822 |
+
|
823 |
+
if ( 0 == $options_submit['display_sent_from'] && 0 == $options_submit['display_date_time'] && 0 == $options_submit['display_coming_from'] && 0 == $options_submit['display_user_agent'] )
|
824 |
+
$options_submit['display_add_info'] = 0;
|
825 |
+
|
826 |
+
if ( 0 == $options_submit['display_add_info'] ) {
|
827 |
+
$options_submit['display_sent_from'] = 1;
|
828 |
+
$options_submit['display_date_time'] = 1;
|
829 |
+
$options_submit['display_coming_from'] = 1;
|
830 |
+
$options_submit['display_user_agent'] = 1;
|
831 |
}
|
832 |
|
833 |
+
$options_submit['change_label'] = isset( $_POST['cntctfrm_change_label'] ) ? 1 : 0;
|
834 |
+
$options_submit['change_label_in_email'] = isset( $_POST['cntctfrm_change_label_in_email'] ) ? 1 : 0;
|
835 |
|
836 |
+
if ( 1 == $options_submit['change_label'] ) {
|
837 |
foreach ( $_POST['cntctfrm_name_label'] as $key => $val ) {
|
838 |
+
$options_submit['name_label'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_name_label'][ $key ] ) );
|
839 |
+
$options_submit['address_label'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_address_label'][ $key ] ) );
|
840 |
+
$options_submit['email_label'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_email_label'][ $key ] ) );
|
841 |
+
$options_submit['phone_label'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_phone_label'][ $key ] ) );
|
842 |
+
$options_submit['subject_label'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_subject_label'][ $key ] ) );
|
843 |
+
$options_submit['message_label'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_message_label'][ $key ] ) );
|
844 |
+
$options_submit['attachment_label'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_attachment_label'][ $key ] ) );
|
845 |
+
$options_submit['attachment_tooltip'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_attachment_tooltip'][ $key ] ) );
|
846 |
+
$options_submit['send_copy_label'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_send_copy_label'][ $key ] ) );
|
847 |
+
$options_submit['thank_text'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_thank_text'][ $key ] ) );
|
848 |
+
$options_submit['submit_label'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_submit_label'][ $key ] ) );
|
849 |
+
$options_submit['name_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_name_error'][ $key ] ) );
|
850 |
+
$options_submit['address_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_address_error'][ $key ] ) );
|
851 |
+
$options_submit['email_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_email_error'][ $key ] ) );
|
852 |
+
$options_submit['phone_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_phone_error'][ $key ] ) );
|
853 |
+
$options_submit['subject_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_subject_error'][ $key ] ) );
|
854 |
+
$options_submit['message_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_message_error'][ $key ] ) );
|
855 |
+
$options_submit['attachment_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_attachment_error'][ $key ] ) );
|
856 |
+
$options_submit['attachment_upload_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_attachment_upload_error'][ $key ] ) );
|
857 |
+
$options_submit['attachment_move_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_attachment_move_error'][ $key ] ) );
|
858 |
+
$options_submit['attachment_size_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_attachment_size_error'][ $key ] ) );
|
859 |
+
$options_submit['captcha_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_captcha_error'][ $key ] ) );
|
860 |
+
$options_submit['form_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_form_error'][ $key ] ) );
|
861 |
}
|
862 |
} else {
|
863 |
+
$option_defaults = cntctfrm_get_option_defaults();
|
864 |
+
|
865 |
+
if ( empty( $cntctfrm_options['language'] ) ) {
|
866 |
+
$options_submit['name_label'] = $option_defaults['name_label'];
|
867 |
+
$options_submit['address_label'] = $option_defaults['address_label'];
|
868 |
+
$options_submit['email_label'] = $option_defaults['email_label'];
|
869 |
+
$options_submit['phone_label'] = $option_defaults['phone_label'];
|
870 |
+
$options_submit['subject_label'] = $option_defaults['subject_label'];
|
871 |
+
$options_submit['message_label'] = $option_defaults['message_label'];
|
872 |
+
$options_submit['attachment_label'] = $option_defaults['attachment_label'];
|
873 |
+
$options_submit['attachment_tooltip'] = $option_defaults['attachment_tooltip'];
|
874 |
+
$options_submit['send_copy_label'] = $option_defaults['send_copy_label'];
|
875 |
+
$options_submit['thank_text'] = $_POST['cntctfrm_thank_text'];
|
876 |
+
$options_submit['submit_label'] = $option_defaults['submit_label'];
|
877 |
+
$options_submit['name_error'] = $option_defaults['name_error'];
|
878 |
+
$options_submit['address_error'] = $option_defaults['address_error'];
|
879 |
+
$options_submit['email_error'] = $option_defaults['email_error'];
|
880 |
+
$options_submit['phone_error'] = $option_defaults['phone_error'];
|
881 |
+
$options_submit['subject_error'] = $option_defaults['subject_error'];
|
882 |
+
$options_submit['message_error'] = $option_defaults['message_error'];
|
883 |
+
$options_submit['attachment_error'] = $option_defaults['attachment_error'];
|
884 |
+
$options_submit['attachment_upload_error'] = $option_defaults['attachment_upload_error'];
|
885 |
+
$options_submit['attachment_move_error'] = $option_defaults['attachment_move_error'];
|
886 |
+
$options_submit['attachment_size_error'] = $option_defaults['attachment_size_error'];
|
887 |
+
$options_submit['captcha_error'] = $option_defaults['captcha_error'];
|
888 |
+
$options_submit['form_error'] = $option_defaults['form_error'];
|
889 |
+
foreach ( $options_submit['thank_text'] as $key => $val ) {
|
890 |
+
$options_submit['thank_text'][ $key ] = stripcslashes( htmlspecialchars( $val ) );
|
891 |
}
|
892 |
} else {
|
893 |
+
$options_submit['name_label']['default'] = $option_defaults['name_label']['default'];
|
894 |
+
$options_submit['address_label']['default'] = $option_defaults['address_label']['default'];
|
895 |
+
$options_submit['email_label']['default'] = $option_defaults['email_label']['default'];
|
896 |
+
$options_submit['phone_label']['default'] = $option_defaults['phone_label']['default'];
|
897 |
+
$options_submit['subject_label']['default'] = $option_defaults['subject_label']['default'];
|
898 |
+
$options_submit['message_label']['default'] = $option_defaults['message_label']['default'];
|
899 |
+
$options_submit['attachment_label']['default'] = $option_defaults['attachment_label']['default'];
|
900 |
+
$options_submit['attachment_tooltip']['default'] = $option_defaults['attachment_tooltip']['default'];
|
901 |
+
$options_submit['send_copy_label']['default'] = $option_defaults['send_copy_label']['default'];
|
902 |
+
$options_submit['submit_label']['default'] = $option_defaults['submit_label']['default'];
|
903 |
+
$options_submit['name_error']['default'] = $option_defaults['name_error']['default'];
|
904 |
+
$options_submit['address_error']['default'] = $option_defaults['address_error']['default'];
|
905 |
+
$options_submit['email_error']['default'] = $option_defaults['email_error']['default'];
|
906 |
+
$options_submit['phone_error']['default'] = $option_defaults['phone_error']['default'];
|
907 |
+
$options_submit['subject_error']['default'] = $option_defaults['subject_error']['default'];
|
908 |
+
$options_submit['message_error']['default'] = $option_defaults['message_error']['default'];
|
909 |
+
$options_submit['attachment_error']['default'] = $option_defaults['attachment_error']['default'];
|
910 |
+
$options_submit['attachment_upload_error']['default'] = $option_defaults['attachment_upload_error']['default'];
|
911 |
+
$options_submit['attachment_move_error']['default'] = $option_defaults['attachment_move_error']['default'];
|
912 |
+
$options_submit['attachment_size_error']['default'] = $option_defaults['attachment_size_error']['default'];
|
913 |
+
$options_submit['captcha_error']['default'] = $option_defaults['captcha_error']['default'];
|
914 |
+
$options_submit['form_error']['default'] = $option_defaults['form_error']['default'];
|
915 |
|
916 |
foreach ( $_POST['cntctfrm_thank_text'] as $key => $val ) {
|
917 |
+
$options_submit['thank_text'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_thank_text'][ $key ] ) );
|
918 |
}
|
919 |
}
|
920 |
}
|
921 |
/* if 'FROM' field was changed */
|
922 |
+
if ( ( 'custom' == $cntctfrm_options['from_email'] && 'custom' != $options_submit['from_email'] ) ||
|
923 |
+
( 'custom' == $options_submit['from_email'] && $cntctfrm_options['custom_from_email'] != $options_submit['custom_from_email'] ) ) {
|
924 |
$notice = __( "Email 'FROM' field option was changed, which may cause email messages being moved to the spam folder or email delivery failures.", 'contact-form-plugin' );
|
925 |
}
|
926 |
|
927 |
+
$options_submit['action_after_send'] = $_POST['cntctfrm_action_after_send'];
|
928 |
+
$options_submit['redirect_url'] = esc_url( $_POST['cntctfrm_redirect_url'] );
|
929 |
$cntctfrm_options = array_merge( $cntctfrm_options, $options_submit );
|
930 |
|
931 |
+
if ( 0 == $options_submit['action_after_send']
|
932 |
+
&& ( "" == trim( $options_submit['redirect_url'] )
|
933 |
+
|| ! filter_var( $options_submit['redirect_url'], FILTER_VALIDATE_URL) ) ) {
|
934 |
$error .= __( "If the 'Redirect to page' option is selected then the URL field should be in the following format", 'contact-form-plugin' )." <code>http://your_site/your_page</code>";
|
935 |
+
$cntctfrm_options['action_after_send'] = 1;
|
936 |
}
|
937 |
+
if ( 'user' == $options_submit['select_email'] ) {
|
938 |
+
if ( false !== get_user_by( 'login', $options_submit['user_email'] ) ) {
|
939 |
/**/
|
940 |
} else {
|
941 |
$error .= __( "Such user does not exist.", 'contact-form-plugin' );
|
942 |
}
|
943 |
} else {
|
944 |
+
if ( preg_match( '|,|', $options_submit['custom_email'] ) ) {
|
945 |
+
$cntctfrm_custom_emails = explode( ',', $options_submit['custom_email'] );
|
946 |
} else {
|
947 |
+
$cntctfrm_custom_emails[0] = $options_submit['custom_email'];
|
948 |
}
|
949 |
foreach ( $cntctfrm_custom_emails as $cntctfrm_custom_email ) {
|
950 |
if ( $cntctfrm_custom_email == "" || ! is_email( trim( $cntctfrm_custom_email ) ) ) {
|
953 |
}
|
954 |
}
|
955 |
}
|
956 |
+
if ( 'custom' == $options_submit['from_email'] ) {
|
957 |
+
if ( "" == $options_submit['custom_from_email']
|
958 |
+
|| ! is_email( trim( $options_submit['custom_from_email'] ) ) ) {
|
959 |
$error .= __( "Please enter a valid email address in the 'FROM' field.", 'contact-form-plugin' );
|
960 |
}
|
961 |
}
|
995 |
|
996 |
/* Add restore function */
|
997 |
if ( isset( $_REQUEST['bws_restore_confirm'] ) && check_admin_referer( $plugin_basename, 'bws_settings_nonce_name' ) ) {
|
998 |
+
$option_defaults = cntctfrm_get_option_defaults();
|
999 |
if ( $contact_form_multi_active ) {
|
1000 |
$contact_form_multi_options = array(
|
1001 |
+
'display_captcha' => 0,
|
1002 |
+
'display_google_captcha' => 0,
|
1003 |
+
'display_subscribe' => 0,
|
1004 |
+
'save_email_to_db' => 1,
|
1005 |
+
);
|
1006 |
+
$option_defaults = array_merge( $option_defaults, $contact_form_multi_options );
|
1007 |
}
|
1008 |
|
1009 |
+
$cntctfrm_options = $option_defaults;
|
1010 |
if ( $contact_form_multi_active ) {
|
1011 |
if ( isset( $_SESSION['cntctfrmmlt_id_form'] ) && get_option( 'cntctfrmmlt_options_' . $_SESSION['cntctfrmmlt_id_form'] ) ) {
|
1012 |
update_option( 'cntctfrmmlt_options_' . $_SESSION['cntctfrmmlt_id_form'] , $cntctfrm_options );
|
1071 |
<tr valign="top">
|
1072 |
<th scope="row"><?php _e( "The user's email address", 'contact-form-plugin' ); ?>: </th>
|
1073 |
<td colspan="2">
|
1074 |
+
<label><input type="radio" id="cntctfrm_select_email_user" name="cntctfrm_select_email" value="user" <?php if ( $cntctfrm_options['select_email'] == 'user' ) echo 'checked="checked" '; ?>/>
|
1075 |
<select class="cntctfrm_user_email" name="cntctfrm_user_email">
|
1076 |
<option disabled><?php _e( "Select a username", 'contact-form-plugin' ); ?></option>
|
1077 |
<?php foreach ( $userslogin as $key => $value ) {
|
1078 |
if ( isset( $value->data ) ) {
|
1079 |
if ( $value->data->user_email != '' ) { ?>
|
1080 |
+
<option value="<?php echo $value->data->user_login; ?>" <?php if ( $cntctfrm_options['user_email'] == $value->data->user_login ) echo 'selected="selected" '; ?>><?php echo $value->data->user_login; ?></option>
|
1081 |
<?php }
|
1082 |
} else {
|
1083 |
if ( $value->user_email != '' ) { ?>
|
1084 |
+
<option value="<?php echo $value->user_login; ?>" <?php if ( $cntctfrm_options['user_email'] == $value->user_login ) echo 'selected="selected" '; ?>><?php echo $value->user_login; ?></option>
|
1085 |
<?php }
|
1086 |
}
|
1087 |
} ?>
|
1092 |
<tr valign="top">
|
1093 |
<th scope="row"><?php _e( "Use this email address", 'contact-form-plugin' ); ?>:</th>
|
1094 |
<td colspan="2">
|
1095 |
+
<label><input type="radio" id="cntctfrm_select_email_custom" name="cntctfrm_select_email" value="custom" <?php if ( 'custom' == $cntctfrm_options['select_email'] ) echo 'checked="checked" '; ?>/>
|
1096 |
+
<input type="text" name="cntctfrm_custom_email" value="<?php echo $cntctfrm_options['custom_email']; ?>" maxlength="500" />
|
1097 |
<span class="bws_info cntctfrm_info"><?php _e( "Enter the email address for receiving messages", 'contact-form-plugin' ); ?>.</span></label>
|
1098 |
</td>
|
1099 |
</tr>
|
1135 |
<td colspan="2">
|
1136 |
<?php if ( array_key_exists( 'contact-form-to-db/contact_form_to_db.php', $all_plugins ) || array_key_exists( 'contact-form-to-db-pro/contact_form_to_db_pro.php', $all_plugins ) ) {
|
1137 |
if ( array_key_exists( 'contact-form-to-db', $cntctfrm_related_plugins ) ) {
|
1138 |
+
$save_emails = false;
|
1139 |
if ( ! $contact_form_multi_active ) {
|
1140 |
+
$save_emails = ! empty( $cntctfrm_related_plugins['contact-form-to-db']['options'][ $cntctfrm_related_plugins['contact-form-to-db']['save_option'] ] ) ? true : false;
|
1141 |
+
} else {
|
1142 |
+
$save_emails = ! empty( $cntctfrm_options['save_email_to_db'] ) ? true : false;
|
1143 |
+
}
|
1144 |
+
if ( ! $contact_form_multi_active || ! empty( $cntctfrm_related_plugins['contact-form-to-db']['options'][ $cntctfrm_related_plugins['contact-form-to-db']['save_option'] ] ) ) { ?>
|
1145 |
<label><input type="checkbox" name="cntctfrm_save_email_to_db" value="1" <?php if ( $save_emails ) echo 'checked="checked"'; ?> />
|
1146 |
<span class="bws_info"> (<?php _e( 'Using', 'contact-form-plugin' ); ?>
|
1147 |
<a href="<?php echo self_admin_url( '/admin.php?page=' . $cntctfrm_related_plugins['contact-form-to-db']['settings_page'] ); ?>" target="_blank">Contact Form to DB by BestWebSoft</a>)
|
1174 |
</table>
|
1175 |
</div>
|
1176 |
<!-- end of main 'settings' div -->
|
1177 |
+
<div <?php if ( ! isset( $_GET['action'] ) ) echo 'style="display: none;"'; ?>>
|
1178 |
<table class="form-table" style="width:auto;">
|
1179 |
<tr>
|
1180 |
<th scope="row"><?php _e( 'Sending method', 'contact-form-plugin' ); ?></th>
|
1181 |
<td colspan="2">
|
1182 |
<fieldset>
|
1183 |
<label>
|
1184 |
+
<input type='radio' name='cntctfrm_mail_method' value='wp-mail' <?php if ( 'wp-mail' == $cntctfrm_options['mail_method'] ) echo 'checked="checked" '; ?>/>
|
1185 |
<?php _e( 'Wp-mail', 'contact-form-plugin' ); ?>
|
1186 |
</label>
|
1187 |
<label><span class="bws_info">(<?php _e( 'You can use the Wordpress wp_mail function for mailing', 'contact-form-plugin' ); ?>)</span></label><br />
|
1188 |
<label>
|
1189 |
+
<input type='radio' name='cntctfrm_mail_method' value='mail' <?php if ( 'mail' == $cntctfrm_options['mail_method'] ) echo 'checked="checked" '; ?>/>
|
1190 |
<?php _e( 'Mail', 'contact-form-plugin' ); ?>
|
1191 |
</label>
|
1192 |
<label><span class="bws_info">(<?php _e( 'You can use the PHP mail function for mailing', 'contact-form-plugin' ); ?>)</span></label>
|
1198 |
<td class="cntctfrm_td_name" style="vertical-align: top;width: 210px;">
|
1199 |
<legend><?php _e( "Name", 'contact-form-plugin' ); ?></legend>
|
1200 |
<fieldset>
|
1201 |
+
<label><input type="radio" id="cntctfrm_select_from_custom_field" name="cntctfrm_select_from_field" value="custom" <?php if ( 'custom' == $cntctfrm_options['select_from_field'] ) echo 'checked="checked" '; ?> /><input type="text" name="cntctfrm_from_field" value="<?php echo stripslashes( $cntctfrm_options['from_field'] ); ?>" size="18" maxlength="100" /></label><br />
|
1202 |
+
<label><input type="radio" id="cntctfrm_select_from_field" name="cntctfrm_select_from_field" value="user_name" <?php if ( 'user_name' == $cntctfrm_options['select_from_field'] ) echo 'checked="checked" '; ?>/> <?php _e( "User name", 'contact-form-plugin' ); ?></label>
|
1203 |
<div class="bws_help_box dashicons dashicons-editor-help">
|
1204 |
<div class="bws_hidden_help_text" style="min-width: 200px;"><?php echo __( "The name of the user who fills the form will be used in the field 'From'.", 'contact-form-plugin' ); ?></div>
|
1205 |
</div>
|
1208 |
<td class="cntctfrm_td_email" >
|
1209 |
<legend><?php _e( "Email", 'contact-form-plugin' ); ?></legend>
|
1210 |
<fieldset>
|
1211 |
+
<label><input type="radio" id="cntctfrm_from_custom_email" name="cntctfrm_from_email" value="custom" <?php if ( 'custom' == $cntctfrm_options['from_email'] ) echo 'checked="checked" '; ?>/><input type="text" name="cntctfrm_custom_from_email" value="<?php echo $cntctfrm_options['custom_from_email']; ?>" maxlength="100" /></label><br />
|
1212 |
+
<label><input type="radio" id="cntctfrm_from_email" name="cntctfrm_from_email" value="user" <?php if ( 'user' == $cntctfrm_options['from_email'] ) echo 'checked="checked" '; ?>/> <?php _e( "User email", 'contact-form-plugin' ); ?></label>
|
1213 |
<div class="bws_help_box dashicons dashicons-editor-help">
|
1214 |
<div class="bws_hidden_help_text" style="min-width: 200px;"><?php echo __( "The email address of the user who fills the form will be used in the field 'From'.", 'contact-form-plugin' ); ?></div>
|
1215 |
</div>
|
1222 |
<tr valign="top">
|
1223 |
<th scope="row"><?php _e( "Required symbol", 'contact-form-plugin' ); ?></th>
|
1224 |
<td colspan="2">
|
1225 |
+
<input type="text" id="cntctfrm_required_symbol" name="cntctfrm_required_symbol" value="<?php echo $cntctfrm_options['required_symbol']; ?>" maxlength="100" />
|
1226 |
</td>
|
1227 |
</tr>
|
1228 |
</table>
|
1253 |
<td class="bws_pro_version"></td>
|
1254 |
<td class="bws_pro_version"></td>
|
1255 |
</tr>
|
1256 |
+
<?php } ?>
|
1257 |
<tr valign="top">
|
1258 |
<td><?php _e( "Name", 'contact-form-plugin' ); ?></td>
|
1259 |
<td>
|
1260 |
+
<label><input type="checkbox" name="cntctfrm_display_name_field" value="1" <?php if ( '1' == $cntctfrm_options['display_name_field'] ) echo 'checked="checked" '; ?>/>
|
1261 |
<span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
|
1262 |
</td>
|
1263 |
<td>
|
1264 |
+
<label><input type="checkbox" id="cntctfrm_required_name_field" name="cntctfrm_required_name_field" value="1" <?php if ( '1' == $cntctfrm_options['required_name_field'] ) echo 'checked="checked" '; ?> />
|
1265 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1266 |
</td>
|
1267 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
1304 |
<tr valign="top">
|
1305 |
<td><?php _e( "Address", 'contact-form-plugin' ); ?></td>
|
1306 |
<td>
|
1307 |
+
<label><input type="checkbox" id="cntctfrm_display_address_field" name="cntctfrm_display_address_field" value="1" <?php if ( '1' == $cntctfrm_options['display_address_field'] ) echo 'checked="checked" '; ?>/>
|
1308 |
<span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
|
1309 |
</td>
|
1310 |
<td>
|
1311 |
+
<label><input type="checkbox" id="cntctfrm_required_address_field" name="cntctfrm_required_address_field" value="1" <?php if ( '1' == $cntctfrm_options['required_address_field'] ) echo 'checked="checked" '; ?>/>
|
1312 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1313 |
</td>
|
1314 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
1321 |
<td><?php _e( "Email Address", 'contact-form-plugin' ); ?></td>
|
1322 |
<td></td>
|
1323 |
<td>
|
1324 |
+
<label><input type="checkbox" id="cntctfrm_required_email_field" name="cntctfrm_required_email_field" value="1" <?php if ( '1' == $cntctfrm_options['required_email_field'] ) echo 'checked="checked" '; ?>/>
|
1325 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1326 |
</td>
|
1327 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
1343 |
<tr valign="top">
|
1344 |
<td><?php _e( "Phone number", 'contact-form-plugin' ); ?></td>
|
1345 |
<td>
|
1346 |
+
<label><input type="checkbox" id="cntctfrm_display_phone_field" name="cntctfrm_display_phone_field" value="1" <?php if ( '1' == $cntctfrm_options['display_phone_field'] ) echo 'checked="checked" '; ?>/>
|
1347 |
<span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
|
1348 |
</td>
|
1349 |
<td>
|
1350 |
+
<label><input type="checkbox" id="cntctfrm_required_phone_field" name="cntctfrm_required_phone_field" value="1" <?php if ( '1' == $cntctfrm_options['required_phone_field'] ) echo 'checked="checked" '; ?>/>
|
1351 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1352 |
</td>
|
1353 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
1360 |
<td><?php _e( "Subject", 'contact-form-plugin' ); ?></td>
|
1361 |
<td></td>
|
1362 |
<td>
|
1363 |
+
<label><input type="checkbox" id="cntctfrm_required_subject_field" name="cntctfrm_required_subject_field" value="1" <?php if ( '1' == $cntctfrm_options['required_subject_field'] ) echo 'checked="checked" '; ?>/>
|
1364 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1365 |
</td>
|
1366 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
1384 |
<td><?php _e( "Message", 'contact-form-plugin' ); ?></td>
|
1385 |
<td></td>
|
1386 |
<td>
|
1387 |
+
<label><input type="checkbox" id="cntctfrm_required_message_field" name="cntctfrm_required_message_field" value="1" <?php if ( '1' == $cntctfrm_options['required_message_field'] ) echo 'checked="checked" '; ?>/>
|
1388 |
<span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
|
1389 |
</td>
|
1390 |
<?php if ( ! $bws_hide_premium_options_check ) { ?>
|
1428 |
</div>
|
1429 |
</td>
|
1430 |
<td>
|
1431 |
+
<label><input type="checkbox" id="cntctfrm_attachment" name="cntctfrm_attachment" value="1" <?php if ( '1' == $cntctfrm_options['attachment'] ) echo 'checked="checked" '; ?>/>
|
1432 |
<span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
|
1433 |
</td>
|
1434 |
<td></td>
|
1446 |
<td colspan="3"><fieldset>
|
1447 |
<div>
|
1448 |
<label>
|
1449 |
+
<input type="checkbox" id="cntctfrm_attachment_explanations" name="cntctfrm_attachment_explanations" value="1" <?php if ( '1' == $cntctfrm_options['attachment_explanations'] && '1' == $cntctfrm_options['attachment'] ) echo 'checked="checked" '; ?>/>
|
1450 |
<?php _e( "Tips below the Attachment", 'contact-form-plugin' ); ?>
|
1451 |
</label>
|
1452 |
<div class="bws_help_box dashicons dashicons-editor-help">
|
1455 |
</div>
|
1456 |
<div>
|
1457 |
<label>
|
1458 |
+
<input type="checkbox" id="cntctfrm_send_copy" name="cntctfrm_send_copy" value="1" <?php if ( '1' == $cntctfrm_options['send_copy'] ) echo 'checked="checked" '; ?>/>
|
1459 |
<?php _e( "'Send me a copy' block", 'contact-form-plugin' ); ?>
|
1460 |
</label>
|
1461 |
<div class="bws_help_box dashicons dashicons-editor-help">
|
1468 |
if ( ! $contact_form_multi_active ) {
|
1469 |
$display_subscriber = ! empty( $cntctfrm_related_plugins['subscriber']['options']['contact_form'] ) ? true : false;
|
1470 |
} else {
|
1471 |
+
$display_subscriber = ! empty( $cntctfrm_options['display_subscribe'] ) ? true : false;
|
1472 |
}
|
1473 |
if ( ! $contact_form_multi_active || ! empty( $cntctfrm_related_plugins['subscriber']['options']['contact_form'] ) ) { ?>
|
1474 |
<label><input type="checkbox" name="cntctfrm_display_subscriber" value="1" <?php if ( $display_subscriber ) echo 'checked="checked"'; ?> /> Subscriber by BestWebSoft</label>
|
1499 |
if ( ! $contact_form_multi_active ) {
|
1500 |
$display_captcha = ! empty( $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['display_option'] ] ) ? true : false;
|
1501 |
} else {
|
1502 |
+
$display_captcha = ! empty( $cntctfrm_options['display_captcha'] ) ? true : false;
|
1503 |
}
|
1504 |
|
1505 |
if ( ! $contact_form_multi_active || ! empty( $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['display_option'] ] ) ) { ?>
|
1506 |
<label><input type="checkbox" name="cntctfrm_display_captcha" value="1" <?php if ( $display_captcha ) echo 'checked="checked"'; ?> /> Captcha by BestWebSoft </label>
|
1507 |
<?php } else { ?>
|
1508 |
<label>
|
1509 |
+
<input type="checkbox" name="cntctfrm_display_captcha" value="1" disabled="disabled" <?php if ( $display_captcha ) echo 'checked="checked"'; ?> /> Captcha by BestWebSoft
|
1510 |
<span class="bws_info"> (<?php _e( 'Please activate the appropriate option on', 'contact-form-plugin' ) ?>
|
1511 |
<?php printf( '<a href="%s" target="_blank"> Captcha %s</a> )',
|
1512 |
self_admin_url( '/admin.php?page=' . $cntctfrm_related_plugins['captcha']['settings_page'] ),
|
1515 |
</label>
|
1516 |
<?php }
|
1517 |
} else { ?>
|
1518 |
+
<label><input disabled="disabled" type="checkbox" name="cntctfrm_display_captcha" value="1" /> Captcha by BestWebSoft</label>
|
1519 |
<span class="bws_info">
|
1520 |
<?php printf( '<a href="%s" target="_blank">%s Captcha</a>', self_admin_url( 'plugins.php' ), __( 'Activate', 'contact-form-plugin' ) ); ?>
|
1521 |
</span>
|
1522 |
<?php }
|
1523 |
} else { ?>
|
1524 |
+
<label><input disabled="disabled" type="checkbox" name="cntctfrm_display_captcha" value="1" /> Captcha by BestWebSoft</label>
|
1525 |
<span class="bws_info">
|
1526 |
<?php printf( '<a href="http://bestwebsoft.com/products/captcha/?k=19ac1e9b23bea947cfc4a9b8e3326c03&pn=77&v=%s&wp_v=%s">%s Captcha</a>', $cntctfrm_plugin_info["Version"], $wp_version, __( 'Download', 'contact-form-plugin' ) ) ?>
|
1527 |
</span>
|
1533 |
if ( ! $contact_form_multi_active ) {
|
1534 |
$display_google_captcha = ! empty( $cntctfrm_related_plugins['google-captcha']['options']['contact_form'] ) ? true : false;
|
1535 |
} else {
|
1536 |
+
$display_google_captcha = ! empty( $cntctfrm_options['display_google_captcha'] ) ? true : false;
|
1537 |
}
|
1538 |
|
1539 |
if ( ! $contact_form_multi_active || ! empty( $cntctfrm_related_plugins['google-captcha']['options']['contact_form'] ) ) { ?>
|
1540 |
+
<label><input type="checkbox" name="cntctfrm_display_google_captcha" value="1" <?php if ( $display_google_captcha ) echo 'checked="checked"'; ?> /> Google Captcha (reCaptcha) by BestWebSoft</label>
|
|
|
1541 |
<?php } else { ?>
|
1542 |
<label>
|
1543 |
+
<input type="checkbox" name="cntctfrm_display_google_captcha" value="1" disabled="disabled" <?php if ( $display_google_captcha ) echo 'checked="checked"'; ?> /> Google Captcha (reCaptcha) by BestWebSoft
|
1544 |
<span class="bws_info"> (<?php _e( 'Please activate the appropriate option on', 'contact-form-plugin' ) ?>
|
1545 |
<?php printf( '<a href="%s" target="_blank"> Google Captcha %s</a> )',
|
1546 |
self_admin_url( '/admin.php?page=' . $cntctfrm_related_plugins['google-captcha']['settings_page'] ),
|
1547 |
__( 'settings page', 'contact-form-plugin' ) ); ?>
|
|
|
1548 |
</span>
|
1549 |
</label>
|
1550 |
<?php }
|
1551 |
} else { ?>
|
1552 |
+
<label><input disabled="disabled" type="checkbox" name="cntctfrm_display_google_captcha" value="1" /> Google Captcha (reCaptcha) by BestWebSoft</label>
|
1553 |
<span class="bws_info">
|
1554 |
<?php printf( '<a href="%s" target="_blank">%s Google Captcha</a>', self_admin_url( 'plugins.php' ), __( 'Activate', 'contact-form-plugin' ) ); ?>
|
1555 |
</span>
|
1556 |
<?php }
|
1557 |
} else { ?>
|
1558 |
+
<label><input disabled="disabled" type="checkbox" name="cntctfrm_display_google_captcha" value="1" /> Google Captcha (reCaptcha) by BestWebSoft</label> <span class="bws_info">
|
1559 |
<?php printf( '<a href="http://bestwebsoft.com/products/google-captcha/?k=7d74e61dd1cea23d0e9bf2fa88b5b117&pn=77&v=%s&wp_v=%s">%s Google Captcha</a>', $cntctfrm_plugin_info["Version"], $wp_version, __( 'Download', 'contact-form-plugin' ) ) ?>
|
1560 |
</span>
|
1561 |
<?php } ?>
|
1591 |
<tr valign="top">
|
1592 |
<th scope="row"><?php _e( "Delete an attachment file from the server after the email is sent", 'contact-form-plugin' ); ?> </th>
|
1593 |
<td colspan="3">
|
1594 |
+
<input type="checkbox" id="cntctfrm_delete_attached_file" name="cntctfrm_delete_attached_file" value="1" <?php if ( '1' == $cntctfrm_options['delete_attached_file'] ) echo 'checked="checked" '; ?>/>
|
1595 |
</td>
|
1596 |
</tr>
|
1597 |
<tr valign="top">
|
1598 |
<th scope="row"><?php _e( "Email in HTML format sending", 'contact-form-plugin' ); ?></th>
|
1599 |
+
<td colspan="2"><input type="checkbox" name="cntctfrm_html_email" value="1" <?php if ( '1' == $cntctfrm_options['html_email'] ) echo 'checked="checked" '; ?>/></td>
|
1600 |
</tr>
|
1601 |
<tr valign="top">
|
1602 |
<th scope="row"><?php _e( "Display additional info in the email", 'contact-form-plugin' ); ?></th>
|
1603 |
<td style="width:15px;" class="cntctfrm_td_top_align">
|
1604 |
+
<input type="checkbox" id="cntctfrm_display_add_info" name="cntctfrm_display_add_info" value="1" <?php if ( '1' == $cntctfrm_options['display_add_info'] ) echo 'checked="checked" '; ?>/>
|
1605 |
</td>
|
1606 |
+
<td class="cntctfrm_display_add_info_block" <?php if ( '0' == $cntctfrm_options['display_add_info'] ) echo 'style="display:none"'; ?>>
|
1607 |
<fieldset>
|
1608 |
+
<label><input type="checkbox" id="cntctfrm_display_sent_from" name="cntctfrm_display_sent_from" value="1" <?php if ( '1' == $cntctfrm_options['display_sent_from'] ) echo 'checked="checked" '; ?>/> <?php _e( "Sent from (IP address)", 'contact-form-plugin' ); ?></label> <label class="bws_info"><?php _e( "Example: Sent from (IP address): 127.0.0.1", 'contact-form-plugin' ); ?></label><br />
|
1609 |
+
<label><input type="checkbox" id="cntctfrm_display_date_time" name="cntctfrm_display_date_time" value="1" <?php if ( '1' == $cntctfrm_options['display_date_time'] ) echo 'checked="checked" '; ?>/> <?php _e( "Date/Time", 'contact-form-plugin' ); ?></label> <label class="bws_info"><?php _e( "Example: Date/Time: August 19, 2013 8:50 pm", 'contact-form-plugin' ); ?></label><br />
|
1610 |
+
<label><input type="checkbox" id="cntctfrm_display_coming_from" name="cntctfrm_display_coming_from" value="1" <?php if ( '1' == $cntctfrm_options['display_coming_from'] ) echo 'checked="checked" '; ?>/> <?php _e( "Sent from (referer)", 'contact-form-plugin' ); ?></label> <label class="bws_info"><?php _e( "Example: Sent from (referer): http://bestwebsoft.com/contacts/contact-us/", 'contact-form-plugin' ); ?></label><br />
|
1611 |
+
<label><input type="checkbox" id="cntctfrm_display_user_agent" name="cntctfrm_display_user_agent" value="1" <?php if ( '1' == $cntctfrm_options['display_user_agent'] ) echo 'checked="checked" '; ?>/> <?php _e( "Using (user agent)", 'contact-form-plugin' ); ?></label> <label class="bws_info"><?php _e( "Example: Using (user agent): Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36", 'contact-form-plugin' ); ?></label>
|
1612 |
</fieldset>
|
1613 |
</td>
|
1614 |
</tr>
|
1616 |
<th scope="row"><?php _e( "Language settings for the field names in the form", 'contact-form-plugin' ); ?></th>
|
1617 |
<td colspan="2">
|
1618 |
<select name="cntctfrm_languages" id="cntctfrm_languages" style="width:300px;">
|
1619 |
+
<?php foreach ( $cntctfrm_lang_codes as $key => $val ) {
|
1620 |
+
if ( in_array( $key, $cntctfrm_options['language'] ) )
|
1621 |
+
continue;
|
1622 |
+
echo '<option value="' . esc_attr( $key ) . '"> ' . esc_html( $val ) . '</option>';
|
1623 |
+
} ?>
|
1624 |
</select>
|
1625 |
+
<input type="submit" class="button-secondary" name="cntctfrm_add_language_button" id="cntctfrm_add_language_button" value="<?php _e( 'Add a language', 'contact-form-plugin' ); ?>" />
|
1626 |
</td>
|
1627 |
</tr>
|
1628 |
<tr valign="top">
|
1629 |
<th scope="row"><?php _e( "Change the names of the contact form fields and error messages", 'contact-form-plugin' ); ?></th>
|
1630 |
<td style="width:15px;" class="cntctfrm_td_top_align">
|
1631 |
+
<input type="checkbox" id="cntctfrm_change_label" name="cntctfrm_change_label" value="1" <?php if ( $cntctfrm_options['change_label'] == '1' ) echo 'checked="checked" '; ?>/>
|
1632 |
</td>
|
1633 |
+
<td class="cntctfrm_change_label_block" <?php if ( '0' == $cntctfrm_options['change_label'] ) echo 'style="display:none"'; ?>>
|
1634 |
<div class="cntctfrm_label_language_tab <?php echo ! isset( $_POST['cntctfrm_change_tab'] ) || 'default' == $_POST['cntctfrm_change_tab'] ? 'cntctfrm_active' : ''; ?>" id="cntctfrm_label_default"><?php _e( 'Default', 'contact-form-plugin' ); ?>
|
1635 |
<noscript>
|
1636 |
<input type="submit" class="cntctfrm_change_tab" value="default" name="cntctfrm_change_tab">
|
1637 |
</noscript>
|
1638 |
</div>
|
1639 |
+
<?php if ( ! empty( $cntctfrm_options['language'] ) ) {
|
1640 |
+
foreach ( $cntctfrm_options['language'] as $val ) {
|
1641 |
$active_tab_class = isset( $_POST["cntctfrm_change_tab"] ) && $val == $_POST["cntctfrm_change_tab"] ? "cntctfrm_active" : "";
|
1642 |
echo '<div class="cntctfrm_label_language_tab ' . $active_tab_class . '" id="cntctfrm_label_' . $val . '">' . $cntctfrm_lang_codes[ $val ] . ' <span class="cntctfrm_delete" rel="' . $val . '">X</span><noscript><input type="submit" class="cntctfrm_change_tab" value="' . $val . '" name="cntctfrm_change_tab"><span class="cntctfrm_del_button_wrap"><input type="submit" class="cntctfrm_delete_button" value="' . $val . '" name="cntctfrm_delete_button"></span></noscript></div>';
|
1643 |
}
|
1646 |
<div class="cntctfrm_language_tab cntctfrm_tab_default <?php echo ! isset( $_POST['cntctfrm_change_tab'] ) || 'default' == $_POST['cntctfrm_change_tab'] ? '' : 'hidden' ?>" style="padding: 1px 3px;">
|
1647 |
<div class="cntctfrm_language_tab_block_mini" style="display:none;"><?php _e( "click to expand/hide the list", 'contact-form-plugin' ); ?></div>
|
1648 |
<div class="cntctfrm_language_tab_block">
|
1649 |
+
<input type="text" maxlength="250" name="cntctfrm_name_label[default]" value="<?php echo $cntctfrm_options['name_label']['default']; ?>" /> <span class="bws_info"><?php _e( "Name", 'contact-form-plugin' ); ?>:</span><br />
|
1650 |
+
<input type="text" maxlength="250" name="cntctfrm_address_label[default]" value="<?php echo $cntctfrm_options['address_label']['default']; ?>" /> <span class="bws_info"><?php _e( "Address", 'contact-form-plugin' ); ?>:</span><br />
|
1651 |
+
<input type="text" maxlength="250" name="cntctfrm_email_label[default]" value="<?php echo $cntctfrm_options['email_label']['default']; ?>" /> <span class="bws_info"><?php _e( "Email Address", 'contact-form-plugin' ); ?>:</span><br />
|
1652 |
+
<input type="text" maxlength="250" name="cntctfrm_phone_label[default]" value="<?php echo $cntctfrm_options['phone_label']['default']; ?>" /> <span class="bws_info"><?php _e( "Phone number", 'contact-form-plugin' ); ?>:</span><br />
|
1653 |
+
<input type="text" maxlength="250" name="cntctfrm_subject_label[default]" value="<?php echo $cntctfrm_options['subject_label']['default']; ?>" /> <span class="bws_info"><?php _e( "Subject", 'contact-form-plugin' ); ?>:</span><br />
|
1654 |
+
<input type="text" maxlength="250" name="cntctfrm_message_label[default]" value="<?php echo $cntctfrm_options['message_label']['default']; ?>" /> <span class="bws_info"><?php _e( "Message", 'contact-form-plugin' ); ?>:</span><br />
|
1655 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_label[default]" value="<?php echo $cntctfrm_options['attachment_label']['default']; ?>" /> <span class="bws_info"><?php _e( "Attachment", 'contact-form-plugin' ); ?>:</span><br />
|
1656 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_tooltip[default]" value="<?php echo $cntctfrm_options['attachment_tooltip']['default']; ?>" /> <span class="bws_info"><?php _e( "Tips below the Attachment block", 'contact-form-plugin' ); ?></span><br />
|
1657 |
+
<input type="text" maxlength="250" name="cntctfrm_send_copy_label[default]" value="<?php echo $cntctfrm_options['send_copy_label']['default']; ?>" /> <span class="bws_info"><?php _e( "Send me a copy", 'contact-form-plugin' ); ?></span><br />
|
1658 |
+
<input type="text" maxlength="250" name="cntctfrm_submit_label[default]" value="<?php echo $cntctfrm_options['submit_label']['default']; ?>" /> <span class="bws_info"><?php _e( "Submit", 'contact-form-plugin' ); ?></span><br />
|
1659 |
+
<input type="text" maxlength="250" name="cntctfrm_name_error[default]" value="<?php echo $cntctfrm_options['name_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message for the Name field", 'contact-form-plugin' ); ?></span><br />
|
1660 |
+
<input type="text" maxlength="250" name="cntctfrm_address_error[default]" value="<?php echo $cntctfrm_options['address_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message for the Address field", 'contact-form-plugin' ); ?></span><br />
|
1661 |
+
<input type="text" maxlength="250" name="cntctfrm_email_error[default]" value="<?php echo $cntctfrm_options['email_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message for the Email field", 'contact-form-plugin' ); ?></span><br />
|
1662 |
+
<input type="text" maxlength="250" name="cntctfrm_phone_error[default]" value="<?php echo $cntctfrm_options['phone_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message for the Phone field", 'contact-form-plugin' ); ?></span><br />
|
1663 |
+
<input type="text" maxlength="250" name="cntctfrm_subject_error[default]" value="<?php echo $cntctfrm_options['subject_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message for the Subject field", 'contact-form-plugin' ); ?></span><br />
|
1664 |
+
<input type="text" maxlength="250" name="cntctfrm_message_error[default]" value="<?php echo $cntctfrm_options['message_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message for the Message field", 'contact-form-plugin' ); ?></span><br />
|
1665 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_error[default]" value="<?php echo $cntctfrm_options['attachment_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message about the file type for the Attachment field", 'contact-form-plugin' ); ?></span><br />
|
1666 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_upload_error[default]" value="<?php echo $cntctfrm_options['attachment_upload_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message while uploading a file for the Attachment field to the server", 'contact-form-plugin' ); ?></span><br />
|
1667 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_move_error[default]" value="<?php echo $cntctfrm_options['attachment_move_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message while moving the file for the Attachment field", 'contact-form-plugin' ); ?></span><br />
|
1668 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_size_error[default]" value="<?php echo $cntctfrm_options['attachment_size_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message when file size limit for the Attachment field is exceeded", 'contact-form-plugin' ); ?></span><br />
|
1669 |
+
<input type="text" maxlength="250" name="cntctfrm_captcha_error[default]" value="<?php echo $cntctfrm_options['captcha_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message for the Captcha field", 'contact-form-plugin' ); ?></span><br />
|
1670 |
+
<input type="text" maxlength="250" name="cntctfrm_form_error[default]" value="<?php echo $cntctfrm_options['form_error']['default']; ?>" /> <span class="bws_info"><?php _e( "Error message for the whole form", 'contact-form-plugin' ); ?></span><br />
|
1671 |
</div>
|
1672 |
<?php if ( ! $contact_form_multi_active ) { ?>
|
1673 |
<span class="bws_info cntctfrm_shortcode_for_language" style="margin-left: 5px;"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
1675 |
<span class="bws_info cntctfrm_shortcode_for_language" style="margin-left: 5px;"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form id=<?php echo $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
1676 |
<?php } ?>
|
1677 |
</div>
|
1678 |
+
<?php if ( ! empty( $cntctfrm_options['language'] ) ) {
|
1679 |
+
foreach ( $cntctfrm_options['language'] as $val ) {
|
1680 |
if ( ( isset( $_POST['cntctfrm_change_tab'] ) && $val != $_POST['cntctfrm_change_tab'] ) || ! isset($_POST['cntctfrm_change_tab'] ) )
|
1681 |
$labels_table_class = 'hidden';
|
1682 |
else
|
1684 |
<div class="cntctfrm_language_tab <?php echo $labels_table_class; ?> cntctfrm_tab_<?php echo $val; ?>">
|
1685 |
<div class="cntctfrm_language_tab_block_mini" style="display:none;"><?php _e( "click to expand/hide the list", 'contact-form-plugin' ); ?></div>
|
1686 |
<div class="cntctfrm_language_tab_block">
|
1687 |
+
<input type="text" maxlength="250" name="cntctfrm_name_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['name_label'][ $val ] ) ) echo $cntctfrm_options['name_label'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Name", 'contact-form-plugin' ); ?>:</span><br />
|
1688 |
+
<input type="text" maxlength="250" name="cntctfrm_address_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['address_label'][ $val ] ) ) echo $cntctfrm_options['address_label'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Address", 'contact-form-plugin' ); ?>:</span><br />
|
1689 |
+
<input type="text" maxlength="250" name="cntctfrm_email_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['email_label'][ $val ] ) ) echo $cntctfrm_options['email_label'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Email Address", 'contact-form-plugin' ); ?>:</span><br />
|
1690 |
+
<input type="text" maxlength="250" name="cntctfrm_phone_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['phone_label'][ $val ] ) ) echo $cntctfrm_options['phone_label'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Phone number", 'contact-form-plugin' ); ?>:</span><br />
|
1691 |
+
<input type="text" maxlength="250" name="cntctfrm_subject_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['subject_label'][ $val ] ) ) echo $cntctfrm_options['subject_label'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Subject", 'contact-form-plugin' ); ?>:</span><br />
|
1692 |
+
<input type="text" maxlength="250" name="cntctfrm_message_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['message_label'][ $val ] ) ) echo $cntctfrm_options['message_label'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Message", 'contact-form-plugin' ); ?>:</span><br />
|
1693 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['attachment_label'][ $val ] ) ) echo $cntctfrm_options['attachment_label'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Attachment", 'contact-form-plugin' ); ?>:</span><br />
|
1694 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_tooltip[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['attachment_tooltip'][ $val ] ) ) echo $cntctfrm_options['attachment_tooltip'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Tips below the Attachment block", 'contact-form-plugin' ); ?></span><br />
|
1695 |
+
<input type="text" maxlength="250" name="cntctfrm_send_copy_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['send_copy_label'][ $val ] ) ) echo $cntctfrm_options['send_copy_label'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Send me a copy", 'contact-form-plugin' ); ?></span><br />
|
1696 |
+
<input type="text" maxlength="250" name="cntctfrm_submit_label[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['submit_label'][ $val ] ) ) echo $cntctfrm_options['submit_label'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Submit", 'contact-form-plugin' ); ?></span><br />
|
1697 |
+
<input type="text" maxlength="250" name="cntctfrm_name_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['name_error'][ $val ] ) ) echo $cntctfrm_options['name_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message for the Name field", 'contact-form-plugin' ); ?></span><br />
|
1698 |
+
<input type="text" maxlength="250" name="cntctfrm_address_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['address_error'][ $val ] ) ) echo $cntctfrm_options['address_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message for the Address field", 'contact-form-plugin' ); ?></span><br />
|
1699 |
+
<input type="text" maxlength="250" name="cntctfrm_email_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['email_error'][ $val ] ) ) echo $cntctfrm_options['email_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message for the Email field", 'contact-form-plugin' ); ?></span><br />
|
1700 |
+
<input type="text" maxlength="250" name="cntctfrm_phone_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['phone_error'][ $val ] ) ) echo $cntctfrm_options['phone_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message for the Phone field", 'contact-form-plugin' ); ?></span><br />
|
1701 |
+
<input type="text" maxlength="250" name="cntctfrm_subject_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['subject_error'][ $val ] ) ) echo $cntctfrm_options['subject_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message for the Subject field", 'contact-form-plugin' ); ?></span><br />
|
1702 |
+
<input type="text" maxlength="250" name="cntctfrm_message_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['message_error'][ $val ] ) ) echo $cntctfrm_options['message_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message for the Message field", 'contact-form-plugin' ); ?></span><br />
|
1703 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['attachment_error'][ $val ] ) ) echo $cntctfrm_options['attachment_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message about the file type for the Attachment field", 'contact-form-plugin' ); ?></span><br />
|
1704 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_upload_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['attachment_upload_error'][ $val ] ) ) echo $cntctfrm_options['attachment_upload_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message while uploading a file for the Attachment field to the server", 'contact-form-plugin' ); ?></span><br />
|
1705 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_move_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['attachment_move_error'][ $val ] ) ) echo $cntctfrm_options['attachment_move_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message while moving the file for the Attachment field", 'contact-form-plugin' ); ?></span><br />
|
1706 |
+
<input type="text" maxlength="250" name="cntctfrm_attachment_size_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['attachment_size_error'][ $val ] ) ) echo $cntctfrm_options['attachment_size_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message when file size limit for the Attachment field is exceeded", 'contact-form-plugin' ); ?></span><br />
|
1707 |
+
<input type="text" maxlength="250" name="cntctfrm_captcha_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['captcha_error'][ $val ] ) ) echo $cntctfrm_options['captcha_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message for the Captcha field", 'contact-form-plugin' ); ?></span><br />
|
1708 |
+
<input type="text" maxlength="250" name="cntctfrm_form_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['form_error'][ $val ] ) ) echo $cntctfrm_options['form_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message for the whole form", 'contact-form-plugin' ); ?></span><br />
|
1709 |
</div>
|
1710 |
<?php if ( ! $contact_form_multi_active ) { ?>
|
1711 |
<span class="bws_info cntctfrm_shortcode_for_language" style="margin-left: 5px;"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=<?php echo $val; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
1720 |
<tr valign="top">
|
1721 |
<th scope="row"><?php _e( 'Use the changed names of the contact form fields in the email', 'contact-form-plugin' ); ?></th>
|
1722 |
<td colspan="2">
|
1723 |
+
<input type="checkbox" name="cntctfrm_change_label_in_email" value="1" <?php if ( $cntctfrm_options['change_label_in_email'] == '1' ) echo 'checked="checked" '; ?>/>
|
1724 |
</td>
|
1725 |
</tr>
|
1726 |
<tr valign="top">
|
1727 |
<th scope="row"><?php _e( "Action after email is sent", 'contact-form-plugin' ); ?></th>
|
1728 |
<td colspan="2" class="cntctfrm_action_after_send_block">
|
1729 |
+
<label><input type="radio" id="cntctfrm_action_after_send" name="cntctfrm_action_after_send" value="1" <?php if ( '1' == $cntctfrm_options['action_after_send'] ) echo 'checked="checked" '; ?>/> <?php _e( "Display text", 'contact-form-plugin' ); ?></label><br />
|
1730 |
<div class="cntctfrm_label_language_tab <?php echo ! isset( $_POST['cntctfrm_change_tab'] ) || 'default' == $_POST['cntctfrm_change_tab'] ? 'cntctfrm_active' : ''; ?>" id="cntctfrm_text_default"><?php _e( 'Default', 'contact-form-plugin' ); ?>
|
1731 |
<noscript>
|
1732 |
<input type="submit" class="cntctfrm_change_tab" value="default" name="cntctfrm_change_tab">
|
1733 |
</noscript>
|
1734 |
</div>
|
1735 |
+
<?php if ( ! empty( $cntctfrm_options['language'] ) ) {
|
1736 |
+
foreach ( $cntctfrm_options['language'] as $val ) {
|
1737 |
$active_tab_class = isset( $_POST["cntctfrm_change_tab"] ) && $val == $_POST["cntctfrm_change_tab"] ? "cntctfrm_active" : "";
|
1738 |
echo '<div class="cntctfrm_label_language_tab ' . $active_tab_class . '" id="cntctfrm_text_' . $val . '">' . $cntctfrm_lang_codes[ $val ] . ' <span class="cntctfrm_delete" rel="' . $val . '">X</span><noscript><input type="submit" class="cntctfrm_change_tab" value="' . $val . '" name="cntctfrm_change_tab"><span class="cntctfrm_del_button_wrap"><input type="submit" class="cntctfrm_delete_button" value="' . $val . '" name="cntctfrm_delete_button"></span></noscript></div>';
|
1739 |
}
|
1740 |
} ?>
|
1741 |
<div class="clear"></div>
|
1742 |
<div class="cntctfrm_language_tab cntctfrm_tab_default <?php echo ! isset( $_POST['cntctfrm_change_tab'] ) || 'default' == $_POST['cntctfrm_change_tab'] ? '' : 'hidden' ?>" style="padding: 5px 10px 5px 5px;">
|
1743 |
+
<label><input type="text" maxlength="250" name="cntctfrm_thank_text[default]" value="<?php echo $cntctfrm_options['thank_text']['default']; ?>" /> <span class="bws_info"><?php _e( "Text", 'contact-form-plugin' ); ?></span></label><br />
|
1744 |
<?php if ( ! $contact_form_multi_active ) { ?>
|
1745 |
<span class="bws_info cntctfrm_shortcode_for_language"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
1746 |
<?php } else { ?>
|
1747 |
<span class="bws_info cntctfrm_shortcode_for_language"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form id=<?php echo $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
1748 |
<?php } ?>
|
1749 |
</div>
|
1750 |
+
<?php if ( ! empty( $cntctfrm_options['language'] ) ) {
|
1751 |
+
foreach ( $cntctfrm_options['language'] as $val ) {
|
1752 |
if ( ( isset( $_POST['cntctfrm_change_tab'] ) && $val != $_POST['cntctfrm_change_tab'] ) || ! isset($_POST['cntctfrm_change_tab'] ) )
|
1753 |
$labels_table_class = 'hidden';
|
1754 |
else
|
1755 |
$labels_table_class = ''; ?>
|
1756 |
<div class="cntctfrm_language_tab <?php echo $labels_table_class; ?> cntctfrm_tab_<?php echo $val; ?>" style="padding: 5px 10px 5px 5px;">
|
1757 |
+
<label><input type="text" maxlength="250" name="cntctfrm_thank_text[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['thank_text'][ $val ] ) ) echo $cntctfrm_options['thank_text'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Text", 'contact-form-plugin' ); ?></span></label><br />
|
1758 |
<?php if ( ! $contact_form_multi_active ) { ?>
|
1759 |
<span class="bws_info cntctfrm_shortcode_for_language"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=<?php echo $val; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
|
1760 |
<?php } else { ?>
|
1765 |
} ?>
|
1766 |
<div id="cntctfrm_before"></div>
|
1767 |
<br />
|
1768 |
+
<label><input type="radio" id="cntctfrm_action_after_send_url" name="cntctfrm_action_after_send" value="0" <?php if ( '0' == $cntctfrm_options['action_after_send'] ) echo 'checked="checked" '; ?> /> <?php _e( "Redirect to the page", 'contact-form-plugin' ); ?></label><br />
|
1769 |
+
<label><input type="text" maxlength="250" name="cntctfrm_redirect_url" value="<?php echo $cntctfrm_options['redirect_url']; ?>" /> <span class="bws_info"><?php _e( "Url", 'contact-form-plugin' ); ?></span></label>
|
1770 |
</td>
|
1771 |
</tr>
|
1772 |
</table>
|
1837 |
<th scope="row"><?php _e( "Form layout", 'contact-form-plugin' ); ?></th>
|
1838 |
<td colspan="2">
|
1839 |
<fieldset>
|
1840 |
+
<input id="cntctfrm_layout_one_column" name="cntctfrm_layout" type="radio" value="1" <?php if ( $cntctfrm_options['layout'] === 1 ) echo 'checked="checked"' ?>>
|
1841 |
<label for="cntctfrm_layout_one_column"><?php _e( 'One column', 'contact-form-plugin' ); ?></label>
|
1842 |
<br/>
|
1843 |
+
<input id="cntctfrm_layout_two_columns" name="cntctfrm_layout" type="radio" value="2" <?php if ( $cntctfrm_options['layout'] === 2 ) echo 'checked="checked"' ?>>
|
1844 |
<label for="cntctfrm_layout_two_columns"><?php _e( 'Two columns', 'contact-form-plugin' ); ?></label>
|
1845 |
</fieldset>
|
1846 |
</td>
|
1849 |
<th scope="row"><?php _e( "Submit position", 'contact-form-plugin' ); ?></th>
|
1850 |
<td colspan="2">
|
1851 |
<fieldset>
|
1852 |
+
<input id="cntctfrm_submit_position_left" name="cntctfrm_submit_position" type="radio" value="left" <?php if ( $cntctfrm_options['submit_position'] == 'left' ) echo 'checked="checked"' ?>>
|
1853 |
<label for="cntctfrm_submit_position_left"><?php _e( 'Left', 'contact-form-plugin' ); ?></label>
|
1854 |
<br/>
|
1855 |
+
<input id="cntctfrm_submit_position_right" name="cntctfrm_submit_position" type="radio" value="right" <?php if ( $cntctfrm_options['submit_position'] == 'right' ) echo 'checked="checked"' ?>>
|
1856 |
<label for="cntctfrm_submit_position_right"><?php _e( 'Right', 'contact-form-plugin' ); ?></label>
|
1857 |
</fieldset>
|
1858 |
</td>
|
1935 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_name" value="1" />
|
1936 |
<label for="cntctfrm_tooltip_display_name"><?php _e( "Name", 'contact-form-plugin' ); ?></label>
|
1937 |
</div>
|
1938 |
+
<?php if ( '1' == $cntctfrm_options['display_address_field'] ) { ?>
|
1939 |
<div>
|
1940 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_address" value="1" />
|
1941 |
<label for="cntctfrm_tooltip_display_address"><?php _e( "Address", 'contact-form-plugin' ); ?></label>
|
1945 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_email" value="1" />
|
1946 |
<label for="cntctfrm_tooltip_display_email"><?php _e( "Email address", 'contact-form-plugin' ); ?></label>
|
1947 |
</div>
|
1948 |
+
<?php if ( '1' == $cntctfrm_options['display_phone_field'] ) { ?>
|
1949 |
<div>
|
1950 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_phone" value="1" />
|
1951 |
<label for="cntctfrm_tooltip_display_phone"><?php _e( "Phone Number", 'contact-form-plugin' ); ?></label>
|
1959 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_message" value="1" />
|
1960 |
<label for="cntctfrm_tooltip_display_message"><?php _e( "Message", 'contact-form-plugin' ); ?></label>
|
1961 |
</div>
|
1962 |
+
<?php if ( '1' == $cntctfrm_options['attachment_explanations'] ) { ?>
|
1963 |
<div>
|
1964 |
<input disabled='disabled' type="checkbox" name="cntctfrm_tooltip_display_attachment" value="1" />
|
1965 |
<label for="cntctfrm_tooltip_display_attachment"><?php _e( "Attachment", 'contact-form-plugin' ); ?></label>
|
2091 |
<h3><?php _e( 'Contact Form | Preview', 'contact-form-plugin' ); ?></h3>
|
2092 |
<span class="bws_info"><?php _e( 'Drag the necessary field to sort fields.', 'contact-form-plugin' ); ?></span>
|
2093 |
<?php
|
2094 |
+
$classes = ( $cntctfrm_options['layout'] === 1 ) ? ' cntctfrm_one_column' : ' cntctfrm_two_columns';
|
2095 |
+
$classes .= is_rtl() ? ' cntctfrm_rtl' : ' cntctfrm_ltr';
|
2096 |
?>
|
2097 |
+
<div id="cntctfrm_contact_form" class="cntctfrm_contact_form<?php echo $classes; ?>">
|
2098 |
+
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['form_error']['default']; ?></div>
|
2099 |
<div id="cntctfrm_wrap">
|
2100 |
<?php $cntctfrm_ordered_fields = cntctfrm_get_ordered_fields();
|
2101 |
for ( $i = 1; $i <= 2; $i++ ) {
|
2102 |
+
$column = ( $i == 1 ) ? 'first_column' : 'second_column'; ?>
|
2103 |
+
<ul id="cntctfrm_<?php echo $column; ?>" class="cntctfrm_column" <?php if ( $i == 2 && $cntctfrm_options['layout'] === 1 ) echo 'style="display: none;"'; ?>>
|
2104 |
+
<?php foreach ( $cntctfrm_ordered_fields[ $column ] as $cntctfrm_field ) {
|
2105 |
switch( $cntctfrm_field ) {
|
2106 |
case 'cntctfrm_contact_name':
|
2107 |
+
if ( 1 == $cntctfrm_options['display_name_field'] ) { ?>
|
2108 |
<li class="cntctfrm_field_wrap">
|
2109 |
<div class="cntctfrm_label cntctfrm_label_name">
|
2110 |
+
<label for="cntctfrm_contact_name"><?php echo $cntctfrm_options['name_label']['default']; if ( 1 == $cntctfrm_options['required_name_field'] ) echo '<span class="required"> ' . $cntctfrm_options['required_symbol'] . '</span>'; ?></label>
|
2111 |
</div>
|
2112 |
+
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['name_error']['default']; ?></div>
|
2113 |
<div class="cntctfrm_input cntctfrm_input_name">
|
2114 |
<div class="cntctfrm_drag_wrap"></div>
|
2115 |
<input class="text bws_no_bind_notice" type="text" size="40" value="" name="cntctfrm_contact_name" id="cntctfrm_contact_name" />
|
2118 |
<?php }
|
2119 |
break;
|
2120 |
case 'cntctfrm_contact_address':
|
2121 |
+
if ( 1 == $cntctfrm_options['display_address_field'] ) { ?>
|
2122 |
<li class="cntctfrm_field_wrap">
|
2123 |
<div class="cntctfrm_label cntctfrm_label_address">
|
2124 |
+
<label for="cntctfrm_contact_address"><?php echo $cntctfrm_options['address_label']['default']; if ( 1 == $cntctfrm_options['required_address_field'] ) echo '<span class="required"> ' . $cntctfrm_options['required_symbol'] . '</span>'; ?></label>
|
2125 |
</div>
|
2126 |
+
<?php if ( 1 == $cntctfrm_options['required_address_field'] ) { ?>
|
2127 |
+
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['address_error']['default']; ?></div>
|
2128 |
<?php } ?>
|
2129 |
<div class="cntctfrm_input cntctfrm_input_address">
|
2130 |
<div class="cntctfrm_drag_wrap"></div>
|
2136 |
case 'cntctfrm_contact_email': ?>
|
2137 |
<li class="cntctfrm_field_wrap">
|
2138 |
<div class="cntctfrm_label cntctfrm_label_email">
|
2139 |
+
<label for="cntctfrm_contact_email"><?php echo $cntctfrm_options['email_label']['default']; if ( 1 == $cntctfrm_options['required_email_field'] ) echo '<span class="required"> ' . $cntctfrm_options['required_symbol'] . '</span>'; ?></label>
|
2140 |
</div>
|
2141 |
+
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['email_error']['default']; ?></div>
|
2142 |
<div class="cntctfrm_input cntctfrm_input_email">
|
2143 |
<div class="cntctfrm_drag_wrap"></div>
|
2144 |
<input class="text bws_no_bind_notice" type="text" size="40" value="" name="cntctfrm_contact_email" id="cntctfrm_contact_email" />
|
2146 |
</li>
|
2147 |
<?php break;
|
2148 |
case 'cntctfrm_contact_phone':
|
2149 |
+
if ( 1 == $cntctfrm_options['display_phone_field'] ) { ?>
|
2150 |
<li class="cntctfrm_field_wrap">
|
2151 |
<div class="cntctfrm_label cntctfrm_label_phone">
|
2152 |
+
<label for="cntctfrm_contact_phone"><?php echo $cntctfrm_options['phone_label']['default']; if ( 1 == $cntctfrm_options['required_phone_field'] ) echo '<span class="required"> ' . $cntctfrm_options['required_symbol'] . '</span>'; ?></label>
|
2153 |
</div>
|
2154 |
+
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['phone_error']['default']; ?></div>
|
2155 |
<div class="cntctfrm_input cntctfrm_input_phone">
|
2156 |
<div class="cntctfrm_drag_wrap"></div>
|
2157 |
<input class="text bws_no_bind_notice" type="text" size="40" value="" name="cntctfrm_contact_phone" id="cntctfrm_contact_phone" />
|
2162 |
case 'cntctfrm_contact_subject': ?>
|
2163 |
<li class="cntctfrm_field_wrap">
|
2164 |
<div class="cntctfrm_label cntctfrm_label_subject">
|
2165 |
+
<label for="cntctfrm_contact_subject"><?php echo $cntctfrm_options['subject_label']['default']; if ( 1 == $cntctfrm_options['required_subject_field'] ) echo '<span class="required"> ' . $cntctfrm_options['required_symbol'] . '</span>'; ?></label>
|
2166 |
</div>
|
2167 |
+
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['subject_error']['default']; ?></div>
|
2168 |
<div class="cntctfrm_input cntctfrm_input_subject">
|
2169 |
<div class="cntctfrm_drag_wrap"></div>
|
2170 |
<input class="text bws_no_bind_notice" type="text" size="40" value="" name="cntctfrm_contact_subject" id="cntctfrm_contact_subject" />
|
2174 |
case 'cntctfrm_contact_message': ?>
|
2175 |
<li class="cntctfrm_field_wrap">
|
2176 |
<div class="cntctfrm_label cntctfrm_label_message">
|
2177 |
+
<label for="cntctfrm_contact_message"><?php echo $cntctfrm_options['message_label']['default']; if ( 1 == $cntctfrm_options['required_message_field'] ) echo '<span class="required"> ' . $cntctfrm_options['required_symbol'] . '</span>'; ?></label>
|
2178 |
</div>
|
2179 |
+
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['message_error']['default']; ?></div>
|
2180 |
<div class="cntctfrm_input cntctfrm_input_message">
|
2181 |
<div class="cntctfrm_drag_wrap"></div>
|
2182 |
<textarea class="bws_no_bind_notice" rows="5" cols="30" name="cntctfrm_contact_message" id="cntctfrm_contact_message"></textarea>
|
2184 |
</li>
|
2185 |
<?php break;
|
2186 |
case 'cntctfrm_contact_attachment':
|
2187 |
+
if ( 1 == $cntctfrm_options['attachment'] ) { ?>
|
2188 |
<li class="cntctfrm_field_wrap">
|
2189 |
<div class="cntctfrm_label cntctfrm_label_attachment">
|
2190 |
+
<label for="cntctfrm_contact_attachment"><?php echo $cntctfrm_options['attachment_label']['default']; ?></label>
|
2191 |
</div>
|
2192 |
+
<div class="cntctfrm_error_text hidden"><?php echo $cntctfrm_options['attachment_error']['default']; ?></div>
|
2193 |
<div class="cntctfrm_input cntctfrm_input_attachment">
|
2194 |
<div class="cntctfrm_drag_wrap"></div>
|
2195 |
<input class="bws_no_bind_notice" type="file" name="cntctfrm_contact_attachment" id="cntctfrm_contact_attachment" />
|
2196 |
+
<?php if ( 1 == $cntctfrm_options['attachment_explanations'] ) { ?>
|
2197 |
+
<label class="cntctfrm_contact_attachment_extensions"><?php echo $cntctfrm_options['attachment_tooltip'][ 'default' ]; ?></label>
|
2198 |
<?php } ?>
|
2199 |
</div>
|
2200 |
</li>
|
2201 |
<?php }
|
2202 |
break;
|
2203 |
case 'cntctfrm_contact_send_copy':
|
2204 |
+
if ( 1 == $cntctfrm_options['send_copy'] ) { ?>
|
2205 |
<li class="cntctfrm_field_wrap">
|
2206 |
<div class="cntctfrm_checkbox cntctfrm_checkbox_send_copy">
|
2207 |
<div class="cntctfrm_drag_wrap"></div>
|
2208 |
<input type="checkbox" value="1" name="cntctfrm_contact_send_copy" id="cntctfrm_contact_send_copy" class="bws_no_bind_notice" style="margin: 0;" />
|
2209 |
+
<label for="cntctfrm_contact_send_copy"><?php echo $cntctfrm_options['send_copy_label']['default']; ?></label>
|
2210 |
</div>
|
2211 |
</li>
|
2212 |
<?php }
|
2213 |
break;
|
2214 |
case 'cntctfrm_subscribe':
|
2215 |
if ( array_key_exists( 'subscriber', $cntctfrm_related_plugins ) ) {
|
2216 |
+
if ( ( ! $contact_form_multi_active && ! empty( $cntctfrm_related_plugins['subscriber']['options']['contact_form'] ) ) || ! empty( $cntctfrm_options['display_subscribe'] ) ) { ?>
|
2217 |
<li class="cntctfrm_field_wrap">
|
2218 |
<div class="cntctfrm_checkbox cntctfrm_checkbox_subscribe">
|
2219 |
<div class="cntctfrm_drag_wrap"></div>
|
2228 |
}
|
2229 |
break;
|
2230 |
case 'cntctfrm_captcha':
|
2231 |
+
if ( array_key_exists( 'captcha', $cntctfrm_related_plugins ) ||
|
2232 |
+
array_key_exists( 'google-captcha', $cntctfrm_related_plugins ) ) {
|
2233 |
+
|
2234 |
+
$display_captcha_label = '';
|
2235 |
+
|
2236 |
+
if ( array_key_exists( 'captcha', $cntctfrm_related_plugins ) &&
|
2237 |
+
( ( ! $contact_form_multi_active && ! empty( $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['display_option'] ] ) ) || ! empty( $cntctfrm_options['display_captcha'] ) ) ) {
|
2238 |
|
2239 |
+
$display_captcha = true;
|
2240 |
+
|
2241 |
+
$captcha_label = $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['label'] ];
|
2242 |
if ( ! empty( $captcha_label ) ) {
|
2243 |
+
$captcha_required_symbol = sprintf( ' <span class="required">%s</span>', ( isset( $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['required_symbol'] ] ) ) ? $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['required_symbol'] ] : '' );
|
2244 |
+
$display_captcha_label = $captcha_label . $captcha_required_symbol;
|
2245 |
+
}
|
2246 |
+
}
|
2247 |
+
|
2248 |
+
if ( array_key_exists( 'google-captcha', $cntctfrm_related_plugins ) &&
|
2249 |
+
( ( ! $contact_form_multi_active && ! empty( $cntctfrm_related_plugins['google-captcha']['options']['contact_form'] ) ) || ( $contact_form_multi_active && ! empty( $cntctfrm_options['display_google_captcha'] ) ) ) )
|
2250 |
+
$display_google_captcha = true;
|
2251 |
+
|
2252 |
+
|
2253 |
+
if ( isset( $display_google_captcha ) || isset( $display_captcha ) ) { ?>
|
2254 |
<li class="cntctfrm_field_wrap">
|
2255 |
<div class="cntctfrm_label cntctfrm_label_captcha">
|
2256 |
+
<label><?php echo $display_captcha_label; ?></label>
|
|
|
|
|
|
|
|
|
|
|
2257 |
</div>
|
2258 |
+
<?php if ( isset( $display_captcha ) ) { ?>
|
2259 |
+
<div class="cntctfrm_input cntctfrm_input_captcha">
|
2260 |
+
<div class="cntctfrm_drag_wrap"></div>
|
2261 |
+
<img src="<?php echo plugins_url( 'images/cptch.png', __FILE__ ); ?>">
|
2262 |
+
</div>
|
2263 |
+
<?php }
|
2264 |
+
if ( isset( $display_google_captcha ) ) { ?>
|
2265 |
+
<div class="cntctfrm_input cntctfrm_input_captcha">
|
2266 |
+
<div class="cntctfrm_drag_wrap"></div>
|
2267 |
+
<img src="<?php echo plugins_url( 'images/google-captcha.png', __FILE__ ); ?>">
|
2268 |
+
</div>
|
2269 |
+
<?php } ?>
|
2270 |
</li>
|
2271 |
<?php }
|
2272 |
}
|
2289 |
'rtl' => array(
|
2290 |
'left' => 2,
|
2291 |
'right' => 1
|
2292 |
+
)
|
2293 |
);
|
2294 |
for ( $i = 1; $i <= 2; $i++ ) {
|
2295 |
+
$column = ( $i == 1 ) ? 'first_column' : 'second_column'; ?>
|
2296 |
+
<div id="cntctfrm_submit_<?php echo $column; ?>" class="cntctfrm_column">
|
2297 |
+
<?php if ( $i == $submit_position_value[ $cntctfrm_direction ][ $cntctfrm_options['submit_position'] ] ) { ?>
|
2298 |
+
<div class="cntctfrm_input cntctfrm_input_submit" style="<?php printf( 'text-align: %s !important;', $cntctfrm_options['submit_position'] ); ?>">
|
2299 |
+
<input type="button" value="<?php echo $cntctfrm_options['submit_label']['default']; ?>" class="bws_no_bind_notice" style="cursor: pointer; margin: 0; text-align: center;" />
|
2300 |
</div>
|
2301 |
<?php } ?>
|
2302 |
</div>
|
2315 |
</div>
|
2316 |
<div class="clear"></div>
|
2317 |
<input type="hidden" name="cntctfrm_form_appearance_submit" value="submit" />
|
2318 |
+
<input type="hidden" id="cntctfrm_layout_first_column" name="cntctfrm_layout_first_column" value="<?php echo implode( ',', $cntctfrm_options['order_fields']['first_column'] ); ?>" />
|
2319 |
+
<input type="hidden" id="cntctfrm_layout_second_column" name="cntctfrm_layout_second_column" value="<?php echo implode( ',', $cntctfrm_options['order_fields']['second_column'] ); ?>" />
|
2320 |
<p class="submit">
|
2321 |
<input id="bws-submit-button" type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'contact-form-plugin' ); ?>" />
|
2322 |
</p>
|
2345 |
|
2346 |
$contact_form_multi_active = cntctfrm_check_cf_multi_active();
|
2347 |
|
2348 |
+
if ( ! wp_script_is( 'cntctfrm_frontend_script', 'registered' ) )
|
2349 |
wp_register_script( 'cntctfrm_frontend_script', plugins_url( 'js/cntctfrm.js', __FILE__ ), array( 'jquery' ), false, true );
|
2350 |
|
2351 |
$cntctfrm_form_count = empty( $cntctfrm_form_count ) ? 1 : ++$cntctfrm_form_count;
|
2426 |
if ( true === $cntctfrm_result && $cntctfrm_form_count == $form_submited ) {
|
2427 |
$_SESSION['cntctfrm_send_mail'] = true;
|
2428 |
|
2429 |
+
if ( 1 == $cntctfrm_options['action_after_send'] )
|
2430 |
+
$content .= '<div id="cntctfrm_contact_form' . $form_countid . '"><div id="cntctfrm_thanks">' . $cntctfrm_options['thank_text'][ $lang ] . '</div></div>';
|
2431 |
else
|
2432 |
+
$content .= "<script type='text/javascript'>window.location.href = '" . $cntctfrm_options['redirect_url'] . "';</script>";
|
2433 |
|
2434 |
} elseif ( false === $cntctfrm_result && $cntctfrm_form_count == $form_submited ) {
|
2435 |
/* If email not be delivered */
|
2439 |
if ( true !== $cntctfrm_result || $cntctfrm_form_count != $form_submited ) {
|
2440 |
$_SESSION['cntctfrm_send_mail'] = false;
|
2441 |
|
2442 |
+
$classes = ( $cntctfrm_options['layout'] === 1 ) ? ' cntctfrm_one_column' : ' cntctfrm_two_columns';
|
2443 |
+
$classes .= is_rtl() ? ' cntctfrm_rtl' : ' cntctfrm_ltr';
|
2444 |
|
2445 |
/* Output form */
|
2446 |
+
$content .= '<form method="post" id="cntctfrm_contact_form' . $form_countid . '" class="cntctfrm_contact_form' . $classes . '"';
|
2447 |
$content .= ' action="' . $page_url . $form_countid . '" enctype="multipart/form-data">';
|
2448 |
if ( isset( $cntctfrm_error_message['error_form'] ) && $cntctfrm_form_count == $form_submited ) {
|
2449 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_form'] . '</div>';
|
2451 |
|
2452 |
$cntctfrm_ordered_fields = cntctfrm_get_ordered_fields();
|
2453 |
|
2454 |
+
for ( $i = 1; $i <= $cntctfrm_options['layout']; $i++ ) {
|
2455 |
|
2456 |
+
$column = ( $i == 1 ) ? 'first_column' : 'second_column';
|
2457 |
+
$content .= '<div id="cntctfrm_' . $column . '" class="cntctfrm_column">';
|
2458 |
|
2459 |
+
foreach ( $cntctfrm_ordered_fields[ $column ] as $cntctfrm_field ) {
|
2460 |
switch( $cntctfrm_field ) {
|
2461 |
case 'cntctfrm_contact_name':
|
2462 |
+
if ( 1 == $cntctfrm_options['display_name_field'] ) {
|
2463 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_name_wrap">';
|
2464 |
$content .= '<div class="cntctfrm_label cntctfrm_label_name">
|
2465 |
+
<label for="cntctfrm_contact_name' . $form_countid . '">' . $cntctfrm_options['name_label'][ $lang ] . ( $cntctfrm_options['required_name_field'] == 1 ? ' <span class="required">' . $cntctfrm_options['required_symbol'] . '</span></label>' : '</label>' );
|
2466 |
$content .= '</div>';
|
2467 |
if ( isset( $cntctfrm_error_message['error_name'] ) && $cntctfrm_form_count == $form_submited ) {
|
2468 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_name'] . '</div>';
|
2474 |
}
|
2475 |
break;
|
2476 |
case 'cntctfrm_contact_address':
|
2477 |
+
if ( 1 == $cntctfrm_options['display_address_field'] ) {
|
2478 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_address_wrap">';
|
2479 |
$content .= '<div class="cntctfrm_label cntctfrm_label_address">
|
2480 |
+
<label for="cntctfrm_contact_address' . $form_countid . '">' . $cntctfrm_options['address_label'][ $lang ] . ( $cntctfrm_options['required_address_field'] == 1 ? ' <span class="required">' . $cntctfrm_options['required_symbol'] . '</span></label>' : '</label>' ) . '</div>';
|
2481 |
if ( isset( $cntctfrm_error_message['error_address'] ) && $cntctfrm_form_count == $form_submited ) {
|
2482 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_address'] . '</div>';
|
2483 |
}
|
2490 |
case 'cntctfrm_contact_email':
|
2491 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_email_wrap">';
|
2492 |
$content .= '<div class="cntctfrm_label cntctfrm_label_email">
|
2493 |
+
<label for="cntctfrm_contact_email' . $form_countid . '">' . $cntctfrm_options['email_label'][ $lang ] . ( $cntctfrm_options['required_email_field'] == 1 ? ' <span class="required">' . $cntctfrm_options['required_symbol'] . '</span></label>' : '</label>' ) . '
|
2494 |
</div>';
|
2495 |
if ( isset( $cntctfrm_error_message['error_email'] ) && $cntctfrm_form_count == $form_submited ) {
|
2496 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_email'] . '</div>';
|
2501 |
$content .= '</div>';
|
2502 |
break;
|
2503 |
case 'cntctfrm_contact_phone':
|
2504 |
+
if ( 1 == $cntctfrm_options['display_phone_field'] ) {
|
2505 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_phone_wrap">';
|
2506 |
$content .= '<div class="cntctfrm_label cntctfrm_label_phone">
|
2507 |
+
<label for="cntctfrm_contact_phone' . $form_countid . '">' . $cntctfrm_options['phone_label'][ $lang ] . ( $cntctfrm_options['required_phone_field'] == 1 ? ' <span class="required">' . $cntctfrm_options['required_symbol'] . '</span></label>' : '</label>' ) . '
|
2508 |
</div>';
|
2509 |
if ( isset( $cntctfrm_error_message['error_phone'] ) && $cntctfrm_form_count == $form_submited ) {
|
2510 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_phone'] . '</div>';
|
2518 |
case 'cntctfrm_contact_subject':
|
2519 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_subject_wrap">';
|
2520 |
$content .= '<div class="cntctfrm_label cntctfrm_label_subject">
|
2521 |
+
<label for="cntctfrm_contact_subject' . $form_countid . '">' . $cntctfrm_options['subject_label'][ $lang ] . ( $cntctfrm_options['required_subject_field'] == 1 ? ' <span class="required">' . $cntctfrm_options['required_symbol'] . '</span></label>' : '</label>' ) . '
|
2522 |
</div>';
|
2523 |
if ( isset( $cntctfrm_error_message['error_subject'] ) && $cntctfrm_form_count == $form_submited ) {
|
2524 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_subject'] . '</div>';
|
2531 |
case 'cntctfrm_contact_message':
|
2532 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_message_wrap">';
|
2533 |
$content .= '<div class="cntctfrm_label cntctfrm_label_message">
|
2534 |
+
<label for="cntctfrm_contact_message' . $form_countid . '">' . $cntctfrm_options['message_label'][ $lang ] . ( $cntctfrm_options['required_message_field'] == 1 ? ' <span class="required">' . $cntctfrm_options['required_symbol'] . '</span></label>' : '</label>' ) . '
|
2535 |
</div>';
|
2536 |
if ( isset( $cntctfrm_error_message['error_message'] ) && $cntctfrm_form_count == $form_submited ) {
|
2537 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_message'] . '</div>';
|
2542 |
$content .= '</div>';
|
2543 |
break;
|
2544 |
case 'cntctfrm_contact_attachment':
|
2545 |
+
if ( 1 == $cntctfrm_options['attachment'] ) {
|
2546 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_attachment_wrap">';
|
2547 |
$content .= '<div class="cntctfrm_label cntctfrm_label_attachment">
|
2548 |
+
<label for="cntctfrm_contact_attachment' . $form_countid . '">' . $cntctfrm_options['attachment_label'][ $lang ] . '</label>
|
2549 |
</div>';
|
2550 |
if ( isset( $cntctfrm_error_message['error_attachment'] ) && $cntctfrm_form_count == $form_submited ) {
|
2551 |
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_attachment'] . '</div>';
|
2552 |
}
|
2553 |
$content .= '<div class="cntctfrm_input cntctfrm_input_attachment">
|
2554 |
<input type="file" name="cntctfrm_contact_attachment" id="cntctfrm_contact_attachment' . $form_countid . '"' . ( isset( $cntctfrm_error_message['error_attachment'] ) ? "class='error'": "" ) . ' />';
|
2555 |
+
if ( 1 == $cntctfrm_options['attachment_explanations'] ) {
|
2556 |
+
$content .= '<label class="cntctfrm_contact_attachment_extensions"><br />' . $cntctfrm_options['attachment_tooltip'][ $lang ] . '</label>';
|
2557 |
}
|
2558 |
$content .= '</div>';
|
2559 |
$content .= '</div>';
|
2560 |
}
|
2561 |
break;
|
2562 |
case 'cntctfrm_contact_send_copy':
|
2563 |
+
if ( 1 == $cntctfrm_options['send_copy'] ) {
|
2564 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_attachment_wrap">';
|
2565 |
$content .= '<div class="cntctfrm_checkbox cntctfrm_checkbox_send_copy">
|
2566 |
<input type="checkbox" value="1" name="cntctfrm_contact_send_copy" id="cntctfrm_contact_send_copy"' . ( $send_copy == '1' ? ' checked="checked" ' : "" ) . ' />
|
2567 |
+
<label for="cntctfrm_contact_send_copy">' . $cntctfrm_options['send_copy_label'][ $lang ] . '</label>';
|
2568 |
$content .= '</div>';
|
2569 |
$content .= '</div>';
|
2570 |
}
|
2571 |
break;
|
2572 |
case 'cntctfrm_subscribe':
|
2573 |
+
if ( has_filter( 'sbscrbr_cntctfrm_checkbox_add' ) && ( ( ! $contact_form_multi_active && ! empty( $cntctfrm_related_plugins['subscriber']['options']['contact_form'] ) ) || ! empty( $cntctfrm_options['display_subscribe'] ) ) ) {
|
2574 |
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_checkbox_subscribe_wrap">';
|
2575 |
$content .= '<div class="cntctfrm_checkbox cntctfrm_checkbox_subscribe">';
|
2576 |
$cntctfrm_sbscrbr_checkbox = apply_filters( 'sbscrbr_cntctfrm_checkbox_add', array(
|
2584 |
}
|
2585 |
break;
|
2586 |
case 'cntctfrm_captcha':
|
2587 |
+
$removed_filters = cntctfrm_handle_captcha_filters( 'remove_filters' );
|
2588 |
if ( has_filter( 'cntctfrm_display_captcha' ) ) {
|
2589 |
+
$display_captcha_label = '';
|
2590 |
+
if ( array_key_exists( 'captcha', $cntctfrm_related_plugins ) && ( ( ! $contact_form_multi_active && ! empty( $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['display_option'] ] ) ) || ( $contact_form_multi_active && ! empty( $cntctfrm_options['display_captcha'] ) ) ) ) {
|
2591 |
$display_captcha = true;
|
2592 |
+
}
|
2593 |
+
if ( array_key_exists( 'google-captcha', $cntctfrm_related_plugins ) && ( ( ! $contact_form_multi_active && ! empty( $cntctfrm_related_plugins['google-captcha']['options']['contact_form'] ) ) || ( $contact_form_multi_active && ! empty( $cntctfrm_options['display_google_captcha'] ) ) ) ) {
|
2594 |
$display_google_captcha = true;
|
2595 |
}
|
|
|
|
|
2596 |
|
2597 |
+
if ( ! empty( $display_captcha ) ) {
|
2598 |
if ( array_key_exists( 'captcha', $cntctfrm_related_plugins ) ) {
|
2599 |
$captcha_label = $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['label'] ];
|
2600 |
+
if ( ! empty( $captcha_label ) ) {
|
2601 |
+
$captcha_required_symbol = sprintf( '<span class="required">%s</span>', ( ! empty( $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['required_symbol'] ] ) ) ? $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['required_symbol'] ] : '' );
|
2602 |
+
$display_captcha_label = $captcha_label . $captcha_required_symbol;
|
2603 |
+
}
|
|
|
|
|
|
|
2604 |
}
|
2605 |
}
|
2606 |
+
|
2607 |
if ( ! empty( $display_captcha ) || ! empty( $display_google_captcha ) ) {
|
2608 |
+
$content .= '<div class="cntctfrm_field_wrap cntctfrm_field_captcha_wrap">';
|
2609 |
+
$content .= '<div class="cntctfrm_label cntctfrm_label_captcha">
|
2610 |
+
<label>' . $display_captcha_label . '</label>
|
2611 |
+
</div>';
|
2612 |
+
if ( isset( $cntctfrm_error_message['error_captcha'] ) && $cntctfrm_form_count == $form_submited )
|
2613 |
+
$content .= '<div class="cntctfrm_error_text">' . $cntctfrm_error_message['error_captcha'] . '</div>';
|
2614 |
$content .= '<div class="cntctfrm_input cntctfrm_input_captcha">';
|
2615 |
+
$content .= apply_filters( 'cntctfrm_display_captcha', ( $cntctfrm_form_count == $form_submited ) ? $cntctfrm_error_message : false, '', 'bws_contact' );
|
2616 |
$content .= '</div>';
|
2617 |
$content .= '</div>';
|
2618 |
}
|
2619 |
}
|
2620 |
+
cntctfrm_handle_captcha_filters( 'add_filters', $removed_filters );
|
2621 |
break;
|
2622 |
default:
|
2623 |
break;
|
2643 |
|
2644 |
$content .= '<div class="cntctfrm_submit_wrap">';
|
2645 |
for ( $i = 1; $i <= 2; $i++ ) {
|
2646 |
+
$column = ( $i == 1 ) ? 'first_column' : 'second_column';
|
2647 |
+
$content .= '<div id="cntctfrm_submit_' . $column . '" class="cntctfrm_column">';
|
2648 |
+
if ( $i == $submit_position_value[ $cntctfrm_direction ][ $cntctfrm_options['submit_position'] ] ) {
|
2649 |
+
$content .= '<div class="cntctfrm_input cntctfrm_input_submit" style="text-align: ' . $cntctfrm_options['submit_position'] . ' !important;">';
|
2650 |
if ( isset( $atts['id'] ) )
|
2651 |
$content .= '<input type="hidden" value="' . esc_attr( $atts['id'] ) . '" name="cntctfrmmlt_shortcode_id">';
|
2652 |
$content .= '<input type="hidden" value="send" name="cntctfrm_contact_action"><input type="hidden" value="Version: 3.30" />
|
2653 |
<input type="hidden" value="' . esc_attr( $lang ) . '" name="cntctfrm_language">
|
2654 |
<input type="hidden" value="' . $cntctfrm_form_count . '" name="cntctfrm_form_submited">
|
2655 |
<input type="hidden" value="' . $options_name . '" name="cntctfrm_options_name">
|
2656 |
+
<input type="submit" value="' . $cntctfrm_options['submit_label'][ $lang ] . '" class="cntctfrm_contact_submit" />
|
2657 |
</div>';
|
2658 |
}
|
2659 |
$content .= '</div>';
|
2666 |
}
|
2667 |
}
|
2668 |
|
2669 |
+
/**
|
2670 |
+
* add or remove filters for compatibility with Captcha and Google Captcha
|
2671 |
+
* $action string can be 'remove_filters' or 'add_filters'
|
2672 |
+
* $removed_filters array of existed filters (returned from this function when 'remove_filters' action)
|
2673 |
+
* @return array of existed filters for 'remove_filters' or 'false' for 'add_filters'
|
2674 |
+
*/
|
2675 |
+
if ( ! function_exists( 'cntctfrm_handle_captcha_filters' ) ) {
|
2676 |
+
function cntctfrm_handle_captcha_filters( $action, $removed_filters = false ) {
|
2677 |
global $cntctfrm_options, $cntctfrm_related_plugins;
|
2678 |
|
2679 |
+
if ( 'remove_filters' == $action ) {
|
|
|
2680 |
|
2681 |
+
if ( empty( $cntctfrm_related_plugins ) )
|
2682 |
+
cntctfrm_related_plugins();
|
2683 |
|
2684 |
+
$contact_form_multi_active = cntctfrm_check_cf_multi_active();
|
|
|
|
|
|
|
2685 |
|
2686 |
+
$removed_filters = $remove_captcha = array();
|
2687 |
+
|
2688 |
+
if ( ! ( array_key_exists( 'captcha', $cntctfrm_related_plugins ) && ( ( ! $contact_form_multi_active && ! empty( $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['display_option'] ] ) ) || ( $contact_form_multi_active && ! empty( $cntctfrm_options['display_captcha'] ) ) ) ) )
|
2689 |
+
$remove_captcha[] = 'captcha';
|
2690 |
+
|
2691 |
+
if ( ! ( array_key_exists( 'google-captcha', $cntctfrm_related_plugins ) && ( ( ! $contact_form_multi_active && ! empty( $cntctfrm_related_plugins['google-captcha']['options']['contact_form'] ) ) || ( $contact_form_multi_active && ! empty( $cntctfrm_options['display_google_captcha'] ) ) ) ) )
|
2692 |
+
$remove_captcha[] = 'google-captcha';
|
2693 |
+
|
2694 |
$filters = array(
|
2695 |
'google-captcha' => array(
|
2696 |
'gglcptch_cf_display' => 'gglcptch_recaptcha_check',
|
2703 |
)
|
2704 |
);
|
2705 |
|
|
|
|
|
|
|
|
|
|
|
2706 |
if ( ! empty( $remove_captcha ) ) {
|
2707 |
foreach ( $remove_captcha as $remove ) {
|
|
|
2708 |
foreach ( $filters[ $remove ] as $display_filter => $check_filter ) {
|
2709 |
if ( has_filter( 'cntctfrm_display_captcha', $display_filter ) ) {
|
2710 |
remove_filter( 'cntctfrm_display_captcha', $display_filter );
|
2720 |
}
|
2721 |
return $removed_filters;
|
2722 |
} elseif ( 'add_filters' == $action && ! empty( $removed_filters ) ) {
|
2723 |
+
foreach ( $removed_filters as $function_array ) {
|
2724 |
+
foreach ( $function_array as $tag => $function ) {
|
2725 |
add_filter( $tag, $function );
|
2726 |
}
|
2727 |
}
|
2743 |
/* If it is good */
|
2744 |
if ( true === $cntctfrm_result ) {
|
2745 |
$_SESSION['cntctfrm_send_mail'] = true;
|
2746 |
+
if ( 0 == $cntctfrm_options['action_after_send'] ) {
|
2747 |
+
wp_redirect( $cntctfrm_options['redirect_url'] );
|
2748 |
exit;
|
2749 |
}
|
2750 |
}
|
2758 |
global $cntctfrm_error_message, $cntctfrm_options, $cntctfrm_related_plugins;
|
2759 |
|
2760 |
if ( empty( $cntctfrm_related_plugins ) )
|
2761 |
+
cntctfrm_related_plugins();
|
2762 |
|
2763 |
$contact_form_multi_active = cntctfrm_check_cf_multi_active();
|
2764 |
|
2765 |
+
$removed_filters = cntctfrm_handle_captcha_filters( 'remove_filters' );
|
2766 |
|
2767 |
$language = isset( $_POST['cntctfrm_language'] ) ? $_POST['cntctfrm_language'] : 'default';
|
2768 |
$cntctfrm_path_of_uploaded_file = $cntctfrm_result = "";
|
2783 |
$phone = strip_tags( preg_replace( '/<[^>]*>/', '', preg_replace( '/<script.*<\/[^>]*>/', '', $phone ) ) );
|
2784 |
|
2785 |
/* check language and replace with en default if need */
|
2786 |
+
if ( ! in_array( $language, $cntctfrm_options['language'] ) ) {
|
2787 |
foreach ( $cntctfrm_options as $key => $value ) {
|
2788 |
if ( is_array( $value ) && array_key_exists( 'default', $value ) && ( ! array_key_exists( $language, $value ) || ( isset( $cntctfrm_options[ $key ][ $language ] ) && $cntctfrm_options[ $key ][ $language ] == '' ) ) ) {
|
2789 |
$cntctfrm_options[ $key ][ $language ] = $cntctfrm_options[ $key ]['default'];
|
2791 |
}
|
2792 |
}
|
2793 |
|
2794 |
+
if ( 1 == $cntctfrm_options['required_name_field'] && 1 == $cntctfrm_options['display_name_field'] )
|
2795 |
+
$cntctfrm_error_message['error_name'] = $cntctfrm_options['name_error'][ $language ];
|
2796 |
+
if ( 1 == $cntctfrm_options['required_address_field'] && 1 == $cntctfrm_options['display_address_field'] )
|
2797 |
+
$cntctfrm_error_message['error_address'] = $cntctfrm_options['address_error'][ $language ];
|
2798 |
+
if ( 1 == $cntctfrm_options['required_email_field'] )
|
2799 |
+
$cntctfrm_error_message['error_email'] = $cntctfrm_options['email_error'][ $language ];
|
2800 |
+
if ( 1 == $cntctfrm_options['required_subject_field'] )
|
2801 |
+
$cntctfrm_error_message['error_subject'] = $cntctfrm_options['subject_error'][ $language ];
|
2802 |
+
if ( 1 == $cntctfrm_options['required_message_field'] )
|
2803 |
+
$cntctfrm_error_message['error_message'] = $cntctfrm_options['message_error'][ $language ];
|
2804 |
+
if ( 1 == $cntctfrm_options['required_phone_field'] && 1 == $cntctfrm_options['display_phone_field'] )
|
2805 |
+
$cntctfrm_error_message['error_phone'] = $cntctfrm_options['phone_error'][ $language ];
|
2806 |
+
$cntctfrm_error_message['error_form'] = $cntctfrm_options['form_error'][ $language ];
|
2807 |
+
if ( 1 == $cntctfrm_options['attachment'] ) {
|
2808 |
global $cntctfrm_path_of_uploaded_file, $cntctfrm_mime_type;
|
2809 |
$cntctfrm_mime_type= array(
|
2810 |
'html'=>'text/html',
|
2837 |
'aar'=>'application/sb-replay',
|
2838 |
'sce'=>'application/sb-scenario'
|
2839 |
);
|
2840 |
+
$cntctfrm_error_message['error_attachment'] = $cntctfrm_options['attachment_error'][ $language ];
|
2841 |
}
|
2842 |
/* Check information wich was input in fields */
|
2843 |
+
if ( 1 == $cntctfrm_options['display_name_field'] && 1 == $cntctfrm_options['required_name_field'] && "" != $name )
|
2844 |
unset( $cntctfrm_error_message['error_name'] );
|
2845 |
+
if ( 1 == $cntctfrm_options['display_address_field'] && 1 == $cntctfrm_options['required_address_field'] && "" != $address )
|
2846 |
unset( $cntctfrm_error_message['error_address'] );
|
2847 |
+
if ( 1 == $cntctfrm_options['required_email_field'] && "" != $email && is_email( trim( stripslashes( $email ) ) ) )
|
2848 |
unset( $cntctfrm_error_message['error_email'] );
|
2849 |
+
if ( 1 == $cntctfrm_options['display_phone_field'] && 1 == $cntctfrm_options['required_phone_field'] && "" != $phone )
|
2850 |
unset( $cntctfrm_error_message['error_phone'] );
|
2851 |
+
if ( 1 == $cntctfrm_options['required_subject_field'] && "" != $subject )
|
2852 |
unset( $cntctfrm_error_message['error_subject'] );
|
2853 |
+
if ( 1 == $cntctfrm_options['required_message_field'] && "" != $message )
|
2854 |
unset( $cntctfrm_error_message['error_message'] );
|
2855 |
|
2856 |
/* If captcha plugin exists */
|
2857 |
$result = true;
|
2858 |
+
if ( has_filter( 'cntctfrm_check_form' ) )
|
2859 |
$result = apply_filters( 'cntctfrm_check_form', true );
|
2860 |
|
2861 |
+
cntctfrm_handle_captcha_filters( 'add_filters', $removed_filters );
|
2862 |
|
2863 |
if ( false === $result ) { /* for CAPTCHA older than PRO - v1.0.7, PLUS - v1.1.0 v FREE - 1.2.5 */
|
2864 |
+
$cntctfrm_error_message['error_captcha'] = $cntctfrm_options['captcha_error'][ $language ];
|
2865 |
+
} else if ( ! empty( $result ) && ( is_string( $result ) || is_wp_error( $result ) ) ) {
|
2866 |
+
$cntctfrm_error_message['error_captcha'] = is_string( $result ) ? $result : $result->get_error_message();
|
2867 |
}
|
2868 |
+
|
2869 |
if ( isset( $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) && "" != $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) {
|
2870 |
+
|
2871 |
+
$new_filename = 'cntctfrm_' . md5( sanitize_file_name( $_FILES["cntctfrm_contact_attachment"]["name"] ) . time() . $email . mt_rand() ) . '_' . sanitize_file_name( $_FILES["cntctfrm_contact_attachment"]["name"] );
|
2872 |
+
|
2873 |
if ( is_multisite() ) {
|
2874 |
if ( defined('UPLOADS') ) {
|
2875 |
if ( ! is_dir( ABSPATH . UPLOADS ) ) {
|
2876 |
wp_mkdir_p( ABSPATH . UPLOADS );
|
2877 |
}
|
2878 |
+
$cntctfrm_path_of_uploaded_file = ABSPATH . UPLOADS . $new_filename;
|
2879 |
} else if ( defined( 'BLOGUPLOADDIR' ) ) {
|
2880 |
if ( ! is_dir( BLOGUPLOADDIR ) ) {
|
2881 |
wp_mkdir_p( BLOGUPLOADDIR );
|
2882 |
}
|
2883 |
+
$cntctfrm_path_of_uploaded_file = BLOGUPLOADDIR . $new_filename;
|
2884 |
} else {
|
2885 |
$uploads = wp_upload_dir();
|
2886 |
if ( ! isset( $uploads['path'] ) && isset( $uploads['error'] ) )
|
2887 |
$cntctfrm_error_message['error_attachment'] = $uploads['error'];
|
2888 |
else
|
2889 |
+
$cntctfrm_path_of_uploaded_file = $uploads['path'] . "/" . $new_filename;
|
2890 |
}
|
2891 |
} else {
|
2892 |
$uploads = wp_upload_dir();
|
2893 |
if ( ! isset( $uploads['path'] ) && isset( $uploads['error'] ) )
|
2894 |
$cntctfrm_error_message['error_attachment'] = $uploads['error'];
|
2895 |
else
|
2896 |
+
$cntctfrm_path_of_uploaded_file = $uploads['path'] . "/" . $new_filename;
|
2897 |
}
|
2898 |
|
2899 |
$tmp_path = $_FILES["cntctfrm_contact_attachment"]["tmp_name"];
|
2921 |
$upload_max_size *= 1024;
|
2922 |
break;
|
2923 |
}
|
2924 |
+
if ( isset( $_FILES["cntctfrm_contact_attachment"]["size"] ) && $_FILES["cntctfrm_contact_attachment"]["size"] <= $upload_max_size ) {
|
2925 |
+
$cntctfrm_error_message['error_attachment'] = $cntctfrm_options['attachment_move_error'][ $language ];
|
|
|
2926 |
} else {
|
2927 |
+
$cntctfrm_error_message['error_attachment'] = $cntctfrm_options['attachment_size_error'][ $language ];
|
2928 |
}
|
2929 |
}
|
2930 |
} else {
|
2931 |
+
$cntctfrm_error_message['error_attachment'] = $cntctfrm_options['attachment_upload_error'][ $language ];
|
2932 |
}
|
2933 |
}
|
2934 |
} else {
|
2950 |
/* If all is good - send mail */
|
2951 |
$cntctfrm_result = cntctfrm_send_mail();
|
2952 |
|
2953 |
+
$save_emails = false;
|
2954 |
if ( ! $contact_form_multi_active && array_key_exists( 'contact-form-to-db' , $cntctfrm_related_plugins ) )
|
2955 |
$save_emails = ! empty( $cntctfrm_related_plugins['contact-form-to-db']['options'][ $cntctfrm_related_plugins['contact-form-to-db']['save_option'] ] );
|
2956 |
else
|
2957 |
$save_emails = ! empty( $cntctfrm_options['save_email_to_db'] );
|
2958 |
+
|
2959 |
if ( $save_emails )
|
2960 |
do_action( 'cntctfrm_check_dispatch', $cntctfrm_result );
|
2961 |
}
|
2964 |
}
|
2965 |
|
2966 |
/* Send mail function */
|
2967 |
+
if ( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
2968 |
function cntctfrm_send_mail() {
|
2969 |
global $cntctfrm_options, $cntctfrm_path_of_uploaded_file, $wp_version, $wpdb;
|
2970 |
$to = $headers = "";
|
2989 |
if ( isset( $_SESSION['cntctfrm_send_mail'] ) && true == $_SESSION['cntctfrm_send_mail'] )
|
2990 |
return true;
|
2991 |
|
2992 |
+
if ( 'user' == $cntctfrm_options['select_email'] ) {
|
2993 |
+
if ( false !== $user = get_user_by( 'login', $cntctfrm_options['user_email'] ) )
|
2994 |
$to = $user->user_email;
|
2995 |
+
} elseif ( $cntctfrm_options['select_email'] == 'custom' ) {
|
2996 |
+
$to = $cntctfrm_options['custom_email'];
|
2997 |
}
|
2998 |
|
2999 |
+
/* If email options are not certain choose admin email */
|
3000 |
+
if ( "" == $to )
|
3001 |
+
$to = get_option( "admin_email" );
|
|
|
3002 |
|
3003 |
if ( "" != $to ) {
|
3004 |
+
$user_info_string = $userdomain = '';
|
3005 |
$attachments = array();
|
3006 |
|
3007 |
if ( 'on' == strtolower( getenv('HTTPS') ) ) {
|
3010 |
$form_action_url = esc_url( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
|
3011 |
}
|
3012 |
|
3013 |
+
if ( 1 == $cntctfrm_options['display_add_info'] ) {
|
3014 |
$cntctfrm_remote_addr = filter_var( $_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP );
|
3015 |
$userdomain = @gethostbyaddr( $cntctfrm_remote_addr );
|
3016 |
+
if ( 1 == $cntctfrm_options['display_add_info'] ||
|
3017 |
+
1 == $cntctfrm_options['display_sent_from'] ||
|
3018 |
+
1 == $cntctfrm_options['display_coming_from'] ||
|
3019 |
+
1 == $cntctfrm_options['display_user_agent'] ) {
|
3020 |
+
if ( 1 == $cntctfrm_options['html_email'] )
|
3021 |
$user_info_string .= '<tr><td><br /></td><td><br /></td></tr>';
|
3022 |
}
|
3023 |
+
if ( 1 == $cntctfrm_options['display_sent_from'] ) {
|
3024 |
+
if ( 1 == $cntctfrm_options['html_email'] )
|
3025 |
$user_info_string .= '<tr><td>' . __( 'Sent from (ip address)', 'contact-form-plugin' ) . ':</td><td>' . $cntctfrm_remote_addr . " ( " . $userdomain . " )" . '</td></tr>';
|
3026 |
else
|
3027 |
$user_info_string .= __( 'Sent from (ip address)', 'contact-form-plugin' ) . ': ' . $cntctfrm_remote_addr . " ( " . $userdomain . " )" . "\n";
|
3028 |
}
|
3029 |
+
if ( 1 == $cntctfrm_options['display_date_time'] ) {
|
3030 |
+
if ( 1 == $cntctfrm_options['html_email'] )
|
3031 |
$user_info_string .= '<tr><td>' . __('Date/Time', 'contact-form-plugin') . ':</td><td>' . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), strtotime( current_time( 'mysql' ) ) ) . '</td></tr>';
|
3032 |
else
|
3033 |
$user_info_string .= __( 'Date/Time', 'contact-form-plugin' ) . ': ' . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), strtotime( current_time( 'mysql' ) ) ) . "\n";
|
3034 |
}
|
3035 |
+
if ( 1 == $cntctfrm_options['display_coming_from'] ) {
|
3036 |
+
if ( 1 == $cntctfrm_options['html_email'] )
|
3037 |
$user_info_string .= '<tr><td>' . __( 'Sent from (referer)', 'contact-form-plugin' ) . ':</td><td>' . $form_action_url . '</td></tr>';
|
3038 |
else
|
3039 |
$user_info_string .= __( 'Sent from (referer)', 'contact-form-plugin' ) . ': ' . $form_action_url . "\n";
|
3040 |
}
|
3041 |
+
if ( 1 == $cntctfrm_options['display_user_agent'] ) {
|
3042 |
+
if ( 1 == $cntctfrm_options['html_email'] )
|
3043 |
$user_info_string .= '<tr><td>' . __( 'Using (user agent)', 'contact-form-plugin' ) . ':</td><td>' . $user_agent . '</td></tr>';
|
3044 |
else
|
3045 |
$user_info_string .= __( 'Using (user agent)', 'contact-form-plugin' ) . ': ' . $user_agent . "\n";
|
3046 |
}
|
3047 |
}
|
3048 |
+
|
3049 |
/* Message */
|
3050 |
+
$message_order_fields = array_merge( $cntctfrm_options['order_fields']['first_column'], $cntctfrm_options['order_fields']['second_column'] );
|
|
|
3051 |
|
3052 |
+
if ( 1 == $cntctfrm_options['html_email'] ) {
|
3053 |
$message_text = '<html>
|
3054 |
<head>
|
3055 |
<title>'. __( "Contact from", 'contact-form-plugin' ) . ' ' . get_bloginfo( 'name' ) . '</title>
|
3060 |
<td>' . __( "Site", 'contact-form-plugin' ) . '</td>
|
3061 |
<td>' . get_bloginfo( "url" ) . '</td>
|
3062 |
</tr>';
|
3063 |
+
foreach ( $message_order_fields as $field ){
|
3064 |
$field = str_replace( 'cntctfrm_contact_', '', $field );
|
3065 |
switch ( $field ) {
|
3066 |
case "name":
|
3067 |
+
if ( 1 == $cntctfrm_options['display_name_field'] ) {
|
3068 |
$message_text .= '<tr><td width="160">';
|
3069 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['name_label'][ $lang ] : __( "Name", 'contact-form-plugin' );
|
3070 |
$message_text .= '</td><td>'. $name .'</td></tr>';
|
3071 |
}
|
3072 |
break;
|
3073 |
case "address":
|
3074 |
+
if ( 1 == $cntctfrm_options['display_address_field'] ) {
|
3075 |
$message_text .= '<tr><td>';
|
3076 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['address_label'][ $lang ] : __( "Address", 'contact-form-plugin' );
|
3077 |
$message_text .= '</td><td>'. $address .'</td></tr>';
|
3078 |
}
|
3079 |
break;
|
3080 |
case "email":
|
3081 |
$message_text .= '<tr><td>';
|
3082 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['email_label'][ $lang ] : __( "Email", 'contact-form-plugin' );
|
3083 |
$message_text .= '</td><td>'. $email .'</td></tr>';
|
3084 |
break;
|
3085 |
case "subject":
|
3086 |
$message_text .= '<tr><td>';
|
3087 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['subject_label'][ $lang ] : __( "Subject", 'contact-form-plugin' );
|
3088 |
$message_text .= '</td><td>' . $subject .'</td></tr>';
|
3089 |
break;
|
3090 |
case "message":
|
3091 |
$message_text .= '<tr><td>';
|
3092 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['message_label'][ $lang ] : __( "Message", 'contact-form-plugin' );
|
3093 |
$message_text .= '</td><td>' . $message .'</td></tr>';
|
3094 |
break;
|
3095 |
case "phone":
|
3096 |
+
if ( 1 == $cntctfrm_options['display_phone_field'] ) {
|
3097 |
$message_text .= '<tr><td>';
|
3098 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['phone_label'][ $lang ] : __( "Phone Number", 'contact-form-plugin' );
|
3099 |
$message_text .= '</td><td>'. $phone .'</td></tr>';
|
3100 |
}
|
3101 |
break;
|
3107 |
$message_text .= $user_info_string . '</table></body></html>';
|
3108 |
} else {
|
3109 |
$message_text = __( "Site", 'contact-form-plugin' ) . ': ' . get_bloginfo("url") . "\n";;
|
3110 |
+
foreach ( $message_order_fields as $field ) {
|
3111 |
$field = str_replace( 'cntctfrm_contact_', '', $field );
|
3112 |
switch ( $field ) {
|
3113 |
case "name":
|
3114 |
+
if ( 1 == $cntctfrm_options['display_name_field'] ) {
|
3115 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['name_label'][ $lang ] : __( "Name", 'contact-form-plugin' );
|
3116 |
$message_text .= ': '. $name . "\n";
|
3117 |
}
|
3118 |
break;
|
3119 |
case "address":
|
3120 |
+
if ( 1 == $cntctfrm_options['display_address_field'] ) {
|
3121 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['address_label'][ $lang ] : __( "Address", 'contact-form-plugin' );
|
3122 |
$message_text .= ': '. $address . "\n";
|
3123 |
}
|
3124 |
break;
|
3125 |
case "email":
|
3126 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['email_label'][ $lang ] : __( "Email", 'contact-form-plugin' );
|
3127 |
$message_text .= ': ' . $email . "\n";
|
3128 |
break;
|
3129 |
case "subject":
|
3130 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['subject_label'][ $lang ] : __( "Subject", 'contact-form-plugin' );
|
3131 |
$message_text .= ': ' . $subject . "\n";
|
3132 |
break;
|
3133 |
case "message":
|
3134 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['message_label'][ $lang ] : __( "Message", 'contact-form-plugin' );
|
3135 |
$message_text .= ': ' . $message ."\n";
|
3136 |
break;
|
3137 |
case "phone":
|
3138 |
+
if ( 1 == $cntctfrm_options['display_phone_field'] ) {
|
3139 |
+
$message_text .= ( 1 == $cntctfrm_options['change_label_in_email'] ) ? $cntctfrm_options['phone_label'][ $lang ] : __( "Phone Number", 'contact-form-plugin' );
|
3140 |
$message_text .= ': '. $phone . "\n";
|
3141 |
}
|
3142 |
break;
|
3148 |
$message_text .= $user_info_string;
|
3149 |
}
|
3150 |
|
|
|
3151 |
do_action( 'cntctfrm_get_mail_data', array( 'sendto' => $to, 'refer' => $form_action_url, 'useragent' => $user_agent ) );
|
3152 |
|
3153 |
if ( ! function_exists( 'is_plugin_active' ) )
|
3154 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
3155 |
|
3156 |
/* 'from' name */
|
3157 |
+
$from_field_name = ( 'custom' == $cntctfrm_options['select_from_field'] ) ? stripslashes( $cntctfrm_options['from_field'] ) : $name;
|
3158 |
/* 'from' email */
|
3159 |
+
$from_email = ( 'custom' == $cntctfrm_options['from_email'] ) ? stripslashes( $cntctfrm_options['custom_from_email'] ) : stripslashes( $email );
|
3160 |
if ( $from_email == "" || ! is_email( $from_email ) ) {
|
3161 |
$sitename = strtolower( filter_var( $_SERVER['SERVER_NAME'], FILTER_SANITIZE_STRING ) );
|
3162 |
if ( substr( $sitename, 0, 4 ) == 'www.' ) {
|
3164 |
}
|
3165 |
$from_email = 'wordpress@' . $sitename;
|
3166 |
}
|
3167 |
+
|
3168 |
if ( ( is_plugin_active( 'email-queue/email-queue.php' ) || is_plugin_active( 'email-queue-pro/email-queue-pro.php' ) ) && function_exists( 'mlq_if_mail_plugin_is_in_queue' ) && mlq_if_mail_plugin_is_in_queue( plugin_basename( __FILE__ ) ) ) {
|
3169 |
/* if email-queue plugin is active and this plugin's "in_queue" status is 'ON' */
|
3170 |
/* attachment path */
|
3171 |
+
$attachment_file = ( 1 == $cntctfrm_options['attachment'] && isset( $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) && "" != $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) ? $cntctfrm_path_of_uploaded_file : '';
|
3172 |
/* headers */
|
3173 |
/* content type */
|
3174 |
+
$headers .= ( 1 == $cntctfrm_options['html_email'] ) ? 'Content-type: text/html; charset=utf-8' . "\n" : 'Content-type: text/plain; charset=utf-8' . "\n" ;
|
3175 |
/* 'from' name & email */
|
3176 |
$headers .= 'From: ' . $from_field_name . ' <' . $from_email . '>';
|
3177 |
/* send copy */
|
3183 |
/* return $mail_result = true if email-queue has successfully inserted mail in its DB; in other case - return false */
|
3184 |
return $mail_result = $mlq_mail_result;
|
3185 |
} else {
|
3186 |
+
if ( 'wp-mail' == $cntctfrm_options['mail_method'] ) {
|
3187 |
/* To send HTML mail, the Content-type header must be set */
|
3188 |
+
if ( 1 == $cntctfrm_options['html_email'] )
|
3189 |
$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
|
3190 |
else
|
3191 |
$headers .= 'Content-type: text/plain; charset=utf-8' . "\n";
|
3193 |
/* Additional headers */
|
3194 |
$headers .= 'From: ' . $from_field_name . ' <' . $from_email . '>';
|
3195 |
|
3196 |
+
if ( 1 == $cntctfrm_options['attachment'] && isset( $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) && "" != $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) {
|
3197 |
$path_parts = pathinfo( $cntctfrm_path_of_uploaded_file );
|
3198 |
$cntctfrm_path_of_uploaded_file_changed = $path_parts['dirname'] . '/' . preg_replace( '/^cntctfrm_[A-Z,a-z,0-9]{32}_/i', '', $path_parts['basename'] );
|
3199 |
|
3209 |
/* Mail it */
|
3210 |
$mail_result = wp_mail( $to, $subject, $message_text, $headers, $attachments );
|
3211 |
/* Delete attachment */
|
3212 |
+
if ( 1 == $cntctfrm_options['attachment'] && isset( $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) && "" != $_FILES["cntctfrm_contact_attachment"]["tmp_name"]
|
3213 |
&& $cntctfrm_path_of_uploaded_file_changed != $cntctfrm_path_of_uploaded_file ) {
|
3214 |
@unlink( $cntctfrm_path_of_uploaded_file_changed );
|
3215 |
}
|
3216 |
+
if ( 1 == $cntctfrm_options['attachment'] && isset( $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) && "" != $_FILES["cntctfrm_contact_attachment"]["tmp_name"] && '1' == $cntctfrm_options['delete_attached_file'] ) {
|
3217 |
@unlink( $cntctfrm_path_of_uploaded_file );
|
3218 |
}
|
3219 |
return $mail_result;
|
3221 |
/* Set headers */
|
3222 |
$headers .= 'MIME-Version: 1.0' . "\n";
|
3223 |
|
3224 |
+
if ( 1 == $cntctfrm_options['attachment'] && isset( $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) && "" != $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) {
|
3225 |
$message_block = $message_text;
|
3226 |
$message_block_for_user = $message_text_for_user;
|
3227 |
|
3238 |
|
3239 |
$message_text = $message_text_for_user = __( "If you can see this MIME, it means that the MIME type is not supported by your email client!", 'contact-form-plugin' ) . "\n";
|
3240 |
|
3241 |
+
if ( 1 == $cntctfrm_options['html_email'] ) {
|
3242 |
$message_text .= $bound . "\n" . "Content-Type: text/html; charset=\"utf-8\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message_block . "\n\n";
|
3243 |
$message_text_for_user .= $bound . "\n" . "Content-Type: text/html; charset=\"utf-8\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message_block_for_user . "\n\n";
|
3244 |
} else {
|
3262 |
$bound_last;
|
3263 |
} else {
|
3264 |
/* To send HTML mail, header must be set */
|
3265 |
+
if ( 1 == $cntctfrm_options['html_email'] )
|
3266 |
$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
|
3267 |
else
|
3268 |
$headers .= 'Content-type: text/plain; charset=utf-8' . "\n";
|
3275 |
|
3276 |
$mail_result = @mail( $to, $subject, $message_text, $headers );
|
3277 |
/* Delete attachment */
|
3278 |
+
if ( 1 == $cntctfrm_options['attachment'] && isset( $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) && "" != $_FILES["cntctfrm_contact_attachment"]["tmp_name"] && '1' == $cntctfrm_options['delete_attached_file'] ) {
|
3279 |
@unlink( $cntctfrm_path_of_uploaded_file );
|
3280 |
}
|
3281 |
return $mail_result;
|
3421 |
|
3422 |
if ( ! function_exists ( 'cntctfrm_wp_footer' ) ) {
|
3423 |
function cntctfrm_wp_footer() {
|
|
|
3424 |
if ( wp_script_is( 'cntctfrm_frontend_script', 'registered' ) ) {
|
3425 |
wp_enqueue_script( 'cntctfrm_frontend_script', plugins_url( 'js/cntctfrm.js', __FILE__ ), array( 'jquery' ) );
|
3426 |
}
|
3451 |
$cntctfrm_options = get_option( 'cntctfrm_options' );
|
3452 |
}
|
3453 |
|
3454 |
+
if ( ! in_array( $lang, $cntctfrm_options['language'] ) ) {
|
3455 |
+
$cntctfrm_options['language'][] = $lang;
|
3456 |
|
3457 |
if ( 'pro' == $contact_form_multi_active && $options_main = get_option( 'cntctfrmmltpr_options_main' ) ) {
|
3458 |
update_option( 'cntctfrmmlt_options_' . $options_main['id_form'], $cntctfrm_options );
|
3471 |
$result = __( "Use shortcode", 'contact-form-plugin' ) . ' <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=' . $lang . ' id=' . $_SESSION['cntctfrmmlt_id_form'] . ']</span> ' . __( "for this language", 'contact-form-plugin' );
|
3472 |
}
|
3473 |
|
3474 |
+
if ( $is_ajax ) {
|
3475 |
echo json_encode( $result );
|
3476 |
die();
|
3477 |
}
|
3500 |
|
3501 |
$lang = $is_ajax ? $_REQUEST['lang'] : $_REQUEST['cntctfrm_delete_button'];
|
3502 |
|
3503 |
+
if ( $key = array_search( $lang, $cntctfrm_options['language'] ) !== false )
|
3504 |
+
$cntctfrm_options['language'] = array_diff( $cntctfrm_options['language'], array( $lang ) );
|
3505 |
+
if ( isset( $cntctfrm_options['name_label'][ $lang ] ) )
|
3506 |
+
unset( $cntctfrm_options['name_label'][ $lang ] );
|
3507 |
+
if ( isset( $cntctfrm_options['address_label'][ $lang ] ) )
|
3508 |
+
unset( $cntctfrm_options['address_label'][ $lang ] );
|
3509 |
+
if ( isset( $cntctfrm_options['email_label'][ $lang ] ) )
|
3510 |
+
unset( $cntctfrm_options['email_label'][ $lang ] );
|
3511 |
+
if ( isset( $cntctfrm_options['phone_label'][ $lang ] ) )
|
3512 |
+
unset( $cntctfrm_options['phone_label'][ $lang ] );
|
3513 |
+
if ( isset( $cntctfrm_options['subject_label'][ $lang ] ) )
|
3514 |
+
unset( $cntctfrm_options['subject_label'][ $lang ] );
|
3515 |
+
if ( isset( $cntctfrm_options['message_label'][ $lang ] ) )
|
3516 |
+
unset( $cntctfrm_options['message_label'][ $lang ] );
|
3517 |
+
if ( isset( $cntctfrm_options['attachment_label'][ $lang ] ) )
|
3518 |
+
unset( $cntctfrm_options['attachment_label'][ $lang ] );
|
3519 |
+
if ( isset( $cntctfrm_options['attachment_tooltip'][ $lang ] ) )
|
3520 |
+
unset( $cntctfrm_options['attachment_tooltip'][ $lang ] );
|
3521 |
+
if ( isset( $cntctfrm_options['send_copy_label'][ $lang ] ) )
|
3522 |
+
unset( $cntctfrm_options['send_copy_label'][ $lang ] );
|
3523 |
+
if ( isset( $cntctfrm_options['thank_text'][ $lang ] ) )
|
3524 |
+
unset( $cntctfrm_options['thank_text'][ $lang ] );
|
3525 |
+
if ( isset( $cntctfrm_options['submit_label'][ $lang ] ) )
|
3526 |
+
unset( $cntctfrm_options['submit_label'][ $lang ] );
|
3527 |
+
if ( isset( $cntctfrm_options['name_error'][ $lang ] ) )
|
3528 |
+
unset( $cntctfrm_options['name_error'][ $lang ] );
|
3529 |
+
if ( isset( $cntctfrm_options['address_error'][ $lang ] ) )
|
3530 |
+
unset( $cntctfrm_options['address_error'][ $lang ] );
|
3531 |
+
if ( isset( $cntctfrm_options['email_error'][ $lang ] ) )
|
3532 |
+
unset( $cntctfrm_options['email_error'][ $lang ] );
|
3533 |
+
if ( isset( $cntctfrm_options['phone_error'][ $lang ] ) )
|
3534 |
+
unset( $cntctfrm_options['phone_error'][ $lang ] );
|
3535 |
+
if ( isset( $cntctfrm_options['subject_error'][ $lang ] ) )
|
3536 |
+
unset( $cntctfrm_options['subject_error'][ $lang ] );
|
3537 |
+
if ( isset( $cntctfrm_options['message_error'][ $lang ] ) )
|
3538 |
+
unset( $cntctfrm_options['message_error'][ $lang ] );
|
3539 |
+
if ( isset( $cntctfrm_options['attachment_error'][ $lang ] ) )
|
3540 |
+
unset( $cntctfrm_options['attachment_error'][ $lang ] );
|
3541 |
+
if ( isset( $cntctfrm_options['attachment_upload_error'][ $lang ] ) )
|
3542 |
+
unset( $cntctfrm_options['attachment_upload_error'][ $lang ] );
|
3543 |
+
if ( isset( $cntctfrm_options['attachment_move_error'][ $lang ] ) )
|
3544 |
+
unset( $cntctfrm_options['attachment_move_error'][ $lang ] );
|
3545 |
+
if ( isset( $cntctfrm_options['attachment_size_error'][ $lang ] ) )
|
3546 |
+
unset( $cntctfrm_options['attachment_size_error'][ $lang ] );
|
3547 |
+
if ( isset( $cntctfrm_options['captcha_error'][ $lang ] ) )
|
3548 |
+
unset( $cntctfrm_options['captcha_error'][ $lang ] );
|
3549 |
+
if ( isset( $cntctfrm_options['form_error'][ $lang ] ) )
|
3550 |
+
unset( $cntctfrm_options['form_error'][ $lang ] );
|
3551 |
|
3552 |
if ( 'pro' == $contact_form_multi_active && $options_main = get_option( 'cntctfrmmltpr_options_main' ) ) {
|
3553 |
update_option( 'cntctfrmmlt_options_' . $options_main['id_form'], $cntctfrm_options );
|
3558 |
update_option( 'cntctfrm_options', $cntctfrm_options );
|
3559 |
}
|
3560 |
|
3561 |
+
if ( $is_alax )
|
3562 |
die();
|
3563 |
}
|
3564 |
}
|
3673 |
|
3674 |
if ( ! $contact_form_multi_active ) {
|
3675 |
$cntctfrm_options = get_option( 'cntctfrm_options' );
|
3676 |
+
array_unshift( $cntctfrm_options['language'], 'default' );
|
3677 |
} ?>
|
3678 |
<div id="cntctfrm" style="display:none;">
|
3679 |
<fieldset>
|
3703 |
<?php } else { ?>
|
3704 |
<label>
|
3705 |
<select name="cntctfrm_languages_list" id="cntctfrm_languages_list">
|
3706 |
+
<?php foreach ( $cntctfrm_options['language'] as $language ) {
|
3707 |
printf( '<option value="%1$s">%2$s</option>', strtolower( $language ), ( $language == 'default' ) ? $lang_default : $cntctfrm_lang_codes[ $language ] );
|
3708 |
} ?>
|
3709 |
</select>
|
3770 |
global $wpdb;
|
3771 |
$all_plugins = get_plugins();
|
3772 |
|
3773 |
+
if ( ! array_key_exists( 'contact-form-pro/contact_form_pro.php', $all_plugins ) ) {
|
3774 |
+
if ( function_exists( 'is_multisite' ) && is_multisite() ) {
|
3775 |
+
$old_blog = $wpdb->blogid;
|
3776 |
+
/* Get all blog ids */
|
3777 |
+
$blogids = $wpdb->get_col( "SELECT `blog_id` FROM $wpdb->blogs" );
|
3778 |
+
foreach ( $blogids as $blog_id ) {
|
3779 |
+
switch_to_blog( $blog_id );
|
3780 |
+
delete_option( 'cntctfrm_options' );
|
3781 |
$wpdb->query( "DROP TABLE IF EXISTS `" . $wpdb->prefix . "cntctfrm_field`;" );
|
3782 |
+
}
|
3783 |
+
switch_to_blog( $old_blog );
|
3784 |
+
} else {
|
3785 |
+
delete_option( 'cntctfrm_options' );
|
|
|
3786 |
$wpdb->query( "DROP TABLE IF EXISTS `" . $wpdb->prefix . "cntctfrm_field`;" );
|
3787 |
+
}
|
3788 |
}
|
3789 |
|
3790 |
require_once( dirname( __FILE__ ) . '/bws_menu/bws_include.php' );
|
3797 |
|
3798 |
add_action( 'admin_menu', 'cntctfrm_admin_menu' );
|
3799 |
|
3800 |
+
add_action( 'init', 'cntctfrm_init', 50 );
|
3801 |
add_action( 'admin_init', 'cntctfrm_admin_init' );
|
3802 |
add_action( 'plugins_loaded', 'cntctfrm_plugins_loaded' );
|
3803 |
|
css/style.css
CHANGED
@@ -81,9 +81,6 @@
|
|
81 |
.cntctfrm_language_tab_block_mini:hover {
|
82 |
opacity: 0.7;
|
83 |
}
|
84 |
-
input[name="cntctfrm_display_google_captcha"] {
|
85 |
-
margin-right: 8px;
|
86 |
-
}
|
87 |
.cntctfrm_language_tab_block {
|
88 |
padding: 5px 10px 5px 5px;
|
89 |
}
|
81 |
.cntctfrm_language_tab_block_mini:hover {
|
82 |
opacity: 0.7;
|
83 |
}
|
|
|
|
|
|
|
84 |
.cntctfrm_language_tab_block {
|
85 |
padding: 5px 10px 5px 5px;
|
86 |
}
|
images/google-captcha.png
ADDED
Binary file
|
includes/deprecated.php
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Contains the list of the deprecated functions
|
4 |
+
* @since 4.0.2
|
5 |
+
*/
|
6 |
+
|
7 |
+
/**
|
8 |
+
* @since 2.1.1
|
9 |
+
* @todo delete after 25.04.2017
|
10 |
+
*/
|
11 |
+
if ( ! function_exists( 'cntctfrm_options_update' ) ) {
|
12 |
+
function cntctfrm_options_update( $cntctfrm_options, $cntctfrm_option_defaults, $contact_form_multi_active ) {
|
13 |
+
global $cntctfrm_related_plugins;
|
14 |
+
|
15 |
+
foreach ( $cntctfrm_option_defaults as $key => $value ) {
|
16 |
+
if ( isset( $cntctfrm_options['cntctfrm_' . $key ] ) ) {
|
17 |
+
$cntctfrm_options[ $key ] = $cntctfrm_options[ 'cntctfrm_' . $key ];
|
18 |
+
unset( $cntctfrm_options[ 'cntctfrm_' . $key ] );
|
19 |
+
}
|
20 |
+
}
|
21 |
+
|
22 |
+
foreach ( array( 'display_captcha', 'display_google_captcha', 'display_subscribe', 'save_email_to_db' ) as $key ) {
|
23 |
+
if ( isset( $cntctfrm_options['cntctfrm_' . $key ] ) ) {
|
24 |
+
$cntctfrm_options[ $key ] = $cntctfrm_options[ 'cntctfrm_' . $key ];
|
25 |
+
unset( $cntctfrm_options[ 'cntctfrm_' . $key ] );
|
26 |
+
}
|
27 |
+
}
|
28 |
+
|
29 |
+
if ( $contact_form_multi_active ) {
|
30 |
+
if ( empty( $cntctfrm_related_plugins ) )
|
31 |
+
cntctfrm_related_plugins();
|
32 |
+
|
33 |
+
if ( ! isset( $cntctfrm_options['display_captcha'] ) ) {
|
34 |
+
if ( array_key_exists( 'captcha', $cntctfrm_related_plugins ) )
|
35 |
+
$cntctfrm_options['display_captcha'] = $cntctfrm_related_plugins['captcha']['options'][ $cntctfrm_related_plugins['captcha']['display_option'] ];
|
36 |
+
else
|
37 |
+
$cntctfrm_options['display_captcha'] = false;
|
38 |
+
}
|
39 |
+
if ( ! isset( $cntctfrm_options['display_google_captcha'] ) ) {
|
40 |
+
if ( array_key_exists( 'google-captcha', $cntctfrm_related_plugins ) )
|
41 |
+
$cntctfrm_options['display_google_captcha'] = $cntctfrm_related_plugins['google-captcha']['options']['contact_form'];
|
42 |
+
else
|
43 |
+
$cntctfrm_options['display_google_captcha'] = false;
|
44 |
+
}
|
45 |
+
if ( ! isset( $cntctfrm_options['display_subscribe'] ) ) {
|
46 |
+
if ( array_key_exists( 'subscriber', $cntctfrm_related_plugins ) )
|
47 |
+
$cntctfrm_options['display_subscribe'] = $cntctfrm_related_plugins['subscriber']['options']['contact_form'];
|
48 |
+
else
|
49 |
+
$cntctfrm_options['display_subscribe'] = false;
|
50 |
+
}
|
51 |
+
if ( ! isset( $cntctfrm_options['save_email_to_db'] ) ) {
|
52 |
+
if ( array_key_exists( 'contact-form-to-db', $cntctfrm_related_plugins ) )
|
53 |
+
$cntctfrm_options['save_email_to_db'] = ! empty( $cntctfrm_related_plugins['contact-form-to-db']['options'][ $cntctfrm_related_plugins['contact-form-to-db']['save_option'] ] ) ? true : false;
|
54 |
+
else
|
55 |
+
$cntctfrm_options['save_email_to_db'] = false;
|
56 |
+
}
|
57 |
+
}
|
58 |
+
|
59 |
+
if ( ! isset( $cntctfrm_options['cntctfrm_name_label']['default'] ) && isset( $cntctfrm_options['cntctfrm_name_label']['en'] ) ) {
|
60 |
+
$cntctfrm_options['cntctfrm_name_label']['default'] = $cntctfrm_options['cntctfrm_name_label']['en'];
|
61 |
+
unset( $cntctfrm_options['cntctfrm_name_label']['en'] );
|
62 |
+
$cntctfrm_options['cntctfrm_address_label']['default'] = $cntctfrm_options['cntctfrm_address_label']['en'];
|
63 |
+
unset( $cntctfrm_options['cntctfrm_address_label']['en'] );
|
64 |
+
$cntctfrm_options['cntctfrm_email_label']['default'] = $cntctfrm_options['cntctfrm_email_label']['en'];
|
65 |
+
unset( $cntctfrm_options['cntctfrm_email_label']['en'] );
|
66 |
+
$cntctfrm_options['cntctfrm_phone_label']['default'] = $cntctfrm_options['cntctfrm_phone_label']['en'];
|
67 |
+
unset( $cntctfrm_options['cntctfrm_phone_label']['en'] );
|
68 |
+
$cntctfrm_options['cntctfrm_subject_label']['default'] = $cntctfrm_options['cntctfrm_subject_label']['en'];
|
69 |
+
unset( $cntctfrm_options['cntctfrm_subject_label']['en'] );
|
70 |
+
$cntctfrm_options['cntctfrm_message_label']['default'] = $cntctfrm_options['cntctfrm_message_label']['en'];
|
71 |
+
unset( $cntctfrm_options['cntctfrm_message_label']['en'] );
|
72 |
+
$cntctfrm_options['cntctfrm_attachment_label']['default'] = $cntctfrm_options['cntctfrm_attachment_label']['en'];
|
73 |
+
unset( $cntctfrm_options['cntctfrm_attachment_label']['en'] );
|
74 |
+
$cntctfrm_options['cntctfrm_attachment_tooltip']['default'] = $cntctfrm_options['cntctfrm_attachment_tooltip']['en'];
|
75 |
+
unset( $cntctfrm_options['cntctfrm_attachment_tooltip']['en'] );
|
76 |
+
$cntctfrm_options['cntctfrm_send_copy_label']['default'] = $cntctfrm_options['cntctfrm_send_copy_label']['en'];
|
77 |
+
unset( $cntctfrm_options['cntctfrm_send_copy_label']['en'] );
|
78 |
+
$cntctfrm_options['cntctfrm_submit_label']['default'] = $cntctfrm_options['cntctfrm_submit_label']['en'];
|
79 |
+
unset( $cntctfrm_options['cntctfrm_submit_label']['en'] );
|
80 |
+
$cntctfrm_options['cntctfrm_name_error']['default'] = $cntctfrm_options['cntctfrm_name_error']['en'];
|
81 |
+
unset( $cntctfrm_options['cntctfrm_name_error']['en'] );
|
82 |
+
$cntctfrm_options['cntctfrm_address_error']['default'] = $cntctfrm_options['cntctfrm_address_error']['en'];
|
83 |
+
unset( $cntctfrm_options['cntctfrm_address_error']['en'] );
|
84 |
+
$cntctfrm_options['cntctfrm_email_error']['default'] = $cntctfrm_options['cntctfrm_email_error']['en'];
|
85 |
+
unset( $cntctfrm_options['cntctfrm_email_error']['en'] );
|
86 |
+
$cntctfrm_options['cntctfrm_phone_error']['default'] = $cntctfrm_options['cntctfrm_phone_error']['en'];
|
87 |
+
unset( $cntctfrm_options['cntctfrm_phone_error']['en'] );
|
88 |
+
$cntctfrm_options['cntctfrm_subject_error']['default'] = $cntctfrm_options['cntctfrm_subject_error']['en'];
|
89 |
+
unset( $cntctfrm_options['cntctfrm_subject_error']['en'] );
|
90 |
+
$cntctfrm_options['cntctfrm_message_error']['default'] = $cntctfrm_options['cntctfrm_message_error']['en'];
|
91 |
+
unset( $cntctfrm_options['cntctfrm_message_error']['en'] );
|
92 |
+
$cntctfrm_options['cntctfrm_attachment_error']['default'] = $cntctfrm_options['cntctfrm_attachment_error']['en'];
|
93 |
+
unset( $cntctfrm_options['cntctfrm_attachment_error']['en'] );
|
94 |
+
$cntctfrm_options['cntctfrm_attachment_upload_error']['default'] = $cntctfrm_options['cntctfrm_attachment_upload_error']['en'];
|
95 |
+
unset( $cntctfrm_options['cntctfrm_attachment_upload_error']['en'] );
|
96 |
+
$cntctfrm_options['cntctfrm_attachment_move_error']['default'] = $cntctfrm_options['cntctfrm_attachment_move_error']['en'];
|
97 |
+
unset( $cntctfrm_options['cntctfrm_attachment_move_error']['en'] );
|
98 |
+
$cntctfrm_options['cntctfrm_attachment_size_error']['default'] = $cntctfrm_options['cntctfrm_attachment_size_error']['en'];
|
99 |
+
unset( $cntctfrm_options['cntctfrm_attachment_size_error']['en'] );
|
100 |
+
$cntctfrm_options['cntctfrm_captcha_error']['default'] = $cntctfrm_options['cntctfrm_captcha_error']['en'];
|
101 |
+
unset( $cntctfrm_options['cntctfrm_captcha_error']['en'] );
|
102 |
+
$cntctfrm_options['cntctfrm_form_error']['default'] = $cntctfrm_options['cntctfrm_form_error']['en'];
|
103 |
+
unset( $cntctfrm_options['cntctfrm_form_error']['en'] );
|
104 |
+
$cntctfrm_options['cntctfrm_thank_text']['default'] = $cntctfrm_options['cntctfrm_thank_text']['en'];
|
105 |
+
unset( $cntctfrm_options['cntctfrm_thank_text']['en'] );
|
106 |
+
}
|
107 |
+
|
108 |
+
if ( empty( $cntctfrm_options['cntctfrm_language'] ) && isset( $cntctfrm_options['cntctfrm_name_label'] ) && ! is_array( $cntctfrm_options['cntctfrm_name_label'] ) ) {
|
109 |
+
$cntctfrm_options['cntctfrm_name_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_name_label']['default'] );
|
110 |
+
$cntctfrm_options['cntctfrm_address_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_address_label']['default'] );
|
111 |
+
$cntctfrm_options['cntctfrm_email_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_email_label']['default'] );
|
112 |
+
$cntctfrm_options['cntctfrm_phone_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_phone_label']['default'] );
|
113 |
+
$cntctfrm_options['cntctfrm_subject_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_subject_label']['default'] );
|
114 |
+
$cntctfrm_options['cntctfrm_message_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_message_label']['default'] );
|
115 |
+
$cntctfrm_options['cntctfrm_attachment_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_label']['default'] );
|
116 |
+
$cntctfrm_options['cntctfrm_attachment_tooltip'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_tooltip']['default'] );
|
117 |
+
$cntctfrm_options['cntctfrm_send_copy_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_send_copy_label']['default'] );
|
118 |
+
$cntctfrm_options['cntctfrm_thank_text'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_thank_text']['default'] );
|
119 |
+
$cntctfrm_options['cntctfrm_submit_label'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_submit_label']['default'] );
|
120 |
+
$cntctfrm_options['cntctfrm_name_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_name_error']['default'] );
|
121 |
+
$cntctfrm_options['cntctfrm_address_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_address_error']['default'] );
|
122 |
+
$cntctfrm_options['cntctfrm_email_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_email_error']['default'] );
|
123 |
+
$cntctfrm_options['cntctfrm_phone_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_phone_error']['default'] );
|
124 |
+
$cntctfrm_options['cntctfrm_subject_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_subject_error']['default'] );
|
125 |
+
$cntctfrm_options['cntctfrm_message_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_message_error']['default'] );
|
126 |
+
$cntctfrm_options['cntctfrm_attachment_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_error']['default'] );
|
127 |
+
$cntctfrm_options['cntctfrm_attachment_upload_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_upload_error']['default'] );
|
128 |
+
$cntctfrm_options['cntctfrm_attachment_move_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_move_error']['default'] );
|
129 |
+
$cntctfrm_options['cntctfrm_attachment_size_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_attachment_size_error']['default'] );
|
130 |
+
$cntctfrm_options['cntctfrm_captcha_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_captcha_error']['default'] );
|
131 |
+
$cntctfrm_options['cntctfrm_form_error'] = array( 'default' => $cntctfrm_option_defaults['cntctfrm_form_error']['default'] );
|
132 |
+
}
|
133 |
+
|
134 |
+
return $cntctfrm_options;
|
135 |
+
}
|
136 |
+
}
|
readme.txt
CHANGED
@@ -3,97 +3,120 @@ Contributors: bestwebsoft
|
|
3 |
Donate link: http://bestwebsoft.com/donate/
|
4 |
Tags: contact, contact form, feedback form, contact us form, contact button, email form, contac, form, web-page feedback, cf, cf plugin, contact form plugin
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 4.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
|
16 |
-
There is also a premium version of the plugin with more useful features available.
|
17 |
|
18 |
http://www.youtube.com/watch?v=nGwh-oslK-c
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
*
|
31 |
-
*
|
32 |
-
*
|
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 |
= Translation =
|
66 |
|
67 |
-
* Afrikaans (af_ZA) (thanks to
|
68 |
-
* Brazilian Portuguese (pt_BR) (thanks to
|
69 |
-
* Catalan (ca) (thanks to
|
70 |
-
* Chinese (zh_CN) (thanks to
|
71 |
-
* Czech (cs_CZ) (thanks to
|
72 |
-
* Danish (da_DK) (thanks to
|
73 |
-
* Estonian (et) (thanks to
|
74 |
* French (fr_FR) (thanks Capronnier Luc)
|
75 |
-
* German (de_DE) (thanks to
|
76 |
* Greek (el) (thanks to Dimitris Karantonis, www.soft4real.com/en-UK)
|
77 |
* Japanese (ja) (thanks to Foken)
|
78 |
-
* Dutch (nl_NL) (thanks to
|
79 |
-
* Norwegian (nb_NO) (thanks to
|
80 |
* Russian (ru_RU)
|
81 |
-
* Slovak (sk_SK) (thanks to
|
82 |
* Spanish (es_ES) (thanks to Javitopo)
|
83 |
-
* Swedish (sv_SE) (thanks to Martin Tonek,
|
84 |
* Turkish (tr) (thanks to Can Atasever, www.canatasever.com)
|
85 |
* Ukrainian (uk)
|
86 |
-
* Vietnamese (vi) (thanks to
|
|
|
|
|
87 |
|
88 |
-
|
|
|
|
|
89 |
|
90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
|
92 |
-
|
93 |
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
|
98 |
== Installation ==
|
99 |
|
@@ -102,9 +125,9 @@ We can fix some things for free for the users who provide translation of our plu
|
|
102 |
3. You can adjust the necessary settings using your WordPress admin panel in "BWS Panel" > "Contact Form".
|
103 |
4. Create a page or a post and insert the shortcode [bestwebsoft_contact_form] into the text.
|
104 |
|
105 |
-
|
106 |
|
107 |
-
http://www.youtube.com/watch?v=
|
108 |
|
109 |
== Frequently Asked Questions ==
|
110 |
|
@@ -136,7 +159,7 @@ Please follow the instructions below:
|
|
136 |
|
137 |
1. Please check the plugin settings '/wp-admin/admin.php?page=contact_form.php' => 'What to use?' => change the lines from wp-mail to mail and vice versa.
|
138 |
2. Email messages can be marked as spam on the server. Please choose another email instead of the admin's one ('Use this email:' block) - for example, gmail or similar. If the message is sent, it means that email filtering is set on your server. Please contact your hosting provider.
|
139 |
-
3. Perhaps email sending is not set. You should install an extra plugin called
|
140 |
|
141 |
Note: If the Contact Form sends letters, but you don't receive them, you can install our plugin Contact Form to DB in order not to lose the sent letters for the time the problem is being solved.
|
142 |
|
@@ -146,12 +169,12 @@ This happens when there is not enough the minimum width of the parent block wher
|
|
146 |
|
147 |
= I have some problems with the plugin's work. What Information should I provide to receive proper support? =
|
148 |
|
149 |
-
Please make sure that the problem hasn't been discussed yet on our forum (<
|
150 |
|
151 |
-
1.
|
152 |
-
2.
|
153 |
-
3.
|
154 |
-
4.
|
155 |
|
156 |
== Screenshots ==
|
157 |
|
@@ -173,6 +196,10 @@ Please make sure that the problem hasn't been discussed yet on our forum (<a hre
|
|
173 |
|
174 |
== Changelog ==
|
175 |
|
|
|
|
|
|
|
|
|
176 |
= V4.0.1 - 19.07.2016 =
|
177 |
* Update : An ability to enable/disable Captcha, Google Captcha, Subscribe checkbox and an ability to save email to the database for each multi forms (if Contact Form Multi is activated).
|
178 |
* Update : Color picker script was replaced.
|
@@ -629,6 +656,9 @@ Please make sure that the problem hasn't been discussed yet on our forum (<a hre
|
|
629 |
|
630 |
== Upgrade Notice ==
|
631 |
|
|
|
|
|
|
|
632 |
= V4.0.1 =
|
633 |
* Functionality improved.
|
634 |
|
3 |
Donate link: http://bestwebsoft.com/donate/
|
4 |
Tags: contact, contact form, feedback form, contact us form, contact button, email form, contac, form, web-page feedback, cf, cf plugin, contact form plugin
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 4.6
|
7 |
+
Stable tag: 4.0.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Simple contact form plugin any WordPress website must have.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
Contact form plugin for Wordpress website is the best solution to receive messages from customers right to your email address(-es). Download, activate and paste [bestwebsoft_contact_form] shortcode on any page, post or widget to display the form. Customize the form styles and contents easily with the pre-build options. Allow your customers to reach you in seconds!
|
|
|
16 |
|
17 |
http://www.youtube.com/watch?v=nGwh-oslK-c
|
18 |
|
19 |
+
= Free Features =
|
20 |
+
|
21 |
+
* Paste shortcode on any page, post or widget to display the form
|
22 |
+
* Data validation before the submission
|
23 |
+
* Send a copy of the submitted message to the email
|
24 |
+
* Receive submissions to the default admin or custom email addresses
|
25 |
+
* Add additional data about the sender to the email notification
|
26 |
+
* Responsive Layout
|
27 |
+
* Editable field labels
|
28 |
+
* Required fields
|
29 |
+
* File attachments
|
30 |
+
* Enable additional pre-build fields
|
31 |
+
* Enable two column layout
|
32 |
+
* Re-order form fields using drag & drop interface
|
33 |
+
* Translate your form to any language with a simple language customizer
|
34 |
+
* Protect contact form from spam with [Captcha](http://bestwebsoft.com/products/captcha/?k=45dcf2a5ccd70a7fc8606f8030730ac7) or [Google reCaptcha](http://bestwebsoft.com/products/google-captcha/?k=159789f556e3a9c58df8f25384903ba5)
|
35 |
+
* Add unlimited contact forms using [Contact Form Multi](http://bestwebsoft.com/products/contact-form-multi/?k=34543c152eff369d529e9b4da85985a9)
|
36 |
+
* Save and manage messages using [Contact Form to DB](http://bestwebsoft.com/products/contact-form-to-db/?k=d7d962591b5be0ce6c27af778b1b36ee)
|
37 |
+
* Add users who send the submission to the [Subscriber](http://bestwebsoft.com/products/subscriber/?k=2ce0827916414c9c8576110f13560030) newsletter subscription list
|
38 |
+
* Add custom code via plugin settings page
|
39 |
+
* Compatible with latest WordPress version
|
40 |
+
* Incredibly simple settings for fast setup without modifying code
|
41 |
+
* Detailed step-by-step documentations and videos
|
42 |
+
* Multilingual (20+ languages) and RTL ready
|
43 |
+
|
44 |
+
> **Pro Features**
|
45 |
+
>
|
46 |
+
> All features from Free version included plus:
|
47 |
+
>
|
48 |
+
> * Add department selectbox and sort messages by inquiry type
|
49 |
+
> * Add required and optional checkboxes (i.e. Terms and Conditions)
|
50 |
+
> * Automatically populate name and email input fields for logged-in users
|
51 |
+
> * Add "Reply to" email address in the message head
|
52 |
+
> * Set default text for subject and message input fields
|
53 |
+
> * Hide and disable fields
|
54 |
+
> * Enable auto response option with editable message
|
55 |
+
> * Customizable form
|
56 |
+
> * Styles (no programming knowledge required)
|
57 |
+
> * Alignment, labels alignment and position
|
58 |
+
> * Editable tooltips
|
59 |
+
> * Editable placeholders
|
60 |
+
> * Get answer to your support question within one business day ([Support Policy](http://bestwebsoft.com/support-policy/))
|
61 |
+
>
|
62 |
+
> [Upgrade to Pro Now](http://bestwebsoft.com/products/contact-form/?k=4028655c87316c98ae9ac7ca1928067f)
|
63 |
+
|
64 |
+
If you have a feature suggestion or idea you'd like to see in the plugin, we'd love to hear about it! [Suggest a Feature](http://support.bestwebsoft.com/hc/en-us/requests/new)
|
65 |
+
|
66 |
+
= Documentation & Videos =
|
67 |
+
|
68 |
+
* [[Doc] How to Use](https://docs.google.com/document/d/1qZYPJhkSdVyyM6XO5WfiBcTS2Sa9_9UMn4vS2g48JRY/)
|
69 |
+
* [[Doc] Installation](https://docs.google.com/document/d/1obcWMPDPIIhUxcclYDwKSwNoFSHvGHyg_VKibjpQWTA/)
|
70 |
+
* [[Doc] Purchase, Installation & Configuration](https://docs.google.com/document/d/1T9ca4R7s5wFU9AtRfMTxADiM9HV16W9a3bpZqz4BT-k/)
|
71 |
+
* [[Video] Purchase, Installation, Configuration Tutorial](https://www.youtube.com/watch?v=k1wq00ajACo)
|
72 |
+
* [[Video] Instruction on Installation](https://www.youtube.com/watch?v=VdsM7L-tmBA)
|
73 |
+
|
74 |
+
= Help & Support =
|
75 |
+
|
76 |
+
Visit our Help Center if you have any questions, our friendly Support Team is happy to help — <http://support.bestwebsoft.com/>
|
77 |
|
78 |
= Translation =
|
79 |
|
80 |
+
* Afrikaans (af_ZA) (thanks to [Aldu](mailto:alducornelissen@gmail.com))
|
81 |
+
* Brazilian Portuguese (pt_BR) (thanks to [Breno Jacinto](mailto:brenojac@gmail.com), www.iconis.org.br, [DJIO](mailto:wordpress@djio.com.br), www.djio.com.br)
|
82 |
+
* Catalan (ca) (thanks to [Kenneth](mailto:kenneth@snollocer.net))
|
83 |
+
* Chinese (zh_CN) (thanks to [kplam](mailto:kplam@qq.com))
|
84 |
+
* Czech (cs_CZ) (thanks to [PaMaDeSSoft](mailto:info@pamadessoft.cz), www.pamadessoft.cz)
|
85 |
+
* Danish (da_DK) (thanks to [Kasper Jensen](mailto:support@teknisk-support.com), www.teknisk-support.com)
|
86 |
+
* Estonian (et) (thanks to [Feliks](mailto:feliks@veebimeister.com), www.veebimeister.com)
|
87 |
* French (fr_FR) (thanks Capronnier Luc)
|
88 |
+
* German (de_DE) (thanks to [Alex](mailto:private18@web.de))
|
89 |
* Greek (el) (thanks to Dimitris Karantonis, www.soft4real.com/en-UK)
|
90 |
* Japanese (ja) (thanks to Foken)
|
91 |
+
* Dutch (nl_NL) (thanks to [Olivier Smet](mailto:olivier.smet@dynata.nl))
|
92 |
+
* Norwegian (nb_NO) (thanks to [Per Rommetveit](mailto:bestwebsoftcontact@nordsoft.no))
|
93 |
* Russian (ru_RU)
|
94 |
+
* Slovak (sk_SK) (thanks to [Michal Vittek](mailto:michal.vittek@wp.sk), www.wp.sk)
|
95 |
* Spanish (es_ES) (thanks to Javitopo)
|
96 |
+
* Swedish (sv_SE) (thanks to Martin Tonek, [Joakim Lindskog](mailto:joakim@limewoodmedia.com), [Maarten van den Driest](mailto:maarten@vandendriest.com) - www.crossanddot.nl)
|
97 |
* Turkish (tr) (thanks to Can Atasever, www.canatasever.com)
|
98 |
* Ukrainian (uk)
|
99 |
+
* Vietnamese (vi) (thanks to [Dich Anh Viet](mailto:bizover@gmail.com), www.bizover.net)
|
100 |
+
|
101 |
+
Some of these translations are not complete. We are constantly adding new features which should be translated. If you would like to create your own language pack or update the existing one, you can send [the text of PO and MO files](http://codex.wordpress.org/Translating_WordPress) to [BestWebSoft](http://support.bestwebsoft.com/hc/en-us/requests/new) and we'll add it to the plugin. You can download the latest version of the program for work with PO and MO [files Poedit](http://www.poedit.net/download.php).
|
102 |
|
103 |
+
= Recommended Plugins =
|
104 |
+
|
105 |
+
The author of the Contact Form also recommends the following plugins:
|
106 |
|
107 |
+
* [SMTP](http://bestwebsoft.com/products/smtp/) – Configure SMTP server to receive email messages from WordPress to Gmail, Yahoo, Hotmail and other services.
|
108 |
+
* [Captcha](http://bestwebsoft.com/products/captcha/?k=45dcf2a5ccd70a7fc8606f8030730ac7) – #1 super security anti-spam captcha plugin for WordPress forms.
|
109 |
+
* [Google Captcha (Re-captcha)](http://bestwebsoft.com/products/google-captcha/?k=159789f556e3a9c58df8f25384903ba5) – Protect WordPress website forms from spam entries with Google Captcha (reCaptcha).
|
110 |
+
* [Limit Attempts](http://bestwebsoft.com/products/limit-attempts/?k=129e34c19fc68ae4a15b4fc1b4983081) – Protect WordPress website against brute force attacks. Limit rate of login attempts.
|
111 |
+
* [Contact Form Multi](http://bestwebsoft.com/products/contact-form-multi/?k=34543c152eff369d529e9b4da85985a9) – Add unlimited number of contact forms to WordPress website.
|
112 |
+
* [Contact Form to DB](http://bestwebsoft.com/products/contact-form-to-db/?k=d7d962591b5be0ce6c27af778b1b36ee) – Save and manage contact form messages. Never lose important data.
|
113 |
+
* [Updater](http://bestwebsoft.com/products/updater/?k=982fae837f4c6e3b152183537448dbca) – Automatically check and update WordPress website core with all installed plugins and themes to the latest versions.
|
114 |
|
115 |
+
= Donate =
|
116 |
|
117 |
+
Donations play an important role in supporting open-source projects. We greatly appreciate any donation you can make to help us continue further development of free products.
|
118 |
+
|
119 |
+
[Donate Now](http://bestwebsoft.com/donate/)
|
120 |
|
121 |
== Installation ==
|
122 |
|
125 |
3. You can adjust the necessary settings using your WordPress admin panel in "BWS Panel" > "Contact Form".
|
126 |
4. Create a page or a post and insert the shortcode [bestwebsoft_contact_form] into the text.
|
127 |
|
128 |
+
[View a PDF version of Step-by-step Instruction on Contact Form Installation](https://docs.google.com/document/d/1obcWMPDPIIhUxcclYDwKSwNoFSHvGHyg_VKibjpQWTA/).
|
129 |
|
130 |
+
http://www.youtube.com/watch?v=VdsM7L-tmBA
|
131 |
|
132 |
== Frequently Asked Questions ==
|
133 |
|
159 |
|
160 |
1. Please check the plugin settings '/wp-admin/admin.php?page=contact_form.php' => 'What to use?' => change the lines from wp-mail to mail and vice versa.
|
161 |
2. Email messages can be marked as spam on the server. Please choose another email instead of the admin's one ('Use this email:' block) - for example, gmail or similar. If the message is sent, it means that email filtering is set on your server. Please contact your hosting provider.
|
162 |
+
3. Perhaps email sending is not set. You should install an extra plugin called [SMTP by BestWebSoft](http://bestwebsoft.com/products/smtp/) and configure it. Afterwards you should open the "Send A Test Email" tab on the plugin settings page, check an option "Display log", send a test email and you will see if the plugin logs have errors.
|
163 |
|
164 |
Note: If the Contact Form sends letters, but you don't receive them, you can install our plugin Contact Form to DB in order not to lose the sent letters for the time the problem is being solved.
|
165 |
|
169 |
|
170 |
= I have some problems with the plugin's work. What Information should I provide to receive proper support? =
|
171 |
|
172 |
+
Please make sure that the problem hasn't been discussed yet on our forum (<http://support.bestwebsoft.com>). If no, please provide the following data along with your problem's description:
|
173 |
|
174 |
+
1. the link to the page where the problem occurs
|
175 |
+
2. the name of the plugin and its version. If you are using a pro version - your order number.
|
176 |
+
3. the version of your WordPress installation
|
177 |
+
4. copy and paste into the message your system status report. Please read more here: [Instruction on System Status](https://docs.google.com/document/d/1Wi2X8RdRGXk9kMszQy1xItJrpN0ncXgioH935MaBKtc/edit)
|
178 |
|
179 |
== Screenshots ==
|
180 |
|
196 |
|
197 |
== Changelog ==
|
198 |
|
199 |
+
= V4.0.2 - 15.08.2016 =
|
200 |
+
* Bugfix : XSS vulnerability was removed.
|
201 |
+
* Bugfix : The bug with displaying google captcha has been fixed.
|
202 |
+
|
203 |
= V4.0.1 - 19.07.2016 =
|
204 |
* Update : An ability to enable/disable Captcha, Google Captcha, Subscribe checkbox and an ability to save email to the database for each multi forms (if Contact Form Multi is activated).
|
205 |
* Update : Color picker script was replaced.
|
656 |
|
657 |
== Upgrade Notice ==
|
658 |
|
659 |
+
= V4.0.2 =
|
660 |
+
* Bugs fixed.
|
661 |
+
|
662 |
= V4.0.1 =
|
663 |
* Functionality improved.
|
664 |
|