PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 7.6.9
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v7.6.9
8.7.8 8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 All 534 releases
← All changes | admin_ui.php +239 -425 8.6.27.6.9 View file →
@@ -1,26 +1,10 @@
1 +<?php
1 2
2 -<?php
3 3 // Exit if accessed directly
4 4 if ( ! defined( 'ABSPATH' ) ) {
5 5 exit;
6 6 }
7 -// Ensure WordPress escaping and translation functions are available
8 -if ( ! function_exists( 'esc_html' ) ) {
9 - require_once( ABSPATH . 'wp-includes/formatting.php' );
10 -}
11 -if ( ! function_exists( 'esc_html__' ) ) {
12 - require_once( ABSPATH . 'wp-includes/l10n.php' );
13 -}
14 -if ( ! function_exists( 'esc_html_e' ) ) {
15 - require_once( ABSPATH . 'wp-includes/l10n.php' );
16 -}
17 -if ( ! function_exists( 'esc_attr' ) ) {
18 - require_once( ABSPATH . 'wp-includes/formatting.php' );
19 -}
20 -if ( ! function_exists( 'esc_url' ) ) {
21 - require_once( ABSPATH . 'wp-includes/formatting.php' );
22 -}
23 7 ?>
24 8
25 9 <div class="wrap qcld-main-wrapper">
26 10 <h1 style="display:none">
@@ -29,9 +13,9 @@
29 13
30 14 <div class="qcld-wp-chatbot-wrap-header">
31 15
32 16 <div class="qcld-wp-chatbot-wrap-header-logo"><a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a>
33 - <p><strong>Core Version:</strong> v<?php echo esc_attr(QCLD_wpCHATBOT_VERSION); ?></p>
17 + <p><strong>Core Version:</strong> v<?php echo QCLD_wpCHATBOT_VERSION; ?></p>
34 18 </div>
35 19 <ul class="qcld-wp-chatbot-wrap-version-wrapper">
36 20 <li>
37 21 <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a>
@@ -63,9 +47,9 @@
63 47
64 48 <div class="wp-chatbot-wrap">
65 49 <div class="icon32"><br>
66 50 </div>
67 -<form action="<?php echo esc_url($action); ?>" method="POST" id="wp-chatbot-admin-form"
51 +<form action="<?php echo esc_url($action, 'chatbot'); ?>" method="POST" id="wp-chatbot-admin-form"
68 52 enctype="multipart/form-data">
69 53 <div class="form-container">
70 54
71 55 <section class="wp-chatbot-tab-container-inner">
@@ -99,9 +83,9 @@
99 83 </span> </a></li>
100 84 <li tab-data="startmenu"><a href="<?php echo esc_url($action).'&tab=startmenu' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-menu"></span> </span> <span class="wpwbot-admin-tab-name"><?php esc_html_e('Start Menu', 'chatbot'); ?></span> </a></li>
101 85
102 86
103 - <li tab-data="ai"><a href="<?php echo esc_url($action).'&tab=ai' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-format-chat"></span> </span> <span class="wpwbot-admin-tab-name">
87 + <li tab-data="ai"><a href="<?php echo esc_url($action).'&tab=ai' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-format-chat"></span> </span> <span class="wpwbot-admin-tab-name">
104 88 <?php esc_html_e('Dialogflow', 'chatbot'); ?>
105 89 </span> </a></li>
106 90
107 91
@@ -106,9 +90,9 @@
106 90
107 91
108 92 <li tab-data="<?php echo esc_url('rpl'); ?>" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>">
109 93 <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-feedback"></span>
110 - </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?>
94 + </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?>
111 95 </span>
112 96 </a>
113 97 </li>
114 98
@@ -114,9 +98,9 @@
114 98
115 99
116 100
117 101
118 - <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=custom_css'?>">
102 + <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=ai'?>">
119 103 <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-editor-code"></span>
120 104 </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Custom CSS', 'chatbot'); ?></span>
121 105 </a>
122 106 </li>
@@ -142,9 +126,9 @@
142 126
143 127 <div class="text-center mt-5 qcld-Resetall">
144 128 <input type="button" class="btn btn-warning submit-button"
145 129 id="qcld-wp-chatbot-reset-option"
146 - value="<?php echo esc_attr__('Reset all options to Default', 'chatbot') ; ?>"/>
130 + value="<?php echo esc_html('Reset all options to Default') ; ?>"/>
147 131 </div>
148 132 </nav>
149 133
150 134
@@ -156,10 +140,10 @@
156 140
157 141 <div class="wrap qcld-swpm-admin-menu-wrap">
158 142 <div class="wrap qcld-swpm-admin-menu-wrap">
159 143 <h3 class="nav-tab-wrapper sld_nav_container wppt_nav_container">
160 - <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html__('Getting Started', 'chatbot'); ?></a>
161 - <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html__('WPBot – In a Nutshell', 'chatbot'); ?></a>
144 + <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html('Getting Started'); ?></a>
145 + <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html('WPBot – In a Nutshell'); ?></a>
162 146 </h3>
163 147 <div class="wppt-settings-section" id="general_int">
164 148 <div class="content form-container qcbot_help_secion" style="">
165 149 <!-- new Section -->
@@ -519,278 +503,159 @@
519 503 </div>
520 504 <?php } ?>
521 505
522 506 <div class="cxsc-settings-blocks-notic">
523 - <p class="d-ib"><i class="dashicons dashicons-yes" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Getting Started section for how to create interactions.', 'chatbot'); ?></p>
524 - <p class="d-ib"><i class="dashicons dashicons-yes" aria-hidden="true"></i> <?php esc_html_e('You can change ALL the texts used by the ChatBot to YOUR language here to make it speak French, German, Spanish etc. -> Change Language', 'chatbot'); ?></p>
525 - <p class="d-ib"><i class="dashicons dashicons-yes" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Help and Debugging section to troubleshoot common issues.', 'chatbot'); ?></p>
507 + <p class="d-ib"><i class="dashicons dashicons-yes-alt" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Getting Started section for how to create interactions.', 'chatbot'); ?></p>
508 + <p class="d-ib"><i class="dashicons dashicons-yes-alt" aria-hidden="true"></i> <?php esc_html_e('You can change ALL the texts used by the ChatBot to YOUR language here to make it speak French, German, Spanish etc. -> Change Language', 'chatbot'); ?></p>
509 + <p class="d-ib"><i class="dashicons dashicons-yes-alt" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Help and Debugging section to troubleshoot common issues.', 'chatbot'); ?></p>
526 510 </div>
527 - </div>
528 - </div>
511 +
512 + <b>
513 + <!-- <p>Please see the plugin's Help and Debugging section to troubleshoot common issues.</p> -->
514 + </b>
515 +
529 516
530 -
531 -
532 -
533 - <div class="row">
534 - <div class="col-xs-6">
535 - <div class="cxsc-settings-blocks">
536 - <div class="form-group" style=" min-height: 150px;">
517 + <div class="cxsc-settings-blocks">
518 + <div class="form-group">
537 519 <?php
538 - $qcld_wpbot_url = get_site_url();
539 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
540 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
541 - $qcld_wpbot_admin_email = get_option('admin_email');
520 + $url = get_site_url();
521 + $url = wp_parse_url($url);
522 + $domain = $url['host'];
523 +
524 + $admin_email = get_option('admin_email');
542 525 ?>
543 526 <h4 class="qc-opt-title"><?php esc_html_e('Emails Will be Sent to', 'chatbot'); ?></h4>
544 527 <input type="text" class="form-control qc-opt-dcs-font"
545 - name="qlcd_wp_chatbot_admin_email"
546 - value="<?php echo (get_option('qlcd_wp_chatbot_admin_email') != '' ? esc_attr(get_option('qlcd_wp_chatbot_admin_email')) : esc_attr(sanitize_email($qcld_wpbot_admin_email)) ); ?>">
547 - <label class="qcld_label_width_full qcld_label_width_half" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'chatbot'); ?> </label>
528 + name="qlcd_wp_chatbot_admin_email"
529 + value="<?php echo (get_option('qlcd_wp_chatbot_admin_email') != '' ? esc_attr(get_option('qlcd_wp_chatbot_admin_email')) : sanitize_email($admin_email) ) ?>">
530 + <label class="qcld_label_width_full" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'chatbot'); ?> </label>
548 531 </div>
549 532 </div>
533 + <div class="cxsc-settings-blocks">
534 + <div class="form-group">
535 + <?php
536 + $url = get_site_url();
537 + $url = wp_parse_url($url);
538 + $domain = $url['host'];
539 + $fromEmail = "wordpress@" . $domain;
540 + ?>
541 + <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
542 + <input type="text" class="form-control qc-opt-dcs-font"
543 + name="qlcd_wp_chatbot_from_email"
544 + value="<?php echo (get_option('qlcd_wp_chatbot_from_email') != '' ? esc_attr( get_option('qlcd_wp_chatbot_from_email')) : sanitize_email($fromEmail)); ?> ">
545 + <label class="qcld_label_width_full" for="qlcd_wp_chatbot_from_email"><?php esc_html_e('All emails will be sent from this email address. If you change the From Email Address then please make sure the domain remains the same as where WordPress is installed. Otherwise, the emails may not be received.', 'chatbot'); ?> </label>
546 + </div>
550 547 </div>
551 - <div class="col-xs-6">
552 - <div class="cxsc-settings-blocks">
553 - <div class="form-group">
554 - <?php
555 - $qcld_wpbot_url = get_site_url();
556 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
557 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
558 - $qcld_wpbot_from_email = "wordpress@" . $qcld_wpbot_domain;
559 - ?>
560 - <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
561 - <input type="text" class="form-control qc-opt-dcs-font"
562 - name="qlcd_wp_chatbot_from_email"
563 - value="<?php echo (get_option('qlcd_wp_chatbot_from_email') != '' ? esc_attr( get_option('qlcd_wp_chatbot_from_email')) : esc_attr(sanitize_email($qcld_wpbot_from_email))); ?> ">
564 - <label class="qcld_label_width_full qcld_label_width_half" for="qlcd_wp_chatbot_from_email"><?php esc_html_e('All emails will be sent from this email address. If you change the From Email Address then please make sure the domain remains the same as where WordPress is installed. Otherwise, the emails may not be received.', 'chatbot'); ?> </label>
548 + </div>
549 + </div>
550 + <div class="row">
551 + <div class="col-xs-12">
552 + <div class="cxsc-settings-blocks">
553 + <div class="form-group">
554 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </h4>
555 + <div class="cxsc-settings-blocks">
556 + <input value="1" id="skip_wp_greetings" type="checkbox"
557 + name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
558 + <label for="skip_wp_greetings"><?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </label>
559 + </div>
565 560 </div>
566 561 </div>
567 - </div>
568 562 </div>
569 - <style>
570 - .wpbot-cards-grid {
571 - display: grid;
572 - grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
573 - gap: 20px;
574 - margin-bottom: 20px;
575 - margin-top: 20px;
576 - }
577 - .wpbot-checkbox-card {
578 - cursor: pointer;
579 - display: block;
580 - position: relative;
581 - margin: 0;
582 - }
583 - .wpbot-checkbox-card input[type="checkbox"] {
584 - position: absolute;
585 - opacity: 0;
586 - width: 0;
587 - height: 0;
588 - }
589 - .wpbot-checkbox-card .card-body {
590 - border: 1px solid #e2e8f0;
591 - border-radius: 12px;
592 - padding: 20px;
593 - background: #f8fafc;
594 - transition: all 0.2s ease;
595 - height: 100%;
596 - box-sizing: border-box;
597 - display: flex;
598 - flex-direction: column;
599 - position: relative;
600 - }
601 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body {
602 - border-color: #5b4e96;
603 - background: #eff6ff;
604 - box-shadow: 0 0 0 1px #5b4e96, 0 8px 24px rgba(37, 99, 235, 0.15);
605 - }
606 - .wpbot-checkbox-card .check-icon {
607 - position: absolute;
608 - top: 30px;
609 - right: 16px;
610 - width: 24px;
611 - height: 24px;
612 - border-radius: 50%;
613 - background: #f8fafc;
614 - border: 2px solid #e2e8f0;
615 - display: flex;
616 - align-items: center;
617 - justify-content: center;
618 - transition: all 0.2s ease;
619 - z-index: 2;
620 - }
621 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon {
622 - background: #5b4e96;
623 - border-color: #5b4e96;
624 - }
625 - .wpbot-checkbox-card .check-icon svg {
626 - width: 14px;
627 - height: 14px;
628 - stroke: #e2e8f0;
629 - stroke-width: 3;
630 - stroke-linecap: round;
631 - stroke-linejoin: round;
632 - fill: none;
633 - transition: stroke 0.2s ease;
634 - }
635 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon svg {
636 - stroke: white;
637 - }
638 - .wpbot-checkbox-card .icon-wrapper {
639 - width: 48px;
640 - height: 48px;
641 - border-radius: 12px;
642 - background: #ffffff;
643 - border: 1px solid #e2e8f0;
644 - display: flex;
645 - align-items: center;
646 - justify-content: center;
647 - margin-bottom: 16px;
648 - color: #64748b;
649 - }
650 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .icon-wrapper {
651 - border-color: #e0e7ff;
652 - background: #f0fdf4;
653 - color: #5b4e96;
654 - }
655 - .wpbot-checkbox-card h4 {
656 - margin: 0 0 8px 0 !important;
657 - font-size: 16px !important;
658 - font-weight: 600 !important;
659 - color: #1e293b !important;
660 - line-height: 1.4 !important;
661 - }
662 - .wpbot-checkbox-card p {
663 - margin: 0 !important;
664 - font-size: 14px !important;
665 - color: #64748b !important;
666 - line-height: 1.5 !important;
667 - }
668 - .wpbot-cards-grid-divider {
669 - height: 1px;
670 - width: 100%;
671 - background: #eee;
672 - }
673 - </style>
563 + </div>
674 564
675 565 <div class="row">
676 566 <div class="col-xs-12">
677 -
678 - <div class="wpbot-cards-grid-divider"></div>
679 -
680 - <div class="wpbot-cards-grid">
681 - <label class="wpbot-checkbox-card">
682 - <input value="1" id="enable_asking_for_email" type="checkbox" name="enable_asking_for_email" <?php echo (get_option('enable_asking_for_email') == 1 ? esc_attr('checked' ): ''); ?>>
683 - <div class="card-body">
684 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
685 - <div class="icon-wrapper"><i class="dashicons dashicons-email" style="font-size:24px;width:24px;height:24px;"></i></div>
686 - <h4><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></h4>
687 - <p><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></p>
688 - </div>
689 - </label>
567 + <div class="cxsc-settings-blocks">
568 + <div class="form-group">
569 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </h4>
570 + <div class="cxsc-settings-blocks">
571 + <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox"
572 + name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
573 + <label for="skip_wp_greetings_donot_show_menu"><?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </label>
574 + </div>
690 575 </div>
691 - <div class="wpbot-cards-grid-divider"></div>
692 - <div class="wpbot-cards-grid">
693 - <label class="wpbot-checkbox-card">
694 - <input value="1" id="skip_wp_greetings" type="checkbox" name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
695 - <div class="card-body">
696 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
697 - <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div>
698 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Show Start Menu", 'chatbot'); ?></h4>
699 - <p><?php echo esc_html__("Skip asking for name, Email and directly show the Start Menu.", 'chatbot'); ?></p>
700 - </div>
701 - </label>
702 - <label class="wpbot-checkbox-card">
703 - <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox" name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
704 - <div class="card-body">
705 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
706 - <div class="icon-wrapper"><i class="dashicons dashicons-hidden" style="font-size:24px;width:24px;height:24px;"></i></div>
707 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Disable Start Menu", 'chatbot'); ?></h4>
708 - <p><?php echo esc_html__("Skip asking for name, Email and disable the Start Menu.", 'chatbot'); ?></p>
709 - </div>
710 - </label>
711 - <label class="wpbot-checkbox-card">
712 - <input value="1" id="show_menu_after_greetings" type="checkbox" name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
713 - <div class="card-body">
714 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
715 - <div class="icon-wrapper"><i class="dashicons dashicons-menu-alt" style="font-size:24px;width:24px;height:24px;"></i></div>
716 - <h4><?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?></h4>
717 - <p><?php esc_html_e('Show Start Menu immediately after greetings.', 'chatbot'); ?></p>
718 - </div>
719 - </label>
576 + </div>
577 + </div>
578 + </div>
579 + <div class="row">
580 + <div class="col-xs-12">
581 + <div class="form-group">
582 + <h4 class="qc-opt-title">
583 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
584 + </h4>
585 + <div class="cxsc-settings-blocks">
586 + <input value="1" id="show_menu_after_greetings" type="checkbox"
587 + name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
588 + <label for="show_menu_after_greetings">
589 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
590 + </label>
720 591 </div>
721 - <div class="wpbot-cards-grid-divider"></div>
722 - <div class="wpbot-cards-grid">
723 - <label class="wpbot-checkbox-card">
724 - <input value="1" id="disable_back_to_start_menu" type="checkbox" name="disable_back_to_start_menu" <?php echo (get_option('disable_back_to_start_menu') == 1 ? esc_attr('checked' ): ''); ?>>
725 - <div class="card-body">
726 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
727 - <div class="icon-wrapper"><i class="dashicons dashicons-undo" style="font-size:24px;width:24px;height:24px;"></i></div>
728 - <h4><?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?></h4>
729 - <p><?php esc_html_e('Remove the option to go back to the Start Menu.', 'chatbot'); ?></p>
730 - </div>
731 - </label>
592 + </div>
732 593 </div>
733 - <div class="wpbot-cards-grid-divider"></div>
734 - <div class="wpbot-cards-grid">
735 -
736 -
737 - <label class="wpbot-checkbox-card">
738 - <input value="1" id="enable_wp_chatbot_rtl" type="checkbox" name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
739 - <div class="card-body">
740 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
741 - <div class="icon-wrapper"><i class="dashicons dashicons-editor-rtl" style="font-size:24px;width:24px;height:24px;"></i></div>
742 - <h4><?php esc_html_e('Enable RTL', 'chatbot'); ?></h4>
743 - <p><?php esc_html_e('Enable Right to Left language support for Chat.', 'chatbot'); ?></p>
744 - </div>
745 - </label>
746 -
747 -
748 - <label class="wpbot-checkbox-card">
749 - <input value="1" id="wpbot_enable_on_search" type="checkbox" name="wpbot_enable_on_search" <?php echo (get_option('wpbot_enable_on_search') == 1 ? esc_attr('checked') : ''); ?>>
750 - <div class="card-body">
751 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
752 - <div class="icon-wrapper"><i class="dashicons dashicons-search" style="font-size:24px;width:24px;height:24px;"></i></div>
753 - <h4><?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?></h4>
754 - <p><?php esc_html_e('Enable Chatbot on WordPress search pages.', 'chatbot'); ?></p>
755 - </div>
756 - </label>
757 -
758 - <label class="wpbot-checkbox-card">
759 - <input value="1" id="open_links_new_window" type="checkbox" name="open_links_new_window" <?php echo (get_option('open_links_new_window') == 1 ? esc_attr('checked'): ''); ?>>
760 - <div class="card-body">
761 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
762 - <div class="icon-wrapper"><i class="dashicons dashicons-external" style="font-size:24px;width:24px;height:24px;"></i></div>
763 - <h4><?php esc_html_e('Links in New Window', 'chatbot'); ?></h4>
764 - <p><?php esc_html_e('Open all Chatbot links in a new browser window.', 'chatbot'); ?></p>
765 - </div>
766 - </label>
767 - </div>
768 - <div class="wpbot-cards-grid-divider"></div>
769 - <div class="wpbot-cards-grid">
770 - <label class="wpbot-checkbox-card">
771 - <input value="1" id="disable_floating_button" type="checkbox" name="disable_floating_button" <?php echo (get_option('disable_floating_button') == 1 ? esc_attr('checked' ): ''); ?>>
772 - <div class="card-body">
773 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
774 - <div class="icon-wrapper"><i class="dashicons dashicons-dismiss" style="font-size:24px;width:24px;height:24px;"></i></div>
775 - <h4><?php esc_html_e('Disable Floating Button', 'chatbot'); ?></h4>
776 - <p><?php esc_html_e('Hide the chatbot floating icon from your website.', 'chatbot'); ?></p>
777 - </div>
778 - </label>
779 - <label class="wpbot-checkbox-card">
780 - <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox" name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
781 - <div class="card-body">
782 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
783 - <div class="icon-wrapper"><i class="dashicons dashicons-smartphone" style="font-size:24px;width:24px;height:24px;"></i></div>
784 - <h4><?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?></h4>
785 - <p><?php esc_html_e('Disable WPBot from loading on mobile devices.', 'chatbot'); ?></p>
786 - </div>
787 - </label>
594 + </div>
595 + <div class="row">
596 + <div class="col-xs-12">
597 + <div class="form-group">
598 + <h4 class="qc-opt-title">
599 + <?php esc_html_e('Disable WPBot', 'chatbot'); ?>
600 + </h4>
601 + <div class="cxsc-settings-blocks">
602 + <input value="1" id="disable_wp_chatbot" type="checkbox"
603 + name="disable_wp_chatbot" <?php echo (get_option('disable_wp_chatbot') == 1 ? esc_attr('checked'): ''); ?>>
604 + <label for="disable_wp_chatbot">
605 + <?php esc_html_e('Disable WPBot to Load', 'chatbot'); ?>
606 + </label>
788 607 </div>
789 -
790 -
791 608 </div>
792 609 </div>
610 + </div>
611 + <div class="row">
612 + <div class="col-xs-12">
613 + <div class="form-group">
614 + <h4 class="qc-opt-title">
615 + <?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?>
616 + </h4>
617 + <div class="cxsc-settings-blocks">
618 + <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox"
619 + name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
620 + <label for="disable_wp_chatbot_on_mobile">
621 + <?php esc_html_e('Disable WpBot to Load on Mobile Device', 'chatbot'); ?>
622 + </label>
623 + </div>
624 + </div>
625 + </div>
626 + </div>
627 + <div class="row">
628 + <div class="col-xs-12">
629 + <div class="form-group">
630 + <h4 class="qc-opt-title">
631 + <?php esc_html_e('Enable RTL', 'chatbot'); ?>
632 + </h4>
633 + <div class="cxsc-settings-blocks">
634 + <input value="1" id="enable_wp_chatbot_rtl" type="checkbox"
635 + name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
636 + <label for="enable_wp_chatbot_rtl">
637 + <?php esc_html_e('Enable RTL (Right to Left language) Support for Chat', 'chatbot'); ?>
638 + </label>
639 + </div>
640 + </div>
641 + </div>
642 +</div>
643 + <div class="row">
644 + <div class="col-xs-12">
645 + <div class="form-group">
646 + <h4 class="qc-opt-title">
647 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
648 + </h4>
649 + <div class="cxsc-settings-blocks">
650 + <input value="1" id="open_links_new_window" type="checkbox" name="open_links_new_window" <?php echo (get_option('open_links_new_window') == 1 ? esc_attr('checked'): ''); ?>>
651 + <label for="open_links_new_window">
652 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
653 + </label>
654 + </div>
655 + </div>
656 + </div>
657 +</div>
793 658
794 659 <div class="row">
795 660 <div class="col-xs-12">
796 661 <div class="form-group">
@@ -827,17 +692,17 @@
827 692 }
828 693 ?>
829 694 <input type="number" class="qc-opt-dcs-font"
830 695 name="wp_chatbot_position_x"
831 - value="<?php echo esc_attr($qcld_wb_chatbot_position_x);?>"
832 - placeholder="<?php esc_attr_e('From Right In ', 'chatbot'); ?>">
696 + value="<?php echo esc_html($qcld_wb_chatbot_position_x);?>"
697 + placeholder="<?php esc_html_e('From Right In ', 'chatbot'); ?>">
833 698 <span class="qc-opt-dcs-font">
834 699 <?php esc_html_e('From Right In px', 'chatbot'); ?>
835 700 </span>
836 701 <input type="number" class="qc-opt-dcs-font"
837 702 name="wp_chatbot_position_y"
838 - value="<?php echo esc_attr($qcld_wb_chatbot_position_y); ?>"
839 - placeholder="<?php esc_attr_e('From Bottom In Px', 'chatbot'); ?> ">
703 + value="<?php echo esc_html($qcld_wb_chatbot_position_y); ?>"
704 + placeholder="<?php esc_html_e('From Bottom In Px', 'chatbot'); ?> ">
840 705 <span class="qc-opt-dcs-font">
841 706 <?php esc_html_e('From Bottom In px', 'chatbot'); ?>
842 707 </span> </div>
843 708 </div>
@@ -923,14 +788,14 @@
923 788 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
924 789 ?>
925 790 <li>
926 791 <input id="<?php echo esc_attr('wp_chatbot_show_page_'. $wp_chatbot_page->ID ); ?>"
927 - type="checkbox"
928 - name="wp_chatbot_show_pages_list[]"
929 - value="<?php echo esc_attr($wp_chatbot_page->ID); ?>" <?php if (!empty($wp_chatbot_select_pages) && in_array($wp_chatbot_page->ID, $wp_chatbot_select_pages) == true) {
930 - echo esc_attr('checked');
931 - } ?> >
932 - <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label>
792 + type="checkbox"
793 + name="wp_chatbot_show_pages_list[]"
794 + value="<?php echo esc_attr($wp_chatbot_page->ID); ?>" <?php if (!empty($wp_chatbot_select_pages) && in_array($wp_chatbot_page->ID, $wp_chatbot_select_pages) == true) {
795 + echo esc_attr('checked');
796 + } ?> >
797 + <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label>
933 798 </li>
934 799 <?php } ?>
935 800 </ul>
936 801 </div>
@@ -988,57 +853,57 @@
988 853 <section id="section-flip-5">
989 854 <div class="wp-chatbot-language-center-summmery"> </div>
990 855 <div class="row">
991 856 <div class="col-md-12">
992 - <h4 class="qc-opt-title"><b><?php echo esc_html__( 'Change Language', 'chatbot'); ?></b></h4>
857 + <h4 class="qc-opt-title"><b><?php echo esc_html__( 'Change Language', 'wpchatbot' ); ?></b></h4>
993 858 <!-- Language Selection Dropdown -->
994 859 <div class="cxsc-settings-blocks mb-6">
995 860 <div class="form-group">
996 861 <label for="qcld_language_center_select" class="block text-sm font-medium text-gray-700 mb-2 qc-opt-language-title">
997 - <?php echo esc_html__( 'Select a Language:', 'chatbot'); ?>
862 + <?php echo esc_html__( 'Select a Language:', 'wpchatbot' ); ?>
998 863 </label>
999 864 <select id="qcld_language_center_select" class="form-select" onchange="qcld_wpbot_languageChange_from_center(this.value)">
1000 - <option value=""> <?php echo esc_html__( '-- Choose a language --', 'chatbot'); ?></option>
1001 - <option value="arabic" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'arabic' ? 'selected' : '' ?>><?php echo esc_html__( 'Arabic (ar)', 'chatbot'); ?></option>
1002 - <option value="bulgarian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'bulgarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Bulgarian (bg)', 'chatbot'); ?></option>
1003 - <option value="chinese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese (zh)', 'chatbot'); ?></option>
1004 - <option value="chinese_mandarin" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese_mandarin' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese Mandarin (cmn)', 'chatbot'); ?></option>
1005 - <option value="danish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'danish' ? 'selected' : '' ?>><?php echo esc_html__( 'Danish (da)', 'chatbot'); ?></option>
1006 - <option value="dutch" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'dutch' ? 'selected' : '' ?>><?php echo esc_html__( 'Dutch (nl)', 'chatbot'); ?></option>
1007 - <option value="english" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'english' ? 'selected' : '' ?>><?php echo esc_html__( 'English (en)', 'chatbot'); ?></option>
1008 - <option value="estonian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'estonian' ? 'selected' : '' ?>><?php echo esc_html__( 'Estonian (et)', 'chatbot'); ?></option>
1009 - <option value="filipino" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'filipino' ? 'selected' : '' ?>><?php echo esc_html__( 'Filipino (fil)', 'chatbot'); ?></option>
1010 - <option value="french" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'french' ? 'selected' : '' ?>><?php echo esc_html__( 'French (fr)', 'chatbot'); ?></option>
1011 - <option value="german" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'german' ? 'selected' : '' ?>><?php echo esc_html__( 'German (de)', 'chatbot'); ?></option>
1012 - <option value="greek" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'greek' ? 'selected' : '' ?>><?php echo esc_html__( 'Greek (el)', 'chatbot'); ?></option>
1013 - <option value="hebrew" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hebrew' ? 'selected' : '' ?>><?php echo esc_html__( 'Hebrew (he)', 'chatbot'); ?></option>
1014 - <option value="hindi" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hindi' ? 'selected' : '' ?>><?php echo esc_html__( 'Hindi (hi)', 'chatbot'); ?></option>
1015 - <option value='hungarian' <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hungarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Hungarian (hu)', 'chatbot'); ?></option>
1016 - <option value="indonesian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'indonesian' ? 'selected' : '' ?>><?php echo esc_html__( 'Indonesian (id)', 'chatbot'); ?></option>
1017 - <option value="italian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'italian' ? 'selected' : '' ?>><?php echo esc_html__( 'Italian (it)', 'chatbot'); ?></option>
1018 - <option value="japanese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'japanese' ? 'selected' : '' ?>><?php echo esc_html__( 'Japanese (ja)', 'chatbot'); ?></option>
1019 - <option value="korean" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'korean' ? 'selected' : '' ?>><?php echo esc_html__( 'Korean (ko)', 'chatbot'); ?></option>
1020 - <option value="lithuanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'lithuanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Lithuanian (lt)', 'chatbot'); ?></option>
1021 - <option value="malay" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'malay' ? 'selected' : '' ?>><?php echo esc_html__( 'Malay (ms)', 'chatbot'); ?></option>
1022 - <option value="norwegian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'norwegian' ? 'selected' : '' ?>><?php echo esc_html__( 'Norwegian (no)', 'chatbot'); ?></option>
1023 - <option value="persian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'persian' ? 'selected' : '' ?>><?php echo esc_html__( 'Persian (fa)', 'chatbot'); ?></option>
1024 - <option value="polish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'polish' ? 'selected' : '' ?>><?php echo esc_html__( 'Polish (pl)', 'chatbot'); ?></option>
1025 - <option value="portuguese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'portuguese' ? 'selected' : '' ?>><?php echo esc_html__( 'Portuguese (pt)', 'chatbot'); ?></option>
1026 - <option value="romanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'romanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Romanian (ro)', 'chatbot'); ?></option>
1027 - <option value="russian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'russian' ? 'selected' : '' ?>><?php echo esc_html__( 'Russian (ru)', 'chatbot'); ?></option>
1028 - <option value="sinhala" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'sinhala' ? 'selected' : '' ?>><?php echo esc_html__( 'Sinhala (si)', 'chatbot'); ?></option>
1029 - <option value="spanish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'spanish' ? 'selected' : '' ?>><?php echo esc_html__( 'Spanish (es)', 'chatbot'); ?></option>
1030 - <option value="swedish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'swedish' ? 'selected' : '' ?>><?php echo esc_html__( 'Swedish (sv)', 'chatbot'); ?></option>
1031 - <option value="thai" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'thai' ? 'selected' : '' ?>><?php echo esc_html__( 'Thai (th)', 'chatbot'); ?></option>
1032 - <option value="turkish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'turkish' ? 'selected' : '' ?>><?php echo esc_html__( 'Turkish (tr)', 'chatbot'); ?></option>
1033 - <option value="ukrainian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'ukrainian' ? 'selected' : '' ?>><?php echo esc_html__( 'Ukrainian (uk)', 'chatbot'); ?></option>
1034 - <option value="vietnamese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'vietnamese' ? 'selected' : '' ?>><?php echo esc_html__( 'Vietnamese (vi)', 'chatbot'); ?></option>
1035 - <option value="not_mine" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'not_mine' ? 'selected' : '' ?>><?php echo esc_html__( 'My language is not here', 'chatbot'); ?></option>
865 + <option value=""> <?php echo esc_html__( '-- Choose a language --', 'wpchatbot' ); ?></option>
866 + <option value="arabic" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'arabic' ? 'selected' : '' ?>><?php echo esc_html__( 'Arabic (ar)', 'wpchatbot' ); ?></option>
867 + <option value="bulgarian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'bulgarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Bulgarian (bg)', 'wpchatbot' ); ?></option>
868 + <option value="chinese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese (zh)', 'wpchatbot' ); ?></option>
869 + <option value="chinese_mandarin" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese_mandarin' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese Mandarin (cmn)', 'wpchatbot' ); ?></option>
870 + <option value="danish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'danish' ? 'selected' : '' ?>><?php echo esc_html__( 'Danish (da)', 'wpchatbot' ); ?></option>
871 + <option value="dutch" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'dutch' ? 'selected' : '' ?>><?php echo esc_html__( 'Dutch (nl)', 'wpchatbot' ); ?></option>
872 + <option value="english" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'english' ? 'selected' : '' ?>><?php echo esc_html__( 'English (en)', 'wpchatbot' ); ?></option>
873 + <option value="estonian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'estonian' ? 'selected' : '' ?>><?php echo esc_html__( 'Estonian (et)', 'wpchatbot' ); ?></option>
874 + <option value="filipino" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'filipino' ? 'selected' : '' ?>><?php echo esc_html__( 'Filipino (fil)', 'wpchatbot' ); ?></option>
875 + <option value="french" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'french' ? 'selected' : '' ?>><?php echo esc_html__( 'French (fr)', 'wpchatbot' ); ?></option>
876 + <option value="german" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'german' ? 'selected' : '' ?>><?php echo esc_html__( 'German (de)', 'wpchatbot' ); ?></option>
877 + <option value="greek" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'greek' ? 'selected' : '' ?>><?php echo esc_html__( 'Greek (el)', 'wpchatbot' ); ?></option>
878 + <option value="hebrew" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hebrew' ? 'selected' : '' ?>><?php echo esc_html__( 'Hebrew (he)', 'wpchatbot' ); ?></option>
879 + <option value="hindi" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hindi' ? 'selected' : '' ?>><?php echo esc_html__( 'Hindi (hi)', 'wpchatbot' ); ?></option>
880 + <option value='hungarian' <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hungarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Hungarian (hu)', 'wpchatbot' ); ?></option>
881 + <option value="indonesian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'indonesian' ? 'selected' : '' ?>><?php echo esc_html__( 'Indonesian (id)', 'wpchatbot' ); ?></option>
882 + <option value="italian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'italian' ? 'selected' : '' ?>><?php echo esc_html__( 'Italian (it)', 'wpchatbot' ); ?></option>
883 + <option value="japanese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'japanese' ? 'selected' : '' ?>><?php echo esc_html__( 'Japanese (ja)', 'wpchatbot' ); ?></option>
884 + <option value="korean" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'korean' ? 'selected' : '' ?>><?php echo esc_html__( 'Korean (ko)', 'wpchatbot' ); ?></option>
885 + <option value="lithuanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'lithuanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Lithuanian (lt)', 'wpchatbot' ); ?></option>
886 + <option value="malay" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'malay' ? 'selected' : '' ?>><?php echo esc_html__( 'Malay (ms)', 'wpchatbot' ); ?></option>
887 + <option value="norwegian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'norwegian' ? 'selected' : '' ?>><?php echo esc_html__( 'Norwegian (no)', 'wpchatbot' ); ?></option>
888 + <option value="persian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'persian' ? 'selected' : '' ?>><?php echo esc_html__( 'Persian (fa)', 'wpchatbot' ); ?></option>
889 + <option value="polish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'polish' ? 'selected' : '' ?>><?php echo esc_html__( 'Polish (pl)', 'wpchatbot' ); ?></option>
890 + <option value="portuguese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'portuguese' ? 'selected' : '' ?>><?php echo esc_html__( 'Portuguese (pt)', 'wpchatbot' ); ?></option>
891 + <option value="romanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'romanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Romanian (ro)', 'wpchatbot' ); ?></option>
892 + <option value="russian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'russian' ? 'selected' : '' ?>><?php echo esc_html__( 'Russian (ru)', 'wpchatbot' ); ?></option>
893 + <option value="sinhala" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'sinhala' ? 'selected' : '' ?>><?php echo esc_html__( 'Sinhala (si)', 'wpchatbot' ); ?></option>
894 + <option value="spanish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'spanish' ? 'selected' : '' ?>><?php echo esc_html__( 'Spanish (es)', 'wpchatbot' ); ?></option>
895 + <option value="swedish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'swedish' ? 'selected' : '' ?>><?php echo esc_html__( 'Swedish (sv)', 'wpchatbot' ); ?></option>
896 + <option value="thai" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'thai' ? 'selected' : '' ?>><?php echo esc_html__( 'Thai (th)', 'wpchatbot' ); ?></option>
897 + <option value="turkish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'turkish' ? 'selected' : '' ?>><?php echo esc_html__( 'Turkish (tr)', 'wpchatbot' ); ?></option>
898 + <option value="ukrainian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'ukrainian' ? 'selected' : '' ?>><?php echo esc_html__( 'Ukrainian (uk)', 'wpchatbot' ); ?></option>
899 + <option value="vietnamese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'vietnamese' ? 'selected' : '' ?>><?php echo esc_html__( 'Vietnamese (vi)', 'wpchatbot' ); ?></option>
900 + <option value="not_mine" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'not_mine' ? 'selected' : '' ?>><?php echo esc_html__( 'My language is not here', 'wpchatbot' ); ?></option>
1036 901 </select>
1037 902 <!-- Results Display Area -->
1038 903 <div id="results-container" class="mt-8 p-4 flex items-center justify-center text-gray-600">
1039 904 <p id="initial-message">
1040 - <?php echo esc_html__( 'Select your language to auto translate the texts used by the ChatBot. You can fine tune and update them manually from below.', 'chatbot'); ?> <b><?php echo esc_html__( 'Remember to Save the Settings.', 'chatbot'); ?></b>
905 + <?php echo esc_html__( 'Select your language to auto translate the texts used by the ChatBot. You can fine tune and update them manually from below.', 'wpchatbot' ); ?> <b><?php echo esc_html__( 'Remember to Save the Settings.', 'wpchatbot' ); ?></b>
1041 906 </p>
1042 907 <p id="waring-message"></p>
1043 908 </div>
1044 909 </div>
@@ -1070,9 +935,9 @@
1070 935 <?php esc_html_e('Your Company or Website Name', 'chatbot'); ?>
1071 936 </h4>
1072 937 <input type="text" class="form-control qc-opt-dcs-font"
1073 938 name="qlcd_wp_chatbot_host"
1074 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?>">
939 + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?> ">
1075 940 </div>
1076 941 <div class="form-group">
1077 942 <h4 class="qc-opt-title">
1078 943 <?php esc_html_e('Agent name', 'chatbot'); ?>
@@ -1078,9 +943,9 @@
1078 943 <?php esc_html_e('Agent name', 'chatbot'); ?>
1079 944 </h4>
1080 945 <input type="text" class="form-control qc-opt-dcs-font"
1081 946 name="qlcd_wp_chatbot_agent"
1082 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie')); ?>">
947 + value="<?php echo (get_option('qlcd_wp_chatbot_agent') != '' ? esc_attr(get_option('qlcd_wp_chatbot_agent')) : 'Carrie'); ?>">
1083 948 </div>
1084 949 <div class="form-group">
1085 950 <h4 class="qc-opt-title">
1086 951 <?php esc_html_e('User demo name', 'chatbot'); ?>
@@ -1086,9 +951,9 @@
1086 951 <?php esc_html_e('User demo name', 'chatbot'); ?>
1087 952 </h4>
1088 953 <input type="text" class="form-control qc-opt-dcs-font"
1089 954 name="qlcd_wp_chatbot_shopper_demo_name"
1090 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?>">
955 + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?> ">
1091 956 </div>
1092 957 <div class="form-group">
1093 958 <h4 class="qc-opt-title">
1094 959 <?php esc_html_e('YES', 'chatbot'); ?>
@@ -1512,13 +1377,13 @@
1512 1377 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dislike_text') != '' ? get_option('qlcd_wp_chatbot_dislike_text') : 'Dislike')); ?>">
1513 1378 </div>
1514 1379
1515 1380 <div class="form-group">
1516 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </h4>
1381 + <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Reporting Message', 'wpchatbot' ); ?> </h4>
1517 1382 <div class="cxsc-settings-blocks">
1518 1383 <input value="1" id="enable_chat_report_menu" type="checkbox"
1519 1384 name="enable_chat_report_menu" <?php echo( get_option( 'enable_chat_report_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1520 - <label for="enable_chat_report_menu"><?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </label>
1385 + <label for="enable_chat_report_menu"><?php echo esc_html__( 'Enable Reporting Message', 'wpchatbot' ); ?> </label>
1521 1386 </div>
1522 1387 </div>
1523 1388 <div class="form-group">
1524 1389 <h4 class="qc-opt-title">
@@ -1528,13 +1393,13 @@
1528 1393 name="qlcd_wp_chatbot_report_text"
1529 1394 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_report_text') != '' ? get_option('qlcd_wp_chatbot_report_text') : 'Report')); ?>">
1530 1395 </div>
1531 1396 <div class="form-group">
1532 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </h4>
1397 + <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Share', 'wpchatbot' ); ?> </h4>
1533 1398 <div class="cxsc-settings-blocks">
1534 1399 <input value="1" id="enable_chat_share_menu" type="checkbox"
1535 1400 name="enable_chat_share_menu" <?php echo( get_option( 'enable_chat_share_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1536 - <label for="enable_chat_share_menu"><?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </label>
1401 + <label for="enable_chat_share_menu"><?php echo esc_html__( 'Enable Chat Share', 'wpchatbot' ); ?> </label>
1537 1402 </div>
1538 1403 </div>
1539 1404 <div class="form-group">
1540 1405 <h4 class="qc-opt-title">
@@ -1818,29 +1683,8 @@
1818 1683 </div>
1819 1684 </div>
1820 1685 <div id="top-section">
1821 1686 <div class="form-group">
1822 - <!-- Avatar Location Section -->
1823 - <div class="avatar-location-wrapper">
1824 - <h4 class="qc-opt-title"><?php esc_html_e('Avatar Location', 'chatbot'); ?></h4>
1825 - <?php $avatar_location = get_option('qcld_chatbot_avatar_location'); ?>
1826 - <input type="hidden" id="qcld-avatar-location" name="qcld_chatbot_avatar_location" value="<?php echo esc_attr($avatar_location); ?>">
1827 - <div class="avatar-location-cards">
1828 - <div class="avatar-location-card <?php echo ($avatar_location === 'inside') ? 'active' : ''; ?>" data-location="inside">
1829 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
1830 - <span><?php esc_html_e('Inside', 'chatbot'); ?></span>
1831 - </div>
1832 - <div class="avatar-location-card <?php echo ($avatar_location === 'side') ? 'active' : ''; ?>" data-location="side">
1833 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><line x1="9" y1="3" x2="9" y2="21"/></svg>
1834 - <span><?php esc_html_e('Side', 'chatbot'); ?></span>
1835 - </div>
1836 - <div class="avatar-location-card <?php echo ($avatar_location === 'hidden') ? 'active' : ''; ?>" data-location="hidden">
1837 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/></svg>
1838 - <span><?php esc_html_e('Hidden', 'chatbot'); ?></span>
1839 - </div>
1840 - </div>
1841 - </div>
1842 - <!-- End Avatar Location Section -->
1843 1687 <div class="row">
1844 1688 <div class="col-sm-12">
1845 1689 <h4 class="qc-opt-title">
1846 1690 <?php esc_html_e('WPBot Themes', 'chatbot'); ?>
@@ -1897,9 +1741,9 @@
1897 1741 <div class="cxsc-settings-blocks">
1898 1742 <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
1899 1743 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>>
1900 1744 <label for="enable_wp_chatbot_custom_color">
1901 - <?php esc_html_e('Enable Custom Styles ', 'chatbot'); ?>
1745 + <?php esc_html_e('Enable Custom Styles ', 'wpbot'); ?>
1902 1746 </label>
1903 1747 </div>
1904 1748 </div>
1905 1749 </div>
@@ -2193,9 +2037,9 @@
2193 2037 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
2194 2038 ?>
2195 2039 <div class="row"> <span class="pull-right"> </span>
2196 2040 <div class="col-xs-12">
2197 - <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-remove"></span></button>
2041 + <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-clock"></span></button>
2198 2042
2199 2043 <div class="cxsc-settings-blocks cxsc-settings-faq-blocks">
2200 2044 <p>
2201 2045 <b> <?php esc_html_e('FAQ query ', 'chatbot'); ?> </b>
@@ -2231,13 +2075,10 @@
2231 2075 } else {
2232 2076 ?>
2233 2077 <div class="row"> <span class="pull-right"> </span>
2234 2078 <div class="col-xs-12">
2235 - <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-remove"></span> </button>
2079 + <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-clock"></span> </button>
2236 2080
2237 -
2238 -
2239 -
2240 2081 <div class="cxsc-settings-blocks">
2241 2082 <p>
2242 2083 <b> <?php esc_html_e('FAQ Query', 'chatbot'); ?></b>
2243 2084 </p>
@@ -2284,9 +2125,9 @@
2284 2125 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2285 2126 <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
2286 2127 </div> -->
2287 2128 <?php
2288 - wp_enqueue_style('qcld-wp-chatbot-common-style', plugins_url(basename(plugin_dir_path(__FILE__)) . '/css/common-style.css', basename(__FILE__)), '', esc_attr(QCLD_wpCHATBOT_VERSION), 'screen');
2129 + wp_enqueue_style('qcld-wp-chatbot-common-style', plugins_url(basename(plugin_dir_path(__FILE__)) . '/css/common-style.css', basename(__FILE__)), '', QCLD_wpCHATBOT_VERSION, 'screen');
2289 2130 ?>
2290 2131 <div class="top-section">
2291 2132 <div class="notification-block-inner">
2292 2133 <div class="row">
@@ -2298,34 +2139,26 @@
2298 2139 <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_attr('Predefined Intents'); ?></h3>
2299 2140 <div class="row">
2300 2141 <div class="col-xs-12">
2301 2142 <div class="form-group">
2302 - <h4 class="qc-opt-title" style="margin-bottom: 20px;">
2143 + <h4 class="qc-opt-title">
2303 2144 <?php esc_html_e('Site Search', 'chatbot'); ?>
2304 2145 </h4>
2305 - <div class="wpbot-cards-grid" style="margin-top: 0;">
2306 - <label class="wpbot-checkbox-card">
2307 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox"
2308 - name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
2309 - <div class="card-body">
2310 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2311 - <div class="icon-wrapper"><i class="dashicons dashicons-search" style="font-size:24px;width:24px;height:24px;"></i></div>
2312 - <h4><?php esc_html_e('Disable site search feature and button on Start Menu', 'chatbot'); ?></h4>
2313 - <p><?php esc_html_e('Disable site search feature and button on Start Menu.', 'chatbot'); ?></p>
2314 - </div>
2146 + <div class="cxsc-settings-blocks">
2147 + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox"
2148 + name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
2149 + <label for="disable_wp_chatbot_site_search">
2150 + <?php esc_html_e('Disable site search feature and button on Start Menu', 'chatbot'); ?>
2315 2151 </label>
2316 - <label class="wpbot-checkbox-card">
2317 - <input value="<?php echo esc_attr('1' ); ?>" id="enable_wp_chatbot_post_content" type="checkbox"
2318 - name="enable_wp_chatbot_post_content" <?php echo(get_option('enable_wp_chatbot_post_content') == 1 ? esc_attr('checked' ): ''); ?>>
2319 - <div class="card-body">
2320 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2321 - <div class="icon-wrapper"><i class="dashicons dashicons-media-text" style="font-size:24px;width:24px;height:24px;"></i></div>
2322 - <h4><?php esc_html_e('Enable Searching Post Contents as well', 'chatbot'); ?></h4>
2323 - <p><?php esc_html_e('Enable searching within post contents as well.', 'chatbot'); ?></p>
2324 - </div>
2152 + </br><small><?php echo esc_html( '(You can disable searching post contents option below so it searches only the post Titles for most relevancy)'); ?></small></br>
2153 + </div>
2154 + <div class="cxsc-settings-blocks">
2155 + <input value="<?php echo esc_attr('1' ); ?>" id="enable_wp_chatbot_post_content" type="checkbox"
2156 + name="enable_wp_chatbot_post_content" <?php echo(get_option('enable_wp_chatbot_post_content') == 1 ? esc_attr('checked' ): ''); ?>>
2157 + <label for="enable_wp_chatbot_post_content">
2158 + <?php esc_html_e('Enable Searching Post Contents as well', 'chatbot'); ?>
2325 2159 </label>
2326 2160 </div>
2327 - <small style="display:block; margin-bottom: 15px; color: #64748b;"><?php echo esc_html( '(You can disable searching post contents option so it searches only the post Titles for most relevancy)'); ?></small>
2328 2161 </div>
2329 2162 </div>
2330 2163 </div>
2331 2164 <div class="form-group">
@@ -2341,18 +2174,13 @@
2341 2174 <div class="form-group">
2342 2175 <h4 class="qc-opt-title">
2343 2176 <?php esc_html_e('Call Me', 'chatbot'); ?>
2344 2177 </h4>
2345 - <div class="wpbot-cards-grid" style="margin-top: 15px;">
2346 - <label class="wpbot-checkbox-card">
2347 - <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox"
2348 - name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
2349 - <div class="card-body">
2350 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2351 - <div class="icon-wrapper"><i class="dashicons dashicons-phone" style="font-size:24px;width:24px;height:24px;"></i></div>
2352 - <h4><?php esc_html_e('Disable Call Me feature and button on Start Menu', 'chatbot'); ?></h4>
2353 - <p><?php esc_html_e('Disable Call Me feature and button on Start Menu.', 'chatbot'); ?></p>
2354 - </div>
2178 + <div class="cxsc-settings-blocks">
2179 + <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox"
2180 + name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
2181 + <label for="disable_wp_chatbot_call_gen">
2182 + <?php esc_html_e('Disable Call Me feature and button on Start Menu', 'chatbot'); ?>
2355 2183 </label>
2356 2184 </div>
2357 2185 </div>
2358 2186 </div>
@@ -2370,18 +2198,13 @@
2370 2198 <div class="form-group">
2371 2199 <h4 class="qc-opt-title">
2372 2200 <?php esc_html_e('Email', 'chatbot'); ?>
2373 2201 </h4>
2374 - <div class="wpbot-cards-grid" style="margin-top: 15px;">
2375 - <label class="wpbot-checkbox-card">
2376 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox"
2377 - name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>>
2378 - <div class="card-body">
2379 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2380 - <div class="icon-wrapper"><i class="dashicons dashicons-email" style="font-size:24px;width:24px;height:24px;"></i></div>
2381 - <h4><?php esc_html_e('Disable Email feature and button on Start Menu', 'chatbot'); ?></h4>
2382 - <p><?php esc_html_e('Disable Email feature and button on Start Menu.', 'chatbot'); ?></p>
2383 - </div>
2202 + <div class="cxsc-settings-blocks">
2203 + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox"
2204 + name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>>
2205 + <label for="disable_wp_chatbot_feedback">
2206 + <?php esc_html_e('Disable Email feature and button on Start Menu', 'chatbot'); ?>
2384 2207 </label>
2385 2208 </div>
2386 2209 </div>
2387 2210 </div>
@@ -2399,18 +2222,13 @@
2399 2222 <div class="form-group">
2400 2223 <h4 class="qc-opt-title">
2401 2224 <?php esc_html_e('FAQ', 'chatbot'); ?>
2402 2225 </h4>
2403 - <div class="wpbot-cards-grid" style="margin-top: 15px;">
2404 - <label class="wpbot-checkbox-card">
2405 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox"
2406 - name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
2407 - <div class="card-body">
2408 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2409 - <div class="icon-wrapper"><i class="dashicons dashicons-editor-help" style="font-size:24px;width:24px;height:24px;"></i></div>
2410 - <h4><?php esc_html_e('Disable FAQ feature and button on Start Menu', 'chatbot'); ?></h4>
2411 - <p><?php esc_html_e('Disable FAQ feature and button on Start Menu.', 'chatbot'); ?></p>
2412 - </div>
2226 + <div class="cxsc-settings-blocks">
2227 + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox"
2228 + name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
2229 + <label for="disable_wp_chatbot_faq">
2230 + <?php esc_html_e('Disable FAQ feature and button on Start Menu', 'chatbot'); ?>
2413 2231 </label>
2414 2232 </div>
2415 2233 </div>
2416 2234 </div>
@@ -2426,9 +2244,9 @@
2426 2244
2427 2245 </div>
2428 2246 </div>
2429 2247 </div>
2430 - <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div>
2248 + <div class="qcld-show-more-show-more"><i class="dashicons dashicons-plus-alt" aria-hidden="true"></i></div>
2431 2249 </div>
2432 2250 <div class="qc_menu_setup_area">
2433 2251 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'chatbot'); ?></h3>
2434 2252 <p style="color:red"><?php esc_html_e('Always open a new Incognito window (Ctrl+Shit+N in chrome) to test after making any change.', 'chatbot'); ?></p>
@@ -2443,18 +2261,14 @@
2443 2261 <?php
2444 2262 if(get_option('qc_wpbot_menu_order')!=''):
2445 2263 if( is_string( get_option('qc_wpbot_menu_order') ) ):
2446 2264 echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
2265 + else:
2447 2266 endif;
2448 - else:
2449 - $site_search_label = get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search';
2450 - $support_email_label = get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email.';
2451 - $support_phone_label = get_option('qlcd_wp_chatbot_support_phone') != '' ? get_option('qlcd_wp_chatbot_support_phone') : 'Leave your number. We will call you back!';
2452 - echo '<span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search">' . esc_attr($site_search_label) . '</span>';
2453 - echo '<span class="qcld-chatbot-suggest-email qc_draggable_item">' . esc_attr($support_email_label) . '</span>';
2454 - echo '<span class="qcld-chatbot-suggest-phone qc_draggable_item">' . esc_attr($support_phone_label) . '</span>';
2455 - endif;
2456 2267 ?>
2268 +
2269 +
2270 + <?php endif; ?>
2457 2271 </div>
2458 2272 </div>
2459 2273 <div class="qc_menu_list_area">
2460 2274 <h4><?php esc_html_e('Available Menu', 'chatbot'); ?></h4>
@@ -2498,9 +2312,9 @@
2498 2312 global $wpdb;
2499 2313
2500 2314 //To Do: Need to use prepared statement
2501 2315
2502 - $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, PluginCheck.Security.DirectDB.UnescapedDBParameter
2316 + $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); //DB Call OK, No Caching OK.
2503 2317 if(!empty($results)){
2504 2318 ?>
2505 2319 <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p>
2506 2320 <ul>
@@ -2618,17 +2432,17 @@
2618 2432 <?php
2619 2433
2620 2434 $placeholderPrivatekey = '{
2621 2435 "type": "service_account",
2622 - "project_id": "YOUR_PROJECT_ID",
2623 - "private_key_id": "YOUR_PRIVATE_KEY_ID",
2624 - "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----\n",
2625 - "client_email": "YOUR_CLIENT_EMAIL",
2626 - "client_id": "YOUR_CLIENT_ID",
2436 + "project_id": "PLACEYOUROWNID",
2437 + "private_key_id": "31e300128..........c48",
2438 + "private_key": "-----BEGIN PRIVATE KEY-----\nTHIS IS A DEMO PRIVATE KEY to SHOW HOW IT SHOULD LOOK. Replace with ACTUAL KEY.+OdT09MGEdAjlgSF2HMDA3fl8Ey4dmTxRfAN9No6G3Ugs3BrpZHfY\nSviWzS4JQ0GkCubcJc0DzJ8AqG6xX7E3SfKpdtKEn1eYV7sfQL3C2lm2lTj6nWdt\nxrkhJVHn61kxfPAWChnkdPa5EbMNFnV5mN5rhwaOxR+tEjW9nWBjVFG0NMnOMWF4\nsu6QJVjQMtI99jPBCid1r4XV/sPABSXh8dscWdMinGhZfuCjF4sOGHUUaw+VDGb6\nZpPOh65nw5fsdOHETsb4BN/LW72Khux+870Ig4jkuLIN3PnSF9QfwO8U2qTG5sZK\nn5nxhT9zAgMBAAECggEAX1NSWRGnrcVsu6n1jn9xUpzvxyy+CJe1Z1DvHo1tmHNS\n0Q8OI/Y........THIS IS A DEMO PRIVATE KEY to SHOW HOW IT SHOULD LOOK. Replace with your own key......................................paqQKBgQCJ\nvNCZIHpLGVqwiw4SVYgZW2i+VsZ78sOw0SuuhjZNmOlGjpalbQCjKs9l5dSz5t5D\nVleJVyriFaXyvVty/iF6orqTgv0EhcLO2RI9KSrTpbOXcIkgeunAhRM3oloxSndt\n98H3f1xRvTLIm1enERLkOyGHmm7nWFV0BQWD+CxeCwKBgDtBGn+uBgNgZjSaLnkJ\noemAoIBN6aD4+QWduPldRgTilH6ABQ26SL+t4sa9jbAtkMuD/hWOMLBqmz98tfCC\ndy6cPghea+b0S7lj/wmUaDA1Vmz7luCLm+lO+fe3K6WIlEhAP/9MXVH90Sj6CllF\nAn4stWzIKHrRKA3lIvgJv+9W\n-----END PRIVATE KEY-----\n",
2439 + "client_email": "dialogflow-evysjn@wpbotpro.iam.gserviceaccount.com",
2440 + "client_id": "1026.....032997",
2627 2441 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
2628 2442 "token_uri": "https://oauth2.googleapis.com/token",
2629 2443 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
2630 - "client_x509_cert_url": "YOUR_CLIENT_X509_CERT_URL"
2444 + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dialogflow-evysjn%40wpbotpro.iam.gserviceaccount.com"
2631 2445 }';
2632 2446
2633 2447 ?>
2634 2448 <div class="form-group">