Version Description
- Formatting Issue Fixed.
Download this release
Release Info
Developer | contact-banker |
Plugin | Contact Bank: WordPress Form Builder for Contact Forms |
Version | 2.0.105 |
Comparing to | |
See all releases |
Code changes from version 2.0.104 to 2.0.105
- contact-bank.php +174 -156
- frontend_views/contact_bank_forms.php +2 -3
- includes/cb_checkbox.php +47 -47
- includes/cb_dropdown.php +2 -2
- includes/cb_textarea.php +167 -192
- lib/contact_bank_frontend-class.php +1 -1
- lib/contact_bank_layout_settings-class.php +6 -6
- lib/contact_view-class.php +25 -0
- lib/uninstall-script.php +3 -3
- readme.txt +5 -1
- views/add_contact_email.php +1 -1
- views/contact_bank_layout_settings.php +1 -1
- views/contact_bank_pro_version.php +1 -1
- views/contact_controls_files.php +1 -1
- views/contact_documentation.php +11 -12
- views/contact_email_settings.php +1 -2
- views/contact_frontend_data.php +1 -2
- views/purchase_pro_version.php +1 -1
- views/recommended-plugins.php +1 -1
- views/shortcode.php +1 -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.
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -580,136 +580,154 @@ function frontend_plugin_css_styles_contact_bank()
|
|
580 |
}
|
581 |
if(isset($_REQUEST["action"]))
|
582 |
{
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
|
|
|
|
|
|
|
|
612 |
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_frontend-class.php";
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
670 |
case "show_form_control_data_contact_library":
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
|
|
|
|
|
|
|
|
|
|
713 |
}
|
714 |
/*
|
715 |
* Description : THESE FUNCTIONS USED FOR REPLACING TABLE NAMES
|
@@ -1212,19 +1230,19 @@ class Contact_Bank_Widget extends WP_Widget
|
|
1212 |
?>
|
1213 |
<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>
|
1214 |
<p><label for="<?php echo $this->get_field_id("form_id"); ?>"><?php _e("Select Form :", contact_bank); ?></label>
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
</p>
|
1229 |
<?php
|
1230 |
}
|
@@ -1239,26 +1257,26 @@ class Contact_Bank_Widget extends WP_Widget
|
|
1239 |
{
|
1240 |
global $wpdb;
|
1241 |
$form_data = $wpdb->get_var
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
|
1250 |
extract($args, EXTR_SKIP);
|
1251 |
echo $before_widget;
|
1252 |
$title = empty($instance["title"]) ? " " : apply_filters("widget_title", $instance["title"]);
|
1253 |
if($form_data > 0)
|
1254 |
{
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
}
|
1263 |
}
|
1264 |
}
|
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.105
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
580 |
}
|
581 |
if(isset($_REQUEST["action"]))
|
582 |
{
|
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 |
+
{
|
590 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
591 |
+
if (is_super_admin())
|
592 |
+
{
|
593 |
+
$cb_role = "administrator";
|
594 |
+
}
|
595 |
+
else
|
596 |
+
{
|
597 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
598 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
599 |
+
$cb_role = $current_user->role[0];
|
600 |
+
}
|
601 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_view-class.php"))
|
602 |
+
{
|
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 |
+
{
|
614 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_frontend-class.php"))
|
615 |
+
{
|
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 |
+
{
|
627 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
628 |
+
if (is_super_admin())
|
629 |
+
{
|
630 |
+
$cb_role = "administrator";
|
631 |
+
}
|
632 |
+
else
|
633 |
+
{
|
634 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
635 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
636 |
+
$cb_role = $current_user->role[0];
|
637 |
+
}
|
638 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_email-class.php"))
|
639 |
+
{
|
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 |
+
{
|
651 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_email_management.php"))
|
652 |
+
{
|
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 |
+
{
|
664 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
665 |
+
if (is_super_admin())
|
666 |
+
{
|
667 |
+
$cb_role = "administrator";
|
668 |
+
}
|
669 |
+
else
|
670 |
+
{
|
671 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
672 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
673 |
+
$cb_role = $current_user->role[0];
|
674 |
+
}
|
675 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_frontend_data_class.php"))
|
676 |
+
{
|
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 |
+
{
|
688 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
689 |
+
if (is_super_admin())
|
690 |
+
{
|
691 |
+
$cb_role = "administrator";
|
692 |
+
}
|
693 |
+
else
|
694 |
+
{
|
695 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
696 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
697 |
+
$cb_role = $current_user->role[0];
|
698 |
+
}
|
699 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_show_form_control_data-class.php"))
|
700 |
+
{
|
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 |
+
{
|
712 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
713 |
+
if (is_super_admin())
|
714 |
+
{
|
715 |
+
$cb_role = "administrator";
|
716 |
+
}
|
717 |
+
else
|
718 |
+
{
|
719 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
720 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
721 |
+
$cb_role = $current_user->role[0];
|
722 |
+
}
|
723 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_layout_settings-class.php"))
|
724 |
+
{
|
725 |
+
include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php";
|
726 |
+
}
|
727 |
+
}
|
728 |
+
|
729 |
+
break;
|
730 |
+
}
|
731 |
}
|
732 |
/*
|
733 |
* Description : THESE FUNCTIONS USED FOR REPLACING TABLE NAMES
|
1230 |
?>
|
1231 |
<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>
|
1232 |
<p><label for="<?php echo $this->get_field_id("form_id"); ?>"><?php _e("Select Form :", contact_bank); ?></label>
|
1233 |
+
<select size="1" name="<?php echo $this->get_field_name("form_id"); ?>" id="<?php echo $this->get_field_id("form_id"); ?>" class="widefat">
|
1234 |
+
<option value="0" ><?php _e("Select Form", contact_bank); ?></option>
|
1235 |
+
<?php
|
1236 |
+
if($form_data) {
|
1237 |
+
foreach($form_data as $form)
|
1238 |
+
{
|
1239 |
+
echo "<option value=\"" . $form->form_id . "\"";
|
1240 |
+
if ($form->form_id == $instance["form_id"]) echo "selected=\"selected\"";
|
1241 |
+
echo ">" . stripslashes(html_entity_decode($form->form_name)) . "</option>" . "\n\t";
|
1242 |
+
}
|
1243 |
+
}
|
1244 |
+
?>
|
1245 |
+
</select>
|
1246 |
</p>
|
1247 |
<?php
|
1248 |
}
|
1257 |
{
|
1258 |
global $wpdb;
|
1259 |
$form_data = $wpdb->get_var
|
1260 |
+
(
|
1261 |
+
$wpdb->prepare
|
1262 |
+
(
|
1263 |
+
"SELECT count(*) FROM " .contact_bank_contact_form() . " WHERE form_id = %d",
|
1264 |
+
$instance["form_id"]
|
1265 |
+
)
|
1266 |
+
);
|
1267 |
|
1268 |
extract($args, EXTR_SKIP);
|
1269 |
echo $before_widget;
|
1270 |
$title = empty($instance["title"]) ? " " : apply_filters("widget_title", $instance["title"]);
|
1271 |
if($form_data > 0)
|
1272 |
{
|
1273 |
+
if($instance["form_id"] != 0)
|
1274 |
+
{
|
1275 |
+
echo $before_title . $title . $after_title;
|
1276 |
+
$shortcode_for_contact_bank_form = "[contact_bank form_id=" . $instance["form_id"] . " ]";
|
1277 |
+
echo do_shortcode( $shortcode_for_contact_bank_form );
|
1278 |
+
echo $after_widget;
|
1279 |
+
}
|
1280 |
}
|
1281 |
}
|
1282 |
}
|
frontend_views/contact_bank_forms.php
CHANGED
@@ -273,7 +273,6 @@ $rand_value = RAND(10,10000);
|
|
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")
|
@@ -392,7 +391,7 @@ $rand_value = RAND(10,10000);
|
|
392 |
?>
|
393 |
<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"]; ?>">
|
394 |
<?php
|
395 |
-
|
396 |
{
|
397 |
if($key == "0")
|
398 |
{
|
@@ -576,4 +575,4 @@ jQuery("#ux_frm_front_end_form_<?php echo $form_id ."_". $rand_value; ?>").valid
|
|
576 |
});
|
577 |
}
|
578 |
});
|
579 |
-
</script>
|
273 |
<strong><?php echo $form_settings_array[$form_id]["success_message"]; ?></strong>
|
274 |
</span>
|
275 |
</div>
|
|
|
276 |
<div>
|
277 |
<?php
|
278 |
if($show_title == "true")
|
391 |
?>
|
392 |
<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"]; ?>">
|
393 |
<?php
|
394 |
+
foreach($rdl_ids as $key => $value )
|
395 |
{
|
396 |
if($key == "0")
|
397 |
{
|
575 |
});
|
576 |
}
|
577 |
});
|
578 |
+
</script>
|
includes/cb_checkbox.php
CHANGED
@@ -21,30 +21,30 @@ else
|
|
21 |
$form_settings = array();
|
22 |
$control_id = $wpdb->get_var
|
23 |
(
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
);
|
32 |
if(count($control_id) != 0)
|
33 |
{
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
}
|
49 |
?>
|
50 |
<form id="ux_frm_check_box_control" action="#" method="post" class="layout-form">
|
@@ -135,37 +135,37 @@ else
|
|
135 |
}
|
136 |
else
|
137 |
{
|
138 |
-
|
139 |
<div class="layout-control-group" style="overflow: hidden;max-height: 110px;display:none" id="bind_dropdown_<?php echo $dynamicId; ?>">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
<?php
|
141 |
}
|
142 |
?>
|
|
|
|
|
143 |
<div class="layout-controls">
|
144 |
-
<
|
145 |
-
<?php
|
146 |
-
foreach(unserialize($form_settings[$dynamicId]["cb_checkbox_option_id"]) as $key => $value )
|
147 |
-
{
|
148 |
-
?>
|
149 |
-
<option value="<?php echo $value; ?>"><?php echo $options_value[$key]; ?></option>
|
150 |
-
<?php
|
151 |
-
}
|
152 |
-
?>
|
153 |
-
</select>
|
154 |
-
<input class="btn btn-info layout-span2" style="margin-left:10px;" value="<?php _e( "Delete", contact_bank ); ?>" type="button" id="ddl_options_btn_del_<?php echo $dynamicId; ?>" onclick="delete_ddl_options(<?php echo $dynamicId; ?>);" name="ddl_options_btn_del_<?php echo $dynamicId; ?>" />
|
155 |
</div>
|
156 |
</div>
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
<div class="layout-control-group">
|
161 |
-
<label class="layout-control-label"><?php _e( "Admin Label", contact_bank ); ?> :</label>
|
162 |
-
<div class="layout-controls">
|
163 |
-
<input type="text" value="<?php echo isset($form_settings[$dynamicId]["cb_admin_label"]) ? $form_settings[$dynamicId]["cb_admin_label"] : _e( "Untitled", contact_bank ); ?>" class="layout-span12" id="ux_admin_label_<?php echo $dynamicId; ?>" class="layout-span12" id="ux_admin_label_<?php echo $dynamicId; ?>" placeholder="<?php _e( "Enter Admin Label", contact_bank ); ?>" name="ux_admin_label_<?php echo $dynamicId; ?>" />
|
164 |
-
</div>
|
165 |
-
</div>
|
166 |
-
<div class="layout-control-group">
|
167 |
-
<label class="layout-control-label"><?php _e( "Do not show in the email", contact_bank ); ?> :</label>
|
168 |
-
<div class="layout-controls">
|
169 |
<?php
|
170 |
if(isset($form_settings[$dynamicId]["cb_show_email"]))
|
171 |
{
|
@@ -189,11 +189,11 @@ else
|
|
189 |
<?php
|
190 |
}
|
191 |
?>
|
|
|
192 |
</div>
|
|
|
193 |
</div>
|
194 |
-
<input type="hidden" id="ux_hd_textbox_dynamic_id" name="ux_hd_textbox_dynamic_id" value="<?php echo $dynamicId; ?>"/>
|
195 |
</div>
|
196 |
-
</div>
|
197 |
<div class="layout-control-group">
|
198 |
<input type="submit" class="btn btn-info layout-span3" value="<?php _e( "Save Settings", contact_bank ); ?>" />
|
199 |
</div>
|
21 |
$form_settings = array();
|
22 |
$control_id = $wpdb->get_var
|
23 |
(
|
24 |
+
$wpdb->prepare
|
25 |
+
(
|
26 |
+
"SELECT control_id FROM " .create_control_Table(). " where form_id= %d and field_id = %d and column_dynamicId = %d",
|
27 |
+
$form_id,
|
28 |
+
$field_type,
|
29 |
+
$dynamicId
|
30 |
+
)
|
31 |
);
|
32 |
if(count($control_id) != 0)
|
33 |
{
|
34 |
+
$form_data = $wpdb->get_results
|
35 |
+
(
|
36 |
+
$wpdb->prepare
|
37 |
+
(
|
38 |
+
"SELECT * FROM " .contact_bank_dynamic_settings_form(). " where dynamicId= %d",
|
39 |
+
$control_id
|
40 |
+
)
|
41 |
+
);
|
42 |
+
$form_settings[$dynamicId]["dynamic_id"] = $dynamicId;
|
43 |
+
$form_settings[$dynamicId]["control_type"] = "1";
|
44 |
+
for($flag = 0; $flag<count($form_data);$flag++)
|
45 |
+
{
|
46 |
+
$form_settings[$dynamicId][$form_data[$flag]->dynamic_settings_key] = $form_data[$flag]->dynamic_settings_value;
|
47 |
+
}
|
48 |
}
|
49 |
?>
|
50 |
<form id="ux_frm_check_box_control" action="#" method="post" class="layout-form">
|
135 |
}
|
136 |
else
|
137 |
{
|
138 |
+
?>
|
139 |
<div class="layout-control-group" style="overflow: hidden;max-height: 110px;display:none" id="bind_dropdown_<?php echo $dynamicId; ?>">
|
140 |
+
<?php
|
141 |
+
}
|
142 |
+
?>
|
143 |
+
<div class="layout-controls">
|
144 |
+
<select id="dropdown_ddl_option_<?php echo $dynamicId; ?>" class="layout-span9">
|
145 |
+
<?php
|
146 |
+
foreach(unserialize($form_settings[$dynamicId]["cb_checkbox_option_id"]) as $key => $value )
|
147 |
+
{
|
148 |
+
?>
|
149 |
+
<option value="<?php echo $value; ?>"><?php echo $options_value[$key]; ?></option>
|
150 |
+
<?php
|
151 |
+
}
|
152 |
+
?>
|
153 |
+
</select>
|
154 |
+
<input class="btn btn-info layout-span2" style="margin-left:10px;" value="<?php _e( "Delete", contact_bank ); ?>" type="button" id="ddl_options_btn_del_<?php echo $dynamicId; ?>" onclick="delete_ddl_options(<?php echo $dynamicId; ?>);" name="ddl_options_btn_del_<?php echo $dynamicId; ?>" />
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
<?php
|
158 |
}
|
159 |
?>
|
160 |
+
<div class="layout-control-group">
|
161 |
+
<label class="layout-control-label"><?php _e( "Admin Label", contact_bank ); ?> :</label>
|
162 |
<div class="layout-controls">
|
163 |
+
<input type="text" value="<?php echo isset($form_settings[$dynamicId]["cb_admin_label"]) ? $form_settings[$dynamicId]["cb_admin_label"] : _e( "Untitled", contact_bank ); ?>" class="layout-span12" id="ux_admin_label_<?php echo $dynamicId; ?>" class="layout-span12" id="ux_admin_label_<?php echo $dynamicId; ?>" placeholder="<?php _e( "Enter Admin Label", contact_bank ); ?>" name="ux_admin_label_<?php echo $dynamicId; ?>" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
</div>
|
165 |
</div>
|
166 |
+
<div class="layout-control-group">
|
167 |
+
<label class="layout-control-label"><?php _e( "Do not show in the email", contact_bank ); ?> :</label>
|
168 |
+
<div class="layout-controls">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
<?php
|
170 |
if(isset($form_settings[$dynamicId]["cb_show_email"]))
|
171 |
{
|
189 |
<?php
|
190 |
}
|
191 |
?>
|
192 |
+
</div>
|
193 |
</div>
|
194 |
+
<input type="hidden" id="ux_hd_textbox_dynamic_id" name="ux_hd_textbox_dynamic_id" value="<?php echo $dynamicId; ?>"/>
|
195 |
</div>
|
|
|
196 |
</div>
|
|
|
197 |
<div class="layout-control-group">
|
198 |
<input type="submit" class="btn btn-info layout-span3" value="<?php _e( "Save Settings", contact_bank ); ?>" />
|
199 |
</div>
|
includes/cb_dropdown.php
CHANGED
@@ -130,13 +130,13 @@ else
|
|
130 |
if(count($options_values) > 0)
|
131 |
{
|
132 |
?>
|
133 |
-
|
134 |
<?php
|
135 |
}
|
136 |
else
|
137 |
{
|
138 |
?>
|
139 |
-
|
140 |
<?php
|
141 |
}
|
142 |
?>
|
130 |
if(count($options_values) > 0)
|
131 |
{
|
132 |
?>
|
133 |
+
<div class="layout-control-group" style="overflow: hidden;max-height: 110px;" id="bind_dropdown_<?php echo $dynamicId; ?>">
|
134 |
<?php
|
135 |
}
|
136 |
else
|
137 |
{
|
138 |
?>
|
139 |
+
<div class="layout-control-group" style="overflow: hidden;max-height: 110px;display:none" id="bind_dropdown_<?php echo $dynamicId; ?>">
|
140 |
<?php
|
141 |
}
|
142 |
?>
|
includes/cb_textarea.php
CHANGED
@@ -48,202 +48,177 @@ else
|
|
48 |
}
|
49 |
?>
|
50 |
<form id="ux_frm_text_area_control" action="#" method="post" class="layout-form">
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
}
|
174 |
-
else
|
175 |
-
{
|
176 |
-
?>
|
177 |
-
<input type="checkbox" id="ux_show_email_<?php echo $dynamicId; ?>"
|
178 |
-
name="ux_show_email_<?php echo $dynamicId; ?>" style="margin-top: 10px;" value="0">
|
179 |
-
<?php
|
180 |
-
}
|
181 |
-
?>
|
182 |
-
</div>
|
183 |
-
</div>
|
184 |
-
<div class="layout-control-group">
|
185 |
-
<label class="layout-control-label" style="padding-top: 5px"><?php _e( "Add a filter", contact_bank ); ?> :</label>
|
186 |
-
<div class="layout-controls" style="padding-top:5px;">
|
187 |
-
<input type="checkbox" value="0" id="ux_checkbox_alpha_filter"
|
188 |
-
name="ux_checkbox_alpha_filter"/>
|
189 |
-
<span class="rdl"><?php _e( "Alpha", contact_bank ); ?></span>
|
190 |
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
<input type="hidden" id="ux_hd_textbox_dynamic_id" name="ux_hd_textbox_dynamic_id" value="<?php echo $dynamicId; ?>"/>
|
212 |
-
</div>
|
213 |
-
</div>
|
214 |
-
<div class="layout-control-group">
|
215 |
-
<input type="submit" class="btn btn-info layout-span3" value="<?php _e( "Save Settings", contact_bank ); ?>" />
|
216 |
-
</div>
|
217 |
-
</div>
|
218 |
-
</div>
|
219 |
</form>
|
220 |
<a class="closeButtonLightbox" onclick="CloseLightbox();"></a>
|
221 |
<script type="text/javascript">
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
</script>
|
248 |
<?php
|
249 |
}
|
48 |
}
|
49 |
?>
|
50 |
<form id="ux_frm_text_area_control" action="#" method="post" class="layout-form">
|
51 |
+
<div class="fluid-layout">
|
52 |
+
<div class="layout-span12">
|
53 |
+
<div class="widget-layout">
|
54 |
+
<div class="widget-layout-title">
|
55 |
+
<h4><?php _e( "Paragraph Text", contact_bank ); ?></h4>
|
56 |
+
</div>
|
57 |
+
<div class="widget-layout-body">
|
58 |
+
<div class="layout-control-group">
|
59 |
+
<label class="layout-control-label"><?php _e( "Label", contact_bank ); ?> :</label>
|
60 |
+
<div class="layout-controls">
|
61 |
+
<input value="<?php echo isset($form_settings[$dynamicId]["cb_label_value"]) ? $form_settings[$dynamicId]["cb_label_value"] : _e( "Untitled", contact_bank ); ?>" onkeyup="enter_admin_label(<?php echo $dynamicId; ?>);" placeholder="<?php _e( "Enter label", contact_bank);?>" type="text" class="layout-span12" id="ux_label_text_<?php echo $dynamicId; ?>" name="ux_label_text_<?php echo $dynamicId; ?>" />
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
<div class="layout-control-group">
|
65 |
+
<label class="layout-control-label"><?php _e("Description", contact_bank); ?> :</label>
|
66 |
+
<div class="layout-controls">
|
67 |
+
<textarea placeholder="<?php _e( "Enter Description", contact_bank);?>" class="layout-span12" id="ux_description_control_<?php echo $dynamicId; ?>" name="ux_description_control_<?php echo $dynamicId; ?>" ><?php echo isset($form_settings[$dynamicId]["cb_description"]) ? $form_settings[$dynamicId]["cb_description"] : ""; ?></textarea>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
<div class="layout-control-group">
|
71 |
+
<label class="layout-control-label"><?php _e( "Required", contact_bank ); ?> :</label>
|
72 |
+
<div class="layout-controls" style="margin-top:7px;">
|
73 |
+
<?php
|
74 |
+
if(isset($form_settings[$dynamicId]["cb_control_required"]))
|
75 |
+
{
|
76 |
+
if($form_settings[$dynamicId]["cb_control_required"] == "1")
|
77 |
+
{
|
78 |
+
?>
|
79 |
+
<input type="radio" id="ux_required_control_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="1" checked="checked" />
|
80 |
+
<label style="vertical-align: text-bottom;">
|
81 |
+
<?php _e( "Required", contact_bank ); ?>
|
82 |
+
</label>
|
83 |
+
<input type="radio" id="ux_required_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="0"/>
|
84 |
+
<label style="vertical-align: text-bottom;">
|
85 |
+
<?php _e( "Not Required", contact_bank ); ?>
|
86 |
+
</label>
|
87 |
+
<?php
|
88 |
+
}
|
89 |
+
else if($form_settings[$dynamicId]["cb_control_required"] == "0")
|
90 |
+
{
|
91 |
+
?>
|
92 |
+
<input type="radio" id="ux_required_control_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="1" />
|
93 |
+
<label style="vertical-align: text-bottom;">
|
94 |
+
<?php _e( "Required", contact_bank ); ?>
|
95 |
+
</label>
|
96 |
+
<input type="radio" id="ux_required_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="0" checked="checked" />
|
97 |
+
<label style="vertical-align: text-bottom;">
|
98 |
+
<?php _e( "Not Required", contact_bank ); ?>
|
99 |
+
</label>
|
100 |
+
<?php
|
101 |
+
}
|
102 |
+
}
|
103 |
+
else
|
104 |
+
{
|
105 |
+
?>
|
106 |
+
<input type="radio" id="ux_required_control_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="1" />
|
107 |
+
<label style="vertical-align: text-bottom;">
|
108 |
+
<?php _e( "Required", contact_bank ); ?>
|
109 |
+
</label>
|
110 |
+
<input type="radio" id="ux_required_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="0" checked="checked" />
|
111 |
+
<label style="vertical-align: text-bottom;">
|
112 |
+
<?php _e( "Not Required", contact_bank ); ?>
|
113 |
+
</label>
|
114 |
+
<?php
|
115 |
+
}
|
116 |
+
?>
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
<div class="layout-control-group">
|
120 |
+
<label class="layout-control-label"><?php _e("Tooltip text", contact_bank); ?> :</label>
|
121 |
+
<div class="layout-controls">
|
122 |
+
<input placeholder="<?php _e( "This Feature is only available in Paid Premium Edition!", contact_bank);?>" type="text" class="layout-span12" id="ux_tooltip_control_<?php echo $dynamicId; ?>" name="ux_tooltip_control_<?php echo $dynamicId; ?>" readonly="readonly" />
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
<div class="layout-control-group">
|
126 |
+
<label class="layout-control-label"><?php _e( "Place Holder", contact_bank ); ?> :</label>
|
127 |
+
<div class="layout-controls">
|
128 |
+
<input placeholder="<?php _e( "Enter Place Holder", contact_bank);?>" class="layout-span12" type="text" id="ux_default_value_<?php echo $dynamicId; ?>" name="ux_default_value_<?php echo $dynamicId; ?>" value="<?php echo isset($form_settings[$dynamicId]["cb_default_txt_val"]) ? $form_settings[$dynamicId]["cb_default_txt_val"] : ""; ?>"/>
|
129 |
+
</div>
|
130 |
+
</div>
|
131 |
+
<div class="layout-control-group">
|
132 |
+
<label class="layout-control-label"><?php _e( "Admin Label", contact_bank ); ?> : </label>
|
133 |
+
<div class="layout-controls">
|
134 |
+
<input value="<?php echo isset($form_settings[$dynamicId]["cb_admin_label"]) ? $form_settings[$dynamicId]["cb_admin_label"] : _e( "Untitled", contact_bank ); ?>" placeholder="<?php _e( "Enter Admin Label", contact_bank);?>" class="layout-span12" type="text" id="ux_admin_label_<?php echo $dynamicId; ?>" name="ux_admin_label_<?php echo $dynamicId; ?>" />
|
135 |
+
</div>
|
136 |
+
</div>
|
137 |
+
<div class="layout-control-group">
|
138 |
+
<label class="layout-control-label"><?php _e( "Do not show in the email", contact_bank ); ?> : </label>
|
139 |
+
<div class="layout-controls">
|
140 |
+
<?php
|
141 |
+
if(isset($form_settings[$dynamicId]["cb_show_email"]))
|
142 |
+
{
|
143 |
+
if($form_settings[$dynamicId]["cb_show_email"] == "1")
|
144 |
+
{
|
145 |
+
?>
|
146 |
+
<input type="checkbox" checked="checked" id="ux_show_email_<?php echo $dynamicId; ?>" name="ux_show_email_<?php echo $dynamicId; ?>" style="margin-top: 10px;" value="1">
|
147 |
+
<?php
|
148 |
+
}
|
149 |
+
else
|
150 |
+
{
|
151 |
+
?>
|
152 |
+
<input type="checkbox" id="ux_show_email_<?php echo $dynamicId; ?>" name="ux_show_email_<?php echo $dynamicId; ?>" style="margin-top: 10px;" value="0">
|
153 |
+
<?php
|
154 |
+
}
|
155 |
+
}
|
156 |
+
else
|
157 |
+
{
|
158 |
+
?>
|
159 |
+
<input type="checkbox" id="ux_show_email_<?php echo $dynamicId; ?>" name="ux_show_email_<?php echo $dynamicId; ?>" style="margin-top: 10px;" value="0">
|
160 |
+
<?php
|
161 |
+
}
|
162 |
+
?>
|
163 |
+
</div>
|
164 |
+
</div>
|
165 |
+
<div class="layout-control-group">
|
166 |
+
<label class="layout-control-label" style="padding-top: 5px"><?php _e( "Add a filter", contact_bank ); ?> :</label>
|
167 |
+
<div class="layout-controls" style="padding-top:5px;">
|
168 |
+
<input type="checkbox" value="0" id="ux_checkbox_alpha_filter" name="ux_checkbox_alpha_filter"/>
|
169 |
+
<span class="rdl"><?php _e( "Alpha", contact_bank ); ?></span>
|
170 |
+
|
171 |
+
<input type="checkbox" id="ux_checkbox_alpha_num_filter" name="ux_checkbox_alpha_num_filter" value="0" />
|
172 |
+
<span class="rdl"><?php _e( "Alpha Numeric", contact_bank ); ?></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
|
174 |
+
<input type="checkbox" value="0" id="ux_checkbox_digit_filter" name="ux_checkbox_digit_filter" value="Digits" />
|
175 |
+
<span class="rdl"><?php _e( "Digits", contact_bank ); ?></span>
|
176 |
+
|
177 |
+
<input type="checkbox" id="ux_checkbox_strip_tag_filter" name="ux_checkbox_strip_tag_filter" value="0" />
|
178 |
+
<span class="rdl"><?php _e( "Strip Tags", contact_bank ); ?></span>
|
179 |
+
|
180 |
+
<input type="checkbox" id="ux_checkbox_trim_filter" name="ux_checkbox_trim_filter" value="0" />
|
181 |
+
<span class="rdl"><?php _e( "Trim", contact_bank ); ?></span>
|
182 |
+
<br>
|
183 |
+
<i class="widget_premium_feature_contact"><?php _e(" (Available in Premium Edition)", contact_bank); ?></i>
|
184 |
+
</div>
|
185 |
+
</div>
|
186 |
+
<input type="hidden" id="ux_hd_textbox_dynamic_id" name="ux_hd_textbox_dynamic_id" value="<?php echo $dynamicId; ?>"/>
|
187 |
+
</div>
|
188 |
+
</div>
|
189 |
+
<div class="layout-control-group">
|
190 |
+
<input type="submit" class="btn btn-info layout-span3" value="<?php _e( "Save Settings", contact_bank ); ?>" />
|
191 |
+
</div>
|
192 |
+
</div>
|
193 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
</form>
|
195 |
<a class="closeButtonLightbox" onclick="CloseLightbox();"></a>
|
196 |
<script type="text/javascript">
|
197 |
+
var dynamicId = "<?php echo $dynamicId; ?>";
|
198 |
+
var controlId = "<?php echo $control_id; ?>";
|
199 |
+
jQuery("#ux_frm_text_area_control").validate
|
200 |
+
({
|
201 |
+
submitHandler: function(form)
|
202 |
+
{
|
203 |
+
jQuery.post(ajaxurl, jQuery(form).serialize() + "&controlId="+controlId+"&form_id="+form_id+"&form_settings="+JSON.stringify(<?php echo json_encode($form_settings) ?>)+"&event=update¶m=save_textarea_control&action=add_contact_form_library", function()
|
204 |
+
{
|
205 |
+
jQuery("#control_label_"+dynamicId).html(jQuery("#ux_label_text_"+dynamicId).val()+" :");
|
206 |
+
jQuery("#txt_description_"+dynamicId).html(jQuery("#ux_description_control_"+dynamicId).val());
|
207 |
+
jQuery("#ux_textarea_control_"+dynamicId).attr("placeholder",jQuery("#ux_default_value_"+dynamicId).val());
|
208 |
+
jQuery("#show_tooltip"+dynamicId).attr("data-original-title",jQuery("#ux_tooltip_control_"+dynamicId).val());
|
209 |
+
if(jQuery("#ux_required_control_"+dynamicId).prop("checked") == true)
|
210 |
+
{
|
211 |
+
jQuery("#control_label_"+dynamicId).append("<span class=\"error\">*</span>");
|
212 |
+
}
|
213 |
+
CloseLightbox();
|
214 |
+
});
|
215 |
+
}
|
216 |
+
});
|
217 |
+
jQuery("#ux_checkbox_alpha_filter").attr("disabled","disabled");
|
218 |
+
jQuery("#ux_checkbox_alpha_num_filter").attr("disabled","disabled");
|
219 |
+
jQuery("#ux_checkbox_digit_filter").attr("disabled","disabled");
|
220 |
+
jQuery("#ux_checkbox_strip_tag_filter").attr("disabled","disabled");
|
221 |
+
jQuery("#ux_checkbox_trim_filter").attr("disabled","disabled");
|
222 |
</script>
|
223 |
<?php
|
224 |
}
|
lib/contact_bank_frontend-class.php
CHANGED
@@ -170,4 +170,4 @@ if(isset($_REQUEST["param"]))
|
|
170 |
die();
|
171 |
}
|
172 |
}
|
173 |
-
?>
|
170 |
die();
|
171 |
}
|
172 |
}
|
173 |
+
?>
|
lib/contact_bank_layout_settings-class.php
CHANGED
@@ -24,7 +24,7 @@ else
|
|
24 |
if($_REQUEST["param"] == "fetch_control_values")
|
25 |
{
|
26 |
$form_id = intval($_REQUEST["form_id"]);
|
27 |
-
|
28 |
$form_settings_controls = $wpdb->get_results
|
29 |
(
|
30 |
$wpdb->prepare
|
@@ -32,11 +32,11 @@ else
|
|
32 |
"SELECT form_settings_key,form_settings_value FROM " .contact_bank_layout_settings_Table()." WHERE form_id = %d order by id ASC",
|
33 |
$form_id
|
34 |
)
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
echo json_encode($layout_settings);
|
41 |
die();
|
42 |
}
|
24 |
if($_REQUEST["param"] == "fetch_control_values")
|
25 |
{
|
26 |
$form_id = intval($_REQUEST["form_id"]);
|
27 |
+
$layout_settings = array();
|
28 |
$form_settings_controls = $wpdb->get_results
|
29 |
(
|
30 |
$wpdb->prepare
|
32 |
"SELECT form_settings_key,form_settings_value FROM " .contact_bank_layout_settings_Table()." WHERE form_id = %d order by id ASC",
|
33 |
$form_id
|
34 |
)
|
35 |
+
);
|
36 |
+
for($flag = 0; $flag<count($form_settings_controls);$flag++)
|
37 |
+
{
|
38 |
+
$layout_settings[$form_settings_controls[$flag]->form_settings_key] = $form_settings_controls[$flag]->form_settings_value;
|
39 |
+
}
|
40 |
echo json_encode($layout_settings);
|
41 |
die();
|
42 |
}
|
lib/contact_view-class.php
CHANGED
@@ -79,6 +79,7 @@ else
|
|
79 |
}
|
80 |
die();
|
81 |
break;
|
|
|
82 |
case "delete_form":
|
83 |
$form_id = intval($_REQUEST["id"]);
|
84 |
$control_id = $wpdb->get_results
|
@@ -163,7 +164,9 @@ else
|
|
163 |
);
|
164 |
die();
|
165 |
break;
|
|
|
166 |
case "delete_forms":
|
|
|
167 |
global $wpdb;
|
168 |
$wpdb->query
|
169 |
(
|
@@ -199,7 +202,9 @@ else
|
|
199 |
);
|
200 |
die();
|
201 |
break;
|
|
|
202 |
case "submit_form_messages_settings":
|
|
|
203 |
$sql= "";
|
204 |
$labels_for_email = "";
|
205 |
$sql1=array();
|
@@ -333,11 +338,16 @@ else
|
|
333 |
);
|
334 |
die();
|
335 |
break;
|
|
|
336 |
case "restore_factory_settings":
|
|
|
337 |
include_once CONTACT_BK_PLUGIN_DIR ."/lib/restore_factory_settings.php";
|
338 |
die();
|
|
|
339 |
break;
|
|
|
340 |
case "save_text_control":
|
|
|
341 |
$dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
|
342 |
$form_id = intval($_REQUEST["form_id"]);
|
343 |
$event = esc_attr($_REQUEST["event"]);
|
@@ -432,7 +442,9 @@ else
|
|
432 |
}
|
433 |
die();
|
434 |
break;
|
|
|
435 |
case "save_textarea_control":
|
|
|
436 |
$dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
|
437 |
$form_id = intval($_REQUEST["form_id"]);
|
438 |
$event = esc_attr($_REQUEST["event"]);
|
@@ -528,7 +540,9 @@ else
|
|
528 |
}
|
529 |
die();
|
530 |
break;
|
|
|
531 |
case "save_email_control":
|
|
|
532 |
$dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
|
533 |
$form_id = intval($_REQUEST["form_id"]);
|
534 |
$event = esc_attr($_REQUEST["event"]);
|
@@ -619,7 +633,9 @@ else
|
|
619 |
}
|
620 |
die();
|
621 |
break;
|
|
|
622 |
case "save_drop_down_control":
|
|
|
623 |
$dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
|
624 |
$form_id = intval($_REQUEST["form_id"]);
|
625 |
$event = esc_attr($_REQUEST["event"]);
|
@@ -713,7 +729,9 @@ else
|
|
713 |
}
|
714 |
die();
|
715 |
break;
|
|
|
716 |
case "save_check_box_control":
|
|
|
717 |
$dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
|
718 |
$form_id = intval($_REQUEST["form_id"]);
|
719 |
$event = esc_attr($_REQUEST["event"]);
|
@@ -900,7 +918,9 @@ else
|
|
900 |
}
|
901 |
die();
|
902 |
break;
|
|
|
903 |
case "":
|
|
|
904 |
$form_id = intval($_REQUEST["form_id"]);
|
905 |
$field_dynamic_id = isset($_REQUEST["field_dynamic_id"]) ? json_decode(stripcslashes($_REQUEST["field_dynamic_id"]),true) : array();
|
906 |
$sql= "";
|
@@ -918,10 +938,13 @@ else
|
|
918 |
);
|
919 |
die();
|
920 |
break;
|
|
|
921 |
case "update_option":
|
|
|
922 |
update_option("contact-bank-info-popup", "no");
|
923 |
die();
|
924 |
break;
|
|
|
925 |
case "form_fields_sorting_order":
|
926 |
|
927 |
$form_id = intval($_REQUEST["form_id"]);
|
@@ -941,7 +964,9 @@ else
|
|
941 |
);
|
942 |
die();
|
943 |
break;
|
|
|
944 |
case "contact_plugin_updates":
|
|
|
945 |
$contact_updates = intval($_REQUEST["contact_updates"]);
|
946 |
update_option("contact-bank-automatic_update",$contact_updates);
|
947 |
die();
|
79 |
}
|
80 |
die();
|
81 |
break;
|
82 |
+
|
83 |
case "delete_form":
|
84 |
$form_id = intval($_REQUEST["id"]);
|
85 |
$control_id = $wpdb->get_results
|
164 |
);
|
165 |
die();
|
166 |
break;
|
167 |
+
|
168 |
case "delete_forms":
|
169 |
+
|
170 |
global $wpdb;
|
171 |
$wpdb->query
|
172 |
(
|
202 |
);
|
203 |
die();
|
204 |
break;
|
205 |
+
|
206 |
case "submit_form_messages_settings":
|
207 |
+
|
208 |
$sql= "";
|
209 |
$labels_for_email = "";
|
210 |
$sql1=array();
|
338 |
);
|
339 |
die();
|
340 |
break;
|
341 |
+
|
342 |
case "restore_factory_settings":
|
343 |
+
|
344 |
include_once CONTACT_BK_PLUGIN_DIR ."/lib/restore_factory_settings.php";
|
345 |
die();
|
346 |
+
|
347 |
break;
|
348 |
+
|
349 |
case "save_text_control":
|
350 |
+
|
351 |
$dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
|
352 |
$form_id = intval($_REQUEST["form_id"]);
|
353 |
$event = esc_attr($_REQUEST["event"]);
|
442 |
}
|
443 |
die();
|
444 |
break;
|
445 |
+
|
446 |
case "save_textarea_control":
|
447 |
+
|
448 |
$dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
|
449 |
$form_id = intval($_REQUEST["form_id"]);
|
450 |
$event = esc_attr($_REQUEST["event"]);
|
540 |
}
|
541 |
die();
|
542 |
break;
|
543 |
+
|
544 |
case "save_email_control":
|
545 |
+
|
546 |
$dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
|
547 |
$form_id = intval($_REQUEST["form_id"]);
|
548 |
$event = esc_attr($_REQUEST["event"]);
|
633 |
}
|
634 |
die();
|
635 |
break;
|
636 |
+
|
637 |
case "save_drop_down_control":
|
638 |
+
|
639 |
$dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
|
640 |
$form_id = intval($_REQUEST["form_id"]);
|
641 |
$event = esc_attr($_REQUEST["event"]);
|
729 |
}
|
730 |
die();
|
731 |
break;
|
732 |
+
|
733 |
case "save_check_box_control":
|
734 |
+
|
735 |
$dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
|
736 |
$form_id = intval($_REQUEST["form_id"]);
|
737 |
$event = esc_attr($_REQUEST["event"]);
|
918 |
}
|
919 |
die();
|
920 |
break;
|
921 |
+
|
922 |
case "":
|
923 |
+
|
924 |
$form_id = intval($_REQUEST["form_id"]);
|
925 |
$field_dynamic_id = isset($_REQUEST["field_dynamic_id"]) ? json_decode(stripcslashes($_REQUEST["field_dynamic_id"]),true) : array();
|
926 |
$sql= "";
|
938 |
);
|
939 |
die();
|
940 |
break;
|
941 |
+
|
942 |
case "update_option":
|
943 |
+
|
944 |
update_option("contact-bank-info-popup", "no");
|
945 |
die();
|
946 |
break;
|
947 |
+
|
948 |
case "form_fields_sorting_order":
|
949 |
|
950 |
$form_id = intval($_REQUEST["form_id"]);
|
964 |
);
|
965 |
die();
|
966 |
break;
|
967 |
+
|
968 |
case "contact_plugin_updates":
|
969 |
+
|
970 |
$contact_updates = intval($_REQUEST["contact_updates"]);
|
971 |
update_option("contact-bank-automatic_update",$contact_updates);
|
972 |
die();
|
lib/uninstall-script.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
$sql = "DROP TABLE " .contact_bank_contact_form();
|
4 |
$wpdb->query($sql);
|
5 |
|
@@ -31,6 +31,6 @@
|
|
31 |
$wpdb->query($sql);
|
32 |
|
33 |
delete_option("contact-bank-info-popup");
|
34 |
-
|
35 |
-
|
36 |
?>
|
1 |
<?php
|
2 |
+
global $wpdb;
|
3 |
$sql = "DROP TABLE " .contact_bank_contact_form();
|
4 |
$wpdb->query($sql);
|
5 |
|
31 |
$wpdb->query($sql);
|
32 |
|
33 |
delete_option("contact-bank-info-popup");
|
34 |
+
delete_option("contact-bank-version-number");
|
35 |
+
delete_option("contact-bank-automatic_update");
|
36 |
?>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
|
|
3 |
Tags: admin, advanced form, Attachment, best contact form plugin, buddypress, category, cnotact, conact, contact, contact button, contact form, contact form builder, Contact Form Builder with recaptcha, contact form manager, contact form plugin, contact form with google map, contact forms, contact forms plugin, contact manager, contact me, contact us, contact us form, contacts, contacts form plugin, contatc, copy, custom form, email, email form, feedback, feedback form, feedback forms, form, forms, forms plugin, insert the shortcode, multiple contact forms, post feedback, request, send, send copy, send messages, shortcode, text, web form, web-page feedback, wordpress contact form
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 4.1.1
|
6 |
-
Stable tag: 2.0.
|
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.104 =
|
553 |
|
554 |
* Minor Bugs Fixed
|
3 |
Tags: admin, advanced form, Attachment, best contact form plugin, buddypress, category, cnotact, conact, contact, contact button, contact form, contact form builder, Contact Form Builder with recaptcha, contact form manager, contact form plugin, contact form with google map, contact forms, contact forms plugin, contact manager, contact me, contact us, contact us form, contacts, contacts form plugin, contatc, copy, custom form, email, email form, feedback, feedback form, feedback forms, form, forms, forms plugin, insert the shortcode, multiple contact forms, post feedback, request, send, send copy, send messages, shortcode, text, web form, web-page feedback, wordpress contact form
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 4.1.1
|
6 |
+
Stable tag: 2.0.105
|
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.105 =
|
553 |
+
|
554 |
+
* Formatting Issue Fixed.
|
555 |
+
|
556 |
= 2.0.104 =
|
557 |
|
558 |
* Minor Bugs Fixed
|
views/add_contact_email.php
CHANGED
@@ -17,7 +17,7 @@ if (!current_user_can($cb_user_role_permission))
|
|
17 |
{
|
18 |
return;
|
19 |
}
|
20 |
-
else
|
21 |
{
|
22 |
$form_id = intval($_REQUEST["form_id"]);
|
23 |
isset($_REQUEST["email_id"]) ? $email_id = intval($_REQUEST["email_id"]) : $email_id = "";
|
17 |
{
|
18 |
return;
|
19 |
}
|
20 |
+
else
|
21 |
{
|
22 |
$form_id = intval($_REQUEST["form_id"]);
|
23 |
isset($_REQUEST["email_id"]) ? $email_id = intval($_REQUEST["email_id"]) : $email_id = "";
|
views/contact_bank_layout_settings.php
CHANGED
@@ -18,7 +18,7 @@ if (!current_user_can($cb_user_role_permission))
|
|
18 |
}
|
19 |
else
|
20 |
{
|
21 |
-
?>
|
22 |
<form id="ux_frm_form_settings" class="layout-form">
|
23 |
<div id="poststuff" style="width: 99% !important;">
|
24 |
<div id="post-body" class="metabox-holder">
|
18 |
}
|
19 |
else
|
20 |
{
|
21 |
+
?>
|
22 |
<form id="ux_frm_form_settings" class="layout-form">
|
23 |
<div id="poststuff" style="width: 99% !important;">
|
24 |
<div id="post-body" class="metabox-holder">
|
views/contact_bank_pro_version.php
CHANGED
@@ -17,7 +17,7 @@ if (!current_user_can($cb_user_role_permission))
|
|
17 |
return;
|
18 |
}
|
19 |
else
|
20 |
-
{
|
21 |
if(isset($_REQUEST["msg"]))
|
22 |
{
|
23 |
if(esc_attr($_REQUEST["msg"]) == "no")
|
17 |
return;
|
18 |
}
|
19 |
else
|
20 |
+
{
|
21 |
if(isset($_REQUEST["msg"]))
|
22 |
{
|
23 |
if(esc_attr($_REQUEST["msg"]) == "no")
|
views/contact_controls_files.php
CHANGED
@@ -29,7 +29,7 @@ if (!current_user_can($cb_user_role_permission))
|
|
29 |
}
|
30 |
else
|
31 |
{
|
32 |
-
|
33 |
|
34 |
<div class="layout-control-group div_border" id="div_1_1" style="display: none;">
|
35 |
<label class="layout-control-label" id="control_label_">
|
29 |
}
|
30 |
else
|
31 |
{
|
32 |
+
?>
|
33 |
|
34 |
<div class="layout-control-group div_border" id="div_1_1" style="display: none;">
|
35 |
<label class="layout-control-label" id="control_label_">
|
views/contact_documentation.php
CHANGED
@@ -18,20 +18,19 @@ if (!current_user_can($cb_user_role_permission))
|
|
18 |
}
|
19 |
else
|
20 |
{
|
21 |
-
|
22 |
-
|
23 |
-
<div class="
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
</div>
|
32 |
</div>
|
33 |
</div>
|
34 |
-
|
35 |
-
<?php
|
36 |
}
|
37 |
?>
|
18 |
}
|
19 |
else
|
20 |
{
|
21 |
+
?>
|
22 |
+
<div class="fluid-layout" >
|
23 |
+
<div class="layout-span12">
|
24 |
+
<div class="widget-layout">
|
25 |
+
<div class="widget-layout-title">
|
26 |
+
<h4><?php _e( "Documentation - Contact Bank", contact_bank ); ?></h4>
|
27 |
+
</div>
|
28 |
+
<div class="widget-layout-body">
|
29 |
+
<iframe width="560" height="315" src="//www.youtube.com/embed/EcqbsXmPbaI" frameborder="0" allowfullscreen></iframe>
|
30 |
+
</div>
|
31 |
</div>
|
32 |
</div>
|
33 |
</div>
|
34 |
+
<?php
|
|
|
35 |
}
|
36 |
?>
|
views/contact_email_settings.php
CHANGED
@@ -18,8 +18,7 @@ if (!current_user_can($cb_user_role_permission))
|
|
18 |
}
|
19 |
else
|
20 |
{
|
21 |
-
|
22 |
-
|
23 |
<form id="contact_bank_pricing" class="layout-form">
|
24 |
<div id="poststuff" style="width: 99% !important;">
|
25 |
<div id="post-body" class="metabox-holder">
|
18 |
}
|
19 |
else
|
20 |
{
|
21 |
+
?>
|
|
|
22 |
<form id="contact_bank_pricing" class="layout-form">
|
23 |
<div id="poststuff" style="width: 99% !important;">
|
24 |
<div id="post-body" class="metabox-holder">
|
views/contact_frontend_data.php
CHANGED
@@ -19,8 +19,7 @@ if (!current_user_can($cb_user_role_permission))
|
|
19 |
}
|
20 |
else
|
21 |
{
|
22 |
-
|
23 |
-
|
24 |
<form id="" class="layout-form">
|
25 |
<div id="poststuff" style="width: 99% !important;">
|
26 |
<div id="post-body" class="metabox-holder">
|
19 |
}
|
20 |
else
|
21 |
{
|
22 |
+
?>
|
|
|
23 |
<form id="" class="layout-form">
|
24 |
<div id="poststuff" style="width: 99% !important;">
|
25 |
<div id="post-body" class="metabox-holder">
|
views/purchase_pro_version.php
CHANGED
@@ -17,7 +17,7 @@ if (!current_user_can($user_role_permission))
|
|
17 |
}
|
18 |
else
|
19 |
{
|
20 |
-
|
21 |
<form id="frm_purchase_pro" class="layout-form">
|
22 |
<div id="poststuff" style="width: 99% !important;">
|
23 |
<div id="post-body" class="metabox-holder">
|
17 |
}
|
18 |
else
|
19 |
{
|
20 |
+
?>
|
21 |
<form id="frm_purchase_pro" class="layout-form">
|
22 |
<div id="poststuff" style="width: 99% !important;">
|
23 |
<div id="post-body" class="metabox-holder">
|
views/recommended-plugins.php
CHANGED
@@ -14,7 +14,7 @@ switch($cb_role)
|
|
14 |
if (!current_user_can($user_role_permission))
|
15 |
{
|
16 |
return;
|
17 |
-
}
|
18 |
else
|
19 |
{
|
20 |
include( ABSPATH . "wp-admin/includes/plugin-install.php" );
|
14 |
if (!current_user_can($user_role_permission))
|
15 |
{
|
16 |
return;
|
17 |
+
}
|
18 |
else
|
19 |
{
|
20 |
include( ABSPATH . "wp-admin/includes/plugin-install.php" );
|
views/shortcode.php
CHANGED
@@ -17,7 +17,7 @@ if (!current_user_can($cb_user_role_permission))
|
|
17 |
return;
|
18 |
}
|
19 |
else
|
20 |
-
{
|
21 |
?>
|
22 |
<form id="shortcode" class="layout-form" method="post">
|
23 |
<div id="poststuff" style="width: 99% !important;">
|
17 |
return;
|
18 |
}
|
19 |
else
|
20 |
+
{
|
21 |
?>
|
22 |
<form id="shortcode" class="layout-form" method="post">
|
23 |
<div id="poststuff" style="width: 99% !important;">
|