Contact Form by BestWebSoft - Version 3.96

Version Description

  • 04.12.2015 =
  • Bugfix : The bug with sorting on mobile devices was fixed.
  • Bugfix : XSS vulnerability was removed.
  • Bugfix : The bug with plugin menu duplicating was fixed.
  • Update : The French language file is updated.
Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Contact Form by BestWebSoft
Version 3.96
Comparing to
See all releases

Code changes from version 3.95 to 3.96

bws_menu/bws_functions.php CHANGED
@@ -1,19 +1,45 @@
1
  <?php
2
  /*
3
  * General functions for BestWebSoft plugins
4
- * Version: 1.1.3
5
  */
6
 
 
 
 
 
7
  if ( ! function_exists ( 'bws_add_general_menu' ) ) {
8
  function bws_add_general_menu() {
9
- add_menu_page( 'BWS Plugins', 'BWS Plugins', 'manage_options', 'bws_plugins', 'bws_add_menu_render', plugins_url( 'images/px.png', __FILE__ ), 1001 );
10
  }
11
  }
12
 
13
  /**
14
- * Function check if plugin is compatible with current WP version - for old plugin version
15
  * @return void
16
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  if ( ! function_exists ( 'bws_wp_version_check' ) ) {
18
  function bws_wp_version_check( $plugin_basename, $plugin_info, $require_wp ) {
19
  bws_wp_min_version_check( $plugin_basename, $plugin_info, '3.8' , $require_wp );
@@ -328,13 +354,19 @@ if ( ! function_exists( 'bws_go_pro_tab_check' ) ) {
328
  }
329
  }
330
 
331
- /* compatibility function (Menu Version: 1.7.6) */
 
 
 
332
  if ( ! function_exists( 'bws_go_pro_tab' ) ) {
333
  function bws_go_pro_tab( $plugin_info, $plugin_basename, $page, $pro_page, $bws_license_plugin, $link_slug, $link_key, $link_pn, $pro_plugin_is_activated = false, $trial_days_number = false ) {
334
  bws_go_pro_tab_show( false, $plugin_info, $plugin_basename, $page, $pro_page, $bws_license_plugin, $link_slug, $link_key, $link_pn, $pro_plugin_is_activated, $trial_days_number );
335
  }
336
  }
337
 
 
 
 
338
  if ( ! function_exists( 'bws_go_pro_tab_show' ) ) {
339
  function bws_go_pro_tab_show( $bws_hide_premium_options_check, $plugin_info, $plugin_basename, $page, $pro_page, $bws_license_plugin, $link_slug, $link_key, $link_pn, $pro_plugin_is_activated = false, $trial_days_number = false ) {
340
  global $wp_version, $bstwbsftwppdtplgns_options;
@@ -686,7 +718,9 @@ if ( ! function_exists( 'bws_hide_premium_options' ) ) {
686
  global $current_user;
687
  if ( ! $current_user )
688
  get_currentuserinfo();
689
-
 
 
690
  $options['hide_premium_options'][] = $current_user->ID;
691
 
692
  return array(
@@ -701,7 +735,7 @@ if ( ! function_exists( 'bws_hide_premium_options_check' ) ) {
701
  if ( ! $current_user )
702
  get_currentuserinfo();
703
 
704
- if ( isset( $options['hide_premium_options'] ) && in_array( $current_user->ID, $options['hide_premium_options'] ) )
705
  return true;
706
  else
707
  return false;
@@ -922,11 +956,11 @@ if ( ! class_exists( 'BWS_admin_tooltip' ) ) {
922
  }
923
 
924
  if ( ! function_exists ( 'bws_form_restore_default_settings' ) ) {
925
- function bws_form_restore_default_settings( $plugin_basename ) { ?>
926
  <form method="post" action="">
927
  <p><?php _e( 'Restore all plugin settings to defaults', 'bestwebsoft' ); ?></p>
928
  <p>
929
- <input type="submit" class="button" value="<?php _e( 'Restore settings', 'bestwebsoft' ); ?>" />
930
  </p>
931
  <input type="hidden" name="bws_restore_default" value="submit" />
932
  <?php wp_nonce_field( $plugin_basename, 'bws_settings_nonce_name' ); ?>
@@ -961,12 +995,14 @@ if ( ! function_exists( 'bws_add_editor_buttons' ) ) {
961
  }
962
  }
963
  }
 
964
  if ( ! function_exists( 'bws_add_buttons' ) ){
965
  function bws_add_buttons( $plugin_array ) {
966
  $plugin_array['add_bws_shortcode'] = plugins_url( 'js/shortcode-button.js', __FILE__ );
967
  return $plugin_array;
968
  }
969
  }
 
970
  if ( ! function_exists( 'bws_register_buttons' ) ) {
971
  function bws_register_buttons( $buttons ) {
972
  array_push( $buttons, 'add_bws_shortcode' ); /* dropcap', 'recentposts */
1
  <?php
2
  /*
3
  * General functions for BestWebSoft plugins
 
4
  */
5
 
6
+ /**
7
+ * Function add BWS Plugins page - for old plugin version
8
+ * @deprecated 1.7.9
9
+ */
10
  if ( ! function_exists ( 'bws_add_general_menu' ) ) {
11
  function bws_add_general_menu() {
12
+ bws_general_menu();
13
  }
14
  }
15
 
16
  /**
17
+ * Function add BWS Plugins page
18
  * @return void
19
  */
20
+ if ( ! function_exists ( 'bws_general_menu' ) ) {
21
+ function bws_general_menu() {
22
+ global $menu, $bws_general_menu_exist;
23
+
24
+ if ( ! $bws_general_menu_exist ) {
25
+ /* we check also menu exist in global array as in old plugins $bws_general_menu_exist variable not exist */
26
+ foreach ( $menu as $value_menu ) {
27
+ if ( 'bws_plugins' == $value_menu[2] ) {
28
+ $bws_general_menu_exist = true;
29
+ return;
30
+ }
31
+ }
32
+
33
+ add_menu_page( 'BWS Plugins', 'BWS Plugins', 'manage_options', 'bws_plugins', 'bws_add_menu_render', plugins_url( 'images/px.png', __FILE__ ), 1001 );
34
+ $bws_general_menu_exist = true;
35
+ }
36
+ }
37
+ }
38
+
39
+ /**
40
+ * Function check if plugin is compatible with current WP version - for old plugin version
41
+ * @deprecated 1.7.4
42
+ */
43
  if ( ! function_exists ( 'bws_wp_version_check' ) ) {
44
  function bws_wp_version_check( $plugin_basename, $plugin_info, $require_wp ) {
45
  bws_wp_min_version_check( $plugin_basename, $plugin_info, '3.8' , $require_wp );
354
  }
355
  }
356
 
357
+ /**
358
+ * Function display GO PRO tab - for old plugin version
359
+ * @deprecated 1.7.6
360
+ */
361
  if ( ! function_exists( 'bws_go_pro_tab' ) ) {
362
  function bws_go_pro_tab( $plugin_info, $plugin_basename, $page, $pro_page, $bws_license_plugin, $link_slug, $link_key, $link_pn, $pro_plugin_is_activated = false, $trial_days_number = false ) {
363
  bws_go_pro_tab_show( false, $plugin_info, $plugin_basename, $page, $pro_page, $bws_license_plugin, $link_slug, $link_key, $link_pn, $pro_plugin_is_activated, $trial_days_number );
364
  }
365
  }
366
 
367
+ /**
368
+ * Function display GO PRO tab
369
+ */
370
  if ( ! function_exists( 'bws_go_pro_tab_show' ) ) {
371
  function bws_go_pro_tab_show( $bws_hide_premium_options_check, $plugin_info, $plugin_basename, $page, $pro_page, $bws_license_plugin, $link_slug, $link_key, $link_pn, $pro_plugin_is_activated = false, $trial_days_number = false ) {
372
  global $wp_version, $bstwbsftwppdtplgns_options;
718
  global $current_user;
719
  if ( ! $current_user )
720
  get_currentuserinfo();
721
+ if ( ! isset( $options['hide_premium_options'] ) || ! is_array( $options['hide_premium_options'] ) )
722
+ $options['hide_premium_options'] = array();
723
+
724
  $options['hide_premium_options'][] = $current_user->ID;
725
 
726
  return array(
735
  if ( ! $current_user )
736
  get_currentuserinfo();
737
 
738
+ if ( ! empty( $options['hide_premium_options'] ) && in_array( $current_user->ID, $options['hide_premium_options'] ) )
739
  return true;
740
  else
741
  return false;
956
  }
957
 
958
  if ( ! function_exists ( 'bws_form_restore_default_settings' ) ) {
959
+ function bws_form_restore_default_settings( $plugin_basename, $change_permission_attr = '' ) { ?>
960
  <form method="post" action="">
961
  <p><?php _e( 'Restore all plugin settings to defaults', 'bestwebsoft' ); ?></p>
962
  <p>
963
+ <input <?php echo $change_permission_attr; ?> type="submit" class="button" value="<?php _e( 'Restore settings', 'bestwebsoft' ); ?>" />
964
  </p>
965
  <input type="hidden" name="bws_restore_default" value="submit" />
966
  <?php wp_nonce_field( $plugin_basename, 'bws_settings_nonce_name' ); ?>
995
  }
996
  }
997
  }
998
+
999
  if ( ! function_exists( 'bws_add_buttons' ) ){
1000
  function bws_add_buttons( $plugin_array ) {
1001
  $plugin_array['add_bws_shortcode'] = plugins_url( 'js/shortcode-button.js', __FILE__ );
1002
  return $plugin_array;
1003
  }
1004
  }
1005
+
1006
  if ( ! function_exists( 'bws_register_buttons' ) ) {
1007
  function bws_register_buttons( $buttons ) {
1008
  array_push( $buttons, 'add_bws_shortcode' ); /* dropcap', 'recentposts */
bws_menu/bws_include.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php
2
  /*
3
  * Get latest version
4
- * Version: 1.0.0
5
  */
6
 
7
  if ( ! function_exists ( 'bws_include_init' ) ) {
1
  <?php
2
  /*
3
  * Get latest version
 
4
  */
5
 
6
  if ( ! function_exists ( 'bws_include_init' ) ) {
bws_menu/bws_menu.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Function for displaying BestWebSoft menu
4
- * Version: 1.7.7
5
  */
6
 
7
  if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
@@ -613,8 +613,7 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
613
  }
614
  } ?>
615
  <div class="wrap">
616
- <div class="icon32 icon32-bws" id="icon-options-general"></div>
617
- <h2>
618
  <span class="bws_main title">BestWebSoft</span>
619
  <ul class="subsubsub bws_title_menu">
620
  <li><a href="<?php echo esc_url( 'http://support.bestwebsoft.com/home' ); ?>" target="_blank"><?php _e( 'Need help?', 'bestwebsoft' ); ?></a></li> |
@@ -622,12 +621,10 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
622
  <li><a class="bws_system_status <?php if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=system_status"><?php _e( 'System status', 'bestwebsoft' ); ?></a></li>
623
  </ul>
624
  <div class="clear"></div>
625
- </h2>
626
  <h2 class="nav-tab-wrapper">
627
  <a class="nav-tab<?php if ( !isset( $_GET['action'] ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
628
- <?php if ( $wp_version >= '3.4' ) { ?>
629
- <a class="nav-tab<?php if ( isset( $_GET['action'] ) && 'themes' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=themes"><?php _e( 'Themes', 'bestwebsoft' ); ?></a>
630
- <?php } ?>
631
  </h2>
632
  <?php if ( ! isset( $_GET['action'] ) ) { ?>
633
  <ul class="subsubsub">
@@ -637,7 +634,7 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
637
  </ul>
638
  <div class="clear"></div>
639
  <?php if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
640
- <h4 class="bws_installed"><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
641
  <?php foreach ( $all_plugins as $key_plugin => $value_plugin ) {
642
  if ( isset( $bws_plugins_pro[ $key_plugin ] ) )
643
  $key_plugin = $bws_plugins_pro[ $key_plugin ];
@@ -755,7 +752,7 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
755
  } ?>
756
  <div class="clear"></div>
757
  <?php if ( ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
758
- <h4 class="bws_recommended"><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
759
  <?php foreach ( $recommend_plugins as $key_plugin => $value_plugin ) {
760
 
761
  if ( isset( $bws_plugins[ $key_plugin ] ) ) {
1
  <?php
2
  /*
3
  * Function for displaying BestWebSoft menu
4
+ * Version: 1.8.0
5
  */
6
 
7
  if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
613
  }
614
  } ?>
615
  <div class="wrap">
616
+ <h1>
 
617
  <span class="bws_main title">BestWebSoft</span>
618
  <ul class="subsubsub bws_title_menu">
619
  <li><a href="<?php echo esc_url( 'http://support.bestwebsoft.com/home' ); ?>" target="_blank"><?php _e( 'Need help?', 'bestwebsoft' ); ?></a></li> |
621
  <li><a class="bws_system_status <?php if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=system_status"><?php _e( 'System status', 'bestwebsoft' ); ?></a></li>
622
  </ul>
623
  <div class="clear"></div>
624
+ </h1>
625
  <h2 class="nav-tab-wrapper">
626
  <a class="nav-tab<?php if ( !isset( $_GET['action'] ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
627
+ <a class="nav-tab<?php if ( isset( $_GET['action'] ) && 'themes' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=themes"><?php _e( 'Themes', 'bestwebsoft' ); ?></a>
 
 
628
  </h2>
629
  <?php if ( ! isset( $_GET['action'] ) ) { ?>
630
  <ul class="subsubsub">
634
  </ul>
635
  <div class="clear"></div>
636
  <?php if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
637
+ <h3 class="bws_installed"><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h3>
638
  <?php foreach ( $all_plugins as $key_plugin => $value_plugin ) {
639
  if ( isset( $bws_plugins_pro[ $key_plugin ] ) )
640
  $key_plugin = $bws_plugins_pro[ $key_plugin ];
752
  } ?>
753
  <div class="clear"></div>
754
  <?php if ( ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
755
+ <h3 class="bws_recommended"><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h3>
756
  <?php foreach ( $recommend_plugins as $key_plugin => $value_plugin ) {
757
 
758
  if ( isset( $bws_plugins[ $key_plugin ] ) ) {
bws_menu/css/general_style.css CHANGED
@@ -392,8 +392,6 @@ span.bws_code {
392
  .rtl .bws_hidden_help_text:before {
393
  margin-right: -2px;
394
  }
395
-
396
-
397
  /* bws shortcode insert */
398
  #bws_shortcode_content,
399
  #bws_shortcode_select_plugin {
392
  .rtl .bws_hidden_help_text:before {
393
  margin-right: -2px;
394
  }
 
 
395
  /* bws shortcode insert */
396
  #bws_shortcode_content,
397
  #bws_shortcode_select_plugin {
bws_menu/css/style.css CHANGED
@@ -24,15 +24,15 @@
24
  float: left;
25
  margin-right: 30px;
26
  }
27
- h4.bws_installed,
28
- h4.bws_recommended {
29
  color: #999;
30
  font-weight: bold;
31
  text-transform: uppercase;
32
  font-size: 14px;
33
  }
34
- h4.bws_installed:before,
35
- h4.bws_recommended:before {
36
  border-radius: 9px;
37
  content: "";
38
  display: inline-block;
@@ -42,10 +42,10 @@ h4.bws_recommended:before {
42
  width: 8px;
43
  margin-right: 7px;
44
  }
45
- h4.bws_recommended:before {
46
  background: #0074a2;
47
  }
48
- h4.bws_installed:before {
49
  background: #00a22e;
50
  }
51
  .bws_product_box {
24
  float: left;
25
  margin-right: 30px;
26
  }
27
+ .bws_installed,
28
+ .bws_recommended {
29
  color: #999;
30
  font-weight: bold;
31
  text-transform: uppercase;
32
  font-size: 14px;
33
  }
34
+ .bws_installed:before,
35
+ .bws_recommended:before {
36
  border-radius: 9px;
37
  content: "";
38
  display: inline-block;
42
  width: 8px;
43
  margin-right: 7px;
44
  }
45
+ .bws_recommended:before {
46
  background: #0074a2;
47
  }
48
+ .bws_installed:before {
49
  background: #00a22e;
50
  }
51
  .bws_product_box {
bws_menu/js/bws_tooltip.js CHANGED
@@ -34,7 +34,7 @@
34
  });
35
  /* function to display pointer */
36
  function displayPointer( cssSelector ) {
37
- cssSelector.pointer(pointer_options).pointer({
38
  pointerClass: 'wp-pointer ' + pointer_options["tooltip_id"],
39
  content: pointer_options['content'],
40
  position: {
34
  });
35
  /* function to display pointer */
36
  function displayPointer( cssSelector ) {
37
+ cssSelector.pointer( pointer_options ).pointer({
38
  pointerClass: 'wp-pointer ' + pointer_options["tooltip_id"],
39
  content: pointer_options['content'],
40
  position: {
bws_menu/js/shortcode-button.js CHANGED
@@ -1,122 +1,124 @@
1
- (function($) {
2
- var win;
3
- tinymce.create( 'tinymce.plugins.BWSButton', {
4
- /**
5
- * Initializes the plugin, this will be executed after the plugin has been created.
6
- * This call is done before the editor instance has finished it's initialization so use the onInit event
7
- * of the editor instance to intercept that event.
8
- *
9
- * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
10
- * @param {string} url Absolute URL to where the plugin is located.
11
- */
12
- init : function( ed, url ) {
13
- ed.addButton( 'add_bws_shortcode', {
14
- title : bws_shortcode_button.title,
15
- classes: 'bws_shortcode_button widget btn',
16
- image : bws_shortcode_button.icon_url,
17
- onclick: function() {
18
- if ( bws_shortcode_button.wp_version < '3.9' ) {
19
- /* triggers the thickbox */
20
- var width = jQuery(window).width(), H = jQuery(window).height(), W = ( 720 < width ) ? 720 : width;
21
- W = W - 80;
22
- H = H - 84;
23
- tb_show( bws_shortcode_button.title, '#TB_inline?width=' + W + '&height=' + H + '&inlineId=bws_shortcode_popup' );
24
-
25
- var current_object = '#TB_ajaxContent';
26
- } else {
27
- win = ed.windowManager.open( {
28
- width: 400,
29
- height: 400,
30
- inline: true,
31
- title: bws_shortcode_button.title,
32
- body: {
33
- id : 'bws-shortcode-content',
34
- type: 'container',
35
- classes: 'bws-shortcode',
36
- html: $( '#bws_shortcode_popup' ).html()
37
- },
38
- buttons: [{
39
- text: 'Insert',
40
- classes: 'button-primary primary bws_shortcode_insert',
41
- onclick: function( e ) {
42
- var shortcode = $( '.mce-container-body #bws_shortcode_display' ).text();
43
- if ( '' != shortcode ) {
44
- /* insert shortcode to tinymce */
45
- ed.insertContent( shortcode );
46
- }
47
- ed.windowManager.close();
 
 
48
  },
49
- },
50
- {
51
- text: 'Cancel',
52
- onclick: 'close'
53
- }],
54
-
55
- });
56
- var current_object = '.mce-container-body';
57
- }
58
- var select_count = $( current_object + ' select#bws_shortcode_select option').length;
59
- if ( 1 == select_count ) {
60
- $( current_object + ' #bws_shortcode_select_plugin' ).hide();
61
- }
62
-
63
- var plugin = $( current_object + ' #bws_shortcode_select option:selected' ).val();
64
- $( current_object + ' #bws_shortcode_content > div' ).hide();
65
- $( current_object + ' #bws_shortcode_content > #' + plugin ).show();
66
-
67
- if ( $( current_object + ' #bws_shortcode_content > #' + plugin + ' .bws_default_shortcode' ).length > 0 ) {
68
- $( current_object + ' #bws_shortcode_display' ).text( $( current_object + ' #bws_shortcode_content > #' + plugin + ' .bws_default_shortcode' ).val() );
69
- }
70
 
71
- $( current_object + ' #bws_shortcode_select' ).on( 'change',function() {
72
  var plugin = $( current_object + ' #bws_shortcode_select option:selected' ).val();
73
  $( current_object + ' #bws_shortcode_content > div' ).hide();
74
  $( current_object + ' #bws_shortcode_content > #' + plugin ).show();
 
75
  if ( $( current_object + ' #bws_shortcode_content > #' + plugin + ' .bws_default_shortcode' ).length > 0 ) {
76
  $( current_object + ' #bws_shortcode_display' ).text( $( current_object + ' #bws_shortcode_content > #' + plugin + ' .bws_default_shortcode' ).val() );
77
- } else {
78
- $( current_object + ' #bws_shortcode_display' ).text( '' );
79
  }
80
- });
81
 
82
- $.each( bws_shortcode_button.function_name, function( index, value ) {
83
- eval( value + '();' );
84
- });
85
- }
86
- });
87
- },
88
-
89
- /**
90
- * Creates control instances based in the incomming name. This method is normally not
91
- * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
92
- * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
93
- * method can be used to create those.
94
- *
95
- * @param {String} n Name of the control to create.
96
- * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
97
- * @return {tinymce.ui.Control} New control instance or null if no control was created.
98
- */
99
- createControl : function(n, cm) {
100
- return null;
101
- },
102
-
103
- /**
104
- * Returns information about the plugin as a name/value array.
105
- * The current keys are longname, author, authorurl, infourl and version.
106
- *
107
- * @return {Object} Name/value array containing information about the plugin.
108
- */
109
- getInfo : function() {
110
- return {
111
- longname : 'BWS Shortcode Buttons',
112
- author : 'BWS',
113
- authorurl : 'http://bestwebsoft.com',
114
- infourl : '',
115
- version : "0.1"
116
- };
117
- }
118
- });
119
-
120
- /* Register plugin */
121
- tinymce.PluginManager.add( 'add_bws_shortcode', tinymce.plugins.BWSButton );
 
 
 
 
 
 
 
 
 
 
 
 
122
  })(jQuery);
1
+ (function($) {
2
+ if ( typeof bws_shortcode_button != 'undefined' ) {
3
+ var win;
4
+ tinymce.create( 'tinymce.plugins.BWSButton', {
5
+ /**
6
+ * Initializes the plugin, this will be executed after the plugin has been created.
7
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
8
+ * of the editor instance to intercept that event.
9
+ *
10
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
11
+ * @param {string} url Absolute URL to where the plugin is located.
12
+ */
13
+ init : function( ed, url ) {
14
+ ed.addButton( 'add_bws_shortcode', {
15
+ title : bws_shortcode_button.title,
16
+ classes: 'bws_shortcode_button widget btn',
17
+ image : bws_shortcode_button.icon_url,
18
+ onclick: function() {
19
+ if ( bws_shortcode_button.wp_version < '3.9' ) {
20
+ /* triggers the thickbox */
21
+ var width = jQuery(window).width(), H = jQuery(window).height(), W = ( 720 < width ) ? 720 : width;
22
+ W = W - 80;
23
+ H = H - 84;
24
+ tb_show( bws_shortcode_button.title, '#TB_inline?width=' + W + '&height=' + H + '&inlineId=bws_shortcode_popup' );
25
+
26
+ var current_object = '#TB_ajaxContent';
27
+ } else {
28
+ win = ed.windowManager.open( {
29
+ width: 400,
30
+ height: 400,
31
+ inline: true,
32
+ title: bws_shortcode_button.title,
33
+ body: {
34
+ id : 'bws-shortcode-content',
35
+ type: 'container',
36
+ classes: 'bws-shortcode',
37
+ html: $( '#bws_shortcode_popup' ).html()
38
+ },
39
+ buttons: [{
40
+ text: 'Insert',
41
+ classes: 'button-primary primary bws_shortcode_insert',
42
+ onclick: function( e ) {
43
+ var shortcode = $( '.mce-container-body #bws_shortcode_display' ).text();
44
+ if ( '' != shortcode ) {
45
+ /* insert shortcode to tinymce */
46
+ ed.insertContent( shortcode );
47
+ }
48
+ ed.windowManager.close();
49
+ },
50
  },
51
+ {
52
+ text: 'Cancel',
53
+ onclick: 'close'
54
+ }],
55
+
56
+ });
57
+ var current_object = '.mce-container-body';
58
+ }
59
+ var select_count = $( current_object + ' select#bws_shortcode_select option').length;
60
+ if ( 1 == select_count ) {
61
+ $( current_object + ' #bws_shortcode_select_plugin' ).hide();
62
+ }
 
 
 
 
 
 
 
 
 
63
 
 
64
  var plugin = $( current_object + ' #bws_shortcode_select option:selected' ).val();
65
  $( current_object + ' #bws_shortcode_content > div' ).hide();
66
  $( current_object + ' #bws_shortcode_content > #' + plugin ).show();
67
+
68
  if ( $( current_object + ' #bws_shortcode_content > #' + plugin + ' .bws_default_shortcode' ).length > 0 ) {
69
  $( current_object + ' #bws_shortcode_display' ).text( $( current_object + ' #bws_shortcode_content > #' + plugin + ' .bws_default_shortcode' ).val() );
 
 
70
  }
 
71
 
72
+ $( current_object + ' #bws_shortcode_select' ).on( 'change',function() {
73
+ var plugin = $( current_object + ' #bws_shortcode_select option:selected' ).val();
74
+ $( current_object + ' #bws_shortcode_content > div' ).hide();
75
+ $( current_object + ' #bws_shortcode_content > #' + plugin ).show();
76
+ if ( $( current_object + ' #bws_shortcode_content > #' + plugin + ' .bws_default_shortcode' ).length > 0 ) {
77
+ $( current_object + ' #bws_shortcode_display' ).text( $( current_object + ' #bws_shortcode_content > #' + plugin + ' .bws_default_shortcode' ).val() );
78
+ } else {
79
+ $( current_object + ' #bws_shortcode_display' ).text( '' );
80
+ }
81
+ });
82
+
83
+ $.each( bws_shortcode_button.function_name, function( index, value ) {
84
+ eval( value + '();' );
85
+ });
86
+ }
87
+ });
88
+ },
89
+
90
+ /**
91
+ * Creates control instances based in the incomming name. This method is normally not
92
+ * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
93
+ * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
94
+ * method can be used to create those.
95
+ *
96
+ * @param {String} n Name of the control to create.
97
+ * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
98
+ * @return {tinymce.ui.Control} New control instance or null if no control was created.
99
+ */
100
+ createControl : function(n, cm) {
101
+ return null;
102
+ },
103
+
104
+ /**
105
+ * Returns information about the plugin as a name/value array.
106
+ * The current keys are longname, author, authorurl, infourl and version.
107
+ *
108
+ * @return {Object} Name/value array containing information about the plugin.
109
+ */
110
+ getInfo : function() {
111
+ return {
112
+ longname : 'BWS Shortcode Buttons',
113
+ author : 'BWS',
114
+ authorurl : 'http://bestwebsoft.com',
115
+ infourl : '',
116
+ version : "0.1"
117
+ };
118
+ }
119
+ });
120
+
121
+ /* Register plugin */
122
+ tinymce.PluginManager.add( 'add_bws_shortcode', tinymce.plugins.BWSButton );
123
+ }
124
  })(jQuery);
bws_menu/languages/bestwebsoft-fr_FR.mo CHANGED
Binary file
bws_menu/languages/bestwebsoft-fr_FR.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: bestwebsoft\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-10-09 14:42+0300\n"
6
- "PO-Revision-Date: 2015-10-09 14:42+0300\n"
7
- "Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
8
  "Language-Team: Luc Capronnier <lcapronnier@yahoo.com>\n"
9
  "Language: fr_FR\n"
10
  "MIME-Version: 1.0\n"
@@ -14,17 +14,20 @@ msgstr ""
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "Plural-Forms: nplurals=2;plural=n>2;\n"
17
- "X-Generator: Poedit 1.5.7\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
- #: bws_functions.php:39
21
- #: bws_functions.php:63
22
  msgid "requires"
23
  msgstr "obligatoire"
24
 
25
  #: bws_functions.php:41
26
- msgid "or higher, that is why it has been deactivated! Please upgrade WordPress and try again."
27
- msgstr "ou supérieure, c'est pourquoi il a été désactivé! Merci de faire la mise à jour de WordPress puis de ré-essayer."
 
 
 
 
28
 
29
  #: bws_functions.php:42
30
  msgid "Back to the WordPress"
@@ -35,8 +38,12 @@ msgid "Plugins page"
35
  msgstr "Page des extensions"
36
 
37
  #: bws_functions.php:65
38
- msgid "or higher! We do not guarantee that our plugin will work correctly. Please upgrade to WordPress latest version."
 
 
39
  msgstr ""
 
 
40
 
41
  #: bws_functions.php:122
42
  msgid "It’s time to upgrade your"
@@ -52,16 +59,19 @@ msgstr "version"
52
 
53
  #: bws_functions.php:123
54
  msgid "Extend standard plugin functionality with new great options."
55
- msgstr "Etend les fonctionalités classiques de l'extension avec des nouvelles options."
 
 
56
 
57
- #: bws_functions.php:126
58
- #: bws_functions.php:561
59
  msgid "Learn More"
60
  msgstr "En savoir plus"
61
 
62
  #: bws_functions.php:143
63
  msgid "If you enjoy our plugin, please give it 5 stars on WordPress"
64
- msgstr "Si notre extension vous satisfait, merci de la notée avec 5 étoiles dans Wordpress"
 
 
65
 
66
  #: bws_functions.php:144
67
  msgid "Rate the plugin"
@@ -74,21 +84,22 @@ msgstr "Si vous avez une question, n'hésitez pas à nous contacter"
74
  #: bws_functions.php:179
75
  msgid "Check premium options on the plugin settings page!"
76
  msgstr ""
 
77
 
78
- #: bws_functions.php:186
79
- #: bws_functions.php:222
80
  msgid "Wrong license key"
81
  msgstr "Clé de licence incorrecte"
82
 
83
- #: bws_functions.php:216
84
- #: bws_functions.php:474
85
- #: bws_functions.php:525
86
- msgid "Something went wrong. Please try again later. If the error appears again, please contact us"
87
- msgstr "Il est survenu une erreur. Essayer de nouveau. Si l'erreur se produit de nouveau, merci de contacter <a href=http://support.bestwebsoft.com>BestWebSoft</a>. Nous sommes désolés pour le désagrément."
 
 
 
88
 
89
- #: bws_functions.php:216
90
- #: bws_functions.php:474
91
- #: bws_functions.php:525
92
  msgid "We are sorry for inconvenience."
93
  msgstr "Nous sommes désolés pour le désagrément."
94
 
@@ -96,69 +107,91 @@ msgstr "Nous sommes désolés pour le désagrément."
96
  msgid "This license key is bind to another site"
97
  msgstr "La clé de licence correspond à un autre site."
98
 
99
- #: bws_functions.php:226
100
- #: bws_functions.php:384
101
- msgid "Unfortunately, you have exceeded the number of available tries per day. Please, upload the plugin manually."
102
- msgstr "Désoler mais vous avez dépassé le nombre d'essai de la journée. Merci de télécharger l'extension manuellement."
 
 
 
103
 
104
  #: bws_functions.php:228
105
- msgid "Unfortunately, Your license has expired. To continue getting top-priority support and plugin updates you should extend it in your"
106
- msgstr "Désoler, votre licence est terminée. Pour continuer à disposer du support rapide et des mises à jour de l'extension vous devez la renouveller dans votre"
 
 
 
 
107
 
108
  #: bws_functions.php:230
109
- #, fuzzy
110
- msgid "Unfortunately, the Pro licence was already installed to this domain. The Pro Trial license can be installed only once."
111
- msgstr "Une licence a déjà été installée sur ce domaine. La licence d'évaluation ne peut-être installée qu'une seule fois."
 
 
 
112
 
113
- #: bws_functions.php:251
114
- #: bws_functions.php:273
115
- #: bws_functions.php:295
116
  msgid "Failed to download the zip archive. Please, upload the plugin manually"
117
- msgstr "Erreur de téléchargement de l'archive ZIP. Merci de télécharger l'extension manuellement."
 
 
118
 
119
  #: bws_functions.php:263
120
  msgid "Failed to open the zip archive. Please, upload the plugin manually"
121
- msgstr "Erreur d'ouverture de l'archive zip. Merci de télécharger l'extension manuellement."
 
 
122
 
123
  #: bws_functions.php:269
124
- msgid "Your server does not support either ZipArchive or Phar. Please, upload the plugin manually"
125
- msgstr "Votre server n'a pas le support du format des archives ZIP ou Phar. Merci de télécharger l'extension manuellement."
 
 
 
 
126
 
127
  #: bws_functions.php:276
128
  msgid "UploadDir is not writable. Please, upload the plugin manually"
129
- msgstr "Erreur d'ouverture de l'archive zip. Merci de télécharger l'extension manuellement."
 
 
130
 
131
  #: bws_functions.php:299
132
- msgid "Something went wrong. Try again later or upload the plugin manually. We are sorry for inconvenience."
133
- msgstr "Il est survenu une erreur. Essayer de nouveau ou bien télécharger l'extension manuellement.Nous sommes désolés pour le désagrément."
 
 
 
 
134
 
135
  #: bws_functions.php:324
136
  msgid "Please, enter Your license key"
137
  msgstr "Merci de saisir votre clé de licence"
138
 
139
  #: bws_functions.php:348
140
- #, fuzzy
141
- msgid "Congratulations! The Pro version of the plugin is successfully download and activated."
142
- msgstr "Félicitations! La version PRO de cette extension a été téléchargée et activée avec succès."
 
 
 
143
 
144
- #: bws_functions.php:350
145
- #: bws_functions.php:441
146
  msgid "Please, go to"
147
- msgstr "Merci d'allez à"
148
 
149
- #: bws_functions.php:350
150
- #: bws_functions.php:441
151
  msgid "the setting page"
152
  msgstr "Options supplémentaires"
153
 
154
- #: bws_functions.php:351
155
- #: bws_functions.php:442
156
  msgid "You will be redirected automatically in 5 seconds."
157
  msgstr "Vous allez être redirigé automatiquement dans 5 secondes"
158
 
159
  #: bws_functions.php:358
160
  msgid "Show Pro features"
161
- msgstr ""
162
 
163
  #: bws_functions.php:365
164
  msgid "You can download and activate"
@@ -168,18 +201,21 @@ msgstr "Vous pouvez télécharger et activer la version "
168
  msgid "version of this plugin by entering Your license key."
169
  msgstr " de cette extension en donnant votre clé de licence."
170
 
171
- #: bws_functions.php:369
172
- #: bws_functions.php:410
173
- msgid "You can find your license key on your personal page Client area, by clicking on the link"
174
- msgstr "Vous pouvez trouver votre clé de licence sur votre page personnelle dans la zone cliente en cliquant sur le lien"
 
 
 
175
 
176
- #: bws_functions.php:371
177
- #: bws_functions.php:412
178
  msgid "(your username is the email you specify when purchasing the product)."
179
- msgstr "(votre nom d'utilisateur est l'adresse e-mail que vous avez donné lors de l'achat de l'extension)."
 
 
180
 
181
- #: bws_functions.php:375
182
- #: bws_functions.php:659
183
  msgid "or"
184
  msgstr "ou"
185
 
@@ -188,33 +224,36 @@ msgstr "ou"
188
  msgid "Start Your Free %s-Day Trial Now"
189
  msgstr "Débuter votre licence d'évaluation gratuite de %s jours"
190
 
191
- #: bws_functions.php:381
192
- #: bws_functions.php:390
193
- #: bws_functions.php:420
194
- #: bws_functions.php:428
195
- #: bws_menu.php:693
196
- #: bws_menu.php:750
197
  msgid "Activate"
198
  msgstr "Activé"
199
 
200
- #: bws_functions.php:407
201
- #: bws_functions.php:500
202
  #, php-format
203
- msgid "In order to continue using the plugin it is necessary to buy a %s license."
204
- msgstr "Afin de pouvoir continuer à utiliser cette extension il est nécessaire d'acheter une licence %s."
 
 
 
205
 
206
  #: bws_functions.php:408
207
  msgid "After that you can activate it by entering your license key."
208
- msgstr " Après vous pouvez activer cette extension en donnant votre clé de licence."
 
209
 
210
  #: bws_functions.php:422
211
  msgid "Unfortunately, you have exceeded the number of available tries per day."
212
- msgstr "Désoler mais vous avez dépassé le nombre d'essai de la journée. Merci de télécharger l'extension manuellement."
 
 
213
 
214
  #: bws_functions.php:439
215
- #, fuzzy
216
- msgid "Congratulations! The Pro license of the plugin is successfully activated."
217
- msgstr "Félicitations! La version PRO de cette extension a été téléchargée et activée avec succès."
 
 
218
 
219
  #: bws_functions.php:480
220
  msgid "Wrong license key."
@@ -225,20 +264,29 @@ msgid "This license key is bind to another site."
225
  msgstr "La clé de licence correspond à un autre site."
226
 
227
  #: bws_functions.php:484
228
- msgid "This license key is valid, but Your license has expired. If you want to update our plugin in future, you should extend the license."
229
- msgstr "La clé de licence est valide mais votre durée de validité est passée. Pour continuer à disposer du support rapide et des mises à jour de l'extension vous devez la renouveller."
 
 
 
 
 
230
 
231
  #: bws_functions.php:486
232
  msgid "Unfortunately, you have exceeded the number of available tries."
233
- msgstr "Désoler mais vous avez dépassé le nombre d'essai de la journée. Merci de télécharger l'extension manuellement."
 
 
234
 
235
  #: bws_functions.php:488
236
- #, fuzzy
237
- msgid "Unfortunately, the Pro Trial licence was already installed to this domain. The Pro Trial license can be installed only once."
238
- msgstr "Une licence a déjà été installée sur ce domaine. La licence d'évaluation ne peut-être installée qu'une seule fois."
 
 
 
239
 
240
  #: bws_functions.php:492
241
- #, fuzzy
242
  msgid "The Pro Trial license key is valid."
243
  msgstr "La clé de licence d'évaluation est valide."
244
 
@@ -255,12 +303,23 @@ msgid "Please, enter your license key"
255
  msgstr "Merci de saisir votre clé de licence"
256
 
257
  #: bws_functions.php:543
258
- msgid "If needed you can check if the license key is correct or reenter it in the field below. You can find your license key on your personal page - Client area - on our website"
259
- msgstr "Si nécessaire vous pouvez vérifier que la clé de licence est correcte ou la saisir de nouveau dans le champ ci-dessous. Vous pouvez trouver votre clé de licence sur votre page personnelle (zone client) sur notre site web."
 
 
 
 
 
 
260
 
261
  #: bws_functions.php:543
262
- msgid "(your username is the email you specify when purchasing the product). If necessary, please submit \"Lost your password?\" request."
263
- msgstr "(votre nom d'utilisateur est l'adresse e-mail que vous avez donné lors de l'achat de l'extension). Si nécessaire, utilisez la fonction de demande de mot de passe perdu."
 
 
 
 
 
264
 
265
  #: bws_functions.php:547
266
  msgid "Check license key"
@@ -271,42 +330,52 @@ msgid "WARNING: Illegal use notification"
271
  msgstr "AVERTISSEMENT : Notification d'utilisation abusive"
272
 
273
  #: bws_functions.php:561
274
- msgid "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."
275
- msgstr "Nous avons détecté une utilisation abusive de notre extension. Nous vous recommandons de résoudre ce problème dans les 24 heures, sinon l'extension sera rendue inactive. Merci de vous rendre dans votre espace personel"
 
 
 
 
 
 
 
 
 
276
 
277
  #: bws_functions.php:569
278
- #, fuzzy
279
- msgid "Notice: Your Pro Trial license has expired. To continue using the plugin you should buy a Pro license"
280
- msgstr "Votre licence d'évaluation est terminée. Pour continuer à disposer du support rapide et des mises à jour de l'extension vous devez la renouveller."
 
 
 
281
 
282
  #: bws_functions.php:571
283
- msgid "Your license has expired. To continue getting top-priority support and plugin updates you should extend it."
284
- msgstr "Votre licence est terminée. Pour continuer à disposer du support rapide et des mises à jour de l'extension vous devez la renouveller."
 
 
 
 
285
 
286
- #: bws_functions.php:571
287
- #: bws_functions.php:624
288
- #: bws_menu.php:669
289
- #: bws_menu.php:691
290
- #: bws_menu.php:718
291
- #: bws_menu.php:748
292
- #: bws_menu.php:794
293
  msgid "Learn more"
294
  msgstr "En savoir plus"
295
 
296
  #: bws_functions.php:581
297
- #, fuzzy, php-format
298
  msgid "Notice: You are using the Pro Trial license of %s plugin."
299
- msgstr "Avertissement : vous utilisez la version d'évaluation de l'extension %s."
 
300
 
301
  #: bws_functions.php:583
302
- #, fuzzy
303
  msgid "Notice: You are using the Pro Trial license of plugin."
304
  msgstr "Avertissement : vous utilisez la version d'évaluation de l'extension."
305
 
306
  #: bws_functions.php:586
307
- #, fuzzy
308
  msgid "The Pro Trial license will expire on"
309
- msgstr "Votre licence se termine le "
310
 
311
  #: bws_functions.php:624
312
  msgid "You license for"
@@ -318,150 +387,138 @@ msgstr "se termine le"
318
 
319
  #: bws_functions.php:624
320
  msgid "and you won't be granted TOP-PRIORITY SUPPORT or UPDATES."
321
- msgstr "et vous ne diposerez plus du support rapide et des mises à jour."
322
 
323
  #: bws_functions.php:655
324
- #, fuzzy
325
  msgid "Thank you for installing"
326
- msgstr "Merci de nous avoir contacté."
327
 
328
  #: bws_functions.php:656
329
  msgid "Let's get started"
330
- msgstr ""
331
 
332
  #: bws_functions.php:657
333
- #, fuzzy
334
  msgid "Configure Settings"
335
- msgstr "Options du formulaire de Contact"
336
 
337
  #: bws_functions.php:660
338
  msgid "Add New"
339
- msgstr ""
340
 
341
  #: bws_functions.php:664
342
  msgid "Close notice"
343
- msgstr ""
344
 
345
  #: bws_functions.php:677
346
  msgid "Notice"
347
- msgstr ""
348
 
349
  #: bws_functions.php:677
350
  msgid "The plugin's settings have been changed."
351
- msgstr ""
352
 
353
  #: bws_functions.php:678
354
  msgid "Save Changes"
355
  msgstr "Sauvegarder les modifications"
356
 
357
  #: bws_functions.php:693
358
- msgid "You can always look at premium options by clicking on the \"Show Pro features\" in the \"Go PRO\" tab"
 
 
359
  msgstr ""
 
 
360
 
361
  #: bws_functions.php:773
362
- #, fuzzy
363
  msgid "Add BWS Plugins Shortcode"
364
- msgstr "Utiliser le code court"
365
 
366
  #: bws_functions.php:793
367
- #, fuzzy
368
  msgid "Add shortcode"
369
- msgstr "Utiliser le code court"
370
 
371
  #: bws_functions.php:793
372
  msgid "Add BestWebSoft plugins' shortcodes using this button."
373
- msgstr ""
374
 
375
- #: bws_functions.php:833
376
  msgid "Close"
377
  msgstr "Fermer"
378
 
379
- #: bws_functions.php:925
380
  msgid "Restore all plugin settings to defaults"
381
- msgstr ""
382
 
383
- #: bws_functions.php:927
384
- #, fuzzy
385
  msgid "Restore settings"
386
- msgstr "Options supplémentaires"
387
 
388
- #: bws_functions.php:938
389
- #, fuzzy
390
  msgid "Are you sure you want to restore all settings by default?"
391
- msgstr "Etes vous sûr de vouloir supprimer cette langue ?"
392
 
393
- #: bws_functions.php:941
394
  msgid "Yes, restore all settings"
395
- msgstr ""
396
 
397
- #: bws_functions.php:942
398
- #, fuzzy
399
  msgid "No, go back to the settings page"
400
- msgstr "Options supplémentaires"
401
 
402
- #: bws_functions.php:986
403
- #, fuzzy
404
  msgid "Plugin"
405
- msgstr "Extensions"
406
 
407
- #: bws_functions.php:995
408
- #, fuzzy
409
  msgid "Shortcode settings"
410
- msgstr "Options supplémentaires"
411
 
412
- #: bws_functions.php:1000
413
  msgid "The shortcode will be inserted"
414
- msgstr ""
415
 
416
- #: bws_functions.php:1005
417
  msgid "Insert"
418
- msgstr ""
419
 
420
- #: bws_functions.php:1036
421
  msgid "Visit Help Center"
422
- msgstr ""
423
 
424
- #: bws_functions.php:1041
425
  msgid "FAQ"
426
  msgstr "FAQ"
427
 
428
- #: bws_functions.php:1047
429
  msgid "For more information:"
430
- msgstr ""
431
 
432
- #: bws_functions.php:1048
433
  msgid "Documentation"
434
- msgstr ""
435
 
436
- #: bws_functions.php:1049
437
  msgid "Video Instructions"
438
- msgstr ""
439
 
440
- #: bws_functions.php:1050
441
- #, fuzzy
442
  msgid "Submit a Request"
443
- msgstr "Bouton Envoyer"
444
 
445
  #: bws_menu.php:506
446
  msgid "Not set"
447
  msgstr "Not set"
448
 
449
- #: bws_menu.php:508
450
- #: bws_menu.php:509
451
  msgid "On"
452
  msgstr "On"
453
 
454
- #: bws_menu.php:508
455
- #: bws_menu.php:509
456
  msgid "Off"
457
  msgstr "Off"
458
 
459
- #: bws_menu.php:510
460
- #: bws_menu.php:511
461
- #: bws_menu.php:512
462
- #: bws_menu.php:513
463
- #: bws_menu.php:514
464
- #: bws_menu.php:526
465
  msgid "N/A"
466
  msgstr "N/A"
467
 
@@ -469,17 +526,11 @@ msgstr "N/A"
469
  msgid " Mb"
470
  msgstr " Mb"
471
 
472
- #: bws_menu.php:515
473
- #: bws_menu.php:516
474
- #: bws_menu.php:517
475
- #: bws_menu.php:522
476
  msgid "Yes"
477
  msgstr "Yes"
478
 
479
- #: bws_menu.php:515
480
- #: bws_menu.php:516
481
- #: bws_menu.php:517
482
- #: bws_menu.php:524
483
  msgid "No"
484
  msgstr "No"
485
 
@@ -591,8 +642,7 @@ msgstr "Besoin d'aide ?"
591
  msgid "Client area"
592
  msgstr "Espace client"
593
 
594
- #: bws_menu.php:622
595
- #: bws_menu.php:933
596
  msgid "System status"
597
  msgstr "System status"
598
 
@@ -618,33 +668,27 @@ msgstr "Recommandé"
618
 
619
  #: bws_menu.php:640
620
  msgid "Installed plugins"
621
- msgstr "Plugin installé"
622
 
623
- #: bws_menu.php:672
624
- #: bws_menu.php:721
625
  msgid "Settings"
626
  msgstr "Réglages"
627
 
628
- #: bws_menu.php:693
629
- #: bws_menu.php:750
630
  msgid "Activate this plugin"
631
  msgstr "Activer cette extension"
632
 
633
- #: bws_menu.php:708
634
- #: bws_menu.php:738
635
- #: bws_menu.php:784
636
  msgid "Go"
637
  msgstr "Passez"
638
 
639
- #: bws_menu.php:712
640
- #: bws_menu.php:742
641
- #: bws_menu.php:788
642
  msgid "DONATE"
643
  msgstr "Faire un don"
644
 
645
  #: bws_menu.php:758
646
  msgid "Recommended plugins"
647
- msgstr "Plugin recommandé"
648
 
649
  #: bws_menu.php:796
650
  msgid "Install now"
@@ -666,12 +710,12 @@ msgstr "%s installé"
666
 
667
  #: bws_menu.php:866
668
  msgid "Install Now"
669
- msgstr "Installa Ora"
670
 
671
  #: bws_menu.php:869
672
  #, php-format
673
  msgid "Update to version %s"
674
- msgstr "Mettre à jour pour la version %s"
675
 
676
  #: bws_menu.php:869
677
  msgid "Update"
@@ -686,8 +730,7 @@ msgstr "Pré-visualiser %s"
686
  msgid "Preview"
687
  msgstr "Pré-visualiser"
688
 
689
- #: bws_menu.php:882
690
- #: bws_menu.php:914
691
  #, php-format
692
  msgid "By %s"
693
  msgstr "Par %s"
@@ -702,15 +745,15 @@ msgstr "Déjà installé"
702
 
703
  #: bws_menu.php:936
704
  msgid "Environment"
705
- msgstr "Environment"
706
 
707
  #: bws_menu.php:947
708
  msgid "Active Plugins"
709
- msgstr "Plugin actifs"
710
 
711
  #: bws_menu.php:960
712
  msgid "Inactive Plugins"
713
- msgstr "Plugin inactifs"
714
 
715
  #: bws_menu.php:976
716
  msgid "Send to support"
2
  msgstr ""
3
  "Project-Id-Version: bestwebsoft\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-11-17 13:31+0300\n"
6
+ "PO-Revision-Date: 2015-11-17 13:31+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"
10
  "MIME-Version: 1.0\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "Plural-Forms: nplurals=2;plural=n>2;\n"
17
+ "X-Generator: Poedit 1.5.4\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
+ #: bws_functions.php:39 bws_functions.php:63
 
21
  msgid "requires"
22
  msgstr "obligatoire"
23
 
24
  #: bws_functions.php:41
25
+ msgid ""
26
+ "or higher, that is why it has been deactivated! Please upgrade WordPress and "
27
+ "try again."
28
+ msgstr ""
29
+ "ou supérieure, c'est pourquoi il a été désactivé! Merci de faire la mise à "
30
+ "jour de WordPress puis de ré-essayer."
31
 
32
  #: bws_functions.php:42
33
  msgid "Back to the WordPress"
38
  msgstr "Page des extensions"
39
 
40
  #: bws_functions.php:65
41
+ msgid ""
42
+ "or higher! We do not guarantee that our plugin will work correctly. Please "
43
+ "upgrade to WordPress latest version."
44
  msgstr ""
45
+ "ou plus ! Nous ne garantissons pas que notre extension fonctionne "
46
+ "correctement. Merci de mettre à jour Wordpress avec la dernière version."
47
 
48
  #: bws_functions.php:122
49
  msgid "It’s time to upgrade your"
59
 
60
  #: bws_functions.php:123
61
  msgid "Extend standard plugin functionality with new great options."
62
+ msgstr ""
63
+ "Étend les fonctionnalités classiques de l'extension avec des nouvelles "
64
+ "options."
65
 
66
+ #: bws_functions.php:126 bws_functions.php:561
 
67
  msgid "Learn More"
68
  msgstr "En savoir plus"
69
 
70
  #: bws_functions.php:143
71
  msgid "If you enjoy our plugin, please give it 5 stars on WordPress"
72
+ msgstr ""
73
+ "Si notre extension vous satisfait, merci de la notée avec 5 étoiles dans "
74
+ "Wordpress"
75
 
76
  #: bws_functions.php:144
77
  msgid "Rate the plugin"
84
  #: bws_functions.php:179
85
  msgid "Check premium options on the plugin settings page!"
86
  msgstr ""
87
+ "Vérifier les options premium sur la page des paramètres de l'extension!"
88
 
89
+ #: bws_functions.php:186 bws_functions.php:222
 
90
  msgid "Wrong license key"
91
  msgstr "Clé de licence incorrecte"
92
 
93
+ #: bws_functions.php:216 bws_functions.php:474 bws_functions.php:525
94
+ msgid ""
95
+ "Something went wrong. Please try again later. If the error appears again, "
96
+ "please contact us"
97
+ msgstr ""
98
+ "Il est survenu une erreur. Essayer de nouveau. Si l'erreur se produit de "
99
+ "nouveau, merci de contacter <a href=http://support.bestwebsoft."
100
+ "com>BestWebSoft</a>. Nous sommes désolés pour le désagrément."
101
 
102
+ #: bws_functions.php:216 bws_functions.php:474 bws_functions.php:525
 
 
103
  msgid "We are sorry for inconvenience."
104
  msgstr "Nous sommes désolés pour le désagrément."
105
 
107
  msgid "This license key is bind to another site"
108
  msgstr "La clé de licence correspond à un autre site."
109
 
110
+ #: bws_functions.php:226 bws_functions.php:384
111
+ msgid ""
112
+ "Unfortunately, you have exceeded the number of available tries per day. "
113
+ "Please, upload the plugin manually."
114
+ msgstr ""
115
+ "Désoler mais vous avez dépassé le nombre d'essai de la journée. Merci de "
116
+ "télécharger l'extension manuellement."
117
 
118
  #: bws_functions.php:228
119
+ msgid ""
120
+ "Unfortunately, Your license has expired. To continue getting top-priority "
121
+ "support and plugin updates you should extend it in your"
122
+ msgstr ""
123
+ "Désoler, votre licence est terminée. Pour continuer à disposer du support "
124
+ "rapide et des mises à jour de l'extension vous devez la renouveler dans votre"
125
 
126
  #: bws_functions.php:230
127
+ msgid ""
128
+ "Unfortunately, the Pro licence was already installed to this domain. The Pro "
129
+ "Trial license can be installed only once."
130
+ msgstr ""
131
+ "Une licence a déjà été installée sur ce domaine. La licence d'évaluation ne "
132
+ "peut-être installée qu'une seule fois."
133
 
134
+ #: bws_functions.php:251 bws_functions.php:273 bws_functions.php:295
 
 
135
  msgid "Failed to download the zip archive. Please, upload the plugin manually"
136
+ msgstr ""
137
+ "Erreur de téléchargement de l'archive ZIP. Merci de télécharger l'extension "
138
+ "manuellement."
139
 
140
  #: bws_functions.php:263
141
  msgid "Failed to open the zip archive. Please, upload the plugin manually"
142
+ msgstr ""
143
+ "Erreur d'ouverture de l'archive zip. Merci de télécharger l'extension "
144
+ "manuellement."
145
 
146
  #: bws_functions.php:269
147
+ msgid ""
148
+ "Your server does not support either ZipArchive or Phar. Please, upload the "
149
+ "plugin manually"
150
+ msgstr ""
151
+ "Votre serveur n'a pas le support du format des archives ZIP ou Phar. Merci "
152
+ "de télécharger l'extension manuellement."
153
 
154
  #: bws_functions.php:276
155
  msgid "UploadDir is not writable. Please, upload the plugin manually"
156
+ msgstr ""
157
+ "Erreur d'ouverture de l'archive zip. Merci de télécharger l'extension "
158
+ "manuellement."
159
 
160
  #: bws_functions.php:299
161
+ msgid ""
162
+ "Something went wrong. Try again later or upload the plugin manually. We are "
163
+ "sorry for inconvenience."
164
+ msgstr ""
165
+ "Il est survenu une erreur. Essayer de nouveau ou bien télécharger "
166
+ "l'extension manuellement.Nous sommes désolés pour le désagrément."
167
 
168
  #: bws_functions.php:324
169
  msgid "Please, enter Your license key"
170
  msgstr "Merci de saisir votre clé de licence"
171
 
172
  #: bws_functions.php:348
173
+ msgid ""
174
+ "Congratulations! The Pro version of the plugin is successfully download and "
175
+ "activated."
176
+ msgstr ""
177
+ "Félicitations! La version PRO de cette extension a été téléchargée et "
178
+ "activée avec succès."
179
 
180
+ #: bws_functions.php:350 bws_functions.php:441
 
181
  msgid "Please, go to"
182
+ msgstr "Merci d’aller à"
183
 
184
+ #: bws_functions.php:350 bws_functions.php:441
 
185
  msgid "the setting page"
186
  msgstr "Options supplémentaires"
187
 
188
+ #: bws_functions.php:351 bws_functions.php:442
 
189
  msgid "You will be redirected automatically in 5 seconds."
190
  msgstr "Vous allez être redirigé automatiquement dans 5 secondes"
191
 
192
  #: bws_functions.php:358
193
  msgid "Show Pro features"
194
+ msgstr "Voir les fonctionnalités de la version PRO"
195
 
196
  #: bws_functions.php:365
197
  msgid "You can download and activate"
201
  msgid "version of this plugin by entering Your license key."
202
  msgstr " de cette extension en donnant votre clé de licence."
203
 
204
+ #: bws_functions.php:369 bws_functions.php:410
205
+ msgid ""
206
+ "You can find your license key on your personal page Client area, by clicking "
207
+ "on the link"
208
+ msgstr ""
209
+ "Vous pouvez trouver votre clé de licence sur votre page personnelle dans la "
210
+ "zone cliente en cliquant sur le lien"
211
 
212
+ #: bws_functions.php:371 bws_functions.php:412
 
213
  msgid "(your username is the email you specify when purchasing the product)."
214
+ msgstr ""
215
+ "(votre nom d'utilisateur est l'adresse e-mail que vous avez donné lors de "
216
+ "l'achat de l'extension)."
217
 
218
+ #: bws_functions.php:375 bws_functions.php:659
 
219
  msgid "or"
220
  msgstr "ou"
221
 
224
  msgid "Start Your Free %s-Day Trial Now"
225
  msgstr "Débuter votre licence d'évaluation gratuite de %s jours"
226
 
227
+ #: bws_functions.php:381 bws_functions.php:390 bws_functions.php:420
228
+ #: bws_functions.php:428 bws_menu.php:693 bws_menu.php:750
 
 
 
 
229
  msgid "Activate"
230
  msgstr "Activé"
231
 
232
+ #: bws_functions.php:407 bws_functions.php:500
 
233
  #, php-format
234
+ msgid ""
235
+ "In order to continue using the plugin it is necessary to buy a %s license."
236
+ msgstr ""
237
+ "Afin de pouvoir continuer à utiliser cette extension il est nécessaire "
238
+ "d'acheter une licence %s."
239
 
240
  #: bws_functions.php:408
241
  msgid "After that you can activate it by entering your license key."
242
+ msgstr ""
243
+ " Après vous pouvez activer cette extension en donnant votre clé de licence."
244
 
245
  #: bws_functions.php:422
246
  msgid "Unfortunately, you have exceeded the number of available tries per day."
247
+ msgstr ""
248
+ "Désoler mais vous avez dépassé le nombre d'essai de la journée. Merci de "
249
+ "télécharger l'extension manuellement."
250
 
251
  #: bws_functions.php:439
252
+ msgid ""
253
+ "Congratulations! The Pro license of the plugin is successfully activated."
254
+ msgstr ""
255
+ "Félicitations! La version PRO de cette extension a été téléchargée et "
256
+ "activée avec succès."
257
 
258
  #: bws_functions.php:480
259
  msgid "Wrong license key."
264
  msgstr "La clé de licence correspond à un autre site."
265
 
266
  #: bws_functions.php:484
267
+ msgid ""
268
+ "This license key is valid, but Your license has expired. If you want to "
269
+ "update our plugin in future, you should extend the license."
270
+ msgstr ""
271
+ "La clé de licence est valide mais votre durée de validité est passée. Pour "
272
+ "continuer à disposer du support rapide et des mises à jour de l'extension "
273
+ "vous devez la renouveller."
274
 
275
  #: bws_functions.php:486
276
  msgid "Unfortunately, you have exceeded the number of available tries."
277
+ msgstr ""
278
+ "Désoler mais vous avez dépassé le nombre d'essai de la journée. Merci de "
279
+ "télécharger l'extension manuellement."
280
 
281
  #: bws_functions.php:488
282
+ msgid ""
283
+ "Unfortunately, the Pro Trial licence was already installed to this domain. "
284
+ "The Pro Trial license can be installed only once."
285
+ msgstr ""
286
+ "Une licence a déjà été installée sur ce domaine. La licence d'évaluation ne "
287
+ "peut-être installée qu'une seule fois."
288
 
289
  #: bws_functions.php:492
 
290
  msgid "The Pro Trial license key is valid."
291
  msgstr "La clé de licence d'évaluation est valide."
292
 
303
  msgstr "Merci de saisir votre clé de licence"
304
 
305
  #: bws_functions.php:543
306
+ msgid ""
307
+ "If needed you can check if the license key is correct or reenter it in the "
308
+ "field below. You can find your license key on your personal page - Client "
309
+ "area - on our website"
310
+ msgstr ""
311
+ "Si nécessaire vous pouvez vérifier que la clé de licence est correcte ou la "
312
+ "saisir de nouveau dans le champ ci-dessous. Vous pouvez trouver votre clé de "
313
+ "licence sur votre page personnelle (zone client) sur notre site web."
314
 
315
  #: bws_functions.php:543
316
+ msgid ""
317
+ "(your username is the email you specify when purchasing the product). If "
318
+ "necessary, please submit \"Lost your password?\" request."
319
+ msgstr ""
320
+ "(votre nom d'utilisateur est l'adresse e-mail que vous avez donné lors de "
321
+ "l'achat de l'extension). Si nécessaire, utilisez la fonction de demande de "
322
+ "mot de passe perdu."
323
 
324
  #: bws_functions.php:547
325
  msgid "Check license key"
330
  msgstr "AVERTISSEMENT : Notification d'utilisation abusive"
331
 
332
  #: bws_functions.php:561
333
+ msgid ""
334
+ "You can use one license of the Pro plugin for one domain only. Please check "
335
+ "and edit your license or domain if necessary using you personal Client Area. "
336
+ "We strongly recommend you to solve the problem within 24 hours, otherwise "
337
+ "the Pro plugin will be deactivated."
338
+ msgstr ""
339
+ "Vous ne pouvez utilisez qu'une licence de la version Pro de l'extension pour "
340
+ "un seul domaine. Merci de vérifier et de modifier votre licence ou votre "
341
+ "domaine si nécessaire en utilisant votre zone client. Nous vous recommandons "
342
+ "de résoudre ce problème dans les 24 heures, sinon l'extension sera rendue "
343
+ "inactive."
344
 
345
  #: bws_functions.php:569
346
+ msgid ""
347
+ "Notice: Your Pro Trial license has expired. To continue using the plugin you "
348
+ "should buy a Pro license"
349
+ msgstr ""
350
+ "Votre licence d'évaluation est terminée. Pour continuer à disposer du "
351
+ "support rapide et des mises à jour de l'extension vous devez la renouveler."
352
 
353
  #: bws_functions.php:571
354
+ msgid ""
355
+ "Your license has expired. To continue getting top-priority support and "
356
+ "plugin updates you should extend it."
357
+ msgstr ""
358
+ "Votre licence est terminée. Pour continuer à disposer du support rapide et "
359
+ "des mises à jour de l'extension vous devez la renouveller."
360
 
361
+ #: bws_functions.php:571 bws_functions.php:624 bws_menu.php:669
362
+ #: bws_menu.php:691 bws_menu.php:718 bws_menu.php:748 bws_menu.php:794
 
 
 
 
 
363
  msgid "Learn more"
364
  msgstr "En savoir plus"
365
 
366
  #: bws_functions.php:581
367
+ #, php-format
368
  msgid "Notice: You are using the Pro Trial license of %s plugin."
369
+ msgstr ""
370
+ "Avertissement : vous utilisez la version d'évaluation de l'extension %s."
371
 
372
  #: bws_functions.php:583
 
373
  msgid "Notice: You are using the Pro Trial license of plugin."
374
  msgstr "Avertissement : vous utilisez la version d'évaluation de l'extension."
375
 
376
  #: bws_functions.php:586
 
377
  msgid "The Pro Trial license will expire on"
378
+ msgstr "La licence PRO d'évaluation expirera le"
379
 
380
  #: bws_functions.php:624
381
  msgid "You license for"
387
 
388
  #: bws_functions.php:624
389
  msgid "and you won't be granted TOP-PRIORITY SUPPORT or UPDATES."
390
+ msgstr "et vous ne disposerez plus du support rapide et des mises à jour."
391
 
392
  #: bws_functions.php:655
 
393
  msgid "Thank you for installing"
394
+ msgstr "Merci d'avoir installé"
395
 
396
  #: bws_functions.php:656
397
  msgid "Let's get started"
398
+ msgstr "Démarrer"
399
 
400
  #: bws_functions.php:657
 
401
  msgid "Configure Settings"
402
+ msgstr "Configuration des paramètres"
403
 
404
  #: bws_functions.php:660
405
  msgid "Add New"
406
+ msgstr "Ajouter"
407
 
408
  #: bws_functions.php:664
409
  msgid "Close notice"
410
+ msgstr "Effacer l'avertissement"
411
 
412
  #: bws_functions.php:677
413
  msgid "Notice"
414
+ msgstr "Avertissement"
415
 
416
  #: bws_functions.php:677
417
  msgid "The plugin's settings have been changed."
418
+ msgstr "Les paramètres de l'extension ont été modifiés."
419
 
420
  #: bws_functions.php:678
421
  msgid "Save Changes"
422
  msgstr "Sauvegarder les modifications"
423
 
424
  #: bws_functions.php:693
425
+ msgid ""
426
+ "You can always look at premium options by clicking on the \"Show Pro features"
427
+ "\" in the \"Go PRO\" tab"
428
  msgstr ""
429
+ "Vous pouvez toujours consulter les options premium en cliquant sur le lien "
430
+ "\"Voir les fonctionnalités de la version PRO\" dans l'onglet Passer PRO"
431
 
432
  #: bws_functions.php:773
 
433
  msgid "Add BWS Plugins Shortcode"
434
+ msgstr "Ajouter le code court de l'extension BWS"
435
 
436
  #: bws_functions.php:793
 
437
  msgid "Add shortcode"
438
+ msgstr "Ajouter le code court"
439
 
440
  #: bws_functions.php:793
441
  msgid "Add BestWebSoft plugins' shortcodes using this button."
442
+ msgstr "Ajouter le code court des extensions BestWebSoft avec ce bouton."
443
 
444
+ #: bws_functions.php:835
445
  msgid "Close"
446
  msgstr "Fermer"
447
 
448
+ #: bws_functions.php:927
449
  msgid "Restore all plugin settings to defaults"
450
+ msgstr "Remettre les valeurs par défaut des paramètres de l'extension"
451
 
452
+ #: bws_functions.php:929
 
453
  msgid "Restore settings"
454
+ msgstr "Remettre les paramètres"
455
 
456
+ #: bws_functions.php:940
 
457
  msgid "Are you sure you want to restore all settings by default?"
458
+ msgstr "Êtes vous sûr de vouloir remettre toutes les valeurs par défaut ?"
459
 
460
+ #: bws_functions.php:943
461
  msgid "Yes, restore all settings"
462
+ msgstr "Oui, remettre les valeurs par défaut"
463
 
464
+ #: bws_functions.php:944
 
465
  msgid "No, go back to the settings page"
466
+ msgstr "Non, retourner à la page des paramètres"
467
 
468
+ #: bws_functions.php:988
 
469
  msgid "Plugin"
470
+ msgstr "Extension"
471
 
472
+ #: bws_functions.php:997
 
473
  msgid "Shortcode settings"
474
+ msgstr "Paramètres du code court"
475
 
476
+ #: bws_functions.php:1002
477
  msgid "The shortcode will be inserted"
478
+ msgstr "Le code court sera inséré"
479
 
480
+ #: bws_functions.php:1007
481
  msgid "Insert"
482
+ msgstr "Insérer"
483
 
484
+ #: bws_functions.php:1038
485
  msgid "Visit Help Center"
486
+ msgstr "Visiter le site du support"
487
 
488
+ #: bws_functions.php:1043
489
  msgid "FAQ"
490
  msgstr "FAQ"
491
 
492
+ #: bws_functions.php:1049
493
  msgid "For more information:"
494
+ msgstr "Pour plus d'informations&nbsp;:"
495
 
496
+ #: bws_functions.php:1050
497
  msgid "Documentation"
498
+ msgstr "Documentation"
499
 
500
+ #: bws_functions.php:1051
501
  msgid "Video Instructions"
502
+ msgstr "Vidéo explicative"
503
 
504
+ #: bws_functions.php:1052
 
505
  msgid "Submit a Request"
506
+ msgstr "Soumettre une requête"
507
 
508
  #: bws_menu.php:506
509
  msgid "Not set"
510
  msgstr "Not set"
511
 
512
+ #: bws_menu.php:508 bws_menu.php:509
 
513
  msgid "On"
514
  msgstr "On"
515
 
516
+ #: bws_menu.php:508 bws_menu.php:509
 
517
  msgid "Off"
518
  msgstr "Off"
519
 
520
+ #: bws_menu.php:510 bws_menu.php:511 bws_menu.php:512 bws_menu.php:513
521
+ #: bws_menu.php:514 bws_menu.php:526
 
 
 
 
522
  msgid "N/A"
523
  msgstr "N/A"
524
 
526
  msgid " Mb"
527
  msgstr " Mb"
528
 
529
+ #: bws_menu.php:515 bws_menu.php:516 bws_menu.php:517 bws_menu.php:522
 
 
 
530
  msgid "Yes"
531
  msgstr "Yes"
532
 
533
+ #: bws_menu.php:515 bws_menu.php:516 bws_menu.php:517 bws_menu.php:524
 
 
 
534
  msgid "No"
535
  msgstr "No"
536
 
642
  msgid "Client area"
643
  msgstr "Espace client"
644
 
645
+ #: bws_menu.php:622 bws_menu.php:933
 
646
  msgid "System status"
647
  msgstr "System status"
648
 
668
 
669
  #: bws_menu.php:640
670
  msgid "Installed plugins"
671
+ msgstr "Extensions installées"
672
 
673
+ #: bws_menu.php:672 bws_menu.php:721
 
674
  msgid "Settings"
675
  msgstr "Réglages"
676
 
677
+ #: bws_menu.php:693 bws_menu.php:750
 
678
  msgid "Activate this plugin"
679
  msgstr "Activer cette extension"
680
 
681
+ #: bws_menu.php:708 bws_menu.php:738 bws_menu.php:784
 
 
682
  msgid "Go"
683
  msgstr "Passez"
684
 
685
+ #: bws_menu.php:712 bws_menu.php:742 bws_menu.php:788
 
 
686
  msgid "DONATE"
687
  msgstr "Faire un don"
688
 
689
  #: bws_menu.php:758
690
  msgid "Recommended plugins"
691
+ msgstr "Extensions recommandées"
692
 
693
  #: bws_menu.php:796
694
  msgid "Install now"
710
 
711
  #: bws_menu.php:866
712
  msgid "Install Now"
713
+ msgstr "Installer maintenant"
714
 
715
  #: bws_menu.php:869
716
  #, php-format
717
  msgid "Update to version %s"
718
+ msgstr "Mettre à jour avec la version %s"
719
 
720
  #: bws_menu.php:869
721
  msgid "Update"
730
  msgid "Preview"
731
  msgstr "Pré-visualiser"
732
 
733
+ #: bws_menu.php:882 bws_menu.php:914
 
734
  #, php-format
735
  msgid "By %s"
736
  msgstr "Par %s"
745
 
746
  #: bws_menu.php:936
747
  msgid "Environment"
748
+ msgstr "Environnent"
749
 
750
  #: bws_menu.php:947
751
  msgid "Active Plugins"
752
+ msgstr "Extensions actives"
753
 
754
  #: bws_menu.php:960
755
  msgid "Inactive Plugins"
756
+ msgstr "Extensions inactives"
757
 
758
  #: bws_menu.php:976
759
  msgid "Send to support"
contact_form.php CHANGED
@@ -6,7 +6,7 @@ Description: Plugin for Contact Form.
6
  Author: BestWebSoft
7
  Text Domain: contact-form-plugin
8
  Domain Path: /languages
9
- Version: 3.95
10
  Author URI: http://bestwebsoft.com/
11
  License: GPLv2 or later
12
  */
@@ -33,7 +33,7 @@ License: GPLv2 or later
33
  */
34
  if ( ! function_exists( 'cntctfrm_admin_menu' ) ) {
35
  function cntctfrm_admin_menu() {
36
- bws_add_general_menu( plugin_basename( __FILE__ ) );
37
  $cntctfrm_settings = add_submenu_page( 'bws_plugins', __( 'Contact Form Settings', 'contact-form-plugin' ), __( 'Contact Form', 'contact-form-plugin' ), 'manage_options', 'contact_form.php', 'cntctfrm_settings_page' );
38
  add_action( 'load-' . $cntctfrm_settings, 'cntctfrm_add_tabs' );
39
  }
@@ -488,7 +488,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
488
  }
489
  }
490
 
491
- $cntctfrm_layout = ( isset( $_POST['cntctfrm_layout'] ) ) ? (int) $_POST[ 'cntctfrm_layout' ] : 1;
492
 
493
  $cntctfrm_submit_position = ( isset( $_POST['cntctfrm_submit_position'] ) ) ? stripslashes( esc_html( $_POST['cntctfrm_submit_position'] ) ) : 'left';
494
 
@@ -822,11 +822,9 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
822
  $cntctfrm_options = $cntctfrm_option_defaults;
823
  update_option( 'cntctfrm_options', $cntctfrm_options );
824
  $message = __( 'All plugin settings were restored.', 'contact-form-plugin' );
825
- } /* end */
826
- ?>
827
  <div class="wrap">
828
- <div class="icon32 icon32-bws" id="icon-options-general"></div>
829
- <h2><?php _e( "Contact Form Settings", 'contact-form-plugin' ); ?></h2>
830
  <ul class="subsubsub cntctfrm_how_to_use">
831
  <li><a href="https://docs.google.com/document/d/1qZYPJhkSdVyyM6XO5WfiBcTS2Sa9_9UMn4vS2g48JRY/" target="_blank"><?php _e( 'How to Use Step-by-step Instruction', 'contact-form-plugin' ); ?></a></li>
832
  </ul>
@@ -846,27 +844,25 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
846
  </noscript>
847
  <?php } ?>
848
  <div class="updated fade" <?php if ( $message == "" || "" != $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $message; ?></strong></p></div>
 
849
  <?php bws_show_settings_notice();
850
  if ( ! empty( $hide_result['message'] ) ) { ?>
851
  <div class="updated fade"><p><strong><?php echo $hide_result['message']; ?></strong></p></div>
852
  <?php }
853
  if ( ! empty( $notice ) ) { ?>
854
  <div class="error"><p><strong><?php _e( 'Notice:', 'contact-form-plugin' ); ?></strong> <?php echo $notice; ?></p></div>
855
- <?php } ?>
856
- <div class="error" <?php if ( "" == $error ) echo 'style="display:none"'; ?>><p><strong><?php echo $error; ?></strong></p></div>
857
- <?php if ( ! isset( $_GET['action'] ) || 'additional' == $_GET['action'] ) {
 
 
 
 
 
858
  if ( isset( $_REQUEST['bws_restore_default'] ) && check_admin_referer( $plugin_basename, 'bws_settings_nonce_name' ) ) {
859
  bws_form_restore_default_confirm( $plugin_basename );
860
- } else {
861
- /* main 'settings' or 'additional' settings page */
862
- if ( ! isset( $contact_form_multi_active ) && ! isset( $contact_form_multi_pro_active ) ) { ?>
863
- <h2 class="nav-tab-wrapper">
864
- <li class="nav-tab nav-tab-active"><?php _e( 'NEW_FORM', 'contact-form-plugin' )?></li>
865
- <a id="cntctfrm_show_multi_notice" class="nav-tab" target="_new" href="http://bestwebsoft.com/products/contact-form-multi/?k=747ca825fb44711e2d24e40697747bc6&pn=77&v=<?php echo $cntctfrm_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>" title="<?php _e( "If you want to create multiple contact forms, please install the Contact Form Multi plugin.", 'contact-form-plugin' ); ?>">+</a>
866
- </h2>
867
- <?php }
868
- $form_action = ( ! isset( $_GET['action'] ) ) ? 'admin.php?page=contact_form.php' : 'admin.php?page=contact_form.php&amp;action=' . $_GET['action']; ?>
869
- <form id="cntctfrm_settings_form" class="bws_form" method="post" action="<?php echo esc_url( $form_action ); ?>">
870
  <div style="margin: 20px 0;">
871
  <?php printf( __( "If you would like to add a Contact Form to your page or post, please use %s button", 'contact-form-plugin' ),
872
  '<span class="bws_code"><img style="vertical-align: sub;" src="' . plugins_url( 'bws_menu/images/shortcode-icon.png', __FILE__ ) . '" alt=""/></span>'
@@ -1048,7 +1044,10 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1048
  <tr valign="top" >
1049
  <td><?php _e( "Department selectbox", 'contact-form-plugin' ); ?></td>
1050
  <td class="bws_pro_version"></td>
1051
- <td class="bws_pro_version"><input disabled="disabled" type="checkbox" name="cntctfrm_required_department_field" value="1"/></td>
 
 
 
1052
  <td class="bws_pro_version"></td>
1053
  <td class="bws_pro_version"></td>
1054
  <td class="bws_pro_version"></td>
@@ -1056,11 +1055,23 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1056
  <?php } ?>
1057
  <tr valign="top">
1058
  <td><?php _e( "Name", 'contact-form-plugin' ); ?></td>
1059
- <td><input type="checkbox" name="cntctfrm_display_name_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_display_name_field'] ) echo 'checked="checked" '; ?>/></td>
1060
- <td><input type="checkbox" id="cntctfrm_required_name_field" name="cntctfrm_required_name_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_name_field'] ) echo 'checked="checked" '; ?>/></td>
 
 
 
 
 
 
1061
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1062
- <td class="bws_pro_version"><input disabled="disabled" type="checkbox" name="cntctfrmpr_visible_name" value="1" checked="checked" /></td>
1063
- <td class="bws_pro_version"><input disabled="disabled" type="checkbox" name="cntctfrmpr_disabled_name" value="1" /></td>
 
 
 
 
 
 
1064
  <td class="bws_pro_version">
1065
  <input disabled="disabled" type="checkbox" name="cntctfrmpr_default_name" value="1" />
1066
  <?php _e( "Use User's name as a default value if the user is logged in.", 'contact-form-plugin' ); ?><br />
@@ -1071,17 +1082,34 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1071
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1072
  <tr valign="top">
1073
  <td><?php _e( "Location selectbox", 'contact-form-plugin' ); ?></td>
1074
- <td class="bws_pro_version"><input disabled="disabled" type="checkbox" name="cntctfrmpr_display_selectbox" value="1" /></td>
1075
- <td class="bws_pro_version"><input disabled="disabled" type="checkbox" name="cntctfrmpr_required_selectbox" value="1" /></td>
 
 
 
 
 
 
1076
  <td class="bws_pro_version"></td>
1077
  <td class="bws_pro_version"></td>
1078
- <td class="bws_pro_version"><input disabled="disabled" type="file" name="cntctfrmpr_default_location"></td>
 
 
 
 
 
1079
  </tr>
1080
  <?php } ?>
1081
  <tr valign="top">
1082
  <td><?php _e( "Address", 'contact-form-plugin' ); ?></td>
1083
- <td><input type="checkbox" id="cntctfrm_display_address_field" name="cntctfrm_display_address_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_display_address_field'] ) echo 'checked="checked" '; ?>/></td>
1084
- <td><input type="checkbox" id="cntctfrm_required_address_field" name="cntctfrm_required_address_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_address_field'] ) echo 'checked="checked" '; ?>/></td>
 
 
 
 
 
 
1085
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1086
  <td></td>
1087
  <td></td>
@@ -1091,10 +1119,19 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1091
  <tr valign="top">
1092
  <td><?php _e( "Email Address", 'contact-form-plugin' ); ?></td>
1093
  <td></td>
1094
- <td><input type="checkbox" id="cntctfrm_required_email_field" name="cntctfrm_required_email_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_email_field'] ) echo 'checked="checked" '; ?>/></td>
 
 
 
1095
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1096
- <td class="bws_pro_version"><input disabled="disabled" type="checkbox" name="cntctfrmpr_visible_email" value="1" checked="checked" /></td>
1097
- <td class="bws_pro_version"><input disabled="disabled" type="checkbox" name="cntctfrmpr_disabled_email" value="1" /></td>
 
 
 
 
 
 
1098
  <td class="bws_pro_version">
1099
  <input disabled="disabled" type="checkbox" name="cntctfrmpr_default_email" value="1" />
1100
  <?php _e( "Use User's email as a default value if the user is logged in.", 'contact-form-plugin' ); ?><br />
@@ -1104,8 +1141,14 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1104
  </tr>
1105
  <tr valign="top">
1106
  <td><?php _e( "Phone number", 'contact-form-plugin' ); ?></td>
1107
- <td><input type="checkbox" id="cntctfrm_display_phone_field" name="cntctfrm_display_phone_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_display_phone_field'] ) echo 'checked="checked" '; ?>/></td>
1108
- <td><input type="checkbox" id="cntctfrm_required_phone_field" name="cntctfrm_required_phone_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_phone_field'] ) echo 'checked="checked" '; ?>/></td>
 
 
 
 
 
 
1109
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1110
  <td></td>
1111
  <td></td>
@@ -1115,21 +1158,49 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1115
  <tr valign="top">
1116
  <td><?php _e( "Subject", 'contact-form-plugin' ); ?></td>
1117
  <td></td>
1118
- <td><input type="checkbox" id="cntctfrm_required_subject_field" name="cntctfrm_required_subject_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_subject_field'] ) echo 'checked="checked" '; ?>/></td>
 
 
 
1119
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1120
- <td class="bws_pro_version"><input class="subject" disabled="disabled" type="checkbox" name="cntctfrmpr_visible_subject" value="1" checked="checked" /></td>
1121
- <td class="bws_pro_version"><input class="subject" disabled="disabled" type="checkbox" name="cntctfrmpr_disabled_subject" value="1" /></td>
1122
- <td class="bws_pro_version"><input class="subject" disabled="disabled" type="text" name="cntctfrmpr_default_subject" value="" /></td>
 
 
 
 
 
 
 
 
 
 
 
1123
  <?php } ?>
1124
  </tr>
1125
  <tr valign="top">
1126
  <td><?php _e( "Message", 'contact-form-plugin' ); ?></td>
1127
  <td></td>
1128
- <td><input type="checkbox" id="cntctfrm_required_message_field" name="cntctfrm_required_message_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_message_field'] ) echo 'checked="checked" '; ?>/></td>
 
 
 
1129
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1130
- <td class="bws_pro_version"><input class="message" disabled="disabled" type="checkbox" name="cntctfrmpr_visible_message" value="1" checked="checked" /></td>
1131
- <td class="bws_pro_version"><input class="message" disabled="disabled" disabled="disabled" type="checkbox" name="cntctfrmpr_disabled_message" value="1" /></td>
1132
- <td class="bws_pro_version"><input class="message" disabled="disabled" type="text" name="cntctfrmpr_default_message" value="" /></td>
 
 
 
 
 
 
 
 
 
 
 
1133
  <?php } ?>
1134
  </tr>
1135
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
@@ -1155,7 +1226,10 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1155
  <div class="bws_hidden_help_text" style="min-width: 200px;"><?php echo __( "Users can attach the following file formats", 'contact-form-plugin' ) . ": html, txt, css, gif, png, jpeg, jpg, tiff, bmp, ai, eps, ps, csv, rtf, pdf, doc, docx, xls, xlsx, zip, rar, wav, mp3, ppt, aar, sce"; ?></div>
1156
  </div>
1157
  </td>
1158
- <td><input type="checkbox" id="cntctfrm_attachment" name="cntctfrm_attachment" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_attachment'] ) echo 'checked="checked" '; ?>/></td>
 
 
 
1159
  <td></td>
1160
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1161
  <td></td>
@@ -1168,7 +1242,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1168
  <table class="form-table" style="width:auto;">
1169
  <tr valign="top">
1170
  <th scope="row"><?php _e( "Add to the form", 'contact-form-plugin' ); ?></th>
1171
- <td colspan="3">
1172
  <div>
1173
  <label>
1174
  <input type="checkbox" id="cntctfrm_attachment_explanations" name="cntctfrm_attachment_explanations" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_attachment_explanations'] && '1' == $cntctfrm_options['cntctfrm_attachment'] ) echo 'checked="checked" '; ?>/>
@@ -1227,7 +1301,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1227
  </div>
1228
  </div>
1229
  <?php } ?>
1230
- </td>
1231
  </tr>
1232
  <tr valign="top">
1233
  <th scope="row"><?php _e( "Delete an attachment file from the server after the email is sent", 'contact-form-plugin' ); ?> </th>
@@ -1306,9 +1380,9 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1306
  <input type="text" maxlength="250" name="cntctfrm_form_error[en]" value="<?php echo $cntctfrm_options['cntctfrm_form_error']['en']; ?>" /> <span class="bws_info"><?php _e( "Error message for the whole form", 'contact-form-plugin' ); ?></span><br />
1307
  </div>
1308
  <?php if ( ! isset( $contact_form_multi_active ) && ! isset( $contact_form_multi_pro_active ) ) { ?>
1309
- <span class="bws_info" style="margin-left: 5px;"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=en]</span> <?php _e( "or", 'contact-form-plugin' ) ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
1310
  <?php } else { ?>
1311
- <span class="bws_info" style="margin-left: 5px;"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=en id=<?php echo $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "or", '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>
1312
  <?php } ?>
1313
  </div>
1314
  <?php if ( ! empty( $cntctfrm_options['cntctfrm_language'] ) ) {
@@ -1340,9 +1414,9 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1340
  <input type="text" maxlength="250" name="cntctfrm_form_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['cntctfrm_form_error'][ $val ] ) ) echo $cntctfrm_options['cntctfrm_form_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message for the whole form", 'contact-form-plugin' ); ?></span><br />
1341
  </div>
1342
  <?php if ( ! isset( $contact_form_multi_active ) && ! isset( $contact_form_multi_pro_active ) ) { ?>
1343
- <span class="bws_info" 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>
1344
  <?php } else { ?>
1345
- <span class="bws_info" style="margin-left: 5px;"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=<?php $val . ' id=' . $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
1346
  <?php } ?>
1347
  </div>
1348
  <?php }
@@ -1369,9 +1443,9 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1369
  <div class="cntctfrm_language_tab cntctfrm_tab_en" style=" padding: 5px 10px 5px 5px;">
1370
  <input type="text" maxlength="250" name="cntctfrm_thank_text[en]" value="<?php echo $cntctfrm_options['cntctfrm_thank_text']['en']; ?>" /> <span class="bws_info"><?php _e( "Text", 'contact-form-plugin' ); ?></span><br />
1371
  <?php if ( ! isset( $contact_form_multi_active ) && ! isset( $contact_form_multi_pro_active ) ) { ?>
1372
- <span class="bws_info"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=en]</span> <?php _e( "or", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
1373
  <?php } else { ?>
1374
- <span class="bws_info"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=en id=<?php echo $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "or", '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>
1375
  <?php } ?>
1376
  </div>
1377
  <?php if ( ! empty( $cntctfrm_options['cntctfrm_language'] ) ) {
@@ -1379,9 +1453,9 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1379
  <div class="cntctfrm_language_tab hidden cntctfrm_tab_<?php echo $val; ?>" style=" padding: 5px 10px 5px 5px;">
1380
  <label><input type="text" maxlength="250" name="cntctfrm_thank_text[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['cntctfrm_thank_text'][ $val ] ) ) echo $cntctfrm_options['cntctfrm_thank_text'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Text", 'contact-form-plugin' ); ?></span></label><br />
1381
  <?php if ( ! isset( $contact_form_multi_active ) && ! isset( $contact_form_multi_pro_active ) ) { ?>
1382
- <span class="bws_info"><?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>
1383
  <?php } else { ?>
1384
- <span class="bws_info"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=<?php echo $val . ' id=' . $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
1385
  <?php } ?>
1386
  </div>
1387
  <?php }
@@ -1452,14 +1526,7 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1452
  </p>
1453
  </div>
1454
  </noscript>
1455
- <?php if ( ! isset( $contact_form_multi_active ) && ! isset( $contact_form_multi_pro_active ) ) { ?>
1456
- <h2 class="nav-tab-wrapper">
1457
- <li class="nav-tab nav-tab-active"><?php _e( 'NEW_FORM', 'contact-form-plugin' )?></li>
1458
- <a id="cntctfrm_show_multi_notice" class="nav-tab" target="_new" href="http://bestwebsoft.com/products/contact-form-multi/?k=747ca825fb44711e2d24e40697747bc6&pn=77&v=<?php echo $cntctfrm_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>" title="<?php _e( "If you want to create multiple contact forms, please install the Contact Form Multi plugin.", 'contact-form-plugin' ); ?>">+</a>
1459
- </h2>
1460
- <?php } ?>
1461
- <div class="clear"></div>
1462
- <form id="cntctfrm_settings_form" class="bws_form" method="post" action="admin.php?page=contact_form.php&action=appearance">
1463
  <div id="cntctfrm_appearance_wrap" class="cntctfrm_appearance_<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
1464
  <div id="<?php echo is_rtl() ? 'cntctfrm_right_table' : 'cntctfrm_left_table'; ?>">
1465
  <table class="form-table" style="width:auto;">
@@ -1800,26 +1867,22 @@ if ( ! function_exists( 'cntctfrm_settings_page' ) ) {
1800
  ( is_plugin_active( 'google-captcha/google-captcha.php' ) && ( isset( $gglcptch_options ) && 1 == $gglcptch_options['contact_form'] ) ) ||
1801
  ( is_plugin_active( 'google-captcha-pro/google-captcha-pro.php' ) && ( isset( $gglcptchpr_options ) && 1 == $gglcptchpr_options['contact_form'] ) ) ) {
1802
 
1803
- $cntctfrm_captcha_label = $cntctfrm_captcha_required_symbol = '';
1804
  if ( is_plugin_active( 'captcha/captcha.php' ) && ( isset( $cptch_options ) && 1 == $cptch_options['cptch_contact_form'] ) ) {
1805
  $cntctfrm_captcha_label = $cptch_options['cptch_label_form'];
1806
  $cntctfrm_captcha_required_symbol = sprintf( ' <span class="required">%s</span>', ( isset( $cptch_options['cptch_required_symbol'] ) ) ? $cptch_options['cptch_required_symbol'] : '' );
1807
- }
1808
- if ( is_plugin_active( 'captcha-plus/captcha-plus.php' ) && ( isset( $cptchpls_options ) && 1 == $cptchpls_options['cptchpls_contact_form'] ) ) {
1809
- $cntctfrm_captcha_label = $cptchpls_options['cptch_label_form'];
1810
- $cntctfrm_captcha_required_symbol = sprintf( ' <span class="required">%s</span>', ( isset( $cptchpls_options['cptch_required_symbol'] ) ) ? $cptchpls_options['cptch_required_symbol'] : '' );
1811
- }
1812
- if ( is_plugin_active( 'captcha-pro/captcha_pro.php' ) && ( isset( $cptchpr_options ) && 1 == $cptchpr_options['cptchpr_contact_form'] ) ) {
1813
- $cntctfrm_captcha_label = $cptchpr_options['cptch_label_form'];
1814
- $cntctfrm_captcha_required_symbol = sprintf( ' <span class="required">%s</span>', ( isset( $cptchpr_options['cptch_required_symbol'] ) ) ? $cptchpr_options['cptch_required_symbol'] : '' );
1815
  }
1816
  if ( ! empty( $cntctfrm_captcha_label ) ) {
1817
  $cntctfrm_display_captcha_label = sprintf( '%1$s%2$s', $cntctfrm_captcha_label, $cntctfrm_captcha_required_symbol );
1818
  } else {
1819
  $cntctfrm_display_captcha_label = '';
1820
- }
1821
-
1822
- ?>
1823
  <li class="cntctfrm_field_wrap">
1824
  <div class="cntctfrm_label cntctfrm_label_captcha">
1825
  <label><?php echo $cntctfrm_display_captcha_label; ?></label>
@@ -1933,7 +1996,7 @@ if ( ! function_exists( 'cntctfrm_display_form' ) ) {
1933
  }
1934
  }
1935
 
1936
- $page_url = add_query_arg( array() ) . '#cntctfrm_contact_form';
1937
 
1938
  /* If contact form submited */
1939
 
@@ -2743,6 +2806,9 @@ if ( ! function_exists ( 'cntctfrm_admin_head' ) ) {
2743
  'cntctfrm_confirm_text' => __( 'Are you sure that you want to delete this language data?', 'contact-form-plugin' )
2744
  );
2745
 
 
 
 
2746
  wp_enqueue_script( 'cntctfrm_script', plugins_url( 'js/script.js', __FILE__ ), array( 'jquery', 'jquery-ui-sortable' ) );
2747
  wp_localize_script( 'cntctfrm_script', 'cntctfrm_ajax', $script_vars );
2748
 
@@ -2771,7 +2837,7 @@ if ( ! function_exists ( 'cntctfrm_admin_head' ) ) {
2771
  ),
2772
  'position' => array(
2773
  'edge' => 'top',
2774
- 'align' => 'left',
2775
  ),
2776
  );
2777
  bws_add_tooltip_in_admin( $tooltip_args );
@@ -3095,13 +3161,11 @@ if ( ! function_exists ( 'cntctfrm_shortcode_button_content' ) ) {
3095
  if ( ! function_exists( 'cntctfrm_add_tabs' ) ) {
3096
  function cntctfrm_add_tabs() {
3097
  $screen = get_current_screen();
3098
- if ( isset( $_GET['page'] ) && $_GET['page'] == 'contact_form.php' ) {
3099
- $args = array(
3100
- 'id' => 'cntctfrm',
3101
- 'section' => '200538909'
3102
- );
3103
- bws_help_tab( $screen, $args );
3104
- }
3105
  }
3106
  }
3107
 
6
  Author: BestWebSoft
7
  Text Domain: contact-form-plugin
8
  Domain Path: /languages
9
+ Version: 3.96
10
  Author URI: http://bestwebsoft.com/
11
  License: GPLv2 or later
12
  */
33
  */
34
  if ( ! function_exists( 'cntctfrm_admin_menu' ) ) {
35
  function cntctfrm_admin_menu() {
36
+ bws_general_menu();
37
  $cntctfrm_settings = add_submenu_page( 'bws_plugins', __( 'Contact Form Settings', 'contact-form-plugin' ), __( 'Contact Form', 'contact-form-plugin' ), 'manage_options', 'contact_form.php', 'cntctfrm_settings_page' );
38
  add_action( 'load-' . $cntctfrm_settings, 'cntctfrm_add_tabs' );
39
  }
488
  }
489
  }
490
 
491
+ $cntctfrm_layout = ( isset( $_POST['cntctfrm_layout'] ) ) ? (int) $_POST['cntctfrm_layout'] : 1;
492
 
493
  $cntctfrm_submit_position = ( isset( $_POST['cntctfrm_submit_position'] ) ) ? stripslashes( esc_html( $_POST['cntctfrm_submit_position'] ) ) : 'left';
494
 
822
  $cntctfrm_options = $cntctfrm_option_defaults;
823
  update_option( 'cntctfrm_options', $cntctfrm_options );
824
  $message = __( 'All plugin settings were restored.', 'contact-form-plugin' );
825
+ } /* end */ ?>
 
826
  <div class="wrap">
827
+ <h1><?php _e( "Contact Form Settings", 'contact-form-plugin' ); ?></h1>
 
828
  <ul class="subsubsub cntctfrm_how_to_use">
829
  <li><a href="https://docs.google.com/document/d/1qZYPJhkSdVyyM6XO5WfiBcTS2Sa9_9UMn4vS2g48JRY/" target="_blank"><?php _e( 'How to Use Step-by-step Instruction', 'contact-form-plugin' ); ?></a></li>
830
  </ul>
844
  </noscript>
845
  <?php } ?>
846
  <div class="updated fade" <?php if ( $message == "" || "" != $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $message; ?></strong></p></div>
847
+ <div class="error" <?php if ( "" == $error ) echo 'style="display:none"'; ?>><p><strong><?php echo $error; ?></strong></p></div>
848
  <?php bws_show_settings_notice();
849
  if ( ! empty( $hide_result['message'] ) ) { ?>
850
  <div class="updated fade"><p><strong><?php echo $hide_result['message']; ?></strong></p></div>
851
  <?php }
852
  if ( ! empty( $notice ) ) { ?>
853
  <div class="error"><p><strong><?php _e( 'Notice:', 'contact-form-plugin' ); ?></strong> <?php echo $notice; ?></p></div>
854
+ <?php }
855
+ if ( ( ! isset( $_GET['action'] ) || 'go_pro' != $_GET['action'] ) && ! isset( $contact_form_multi_active ) && ! isset( $contact_form_multi_pro_active ) ) { ?>
856
+ <h3 class="nav-tab-wrapper">
857
+ <span class="nav-tab nav-tab-active"><?php _e( 'NEW_FORM', 'contact-form-plugin' )?></span>
858
+ <a id="cntctfrm_show_multi_notice" class="nav-tab" target="_new" href="http://bestwebsoft.com/products/contact-form-multi/?k=747ca825fb44711e2d24e40697747bc6&pn=77&v=<?php echo $cntctfrm_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>" title="<?php _e( "If you want to create multiple contact forms, please install the Contact Form Multi plugin.", 'contact-form-plugin' ); ?>">+</a>
859
+ </h3>
860
+ <?php }
861
+ if ( ! isset( $_GET['action'] ) || 'additional' == $_GET['action'] ) {
862
  if ( isset( $_REQUEST['bws_restore_default'] ) && check_admin_referer( $plugin_basename, 'bws_settings_nonce_name' ) ) {
863
  bws_form_restore_default_confirm( $plugin_basename );
864
+ } else { ?>
865
+ <form id="cntctfrm_settings_form" class="bws_form" method="post" action="">
 
 
 
 
 
 
 
 
866
  <div style="margin: 20px 0;">
867
  <?php printf( __( "If you would like to add a Contact Form to your page or post, please use %s button", 'contact-form-plugin' ),
868
  '<span class="bws_code"><img style="vertical-align: sub;" src="' . plugins_url( 'bws_menu/images/shortcode-icon.png', __FILE__ ) . '" alt=""/></span>'
1044
  <tr valign="top" >
1045
  <td><?php _e( "Department selectbox", 'contact-form-plugin' ); ?></td>
1046
  <td class="bws_pro_version"></td>
1047
+ <td class="bws_pro_version">
1048
+ <label><input disabled="disabled" type="checkbox" name="cntctfrm_required_department_field" value="1" />
1049
+ <span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
1050
+ </td>
1051
  <td class="bws_pro_version"></td>
1052
  <td class="bws_pro_version"></td>
1053
  <td class="bws_pro_version"></td>
1055
  <?php } ?>
1056
  <tr valign="top">
1057
  <td><?php _e( "Name", 'contact-form-plugin' ); ?></td>
1058
+ <td>
1059
+ <label><input type="checkbox" name="cntctfrm_display_name_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_display_name_field'] ) echo 'checked="checked" '; ?>/>
1060
+ <span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
1061
+ </td>
1062
+ <td>
1063
+ <label><input type="checkbox" id="cntctfrm_required_name_field" name="cntctfrm_required_name_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_name_field'] ) echo 'checked="checked" '; ?> />
1064
+ <span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
1065
+ </td>
1066
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1067
+ <td class="bws_pro_version">
1068
+ <label><input disabled="disabled" type="checkbox" name="cntctfrmpr_visible_name" value="1" checked="checked" />
1069
+ <span class="cntctfrm_mobile_title"><?php _e( "Visible", 'contact-form-plugin' ); ?></span></label>
1070
+ </td>
1071
+ <td class="bws_pro_version">
1072
+ <label><input disabled="disabled" type="checkbox" name="cntctfrmpr_disabled_name" value="1" />
1073
+ <span class="cntctfrm_mobile_title"><?php _e( "Disabled for editing", 'contact-form-plugin' ); ?></span></label>
1074
+ </td>
1075
  <td class="bws_pro_version">
1076
  <input disabled="disabled" type="checkbox" name="cntctfrmpr_default_name" value="1" />
1077
  <?php _e( "Use User's name as a default value if the user is logged in.", 'contact-form-plugin' ); ?><br />
1082
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1083
  <tr valign="top">
1084
  <td><?php _e( "Location selectbox", 'contact-form-plugin' ); ?></td>
1085
+ <td class="bws_pro_version">
1086
+ <label><input disabled="disabled" type="checkbox" name="cntctfrmpr_display_selectbox" value="1" />
1087
+ <span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
1088
+ </td>
1089
+ <td class="bws_pro_version">
1090
+ <label><input disabled="disabled" type="checkbox" name="cntctfrmpr_required_selectbox" value="1" />
1091
+ <span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
1092
+ </td>
1093
  <td class="bws_pro_version"></td>
1094
  <td class="bws_pro_version"></td>
1095
+ <td class="bws_pro_version">
1096
+ <label>
1097
+ <span class="cntctfrmpr_mobile_title"><?php _e( "Field's default value", 'contact-form-plugin' ); ?></span>
1098
+ <input disabled="disabled" type="file" name="cntctfrmpr_default_location" />
1099
+ </label>
1100
+ </td>
1101
  </tr>
1102
  <?php } ?>
1103
  <tr valign="top">
1104
  <td><?php _e( "Address", 'contact-form-plugin' ); ?></td>
1105
+ <td>
1106
+ <label><input type="checkbox" id="cntctfrm_display_address_field" name="cntctfrm_display_address_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_display_address_field'] ) echo 'checked="checked" '; ?>/>
1107
+ <span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
1108
+ </td>
1109
+ <td>
1110
+ <label><input type="checkbox" id="cntctfrm_required_address_field" name="cntctfrm_required_address_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_address_field'] ) echo 'checked="checked" '; ?>/>
1111
+ <span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
1112
+ </td>
1113
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1114
  <td></td>
1115
  <td></td>
1119
  <tr valign="top">
1120
  <td><?php _e( "Email Address", 'contact-form-plugin' ); ?></td>
1121
  <td></td>
1122
+ <td>
1123
+ <label><input type="checkbox" id="cntctfrm_required_email_field" name="cntctfrm_required_email_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_email_field'] ) echo 'checked="checked" '; ?>/>
1124
+ <span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
1125
+ </td>
1126
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1127
+ <td class="bws_pro_version">
1128
+ <label><input disabled="disabled" type="checkbox" name="cntctfrmpr_visible_email" value="1" checked="checked" />
1129
+ <span class="cntctfrm_mobile_title"><?php _e( "Visible", 'contact-form-plugin' ); ?></span></label>
1130
+ </td>
1131
+ <td class="bws_pro_version">
1132
+ <label><input disabled="disabled" type="checkbox" name="cntctfrmpr_disabled_email" value="1" />
1133
+ <span class="cntctfrm_mobile_title"><?php _e( "Disabled for editing", 'contact-form-plugin' ); ?></span></label>
1134
+ </td>
1135
  <td class="bws_pro_version">
1136
  <input disabled="disabled" type="checkbox" name="cntctfrmpr_default_email" value="1" />
1137
  <?php _e( "Use User's email as a default value if the user is logged in.", 'contact-form-plugin' ); ?><br />
1141
  </tr>
1142
  <tr valign="top">
1143
  <td><?php _e( "Phone number", 'contact-form-plugin' ); ?></td>
1144
+ <td>
1145
+ <label><input type="checkbox" id="cntctfrm_display_phone_field" name="cntctfrm_display_phone_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_display_phone_field'] ) echo 'checked="checked" '; ?>/>
1146
+ <span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
1147
+ </td>
1148
+ <td>
1149
+ <label><input type="checkbox" id="cntctfrm_required_phone_field" name="cntctfrm_required_phone_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_phone_field'] ) echo 'checked="checked" '; ?>/>
1150
+ <span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
1151
+ </td>
1152
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1153
  <td></td>
1154
  <td></td>
1158
  <tr valign="top">
1159
  <td><?php _e( "Subject", 'contact-form-plugin' ); ?></td>
1160
  <td></td>
1161
+ <td>
1162
+ <label><input type="checkbox" id="cntctfrm_required_subject_field" name="cntctfrm_required_subject_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_subject_field'] ) echo 'checked="checked" '; ?>/>
1163
+ <span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
1164
+ </td>
1165
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1166
+ <td class="bws_pro_version">
1167
+ <label><input class="subject" disabled="disabled" type="checkbox" name="cntctfrmpr_visible_subject" value="1" checked="checked" />
1168
+ <span class="cntctfrm_mobile_title"><?php _e( "Visible", 'contact-form-plugin' ); ?></span></label>
1169
+ </td>
1170
+ <td class="bws_pro_version">
1171
+ <label><input class="subject" disabled="disabled" type="checkbox" name="cntctfrmpr_disabled_subject" value="1" />
1172
+ <span class="cntctfrm_mobile_title"><?php _e( "Disabled for editing", 'contact-form-plugin' ); ?></span></label>
1173
+ </td>
1174
+ <td class="bws_pro_version">
1175
+ <label>
1176
+ <span class="cntctfrmpr_mobile_title"><?php _e( "Field's default value", 'contact-form-plugin' ); ?></span>
1177
+ <input class="subject" disabled="disabled" type="text" name="cntctfrmpr_default_subject" value="" />
1178
+ </label>
1179
+ </td>
1180
  <?php } ?>
1181
  </tr>
1182
  <tr valign="top">
1183
  <td><?php _e( "Message", 'contact-form-plugin' ); ?></td>
1184
  <td></td>
1185
+ <td>
1186
+ <label><input type="checkbox" id="cntctfrm_required_message_field" name="cntctfrm_required_message_field" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_required_message_field'] ) echo 'checked="checked" '; ?>/>
1187
+ <span class="cntctfrm_mobile_title"><?php _e( "Required", 'contact-form-plugin' ); ?></span></label>
1188
+ </td>
1189
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1190
+ <td class="bws_pro_version">
1191
+ <label><input class="message" disabled="disabled" type="checkbox" name="cntctfrmpr_visible_message" value="1" checked="checked" />
1192
+ <span class="cntctfrm_mobile_title"><?php _e( "Visible", 'contact-form-plugin' ); ?></span></label>
1193
+ </td>
1194
+ <td class="bws_pro_version">
1195
+ <label><input class="message" disabled="disabled" disabled="disabled" type="checkbox" name="cntctfrmpr_disabled_message" value="1" />
1196
+ <span class="cntctfrm_mobile_title"><?php _e( "Disabled for editing", 'contact-form-plugin' ); ?></span></label>
1197
+ </td>
1198
+ <td class="bws_pro_version">
1199
+ <label>
1200
+ <span class="cntctfrmpr_mobile_title"><?php _e( "Field's default value", 'contact-form-plugin' ); ?></span>
1201
+ <input class="message" disabled="disabled" type="text" name="cntctfrmpr_default_message" value="" />
1202
+ </label>
1203
+ </td>
1204
  <?php } ?>
1205
  </tr>
1206
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1226
  <div class="bws_hidden_help_text" style="min-width: 200px;"><?php echo __( "Users can attach the following file formats", 'contact-form-plugin' ) . ": html, txt, css, gif, png, jpeg, jpg, tiff, bmp, ai, eps, ps, csv, rtf, pdf, doc, docx, xls, xlsx, zip, rar, wav, mp3, ppt, aar, sce"; ?></div>
1227
  </div>
1228
  </td>
1229
+ <td>
1230
+ <label><input type="checkbox" id="cntctfrm_attachment" name="cntctfrm_attachment" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_attachment'] ) echo 'checked="checked" '; ?>/>
1231
+ <span class="cntctfrm_mobile_title"><?php _e( "Used", 'contact-form-plugin' ); ?></span></label>
1232
+ </td>
1233
  <td></td>
1234
  <?php if ( ! $bws_hide_premium_options_check ) { ?>
1235
  <td></td>
1242
  <table class="form-table" style="width:auto;">
1243
  <tr valign="top">
1244
  <th scope="row"><?php _e( "Add to the form", 'contact-form-plugin' ); ?></th>
1245
+ <td colspan="3"><fieldset>
1246
  <div>
1247
  <label>
1248
  <input type="checkbox" id="cntctfrm_attachment_explanations" name="cntctfrm_attachment_explanations" value="1" <?php if ( '1' == $cntctfrm_options['cntctfrm_attachment_explanations'] && '1' == $cntctfrm_options['cntctfrm_attachment'] ) echo 'checked="checked" '; ?>/>
1301
  </div>
1302
  </div>
1303
  <?php } ?>
1304
+ </fieldset></td>
1305
  </tr>
1306
  <tr valign="top">
1307
  <th scope="row"><?php _e( "Delete an attachment file from the server after the email is sent", 'contact-form-plugin' ); ?> </th>
1380
  <input type="text" maxlength="250" name="cntctfrm_form_error[en]" value="<?php echo $cntctfrm_options['cntctfrm_form_error']['en']; ?>" /> <span class="bws_info"><?php _e( "Error message for the whole form", 'contact-form-plugin' ); ?></span><br />
1381
  </div>
1382
  <?php if ( ! isset( $contact_form_multi_active ) && ! isset( $contact_form_multi_pro_active ) ) { ?>
1383
+ <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=en]</span> <?php _e( "or", 'contact-form-plugin' ) ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
1384
  <?php } else { ?>
1385
+ <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=en id=<?php echo $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "or", '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>
1386
  <?php } ?>
1387
  </div>
1388
  <?php if ( ! empty( $cntctfrm_options['cntctfrm_language'] ) ) {
1414
  <input type="text" maxlength="250" name="cntctfrm_form_error[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['cntctfrm_form_error'][ $val ] ) ) echo $cntctfrm_options['cntctfrm_form_error'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Error message for the whole form", 'contact-form-plugin' ); ?></span><br />
1415
  </div>
1416
  <?php if ( ! isset( $contact_form_multi_active ) && ! isset( $contact_form_multi_pro_active ) ) { ?>
1417
+ <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>
1418
  <?php } else { ?>
1419
+ <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 $val . ' id=' . $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
1420
  <?php } ?>
1421
  </div>
1422
  <?php }
1443
  <div class="cntctfrm_language_tab cntctfrm_tab_en" style=" padding: 5px 10px 5px 5px;">
1444
  <input type="text" maxlength="250" name="cntctfrm_thank_text[en]" value="<?php echo $cntctfrm_options['cntctfrm_thank_text']['en']; ?>" /> <span class="bws_info"><?php _e( "Text", 'contact-form-plugin' ); ?></span><br />
1445
  <?php if ( ! isset( $contact_form_multi_active ) && ! isset( $contact_form_multi_pro_active ) ) { ?>
1446
+ <span class="bws_info cntctfrm_shortcode_for_language"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=en]</span> <?php _e( "or", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
1447
  <?php } else { ?>
1448
+ <span class="bws_info cntctfrm_shortcode_for_language"><?php _e( "Use shortcode", 'contact-form-plugin' ); ?> <span class="cntctfrm_shortcode">[bestwebsoft_contact_form lang=en id=<?php echo $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "or", '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>
1449
  <?php } ?>
1450
  </div>
1451
  <?php if ( ! empty( $cntctfrm_options['cntctfrm_language'] ) ) {
1453
  <div class="cntctfrm_language_tab hidden cntctfrm_tab_<?php echo $val; ?>" style=" padding: 5px 10px 5px 5px;">
1454
  <label><input type="text" maxlength="250" name="cntctfrm_thank_text[<?php echo $val; ?>]" value="<?php if ( isset( $cntctfrm_options['cntctfrm_thank_text'][ $val ] ) ) echo $cntctfrm_options['cntctfrm_thank_text'][ $val ]; ?>" /> <span class="bws_info"><?php _e( "Text", 'contact-form-plugin' ); ?></span></label><br />
1455
  <?php if ( ! isset( $contact_form_multi_active ) && ! isset( $contact_form_multi_pro_active ) ) { ?>
1456
+ <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>
1457
  <?php } else { ?>
1458
+ <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 . ' id=' . $_SESSION['cntctfrmmlt_id_form']; ?>]</span> <?php _e( "for this language", 'contact-form-plugin' ); ?></span>
1459
  <?php } ?>
1460
  </div>
1461
  <?php }
1526
  </p>
1527
  </div>
1528
  </noscript>
1529
+ <form id="cntctfrm_settings_form" class="bws_form" method="post" action="">
 
 
 
 
 
 
 
1530
  <div id="cntctfrm_appearance_wrap" class="cntctfrm_appearance_<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
1531
  <div id="<?php echo is_rtl() ? 'cntctfrm_right_table' : 'cntctfrm_left_table'; ?>">
1532
  <table class="form-table" style="width:auto;">
1867
  ( is_plugin_active( 'google-captcha/google-captcha.php' ) && ( isset( $gglcptch_options ) && 1 == $gglcptch_options['contact_form'] ) ) ||
1868
  ( is_plugin_active( 'google-captcha-pro/google-captcha-pro.php' ) && ( isset( $gglcptchpr_options ) && 1 == $gglcptchpr_options['contact_form'] ) ) ) {
1869
 
1870
+ $cntctfrm_captcha_label = $cntctfrm_captcha_required_symbol = '';
1871
  if ( is_plugin_active( 'captcha/captcha.php' ) && ( isset( $cptch_options ) && 1 == $cptch_options['cptch_contact_form'] ) ) {
1872
  $cntctfrm_captcha_label = $cptch_options['cptch_label_form'];
1873
  $cntctfrm_captcha_required_symbol = sprintf( ' <span class="required">%s</span>', ( isset( $cptch_options['cptch_required_symbol'] ) ) ? $cptch_options['cptch_required_symbol'] : '' );
1874
+ } elseif ( is_plugin_active( 'captcha-plus/captcha-plus.php' ) && ( isset( $cptchpls_options ) && 1 == $cptchpls_options['cptchpls_contact_form'] ) ) {
1875
+ $cntctfrm_captcha_label = $cptchpls_options['cptchpls_label_form'];
1876
+ $cntctfrm_captcha_required_symbol = sprintf( ' <span class="required">%s</span>', ( isset( $cptchpls_options['cptchpls_required_symbol'] ) ) ? $cptchpls_options['cptchpls_required_symbol'] : '' );
1877
+ } elseif ( is_plugin_active( 'captcha-pro/captcha_pro.php' ) && ( isset( $cptchpr_options ) && 1 == $cptchpr_options['cptchpr_contact_form'] ) ) {
1878
+ $cntctfrm_captcha_label = $cptchpr_options['cptchpr_label_form'];
1879
+ $cntctfrm_captcha_required_symbol = sprintf( ' <span class="required">%s</span>', ( isset( $cptchpr_options['cptchpr_required_symbol'] ) ) ? $cptchpr_options['cptchpr_required_symbol'] : '' );
 
 
1880
  }
1881
  if ( ! empty( $cntctfrm_captcha_label ) ) {
1882
  $cntctfrm_display_captcha_label = sprintf( '%1$s%2$s', $cntctfrm_captcha_label, $cntctfrm_captcha_required_symbol );
1883
  } else {
1884
  $cntctfrm_display_captcha_label = '';
1885
+ } ?>
 
 
1886
  <li class="cntctfrm_field_wrap">
1887
  <div class="cntctfrm_label cntctfrm_label_captcha">
1888
  <label><?php echo $cntctfrm_display_captcha_label; ?></label>
1996
  }
1997
  }
1998
 
1999
+ $page_url = esc_url( add_query_arg( array() ) . '#cntctfrm_contact_form' );
2000
 
2001
  /* If contact form submited */
2002
 
2806
  'cntctfrm_confirm_text' => __( 'Are you sure that you want to delete this language data?', 'contact-form-plugin' )
2807
  );
2808
 
2809
+ if ( wp_is_mobile() )
2810
+ wp_enqueue_script( 'jquery-touch-punch' );
2811
+
2812
  wp_enqueue_script( 'cntctfrm_script', plugins_url( 'js/script.js', __FILE__ ), array( 'jquery', 'jquery-ui-sortable' ) );
2813
  wp_localize_script( 'cntctfrm_script', 'cntctfrm_ajax', $script_vars );
2814
 
2837
  ),
2838
  'position' => array(
2839
  'edge' => 'top',
2840
+ 'align' => is_rtl() ? 'right' : 'left',
2841
  ),
2842
  );
2843
  bws_add_tooltip_in_admin( $tooltip_args );
3161
  if ( ! function_exists( 'cntctfrm_add_tabs' ) ) {
3162
  function cntctfrm_add_tabs() {
3163
  $screen = get_current_screen();
3164
+ $args = array(
3165
+ 'id' => 'cntctfrm',
3166
+ 'section' => '200538909'
3167
+ );
3168
+ bws_help_tab( $screen, $args );
 
 
3169
  }
3170
  }
3171
 
css/form_style.css CHANGED
@@ -8,6 +8,9 @@
8
  .rtl .cntctfrm_contact_form * {
9
  text-align: right !important;
10
  }
 
 
 
11
  .cntctfrm_contact_form p,
12
  .widget .cntctfrm_contact_form p {
13
  margin: 0 !important;
8
  .rtl .cntctfrm_contact_form * {
9
  text-align: right !important;
10
  }
11
+ .cntctfrm_contact_form .cntctfrm_contact_submit {
12
+ text-align: center !important;
13
+ }
14
  .cntctfrm_contact_form p,
15
  .widget .cntctfrm_contact_form p {
16
  margin: 0 !important;
css/style.css CHANGED
@@ -103,7 +103,6 @@
103
  border-right: 1px solid #DFDFDF;
104
  min-height: 25px;
105
  padding: 2px 10px;
106
- text-align: left;
107
  }
108
  .cntctfrm_settings_table td.bws_pro_version_tooltip {
109
  text-align: center;
@@ -112,6 +111,9 @@
112
  .cntctfrm_settings_table input[type="file"] {
113
  width: 100%;
114
  }
 
 
 
115
  @media screen and (max-width: 600px) {
116
  .cntctfrm_settings_table {
117
  width: 100%;
@@ -120,6 +122,17 @@
120
  .cntctfrm_settings_table td {
121
  display: block;
122
  }
 
 
 
 
 
 
 
 
 
 
 
123
  }
124
  td.cntctfrm_td_top_align {
125
  vertical-align: top;
@@ -189,12 +202,6 @@ td.cntctfrm_td_top_align {
189
  background: #e4e4e4;
190
  visibility: visible !important;
191
  }
192
- .cntctfrm_how_to_use {
193
- float: right;
194
- }
195
- .rtl .cntctfrm_how_to_use {
196
- float: left;
197
- }
198
  .cntctfrm_drag_wrap {
199
  position: absolute;
200
  width: 100%;
@@ -202,4 +209,18 @@ td.cntctfrm_td_top_align {
202
  top: 0;
203
  left: 0;
204
  background: transparent;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  }
103
  border-right: 1px solid #DFDFDF;
104
  min-height: 25px;
105
  padding: 2px 10px;
 
106
  }
107
  .cntctfrm_settings_table td.bws_pro_version_tooltip {
108
  text-align: center;
111
  .cntctfrm_settings_table input[type="file"] {
112
  width: 100%;
113
  }
114
+ .cntctfrm_mobile_title {
115
+ display: none;
116
+ }
117
  @media screen and (max-width: 600px) {
118
  .cntctfrm_settings_table {
119
  width: 100%;
122
  .cntctfrm_settings_table td {
123
  display: block;
124
  }
125
+ .cntctfrm_settings_table thead,
126
+ .cntctfrm_settings_table td:empty {
127
+ display: none;
128
+ }
129
+ .cntctfrm_settings_table tr td:first-child {
130
+ font-weight: bold;
131
+ font-size: 14px;
132
+ }
133
+ .cntctfrm_mobile_title {
134
+ display: inline;
135
+ }
136
  }
137
  td.cntctfrm_td_top_align {
138
  vertical-align: top;
202
  background: #e4e4e4;
203
  visibility: visible !important;
204
  }
 
 
 
 
 
 
205
  .cntctfrm_drag_wrap {
206
  position: absolute;
207
  width: 100%;
209
  top: 0;
210
  left: 0;
211
  background: transparent;
212
+ }
213
+ .cntctfrm_how_to_use {
214
+ float: right;
215
+ }
216
+ .rtl .cntctfrm_how_to_use {
217
+ float: left;
218
+ }
219
+ @media screen and (max-width: 1220px) {
220
+ .cntctfrm_how_to_use {
221
+ float: none;
222
+ }
223
+ .cntctfrm_how_to_use > h2 {
224
+ clear: both;
225
+ }
226
  }
images/pro_screen_1.png CHANGED
Binary file
js/script.js CHANGED
@@ -33,9 +33,9 @@
33
  $( this ).val( '' );
34
  $( this ).attr( 'name', $( this ).attr( 'name' ).replace( '[en]', '[' + lang_val + ']' ) );
35
  });
36
- $( '.cntctfrm_change_label_block .cntctfrm_language_tab' ).last().find( '.cntctfrm_info' ).last().html( text );
37
  $( '.cntctfrm_action_after_send_block .cntctfrm_language_tab' ).last().find( 'input' ).val( '' ).attr( 'name', $( '.cntctfrm_action_after_send_block .cntctfrm_language_tab' ).last().find( 'input' ).attr( 'name' ).replace( '[en]', '[' + lang_val + ']' ) );
38
- $( '.cntctfrm_action_after_send_block .cntctfrm_language_tab' ).last().find( '.cntctfrm_info' ).last().html( text );
39
  $( '.cntctfrm_change_label_block .cntctfrm_label_language_tab, .cntctfrm_action_after_send_block .cntctfrm_label_language_tab' ).each( function() {
40
  $( this ).removeClass( 'cntctfrm_active' );
41
  });
33
  $( this ).val( '' );
34
  $( this ).attr( 'name', $( this ).attr( 'name' ).replace( '[en]', '[' + lang_val + ']' ) );
35
  });
36
+ $( '.cntctfrm_change_label_block .cntctfrm_language_tab' ).last().find( '.cntctfrm_shortcode_for_language' ).last().html( text );
37
  $( '.cntctfrm_action_after_send_block .cntctfrm_language_tab' ).last().find( 'input' ).val( '' ).attr( 'name', $( '.cntctfrm_action_after_send_block .cntctfrm_language_tab' ).last().find( 'input' ).attr( 'name' ).replace( '[en]', '[' + lang_val + ']' ) );
38
+ $( '.cntctfrm_action_after_send_block .cntctfrm_language_tab' ).last().find( '.cntctfrm_shortcode_for_language' ).last().html( text );
39
  $( '.cntctfrm_change_label_block .cntctfrm_label_language_tab, .cntctfrm_action_after_send_block .cntctfrm_label_language_tab' ).each( function() {
40
  $( this ).removeClass( 'cntctfrm_active' );
41
  });
languages/contact-form-plugin-fr_FR.mo CHANGED