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 +102 -206 8.5.97.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,11 +503,11 @@
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 511
528 512 <b>
529 513 <!-- <p>Please see the plugin's Help and Debugging section to troubleshoot common issues.</p> -->
@@ -532,33 +516,34 @@
532 516
533 517 <div class="cxsc-settings-blocks">
534 518 <div class="form-group">
535 519 <?php
536 - $qcld_wpbot_url = get_site_url();
537 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
538 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
539 - $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');
540 525 ?>
541 526 <h4 class="qc-opt-title"><?php esc_html_e('Emails Will be Sent to', 'chatbot'); ?></h4>
542 527 <input type="text" class="form-control qc-opt-dcs-font"
543 - name="qlcd_wp_chatbot_admin_email"
544 - 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)) ); ?>">
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) ) ?>">
545 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>
546 531 </div>
547 532 </div>
548 533 <div class="cxsc-settings-blocks">
549 534 <div class="form-group">
550 - <?php
551 - $qcld_wpbot_url = get_site_url();
552 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
553 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
554 - $qcld_wpbot_from_email = "wordpress@" . $qcld_wpbot_domain;
555 - ?>
556 - <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
557 - <input type="text" class="form-control qc-opt-dcs-font"
558 - name="qlcd_wp_chatbot_from_email"
559 - 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))); ?> ">
560 - <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>
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>
561 546 </div>
562 547 </div>
563 548 </div>
564 549 </div>
@@ -563,40 +548,8 @@
563 548 </div>
564 549 </div>
565 550 <div class="row">
566 551 <div class="col-xs-12">
567 - <div class="form-group">
568 - <h4 class="qc-opt-title">
569 - <?php esc_html_e('Disable Floating Button', 'chatbot'); ?>
570 - </h4>
571 - <div class="cxsc-settings-blocks">
572 - <input value="1" id="disable_floating_button" type="checkbox"
573 - name="disable_floating_button" <?php echo (get_option('disable_floating_button') == 1 ? esc_attr('checked' ): ''); ?>>
574 - <label for="disable_floating_button">
575 - <?php esc_html_e('Disable Floating Button', 'chatbot'); ?>
576 - </label>
577 - </div>
578 - </div>
579 - </div>
580 - </div>
581 - <div class="row">
582 - <div class="col-xs-12">
583 - <div class="form-group">
584 - <h4 class="qc-opt-title">
585 - <?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?>
586 - </h4>
587 - <div class="cxsc-settings-blocks">
588 - <input value="1" id="wpbot_enable_on_search" type="checkbox"
589 - name="wpbot_enable_on_search" <?php echo (get_option('wpbot_enable_on_search') == 1 ? esc_attr('checked') : ''); ?>>
590 - <label for="wpbot_enable_on_search">
591 - <?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?>
592 - </label>
593 - </div>
594 - </div>
595 - </div>
596 - </div>
597 - <div class="row">
598 - <div class="col-xs-12">
599 552 <div class="cxsc-settings-blocks">
600 553 <div class="form-group">
601 554 <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </h4>
602 555 <div class="cxsc-settings-blocks">
@@ -622,9 +575,8 @@
622 575 </div>
623 576 </div>
624 577 </div>
625 578 </div>
626 -
627 579 <div class="row">
628 580 <div class="col-xs-12">
629 581 <div class="form-group">
630 582 <h4 class="qc-opt-title">
@@ -641,36 +593,8 @@
641 593 </div>
642 594 </div>
643 595 <div class="row">
644 596 <div class="col-xs-12">
645 - <div class="form-group">
646 - <h4 class="qc-opt-title"> <?php echo esc_html__('Enable Asking for Email', 'wpchatbot'); ?> </h4>
647 - <div class="cxsc-settings-blocks">
648 - <input value="1" id="ask_email_wp_greetings" type="checkbox"
649 - name="ask_email_wp_greetings" <?php echo (get_option('ask_email_wp_greetings') == 1 ? 'checked' : ''); ?>>
650 - <label for="ask_email_wp_greetings"><?php echo esc_html__('Enable Asking for Email', 'wpchatbot'); ?> </label>
651 - </div>
652 - </div>
653 - </div>
654 - </div>
655 - <div class="row">
656 - <div class="col-xs-12">
657 - <div class="form-group">
658 - <h4 class="qc-opt-title">
659 - <?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?>
660 - </h4>
661 - <div class="cxsc-settings-blocks">
662 - <input value="1" id="disable_back_to_start_menu" type="checkbox"
663 - name="disable_back_to_start_menu" <?php echo (get_option('disable_back_to_start_menu') == 1 ? esc_attr('checked' ): ''); ?>>
664 - <label for="disable_back_to_start_menu">
665 - <?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?>
666 - </label>
667 - </div>
668 - </div>
669 - </div>
670 - </div>
671 - <div class="row">
672 - <div class="col-xs-12">
673 597 <div class="form-group">
674 598 <h4 class="qc-opt-title">
675 599 <?php esc_html_e('Disable WPBot', 'chatbot'); ?>
676 600 </h4>
@@ -768,17 +692,17 @@
768 692 }
769 693 ?>
770 694 <input type="number" class="qc-opt-dcs-font"
771 695 name="wp_chatbot_position_x"
772 - value="<?php echo esc_attr($qcld_wb_chatbot_position_x);?>"
773 - 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'); ?>">
774 698 <span class="qc-opt-dcs-font">
775 699 <?php esc_html_e('From Right In px', 'chatbot'); ?>
776 700 </span>
777 701 <input type="number" class="qc-opt-dcs-font"
778 702 name="wp_chatbot_position_y"
779 - value="<?php echo esc_attr($qcld_wb_chatbot_position_y); ?>"
780 - 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'); ?> ">
781 705 <span class="qc-opt-dcs-font">
782 706 <?php esc_html_e('From Bottom In px', 'chatbot'); ?>
783 707 </span> </div>
784 708 </div>
@@ -864,14 +788,14 @@
864 788 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
865 789 ?>
866 790 <li>
867 791 <input id="<?php echo esc_attr('wp_chatbot_show_page_'. $wp_chatbot_page->ID ); ?>"
868 - type="checkbox"
869 - name="wp_chatbot_show_pages_list[]"
870 - 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) {
871 - echo esc_attr('checked');
872 - } ?> >
873 - <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>
874 798 </li>
875 799 <?php } ?>
876 800 </ul>
877 801 </div>
@@ -929,57 +853,57 @@
929 853 <section id="section-flip-5">
930 854 <div class="wp-chatbot-language-center-summmery"> </div>
931 855 <div class="row">
932 856 <div class="col-md-12">
933 - <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>
934 858 <!-- Language Selection Dropdown -->
935 859 <div class="cxsc-settings-blocks mb-6">
936 860 <div class="form-group">
937 861 <label for="qcld_language_center_select" class="block text-sm font-medium text-gray-700 mb-2 qc-opt-language-title">
938 - <?php echo esc_html__( 'Select a Language:', 'chatbot'); ?>
862 + <?php echo esc_html__( 'Select a Language:', 'wpchatbot' ); ?>
939 863 </label>
940 864 <select id="qcld_language_center_select" class="form-select" onchange="qcld_wpbot_languageChange_from_center(this.value)">
941 - <option value=""> <?php echo esc_html__( '-- Choose a language --', 'chatbot'); ?></option>
942 - <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>
943 - <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>
944 - <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>
945 - <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>
946 - <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>
947 - <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>
948 - <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>
949 - <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>
950 - <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>
951 - <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>
952 - <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>
953 - <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>
954 - <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>
955 - <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>
956 - <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>
957 - <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>
958 - <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>
959 - <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>
960 - <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>
961 - <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>
962 - <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>
963 - <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>
964 - <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>
965 - <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>
966 - <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>
967 - <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>
968 - <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>
969 - <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>
970 - <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>
971 - <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>
972 - <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>
973 - <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>
974 - <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>
975 - <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>
976 - <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>
977 901 </select>
978 902 <!-- Results Display Area -->
979 903 <div id="results-container" class="mt-8 p-4 flex items-center justify-center text-gray-600">
980 904 <p id="initial-message">
981 - <?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>
982 906 </p>
983 907 <p id="waring-message"></p>
984 908 </div>
985 909 </div>
@@ -1011,9 +935,9 @@
1011 935 <?php esc_html_e('Your Company or Website Name', 'chatbot'); ?>
1012 936 </h4>
1013 937 <input type="text" class="form-control qc-opt-dcs-font"
1014 938 name="qlcd_wp_chatbot_host"
1015 - 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') ); ?> ">
1016 940 </div>
1017 941 <div class="form-group">
1018 942 <h4 class="qc-opt-title">
1019 943 <?php esc_html_e('Agent name', 'chatbot'); ?>
@@ -1019,9 +943,9 @@
1019 943 <?php esc_html_e('Agent name', 'chatbot'); ?>
1020 944 </h4>
1021 945 <input type="text" class="form-control qc-opt-dcs-font"
1022 946 name="qlcd_wp_chatbot_agent"
1023 - 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'); ?>">
1024 948 </div>
1025 949 <div class="form-group">
1026 950 <h4 class="qc-opt-title">
1027 951 <?php esc_html_e('User demo name', 'chatbot'); ?>
@@ -1027,9 +951,9 @@
1027 951 <?php esc_html_e('User demo name', 'chatbot'); ?>
1028 952 </h4>
1029 953 <input type="text" class="form-control qc-opt-dcs-font"
1030 954 name="qlcd_wp_chatbot_shopper_demo_name"
1031 - 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')); ?> ">
1032 956 </div>
1033 957 <div class="form-group">
1034 958 <h4 class="qc-opt-title">
1035 959 <?php esc_html_e('YES', 'chatbot'); ?>
@@ -1453,13 +1377,13 @@
1453 1377 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dislike_text') != '' ? get_option('qlcd_wp_chatbot_dislike_text') : 'Dislike')); ?>">
1454 1378 </div>
1455 1379
1456 1380 <div class="form-group">
1457 - <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>
1458 1382 <div class="cxsc-settings-blocks">
1459 1383 <input value="1" id="enable_chat_report_menu" type="checkbox"
1460 1384 name="enable_chat_report_menu" <?php echo( get_option( 'enable_chat_report_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1461 - <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>
1462 1386 </div>
1463 1387 </div>
1464 1388 <div class="form-group">
1465 1389 <h4 class="qc-opt-title">
@@ -1469,13 +1393,13 @@
1469 1393 name="qlcd_wp_chatbot_report_text"
1470 1394 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_report_text') != '' ? get_option('qlcd_wp_chatbot_report_text') : 'Report')); ?>">
1471 1395 </div>
1472 1396 <div class="form-group">
1473 - <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>
1474 1398 <div class="cxsc-settings-blocks">
1475 1399 <input value="1" id="enable_chat_share_menu" type="checkbox"
1476 1400 name="enable_chat_share_menu" <?php echo( get_option( 'enable_chat_share_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1477 - <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>
1478 1402 </div>
1479 1403 </div>
1480 1404 <div class="form-group">
1481 1405 <h4 class="qc-opt-title">
@@ -1759,29 +1683,8 @@
1759 1683 </div>
1760 1684 </div>
1761 1685 <div id="top-section">
1762 1686 <div class="form-group">
1763 - <!-- Avatar Location Section -->
1764 - <div class="avatar-location-wrapper">
1765 - <h4 class="qc-opt-title"><?php esc_html_e('Avatar Location', 'chatbot'); ?></h4>
1766 - <?php $avatar_location = get_option('qcld_chatbot_avatar_location'); ?>
1767 - <input type="hidden" id="qcld-avatar-location" name="qcld_chatbot_avatar_location" value="<?php echo esc_attr($avatar_location); ?>">
1768 - <div class="avatar-location-cards">
1769 - <div class="avatar-location-card <?php echo ($avatar_location === 'inside') ? 'active' : ''; ?>" data-location="inside">
1770 - <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>
1771 - <span><?php esc_html_e('Inside', 'chatbot'); ?></span>
1772 - </div>
1773 - <div class="avatar-location-card <?php echo ($avatar_location === 'side') ? 'active' : ''; ?>" data-location="side">
1774 - <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>
1775 - <span><?php esc_html_e('Side', 'chatbot'); ?></span>
1776 - </div>
1777 - <div class="avatar-location-card <?php echo ($avatar_location === 'hidden') ? 'active' : ''; ?>" data-location="hidden">
1778 - <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>
1779 - <span><?php esc_html_e('Hidden', 'chatbot'); ?></span>
1780 - </div>
1781 - </div>
1782 - </div>
1783 - <!-- End Avatar Location Section -->
1784 1687 <div class="row">
1785 1688 <div class="col-sm-12">
1786 1689 <h4 class="qc-opt-title">
1787 1690 <?php esc_html_e('WPBot Themes', 'chatbot'); ?>
@@ -1838,9 +1741,9 @@
1838 1741 <div class="cxsc-settings-blocks">
1839 1742 <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
1840 1743 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>>
1841 1744 <label for="enable_wp_chatbot_custom_color">
1842 - <?php esc_html_e('Enable Custom Styles ', 'chatbot'); ?>
1745 + <?php esc_html_e('Enable Custom Styles ', 'wpbot'); ?>
1843 1746 </label>
1844 1747 </div>
1845 1748 </div>
1846 1749 </div>
@@ -2134,9 +2037,9 @@
2134 2037 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
2135 2038 ?>
2136 2039 <div class="row"> <span class="pull-right"> </span>
2137 2040 <div class="col-xs-12">
2138 - <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>
2139 2042
2140 2043 <div class="cxsc-settings-blocks cxsc-settings-faq-blocks">
2141 2044 <p>
2142 2045 <b> <?php esc_html_e('FAQ query ', 'chatbot'); ?> </b>
@@ -2172,13 +2075,10 @@
2172 2075 } else {
2173 2076 ?>
2174 2077 <div class="row"> <span class="pull-right"> </span>
2175 2078 <div class="col-xs-12">
2176 - <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>
2177 2080
2178 -
2179 -
2180 -
2181 2081 <div class="cxsc-settings-blocks">
2182 2082 <p>
2183 2083 <b> <?php esc_html_e('FAQ Query', 'chatbot'); ?></b>
2184 2084 </p>
@@ -2225,9 +2125,9 @@
2225 2125 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2226 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'); ?>
2227 2127 </div> -->
2228 2128 <?php
2229 - 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');
2230 2130 ?>
2231 2131 <div class="top-section">
2232 2132 <div class="notification-block-inner">
2233 2133 <div class="row">
@@ -2344,9 +2244,9 @@
2344 2244
2345 2245 </div>
2346 2246 </div>
2347 2247 </div>
2348 - <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>
2349 2249 </div>
2350 2250 <div class="qc_menu_setup_area">
2351 2251 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'chatbot'); ?></h3>
2352 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>
@@ -2361,18 +2261,14 @@
2361 2261 <?php
2362 2262 if(get_option('qc_wpbot_menu_order')!=''):
2363 2263 if( is_string( get_option('qc_wpbot_menu_order') ) ):
2364 2264 echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
2265 + else:
2365 2266 endif;
2366 - else:
2367 - $site_search_label = get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search';
2368 - $support_email_label = get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email.';
2369 - $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!';
2370 - echo '<span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search">' . esc_attr($site_search_label) . '</span>';
2371 - echo '<span class="qcld-chatbot-suggest-email qc_draggable_item">' . esc_attr($support_email_label) . '</span>';
2372 - echo '<span class="qcld-chatbot-suggest-phone qc_draggable_item">' . esc_attr($support_phone_label) . '</span>';
2373 - endif;
2374 2267 ?>
2268 +
2269 +
2270 + <?php endif; ?>
2375 2271 </div>
2376 2272 </div>
2377 2273 <div class="qc_menu_list_area">
2378 2274 <h4><?php esc_html_e('Available Menu', 'chatbot'); ?></h4>
@@ -2416,9 +2312,9 @@
2416 2312 global $wpdb;
2417 2313
2418 2314 //To Do: Need to use prepared statement
2419 2315
2420 - $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.
2421 2317 if(!empty($results)){
2422 2318 ?>
2423 2319 <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p>
2424 2320 <ul>
@@ -2536,17 +2432,17 @@
2536 2432 <?php
2537 2433
2538 2434 $placeholderPrivatekey = '{
2539 2435 "type": "service_account",
2540 - "project_id": "YOUR_PROJECT_ID",
2541 - "private_key_id": "YOUR_PRIVATE_KEY_ID",
2542 - "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----\n",
2543 - "client_email": "YOUR_CLIENT_EMAIL",
2544 - "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",
2545 2441 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
2546 2442 "token_uri": "https://oauth2.googleapis.com/token",
2547 2443 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
2548 - "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"
2549 2445 }';
2550 2446
2551 2447 ?>
2552 2448 <div class="form-group">