PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 7.5.7
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v7.5.7
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 -169 8.5.37.5.7 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,11 +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 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>
34 - </div>
16 + <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>
35 18 <ul class="qcld-wp-chatbot-wrap-version-wrapper">
36 19 <li>
37 20 <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a>
38 21
@@ -63,9 +46,9 @@
63 46
64 47 <div class="wp-chatbot-wrap">
65 48 <div class="icon32"><br>
66 49 </div>
67 -<form action="<?php echo esc_url($action); ?>" method="POST" id="wp-chatbot-admin-form"
50 +<form action="<?php echo esc_url($action, 'chatbot'); ?>" method="POST" id="wp-chatbot-admin-form"
68 51 enctype="multipart/form-data">
69 52 <div class="form-container">
70 53
71 54 <section class="wp-chatbot-tab-container-inner">
@@ -99,9 +82,9 @@
99 82 </span> </a></li>
100 83 <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 84
102 85
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">
86 + <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 87 <?php esc_html_e('Dialogflow', 'chatbot'); ?>
105 88 </span> </a></li>
106 89
107 90
@@ -106,9 +89,9 @@
106 89
107 90
108 91 <li tab-data="<?php echo esc_url('rpl'); ?>" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>">
109 92 <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'); ?>
93 + </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?>
111 94 </span>
112 95 </a>
113 96 </li>
114 97
@@ -114,9 +97,9 @@
114 97
115 98
116 99
117 100
118 - <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=custom_css'?>">
101 + <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=ai'?>">
119 102 <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-editor-code"></span>
120 103 </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Custom CSS', 'chatbot'); ?></span>
121 104 </a>
122 105 </li>
@@ -142,9 +125,9 @@
142 125
143 126 <div class="text-center mt-5 qcld-Resetall">
144 127 <input type="button" class="btn btn-warning submit-button"
145 128 id="qcld-wp-chatbot-reset-option"
146 - value="<?php echo esc_attr__('Reset all options to Default', 'chatbot') ; ?>"/>
129 + value="<?php echo esc_html('Reset all options to Default') ; ?>"/>
147 130 </div>
148 131 </nav>
149 132
150 133
@@ -156,10 +139,10 @@
156 139
157 140 <div class="wrap qcld-swpm-admin-menu-wrap">
158 141 <div class="wrap qcld-swpm-admin-menu-wrap">
159 142 <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>
143 + <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html('Getting Started'); ?></a>
144 + <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html('WPBot – In a Nutshell'); ?></a>
162 145 </h3>
163 146 <div class="wppt-settings-section" id="general_int">
164 147 <div class="content form-container qcbot_help_secion" style="">
165 148 <!-- new Section -->
@@ -519,11 +502,11 @@
519 502 </div>
520 503 <?php } ?>
521 504
522 505 <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>
506 + <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>
507 + <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>
508 + <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 509 </div>
527 510
528 511 <b>
529 512 <!-- <p>Please see the plugin's Help and Debugging section to troubleshoot common issues.</p> -->
@@ -532,33 +515,34 @@
532 515
533 516 <div class="cxsc-settings-blocks">
534 517 <div class="form-group">
535 518 <?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');
519 + $url = get_site_url();
520 + $url = wp_parse_url($url);
521 + $domain = $url['host'];
522 +
523 + $admin_email = get_option('admin_email');
540 524 ?>
541 525 <h4 class="qc-opt-title"><?php esc_html_e('Emails Will be Sent to', 'chatbot'); ?></h4>
542 526 <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)) ); ?>">
527 + name="qlcd_wp_chatbot_admin_email"
528 + value="<?php echo (get_option('qlcd_wp_chatbot_admin_email') != '' ? esc_attr(get_option('qlcd_wp_chatbot_admin_email')) : sanitize_email($admin_email) ) ?>">
545 529 <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 530 </div>
547 531 </div>
548 532 <div class="cxsc-settings-blocks">
549 533 <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>
534 + <?php
535 + $url = get_site_url();
536 + $url = wp_parse_url($url);
537 + $domain = $url['host'];
538 + $fromEmail = "wordpress@" . $domain;
539 + ?>
540 + <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
541 + <input type="text" class="form-control qc-opt-dcs-font"
542 + name="qlcd_wp_chatbot_from_email"
543 + value="<?php echo (get_option('qlcd_wp_chatbot_from_email') != '' ? esc_attr( get_option('qlcd_wp_chatbot_from_email')) : sanitize_email($fromEmail)); ?> ">
544 + <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 545 </div>
562 546 </div>
563 547 </div>
564 548 </div>
@@ -563,40 +547,8 @@
563 547 </div>
564 548 </div>
565 549 <div class="row">
566 550 <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 551 <div class="cxsc-settings-blocks">
600 552 <div class="form-group">
601 553 <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </h4>
602 554 <div class="cxsc-settings-blocks">
@@ -640,24 +592,8 @@
640 592 </div>
641 593 </div>
642 594 <div class="row">
643 595 <div class="col-xs-12">
644 - <div class="form-group">
645 - <h4 class="qc-opt-title">
646 - <?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?>
647 - </h4>
648 - <div class="cxsc-settings-blocks">
649 - <input value="1" id="disable_back_to_start_menu" type="checkbox"
650 - name="disable_back_to_start_menu" <?php echo (get_option('disable_back_to_start_menu') == 1 ? esc_attr('checked' ): ''); ?>>
651 - <label for="disable_back_to_start_menu">
652 - <?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?>
653 - </label>
654 - </div>
655 - </div>
656 - </div>
657 - </div>
658 - <div class="row">
659 - <div class="col-xs-12">
660 596 <div class="form-group">
661 597 <h4 class="qc-opt-title">
662 598 <?php esc_html_e('Disable WPBot', 'chatbot'); ?>
663 599 </h4>
@@ -725,9 +661,9 @@
725 661 <h4 class="qc-opt-title"><?php esc_html_e('Bot Response Delay', 'chatbot'); ?> </h4>
726 662 <div class="cxsc-settings-blocks">
727 663 <select name="wpbot_preloading_time" id="wpbot_preloading_time">
728 664 <?php $current_preloading_time = get_option('wpbot_preloading_time'); ?>
729 - <option value="100" <?php selected($current_preloading_time, '100'); ?>><?php esc_html_e('0.1 Second', 'chatbot'); ?></option>
665 + <option value="100" <?php selected($current_preloading_time, '100'); ?>><?php esc_html_e('0 Second', 'chatbot'); ?></option>
730 666 <option value="500" <?php selected($current_preloading_time, '500'); ?>><?php esc_html_e('0.5 Second', 'chatbot'); ?></option>
731 667 <option value="1000" <?php selected($current_preloading_time, '1000'); ?>><?php esc_html_e('1 Second', 'chatbot'); ?></option>
732 668 <option value="2000" <?php selected($current_preloading_time, '2000'); ?>><?php esc_html_e('2 Second', 'chatbot'); ?></option>
733 669 <option value="3000" <?php selected($current_preloading_time, '3000'); ?>><?php esc_html_e('3 Second', 'chatbot'); ?></option>
@@ -755,17 +691,17 @@
755 691 }
756 692 ?>
757 693 <input type="number" class="qc-opt-dcs-font"
758 694 name="wp_chatbot_position_x"
759 - value="<?php echo esc_attr($qcld_wb_chatbot_position_x);?>"
760 - placeholder="<?php esc_attr_e('From Right In ', 'chatbot'); ?>">
695 + value="<?php echo esc_html($qcld_wb_chatbot_position_x);?>"
696 + placeholder="<?php esc_html_e('From Right In ', 'chatbot'); ?>">
761 697 <span class="qc-opt-dcs-font">
762 698 <?php esc_html_e('From Right In px', 'chatbot'); ?>
763 699 </span>
764 700 <input type="number" class="qc-opt-dcs-font"
765 701 name="wp_chatbot_position_y"
766 - value="<?php echo esc_attr($qcld_wb_chatbot_position_y); ?>"
767 - placeholder="<?php esc_attr_e('From Bottom In Px', 'chatbot'); ?> ">
702 + value="<?php echo esc_html($qcld_wb_chatbot_position_y); ?>"
703 + placeholder="<?php esc_html_e('From Bottom In Px', 'chatbot'); ?> ">
768 704 <span class="qc-opt-dcs-font">
769 705 <?php esc_html_e('From Bottom In px', 'chatbot'); ?>
770 706 </span> </div>
771 707 </div>
@@ -851,14 +787,14 @@
851 787 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
852 788 ?>
853 789 <li>
854 790 <input id="<?php echo esc_attr('wp_chatbot_show_page_'. $wp_chatbot_page->ID ); ?>"
855 - type="checkbox"
856 - name="wp_chatbot_show_pages_list[]"
857 - 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) {
858 - echo esc_attr('checked');
859 - } ?> >
860 - <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label>
791 + type="checkbox"
792 + name="wp_chatbot_show_pages_list[]"
793 + 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) {
794 + echo esc_attr('checked');
795 + } ?> >
796 + <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label>
861 797 </li>
862 798 <?php } ?>
863 799 </ul>
864 800 </div>
@@ -916,57 +852,57 @@
916 852 <section id="section-flip-5">
917 853 <div class="wp-chatbot-language-center-summmery"> </div>
918 854 <div class="row">
919 855 <div class="col-md-12">
920 - <h4 class="qc-opt-title"><b><?php echo esc_html__( 'Change Language', 'chatbot'); ?></b></h4>
856 + <h4 class="qc-opt-title"><b><?php echo esc_html__( 'Change Language', 'wpchatbot' ); ?></b></h4>
921 857 <!-- Language Selection Dropdown -->
922 858 <div class="cxsc-settings-blocks mb-6">
923 859 <div class="form-group">
924 860 <label for="qcld_language_center_select" class="block text-sm font-medium text-gray-700 mb-2 qc-opt-language-title">
925 - <?php echo esc_html__( 'Select a Language:', 'chatbot'); ?>
861 + <?php echo esc_html__( 'Select a Language:', 'wpchatbot' ); ?>
926 862 </label>
927 863 <select id="qcld_language_center_select" class="form-select" onchange="qcld_wpbot_languageChange_from_center(this.value)">
928 - <option value=""> <?php echo esc_html__( '-- Choose a language --', 'chatbot'); ?></option>
929 - <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>
930 - <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>
931 - <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>
932 - <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>
933 - <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>
934 - <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>
935 - <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>
936 - <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>
937 - <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>
938 - <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>
939 - <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>
940 - <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>
941 - <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>
942 - <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>
943 - <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>
944 - <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>
945 - <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>
946 - <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>
947 - <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>
948 - <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>
949 - <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>
950 - <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>
951 - <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>
952 - <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>
953 - <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>
954 - <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>
955 - <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>
956 - <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>
957 - <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>
958 - <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>
959 - <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>
960 - <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>
961 - <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>
962 - <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>
963 - <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>
864 + <option value=""> <?php echo esc_html__( '-- Choose a language --', 'wpchatbot' ); ?></option>
865 + <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>
866 + <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>
867 + <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>
868 + <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>
869 + <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>
870 + <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>
871 + <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>
872 + <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>
873 + <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>
874 + <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>
875 + <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>
876 + <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>
877 + <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>
878 + <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>
879 + <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>
880 + <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>
881 + <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>
882 + <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>
883 + <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>
884 + <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>
885 + <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>
886 + <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>
887 + <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>
888 + <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>
889 + <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>
890 + <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>
891 + <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>
892 + <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>
893 + <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>
894 + <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>
895 + <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>
896 + <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>
897 + <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>
898 + <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>
899 + <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>
964 900 </select>
965 901 <!-- Results Display Area -->
966 902 <div id="results-container" class="mt-8 p-4 flex items-center justify-center text-gray-600">
967 903 <p id="initial-message">
968 - <?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>
904 + <?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>
969 905 </p>
970 906 <p id="waring-message"></p>
971 907 </div>
972 908 </div>
@@ -998,9 +934,9 @@
998 934 <?php esc_html_e('Your Company or Website Name', 'chatbot'); ?>
999 935 </h4>
1000 936 <input type="text" class="form-control qc-opt-dcs-font"
1001 937 name="qlcd_wp_chatbot_host"
1002 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?>">
938 + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?> ">
1003 939 </div>
1004 940 <div class="form-group">
1005 941 <h4 class="qc-opt-title">
1006 942 <?php esc_html_e('Agent name', 'chatbot'); ?>
@@ -1006,9 +942,9 @@
1006 942 <?php esc_html_e('Agent name', 'chatbot'); ?>
1007 943 </h4>
1008 944 <input type="text" class="form-control qc-opt-dcs-font"
1009 945 name="qlcd_wp_chatbot_agent"
1010 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie')); ?>">
946 + value="<?php echo (get_option('qlcd_wp_chatbot_agent') != '' ? esc_attr(get_option('qlcd_wp_chatbot_agent')) : 'Carrie'); ?>">
1011 947 </div>
1012 948 <div class="form-group">
1013 949 <h4 class="qc-opt-title">
1014 950 <?php esc_html_e('User demo name', 'chatbot'); ?>
@@ -1014,9 +950,9 @@
1014 950 <?php esc_html_e('User demo name', 'chatbot'); ?>
1015 951 </h4>
1016 952 <input type="text" class="form-control qc-opt-dcs-font"
1017 953 name="qlcd_wp_chatbot_shopper_demo_name"
1018 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?>">
954 + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?> ">
1019 955 </div>
1020 956 <div class="form-group">
1021 957 <h4 class="qc-opt-title">
1022 958 <?php esc_html_e('YES', 'chatbot'); ?>
@@ -1418,9 +1354,9 @@
1418 1354 <div class="form-group">
1419 1355 <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Reactions for analytics (Like & Dislike)', 'chatbot' ); ?> </h4>
1420 1356 <div class="cxsc-settings-blocks">
1421 1357 <input value="1" id="skip_chat_reactions_menu" type="checkbox"
1422 - name="skip_chat_reactions_menu" <?php echo( get_option( 'skip_chat_reactions_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1358 + name="skip_chat_reactions_menu" <?php echo( get_option( 'skip_chat_reactions_menu' ) == 1 ? 'checked' : '' ); ?>>
1423 1359 <label for="skip_chat_reactions_menu"><?php echo esc_html__( 'Enable Chat Reactions for analytics (Like & Dislike)', 'chatbot' ); ?> </label>
1424 1360 </div>
1425 1361 </div>
1426 1362 <div class="form-group">
@@ -1440,13 +1376,13 @@
1440 1376 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dislike_text') != '' ? get_option('qlcd_wp_chatbot_dislike_text') : 'Dislike')); ?>">
1441 1377 </div>
1442 1378
1443 1379 <div class="form-group">
1444 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </h4>
1380 + <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Reporting Message', 'wpchatbot' ); ?> </h4>
1445 1381 <div class="cxsc-settings-blocks">
1446 1382 <input value="1" id="enable_chat_report_menu" type="checkbox"
1447 - name="enable_chat_report_menu" <?php echo( get_option( 'enable_chat_report_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1448 - <label for="enable_chat_report_menu"><?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </label>
1383 + name="enable_chat_report_menu" <?php echo( get_option( 'enable_chat_report_menu' ) == 1 ? 'checked' : '' ); ?>>
1384 + <label for="enable_chat_report_menu"><?php echo esc_html__( 'Enable Reporting Message', 'wpchatbot' ); ?> </label>
1449 1385 </div>
1450 1386 </div>
1451 1387 <div class="form-group">
1452 1388 <h4 class="qc-opt-title">
@@ -1456,13 +1392,13 @@
1456 1392 name="qlcd_wp_chatbot_report_text"
1457 1393 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_report_text') != '' ? get_option('qlcd_wp_chatbot_report_text') : 'Report')); ?>">
1458 1394 </div>
1459 1395 <div class="form-group">
1460 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </h4>
1396 + <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Share', 'wpchatbot' ); ?> </h4>
1461 1397 <div class="cxsc-settings-blocks">
1462 1398 <input value="1" id="enable_chat_share_menu" type="checkbox"
1463 - name="enable_chat_share_menu" <?php echo( get_option( 'enable_chat_share_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1464 - <label for="enable_chat_share_menu"><?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </label>
1399 + name="enable_chat_share_menu" <?php echo( get_option( 'enable_chat_share_menu' ) == 1 ? 'checked' : '' ); ?>>
1400 + <label for="enable_chat_share_menu"><?php echo esc_html__( 'Enable Chat Share', 'wpchatbot' ); ?> </label>
1465 1401 </div>
1466 1402 </div>
1467 1403 <div class="form-group">
1468 1404 <h4 class="qc-opt-title">
@@ -1804,9 +1740,9 @@
1804 1740 <div class="cxsc-settings-blocks">
1805 1741 <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
1806 1742 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>>
1807 1743 <label for="enable_wp_chatbot_custom_color">
1808 - <?php esc_html_e('Enable Custom Styles ', 'chatbot'); ?>
1744 + <?php esc_html_e('Enable Custom Styles ', 'wpbot'); ?>
1809 1745 </label>
1810 1746 </div>
1811 1747 </div>
1812 1748 </div>
@@ -2100,9 +2036,9 @@
2100 2036 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
2101 2037 ?>
2102 2038 <div class="row"> <span class="pull-right"> </span>
2103 2039 <div class="col-xs-12">
2104 - <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-remove"></span></button>
2040 + <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-clock"></span></button>
2105 2041
2106 2042 <div class="cxsc-settings-blocks cxsc-settings-faq-blocks">
2107 2043 <p>
2108 2044 <b> <?php esc_html_e('FAQ query ', 'chatbot'); ?> </b>
@@ -2138,13 +2074,10 @@
2138 2074 } else {
2139 2075 ?>
2140 2076 <div class="row"> <span class="pull-right"> </span>
2141 2077 <div class="col-xs-12">
2142 - <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-remove"></span> </button>
2078 + <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-clock"></span> </button>
2143 2079
2144 -
2145 -
2146 -
2147 2080 <div class="cxsc-settings-blocks">
2148 2081 <p>
2149 2082 <b> <?php esc_html_e('FAQ Query', 'chatbot'); ?></b>
2150 2083 </p>
@@ -2191,9 +2124,9 @@
2191 2124 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2192 2125 <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'); ?>
2193 2126 </div> -->
2194 2127 <?php
2195 - 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');
2128 + 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');
2196 2129 ?>
2197 2130 <div class="top-section">
2198 2131 <div class="notification-block-inner">
2199 2132 <div class="row">
@@ -2378,9 +2311,9 @@
2378 2311 global $wpdb;
2379 2312
2380 2313 //To Do: Need to use prepared statement
2381 2314
2382 - $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
2315 + $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); //DB Call OK, No Caching OK.
2383 2316 if(!empty($results)){
2384 2317 ?>
2385 2318 <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p>
2386 2319 <ul>
@@ -2498,17 +2431,17 @@
2498 2431 <?php
2499 2432
2500 2433 $placeholderPrivatekey = '{
2501 2434 "type": "service_account",
2502 - "project_id": "YOUR_PROJECT_ID",
2503 - "private_key_id": "YOUR_PRIVATE_KEY_ID",
2504 - "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----\n",
2505 - "client_email": "YOUR_CLIENT_EMAIL",
2506 - "client_id": "YOUR_CLIENT_ID",
2435 + "project_id": "PLACEYOUROWNID",
2436 + "private_key_id": "31e300128..........c48",
2437 + "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",
2438 + "client_email": "dialogflow-evysjn@wpbotpro.iam.gserviceaccount.com",
2439 + "client_id": "1026.....032997",
2507 2440 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
2508 2441 "token_uri": "https://oauth2.googleapis.com/token",
2509 2442 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
2510 - "client_x509_cert_url": "YOUR_CLIENT_X509_CERT_URL"
2443 + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dialogflow-evysjn%40wpbotpro.iam.gserviceaccount.com"
2511 2444 }';
2512 2445
2513 2446 ?>
2514 2447 <div class="form-group">