Version Description
- FIX: Major Bugs Fixed
- FIX: Code Optimized
- FIX: Obsolete Code Removed
- FIX: Translation Bugs Fixed
Download this release
Release Info
Developer | contact-banker |
Plugin | Contact Bank: WordPress Form Builder for Contact Forms |
Version | 2.1.40 |
Comparing to | |
See all releases |
Code changes from version 2.1.39 to 2.1.40
- contact-bank.php +2 -76
- lib/contact_bank_email_management.php +0 -1
- lib/contact_bank_frontend-class.php +0 -1
- lib/contact_bank_layout-class.php +0 -1
- lib/contact_bank_layout_settings-class.php +0 -1
- lib/contact_bank_show_form_control_data-class.php +0 -1
- lib/contact_view-class.php +0 -4
- lib/install-script.php +0 -11
- readme.txt +12 -8
- uninstall.php +0 -1
- views/contact-bank-system-report.php +32 -32
- views/contact-feedback.php +2 -0
- views/recommended-plugins.php +0 -1
contact-bank.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Plugin Name:
|
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.1.
|
8 |
* Author URI: http://tech-banker.com
|
9 |
* License: GPLv3 or later
|
10 |
* Text Domain: contact-bank
|
@@ -36,7 +36,6 @@ if (!defined("contact_bank_version_number"))
|
|
36 |
* Last Modified : 1.0
|
37 |
* Reasons for change : None
|
38 |
*/
|
39 |
-
|
40 |
function plugin_install_script_for_contact_bank() {
|
41 |
global $wpdb, $current_user, $cb_user_role_permission;
|
42 |
if (is_super_admin()) {
|
@@ -61,11 +60,8 @@ function plugin_install_script_for_contact_bank() {
|
|
61 |
}
|
62 |
}
|
63 |
}
|
64 |
-
|
65 |
/* * ********************************************************************************** */
|
66 |
-
|
67 |
class class_plugin_info_contact_bank {
|
68 |
-
|
69 |
function get_plugin_info() {
|
70 |
$active_plugins = (array) get_option("active_plugins", array());
|
71 |
if (is_multisite())
|
@@ -84,9 +80,7 @@ class class_plugin_info_contact_bank {
|
|
84 |
return $plugins;
|
85 |
}
|
86 |
}
|
87 |
-
|
88 |
}
|
89 |
-
|
90 |
/*
|
91 |
Function Name: deactivation_function_for_contact_bank
|
92 |
Description: This function is used for executing the code on deactivation.
|
@@ -94,7 +88,6 @@ class class_plugin_info_contact_bank {
|
|
94 |
Created On: 07-04-2017 09:54
|
95 |
Created By: Tech Banker Team
|
96 |
*/
|
97 |
-
|
98 |
function deactivation_function_for_contact_bank() {
|
99 |
$type = get_option("contact-bank-wizard");
|
100 |
if ($type == "opt_in") {
|
@@ -142,7 +135,6 @@ function deactivation_function_for_contact_bank() {
|
|
142 |
}
|
143 |
}
|
144 |
}
|
145 |
-
|
146 |
/* Function Name : create_global_menus_for_contact_bank
|
147 |
* Paramters : None
|
148 |
* Return : None
|
@@ -151,7 +143,6 @@ function deactivation_function_for_contact_bank() {
|
|
151 |
* Last Modified : 1.0
|
152 |
* Reasons for change : None
|
153 |
*/
|
154 |
-
|
155 |
function create_global_menus_for_contact_bank() {
|
156 |
global $wpdb, $current_user;
|
157 |
if (is_super_admin()) {
|
@@ -240,7 +231,6 @@ function create_global_menus_for_contact_bank() {
|
|
240 |
break;
|
241 |
}
|
242 |
}
|
243 |
-
|
244 |
/* Function Name : contact_bank
|
245 |
* Paramters : None
|
246 |
* Return : None
|
@@ -249,7 +239,6 @@ function create_global_menus_for_contact_bank() {
|
|
249 |
* Last Modified : 1.0
|
250 |
* Reasons for change : None
|
251 |
*/
|
252 |
-
|
253 |
function contact_bank() {
|
254 |
global $wpdb, $current_user, $cb_user_role_permission;
|
255 |
if (is_super_admin()) {
|
@@ -272,7 +261,6 @@ function contact_bank() {
|
|
272 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
273 |
}
|
274 |
}
|
275 |
-
|
276 |
function contact_dashboard() {
|
277 |
global $wpdb, $current_user, $cb_user_role_permission;
|
278 |
if (is_super_admin()) {
|
@@ -292,7 +280,6 @@ function contact_dashboard() {
|
|
292 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
293 |
}
|
294 |
}
|
295 |
-
|
296 |
function contact_bank_wizard() {
|
297 |
global $wpdb, $current_user, $cb_user_role_permission;
|
298 |
if (is_super_admin()) {
|
@@ -306,7 +293,6 @@ function contact_bank_wizard() {
|
|
306 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/wizard.php";
|
307 |
}
|
308 |
}
|
309 |
-
|
310 |
function edit_contact_view() {
|
311 |
global $wpdb, $current_user, $cb_user_role_permission;
|
312 |
if (is_super_admin()) {
|
@@ -326,7 +312,6 @@ function edit_contact_view() {
|
|
326 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
327 |
}
|
328 |
}
|
329 |
-
|
330 |
function contact_other_settings() {
|
331 |
global $wpdb, $current_user, $cb_user_role_permission;
|
332 |
if (is_super_admin()) {
|
@@ -346,7 +331,6 @@ function contact_other_settings() {
|
|
346 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
347 |
}
|
348 |
}
|
349 |
-
|
350 |
function contact_email() {
|
351 |
global $wpdb, $current_user, $cb_user_role_permission;
|
352 |
if (is_super_admin()) {
|
@@ -366,7 +350,6 @@ function contact_email() {
|
|
366 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
367 |
}
|
368 |
}
|
369 |
-
|
370 |
function contact_frontend_data() {
|
371 |
global $wpdb, $current_user, $cb_user_role_permission;
|
372 |
if (is_super_admin()) {
|
@@ -386,7 +369,6 @@ function contact_frontend_data() {
|
|
386 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
387 |
}
|
388 |
}
|
389 |
-
|
390 |
function add_contact_email_settings() {
|
391 |
global $wpdb, $current_user, $cb_user_role_permission;
|
392 |
if (is_super_admin()) {
|
@@ -406,7 +388,6 @@ function add_contact_email_settings() {
|
|
406 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
407 |
}
|
408 |
}
|
409 |
-
|
410 |
function contact_layout_settings() {
|
411 |
global $wpdb, $current_user, $cb_user_role_permission;
|
412 |
if (is_super_admin()) {
|
@@ -426,7 +407,6 @@ function contact_layout_settings() {
|
|
426 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
427 |
}
|
428 |
}
|
429 |
-
|
430 |
function contact_feature_request() {
|
431 |
global $wpdb, $current_user, $user_role_permission;
|
432 |
if (is_super_admin()) {
|
@@ -446,7 +426,6 @@ function contact_feature_request() {
|
|
446 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
447 |
}
|
448 |
}
|
449 |
-
|
450 |
function contact_system_status() {
|
451 |
global $wpdb, $current_user, $cb_user_role_permission;
|
452 |
if (is_super_admin()) {
|
@@ -466,7 +445,6 @@ function contact_system_status() {
|
|
466 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
467 |
}
|
468 |
}
|
469 |
-
|
470 |
function form_preview() {
|
471 |
global $wpdb, $current_user, $cb_user_role_permission;
|
472 |
if (is_super_admin()) {
|
@@ -486,7 +464,6 @@ function form_preview() {
|
|
486 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
487 |
}
|
488 |
}
|
489 |
-
|
490 |
function contact_pro_version() {
|
491 |
global $wpdb, $current_user, $cb_user_role_permission;
|
492 |
if (is_super_admin()) {
|
@@ -506,7 +483,6 @@ function contact_pro_version() {
|
|
506 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
507 |
}
|
508 |
}
|
509 |
-
|
510 |
function contact_bank_recommended_plugins() {
|
511 |
global $wpdb, $current_user, $cb_user_role_permission;
|
512 |
if (is_super_admin()) {
|
@@ -526,7 +502,6 @@ function contact_bank_recommended_plugins() {
|
|
526 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
527 |
}
|
528 |
}
|
529 |
-
|
530 |
function contact_bank_other_services() {
|
531 |
global $wpdb, $current_user, $cb_user_role_permission;
|
532 |
if (is_super_admin()) {
|
@@ -546,7 +521,6 @@ function contact_bank_other_services() {
|
|
546 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
547 |
}
|
548 |
}
|
549 |
-
|
550 |
function contact_short_code() {
|
551 |
global $wpdb, $current_user, $cb_user_role_permission;
|
552 |
if (is_super_admin()) {
|
@@ -566,7 +540,6 @@ function contact_short_code() {
|
|
566 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
567 |
}
|
568 |
}
|
569 |
-
|
570 |
function backend_plugin_js_scripts_contact_bank() {
|
571 |
wp_enqueue_script("jquery");
|
572 |
wp_enqueue_script("jquery-ui-sortable");
|
@@ -580,13 +553,11 @@ function backend_plugin_js_scripts_contact_bank() {
|
|
580 |
wp_enqueue_script("bootstrap.js", plugins_url("/assets/js/bootstrap.js", __FILE__));
|
581 |
wp_enqueue_script("jquery.prettyPhoto.js", plugins_url("/assets/js/jquery.prettyPhoto.js", __FILE__));
|
582 |
}
|
583 |
-
|
584 |
function frontend_plugin_js_scripts_contact_bank() {
|
585 |
wp_enqueue_script("jquery");
|
586 |
wp_enqueue_script("jquery.Tooltip.js", plugins_url("/assets/js/jquery.Tooltip.js", __FILE__));
|
587 |
wp_enqueue_script("jquery.validate.min", plugins_url("/assets/js/jquery.validate.min.js", __FILE__));
|
588 |
}
|
589 |
-
|
590 |
function backend_plugin_css_styles_contact_bank() {
|
591 |
wp_enqueue_style("farbtastic");
|
592 |
wp_enqueue_style("wp-jquery-ui-dialog");
|
@@ -598,17 +569,14 @@ function backend_plugin_css_styles_contact_bank() {
|
|
598 |
wp_enqueue_style("responsive.css", plugins_url("/assets/css/responsive.css", __FILE__));
|
599 |
wp_enqueue_style("google-fonts-roboto", "//fonts.googleapis.com/css?family=Roboto Condensed:300|Roboto Condensed:300|Roboto Condensed:300|Roboto Condensed:regular|Roboto Condensed:300");
|
600 |
}
|
601 |
-
|
602 |
function frontend_plugin_css_styles_contact_bank() {
|
603 |
wp_enqueue_style("stylesheet", plugins_url("/assets/css/stylesheet.css", __FILE__));
|
604 |
wp_enqueue_style("system-message", plugins_url("/assets/css/system-message.css", __FILE__));
|
605 |
}
|
606 |
-
|
607 |
if (isset($_REQUEST["action"])) {
|
608 |
switch (esc_attr($_REQUEST["action"])) {
|
609 |
case "add_contact_form_library":
|
610 |
add_action("admin_init", "add_contact_form_library");
|
611 |
-
|
612 |
function add_contact_form_library() {
|
613 |
global $wpdb, $current_user, $cb_user_role_permission;
|
614 |
if (is_super_admin()) {
|
@@ -622,25 +590,21 @@ if (isset($_REQUEST["action"])) {
|
|
622 |
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_view-class.php";
|
623 |
}
|
624 |
}
|
625 |
-
|
626 |
break;
|
627 |
|
628 |
case "frontend_contact_form_library":
|
629 |
|
630 |
add_action("admin_init", "frontend_contact_form_library");
|
631 |
-
|
632 |
function frontend_contact_form_library() {
|
633 |
if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_frontend-class.php")) {
|
634 |
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_frontend-class.php";
|
635 |
}
|
636 |
}
|
637 |
-
|
638 |
break;
|
639 |
|
640 |
case "email_contact_form_library":
|
641 |
|
642 |
add_action("admin_init", "email_contact_form_library");
|
643 |
-
|
644 |
function email_contact_form_library() {
|
645 |
global $wpdb, $current_user, $cb_user_role_permission;
|
646 |
if (is_super_admin()) {
|
@@ -654,25 +618,21 @@ if (isset($_REQUEST["action"])) {
|
|
654 |
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email-class.php";
|
655 |
}
|
656 |
}
|
657 |
-
|
658 |
break;
|
659 |
|
660 |
case "email_management_contact_form_library":
|
661 |
|
662 |
add_action("admin_init", "email_management_contact_form_library");
|
663 |
-
|
664 |
function email_management_contact_form_library() {
|
665 |
if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email_management.php")) {
|
666 |
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email_management.php";
|
667 |
}
|
668 |
}
|
669 |
-
|
670 |
break;
|
671 |
|
672 |
case "frontend_data_contact_library":
|
673 |
|
674 |
add_action("admin_init", "frontend_data_contact_library");
|
675 |
-
|
676 |
function frontend_data_contact_library() {
|
677 |
global $wpdb, $current_user, $cb_user_role_permission;
|
678 |
if (is_super_admin()) {
|
@@ -686,13 +646,11 @@ if (isset($_REQUEST["action"])) {
|
|
686 |
include CONTACT_BK_PLUGIN_DIR . "/lib/contact_frontend_data_class.php";
|
687 |
}
|
688 |
}
|
689 |
-
|
690 |
break;
|
691 |
|
692 |
case "show_form_control_data_contact_library":
|
693 |
|
694 |
add_action("admin_init", "show_form_control_data_contact_library");
|
695 |
-
|
696 |
function show_form_control_data_contact_library() {
|
697 |
global $wpdb, $current_user, $cb_user_role_permission;
|
698 |
if (is_super_admin()) {
|
@@ -706,13 +664,11 @@ if (isset($_REQUEST["action"])) {
|
|
706 |
include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_show_form_control_data-class.php";
|
707 |
}
|
708 |
}
|
709 |
-
|
710 |
break;
|
711 |
|
712 |
case "layout_settings_contact_library":
|
713 |
|
714 |
add_action("admin_init", "layout_settings_contact_library");
|
715 |
-
|
716 |
function layout_settings_contact_library() {
|
717 |
global $wpdb, $current_user, $cb_user_role_permission;
|
718 |
if (is_super_admin()) {
|
@@ -726,7 +682,6 @@ if (isset($_REQUEST["action"])) {
|
|
726 |
include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php";
|
727 |
}
|
728 |
}
|
729 |
-
|
730 |
break;
|
731 |
}
|
732 |
}
|
@@ -736,57 +691,46 @@ if (isset($_REQUEST["action"])) {
|
|
736 |
* Last Modified : 1.0
|
737 |
* Reasons for change : None
|
738 |
*/
|
739 |
-
|
740 |
function contact_bank_contact_form() {
|
741 |
global $wpdb;
|
742 |
return $wpdb->prefix . "cb_contact_form";
|
743 |
}
|
744 |
-
|
745 |
function contact_bank_dynamic_settings_form() {
|
746 |
global $wpdb;
|
747 |
return $wpdb->prefix . "cb_dynamic_settings";
|
748 |
}
|
749 |
-
|
750 |
function create_control_Table() {
|
751 |
global $wpdb;
|
752 |
return $wpdb->prefix . "cb_create_control_form";
|
753 |
}
|
754 |
-
|
755 |
function frontend_controls_data_Table() {
|
756 |
global $wpdb;
|
757 |
return $wpdb->prefix . "cb_frontend_data_table";
|
758 |
}
|
759 |
-
|
760 |
function contact_bank_email_template_admin() {
|
761 |
global $wpdb;
|
762 |
return $wpdb->prefix . "cb_email_template_admin";
|
763 |
}
|
764 |
-
|
765 |
function contact_bank_frontend_forms_Table() {
|
766 |
global $wpdb;
|
767 |
return $wpdb->prefix . "cb_frontend_forms_table";
|
768 |
}
|
769 |
-
|
770 |
function contact_bank_form_settings_Table() {
|
771 |
global $wpdb;
|
772 |
return $wpdb->prefix . "cb_form_settings_table";
|
773 |
}
|
774 |
-
|
775 |
function contact_bank_layout_settings_Table() {
|
776 |
global $wpdb;
|
777 |
return $wpdb->prefix . "cb_layout_settings_table";
|
778 |
}
|
779 |
-
|
780 |
function contact_bank_licensing() {
|
781 |
global $wpdb;
|
782 |
return $wpdb->prefix . "cb_licensing";
|
783 |
}
|
784 |
-
|
785 |
function contact_bank_roles_capability() {
|
786 |
global $wpdb;
|
787 |
return $wpdb->prefix . "cb_roles_capability";
|
788 |
}
|
789 |
-
|
790 |
function contact_bank_short_code($atts) {
|
791 |
extract(shortcode_atts(array(
|
792 |
"form_id" => "",
|
@@ -797,7 +741,6 @@ function contact_bank_short_code($atts) {
|
|
797 |
return extract_short_code($form_id, $show_title, $show_desc);
|
798 |
}
|
799 |
}
|
800 |
-
|
801 |
function extract_short_code($form_id, $show_title, $show_desc) {
|
802 |
ob_start();
|
803 |
require CONTACT_BK_PLUGIN_DIR . "/frontend_views/contact_bank_forms.php";
|
@@ -805,7 +748,6 @@ function extract_short_code($form_id, $show_title, $show_desc) {
|
|
805 |
wp_reset_query();
|
806 |
return $contact_bank_output;
|
807 |
}
|
808 |
-
|
809 |
function add_contact_bank_icon($meta = TRUE) {
|
810 |
if (!is_user_logged_in()) {
|
811 |
return;
|
@@ -1046,18 +988,14 @@ function add_contact_bank_icon($meta = TRUE) {
|
|
1046 |
}
|
1047 |
}
|
1048 |
}
|
1049 |
-
|
1050 |
add_action("media_buttons_context", "add_contact_shortcode_button", 1);
|
1051 |
-
|
1052 |
function add_contact_shortcode_button($context) {
|
1053 |
add_thickbox();
|
1054 |
$context .= "<a href=\"#TB_inline?width=300&height=400&inlineId=contact-bank\" class=\"button thickbox\" title=\"" . __("Add Contact Bank Form", "contact-bank") . "\">
|
1055 |
<span class=\"contact_icon\"></span> Add Contact Bank Form</a>";
|
1056 |
return $context;
|
1057 |
}
|
1058 |
-
|
1059 |
add_action("admin_footer", "add_contact_mce_popup");
|
1060 |
-
|
1061 |
function add_contact_mce_popup() {
|
1062 |
?>
|
1063 |
<?php add_thickbox(); ?>
|
@@ -1122,11 +1060,9 @@ function add_contact_mce_popup() {
|
|
1122 |
</script>
|
1123 |
<?php
|
1124 |
}
|
1125 |
-
|
1126 |
function plugin_load_textdomain_contact_bank() {
|
1127 |
load_plugin_textdomain("contact-bank", false, CONTACT_BK_PLUGIN_DIRNAME . "/languages");
|
1128 |
}
|
1129 |
-
|
1130 |
add_action("plugins_loaded", "plugin_load_textdomain_contact_bank");
|
1131 |
$version = get_option("contact-bank-version-number");
|
1132 |
if (is_admin() && !request_is_frontend_ajax()) {
|
@@ -1134,7 +1070,6 @@ if (is_admin() && !request_is_frontend_ajax()) {
|
|
1134 |
add_action("admin_init", "plugin_install_script_for_contact_bank");
|
1135 |
}
|
1136 |
}
|
1137 |
-
|
1138 |
function contact_bank_plugin_row($links, $file) {
|
1139 |
if ($file == CONTACT_BK_PLUGIN_BASENAME) {
|
1140 |
$cpo_row_meta = array(
|
@@ -1145,7 +1080,6 @@ function contact_bank_plugin_row($links, $file) {
|
|
1145 |
}
|
1146 |
return (array) $links;
|
1147 |
}
|
1148 |
-
|
1149 |
function request_is_frontend_ajax() {
|
1150 |
$script_filename = isset($_SERVER['SCRIPT_FILENAME']) ? $_SERVER['SCRIPT_FILENAME'] : '';
|
1151 |
//Try to figure out if frontend AJAX request... If we are DOING_AJAX; let's look closer
|
@@ -1164,7 +1098,6 @@ function request_is_frontend_ajax() {
|
|
1164 |
//If no checks triggered, we end up here - not an AJAX request.
|
1165 |
return false;
|
1166 |
}
|
1167 |
-
|
1168 |
add_filter("plugin_row_meta", "contact_bank_plugin_row", 10, 2);
|
1169 |
/* * ********************************************************************************** */
|
1170 |
add_action("admin_bar_menu", "add_contact_bank_icon", 100);
|
@@ -1188,9 +1121,7 @@ register_deactivation_hook(__FILE__, "deactivation_function_for_contact_bank");
|
|
1188 |
add_action("network_admin_menu", "create_global_menus_for_contact_bank");
|
1189 |
|
1190 |
add_filter("widget_text", "do_shortcode");
|
1191 |
-
|
1192 |
class Contact_Bank_Widget extends WP_Widget {
|
1193 |
-
|
1194 |
function __construct() {
|
1195 |
parent::__construct(
|
1196 |
"Contact_Bank_Widget", // Base ID
|
@@ -1198,7 +1129,6 @@ class Contact_Bank_Widget extends WP_Widget {
|
|
1198 |
array("description" => __("Build Complex, Powerful Contact Forms in Just Seconds.", "contact_bank"),) // Args
|
1199 |
);
|
1200 |
}
|
1201 |
-
|
1202 |
function form($instance) {
|
1203 |
$instance = wp_parse_args((array) $instance, array("title" => "", "form_id" => "0"));
|
1204 |
$title = $instance["title"];
|
@@ -1226,14 +1156,12 @@ class Contact_Bank_Widget extends WP_Widget {
|
|
1226 |
</p>
|
1227 |
<?php
|
1228 |
}
|
1229 |
-
|
1230 |
function update($new_instance, $old_instance) {
|
1231 |
$instance = $old_instance;
|
1232 |
$instance["title"] = $new_instance["title"];
|
1233 |
$instance["form_id"] = (int) $new_instance["form_id"];
|
1234 |
return $instance;
|
1235 |
}
|
1236 |
-
|
1237 |
function widget($args, $instance) {
|
1238 |
global $wpdb;
|
1239 |
$form_data = $wpdb->get_var
|
@@ -1256,8 +1184,6 @@ class Contact_Bank_Widget extends WP_Widget {
|
|
1256 |
}
|
1257 |
}
|
1258 |
}
|
1259 |
-
|
1260 |
}
|
1261 |
-
|
1262 |
add_action("widgets_init", create_function("", "return register_widget(\"Contact_Bank_Widget\");"));
|
1263 |
?>
|
1 |
<?php
|
2 |
/*
|
3 |
+
* 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.1.40
|
8 |
* Author URI: http://tech-banker.com
|
9 |
* License: GPLv3 or later
|
10 |
* Text Domain: contact-bank
|
36 |
* Last Modified : 1.0
|
37 |
* Reasons for change : None
|
38 |
*/
|
|
|
39 |
function plugin_install_script_for_contact_bank() {
|
40 |
global $wpdb, $current_user, $cb_user_role_permission;
|
41 |
if (is_super_admin()) {
|
60 |
}
|
61 |
}
|
62 |
}
|
|
|
63 |
/* * ********************************************************************************** */
|
|
|
64 |
class class_plugin_info_contact_bank {
|
|
|
65 |
function get_plugin_info() {
|
66 |
$active_plugins = (array) get_option("active_plugins", array());
|
67 |
if (is_multisite())
|
80 |
return $plugins;
|
81 |
}
|
82 |
}
|
|
|
83 |
}
|
|
|
84 |
/*
|
85 |
Function Name: deactivation_function_for_contact_bank
|
86 |
Description: This function is used for executing the code on deactivation.
|
88 |
Created On: 07-04-2017 09:54
|
89 |
Created By: Tech Banker Team
|
90 |
*/
|
|
|
91 |
function deactivation_function_for_contact_bank() {
|
92 |
$type = get_option("contact-bank-wizard");
|
93 |
if ($type == "opt_in") {
|
135 |
}
|
136 |
}
|
137 |
}
|
|
|
138 |
/* Function Name : create_global_menus_for_contact_bank
|
139 |
* Paramters : None
|
140 |
* Return : None
|
143 |
* Last Modified : 1.0
|
144 |
* Reasons for change : None
|
145 |
*/
|
|
|
146 |
function create_global_menus_for_contact_bank() {
|
147 |
global $wpdb, $current_user;
|
148 |
if (is_super_admin()) {
|
231 |
break;
|
232 |
}
|
233 |
}
|
|
|
234 |
/* Function Name : contact_bank
|
235 |
* Paramters : None
|
236 |
* Return : None
|
239 |
* Last Modified : 1.0
|
240 |
* Reasons for change : None
|
241 |
*/
|
|
|
242 |
function contact_bank() {
|
243 |
global $wpdb, $current_user, $cb_user_role_permission;
|
244 |
if (is_super_admin()) {
|
261 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
262 |
}
|
263 |
}
|
|
|
264 |
function contact_dashboard() {
|
265 |
global $wpdb, $current_user, $cb_user_role_permission;
|
266 |
if (is_super_admin()) {
|
280 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
281 |
}
|
282 |
}
|
|
|
283 |
function contact_bank_wizard() {
|
284 |
global $wpdb, $current_user, $cb_user_role_permission;
|
285 |
if (is_super_admin()) {
|
293 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/wizard.php";
|
294 |
}
|
295 |
}
|
|
|
296 |
function edit_contact_view() {
|
297 |
global $wpdb, $current_user, $cb_user_role_permission;
|
298 |
if (is_super_admin()) {
|
312 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
313 |
}
|
314 |
}
|
|
|
315 |
function contact_other_settings() {
|
316 |
global $wpdb, $current_user, $cb_user_role_permission;
|
317 |
if (is_super_admin()) {
|
331 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
332 |
}
|
333 |
}
|
|
|
334 |
function contact_email() {
|
335 |
global $wpdb, $current_user, $cb_user_role_permission;
|
336 |
if (is_super_admin()) {
|
350 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
351 |
}
|
352 |
}
|
|
|
353 |
function contact_frontend_data() {
|
354 |
global $wpdb, $current_user, $cb_user_role_permission;
|
355 |
if (is_super_admin()) {
|
369 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
370 |
}
|
371 |
}
|
|
|
372 |
function add_contact_email_settings() {
|
373 |
global $wpdb, $current_user, $cb_user_role_permission;
|
374 |
if (is_super_admin()) {
|
388 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
389 |
}
|
390 |
}
|
|
|
391 |
function contact_layout_settings() {
|
392 |
global $wpdb, $current_user, $cb_user_role_permission;
|
393 |
if (is_super_admin()) {
|
407 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
408 |
}
|
409 |
}
|
|
|
410 |
function contact_feature_request() {
|
411 |
global $wpdb, $current_user, $user_role_permission;
|
412 |
if (is_super_admin()) {
|
426 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
427 |
}
|
428 |
}
|
|
|
429 |
function contact_system_status() {
|
430 |
global $wpdb, $current_user, $cb_user_role_permission;
|
431 |
if (is_super_admin()) {
|
445 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
446 |
}
|
447 |
}
|
|
|
448 |
function form_preview() {
|
449 |
global $wpdb, $current_user, $cb_user_role_permission;
|
450 |
if (is_super_admin()) {
|
464 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
465 |
}
|
466 |
}
|
|
|
467 |
function contact_pro_version() {
|
468 |
global $wpdb, $current_user, $cb_user_role_permission;
|
469 |
if (is_super_admin()) {
|
483 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
484 |
}
|
485 |
}
|
|
|
486 |
function contact_bank_recommended_plugins() {
|
487 |
global $wpdb, $current_user, $cb_user_role_permission;
|
488 |
if (is_super_admin()) {
|
502 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
503 |
}
|
504 |
}
|
|
|
505 |
function contact_bank_other_services() {
|
506 |
global $wpdb, $current_user, $cb_user_role_permission;
|
507 |
if (is_super_admin()) {
|
521 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
522 |
}
|
523 |
}
|
|
|
524 |
function contact_short_code() {
|
525 |
global $wpdb, $current_user, $cb_user_role_permission;
|
526 |
if (is_super_admin()) {
|
540 |
include_once CONTACT_BK_PLUGIN_DIR . "/views/footer.php";
|
541 |
}
|
542 |
}
|
|
|
543 |
function backend_plugin_js_scripts_contact_bank() {
|
544 |
wp_enqueue_script("jquery");
|
545 |
wp_enqueue_script("jquery-ui-sortable");
|
553 |
wp_enqueue_script("bootstrap.js", plugins_url("/assets/js/bootstrap.js", __FILE__));
|
554 |
wp_enqueue_script("jquery.prettyPhoto.js", plugins_url("/assets/js/jquery.prettyPhoto.js", __FILE__));
|
555 |
}
|
|
|
556 |
function frontend_plugin_js_scripts_contact_bank() {
|
557 |
wp_enqueue_script("jquery");
|
558 |
wp_enqueue_script("jquery.Tooltip.js", plugins_url("/assets/js/jquery.Tooltip.js", __FILE__));
|
559 |
wp_enqueue_script("jquery.validate.min", plugins_url("/assets/js/jquery.validate.min.js", __FILE__));
|
560 |
}
|
|
|
561 |
function backend_plugin_css_styles_contact_bank() {
|
562 |
wp_enqueue_style("farbtastic");
|
563 |
wp_enqueue_style("wp-jquery-ui-dialog");
|
569 |
wp_enqueue_style("responsive.css", plugins_url("/assets/css/responsive.css", __FILE__));
|
570 |
wp_enqueue_style("google-fonts-roboto", "//fonts.googleapis.com/css?family=Roboto Condensed:300|Roboto Condensed:300|Roboto Condensed:300|Roboto Condensed:regular|Roboto Condensed:300");
|
571 |
}
|
|
|
572 |
function frontend_plugin_css_styles_contact_bank() {
|
573 |
wp_enqueue_style("stylesheet", plugins_url("/assets/css/stylesheet.css", __FILE__));
|
574 |
wp_enqueue_style("system-message", plugins_url("/assets/css/system-message.css", __FILE__));
|
575 |
}
|
|
|
576 |
if (isset($_REQUEST["action"])) {
|
577 |
switch (esc_attr($_REQUEST["action"])) {
|
578 |
case "add_contact_form_library":
|
579 |
add_action("admin_init", "add_contact_form_library");
|
|
|
580 |
function add_contact_form_library() {
|
581 |
global $wpdb, $current_user, $cb_user_role_permission;
|
582 |
if (is_super_admin()) {
|
590 |
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_view-class.php";
|
591 |
}
|
592 |
}
|
|
|
593 |
break;
|
594 |
|
595 |
case "frontend_contact_form_library":
|
596 |
|
597 |
add_action("admin_init", "frontend_contact_form_library");
|
|
|
598 |
function frontend_contact_form_library() {
|
599 |
if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_frontend-class.php")) {
|
600 |
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_frontend-class.php";
|
601 |
}
|
602 |
}
|
|
|
603 |
break;
|
604 |
|
605 |
case "email_contact_form_library":
|
606 |
|
607 |
add_action("admin_init", "email_contact_form_library");
|
|
|
608 |
function email_contact_form_library() {
|
609 |
global $wpdb, $current_user, $cb_user_role_permission;
|
610 |
if (is_super_admin()) {
|
618 |
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email-class.php";
|
619 |
}
|
620 |
}
|
|
|
621 |
break;
|
622 |
|
623 |
case "email_management_contact_form_library":
|
624 |
|
625 |
add_action("admin_init", "email_management_contact_form_library");
|
|
|
626 |
function email_management_contact_form_library() {
|
627 |
if (file_exists(CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email_management.php")) {
|
628 |
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email_management.php";
|
629 |
}
|
630 |
}
|
|
|
631 |
break;
|
632 |
|
633 |
case "frontend_data_contact_library":
|
634 |
|
635 |
add_action("admin_init", "frontend_data_contact_library");
|
|
|
636 |
function frontend_data_contact_library() {
|
637 |
global $wpdb, $current_user, $cb_user_role_permission;
|
638 |
if (is_super_admin()) {
|
646 |
include CONTACT_BK_PLUGIN_DIR . "/lib/contact_frontend_data_class.php";
|
647 |
}
|
648 |
}
|
|
|
649 |
break;
|
650 |
|
651 |
case "show_form_control_data_contact_library":
|
652 |
|
653 |
add_action("admin_init", "show_form_control_data_contact_library");
|
|
|
654 |
function show_form_control_data_contact_library() {
|
655 |
global $wpdb, $current_user, $cb_user_role_permission;
|
656 |
if (is_super_admin()) {
|
664 |
include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_show_form_control_data-class.php";
|
665 |
}
|
666 |
}
|
|
|
667 |
break;
|
668 |
|
669 |
case "layout_settings_contact_library":
|
670 |
|
671 |
add_action("admin_init", "layout_settings_contact_library");
|
|
|
672 |
function layout_settings_contact_library() {
|
673 |
global $wpdb, $current_user, $cb_user_role_permission;
|
674 |
if (is_super_admin()) {
|
682 |
include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php";
|
683 |
}
|
684 |
}
|
|
|
685 |
break;
|
686 |
}
|
687 |
}
|
691 |
* Last Modified : 1.0
|
692 |
* Reasons for change : None
|
693 |
*/
|
|
|
694 |
function contact_bank_contact_form() {
|
695 |
global $wpdb;
|
696 |
return $wpdb->prefix . "cb_contact_form";
|
697 |
}
|
|
|
698 |
function contact_bank_dynamic_settings_form() {
|
699 |
global $wpdb;
|
700 |
return $wpdb->prefix . "cb_dynamic_settings";
|
701 |
}
|
|
|
702 |
function create_control_Table() {
|
703 |
global $wpdb;
|
704 |
return $wpdb->prefix . "cb_create_control_form";
|
705 |
}
|
|
|
706 |
function frontend_controls_data_Table() {
|
707 |
global $wpdb;
|
708 |
return $wpdb->prefix . "cb_frontend_data_table";
|
709 |
}
|
|
|
710 |
function contact_bank_email_template_admin() {
|
711 |
global $wpdb;
|
712 |
return $wpdb->prefix . "cb_email_template_admin";
|
713 |
}
|
|
|
714 |
function contact_bank_frontend_forms_Table() {
|
715 |
global $wpdb;
|
716 |
return $wpdb->prefix . "cb_frontend_forms_table";
|
717 |
}
|
|
|
718 |
function contact_bank_form_settings_Table() {
|
719 |
global $wpdb;
|
720 |
return $wpdb->prefix . "cb_form_settings_table";
|
721 |
}
|
|
|
722 |
function contact_bank_layout_settings_Table() {
|
723 |
global $wpdb;
|
724 |
return $wpdb->prefix . "cb_layout_settings_table";
|
725 |
}
|
|
|
726 |
function contact_bank_licensing() {
|
727 |
global $wpdb;
|
728 |
return $wpdb->prefix . "cb_licensing";
|
729 |
}
|
|
|
730 |
function contact_bank_roles_capability() {
|
731 |
global $wpdb;
|
732 |
return $wpdb->prefix . "cb_roles_capability";
|
733 |
}
|
|
|
734 |
function contact_bank_short_code($atts) {
|
735 |
extract(shortcode_atts(array(
|
736 |
"form_id" => "",
|
741 |
return extract_short_code($form_id, $show_title, $show_desc);
|
742 |
}
|
743 |
}
|
|
|
744 |
function extract_short_code($form_id, $show_title, $show_desc) {
|
745 |
ob_start();
|
746 |
require CONTACT_BK_PLUGIN_DIR . "/frontend_views/contact_bank_forms.php";
|
748 |
wp_reset_query();
|
749 |
return $contact_bank_output;
|
750 |
}
|
|
|
751 |
function add_contact_bank_icon($meta = TRUE) {
|
752 |
if (!is_user_logged_in()) {
|
753 |
return;
|
988 |
}
|
989 |
}
|
990 |
}
|
|
|
991 |
add_action("media_buttons_context", "add_contact_shortcode_button", 1);
|
|
|
992 |
function add_contact_shortcode_button($context) {
|
993 |
add_thickbox();
|
994 |
$context .= "<a href=\"#TB_inline?width=300&height=400&inlineId=contact-bank\" class=\"button thickbox\" title=\"" . __("Add Contact Bank Form", "contact-bank") . "\">
|
995 |
<span class=\"contact_icon\"></span> Add Contact Bank Form</a>";
|
996 |
return $context;
|
997 |
}
|
|
|
998 |
add_action("admin_footer", "add_contact_mce_popup");
|
|
|
999 |
function add_contact_mce_popup() {
|
1000 |
?>
|
1001 |
<?php add_thickbox(); ?>
|
1060 |
</script>
|
1061 |
<?php
|
1062 |
}
|
|
|
1063 |
function plugin_load_textdomain_contact_bank() {
|
1064 |
load_plugin_textdomain("contact-bank", false, CONTACT_BK_PLUGIN_DIRNAME . "/languages");
|
1065 |
}
|
|
|
1066 |
add_action("plugins_loaded", "plugin_load_textdomain_contact_bank");
|
1067 |
$version = get_option("contact-bank-version-number");
|
1068 |
if (is_admin() && !request_is_frontend_ajax()) {
|
1070 |
add_action("admin_init", "plugin_install_script_for_contact_bank");
|
1071 |
}
|
1072 |
}
|
|
|
1073 |
function contact_bank_plugin_row($links, $file) {
|
1074 |
if ($file == CONTACT_BK_PLUGIN_BASENAME) {
|
1075 |
$cpo_row_meta = array(
|
1080 |
}
|
1081 |
return (array) $links;
|
1082 |
}
|
|
|
1083 |
function request_is_frontend_ajax() {
|
1084 |
$script_filename = isset($_SERVER['SCRIPT_FILENAME']) ? $_SERVER['SCRIPT_FILENAME'] : '';
|
1085 |
//Try to figure out if frontend AJAX request... If we are DOING_AJAX; let's look closer
|
1098 |
//If no checks triggered, we end up here - not an AJAX request.
|
1099 |
return false;
|
1100 |
}
|
|
|
1101 |
add_filter("plugin_row_meta", "contact_bank_plugin_row", 10, 2);
|
1102 |
/* * ********************************************************************************** */
|
1103 |
add_action("admin_bar_menu", "add_contact_bank_icon", 100);
|
1121 |
add_action("network_admin_menu", "create_global_menus_for_contact_bank");
|
1122 |
|
1123 |
add_filter("widget_text", "do_shortcode");
|
|
|
1124 |
class Contact_Bank_Widget extends WP_Widget {
|
|
|
1125 |
function __construct() {
|
1126 |
parent::__construct(
|
1127 |
"Contact_Bank_Widget", // Base ID
|
1129 |
array("description" => __("Build Complex, Powerful Contact Forms in Just Seconds.", "contact_bank"),) // Args
|
1130 |
);
|
1131 |
}
|
|
|
1132 |
function form($instance) {
|
1133 |
$instance = wp_parse_args((array) $instance, array("title" => "", "form_id" => "0"));
|
1134 |
$title = $instance["title"];
|
1156 |
</p>
|
1157 |
<?php
|
1158 |
}
|
|
|
1159 |
function update($new_instance, $old_instance) {
|
1160 |
$instance = $old_instance;
|
1161 |
$instance["title"] = $new_instance["title"];
|
1162 |
$instance["form_id"] = (int) $new_instance["form_id"];
|
1163 |
return $instance;
|
1164 |
}
|
|
|
1165 |
function widget($args, $instance) {
|
1166 |
global $wpdb;
|
1167 |
$form_data = $wpdb->get_var
|
1184 |
}
|
1185 |
}
|
1186 |
}
|
|
|
1187 |
}
|
|
|
1188 |
add_action("widgets_init", create_function("", "return register_widget(\"Contact_Bank_Widget\");"));
|
1189 |
?>
|
lib/contact_bank_email_management.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
if (!defined("ABSPATH"))
|
4 |
exit; //exit if accessed directly
|
5 |
global $wpdb;
|
1 |
<?php
|
|
|
2 |
if (!defined("ABSPATH"))
|
3 |
exit; //exit if accessed directly
|
4 |
global $wpdb;
|
lib/contact_bank_frontend-class.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
if (!defined("ABSPATH"))
|
4 |
exit; //exit if accessed directly
|
5 |
global $wpdb;
|
1 |
<?php
|
|
|
2 |
if (!defined("ABSPATH"))
|
3 |
exit; //exit if accessed directly
|
4 |
global $wpdb;
|
lib/contact_bank_layout-class.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
if (!defined("ABSPATH"))
|
4 |
exit; //exit if accessed directly
|
5 |
switch ($cb_role) {
|
1 |
<?php
|
|
|
2 |
if (!defined("ABSPATH"))
|
3 |
exit; //exit if accessed directly
|
4 |
switch ($cb_role) {
|
lib/contact_bank_layout_settings-class.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
if (!defined("ABSPATH"))
|
4 |
exit; //exit if accessed directly
|
5 |
switch ($cb_role) {
|
1 |
<?php
|
|
|
2 |
if (!defined("ABSPATH"))
|
3 |
exit; //exit if accessed directly
|
4 |
switch ($cb_role) {
|
lib/contact_bank_show_form_control_data-class.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
if (!defined("ABSPATH"))
|
4 |
exit; //exit if accessed directly
|
5 |
switch ($cb_role) {
|
1 |
<?php
|
|
|
2 |
if (!defined("ABSPATH"))
|
3 |
exit; //exit if accessed directly
|
4 |
switch ($cb_role) {
|
lib/contact_view-class.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
if (!defined("ABSPATH"))
|
4 |
exit; //exit if accessed directly
|
5 |
switch ($cb_role) {
|
@@ -19,7 +18,6 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
19 |
if (isset($_REQUEST["param"])) {
|
20 |
|
21 |
class class_installed_plugin_info_contact_bank {
|
22 |
-
|
23 |
function get_plugin_info() {
|
24 |
$active_plugins = (array) get_option("active_plugins", array());
|
25 |
if (is_multisite())
|
@@ -38,9 +36,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
38 |
return $plugins;
|
39 |
}
|
40 |
}
|
41 |
-
|
42 |
}
|
43 |
-
|
44 |
switch (esc_attr($_REQUEST["param"])) {
|
45 |
case "wizard_contact" :
|
46 |
if (wp_verify_nonce((isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : ""), "contact_bank_check_status")) {
|
1 |
<?php
|
|
|
2 |
if (!defined("ABSPATH"))
|
3 |
exit; //exit if accessed directly
|
4 |
switch ($cb_role) {
|
18 |
if (isset($_REQUEST["param"])) {
|
19 |
|
20 |
class class_installed_plugin_info_contact_bank {
|
|
|
21 |
function get_plugin_info() {
|
22 |
$active_plugins = (array) get_option("active_plugins", array());
|
23 |
if (is_multisite())
|
36 |
return $plugins;
|
37 |
}
|
38 |
}
|
|
|
39 |
}
|
|
|
40 |
switch (esc_attr($_REQUEST["param"])) {
|
41 |
case "wizard_contact" :
|
42 |
if (wp_verify_nonce((isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : ""), "contact_bank_check_status")) {
|
lib/install-script.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
if (!defined("ABSPATH"))
|
4 |
exit; //exit if accessed directly
|
5 |
switch ($cb_role) {
|
@@ -25,7 +24,6 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
25 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
26 |
dbDelta($sql);
|
27 |
}
|
28 |
-
|
29 |
function create_table_contact_bank_dynamic_settings() {
|
30 |
$sql = 'CREATE TABLE ' . contact_bank_dynamic_settings_form() . '(
|
31 |
dynamic_settings_id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
@@ -36,7 +34,6 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
36 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
37 |
dbDelta($sql);
|
38 |
}
|
39 |
-
|
40 |
function create_table_contact_bank_controls() {
|
41 |
$sql = 'CREATE TABLE ' . create_control_Table() . '(
|
42 |
control_id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
@@ -48,7 +45,6 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
48 |
)ENGINE = InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
49 |
dbDelta($sql);
|
50 |
}
|
51 |
-
|
52 |
function create_table_front_end_data() {
|
53 |
$sql = 'CREATE TABLE ' . frontend_controls_data_Table() . '(
|
54 |
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
@@ -61,7 +57,6 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
61 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
62 |
dbDelta($sql);
|
63 |
}
|
64 |
-
|
65 |
function create_table_contact_bank_email_templates() {
|
66 |
$sql = 'CREATE TABLE ' . contact_bank_email_template_admin() . '(
|
67 |
email_id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
@@ -80,7 +75,6 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
80 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
81 |
dbDelta($sql);
|
82 |
}
|
83 |
-
|
84 |
function create_table_contact_bank_front_end_forms() {
|
85 |
$sql = 'CREATE TABLE ' . contact_bank_frontend_forms_Table() . '(
|
86 |
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
@@ -90,7 +84,6 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
90 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
91 |
dbDelta($sql);
|
92 |
}
|
93 |
-
|
94 |
function create_contact_bank_layout_settings() {
|
95 |
$sql = 'CREATE TABLE ' . contact_bank_layout_settings_Table() . '(
|
96 |
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
@@ -101,7 +94,6 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
101 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
102 |
dbDelta($sql);
|
103 |
}
|
104 |
-
|
105 |
function create_contact_bank_form_settings() {
|
106 |
$sql = 'CREATE TABLE ' . contact_bank_form_settings_Table() . '(
|
107 |
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
@@ -112,7 +104,6 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
112 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
113 |
dbDelta($sql);
|
114 |
}
|
115 |
-
|
116 |
function create_cb_table_licensing() {
|
117 |
global $wpdb;
|
118 |
$sql = "CREATE TABLE " . contact_bank_licensing() . "(
|
@@ -134,7 +125,6 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
134 |
)
|
135 |
);
|
136 |
}
|
137 |
-
|
138 |
function create_table_roles_capability() {
|
139 |
$sql = 'CREATE TABLE ' . contact_bank_roles_capability() . '(
|
140 |
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
@@ -144,7 +134,6 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
144 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
145 |
dbDelta($sql);
|
146 |
}
|
147 |
-
|
148 |
global $wpdb;
|
149 |
require_once(ABSPATH . "wp-admin/includes/upgrade.php");
|
150 |
update_option("contact-bank-updation-check-url", "http://tech-banker.com/wp-admin/admin-ajax.php");
|
1 |
<?php
|
|
|
2 |
if (!defined("ABSPATH"))
|
3 |
exit; //exit if accessed directly
|
4 |
switch ($cb_role) {
|
24 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
25 |
dbDelta($sql);
|
26 |
}
|
|
|
27 |
function create_table_contact_bank_dynamic_settings() {
|
28 |
$sql = 'CREATE TABLE ' . contact_bank_dynamic_settings_form() . '(
|
29 |
dynamic_settings_id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
34 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
35 |
dbDelta($sql);
|
36 |
}
|
|
|
37 |
function create_table_contact_bank_controls() {
|
38 |
$sql = 'CREATE TABLE ' . create_control_Table() . '(
|
39 |
control_id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
45 |
)ENGINE = InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
46 |
dbDelta($sql);
|
47 |
}
|
|
|
48 |
function create_table_front_end_data() {
|
49 |
$sql = 'CREATE TABLE ' . frontend_controls_data_Table() . '(
|
50 |
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
57 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
58 |
dbDelta($sql);
|
59 |
}
|
|
|
60 |
function create_table_contact_bank_email_templates() {
|
61 |
$sql = 'CREATE TABLE ' . contact_bank_email_template_admin() . '(
|
62 |
email_id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
75 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
76 |
dbDelta($sql);
|
77 |
}
|
|
|
78 |
function create_table_contact_bank_front_end_forms() {
|
79 |
$sql = 'CREATE TABLE ' . contact_bank_frontend_forms_Table() . '(
|
80 |
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
84 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
85 |
dbDelta($sql);
|
86 |
}
|
|
|
87 |
function create_contact_bank_layout_settings() {
|
88 |
$sql = 'CREATE TABLE ' . contact_bank_layout_settings_Table() . '(
|
89 |
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
94 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
95 |
dbDelta($sql);
|
96 |
}
|
|
|
97 |
function create_contact_bank_form_settings() {
|
98 |
$sql = 'CREATE TABLE ' . contact_bank_form_settings_Table() . '(
|
99 |
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
104 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
105 |
dbDelta($sql);
|
106 |
}
|
|
|
107 |
function create_cb_table_licensing() {
|
108 |
global $wpdb;
|
109 |
$sql = "CREATE TABLE " . contact_bank_licensing() . "(
|
125 |
)
|
126 |
);
|
127 |
}
|
|
|
128 |
function create_table_roles_capability() {
|
129 |
$sql = 'CREATE TABLE ' . contact_bank_roles_capability() . '(
|
130 |
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
134 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
|
135 |
dbDelta($sql);
|
136 |
}
|
|
|
137 |
global $wpdb;
|
138 |
require_once(ABSPATH . "wp-admin/includes/upgrade.php");
|
139 |
update_option("contact-bank-updation-check-url", "http://tech-banker.com/wp-admin/admin-ajax.php");
|
readme.txt
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
-
=== WordPress Contact Form
|
2 |
Contributors: contact-banker, Gallery-Bank
|
3 |
-
Tags:
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 4.8
|
6 |
Stable Tag: trunk
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
10 |
-
|
11 |
|
12 |
== Description ==
|
13 |
|
@@ -470,7 +470,6 @@ Here you can enter the Email Address by whom the mail is sent (Sender Email Addr
|
|
470 |
|
471 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/from_email-1024x826.png)
|
472 |
|
473 |
-
|
474 |
= What is the use of "Cc" and "Bcc" in Email Settings? =
|
475 |
|
476 |
Cc stands for "Carbon Copy". Anyone listed in the Cc field, will receive a copy of the message that you send. All other recipients of that message will be able to see that
|
@@ -480,7 +479,6 @@ Bcc stands for "Blind Carbon Copy". This is similar to the Cc feature, except th
|
|
480 |
|
481 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/Email_cc-1024x847.png)
|
482 |
|
483 |
-
|
484 |
= What is the use of "Subject " in Email Settings? =
|
485 |
|
486 |
Here you can enter the Subject for your Email.
|
@@ -544,13 +542,19 @@ In order to set Short code for a Form, you need to follow these steps :
|
|
544 |
12. How to view System Status?
|
545 |
13. How to set Short code for a Form in Contact Bank Plugin?
|
546 |
|
547 |
-
|
548 |
== Changelog ==
|
549 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
550 |
= 2.1.39 =
|
551 |
|
552 |
-
* Major Bugs Fixed
|
553 |
-
* Code Optimized
|
554 |
|
555 |
= 2.1.38 =
|
556 |
|
1 |
+
=== WordPress Contact Form Plugin by Contact Bank ===
|
2 |
Contributors: contact-banker, Gallery-Bank
|
3 |
+
Tags: form, forms, contact form, custom form, form builder, form creator, form manager, form creation, contact forms, custom forms, forms builder, forms creator, forms manager, forms creation, form administration
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 4.8
|
6 |
Stable Tag: trunk
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
10 |
+
Contact Bank is an ultimate form builder wordpress plugin that lets you create contact forms in seconds with ease.
|
11 |
|
12 |
== Description ==
|
13 |
|
470 |
|
471 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/from_email-1024x826.png)
|
472 |
|
|
|
473 |
= What is the use of "Cc" and "Bcc" in Email Settings? =
|
474 |
|
475 |
Cc stands for "Carbon Copy". Anyone listed in the Cc field, will receive a copy of the message that you send. All other recipients of that message will be able to see that
|
479 |
|
480 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/Email_cc-1024x847.png)
|
481 |
|
|
|
482 |
= What is the use of "Subject " in Email Settings? =
|
483 |
|
484 |
Here you can enter the Subject for your Email.
|
542 |
12. How to view System Status?
|
543 |
13. How to set Short code for a Form in Contact Bank Plugin?
|
544 |
|
|
|
545 |
== Changelog ==
|
546 |
|
547 |
+
= 2.1.40 =
|
548 |
+
|
549 |
+
* FIX: Major Bugs Fixed
|
550 |
+
* FIX: Code Optimized
|
551 |
+
* FIX: Obsolete Code Removed
|
552 |
+
* FIX: Translation Bugs Fixed
|
553 |
+
|
554 |
= 2.1.39 =
|
555 |
|
556 |
+
* FIX: Major Bugs Fixed
|
557 |
+
* FIX: Code Optimized
|
558 |
|
559 |
= 2.1.38 =
|
560 |
|
uninstall.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
if (!defined('WP_UNINSTALL_PLUGIN')) {
|
4 |
die;
|
5 |
}
|
1 |
<?php
|
|
|
2 |
if (!defined('WP_UNINSTALL_PLUGIN')) {
|
3 |
die;
|
4 |
}
|
views/contact-bank-system-report.php
CHANGED
@@ -73,11 +73,12 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
73 |
<div class="layout-control-group">
|
74 |
<label class="layout-label-control-group">WP Multisite Enabled :</label>
|
75 |
<div class="layout-controls">
|
76 |
-
<span><?php
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
81 |
</div>
|
82 |
</div>
|
83 |
</div>
|
@@ -114,7 +115,8 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
114 |
<div class="layout-control-group">
|
115 |
<label class="layout-label-control-group">WP Debug Mode :</label>
|
116 |
<div class="layout-controls">
|
117 |
-
<span><?php
|
|
|
118 |
echo "Yes";
|
119 |
else
|
120 |
echo "No";
|
@@ -138,7 +140,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
138 |
</div>
|
139 |
</div>
|
140 |
</div>
|
141 |
-
|
142 |
<div class="widget-layout-body">
|
143 |
<div class="layout-control-group">
|
144 |
<label class="layout-label-control-group">PHP Max Script Execute Time :</label>
|
@@ -165,7 +167,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
165 |
</div>
|
166 |
</div>
|
167 |
</div>
|
168 |
-
|
169 |
<div class="widget-layout-body">
|
170 |
<div class="layout-control-group">
|
171 |
<label class="layout-label-control-group">Default Timezone :</label>
|
@@ -249,7 +251,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
249 |
<label class="layout-label-control-group">Operating System :</label>
|
250 |
<div class="layout-controls">
|
251 |
<span>
|
252 |
-
|
253 |
</span>
|
254 |
</div>
|
255 |
</div>
|
@@ -259,7 +261,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
259 |
<label class="layout-label-control-group">Memory usage :</label>
|
260 |
<div class="layout-controls">
|
261 |
<span>
|
262 |
-
|
263 |
</span>
|
264 |
</div>
|
265 |
</div>
|
@@ -269,7 +271,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
269 |
<label class="layout-label-control-group">SQL Mode :</label>
|
270 |
<div class="layout-controls">
|
271 |
<span>
|
272 |
-
|
273 |
</span>
|
274 |
</div>
|
275 |
</div>
|
@@ -279,7 +281,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
279 |
<label class="layout-label-control-group">PHP Safe Mode :</label>
|
280 |
<div class="layout-controls">
|
281 |
<span>
|
282 |
-
|
283 |
</span>
|
284 |
</div>
|
285 |
</div>
|
@@ -289,7 +291,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
289 |
<label class="layout-label-control-group">PHP Allow URL fopen :</label>
|
290 |
<div class="layout-controls">
|
291 |
<span>
|
292 |
-
|
293 |
</span>
|
294 |
</div>
|
295 |
</div>
|
@@ -299,7 +301,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
299 |
<label class="layout-label-control-group">PHP Memory Limit :</label>
|
300 |
<div class="layout-controls">
|
301 |
<span>
|
302 |
-
|
303 |
</span>
|
304 |
</div>
|
305 |
</div>
|
@@ -309,7 +311,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
309 |
<label class="layout-label-control-group">PHP Max Post Size :</label>
|
310 |
<div class="layout-controls">
|
311 |
<span>
|
312 |
-
|
313 |
</span>
|
314 |
</div>
|
315 |
</div>
|
@@ -319,7 +321,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
319 |
<label class="layout-label-control-group">PCRE Backtracking Limit :</label>
|
320 |
<div class="layout-controls">
|
321 |
<span>
|
322 |
-
|
323 |
</span>
|
324 |
</div>
|
325 |
</div>
|
@@ -329,7 +331,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
329 |
<label class="layout-label-control-group">PHP Exif support :</label>
|
330 |
<div class="layout-controls">
|
331 |
<span>
|
332 |
-
|
333 |
</span>
|
334 |
</div>
|
335 |
</div>
|
@@ -339,7 +341,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
339 |
<label class="layout-label-control-group">PHP IPTC support :</label>
|
340 |
<div class="layout-controls">
|
341 |
<span>
|
342 |
-
|
343 |
</span>
|
344 |
</div>
|
345 |
</div>
|
@@ -349,7 +351,7 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
349 |
<label class="layout-label-control-group">PHP XML support :</label>
|
350 |
<div class="layout-controls">
|
351 |
<span>
|
352 |
-
|
353 |
</span>
|
354 |
</div>
|
355 |
</div>
|
@@ -423,10 +425,10 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
423 |
</div>
|
424 |
</div>
|
425 |
</div>
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
<div class="widget-layout">
|
431 |
<div class="widget-layout-title">
|
432 |
<h4>Themes</h4>
|
@@ -450,10 +452,10 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
450 |
<label class="layout-label-control-group">Theme Version :</label>
|
451 |
<div class="layout-controls">
|
452 |
<span><?php
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
</span>
|
458 |
</div>
|
459 |
</div>
|
@@ -468,9 +470,9 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
468 |
</div>
|
469 |
</div>
|
470 |
</div>
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
<div class="widget-layout">
|
475 |
<div class="widget-layout-title">
|
476 |
<h4>Graphic Library Settings</h4>
|
@@ -482,14 +484,12 @@ if (!current_user_can($cb_user_role_permission)) {
|
|
482 |
</div>
|
483 |
<div id="library_settings" class="collapse in">
|
484 |
<?php
|
485 |
-
|
486 |
function gd_yesNo($bool) {
|
487 |
if ($bool)
|
488 |
return "Yes";
|
489 |
else
|
490 |
return "No";
|
491 |
}
|
492 |
-
|
493 |
if (function_exists("gd_info")) {
|
494 |
$information = gd_info();
|
495 |
$key = array_keys($information);
|
73 |
<div class="layout-control-group">
|
74 |
<label class="layout-label-control-group">WP Multisite Enabled :</label>
|
75 |
<div class="layout-controls">
|
76 |
+
<span><?php
|
77 |
+
if (is_multisite())
|
78 |
+
echo "Yes";
|
79 |
+
else
|
80 |
+
echo "No";
|
81 |
+
?></span>
|
82 |
</div>
|
83 |
</div>
|
84 |
</div>
|
115 |
<div class="layout-control-group">
|
116 |
<label class="layout-label-control-group">WP Debug Mode :</label>
|
117 |
<div class="layout-controls">
|
118 |
+
<span><?php
|
119 |
+
if (defined("WP_DEBUG") && WP_DEBUG)
|
120 |
echo "Yes";
|
121 |
else
|
122 |
echo "No";
|
140 |
</div>
|
141 |
</div>
|
142 |
</div>
|
143 |
+
<?php if (function_exists("ini_get")) : ?>
|
144 |
<div class="widget-layout-body">
|
145 |
<div class="layout-control-group">
|
146 |
<label class="layout-label-control-group">PHP Max Script Execute Time :</label>
|
167 |
</div>
|
168 |
</div>
|
169 |
</div>
|
170 |
+
<?php endif; ?>
|
171 |
<div class="widget-layout-body">
|
172 |
<div class="layout-control-group">
|
173 |
<label class="layout-label-control-group">Default Timezone :</label>
|
251 |
<label class="layout-label-control-group">Operating System :</label>
|
252 |
<div class="layout-controls">
|
253 |
<span>
|
254 |
+
<?php echo PHP_OS; ?> (<?php echo(PHP_INT_SIZE * 8) ?> Bit)
|
255 |
</span>
|
256 |
</div>
|
257 |
</div>
|
261 |
<label class="layout-label-control-group">Memory usage :</label>
|
262 |
<div class="layout-controls">
|
263 |
<span>
|
264 |
+
<?php echo $memory_usage; ?>
|
265 |
</span>
|
266 |
</div>
|
267 |
</div>
|
271 |
<label class="layout-label-control-group">SQL Mode :</label>
|
272 |
<div class="layout-controls">
|
273 |
<span>
|
274 |
+
<?php echo $sqlmode; ?>
|
275 |
</span>
|
276 |
</div>
|
277 |
</div>
|
281 |
<label class="layout-label-control-group">PHP Safe Mode :</label>
|
282 |
<div class="layout-controls">
|
283 |
<span>
|
284 |
+
<?php echo PHP_VERSION; ?>
|
285 |
</span>
|
286 |
</div>
|
287 |
</div>
|
291 |
<label class="layout-label-control-group">PHP Allow URL fopen :</label>
|
292 |
<div class="layout-controls">
|
293 |
<span>
|
294 |
+
<?php echo $allowurlfopen; ?>
|
295 |
</span>
|
296 |
</div>
|
297 |
</div>
|
301 |
<label class="layout-label-control-group">PHP Memory Limit :</label>
|
302 |
<div class="layout-controls">
|
303 |
<span>
|
304 |
+
<?php echo $memory_limit; ?>
|
305 |
</span>
|
306 |
</div>
|
307 |
</div>
|
311 |
<label class="layout-label-control-group">PHP Max Post Size :</label>
|
312 |
<div class="layout-controls">
|
313 |
<span>
|
314 |
+
<?php echo $post_maximum; ?>
|
315 |
</span>
|
316 |
</div>
|
317 |
</div>
|
321 |
<label class="layout-label-control-group">PCRE Backtracking Limit :</label>
|
322 |
<div class="layout-controls">
|
323 |
<span>
|
324 |
+
<?php echo $backtrack_lmt; ?>
|
325 |
</span>
|
326 |
</div>
|
327 |
</div>
|
331 |
<label class="layout-label-control-group">PHP Exif support :</label>
|
332 |
<div class="layout-controls">
|
333 |
<span>
|
334 |
+
<?php echo $exif; ?>
|
335 |
</span>
|
336 |
</div>
|
337 |
</div>
|
341 |
<label class="layout-label-control-group">PHP IPTC support :</label>
|
342 |
<div class="layout-controls">
|
343 |
<span>
|
344 |
+
<?php echo $iptc; ?>
|
345 |
</span>
|
346 |
</div>
|
347 |
</div>
|
351 |
<label class="layout-label-control-group">PHP XML support :</label>
|
352 |
<div class="layout-controls">
|
353 |
<span>
|
354 |
+
<?php echo $xml; ?>
|
355 |
</span>
|
356 |
</div>
|
357 |
</div>
|
425 |
</div>
|
426 |
</div>
|
427 |
</div>
|
428 |
+
<?php
|
429 |
+
if ($wp_version >= 3.4) {
|
430 |
+
$active_theme = wp_get_theme();
|
431 |
+
?>
|
432 |
<div class="widget-layout">
|
433 |
<div class="widget-layout-title">
|
434 |
<h4>Themes</h4>
|
452 |
<label class="layout-label-control-group">Theme Version :</label>
|
453 |
<div class="layout-controls">
|
454 |
<span><?php
|
455 |
+
echo $active_theme->Version;
|
456 |
+
if (!empty($theme_version_data["version"]) && version_compare($theme_version_data["version"], $active_theme->Version, "!="))
|
457 |
+
echo " – <strong style=\"color:red;\">" . $theme_version_data["version"] . " " . "is available" . "</strong>";
|
458 |
+
?>
|
459 |
</span>
|
460 |
</div>
|
461 |
</div>
|
470 |
</div>
|
471 |
</div>
|
472 |
</div>
|
473 |
+
<?php
|
474 |
+
}
|
475 |
+
?>
|
476 |
<div class="widget-layout">
|
477 |
<div class="widget-layout-title">
|
478 |
<h4>Graphic Library Settings</h4>
|
484 |
</div>
|
485 |
<div id="library_settings" class="collapse in">
|
486 |
<?php
|
|
|
487 |
function gd_yesNo($bool) {
|
488 |
if ($bool)
|
489 |
return "Yes";
|
490 |
else
|
491 |
return "No";
|
492 |
}
|
|
|
493 |
if (function_exists("gd_info")) {
|
494 |
$information = gd_info();
|
495 |
$key = array_keys($information);
|
views/contact-feedback.php
CHANGED
@@ -83,6 +83,7 @@ if (!current_user_can($user_role_permission)) {
|
|
83 |
<script type="text/javascript">
|
84 |
var url = "https://tech-banker.com/feedbacks.php";
|
85 |
var suggestion_array = [];
|
|
|
86 |
jQuery("#frm_contact_feedback").validate
|
87 |
({
|
88 |
rules:
|
@@ -105,6 +106,7 @@ if (!current_user_can($user_role_permission)) {
|
|
105 |
{
|
106 |
suggestion_array.push(jQuery("#ux_contact_name").val());
|
107 |
suggestion_array.push(jQuery("#ux_contact_email").val());
|
|
|
108 |
suggestion_array.push(jQuery("#ux_contact_suggestion").val());
|
109 |
jQuery.post(url,
|
110 |
{
|
83 |
<script type="text/javascript">
|
84 |
var url = "https://tech-banker.com/feedbacks.php";
|
85 |
var suggestion_array = [];
|
86 |
+
var domain_url = "<?php echo site_url(); ?>";
|
87 |
jQuery("#frm_contact_feedback").validate
|
88 |
({
|
89 |
rules:
|
106 |
{
|
107 |
suggestion_array.push(jQuery("#ux_contact_name").val());
|
108 |
suggestion_array.push(jQuery("#ux_contact_email").val());
|
109 |
+
suggestion_array.push(domain_url);
|
110 |
suggestion_array.push(jQuery("#ux_contact_suggestion").val());
|
111 |
jQuery.post(url,
|
112 |
{
|
views/recommended-plugins.php
CHANGED
@@ -70,7 +70,6 @@ if (!current_user_can($user_role_permission)) {
|
|
70 |
echo str_repeat('<div class="star star-empty"></div>', $empty_stars);
|
71 |
echo '</div>';
|
72 |
}
|
73 |
-
|
74 |
}
|
75 |
?>
|
76 |
<form id="frmrecommendation" class="layout-form">
|
70 |
echo str_repeat('<div class="star star-empty"></div>', $empty_stars);
|
71 |
echo '</div>';
|
72 |
}
|
|
|
73 |
}
|
74 |
?>
|
75 |
<form id="frmrecommendation" class="layout-form">
|