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

Version Description

  • Added New Feature to Hide/Show Title on Front End.
  • Added New Feature to Hide/Show Description on Front End.
  • Form Title Missing on Frontend Fixed.
  • Form Description Missing on Frontend Fixed.
Download this release

Release Info

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

Code changes from version 2.0.95 to 2.0.96

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.95
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -597,10 +597,11 @@ function contact_bank_short_code($atts)
597
  extract(shortcode_atts(array(
598
  "form_id" => "",
599
  "show_title" => "",
 
600
  ), $atts));
601
- return extract_short_code($form_id,$show_title);
602
  }
603
- function extract_short_code($form_id,$show_title)
604
  {
605
  ob_start();
606
  require CONTACT_BK_PLUGIN_DIR."/frontend_views/contact_bank_forms.php";
@@ -876,6 +877,10 @@ function add_contact_mce_popup(){
876
  <label class="custom-layout-label"><?php _e("Show Form Title", contact_bank); ?> : </label>
877
  <input type="checkbox" checked="checked" name="ux_form_title" id="ux_form_title"/>
878
  </div>
 
 
 
 
879
  <div class="layout-control-group">
880
  <label class="custom-layout-label"></label>
881
  <input type="button" class="button-primary" value="<?php _e("Insert Form", contact_bank); ?>"
@@ -891,12 +896,13 @@ function add_contact_mce_popup(){
891
  {
892
  var form_id = jQuery("#add_contact_form_id").val();
893
  var show_title = jQuery("#ux_form_title").prop("checked");
 
894
  if(form_id == 0)
895
  {
896
  alert("<?php _e("Please choose a Form to insert into Shortcode", contact_bank) ?>");
897
  return;
898
  }
899
- window.send_to_editor("[contact_bank form_id=" + form_id + " show_title=" + show_title +" ]");
900
  }
901
  </script>
902
  <?php
@@ -1003,7 +1009,7 @@ class Contact_Bank_Widget extends WP_Widget
1003
  "SELECT * FROM " .contact_bank_contact_form()
1004
  );
1005
  ?>
1006
- <p><label for="<?php echo $this->get_field_id("title"); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id("title"); ?>" name="<?php echo $this->get_field_name("title"); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p>
1007
  <p><label for="<?php echo $this->get_field_id("form_id"); ?>"><?php _e("Select Form :", contact_bank); ?></label>
1008
  <select size="1" name="<?php echo $this->get_field_name("form_id"); ?>" id="<?php echo $this->get_field_id("form_id"); ?>" class="widefat">
1009
  <option value="0" ><?php _e("Select Form", contact_bank); ?></option>
@@ -1048,7 +1054,7 @@ class Contact_Bank_Widget extends WP_Widget
1048
  if($instance["form_id"] != 0)
1049
  {
1050
  echo $before_title . $title . $after_title;
1051
- $shortcode_for_contact_bank_form = "[contact_bank form_id=" . $instance["form_id"] . "]";
1052
  echo do_shortcode( $shortcode_for_contact_bank_form );
1053
  echo $after_widget;
1054
  }
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.96
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
597
  extract(shortcode_atts(array(
598
  "form_id" => "",
599
  "show_title" => "",
600
+ "show_desc" => "",
601
  ), $atts));
602
+ return extract_short_code($form_id,$show_title,$show_desc);
603
  }
604
+ function extract_short_code($form_id,$show_title,$show_desc)
605
  {
606
  ob_start();
607
  require CONTACT_BK_PLUGIN_DIR."/frontend_views/contact_bank_forms.php";
877
  <label class="custom-layout-label"><?php _e("Show Form Title", contact_bank); ?> : </label>
878
  <input type="checkbox" checked="checked" name="ux_form_title" id="ux_form_title"/>
879
  </div>
880
+ <div class="layout-control-group">
881
+ <label class="custom-layout-label"><?php _e("Show Form Description", contact_bank); ?> : </label>
882
+ <input type="checkbox" name="ux_form_desc" id="ux_form_desc"/>
883
+ </div>
884
  <div class="layout-control-group">
885
  <label class="custom-layout-label"></label>
886
  <input type="button" class="button-primary" value="<?php _e("Insert Form", contact_bank); ?>"
896
  {
897
  var form_id = jQuery("#add_contact_form_id").val();
898
  var show_title = jQuery("#ux_form_title").prop("checked");
899
+ var show_desc = jQuery("#ux_form_desc").prop("checked");
900
  if(form_id == 0)
901
  {
902
  alert("<?php _e("Please choose a Form to insert into Shortcode", contact_bank) ?>");
903
  return;
904
  }
905
+ window.send_to_editor("[contact_bank form_id=" + form_id + " show_title=" + show_title +" show_desc=" + show_desc +"]");
906
  }
907
  </script>
908
  <?php
1009
  "SELECT * FROM " .contact_bank_contact_form()
1010
  );
1011
  ?>
1012
+ <p><label for="<?php echo $this->get_field_id("title"); ?>"> Widget Title: <input class="widefat" id="<?php echo $this->get_field_id("title"); ?>" name="<?php echo $this->get_field_name("title"); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p>
1013
  <p><label for="<?php echo $this->get_field_id("form_id"); ?>"><?php _e("Select Form :", contact_bank); ?></label>
1014
  <select size="1" name="<?php echo $this->get_field_name("form_id"); ?>" id="<?php echo $this->get_field_id("form_id"); ?>" class="widefat">
1015
  <option value="0" ><?php _e("Select Form", contact_bank); ?></option>
1054
  if($instance["form_id"] != 0)
1055
  {
1056
  echo $before_title . $title . $after_title;
1057
+ $shortcode_for_contact_bank_form = "[contact_bank form_id=" . $instance["form_id"] . " ]";
1058
  echo do_shortcode( $shortcode_for_contact_bank_form );
1059
  echo $after_widget;
1060
  }
frontend_views/contact_bank_forms.php CHANGED
@@ -273,8 +273,26 @@ $rand_value = RAND(10,10000);
273
  <strong><?php echo $form_settings_array[$form_id]["success_message"]; ?></strong>
274
  </span>
275
  </div>
 
276
  <div>
277
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
278
  for($flag=0;$flag<count($form_fields);$flag++)
279
  {
280
  ?>
@@ -440,7 +458,6 @@ $rand_value = RAND(10,10000);
440
  <?php
441
  }
442
  ?>
443
- </div>
444
  <div class="layout-control-group">
445
  <button type="submit" class="btn_submit"><?php echo $layout_settings_array[$form_id]["submit_button_text"];?></button>
446
  </div>
273
  <strong><?php echo $form_settings_array[$form_id]["success_message"]; ?></strong>
274
  </span>
275
  </div>
276
+
277
  <div>
278
  <?php
279
+ if($show_title == "true")
280
+ {
281
+ ?>
282
+ <h4><?php echo $form_name; ?></h4>
283
+ <?php
284
+ }
285
+ if($show_desc == "true")
286
+ {
287
+ ?>
288
+ <div class="layout-control-group">
289
+ <span><?php echo $form_settings_array[$form_id]["form_description"]; ?></span>
290
+ </div>
291
+ <?php
292
+ }
293
+ ?>
294
+ </div>
295
+ <?php
296
  for($flag=0;$flag<count($form_fields);$flag++)
297
  {
298
  ?>
458
  <?php
459
  }
460
  ?>
 
461
  <div class="layout-control-group">
462
  <button type="submit" class="btn_submit"><?php echo $layout_settings_array[$form_id]["submit_button_text"];?></button>
463
  </div>
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 form, contact form builder, contact form plugin, contact forms
4
  Requires at least: 3.3
5
  Tested up to: 4.1
6
- Stable tag: 2.0.95
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -549,6 +549,13 @@ In order to set Shortcode for a Form, you need to follow these steps :
549
 
550
  == Changelog ==
551
 
 
 
 
 
 
 
 
552
  = 2.0.95 =
553
 
554
  * Layout Bugs Fixed.
3
  Tags: admin, advanced form, best contact form plugin, buddypress, category, contact, contact form, contact form builder, contact form plugin, contact forms
4
  Requires at least: 3.3
5
  Tested up to: 4.1
6
+ Stable tag: 2.0.96
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.96 =
553
+
554
+ * Added New Feature to Hide/Show Title on Front End.
555
+ * Added New Feature to Hide/Show Description on Front End.
556
+ * Form Title Missing on Frontend Fixed.
557
+ * Form Description Missing on Frontend Fixed.
558
+
559
  = 2.0.95 =
560
 
561
  * Layout Bugs Fixed.
views/purchase_pro_version.php CHANGED
@@ -59,10 +59,8 @@ else
59
  class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive"><span
60
  class="css3_grid_vertical_align_table"><span
61
  class="css3_grid_vertical_align"><span><span
62
- class="css3_hidden_caption">Domains per License</span><span
63
- class="css3_grid_tooltip"><span>Number of websites that
64
- can use the plugin on purchase of a License.</span>Domains
65
- per License</span></span></span></span></li>
66
  <li
67
  class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive"><span
68
  class="css3_grid_vertical_align_table"><span
59
  class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive"><span
60
  class="css3_grid_vertical_align_table"><span
61
  class="css3_grid_vertical_align"><span><span
62
+ class="css3_hidden_caption">Installation per License</span><span
63
+ class="css3_grid_tooltip"><span>Number of websites that can use the plugin on purchase of a License.</span>Installation per License</span></span></span></span></li>
 
 
64
  <li
65
  class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive"><span
66
  class="css3_grid_vertical_align_table"><span