Contact Bank: WordPress Form Builder for Contact Forms - Version 2.0.339

Version Description

  • Few Bugs Fixed
Download this release

Release Info

Developer contact-banker
Plugin Icon 128x128 Contact Bank: WordPress Form Builder for Contact Forms
Version 2.0.339
Comparing to
See all releases

Code changes from version 2.0.338 to 2.0.339

Files changed (2) hide show
  1. contact-bank.php +42 -42
  2. readme.txt +5 -1
contact-bank.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Bank Lite Edition
4
  Plugin URI: http://tech-banker.com
5
  Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It's Really That Easy.
6
  Author: Tech Banker
7
- Version: 2.0.338
8
  Author URI: http://tech-banker.com
9
  License: GPLv3 or later
10
  */
@@ -73,7 +73,7 @@ function create_global_menus_for_contact_bank()
73
  {
74
  $cb_role = "administrator";
75
  }
76
- else
77
  {
78
  $cb_role = $wpdb->prefix . "capabilities";
79
  $current_user->role = array_keys($current_user->$cb_role);
@@ -133,10 +133,10 @@ function create_global_menus_for_contact_bank()
133
  break;
134
  case "contributor":
135
  break;
136
-
137
  case "subscriber":
138
  break;
139
-
140
  }
141
  }
142
  /* Function Name : contact_bank
@@ -149,7 +149,7 @@ function create_global_menus_for_contact_bank()
149
  */
150
  function contact_bank()
151
  {
152
-
153
  global $wpdb,$current_user,$cb_user_role_permission;
154
  if (is_super_admin())
155
  {
@@ -190,7 +190,7 @@ function contact_dashboard()
190
  $cb_role = $wpdb->prefix . "capabilities";
191
  $current_user->role = array_keys($current_user->$cb_role);
192
  $cb_role = $current_user->role[0];
193
- }
194
  if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
195
  {
196
  include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
@@ -583,7 +583,7 @@ if(isset($_REQUEST["action"]))
583
  switch($_REQUEST["action"])
584
  {
585
  case "add_contact_form_library":
586
-
587
  add_action( "admin_init", "add_contact_form_library");
588
  function add_contact_form_library()
589
  {
@@ -603,11 +603,11 @@ if(isset($_REQUEST["action"]))
603
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_view-class.php";
604
  }
605
  }
606
-
607
  break;
608
-
609
  case "frontend_contact_form_library":
610
-
611
  add_action( "admin_init", "frontend_contact_form_library");
612
  function frontend_contact_form_library()
613
  {
@@ -616,11 +616,11 @@ if(isset($_REQUEST["action"]))
616
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_frontend-class.php";
617
  }
618
  }
619
-
620
  break;
621
-
622
  case "email_contact_form_library":
623
-
624
  add_action( "admin_init", "email_contact_form_library");
625
  function email_contact_form_library()
626
  {
@@ -640,11 +640,11 @@ if(isset($_REQUEST["action"]))
640
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email-class.php";
641
  }
642
  }
643
-
644
  break;
645
-
646
  case "email_management_contact_form_library":
647
-
648
  add_action( "admin_init", "email_management_contact_form_library");
649
  function email_management_contact_form_library()
650
  {
@@ -653,11 +653,11 @@ if(isset($_REQUEST["action"]))
653
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email_management.php";
654
  }
655
  }
656
-
657
  break;
658
-
659
  case "frontend_data_contact_library":
660
-
661
  add_action( "admin_init", "frontend_data_contact_library");
662
  function frontend_data_contact_library()
663
  {
@@ -677,11 +677,11 @@ if(isset($_REQUEST["action"]))
677
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_frontend_data_class.php";
678
  }
679
  }
680
-
681
  break;
682
-
683
  case "show_form_control_data_contact_library":
684
-
685
  add_action( "admin_init", "show_form_control_data_contact_library");
686
  function show_form_control_data_contact_library()
687
  {
@@ -701,11 +701,11 @@ if(isset($_REQUEST["action"]))
701
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_show_form_control_data-class.php";
702
  }
703
  }
704
-
705
  break;
706
-
707
  case "layout_settings_contact_library":
708
-
709
  add_action( "admin_init", "layout_settings_contact_library");
710
  function layout_settings_contact_library()
711
  {
@@ -725,7 +725,7 @@ if(isset($_REQUEST["action"]))
725
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php";
726
  }
727
  }
728
-
729
  break;
730
  }
731
  }
@@ -807,11 +807,11 @@ function extract_short_code($form_id,$show_title,$show_desc)
807
  }
808
  function add_contact_bank_icon($meta = TRUE)
809
  {
810
- if (!is_user_logged_in() )
811
  {
812
  return;
813
  }
814
- else
815
  {
816
  global $wp_admin_bar,$wpdb,$current_user;
817
  if (is_super_admin())
@@ -824,11 +824,11 @@ function add_contact_bank_icon($meta = TRUE)
824
  $current_user->role = array_keys($current_user->$cb_role);
825
  $cb_role = $current_user->role[0];
826
  }
827
-
828
  switch ($cb_role)
829
  {
830
  case "administrator":
831
-
832
  $wp_admin_bar->add_menu( array(
833
  "id" => "contact_bank_links",
834
  "title" => "<img src=\"".plugins_url("/assets/images/icon.png",__FILE__)."\" width=\"25\" height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Contact Bank" ,
@@ -888,14 +888,14 @@ function add_contact_bank_icon($meta = TRUE)
888
  "href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
889
  "title" => __("Recommendations", contact_bank))
890
  );
891
-
892
  $wp_admin_bar->add_menu(array(
893
  "parent" => "contact_bank_links",
894
  "id" => "pro_version_links",
895
  "href" => site_url() . "/wp-admin/admin.php?page=contact_pro_version",
896
  "title" => __("Premium Editions", contact_bank))
897
  );
898
-
899
  $wp_admin_bar->add_menu(array(
900
  "parent" => "contact_bank_links",
901
  "id" => "contact_bank_other_services_links",
@@ -903,14 +903,14 @@ function add_contact_bank_icon($meta = TRUE)
903
  "title" => __("Our Other Services", contact_bank))
904
  );
905
  break;
906
-
907
  case "editor":
908
  $wp_admin_bar->add_menu( array(
909
  "id" => "contact_bank_links",
910
  "title" => "<img src=\"".plugins_url("/assets/images/icon.png",__FILE__)."\" width=\"25\" height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Contact Bank" ,
911
  "href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
912
  ));
913
-
914
  $wp_admin_bar->add_menu( array(
915
  "parent" => "contact_bank_links",
916
  "id" => "dashboard_links",
@@ -953,7 +953,7 @@ function add_contact_bank_icon($meta = TRUE)
953
  "href" => site_url() ."/wp-admin/admin.php?page=contact_feature_request",
954
  "title" => __( "Feature Requests", contact_bank)) /* set the sub-menu name */
955
  );
956
-
957
  $wp_admin_bar->add_menu( array(
958
  "parent" => "contact_bank_links",
959
  "id" => "system_status_data_links",
@@ -966,14 +966,14 @@ function add_contact_bank_icon($meta = TRUE)
966
  "href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
967
  "title" => __("Recommendations", contact_bank))
968
  );
969
-
970
  $wp_admin_bar->add_menu(array(
971
  "parent" => "contact_bank_links",
972
  "id" => "pro_version_links",
973
  "href" => site_url() . "/wp-admin/admin.php?page=contact_pro_version",
974
  "title" => __("Premium Editions", contact_bank))
975
  );
976
-
977
  $wp_admin_bar->add_menu(array(
978
  "parent" => "contact_bank_links",
979
  "id" => "contact_bank_other_services_links",
@@ -981,7 +981,7 @@ function add_contact_bank_icon($meta = TRUE)
981
  "title" => __("Our Other Services", contact_bank))
982
  );
983
  break;
984
-
985
  case "author":
986
  $wp_admin_bar->add_menu( array(
987
  "id" => "contact_bank_links",
@@ -1036,14 +1036,14 @@ function add_contact_bank_icon($meta = TRUE)
1036
  "href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
1037
  "title" => __("Recommendations", contact_bank))
1038
  );
1039
-
1040
  $wp_admin_bar->add_menu(array(
1041
  "parent" => "contact_bank_links",
1042
  "id" => "pro_version_links",
1043
  "href" => site_url() . "/wp-admin/admin.php?page=contact_pro_version",
1044
  "title" => __("Premium Editions", contact_bank))
1045
  );
1046
-
1047
  $wp_admin_bar->add_menu(array(
1048
  "parent" => "contact_bank_links",
1049
  "id" => "contact_bank_other_services_links",
@@ -1055,7 +1055,7 @@ function add_contact_bank_icon($meta = TRUE)
1055
  }
1056
  }
1057
  add_action( "media_buttons_context", "add_contact_shortcode_button", 1);
1058
- function add_contact_shortcode_button($context)
1059
  {
1060
  add_thickbox();
1061
  $context .= "<a href=\"#TB_inline?width=300&height=400&inlineId=contact-bank\" class=\"button thickbox\" title=\"" . __("Add Contact Bank Form", contact_bank) . "\">
@@ -1343,4 +1343,4 @@ function contact_plugin_autoUpdate()
1343
  {
1344
  }
1345
  }
1346
- ?>
4
  Plugin URI: http://tech-banker.com
5
  Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It's Really That Easy.
6
  Author: Tech Banker
7
+ Version: 2.0.339
8
  Author URI: http://tech-banker.com
9
  License: GPLv3 or later
10
  */
73
  {
74
  $cb_role = "administrator";
75
  }
76
+ else
77
  {
78
  $cb_role = $wpdb->prefix . "capabilities";
79
  $current_user->role = array_keys($current_user->$cb_role);
133
  break;
134
  case "contributor":
135
  break;
136
+
137
  case "subscriber":
138
  break;
139
+
140
  }
141
  }
142
  /* Function Name : contact_bank
149
  */
150
  function contact_bank()
151
  {
152
+
153
  global $wpdb,$current_user,$cb_user_role_permission;
154
  if (is_super_admin())
155
  {
190
  $cb_role = $wpdb->prefix . "capabilities";
191
  $current_user->role = array_keys($current_user->$cb_role);
192
  $cb_role = $current_user->role[0];
193
+ }
194
  if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
195
  {
196
  include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
583
  switch($_REQUEST["action"])
584
  {
585
  case "add_contact_form_library":
586
+
587
  add_action( "admin_init", "add_contact_form_library");
588
  function add_contact_form_library()
589
  {
603
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_view-class.php";
604
  }
605
  }
606
+
607
  break;
608
+
609
  case "frontend_contact_form_library":
610
+
611
  add_action( "admin_init", "frontend_contact_form_library");
612
  function frontend_contact_form_library()
613
  {
616
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_frontend-class.php";
617
  }
618
  }
619
+
620
  break;
621
+
622
  case "email_contact_form_library":
623
+
624
  add_action( "admin_init", "email_contact_form_library");
625
  function email_contact_form_library()
626
  {
640
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email-class.php";
641
  }
642
  }
643
+
644
  break;
645
+
646
  case "email_management_contact_form_library":
647
+
648
  add_action( "admin_init", "email_management_contact_form_library");
649
  function email_management_contact_form_library()
650
  {
653
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email_management.php";
654
  }
655
  }
656
+
657
  break;
658
+
659
  case "frontend_data_contact_library":
660
+
661
  add_action( "admin_init", "frontend_data_contact_library");
662
  function frontend_data_contact_library()
663
  {
677
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_frontend_data_class.php";
678
  }
679
  }
680
+
681
  break;
682
+
683
  case "show_form_control_data_contact_library":
684
+
685
  add_action( "admin_init", "show_form_control_data_contact_library");
686
  function show_form_control_data_contact_library()
687
  {
701
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_show_form_control_data-class.php";
702
  }
703
  }
704
+
705
  break;
706
+
707
  case "layout_settings_contact_library":
708
+
709
  add_action( "admin_init", "layout_settings_contact_library");
710
  function layout_settings_contact_library()
711
  {
725
  include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php";
726
  }
727
  }
728
+
729
  break;
730
  }
731
  }
807
  }
808
  function add_contact_bank_icon($meta = TRUE)
809
  {
810
+ if (!is_user_logged_in() )
811
  {
812
  return;
813
  }
814
+ else
815
  {
816
  global $wp_admin_bar,$wpdb,$current_user;
817
  if (is_super_admin())
824
  $current_user->role = array_keys($current_user->$cb_role);
825
  $cb_role = $current_user->role[0];
826
  }
827
+
828
  switch ($cb_role)
829
  {
830
  case "administrator":
831
+
832
  $wp_admin_bar->add_menu( array(
833
  "id" => "contact_bank_links",
834
  "title" => "<img src=\"".plugins_url("/assets/images/icon.png",__FILE__)."\" width=\"25\" height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Contact Bank" ,
888
  "href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
889
  "title" => __("Recommendations", contact_bank))
890
  );
891
+
892
  $wp_admin_bar->add_menu(array(
893
  "parent" => "contact_bank_links",
894
  "id" => "pro_version_links",
895
  "href" => site_url() . "/wp-admin/admin.php?page=contact_pro_version",
896
  "title" => __("Premium Editions", contact_bank))
897
  );
898
+
899
  $wp_admin_bar->add_menu(array(
900
  "parent" => "contact_bank_links",
901
  "id" => "contact_bank_other_services_links",
903
  "title" => __("Our Other Services", contact_bank))
904
  );
905
  break;
906
+
907
  case "editor":
908
  $wp_admin_bar->add_menu( array(
909
  "id" => "contact_bank_links",
910
  "title" => "<img src=\"".plugins_url("/assets/images/icon.png",__FILE__)."\" width=\"25\" height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Contact Bank" ,
911
  "href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
912
  ));
913
+
914
  $wp_admin_bar->add_menu( array(
915
  "parent" => "contact_bank_links",
916
  "id" => "dashboard_links",
953
  "href" => site_url() ."/wp-admin/admin.php?page=contact_feature_request",
954
  "title" => __( "Feature Requests", contact_bank)) /* set the sub-menu name */
955
  );
956
+
957
  $wp_admin_bar->add_menu( array(
958
  "parent" => "contact_bank_links",
959
  "id" => "system_status_data_links",
966
  "href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
967
  "title" => __("Recommendations", contact_bank))
968
  );
969
+
970
  $wp_admin_bar->add_menu(array(
971
  "parent" => "contact_bank_links",
972
  "id" => "pro_version_links",
973
  "href" => site_url() . "/wp-admin/admin.php?page=contact_pro_version",
974
  "title" => __("Premium Editions", contact_bank))
975
  );
976
+
977
  $wp_admin_bar->add_menu(array(
978
  "parent" => "contact_bank_links",
979
  "id" => "contact_bank_other_services_links",
981
  "title" => __("Our Other Services", contact_bank))
982
  );
983
  break;
984
+
985
  case "author":
986
  $wp_admin_bar->add_menu( array(
987
  "id" => "contact_bank_links",
1036
  "href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
1037
  "title" => __("Recommendations", contact_bank))
1038
  );
1039
+
1040
  $wp_admin_bar->add_menu(array(
1041
  "parent" => "contact_bank_links",
1042
  "id" => "pro_version_links",
1043
  "href" => site_url() . "/wp-admin/admin.php?page=contact_pro_version",
1044
  "title" => __("Premium Editions", contact_bank))
1045
  );
1046
+
1047
  $wp_admin_bar->add_menu(array(
1048
  "parent" => "contact_bank_links",
1049
  "id" => "contact_bank_other_services_links",
1055
  }
1056
  }
1057
  add_action( "media_buttons_context", "add_contact_shortcode_button", 1);
1058
+ function add_contact_shortcode_button($context)
1059
  {
1060
  add_thickbox();
1061
  $context .= "<a href=\"#TB_inline?width=300&height=400&inlineId=contact-bank\" class=\"button thickbox\" title=\"" . __("Add Contact Bank Form", contact_bank) . "\">
1343
  {
1344
  }
1345
  }
1346
+ ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
3
  Tags: admin, advanced form, best contact form plugin, buddypress, category, contact, contact button, contact form, contact form builder, Contact Form Builder with recaptcha, contact form plugin, contact forms, contact forms plugin, contact manager, contact us, contact us form, contacts form plugin, custom form, feedback, feedback form, feedback forms, form, forms, forms plugin, post feedback, web form, web-page feedback, wordpress contact form
4
  Requires at least: 3.0
5
  Tested up to: 4.3.1
6
- Stable tag: 2.0.338
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -549,6 +549,10 @@ In order to set Shortcode for a Form, you need to follow these steps :
549
 
550
  == Changelog ==
551
 
 
 
 
 
552
  = 2.0.338 =
553
 
554
  * Css Issues Fixed
3
  Tags: admin, advanced form, best contact form plugin, buddypress, category, contact, contact button, contact form, contact form builder, Contact Form Builder with recaptcha, contact form plugin, contact forms, contact forms plugin, contact manager, contact us, contact us form, contacts form plugin, custom form, feedback, feedback form, feedback forms, form, forms, forms plugin, post feedback, web form, web-page feedback, wordpress contact form
4
  Requires at least: 3.0
5
  Tested up to: 4.3.1
6
+ Stable tag: 2.0.339
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
549
 
550
  == Changelog ==
551
 
552
+ = 2.0.339 =
553
+
554
+ * Few Bugs Fixed
555
+
556
  = 2.0.338 =
557
 
558
  * Css Issues Fixed