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

Version Description

Download this release

Release Info

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

Code changes from version 2.0.12 to 2.0.13

assets/css/stylesheet.css CHANGED
@@ -3477,4 +3477,63 @@ button.close {
3477
  {
3478
  color:#CC0000;
3479
  font-size: 12px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3480
  }
3477
  {
3478
  color:#CC0000;
3479
  font-size: 12px;
3480
+ }
3481
+
3482
+ .gb_text_control
3483
+ {
3484
+ color: #FFF;
3485
+ font-size: 15px;
3486
+ line-height: 26px;
3487
+ margin-top: 8px;
3488
+ float: left;
3489
+ width: auto;
3490
+ margin-left: 10px;
3491
+ }
3492
+ .gb_buy_pro
3493
+ {
3494
+ cursor:pointer;
3495
+ min-width: 800px;
3496
+ border: 1px solid #1b6394;
3497
+ padding: 5px;
3498
+ margin: 12px 0;
3499
+ background: #AE3A3A;
3500
+ position: relative;
3501
+ overflow: hidden;
3502
+ }
3503
+ .gb_text_control span {
3504
+ font-size: 13px;
3505
+ opacity: 0.8;
3506
+
3507
+ }
3508
+ .gb_buy_pro .gb_message_buttons
3509
+ {
3510
+ float: right;
3511
+ border: 1px solid #FF6D1E;
3512
+ font-size: 13px;
3513
+ margin: 12px;
3514
+ padding: 4px 0;
3515
+ color: #FFF;
3516
+ text-shadow: 0 1px 3px #FF6D1E;
3517
+ font-weight: bold;
3518
+ background: #FF6D1E;
3519
+ -moz-border-radius: 3px;
3520
+ border-radius: 3px;
3521
+ -webkit-border-radius: 3px;
3522
+ text-decoration: none;
3523
+ height: 35px;
3524
+ text-align: center;
3525
+ width: 110px;
3526
+ -moz-box-shadow: 0px 1px 1px 0 #FF6D1E inset;
3527
+ -webkit-box-shadow: 0px 1px 1px 0 #FF6D1E inset;
3528
+ box-shadow: 0px 1px 1px 0 #FF6D1E inset;
3529
+
3530
+ }
3531
+ .gb_buy_pro .gb_message_buttons:hover, .gb_buy_pro .gb_message_buttons:focus
3532
+ {
3533
+ background: #FF6D1E;
3534
+ color: #FFF;
3535
+ border: 1px solid #FF6D1E;
3536
+ -moz-box-shadow: 0px 1px 1px 0 #FF6D1E inset;
3537
+ -webkit-box-shadow: 0px 1px 1px 0 #FF6D1E inset;
3538
+ box-shadow: 0px 1px 1px 0 #FF6D1E inset;
3539
  }
assets/images/contact-bank-buy-now.png DELETED
Binary file
assets/images/contact-bank-developer-edition-270x270.png DELETED
Binary file
assets/images/contact-bank-eco-edition-270x270.png DELETED
Binary file
assets/images/contact-bank-logo.png DELETED
Binary file
assets/images/contact-bank-pro-edition-270x270.png DELETED
Binary file
contact-bank.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Bank Standard 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.12
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -443,6 +443,29 @@ function add_contact_mce_popup(){
443
  </script>
444
  <?php
445
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
446
  function contact_bank_enqueue_pointer_script_style()
447
  {
448
 
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.13
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
443
  </script>
444
  <?php
445
  }
446
+
447
+ function contact_bank_banner()
448
+ {
449
+ echo'<div id="ux_buy_pro" class="updated">
450
+ <div class="gb_buy_pro">
451
+ <div class="gb_text_control">
452
+ It\'s time to upgrade your <strong>Contact Bank Standard Edition</strong> to <strong>Premium</strong> Edition!<br />
453
+ <span>Extend standard plugin functionality with 200+ awesome features! <br/>Go for Premium Version Now! Starting at <strong>10£/- only</strong></span>
454
+ </div>
455
+ <a class="button gb_message_buttons" href="admin.php?page=pro_version&msg=no">CLOSE</a>
456
+ <a class="button gb_message_buttons" target="_blank" href="http://wordpress.org/support/view/plugin-reviews/contact-bank?filter=5">RATE US 5 ★</a>
457
+ <a class="button gb_message_buttons" target="_blank" href="http://tech-banker.com/contact-bank/demo/">LIVE DEMO</a>
458
+ <a class="button gb_message_buttons" target="_blank" href="http://tech-banker.com/contact-bank/">UPGRADE NOW</a>
459
+ </div>
460
+ </div>';
461
+ }
462
+ $show_banner = get_option("contact-bank-banner");
463
+ if($show_banner == "")
464
+ {
465
+ add_action("admin_notices", "contact_bank_banner",1);
466
+ }
467
+
468
+
469
  function contact_bank_enqueue_pointer_script_style()
470
  {
471
 
lib/contact_frontend_data_class.php CHANGED
@@ -14,8 +14,10 @@ if(isset($_REQUEST["param"]))
14
  )
15
  );
16
  ?>
 
17
  <table class="table table-striped" id="data-table-frontend" style="width:100%;">
18
  <thead>
 
19
  <?php
20
  for($flag=0;$flag<count($form_data);$flag++)
21
  {
@@ -29,11 +31,12 @@ if(isset($_REQUEST["param"]))
29
  )
30
  );
31
  ?>
32
- <th><?php echo $form_control_labels ?></th>
33
  <?php
34
  }
35
  ?>
36
- <th></th>
 
37
  </thead>
38
  <tbody>
39
  <?php
@@ -98,6 +101,7 @@ if(isset($_REQUEST["param"]))
98
  ?>
99
  </tbody>
100
  </table>
 
101
  <script type="text/javascript">
102
  oTable = jQuery('#data-table-frontend').dataTable
103
  ({
14
  )
15
  );
16
  ?>
17
+ <div id="dvData">
18
  <table class="table table-striped" id="data-table-frontend" style="width:100%;">
19
  <thead>
20
+ <tr>
21
  <?php
22
  for($flag=0;$flag<count($form_data);$flag++)
23
  {
31
  )
32
  );
33
  ?>
34
+ <td><?php echo $form_control_labels ?></td>
35
  <?php
36
  }
37
  ?>
38
+ <td></td>
39
+ </tr>
40
  </thead>
41
  <tbody>
42
  <?php
101
  ?>
102
  </tbody>
103
  </table>
104
+ </div>
105
  <script type="text/javascript">
106
  oTable = jQuery('#data-table-frontend').dataTable
107
  ({
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
3
  Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, contact bank, contact form, contact form 7, contact form builder, contact form plugin, contact forms, contact me, contact us, contacts, content, easy contact form, easy contact plugin, email, Facebook, feed, feedback, feedback form, form, form builder, forms, gallery, google, image, images, javascript, jquery, link, links, login, media, page, pages, plugin, Post, posts, request, rss, seo, shortcode, sidebar, stats, text, web form, widget, wordpress
4
  Requires at least: 3.3
5
  Tested up to: 3.8.1
6
- Stable tag: 2.0.12
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -19,7 +19,7 @@ It provides a powerful engine for uploading and managing dynamic forms with more
19
 
20
  ***The Contact Bank WordPress Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker Pte Ltd.</a> since March 2014.***
21
 
22
- ***March 27, 2014: We're happy to announce that Contact Bank reached 18,200+ plugin downloads in only 5 months. We frequently receive positive feedback from people using our Contact Bank Plugin for WordPress. Thanks so much for your support!***
23
 
24
  <a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
25
 
@@ -131,6 +131,11 @@ Visit [here](http://tech-banker.com/contact-bank) to upgrade to Pro Version now.
131
 
132
  = 2.0.12 =
133
 
 
 
 
 
 
134
  * Fex Bugs Fixed
135
 
136
  = 2.0.11 =
3
  Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, contact bank, contact form, contact form 7, contact form builder, contact form plugin, contact forms, contact me, contact us, contacts, content, easy contact form, easy contact plugin, email, Facebook, feed, feedback, feedback form, form, form builder, forms, gallery, google, image, images, javascript, jquery, link, links, login, media, page, pages, plugin, Post, posts, request, rss, seo, shortcode, sidebar, stats, text, web form, widget, wordpress
4
  Requires at least: 3.3
5
  Tested up to: 3.8.1
6
+ Stable tag: 2.0.13
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
19
 
20
  ***The Contact Bank WordPress Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker Pte Ltd.</a> since March 2014.***
21
 
22
+ ***March 28, 2014: We're happy to announce that Contact Bank reached 18,600+ plugin downloads in only 5 months. We frequently receive positive feedback from people using our Contact Bank Plugin for WordPress. Thanks so much for your support!***
23
 
24
  <a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
25
 
131
 
132
  = 2.0.12 =
133
 
134
+ * Fex Bugs Fixed
135
+ * Unwanted Banner Removed
136
+
137
+ = 2.0.12 =
138
+
139
  * Fex Bugs Fixed
140
 
141
  = 2.0.11 =
views/contact_bank_pro_version.php CHANGED
@@ -1,3 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <div class="fluid-layout">
2
  <div class="layout-span12">
3
  <div class="widget-layout">
@@ -328,4 +345,4 @@
328
  </div>
329
  </div>
330
  </div>
331
- </div>
1
+ <?php
2
+ if(isset($_REQUEST["msg"]))
3
+ {
4
+ if(esc_attr($_REQUEST["msg"]) == "no")
5
+ {
6
+ update_option("contact-bank-banner", "no");
7
+ ?>
8
+ <style type="text/css" >
9
+ #ux_buy_pro
10
+ {
11
+ display:none;
12
+ }
13
+ </style>
14
+ <?php
15
+ }
16
+ }
17
+ ?>
18
  <div class="fluid-layout">
19
  <div class="layout-span12">
20
  <div class="widget-layout">
345
  </div>
346
  </div>
347
  </div>
348
+ </div>
views/contact_frontend_data.php CHANGED
@@ -6,6 +6,7 @@
6
  </div>
7
  <div class="widget-layout-body layout-form">
8
  <a class="btn btn-info" href="admin.php?page=dashboard"><?php _e("Back to Dashboard", contact_bank);?></a>
 
9
  <div class="separator-doubled"></div>
10
  <div class="fluid-layout">
11
  <div class="layout-span12">
@@ -64,6 +65,54 @@
64
  jQuery(document).ready(function()
65
  {
66
  select_form_id();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  });
68
  function select_form_id()
69
  {
@@ -94,4 +143,10 @@ function delete_form_entry()
94
  {
95
  alert("<?php _e( "This Feature is only available in Paid Premium Edition!", contact_bank ); ?>");
96
  }
 
 
 
 
 
 
97
  </script>
6
  </div>
7
  <div class="widget-layout-body layout-form">
8
  <a class="btn btn-info" href="admin.php?page=dashboard"><?php _e("Back to Dashboard", contact_bank);?></a>
9
+ <a class="btn btn-info" id="export" ><?php _e("Export to Excel", contact_bank);?></a>
10
  <div class="separator-doubled"></div>
11
  <div class="fluid-layout">
12
  <div class="layout-span12">
65
  jQuery(document).ready(function()
66
  {
67
  select_form_id();
68
+
69
+ function exportTableToCSV(table, filename)
70
+ {
71
+
72
+ var rows = table.find('tr:has(td)'),
73
+ csv = "";
74
+ tmpColDelim = String.fromCharCode(11),
75
+ tmpRowDelim = String.fromCharCode(0),
76
+ colDelim = '","',
77
+ rowDelim = '"\r\n"',
78
+ csv = '"' + rows.map(function (i, row) {
79
+ var row = jQuery(row),
80
+ cols = row.find('td');
81
+ return cols.map(function (j, col) {
82
+ var col = jQuery(col),
83
+ text = col.text();
84
+
85
+ return text.replace('"', '""');
86
+
87
+ }).get().join(tmpColDelim);
88
+
89
+ }).get().join(tmpRowDelim)
90
+
91
+ .split(tmpRowDelim).join(rowDelim)
92
+ .split(tmpColDelim).join(colDelim) + '"',
93
+ csvData = 'data:application/csv;charset=utf-8,' + encodeURIComponent(csv);
94
+
95
+ jQuery(this)
96
+ .attr({
97
+ 'download': filename,
98
+ 'href': csvData,
99
+ 'target': '_blank'
100
+ });
101
+ }
102
+ jQuery("#export").on('click', function (event)
103
+ {
104
+ var form_id = jQuery("#select_form").val();
105
+ if(form_id != 0)
106
+ {
107
+ exportTableToCSV.apply(this, [jQuery('#data-table-frontend'), 'Form Entries.csv']);
108
+ }
109
+ else
110
+ {
111
+ alert("<?php _e( "Please select the Form first.", contact_bank ); ?>");
112
+ }
113
+ });
114
+
115
+
116
  });
117
  function select_form_id()
118
  {
143
  {
144
  alert("<?php _e( "This Feature is only available in Paid Premium Edition!", contact_bank ); ?>");
145
  }
146
+
147
+
148
+
149
+
150
+
151
+
152
  </script>
views/dashboard.php CHANGED
@@ -45,7 +45,7 @@ $last_form_id = $wpdb->get_var
45
  <div class="separator-doubled" style="margin-bottom: 5px;"></div>
46
  <a rel="prettyPhoto[contact]" href="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code-cb.png";?>">How to setup Short-Codes for Contact Bank into your WordPress Page/Post?</a>
47
  <div class="fluid-layout">
48
- <div class="layout-span9" style="min-height:600px;">
49
  <div class="widget-layout">
50
  <div class="widget-layout-title">
51
  <h4>
@@ -136,29 +136,7 @@ $last_form_id = $wpdb->get_var
136
  </div>
137
  </div>
138
  </div>
139
- <div class="layout-span3">
140
- <div class="widget-layout">
141
- <div class="widget-layout-body" style="text-align: center">
142
- <a target="_blank" href="http://tech-banker.com/contact-bank/">
143
- <img width="200px" src="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/contact-bank-eco-edition-270x270.png";?>"/>
144
- </a>
145
- </div>
146
- </div>
147
- <div class="widget-layout">
148
- <div class="widget-layout-body" style="text-align: center">
149
- <a target="_blank" href="http://tech-banker.com/contact-bank/">
150
- <img width="200px" src="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/contact-bank-pro-edition-270x270.png";?>"/>
151
- </a>
152
- </div>
153
- </div>
154
- <div class="widget-layout">
155
- <div class="widget-layout-body" style="text-align: center">
156
- <a target="_blank" href="http://tech-banker.com/contact-bank/">
157
- <img width="200px" src="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/contact-bank-developer-edition-270x270.png";?>"/>
158
- </a>
159
- </div>
160
- </div>
161
- </div>
162
  </div>
163
  </div>
164
  </div>
45
  <div class="separator-doubled" style="margin-bottom: 5px;"></div>
46
  <a rel="prettyPhoto[contact]" href="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code-cb.png";?>">How to setup Short-Codes for Contact Bank into your WordPress Page/Post?</a>
47
  <div class="fluid-layout">
48
+ <div class="layout-span12" style="min-height:600px;">
49
  <div class="widget-layout">
50
  <div class="widget-layout-title">
51
  <h4>
136
  </div>
137
  </div>
138
  </div>
139
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  </div>
141
  </div>
142
  </div>