PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 7.7.4
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v7.7.4
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 +214 -457 8.6.87.7.4 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">
@@ -28,10 +12,10 @@
28 12 </h1>
29 13
30 14 <div class="qcld-wp-chatbot-wrap-header">
31 15
32 - <div class="qcld-wp-chatbot-wrap-header-logo"><a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img 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>
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>
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,303 +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>
720 - <label class="wpbot-checkbox-card">
721 - <span class="pro-badge" style="display:inline-block; padding:2px 8px; background:#5B4E96; color:#fff; border-radius:20px; font-size:9px; font-weight:bold; text-transform:uppercase; vertical-align:middle;position: relative;top: 10px;z-index: 999;">PRO</span>
722 - <input value="1" id="skip_wp_greetings_trigger_intent" type="checkbox" name="skip_wp_greetings_trigger_intent" checked disabled />
723 - <div class="card-body">
724 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
725 - <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div>
726 - <h4><?php echo esc_html__("Skip Greetings and Trigger an Intent", 'chatbot'); ?> </h4>
727 - <p><?php echo esc_html__("Skip Asking for Name and Trigger an Intent", 'chatbot'); ?></p>
728 - <div class="qc_wp_intent_select_container" style="margin-top: 10px; ">
729 - <div style="margin-bottom: 8px;">
730 - <label style="font-weight: 600; font-size: 13px; color: #5b4e96; display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for non logged in user', 'chatbot'); ?></label>
731 - <select name="qlcd_wp_chatbot_intent_for_non_logged_in_user" id="qlcd_wp_chatbot_intent_for_non_logged_in_user" style="width: 100%; max-width: 250px;" disabled>
732 - <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option>
733 -
734 - </select>
735 - </div>
736 - <div>
737 - <label style="font-weight: 600; font-size: 13px; color: #5b4e96; display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for Logged in User', 'chatbot'); ?></label>
738 - <select name="qlcd_wp_chatbot_intent_for_logged_in_user" id="qlcd_wp_chatbot_intent_for_logged_in_user" style="width: 100%; max-width: 250px;" disabled>
739 - <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option>
740 - </select>
741 - </div>
742 - </div>
743 - </div>
744 - </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>
745 591 </div>
746 - <div class="wpbot-cards-grid-divider"></div>
747 - <div class="wpbot-cards-grid">
748 - <label class="wpbot-checkbox-card">
749 - <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' ): ''); ?>>
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-undo" style="font-size:24px;width:24px;height:24px;"></i></div>
753 - <h4><?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?></h4>
754 - <p><?php esc_html_e('Remove the option to go back to the Start Menu.', 'chatbot'); ?></p>
755 - </div>
756 - </label>
592 + </div>
757 593 </div>
758 - <div class="wpbot-cards-grid-divider"></div>
759 - <div class="wpbot-cards-grid">
760 -
761 -
762 - <label class="wpbot-checkbox-card">
763 - <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' ): ''); ?>>
764 - <div class="card-body">
765 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
766 - <div class="icon-wrapper"><i class="dashicons dashicons-editor-rtl" style="font-size:24px;width:24px;height:24px;"></i></div>
767 - <h4><?php esc_html_e('Enable RTL', 'chatbot'); ?></h4>
768 - <p><?php esc_html_e('Enable Right to Left language support for Chat.', 'chatbot'); ?></p>
769 - </div>
770 - </label>
771 -
772 -
773 - <label class="wpbot-checkbox-card">
774 - <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') : ''); ?>>
775 - <div class="card-body">
776 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
777 - <div class="icon-wrapper"><i class="dashicons dashicons-search" style="font-size:24px;width:24px;height:24px;"></i></div>
778 - <h4><?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?></h4>
779 - <p><?php esc_html_e('Enable Chatbot on WordPress search pages.', 'chatbot'); ?></p>
780 - </div>
781 - </label>
782 -
783 - <label class="wpbot-checkbox-card">
784 - <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'): ''); ?>>
785 - <div class="card-body">
786 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
787 - <div class="icon-wrapper"><i class="dashicons dashicons-external" style="font-size:24px;width:24px;height:24px;"></i></div>
788 - <h4><?php esc_html_e('Links in New Window', 'chatbot'); ?></h4>
789 - <p><?php esc_html_e('Open all Chatbot links in a new browser window.', 'chatbot'); ?></p>
790 - </div>
791 - </label>
792 - </div>
793 - <div class="wpbot-cards-grid-divider"></div>
794 - <div class="wpbot-cards-grid">
795 - <label class="wpbot-checkbox-card">
796 - <input value="1" id="disable_floating_button" type="checkbox" name="disable_floating_button" <?php echo (get_option('disable_floating_button') == 1 ? esc_attr('checked' ): ''); ?>>
797 - <div class="card-body">
798 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
799 - <div class="icon-wrapper"><i class="dashicons dashicons-dismiss" style="font-size:24px;width:24px;height:24px;"></i></div>
800 - <h4><?php esc_html_e('Disable Floating Button', 'chatbot'); ?></h4>
801 - <p><?php esc_html_e('Hide the chatbot floating icon from your website.', 'chatbot'); ?></p>
802 - </div>
803 - </label>
804 - <label class="wpbot-checkbox-card">
805 - <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' ) : ''); ?>>
806 - <div class="card-body">
807 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
808 - <div class="icon-wrapper"><i class="dashicons dashicons-smartphone" style="font-size:24px;width:24px;height:24px;"></i></div>
809 - <h4><?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?></h4>
810 - <p><?php esc_html_e('Disable WPBot from loading on mobile devices.', 'chatbot'); ?></p>
811 - </div>
812 - </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>
813 607 </div>
814 -
815 -
816 608 </div>
817 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>
818 658
819 659 <div class="row">
820 660 <div class="col-xs-12">
821 661 <div class="form-group">
@@ -833,13 +673,8 @@
833 673 </div>
834 674 </div>
835 675 </div>
836 676 </div>
837 -
838 -
839 -
840 -
841 -
842 677 <div class="row">
843 678 <div class="col-xs-12">
844 679 <div class="form-group">
845 680 <h4 class="qc-opt-title">
@@ -857,17 +692,17 @@
857 692 }
858 693 ?>
859 694 <input type="number" class="qc-opt-dcs-font"
860 695 name="wp_chatbot_position_x"
861 - value="<?php echo esc_attr($qcld_wb_chatbot_position_x);?>"
862 - 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'); ?>">
863 698 <span class="qc-opt-dcs-font">
864 699 <?php esc_html_e('From Right In px', 'chatbot'); ?>
865 700 </span>
866 701 <input type="number" class="qc-opt-dcs-font"
867 702 name="wp_chatbot_position_y"
868 - value="<?php echo esc_attr($qcld_wb_chatbot_position_y); ?>"
869 - 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'); ?> ">
870 705 <span class="qc-opt-dcs-font">
871 706 <?php esc_html_e('From Bottom In px', 'chatbot'); ?>
872 707 </span> </div>
873 708 </div>
@@ -953,14 +788,14 @@
953 788 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
954 789 ?>
955 790 <li>
956 791 <input id="<?php echo esc_attr('wp_chatbot_show_page_'. $wp_chatbot_page->ID ); ?>"
957 - type="checkbox"
958 - name="wp_chatbot_show_pages_list[]"
959 - 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) {
960 - echo esc_attr('checked');
961 - } ?> >
962 - <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>
963 798 </li>
964 799 <?php } ?>
965 800 </ul>
966 801 </div>
@@ -1018,57 +853,57 @@
1018 853 <section id="section-flip-5">
1019 854 <div class="wp-chatbot-language-center-summmery"> </div>
1020 855 <div class="row">
1021 856 <div class="col-md-12">
1022 - <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>
1023 858 <!-- Language Selection Dropdown -->
1024 859 <div class="cxsc-settings-blocks mb-6">
1025 860 <div class="form-group">
1026 861 <label for="qcld_language_center_select" class="block text-sm font-medium text-gray-700 mb-2 qc-opt-language-title">
1027 - <?php echo esc_html__( 'Select a Language:', 'chatbot'); ?>
862 + <?php echo esc_html__( 'Select a Language:', 'wpchatbot' ); ?>
1028 863 </label>
1029 864 <select id="qcld_language_center_select" class="form-select" onchange="qcld_wpbot_languageChange_from_center(this.value)">
1030 - <option value=""> <?php echo esc_html__( '-- Choose a language --', 'chatbot'); ?></option>
1031 - <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>
1032 - <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>
1033 - <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>
1034 - <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>
1035 - <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>
1036 - <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>
1037 - <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>
1038 - <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>
1039 - <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>
1040 - <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>
1041 - <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>
1042 - <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>
1043 - <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>
1044 - <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>
1045 - <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>
1046 - <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>
1047 - <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>
1048 - <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>
1049 - <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>
1050 - <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>
1051 - <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>
1052 - <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>
1053 - <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>
1054 - <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>
1055 - <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>
1056 - <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>
1057 - <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>
1058 - <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>
1059 - <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>
1060 - <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>
1061 - <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>
1062 - <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>
1063 - <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>
1064 - <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>
1065 - <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>
1066 901 </select>
1067 902 <!-- Results Display Area -->
1068 903 <div id="results-container" class="mt-8 p-4 flex items-center justify-center text-gray-600">
1069 904 <p id="initial-message">
1070 - <?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>
1071 906 </p>
1072 907 <p id="waring-message"></p>
1073 908 </div>
1074 909 </div>
@@ -1100,9 +935,9 @@
1100 935 <?php esc_html_e('Your Company or Website Name', 'chatbot'); ?>
1101 936 </h4>
1102 937 <input type="text" class="form-control qc-opt-dcs-font"
1103 938 name="qlcd_wp_chatbot_host"
1104 - 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') ); ?> ">
1105 940 </div>
1106 941 <div class="form-group">
1107 942 <h4 class="qc-opt-title">
1108 943 <?php esc_html_e('Agent name', 'chatbot'); ?>
@@ -1108,9 +943,9 @@
1108 943 <?php esc_html_e('Agent name', 'chatbot'); ?>
1109 944 </h4>
1110 945 <input type="text" class="form-control qc-opt-dcs-font"
1111 946 name="qlcd_wp_chatbot_agent"
1112 - 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'); ?>">
1113 948 </div>
1114 949 <div class="form-group">
1115 950 <h4 class="qc-opt-title">
1116 951 <?php esc_html_e('User demo name', 'chatbot'); ?>
@@ -1116,9 +951,9 @@
1116 951 <?php esc_html_e('User demo name', 'chatbot'); ?>
1117 952 </h4>
1118 953 <input type="text" class="form-control qc-opt-dcs-font"
1119 954 name="qlcd_wp_chatbot_shopper_demo_name"
1120 - 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')); ?> ">
1121 956 </div>
1122 957 <div class="form-group">
1123 958 <h4 class="qc-opt-title">
1124 959 <?php esc_html_e('YES', 'chatbot'); ?>
@@ -1542,13 +1377,13 @@
1542 1377 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dislike_text') != '' ? get_option('qlcd_wp_chatbot_dislike_text') : 'Dislike')); ?>">
1543 1378 </div>
1544 1379
1545 1380 <div class="form-group">
1546 - <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>
1547 1382 <div class="cxsc-settings-blocks">
1548 1383 <input value="1" id="enable_chat_report_menu" type="checkbox"
1549 1384 name="enable_chat_report_menu" <?php echo( get_option( 'enable_chat_report_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1550 - <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>
1551 1386 </div>
1552 1387 </div>
1553 1388 <div class="form-group">
1554 1389 <h4 class="qc-opt-title">
@@ -1558,13 +1393,13 @@
1558 1393 name="qlcd_wp_chatbot_report_text"
1559 1394 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_report_text') != '' ? get_option('qlcd_wp_chatbot_report_text') : 'Report')); ?>">
1560 1395 </div>
1561 1396 <div class="form-group">
1562 - <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>
1563 1398 <div class="cxsc-settings-blocks">
1564 1399 <input value="1" id="enable_chat_share_menu" type="checkbox"
1565 1400 name="enable_chat_share_menu" <?php echo( get_option( 'enable_chat_share_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1566 - <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>
1567 1402 </div>
1568 1403 </div>
1569 1404 <div class="form-group">
1570 1405 <h4 class="qc-opt-title">
@@ -1595,57 +1430,9 @@
1595 1430 </ul>
1596 1431 <div class="tab-content">
1597 1432 <div id="wp-chatbot-icon-theme-settings" class="tab-pane fade in active">
1598 1433 <div class="top-section">
1599 -
1600 -
1601 -
1602 - <div class="row">
1603 - <div class="col-xs-6">
1604 - <div class="form-group">
1605 - <h4 class="qc-opt-title">
1606 - <?php esc_html_e('ChatBot Window Max Height', 'wpchatbot'); ?>
1607 - </h4>
1608 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1609 - <?php
1610 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1611 - if (!$chatbot_content_max_height) {
1612 - $chatbot_content_max_height = 80;
1613 - } else {
1614 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1615 - }
1616 - ?>
1617 - <input value="<?php echo esc_attr( $chatbot_content_max_height ); ?>" id="chatbot_content_max_height" type="number" min="0" max="100" placeholder="Max height 100" name="chatbot_content_max_height"> vh
1618 - </div>
1619 - </div>
1620 - </div>
1621 - <div class="col-xs-6">
1622 - <div class="form-group">
1623 - <h4 class="qc-opt-title">
1624 - <?php esc_html_e('ChatBot Window Max Height ( Mobile Device )', 'wpchatbot'); ?>
1625 - </h4>
1626 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1627 - <?php
1628 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1629 - if (!$chatbot_content_max_height_responsive) {
1630 - $chatbot_content_max_height_responsive = 100;
1631 - } else {
1632 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1633 - }
1634 - ?>
1635 - <input value="<?php echo esc_attr( $chatbot_content_max_height_responsive ); ?>" id="chatbot_content_max_height_responsive" type="number" min="0" max="100" placeholder="Max height 100" name="chatbot_content_max_height_responsive"> vh
1636 - </div>
1637 - </div>
1638 - </div>
1639 - </div>
1640 -
1641 -
1642 -
1643 -
1644 -
1645 -
1646 -
1647 - <div class="row">
1434 + <div class="row">
1648 1435 <div class="col-xs-12">
1649 1436
1650 1437 <h3 class="qcld-wpbot-main-tabs-title">
1651 1438 <?php esc_html_e('WPBot Icon', 'chatbot'); ?>
@@ -1896,29 +1683,8 @@
1896 1683 </div>
1897 1684 </div>
1898 1685 <div id="top-section">
1899 1686 <div class="form-group">
1900 - <!-- Avatar Location Section -->
1901 - <div class="avatar-location-wrapper">
1902 - <h4 class="qc-opt-title"><?php esc_html_e('Avatar Location', 'chatbot'); ?></h4>
1903 - <?php $avatar_location = get_option('qcld_chatbot_avatar_location'); ?>
1904 - <input type="hidden" id="qcld-avatar-location" name="qcld_chatbot_avatar_location" value="<?php echo esc_attr($avatar_location); ?>">
1905 - <div class="avatar-location-cards">
1906 - <div class="avatar-location-card <?php echo ($avatar_location === 'inside') ? 'active' : ''; ?>" data-location="inside">
1907 - <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>
1908 - <span><?php esc_html_e('Inside', 'chatbot'); ?></span>
1909 - </div>
1910 - <div class="avatar-location-card <?php echo ($avatar_location === 'side') ? 'active' : ''; ?>" data-location="side">
1911 - <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>
1912 - <span><?php esc_html_e('Side', 'chatbot'); ?></span>
1913 - </div>
1914 - <div class="avatar-location-card <?php echo ($avatar_location === 'hidden') ? 'active' : ''; ?>" data-location="hidden">
1915 - <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>
1916 - <span><?php esc_html_e('Hidden', 'chatbot'); ?></span>
1917 - </div>
1918 - </div>
1919 - </div>
1920 - <!-- End Avatar Location Section -->
1921 1687 <div class="row">
1922 1688 <div class="col-sm-12">
1923 1689 <h4 class="qc-opt-title">
1924 1690 <?php esc_html_e('WPBot Themes', 'chatbot'); ?>
@@ -1975,9 +1741,9 @@
1975 1741 <div class="cxsc-settings-blocks">
1976 1742 <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
1977 1743 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>>
1978 1744 <label for="enable_wp_chatbot_custom_color">
1979 - <?php esc_html_e('Enable Custom Styles ', 'chatbot'); ?>
1745 + <?php esc_html_e('Enable Custom Styles ', 'wpbot'); ?>
1980 1746 </label>
1981 1747 </div>
1982 1748 </div>
1983 1749 </div>
@@ -2271,9 +2037,9 @@
2271 2037 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
2272 2038 ?>
2273 2039 <div class="row"> <span class="pull-right"> </span>
2274 2040 <div class="col-xs-12">
2275 - <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>
2276 2042
2277 2043 <div class="cxsc-settings-blocks cxsc-settings-faq-blocks">
2278 2044 <p>
2279 2045 <b> <?php esc_html_e('FAQ query ', 'chatbot'); ?> </b>
@@ -2309,13 +2075,10 @@
2309 2075 } else {
2310 2076 ?>
2311 2077 <div class="row"> <span class="pull-right"> </span>
2312 2078 <div class="col-xs-12">
2313 - <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>
2314 2080
2315 -
2316 -
2317 -
2318 2081 <div class="cxsc-settings-blocks">
2319 2082 <p>
2320 2083 <b> <?php esc_html_e('FAQ Query', 'chatbot'); ?></b>
2321 2084 </p>
@@ -2322,9 +2085,9 @@
2322 2085 <input type="text" class="form-control" name="support_query[]"
2323 2086 placeholder="<?php esc_html_e('FAQ Query ', 'chatbot'); ?> ">
2324 2087 <br>
2325 2088 <p class="qc-opt-dcs-font"><strong>
2326 - <?php esc_html_e('FAQ answer', 'chatbot'); ?>
2089 + <?php esc_html_e('Support answer', 'chatbot'); ?>
2327 2090 </strong></p>
2328 2091 <?php
2329 2092 wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
2330 2093 'support_ans[]',
@@ -2362,16 +2125,14 @@
2362 2125 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2363 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'); ?>
2364 2127 </div> -->
2365 2128 <?php
2366 - 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');
2367 2130 ?>
2368 2131 <div class="top-section">
2369 2132 <div class="notification-block-inner">
2370 2133 <div class="row">
2371 2134 <div class="col-xs-12">
2372 -
2373 -
2374 2135 <div id="qcld-show-more-wrapper-box">
2375 2136 <div class="qcld-show-more-text qcld-show-more-show-more-height">
2376 2137 <div class="row">
2377 2138 <div class="col-xs-12">
@@ -2483,9 +2244,9 @@
2483 2244
2484 2245 </div>
2485 2246 </div>
2486 2247 </div>
2487 - <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>
2488 2249 </div>
2489 2250 <div class="qc_menu_setup_area">
2490 2251 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'chatbot'); ?></h3>
2491 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>
@@ -2500,18 +2261,14 @@
2500 2261 <?php
2501 2262 if(get_option('qc_wpbot_menu_order')!=''):
2502 2263 if( is_string( get_option('qc_wpbot_menu_order') ) ):
2503 2264 echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
2265 + else:
2504 2266 endif;
2505 - else:
2506 - $site_search_label = get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search';
2507 - $support_email_label = get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email.';
2508 - $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!';
2509 - echo '<span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search">' . esc_attr($site_search_label) . '</span>';
2510 - echo '<span class="qcld-chatbot-suggest-email qc_draggable_item">' . esc_attr($support_email_label) . '</span>';
2511 - echo '<span class="qcld-chatbot-suggest-phone qc_draggable_item">' . esc_attr($support_phone_label) . '</span>';
2512 - endif;
2513 2267 ?>
2268 +
2269 +
2270 + <?php endif; ?>
2514 2271 </div>
2515 2272 </div>
2516 2273 <div class="qc_menu_list_area">
2517 2274 <h4><?php esc_html_e('Available Menu', 'chatbot'); ?></h4>
@@ -2555,9 +2312,9 @@
2555 2312 global $wpdb;
2556 2313
2557 2314 //To Do: Need to use prepared statement
2558 2315
2559 - $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.
2560 2317 if(!empty($results)){
2561 2318 ?>
2562 2319 <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p>
2563 2320 <ul>
@@ -2675,17 +2432,17 @@
2675 2432 <?php
2676 2433
2677 2434 $placeholderPrivatekey = '{
2678 2435 "type": "service_account",
2679 - "project_id": "YOUR_PROJECT_ID",
2680 - "private_key_id": "YOUR_PRIVATE_KEY_ID",
2681 - "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----\n",
2682 - "client_email": "YOUR_CLIENT_EMAIL",
2683 - "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",
2684 2441 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
2685 2442 "token_uri": "https://oauth2.googleapis.com/token",
2686 2443 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
2687 - "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"
2688 2445 }';
2689 2446
2690 2447 ?>
2691 2448 <div class="form-group">