Version Description
Download this release
Release Info
Developer | contact-banker |
Plugin | Contact Bank: WordPress Form Builder for Contact Forms |
Version | 2.0.9 |
Comparing to | |
See all releases |
Code changes from version 2.0.8 to 2.0.9
- assets/css/system-message.css +1 -1
- assets/images/icons/icon-error.png +0 -0
- contact-bank.php +1 -1
- frontend_views/contact_bank_forms.php +12 -12
- languages/{contact_bank-ar_AR.mo → contact_bank-ar.mo} +0 -0
- languages/{contact_bank-ar_AR.po → contact_bank-ar.po} +1 -1
- languages/{contact_bank-tr_TR.mo → contact_bank-tr.mo} +0 -0
- languages/{contact_bank-tr_TR.po → contact_bank-tr.po} +1 -1
- lib/contact_view-class.php +10 -0
- lib/install-script.php +2 -2
- readme.txt +3 -4
- views/header.php +27 -11
assets/css/system-message.css
CHANGED
@@ -36,7 +36,7 @@ Version: 1.0
|
|
36 |
|
37 |
.message.red {
|
38 |
display: block;
|
39 |
-
background : 10px 8px #F8E9E9;
|
40 |
border: 1px solid #E4BBBC;
|
41 |
color: #b80000;
|
42 |
}
|
36 |
|
37 |
.message.red {
|
38 |
display: block;
|
39 |
+
background : url(../images/icons/icon-error.png) no-repeat 10px 8px #F8E9E9;
|
40 |
border: 1px solid #E4BBBC;
|
41 |
color: #b80000;
|
42 |
}
|
assets/images/icons/icon-error.png
ADDED
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.
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
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.9
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
frontend_views/contact_bank_forms.php
CHANGED
@@ -359,9 +359,9 @@ $forms_email_settings = $wpdb->get_row
|
|
359 |
$ddl_values = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_dropdown_option_val"]);
|
360 |
$ddl_ids = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_dropdown_option_id"]);
|
361 |
?>
|
362 |
-
<div class="layout-controls layout_according_label_position">
|
363 |
-
<select class="
|
364 |
-
|
365 |
name="ux_select_default_<?php echo $form_fields[$flag]->column_dynamicId; ?>">
|
366 |
<option value="<?php echo count($ddl_values) == 0 ? " " : ""; ?>"><?php _e("Select Option", contact_bank); ?></option>
|
367 |
<?php
|
@@ -382,14 +382,14 @@ $forms_email_settings = $wpdb->get_row
|
|
382 |
if(count($chk_ids) > 0)
|
383 |
{
|
384 |
?>
|
385 |
-
<div class="layout-controls layout_according_label_position">
|
386 |
<?php
|
387 |
foreach($chk_ids as $key => $value )
|
388 |
{
|
389 |
?>
|
390 |
|
391 |
-
<input type="checkbox"
|
392 |
-
|
393 |
name="<?php echo $form_fields[$flag]->column_dynamicId; ?>_chk[]"
|
394 |
value ="<?php echo $chk_values[$key]; ?>" />
|
395 |
<label style="margin:0px;vertical-align: middle;" id="chk_id_<?php echo $value; ?>">
|
@@ -405,7 +405,7 @@ $forms_email_settings = $wpdb->get_row
|
|
405 |
else
|
406 |
{
|
407 |
?>
|
408 |
-
<div class="layout-controls layout_according_label_position">
|
409 |
<input type="checkbox" id="ux_chk_control_" />
|
410 |
</div>
|
411 |
<?php
|
@@ -417,16 +417,16 @@ $forms_email_settings = $wpdb->get_row
|
|
417 |
if(count($rdl_ids) > 0)
|
418 |
{
|
419 |
?>
|
420 |
-
<div class="layout-controls layout_according_label_position">
|
421 |
<?php
|
422 |
foreach($rdl_ids as $key => $value )
|
423 |
{
|
424 |
if($layout_settings_array[$form_id]["input_field_rdl_multiple_row"] == "0")
|
425 |
{
|
426 |
?>
|
427 |
-
<input type="radio"
|
428 |
name="<?php echo $form_fields[$flag]->column_dynamicId; ?>_rdl"
|
429 |
-
|
430 |
value ="<?php echo $rdl_values[$key]; ?>" />
|
431 |
<label style="margin:0px;vertical-align: middle;" id="rdl_id_<?php echo $value; ?>">
|
432 |
<?php echo $rdl_values[$key]; ?>
|
@@ -437,7 +437,7 @@ $forms_email_settings = $wpdb->get_row
|
|
437 |
{
|
438 |
?>
|
439 |
|
440 |
-
<input type="radio"
|
441 |
name="<?php echo $form_fields[$flag]->column_dynamicId; ?>_rdl"
|
442 |
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"
|
443 |
value ="<?php echo $rdl_values[$key]; ?>" />
|
@@ -456,7 +456,7 @@ $forms_email_settings = $wpdb->get_row
|
|
456 |
else
|
457 |
{
|
458 |
?>
|
459 |
-
<div class="layout-controls layout_according_label_position">
|
460 |
<input type="radio" id="ux_rdl_control_" />
|
461 |
</div>
|
462 |
<?php
|
359 |
$ddl_values = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_dropdown_option_val"]);
|
360 |
$ddl_ids = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_dropdown_option_id"]);
|
361 |
?>
|
362 |
+
<div class="layout-controls layout_according_label_position hovertip" data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>">
|
363 |
+
<select class=" input_control <?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>" type="select" id="ux_select_default_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
364 |
+
|
365 |
name="ux_select_default_<?php echo $form_fields[$flag]->column_dynamicId; ?>">
|
366 |
<option value="<?php echo count($ddl_values) == 0 ? " " : ""; ?>"><?php _e("Select Option", contact_bank); ?></option>
|
367 |
<?php
|
382 |
if(count($chk_ids) > 0)
|
383 |
{
|
384 |
?>
|
385 |
+
<div class="layout-controls layout_according_label_position hovertip" data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>">
|
386 |
<?php
|
387 |
foreach($chk_ids as $key => $value )
|
388 |
{
|
389 |
?>
|
390 |
|
391 |
+
<input type="checkbox" id="ux_chk_control_<?php echo $value; ?>"
|
392 |
+
|
393 |
name="<?php echo $form_fields[$flag]->column_dynamicId; ?>_chk[]"
|
394 |
value ="<?php echo $chk_values[$key]; ?>" />
|
395 |
<label style="margin:0px;vertical-align: middle;" id="chk_id_<?php echo $value; ?>">
|
405 |
else
|
406 |
{
|
407 |
?>
|
408 |
+
<div class="layout-controls layout_according_label_position hovertip" data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>">
|
409 |
<input type="checkbox" id="ux_chk_control_" />
|
410 |
</div>
|
411 |
<?php
|
417 |
if(count($rdl_ids) > 0)
|
418 |
{
|
419 |
?>
|
420 |
+
<div class="layout-controls layout_according_label_position hovertip" data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>">
|
421 |
<?php
|
422 |
foreach($rdl_ids as $key => $value )
|
423 |
{
|
424 |
if($layout_settings_array[$form_id]["input_field_rdl_multiple_row"] == "0")
|
425 |
{
|
426 |
?>
|
427 |
+
<input type="radio" id="ux_rdl_control_<?php echo $value; ?>"
|
428 |
name="<?php echo $form_fields[$flag]->column_dynamicId; ?>_rdl"
|
429 |
+
|
430 |
value ="<?php echo $rdl_values[$key]; ?>" />
|
431 |
<label style="margin:0px;vertical-align: middle;" id="rdl_id_<?php echo $value; ?>">
|
432 |
<?php echo $rdl_values[$key]; ?>
|
437 |
{
|
438 |
?>
|
439 |
|
440 |
+
<input type="radio" id="ux_rdl_control_<?php echo $value; ?>"
|
441 |
name="<?php echo $form_fields[$flag]->column_dynamicId; ?>_rdl"
|
442 |
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"
|
443 |
value ="<?php echo $rdl_values[$key]; ?>" />
|
456 |
else
|
457 |
{
|
458 |
?>
|
459 |
+
<div class="layout-controls layout_according_label_position hovertip" data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>">
|
460 |
<input type="radio" id="ux_rdl_control_" />
|
461 |
</div>
|
462 |
<?php
|
languages/{contact_bank-ar_AR.mo → contact_bank-ar.mo}
RENAMED
Binary file
|
languages/{contact_bank-ar_AR.po → contact_bank-ar.po}
RENAMED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contact Bank\n"
|
4 |
"POT-Creation-Date: 2014-03-18 15:42+0530\n"
|
5 |
-
"PO-Revision-Date: 2014-03-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: Tech Banker <contact.bank@tech-banker.com>\n"
|
8 |
"Language: ar_AR\n"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contact Bank\n"
|
4 |
"POT-Creation-Date: 2014-03-18 15:42+0530\n"
|
5 |
+
"PO-Revision-Date: 2014-03-21 09:58+0530\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: Tech Banker <contact.bank@tech-banker.com>\n"
|
8 |
"Language: ar_AR\n"
|
languages/{contact_bank-tr_TR.mo → contact_bank-tr.mo}
RENAMED
Binary file
|
languages/{contact_bank-tr_TR.po → contact_bank-tr.po}
RENAMED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"POT-Creation-Date: 2014-03-18 15:51+0530\n"
|
5 |
-
"PO-Revision-Date: 2014-03-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"MIME-Version: 1.0\n"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"POT-Creation-Date: 2014-03-18 15:51+0530\n"
|
5 |
+
"PO-Revision-Date: 2014-03-21 09:56+0530\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"MIME-Version: 1.0\n"
|
lib/contact_view-class.php
CHANGED
@@ -357,6 +357,16 @@ else
|
|
357 |
"[control_".$email_dynamicId."]",
|
358 |
$form_id,
|
359 |
"Client Notification"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
360 |
|
361 |
)
|
362 |
);
|
357 |
"[control_".$email_dynamicId."]",
|
358 |
$form_id,
|
359 |
"Client Notification"
|
360 |
+
)
|
361 |
+
);
|
362 |
+
$wpdb->query
|
363 |
+
(
|
364 |
+
$wpdb->prepare
|
365 |
+
(
|
366 |
+
"UPDATE " . contact_bank_email_template_admin() . " SET `send_to` = %d where form_id = %d and name = %s",
|
367 |
+
1,
|
368 |
+
$form_id,
|
369 |
+
"Client Notification"
|
370 |
|
371 |
)
|
372 |
);
|
lib/install-script.php
CHANGED
@@ -456,7 +456,7 @@ if($version == "")
|
|
456 |
}
|
457 |
if (count($wpdb->get_var("SHOW TABLES LIKE '" . contact_bank_licensing() . "'")) == 0)
|
458 |
{
|
459 |
-
|
460 |
}
|
461 |
if (count($wpdb->get_var("SHOW TABLES LIKE '" . contact_bank_roles_capability() . "'")) == 0)
|
462 |
{
|
@@ -654,7 +654,7 @@ function create_contact_bank_form_settings()
|
|
654 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
655 |
dbDelta($sql);
|
656 |
}
|
657 |
-
function
|
658 |
{
|
659 |
global $wpdb;
|
660 |
$sql = "CREATE TABLE " . contact_bank_licensing() . "(
|
456 |
}
|
457 |
if (count($wpdb->get_var("SHOW TABLES LIKE '" . contact_bank_licensing() . "'")) == 0)
|
458 |
{
|
459 |
+
create_cb_table_licensing();
|
460 |
}
|
461 |
if (count($wpdb->get_var("SHOW TABLES LIKE '" . contact_bank_roles_capability() . "'")) == 0)
|
462 |
{
|
654 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
655 |
dbDelta($sql);
|
656 |
}
|
657 |
+
function create_cb_table_licensing()
|
658 |
{
|
659 |
global $wpdb;
|
660 |
$sql = "CREATE TABLE " . contact_bank_licensing() . "(
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Contact Bank ===
|
2 |
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:
|
5 |
Tested up to: 3.8.1
|
6 |
-
Stable tag: 2.0.
|
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
|
23 |
|
24 |
<a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
|
25 |
|
@@ -103,7 +103,6 @@ Visit [here](http://tech-banker.com/contact-bank) to upgrade to Pro Version now.
|
|
103 |
* Indonesian (id_ID)
|
104 |
* Italian (it_IT)
|
105 |
* Japanese (ja)
|
106 |
-
* Korean (hu_HU)
|
107 |
* Polish (pl_PL)
|
108 |
* Portuguese (pt_PT)
|
109 |
* Romanian (ro_RO)
|
1 |
=== Contact Bank ===
|
2 |
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.9
|
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 21, 2014: We're happy to announce that Contact Bank reached 15,950+ 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 |
|
103 |
* Indonesian (id_ID)
|
104 |
* Italian (it_IT)
|
105 |
* Japanese (ja)
|
|
|
106 |
* Polish (pl_PL)
|
107 |
* Portuguese (pt_PT)
|
108 |
* Romanian (ro_RO)
|
views/header.php
CHANGED
@@ -1,27 +1,43 @@
|
|
1 |
<?php
|
2 |
$cb_lang = array();
|
|
|
|
|
|
|
3 |
array_push($cb_lang, "ar", "bg_BG", "da_DK", "de_DE", "es_ES", "fi_FI", "he_IL", "hu_HU", "id_ID",
|
4 |
"it_IT", "ja", "ko_KR", "ms_MY", "nl_NL", "pl_PL", "pt_BR", "pt_PT", "ro_RO", "sk_SK", "sl_SI", "sq_AL",
|
5 |
"sr_RS", "sv_SE", "th", "tr", "zh_CN");
|
6 |
$cb_language = get_locale();
|
7 |
-
?>
|
8 |
|
|
|
|
|
9 |
<img style="margin: 10px;" src="<?php echo CONTACT_BK_PLUGIN_URL .'/assets/images/cb-logo.png';?>"/>
|
10 |
<a target="_blank" href="http://tech-banker.com/contact-bank/">
|
11 |
<img style="float: right;margin: 7px 11px;" src="<?php echo CONTACT_BK_PLUGIN_URL .'/assets/images/banner.png';?>"/></a>
|
12 |
<?php
|
13 |
if(in_array($cb_language, $cb_lang))
|
14 |
{
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
?>
|
27 |
<div class="message red" style="display: block;margin-top:10px">
|
1 |
<?php
|
2 |
$cb_lang = array();
|
3 |
+
$cb_lang_translated_languages = array();
|
4 |
+
array_push($cb_lang_translated_languages,"fr_FR","ru_RU","en_US");
|
5 |
+
|
6 |
array_push($cb_lang, "ar", "bg_BG", "da_DK", "de_DE", "es_ES", "fi_FI", "he_IL", "hu_HU", "id_ID",
|
7 |
"it_IT", "ja", "ko_KR", "ms_MY", "nl_NL", "pl_PL", "pt_BR", "pt_PT", "ro_RO", "sk_SK", "sl_SI", "sq_AL",
|
8 |
"sr_RS", "sv_SE", "th", "tr", "zh_CN");
|
9 |
$cb_language = get_locale();
|
|
|
10 |
|
11 |
+
|
12 |
+
?>
|
13 |
<img style="margin: 10px;" src="<?php echo CONTACT_BK_PLUGIN_URL .'/assets/images/cb-logo.png';?>"/>
|
14 |
<a target="_blank" href="http://tech-banker.com/contact-bank/">
|
15 |
<img style="float: right;margin: 7px 11px;" src="<?php echo CONTACT_BK_PLUGIN_URL .'/assets/images/banner.png';?>"/></a>
|
16 |
<?php
|
17 |
if(in_array($cb_language, $cb_lang))
|
18 |
{
|
19 |
+
?>
|
20 |
+
<div class="message red" style="display: block;margin-top:10px">
|
21 |
+
<span style="padding: 4px 0;">
|
22 |
+
<strong><p style="font:12px/1.0em Arial !important;">This plugin language is translated with the help of Google Translator.</p>
|
23 |
+
<p style="font:12px/1.0em Arial !important;">If you would like to translate & help us, we will reward you with a free Pro Edition License of Contact Bank worth 16£.</p>
|
24 |
+
<p style="font:12px/1.0em Arial !important;">Contact Us at <a target="_blank" href="http://tech-banker.com">http://tech-banker.com</a> or email us at <a href="mailto:support@tech-banker.com">support@tech-banker.com</a></p>
|
25 |
+
</strong>
|
26 |
+
</span>
|
27 |
+
</div>
|
28 |
+
<?php
|
29 |
+
}
|
30 |
+
elseif(!(in_array($cb_language, $cb_lang_translated_languages)) && !(in_array($cb_language, $cb_lang)) && $cb_language != "")
|
31 |
+
{
|
32 |
+
?>
|
33 |
+
<div class="message red" style="display: block;margin-top:10px">
|
34 |
+
<span style="padding: 4px 0;">
|
35 |
+
<strong><p style="font:12px/1.0em Arial !important;">If you would like to translate Contact Bank in your native language, we will reward you with a free Pro Edition License of Contact Bank worth 16£.</p>
|
36 |
+
<p style="font:12px/1.0em Arial !important;">Contact Us at <a target="_blank" href="http://tech-banker.com">http://tech-banker.com</a> or email us at <a href="mailto:support@tech-banker.com">support@tech-banker.com</a></p>
|
37 |
+
</strong>
|
38 |
+
</span>
|
39 |
+
</div>
|
40 |
+
<?php
|
41 |
}
|
42 |
?>
|
43 |
<div class="message red" style="display: block;margin-top:10px">
|