Version Description
- Minor Bugs Fixed Related to User Roles.
Download this release
Release Info
Developer | contact-banker |
Plugin | Contact Bank: WordPress Form Builder for Contact Forms |
Version | 2.0.102 |
Comparing to | |
See all releases |
Code changes from version 2.0.101 to 2.0.102
- contact-bank.php +426 -260
- readme.txt +5 -1
- views/recommended-plugins.php +10 -0
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 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -161,10 +161,22 @@ function contact_bank()
|
|
161 |
$current_user->role = array_keys($current_user->$cb_role);
|
162 |
$cb_role = $current_user->role[0];
|
163 |
}
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
}
|
169 |
function contact_dashboard()
|
170 |
{
|
@@ -179,9 +191,18 @@ function contact_dashboard()
|
|
179 |
$current_user->role = array_keys($current_user->$cb_role);
|
180 |
$cb_role = $current_user->role[0];
|
181 |
}
|
182 |
-
|
183 |
-
|
184 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
}
|
186 |
function edit_contact_view()
|
187 |
{
|
@@ -196,9 +217,18 @@ function edit_contact_view()
|
|
196 |
$current_user->role = array_keys($current_user->$cb_role);
|
197 |
$cb_role = $current_user->role[0];
|
198 |
}
|
199 |
-
|
200 |
-
|
201 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
}
|
203 |
|
204 |
function contact_plugin_update()
|
@@ -214,9 +244,18 @@ function contact_plugin_update()
|
|
214 |
$current_user->role = array_keys($current_user->$cb_role);
|
215 |
$cb_role = $current_user->role[0];
|
216 |
}
|
217 |
-
|
218 |
-
|
219 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
}
|
221 |
function contact_email()
|
222 |
{
|
@@ -231,9 +270,18 @@ function contact_email()
|
|
231 |
$current_user->role = array_keys($current_user->$cb_role);
|
232 |
$cb_role = $current_user->role[0];
|
233 |
}
|
234 |
-
|
235 |
-
|
236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
}
|
238 |
function contact_frontend_data()
|
239 |
{
|
@@ -248,9 +296,18 @@ function contact_frontend_data()
|
|
248 |
$current_user->role = array_keys($current_user->$cb_role);
|
249 |
$cb_role = $current_user->role[0];
|
250 |
}
|
251 |
-
|
252 |
-
|
253 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
}
|
255 |
function add_contact_email_settings()
|
256 |
{
|
@@ -265,9 +322,18 @@ function add_contact_email_settings()
|
|
265 |
$current_user->role = array_keys($current_user->$cb_role);
|
266 |
$cb_role = $current_user->role[0];
|
267 |
}
|
268 |
-
|
269 |
-
|
270 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
}
|
272 |
function contact_layout_settings()
|
273 |
{
|
@@ -282,9 +348,18 @@ function contact_layout_settings()
|
|
282 |
$current_user->role = array_keys($current_user->$cb_role);
|
283 |
$cb_role = $current_user->role[0];
|
284 |
}
|
285 |
-
|
286 |
-
|
287 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
}
|
289 |
function contact_feature_request()
|
290 |
{
|
@@ -299,8 +374,14 @@ function contact_feature_request()
|
|
299 |
$current_user->role = array_keys($current_user->$cb_role);
|
300 |
$cb_role = $current_user->role[0];
|
301 |
}
|
302 |
-
|
303 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
}
|
305 |
function contact_system_status()
|
306 |
{
|
@@ -315,9 +396,18 @@ function contact_system_status()
|
|
315 |
$current_user->role = array_keys($current_user->$cb_role);
|
316 |
$cb_role = $current_user->role[0];
|
317 |
}
|
318 |
-
|
319 |
-
|
320 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
}
|
322 |
|
323 |
function form_preview()
|
@@ -333,9 +423,18 @@ function form_preview()
|
|
333 |
$current_user->role = array_keys($current_user->$cb_role);
|
334 |
$cb_role = $current_user->role[0];
|
335 |
}
|
336 |
-
|
337 |
-
|
338 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
}
|
340 |
function contact_pro_version()
|
341 |
{
|
@@ -350,9 +449,18 @@ function contact_pro_version()
|
|
350 |
$current_user->role = array_keys($current_user->$cb_role);
|
351 |
$cb_role = $current_user->role[0];
|
352 |
}
|
353 |
-
|
354 |
-
|
355 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
}
|
357 |
function contact_bank_recommended_plugins()
|
358 |
{
|
@@ -367,9 +475,18 @@ function contact_bank_recommended_plugins()
|
|
367 |
$current_user->role = array_keys($current_user->$cb_role);
|
368 |
$cb_role = $current_user->role[0];
|
369 |
}
|
370 |
-
|
371 |
-
|
372 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
}
|
374 |
function contact_bank_other_services()
|
375 |
{
|
@@ -384,9 +501,18 @@ function contact_bank_other_services()
|
|
384 |
$current_user->role = array_keys($current_user->$cb_role);
|
385 |
$cb_role = $current_user->role[0];
|
386 |
}
|
387 |
-
|
388 |
-
|
389 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
390 |
}
|
391 |
function contact_short_code()
|
392 |
{
|
@@ -401,9 +527,18 @@ function contact_short_code()
|
|
401 |
$current_user->role = array_keys($current_user->$cb_role);
|
402 |
$cb_role = $current_user->role[0];
|
403 |
}
|
404 |
-
|
405 |
-
|
406 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
}
|
408 |
|
409 |
function backend_plugin_js_scripts_contact_bank()
|
@@ -462,14 +597,20 @@ if(isset($_REQUEST["action"]))
|
|
462 |
$current_user->role = array_keys($current_user->$cb_role);
|
463 |
$cb_role = $current_user->role[0];
|
464 |
}
|
465 |
-
|
|
|
|
|
|
|
466 |
}
|
467 |
break;
|
468 |
case "frontend_contact_form_library":
|
469 |
add_action( "admin_init", "frontend_contact_form_library");
|
470 |
function frontend_contact_form_library()
|
471 |
{
|
472 |
-
|
|
|
|
|
|
|
473 |
}
|
474 |
break;
|
475 |
case "email_contact_form_library":
|
@@ -487,14 +628,21 @@ if(isset($_REQUEST["action"]))
|
|
487 |
$current_user->role = array_keys($current_user->$cb_role);
|
488 |
$cb_role = $current_user->role[0];
|
489 |
}
|
490 |
-
|
|
|
|
|
|
|
491 |
}
|
492 |
break;
|
493 |
case "email_management_contact_form_library":
|
494 |
add_action( "admin_init", "email_management_contact_form_library");
|
495 |
function email_management_contact_form_library()
|
496 |
{
|
497 |
-
|
|
|
|
|
|
|
|
|
498 |
}
|
499 |
break;
|
500 |
case "frontend_data_contact_library":
|
@@ -512,7 +660,10 @@ if(isset($_REQUEST["action"]))
|
|
512 |
$current_user->role = array_keys($current_user->$cb_role);
|
513 |
$cb_role = $current_user->role[0];
|
514 |
}
|
515 |
-
|
|
|
|
|
|
|
516 |
}
|
517 |
break;
|
518 |
|
@@ -531,7 +682,10 @@ if(isset($_REQUEST["action"]))
|
|
531 |
$current_user->role = array_keys($current_user->$cb_role);
|
532 |
$cb_role = $current_user->role[0];
|
533 |
}
|
534 |
-
|
|
|
|
|
|
|
535 |
}
|
536 |
break;
|
537 |
case "layout_settings_contact_library":
|
@@ -549,7 +703,10 @@ if(isset($_REQUEST["action"]))
|
|
549 |
$current_user->role = array_keys($current_user->$cb_role);
|
550 |
$cb_role = $current_user->role[0];
|
551 |
}
|
552 |
-
|
|
|
|
|
|
|
553 |
}
|
554 |
break;
|
555 |
}
|
@@ -629,186 +786,193 @@ function extract_short_code($form_id,$show_title,$show_desc)
|
|
629 |
}
|
630 |
function add_contact_bank_icon($meta = TRUE)
|
631 |
{
|
632 |
-
|
633 |
-
if (is_super_admin())
|
634 |
-
{
|
635 |
-
$cb_role = "administrator";
|
636 |
-
}
|
637 |
-
else
|
638 |
{
|
639 |
-
|
640 |
-
$current_user->role = array_keys($current_user->$cb_role);
|
641 |
-
$cb_role = $current_user->role[0];
|
642 |
}
|
643 |
-
|
644 |
-
switch ($cb_role)
|
645 |
{
|
646 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
647 |
|
|
|
648 |
$wp_admin_bar->add_menu( array(
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
$wp_admin_bar->add_menu( array(
|
654 |
-
"parent" => "contact_bank_links",
|
655 |
-
"id" => "dashboard_links",
|
656 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
|
657 |
-
"title" => __( "Dashboard", contact_bank) ) /* set the sub-menu name */
|
658 |
-
);
|
659 |
-
$wp_admin_bar->add_menu( array(
|
660 |
-
"parent" => "contact_bank_links",
|
661 |
-
"id" => "plugin_updates_links",
|
662 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_plugin_update",
|
663 |
-
"title" => __( "Plugin Updates", contact_bank)) /* set the sub-menu name */
|
664 |
-
);
|
665 |
-
$wp_admin_bar->add_menu( array(
|
666 |
-
"parent" => "contact_bank_links",
|
667 |
-
"id" => "short_code_links",
|
668 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_short_code",
|
669 |
-
"title" => __( "Short-Codes", contact_bank)) /* set the sub-menu name */
|
670 |
-
);
|
671 |
-
$wp_admin_bar->add_menu( array(
|
672 |
-
"parent" => "contact_bank_links",
|
673 |
-
"id" => "frontend_data_links",
|
674 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_frontend_data",
|
675 |
-
"title" => __( "Form Entries", contact_bank)) /* set the sub-menu name */
|
676 |
-
);
|
677 |
-
$wp_admin_bar->add_menu( array(
|
678 |
-
"parent" => "contact_bank_links",
|
679 |
-
"id" => "email_links",
|
680 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_email",
|
681 |
-
"title" => __( "Email Settings", contact_bank) ) /* set the sub-menu name */
|
682 |
-
);
|
683 |
-
$wp_admin_bar->add_menu( array(
|
684 |
-
"parent" => "contact_bank_links",
|
685 |
-
"id" => "form_settings_data_links",
|
686 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_layout_settings",
|
687 |
-
"title" => __( "Global Settings", contact_bank)) /* set the sub-menu name */
|
688 |
-
);
|
689 |
-
$wp_admin_bar->add_menu( array(
|
690 |
-
"parent" => "contact_bank_links",
|
691 |
-
"id" => "feature_request_data_links",
|
692 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_feature_request",
|
693 |
-
"title" => __( "Feature Requests", contact_bank)) /* set the sub-menu name */
|
694 |
-
);
|
695 |
-
$wp_admin_bar->add_menu( array(
|
696 |
-
"parent" => "contact_bank_links",
|
697 |
-
"id" => "system_status_data_links",
|
698 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_system_status",
|
699 |
-
"title" => __( "System Status", contact_bank)) /* set the sub-menu name */
|
700 |
-
);
|
701 |
-
$wp_admin_bar->add_menu(array(
|
702 |
-
"parent" => "contact_bank_links",
|
703 |
-
"id" => "contact_bank_recommended_plugins_links",
|
704 |
-
"href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
|
705 |
-
"title" => __("Recommendations", contact_bank))
|
706 |
-
);
|
707 |
-
|
708 |
-
$wp_admin_bar->add_menu(array(
|
709 |
-
"parent" => "contact_bank_links",
|
710 |
-
"id" => "pro_version_links",
|
711 |
-
"href" => site_url() . "/wp-admin/admin.php?page=contact_pro_version",
|
712 |
-
"title" => __("Premium Editions", contact_bank))
|
713 |
-
);
|
714 |
|
715 |
-
|
716 |
"parent" => "contact_bank_links",
|
717 |
-
"id"
|
718 |
-
"href"
|
719 |
-
"title" => __(
|
720 |
-
|
721 |
-
|
722 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
723 |
$wp_admin_bar->add_menu( array(
|
724 |
-
"id" => "contact_bank_links",
|
725 |
-
"title" => "<img src=\"".plugins_url("/assets/images/icon.png",__FILE__)."\" width=\"25\" height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Contact Bank" ,
|
726 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
|
727 |
-
));
|
728 |
-
|
729 |
-
$wp_admin_bar->add_menu( array(
|
730 |
-
"parent" => "contact_bank_links",
|
731 |
-
"id" => "dashboard_links",
|
732 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
|
733 |
-
"title" => __( "Dashboard", contact_bank) ) /* set the sub-menu name */
|
734 |
-
);
|
735 |
-
$wp_admin_bar->add_menu( array(
|
736 |
-
"parent" => "contact_bank_links",
|
737 |
-
"id" => "plugin_updates_links",
|
738 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_plugin_update",
|
739 |
-
"title" => __( "Plugin Updates", contact_bank)) /* set the sub-menu name */
|
740 |
-
);
|
741 |
-
$wp_admin_bar->add_menu( array(
|
742 |
-
"parent" => "contact_bank_links",
|
743 |
-
"id" => "short_code_links",
|
744 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_short_code",
|
745 |
-
"title" => __( "Short-Codes", contact_bank)) /* set the sub-menu name */
|
746 |
-
);
|
747 |
-
$wp_admin_bar->add_menu( array(
|
748 |
-
"parent" => "contact_bank_links",
|
749 |
-
"id" => "frontend_data_links",
|
750 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_frontend_data",
|
751 |
-
"title" => __( "Form Entries", contact_bank)) /* set the sub-menu name */
|
752 |
-
);
|
753 |
-
$wp_admin_bar->add_menu( array(
|
754 |
-
"parent" => "contact_bank_links",
|
755 |
-
"id" => "email_links",
|
756 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_email",
|
757 |
-
"title" => __( "Email Settings", contact_bank) ) /* set the sub-menu name */
|
758 |
-
);
|
759 |
-
$wp_admin_bar->add_menu( array(
|
760 |
-
"parent" => "contact_bank_links",
|
761 |
-
"id" => "form_settings_data_links",
|
762 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_layout_settings",
|
763 |
-
"title" => __( "Global Settings", contact_bank)) /* set the sub-menu name */
|
764 |
-
);
|
765 |
-
$wp_admin_bar->add_menu( array(
|
766 |
"parent" => "contact_bank_links",
|
767 |
"id" => "feature_request_data_links",
|
768 |
"href" => site_url() ."/wp-admin/admin.php?page=contact_feature_request",
|
769 |
"title" => __( "Feature Requests", contact_bank)) /* set the sub-menu name */
|
770 |
-
|
771 |
-
|
772 |
-
$wp_admin_bar->add_menu( array(
|
773 |
-
"parent" => "contact_bank_links",
|
774 |
-
"id" => "system_status_data_links",
|
775 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_system_status",
|
776 |
-
"title" => __( "System Status", contact_bank)) /* set the sub-menu name */
|
777 |
-
);
|
778 |
-
$wp_admin_bar->add_menu(array(
|
779 |
-
"parent" => "contact_bank_links",
|
780 |
-
"id" => "contact_bank_recommended_plugins_links",
|
781 |
-
"href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
|
782 |
-
"title" => __("Recommendations", contact_bank))
|
783 |
-
);
|
784 |
-
|
785 |
-
$wp_admin_bar->add_menu(array(
|
786 |
-
"parent" => "contact_bank_links",
|
787 |
-
"id" => "pro_version_links",
|
788 |
-
"href" => site_url() . "/wp-admin/admin.php?page=contact_pro_version",
|
789 |
-
"title" => __("Premium Editions", contact_bank))
|
790 |
-
);
|
791 |
|
792 |
-
$wp_admin_bar->add_menu(array(
|
793 |
-
"parent" => "contact_bank_links",
|
794 |
-
"id" => "contact_bank_other_services_links",
|
795 |
-
"href" => site_url() . "/wp-admin/admin.php?page=contact_bank_other_services",
|
796 |
-
"title" => __("Our Other Services", contact_bank))
|
797 |
-
);
|
798 |
-
break;
|
799 |
-
case "author":
|
800 |
$wp_admin_bar->add_menu( array(
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
805 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
806 |
$wp_admin_bar->add_menu( array(
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
$wp_admin_bar->add_menu( array(
|
813 |
"parent" => "contact_bank_links",
|
814 |
"id" => "plugin_updates_links",
|
@@ -816,64 +980,66 @@ function add_contact_bank_icon($meta = TRUE)
|
|
816 |
"title" => __( "Plugin Updates", contact_bank)) /* set the sub-menu name */
|
817 |
);
|
818 |
$wp_admin_bar->add_menu( array(
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
);
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
);
|
830 |
$wp_admin_bar->add_menu( array(
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
);
|
836 |
$wp_admin_bar->add_menu( array(
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
);
|
842 |
$wp_admin_bar->add_menu( array(
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
847 |
);
|
848 |
-
$wp_admin_bar->add_menu(array(
|
849 |
-
"parent" => "contact_bank_links",
|
850 |
-
"id" => "contact_bank_recommended_plugins_links",
|
851 |
-
"href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
|
852 |
-
"title" => __("Recommendations", contact_bank))
|
853 |
-
);
|
854 |
|
855 |
$wp_admin_bar->add_menu(array(
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
$wp_admin_bar->add_menu(array(
|
863 |
"parent" => "contact_bank_links",
|
864 |
"id" => "contact_bank_other_services_links",
|
865 |
"href" => site_url() . "/wp-admin/admin.php?page=contact_bank_other_services",
|
866 |
"title" => __("Our Other Services", contact_bank))
|
867 |
);
|
868 |
-
|
|
|
869 |
}
|
870 |
}
|
871 |
add_action( "media_buttons_context", "add_contact_shortcode_button", 1);
|
872 |
-
function add_contact_shortcode_button($context)
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
|
|
877 |
}
|
878 |
add_action("admin_footer","add_contact_mce_popup");
|
879 |
|
@@ -883,7 +1049,7 @@ function add_contact_mce_popup(){
|
|
883 |
<div id="contact-bank" style="display:none;">
|
884 |
<div class="fluid-layout responsive">
|
885 |
<div style="padding:20px 0 10px 15px;">
|
886 |
-
|
887 |
<span>
|
888 |
<i><?php _e("Select a form below to add it to your post or page.", contact_bank); ?></i>
|
889 |
</span>
|
@@ -934,8 +1100,8 @@ function add_contact_mce_popup(){
|
|
934 |
var show_desc = jQuery("#ux_form_desc").prop("checked");
|
935 |
if(form_id == 0)
|
936 |
{
|
937 |
-
|
938 |
-
|
939 |
}
|
940 |
window.send_to_editor("[contact_bank form_id=" + form_id + " show_title=" + show_title +" show_desc=" + show_desc +"]");
|
941 |
}
|
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.102
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
161 |
$current_user->role = array_keys($current_user->$cb_role);
|
162 |
$cb_role = $current_user->role[0];
|
163 |
}
|
164 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
165 |
+
{
|
166 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
167 |
+
}
|
168 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/contact_view.php"))
|
169 |
+
{
|
170 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/contact_view.php";
|
171 |
+
}
|
172 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR . "/views/includes_common_after.php"))
|
173 |
+
{
|
174 |
+
include_once CONTACT_BK_PLUGIN_DIR . "/views/includes_common_after.php";
|
175 |
+
}
|
176 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
177 |
+
{
|
178 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
179 |
+
}
|
180 |
}
|
181 |
function contact_dashboard()
|
182 |
{
|
191 |
$current_user->role = array_keys($current_user->$cb_role);
|
192 |
$cb_role = $current_user->role[0];
|
193 |
}
|
194 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
195 |
+
{
|
196 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
197 |
+
}
|
198 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/dashboard.php"))
|
199 |
+
{
|
200 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/dashboard.php";
|
201 |
+
}
|
202 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
203 |
+
{
|
204 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
205 |
+
}
|
206 |
}
|
207 |
function edit_contact_view()
|
208 |
{
|
217 |
$current_user->role = array_keys($current_user->$cb_role);
|
218 |
$cb_role = $current_user->role[0];
|
219 |
}
|
220 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
221 |
+
{
|
222 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
223 |
+
}
|
224 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/contact_view.php"))
|
225 |
+
{
|
226 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/contact_view.php";
|
227 |
+
}
|
228 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
229 |
+
{
|
230 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
231 |
+
}
|
232 |
}
|
233 |
|
234 |
function contact_plugin_update()
|
244 |
$current_user->role = array_keys($current_user->$cb_role);
|
245 |
$cb_role = $current_user->role[0];
|
246 |
}
|
247 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
248 |
+
{
|
249 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
250 |
+
}
|
251 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/automatic-plugin-update.php"))
|
252 |
+
{
|
253 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/automatic-plugin-update.php";
|
254 |
+
}
|
255 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
256 |
+
{
|
257 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
258 |
+
}
|
259 |
}
|
260 |
function contact_email()
|
261 |
{
|
270 |
$current_user->role = array_keys($current_user->$cb_role);
|
271 |
$cb_role = $current_user->role[0];
|
272 |
}
|
273 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
274 |
+
{
|
275 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
276 |
+
}
|
277 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/contact_email_settings.php"))
|
278 |
+
{
|
279 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/contact_email_settings.php";
|
280 |
+
}
|
281 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
282 |
+
{
|
283 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
284 |
+
}
|
285 |
}
|
286 |
function contact_frontend_data()
|
287 |
{
|
296 |
$current_user->role = array_keys($current_user->$cb_role);
|
297 |
$cb_role = $current_user->role[0];
|
298 |
}
|
299 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
300 |
+
{
|
301 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
302 |
+
}
|
303 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/contact_frontend_data.php"))
|
304 |
+
{
|
305 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/contact_frontend_data.php";
|
306 |
+
}
|
307 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
308 |
+
{
|
309 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
310 |
+
}
|
311 |
}
|
312 |
function add_contact_email_settings()
|
313 |
{
|
322 |
$current_user->role = array_keys($current_user->$cb_role);
|
323 |
$cb_role = $current_user->role[0];
|
324 |
}
|
325 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
326 |
+
{
|
327 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
328 |
+
}
|
329 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/add_contact_email.php"))
|
330 |
+
{
|
331 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/add_contact_email.php";
|
332 |
+
}
|
333 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
334 |
+
{
|
335 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
336 |
+
}
|
337 |
}
|
338 |
function contact_layout_settings()
|
339 |
{
|
348 |
$current_user->role = array_keys($current_user->$cb_role);
|
349 |
$cb_role = $current_user->role[0];
|
350 |
}
|
351 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
352 |
+
{
|
353 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
354 |
+
}
|
355 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/contact_bank_layout_settings.php"))
|
356 |
+
{
|
357 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/contact_bank_layout_settings.php";
|
358 |
+
}
|
359 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
360 |
+
{
|
361 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
362 |
+
}
|
363 |
}
|
364 |
function contact_feature_request()
|
365 |
{
|
374 |
$current_user->role = array_keys($current_user->$cb_role);
|
375 |
$cb_role = $current_user->role[0];
|
376 |
}
|
377 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
378 |
+
{
|
379 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
380 |
+
}
|
381 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/contact-feedback.php"))
|
382 |
+
{
|
383 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/contact-feedback.php";
|
384 |
+
}
|
385 |
}
|
386 |
function contact_system_status()
|
387 |
{
|
396 |
$current_user->role = array_keys($current_user->$cb_role);
|
397 |
$cb_role = $current_user->role[0];
|
398 |
}
|
399 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
400 |
+
{
|
401 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
402 |
+
}
|
403 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/contact-bank-system-report.php"))
|
404 |
+
{
|
405 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/contact-bank-system-report.php";
|
406 |
+
}
|
407 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
408 |
+
{
|
409 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
410 |
+
}
|
411 |
}
|
412 |
|
413 |
function form_preview()
|
423 |
$current_user->role = array_keys($current_user->$cb_role);
|
424 |
$cb_role = $current_user->role[0];
|
425 |
}
|
426 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
427 |
+
{
|
428 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
429 |
+
}
|
430 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/contact_bank_form_preview.php"))
|
431 |
+
{
|
432 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/contact_bank_form_preview.php";
|
433 |
+
}
|
434 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
435 |
+
{
|
436 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
437 |
+
}
|
438 |
}
|
439 |
function contact_pro_version()
|
440 |
{
|
449 |
$current_user->role = array_keys($current_user->$cb_role);
|
450 |
$cb_role = $current_user->role[0];
|
451 |
}
|
452 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
453 |
+
{
|
454 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
455 |
+
}
|
456 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/purchase_pro_version.php"))
|
457 |
+
{
|
458 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/purchase_pro_version.php";
|
459 |
+
}
|
460 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
461 |
+
{
|
462 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
463 |
+
}
|
464 |
}
|
465 |
function contact_bank_recommended_plugins()
|
466 |
{
|
475 |
$current_user->role = array_keys($current_user->$cb_role);
|
476 |
$cb_role = $current_user->role[0];
|
477 |
}
|
478 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
479 |
+
{
|
480 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
481 |
+
}
|
482 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/recommended-plugins.php"))
|
483 |
+
{
|
484 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/recommended-plugins.php";
|
485 |
+
}
|
486 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
487 |
+
{
|
488 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
489 |
+
}
|
490 |
}
|
491 |
function contact_bank_other_services()
|
492 |
{
|
501 |
$current_user->role = array_keys($current_user->$cb_role);
|
502 |
$cb_role = $current_user->role[0];
|
503 |
}
|
504 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
505 |
+
{
|
506 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
507 |
+
}
|
508 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/other-services.php"))
|
509 |
+
{
|
510 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/other-services.php";
|
511 |
+
}
|
512 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
513 |
+
{
|
514 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
515 |
+
}
|
516 |
}
|
517 |
function contact_short_code()
|
518 |
{
|
527 |
$current_user->role = array_keys($current_user->$cb_role);
|
528 |
$cb_role = $current_user->role[0];
|
529 |
}
|
530 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/header.php"))
|
531 |
+
{
|
532 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
|
533 |
+
}
|
534 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/shortcode.php"))
|
535 |
+
{
|
536 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/shortcode.php";
|
537 |
+
}
|
538 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/views/footer.php"))
|
539 |
+
{
|
540 |
+
include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
|
541 |
+
}
|
542 |
}
|
543 |
|
544 |
function backend_plugin_js_scripts_contact_bank()
|
597 |
$current_user->role = array_keys($current_user->$cb_role);
|
598 |
$cb_role = $current_user->role[0];
|
599 |
}
|
600 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_view-class.php"))
|
601 |
+
{
|
602 |
+
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_view-class.php";
|
603 |
+
}
|
604 |
}
|
605 |
break;
|
606 |
case "frontend_contact_form_library":
|
607 |
add_action( "admin_init", "frontend_contact_form_library");
|
608 |
function frontend_contact_form_library()
|
609 |
{
|
610 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_frontend-class.php"))
|
611 |
+
{
|
612 |
+
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_frontend-class.php";
|
613 |
+
}
|
614 |
}
|
615 |
break;
|
616 |
case "email_contact_form_library":
|
628 |
$current_user->role = array_keys($current_user->$cb_role);
|
629 |
$cb_role = $current_user->role[0];
|
630 |
}
|
631 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_email-class.php"))
|
632 |
+
{
|
633 |
+
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email-class.php";
|
634 |
+
}
|
635 |
}
|
636 |
break;
|
637 |
case "email_management_contact_form_library":
|
638 |
add_action( "admin_init", "email_management_contact_form_library");
|
639 |
function email_management_contact_form_library()
|
640 |
{
|
641 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_email_management.php"))
|
642 |
+
{
|
643 |
+
include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email_management.php";
|
644 |
+
|
645 |
+
}
|
646 |
}
|
647 |
break;
|
648 |
case "frontend_data_contact_library":
|
660 |
$current_user->role = array_keys($current_user->$cb_role);
|
661 |
$cb_role = $current_user->role[0];
|
662 |
}
|
663 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_frontend_data_class.php"))
|
664 |
+
{
|
665 |
+
include CONTACT_BK_PLUGIN_DIR . "/lib/contact_frontend_data_class.php";
|
666 |
+
}
|
667 |
}
|
668 |
break;
|
669 |
|
682 |
$current_user->role = array_keys($current_user->$cb_role);
|
683 |
$cb_role = $current_user->role[0];
|
684 |
}
|
685 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_show_form_control_data-class.php"))
|
686 |
+
{
|
687 |
+
include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_show_form_control_data-class.php";
|
688 |
+
}
|
689 |
}
|
690 |
break;
|
691 |
case "layout_settings_contact_library":
|
703 |
$current_user->role = array_keys($current_user->$cb_role);
|
704 |
$cb_role = $current_user->role[0];
|
705 |
}
|
706 |
+
if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_layout_settings-class.php"))
|
707 |
+
{
|
708 |
+
include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php";
|
709 |
+
}
|
710 |
}
|
711 |
break;
|
712 |
}
|
786 |
}
|
787 |
function add_contact_bank_icon($meta = TRUE)
|
788 |
{
|
789 |
+
if (!is_user_logged_in() )
|
|
|
|
|
|
|
|
|
|
|
790 |
{
|
791 |
+
return;
|
|
|
|
|
792 |
}
|
793 |
+
else
|
|
|
794 |
{
|
795 |
+
global $wp_admin_bar,$wpdb,$current_user;
|
796 |
+
if (is_super_admin())
|
797 |
+
{
|
798 |
+
$cb_role = "administrator";
|
799 |
+
}
|
800 |
+
else
|
801 |
+
{
|
802 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
803 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
804 |
+
$cb_role = $current_user->role[0];
|
805 |
+
}
|
806 |
+
|
807 |
+
switch ($cb_role)
|
808 |
+
{
|
809 |
+
case "administrator":
|
810 |
+
|
811 |
+
$wp_admin_bar->add_menu( array(
|
812 |
+
"id" => "contact_bank_links",
|
813 |
+
"title" => "<img src=\"".plugins_url("/assets/images/icon.png",__FILE__)."\" width=\"25\" height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Contact Bank" ,
|
814 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
|
815 |
+
));
|
816 |
+
$wp_admin_bar->add_menu( array(
|
817 |
+
"parent" => "contact_bank_links",
|
818 |
+
"id" => "dashboard_links",
|
819 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
|
820 |
+
"title" => __( "Dashboard", contact_bank) ) /* set the sub-menu name */
|
821 |
+
);
|
822 |
+
$wp_admin_bar->add_menu( array(
|
823 |
+
"parent" => "contact_bank_links",
|
824 |
+
"id" => "plugin_updates_links",
|
825 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_plugin_update",
|
826 |
+
"title" => __( "Plugin Updates", contact_bank)) /* set the sub-menu name */
|
827 |
+
);
|
828 |
+
$wp_admin_bar->add_menu( array(
|
829 |
+
"parent" => "contact_bank_links",
|
830 |
+
"id" => "short_code_links",
|
831 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_short_code",
|
832 |
+
"title" => __( "Short-Codes", contact_bank)) /* set the sub-menu name */
|
833 |
+
);
|
834 |
+
$wp_admin_bar->add_menu( array(
|
835 |
+
"parent" => "contact_bank_links",
|
836 |
+
"id" => "frontend_data_links",
|
837 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_frontend_data",
|
838 |
+
"title" => __( "Form Entries", contact_bank)) /* set the sub-menu name */
|
839 |
+
);
|
840 |
+
$wp_admin_bar->add_menu( array(
|
841 |
+
"parent" => "contact_bank_links",
|
842 |
+
"id" => "email_links",
|
843 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_email",
|
844 |
+
"title" => __( "Email Settings", contact_bank) ) /* set the sub-menu name */
|
845 |
+
);
|
846 |
+
$wp_admin_bar->add_menu( array(
|
847 |
+
"parent" => "contact_bank_links",
|
848 |
+
"id" => "form_settings_data_links",
|
849 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_layout_settings",
|
850 |
+
"title" => __( "Global Settings", contact_bank)) /* set the sub-menu name */
|
851 |
+
);
|
852 |
+
$wp_admin_bar->add_menu( array(
|
853 |
+
"parent" => "contact_bank_links",
|
854 |
+
"id" => "feature_request_data_links",
|
855 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_feature_request",
|
856 |
+
"title" => __( "Feature Requests", contact_bank)) /* set the sub-menu name */
|
857 |
+
);
|
858 |
+
$wp_admin_bar->add_menu( array(
|
859 |
+
"parent" => "contact_bank_links",
|
860 |
+
"id" => "system_status_data_links",
|
861 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_system_status",
|
862 |
+
"title" => __( "System Status", contact_bank)) /* set the sub-menu name */
|
863 |
+
);
|
864 |
+
$wp_admin_bar->add_menu(array(
|
865 |
+
"parent" => "contact_bank_links",
|
866 |
+
"id" => "contact_bank_recommended_plugins_links",
|
867 |
+
"href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
|
868 |
+
"title" => __("Recommendations", contact_bank))
|
869 |
+
);
|
870 |
+
|
871 |
+
$wp_admin_bar->add_menu(array(
|
872 |
+
"parent" => "contact_bank_links",
|
873 |
+
"id" => "pro_version_links",
|
874 |
+
"href" => site_url() . "/wp-admin/admin.php?page=contact_pro_version",
|
875 |
+
"title" => __("Premium Editions", contact_bank))
|
876 |
+
);
|
877 |
+
|
878 |
+
$wp_admin_bar->add_menu(array(
|
879 |
+
"parent" => "contact_bank_links",
|
880 |
+
"id" => "contact_bank_other_services_links",
|
881 |
+
"href" => site_url() . "/wp-admin/admin.php?page=contact_bank_other_services",
|
882 |
+
"title" => __("Our Other Services", contact_bank))
|
883 |
+
);
|
884 |
+
break;
|
885 |
|
886 |
+
case "editor":
|
887 |
$wp_admin_bar->add_menu( array(
|
888 |
+
"id" => "contact_bank_links",
|
889 |
+
"title" => "<img src=\"".plugins_url("/assets/images/icon.png",__FILE__)."\" width=\"25\" height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Contact Bank" ,
|
890 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
|
891 |
+
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
892 |
|
893 |
+
$wp_admin_bar->add_menu( array(
|
894 |
"parent" => "contact_bank_links",
|
895 |
+
"id" => "dashboard_links",
|
896 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
|
897 |
+
"title" => __( "Dashboard", contact_bank) ) /* set the sub-menu name */
|
898 |
+
);
|
899 |
+
$wp_admin_bar->add_menu( array(
|
900 |
+
"parent" => "contact_bank_links",
|
901 |
+
"id" => "plugin_updates_links",
|
902 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_plugin_update",
|
903 |
+
"title" => __( "Plugin Updates", contact_bank)) /* set the sub-menu name */
|
904 |
+
);
|
905 |
+
$wp_admin_bar->add_menu( array(
|
906 |
+
"parent" => "contact_bank_links",
|
907 |
+
"id" => "short_code_links",
|
908 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_short_code",
|
909 |
+
"title" => __( "Short-Codes", contact_bank)) /* set the sub-menu name */
|
910 |
+
);
|
911 |
+
$wp_admin_bar->add_menu( array(
|
912 |
+
"parent" => "contact_bank_links",
|
913 |
+
"id" => "frontend_data_links",
|
914 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_frontend_data",
|
915 |
+
"title" => __( "Form Entries", contact_bank)) /* set the sub-menu name */
|
916 |
+
);
|
917 |
+
$wp_admin_bar->add_menu( array(
|
918 |
+
"parent" => "contact_bank_links",
|
919 |
+
"id" => "email_links",
|
920 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_email",
|
921 |
+
"title" => __( "Email Settings", contact_bank) ) /* set the sub-menu name */
|
922 |
+
);
|
923 |
+
$wp_admin_bar->add_menu( array(
|
924 |
+
"parent" => "contact_bank_links",
|
925 |
+
"id" => "form_settings_data_links",
|
926 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_layout_settings",
|
927 |
+
"title" => __( "Global Settings", contact_bank)) /* set the sub-menu name */
|
928 |
+
);
|
929 |
$wp_admin_bar->add_menu( array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
930 |
"parent" => "contact_bank_links",
|
931 |
"id" => "feature_request_data_links",
|
932 |
"href" => site_url() ."/wp-admin/admin.php?page=contact_feature_request",
|
933 |
"title" => __( "Feature Requests", contact_bank)) /* set the sub-menu name */
|
934 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
935 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
936 |
$wp_admin_bar->add_menu( array(
|
937 |
+
"parent" => "contact_bank_links",
|
938 |
+
"id" => "system_status_data_links",
|
939 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_system_status",
|
940 |
+
"title" => __( "System Status", contact_bank)) /* set the sub-menu name */
|
941 |
+
);
|
942 |
+
$wp_admin_bar->add_menu(array(
|
943 |
+
"parent" => "contact_bank_links",
|
944 |
+
"id" => "contact_bank_recommended_plugins_links",
|
945 |
+
"href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
|
946 |
+
"title" => __("Recommendations", contact_bank))
|
947 |
+
);
|
948 |
+
|
949 |
+
$wp_admin_bar->add_menu(array(
|
950 |
+
"parent" => "contact_bank_links",
|
951 |
+
"id" => "pro_version_links",
|
952 |
+
"href" => site_url() . "/wp-admin/admin.php?page=contact_pro_version",
|
953 |
+
"title" => __("Premium Editions", contact_bank))
|
954 |
+
);
|
955 |
|
956 |
+
$wp_admin_bar->add_menu(array(
|
957 |
+
"parent" => "contact_bank_links",
|
958 |
+
"id" => "contact_bank_other_services_links",
|
959 |
+
"href" => site_url() . "/wp-admin/admin.php?page=contact_bank_other_services",
|
960 |
+
"title" => __("Our Other Services", contact_bank))
|
961 |
+
);
|
962 |
+
break;
|
963 |
+
|
964 |
+
case "author":
|
965 |
+
$wp_admin_bar->add_menu( array(
|
966 |
+
"id" => "contact_bank_links",
|
967 |
+
"title" => "<img src=\"".plugins_url("/assets/images/icon.png",__FILE__)."\" width=\"25\" height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Contact Bank" ,
|
968 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
|
969 |
+
));
|
970 |
$wp_admin_bar->add_menu( array(
|
971 |
+
"parent" => "contact_bank_links",
|
972 |
+
"id" => "dashboard_links",
|
973 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
|
974 |
+
"title" => __( "Dashboard", contact_bank) ) /* set the sub-menu name */
|
975 |
+
);
|
976 |
$wp_admin_bar->add_menu( array(
|
977 |
"parent" => "contact_bank_links",
|
978 |
"id" => "plugin_updates_links",
|
980 |
"title" => __( "Plugin Updates", contact_bank)) /* set the sub-menu name */
|
981 |
);
|
982 |
$wp_admin_bar->add_menu( array(
|
983 |
+
"parent" => "contact_bank_links",
|
984 |
+
"id" => "short_code_links",
|
985 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_short_code",
|
986 |
+
"title" => __( "Short-Codes", contact_bank)) /* set the sub-menu name */
|
987 |
);
|
988 |
+
$wp_admin_bar->add_menu( array(
|
989 |
+
"parent" => "contact_bank_links",
|
990 |
+
"id" => "frontend_data_links",
|
991 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_frontend_data",
|
992 |
+
"title" => __( "Form Entries", contact_bank)) /* set the sub-menu name */
|
993 |
);
|
994 |
$wp_admin_bar->add_menu( array(
|
995 |
+
"parent" => "contact_bank_links",
|
996 |
+
"id" => "email_links",
|
997 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_email",
|
998 |
+
"title" => __( "Email Settings", contact_bank) ) /* set the sub-menu name */
|
999 |
);
|
1000 |
$wp_admin_bar->add_menu( array(
|
1001 |
+
"parent" => "contact_bank_links",
|
1002 |
+
"id" => "form_settings_data_links",
|
1003 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_layout_settings",
|
1004 |
+
"title" => __( "Global Settings", contact_bank)) /* set the sub-menu name */
|
1005 |
+
);
|
1006 |
$wp_admin_bar->add_menu( array(
|
1007 |
+
"parent" => "contact_bank_links",
|
1008 |
+
"id" => "feature_request_data_links",
|
1009 |
+
"href" => site_url() ."/wp-admin/admin.php?page=contact_feature_request",
|
1010 |
+
"title" => __( "Feature Requests", contact_bank)) /* set the sub-menu name */
|
1011 |
+
);
|
1012 |
+
$wp_admin_bar->add_menu(array(
|
1013 |
+
"parent" => "contact_bank_links",
|
1014 |
+
"id" => "contact_bank_recommended_plugins_links",
|
1015 |
+
"href" => site_url() . "/wp-admin/admin.php?page=contact_bank_recommended_plugins",
|
1016 |
+
"title" => __("Recommendations", contact_bank))
|
1017 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
1018 |
|
1019 |
$wp_admin_bar->add_menu(array(
|
1020 |
+
"parent" => "contact_bank_links",
|
1021 |
+
"id" => "pro_version_links",
|
1022 |
+
"href" => site_url() . "/wp-admin/admin.php?page=contact_pro_version",
|
1023 |
+
"title" => __("Premium Editions", contact_bank))
|
1024 |
+
);
|
1025 |
+
|
1026 |
$wp_admin_bar->add_menu(array(
|
1027 |
"parent" => "contact_bank_links",
|
1028 |
"id" => "contact_bank_other_services_links",
|
1029 |
"href" => site_url() . "/wp-admin/admin.php?page=contact_bank_other_services",
|
1030 |
"title" => __("Our Other Services", contact_bank))
|
1031 |
);
|
1032 |
+
break;
|
1033 |
+
}
|
1034 |
}
|
1035 |
}
|
1036 |
add_action( "media_buttons_context", "add_contact_shortcode_button", 1);
|
1037 |
+
function add_contact_shortcode_button($context)
|
1038 |
+
{
|
1039 |
+
add_thickbox();
|
1040 |
+
$context .= "<a href=\"#TB_inline?width=300&height=400&inlineId=contact-bank\" class=\"button thickbox\" title=\"" . __("Add Contact Bank Form", contact_bank) . "\">
|
1041 |
+
<span class=\"contact_icon\"></span> Add Contact Bank Form</a>";
|
1042 |
+
return $context;
|
1043 |
}
|
1044 |
add_action("admin_footer","add_contact_mce_popup");
|
1045 |
|
1049 |
<div id="contact-bank" style="display:none;">
|
1050 |
<div class="fluid-layout responsive">
|
1051 |
<div style="padding:20px 0 10px 15px;">
|
1052 |
+
<h3 class="label-shortcode"><?php _e("Insert Contact Bank Form", contact_bank); ?></h3>
|
1053 |
<span>
|
1054 |
<i><?php _e("Select a form below to add it to your post or page.", contact_bank); ?></i>
|
1055 |
</span>
|
1100 |
var show_desc = jQuery("#ux_form_desc").prop("checked");
|
1101 |
if(form_id == 0)
|
1102 |
{
|
1103 |
+
alert("<?php _e("Please choose a Form to insert into Shortcode", contact_bank) ?>");
|
1104 |
+
return;
|
1105 |
}
|
1106 |
window.send_to_editor("[contact_bank form_id=" + form_id + " show_title=" + show_title +" show_desc=" + show_desc +"]");
|
1107 |
}
|
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.101 =
|
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.102
|
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.102 =
|
553 |
+
|
554 |
+
* Minor Bugs Fixed Related to User Roles.
|
555 |
+
|
556 |
= 2.0.101 =
|
557 |
|
558 |
* Minor Bugs Fixed.
|
views/recommended-plugins.php
CHANGED
@@ -241,6 +241,16 @@ else
|
|
241 |
</a>
|
242 |
<?php
|
243 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
}
|
245 |
?>
|
246 |
</li>
|
241 |
</a>
|
242 |
<?php
|
243 |
break;
|
244 |
+
case "wp-backup-bank":
|
245 |
+
?>
|
246 |
+
<a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-backup-bank/pricing/" target="_blank" >
|
247 |
+
<?php _e("Premium Editions", tech_bank); ?>
|
248 |
+
</a>
|
249 |
+
<a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-backup-bank/" target="_blank" >
|
250 |
+
<?php _e("Visit Website", tech_bank); ?>
|
251 |
+
</a>
|
252 |
+
<?php
|
253 |
+
break;
|
254 |
}
|
255 |
?>
|
256 |
</li>
|