PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 7.3.2
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v7.3.2
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 +295 -543 8.6.07.3.2 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
@@ -43,9 +26,9 @@
43 26 <div class="qcld-wp-chatbot-wrap-header-doc">
44 27
45 28 <a href="https://wpbot.pro/docs/" target="_blank" class="qcld-wp-chatbot-wrap--doc_logo">
46 29 <img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/doc.jpg' ); ?>" alt="Dialogflow CX">
47 - <div class="docs_icon"><span class="dashicons dashicons-media-document"></span></div>
30 + <div class="docs_icon"><i class="fa fa-book" aria-hidden="true"></i></div>
48 31
49 32 </a>
50 33
51 34 <div class="qcld-wp-chatbot-wrap-header-doc-details">
@@ -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">
@@ -71,21 +54,19 @@
71 54 <section class="wp-chatbot-tab-container-inner">
72 55 <div class="wp-chatbot-tabs wp-chatbot-tabs-style-flip">
73 56 <nav>
74 57 <ul>
75 - <li class="tab-current" tab-data="started"><a href="<?php echo esc_url($action).'&tab=started' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-admin-home"></span> </span> <span class="wpwbot-admin-tab-name">
58 + <li class="tab-current" tab-data="started"><a href="<?php echo esc_url($action).'&tab=started' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-get-pocket"> </i> </span> <span class="wpwbot-admin-tab-name">
76 59 <?php esc_html_e('Getting Started', 'chatbot'); ?>
77 60 </span> </a></li>
78 - <li tab-data="general"><a href="<?php echo esc_url($action) .'&tab=general' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-admin-generic"></span></span> <span class="wpwbot-admin-tab-name">
61 + <li tab-data="general"><a href="<?php echo esc_url($action) .'&tab=general' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-toggle-on"> </i> </span> <span class="wpwbot-admin-tab-name">
79 62 <?php esc_html_e('General settings', 'chatbot'); ?>
80 63 </span> </a></li>
81 - <li tab-data="language"><a href="<?php echo esc_url($action) .'&tab=language' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-translation"></span> </span> <span class="wpwbot-admin-tab-name">
64 + <li tab-data="language"><a href="<?php echo esc_url($action) .'&tab=language' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-language"></i> </span> <span class="wpwbot-admin-tab-name">
82 65 <?php esc_html_e('Change Language', 'chatbot'); ?>
83 66 </span> </a></li>
84 - <li tab-data="social"><a href="<?php echo esc_url($action) .'&tab=social' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-image-filter"></span> </span> <span class="wpwbot-admin-tab-name">
85 - <?php esc_html_e('Button Configurations', 'chatbot'); ?>
86 - </span> </a></li>
87 - <div class="cxsc-settings_openai_border"> <a href="<?php echo esc_url( $action) .'_openAi' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-update"></span>
67 +
68 + <div class="cxsc-settings_openai_border"> <a href="<?php echo esc_url( $action) .'_openAi' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-gear"></i>
88 69 </span> <span class=""> <?php esc_html_e('AI Settings', 'chatbot'); ?> </span>
89 70 </a>
90 71 </div>
91 72
@@ -90,25 +71,25 @@
90 71 </div>
91 72
92 73
93 74
94 - <li tab-data="themes"><a href="<?php echo esc_url($action) .'&tab=themes' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-share-alt"></span> </span> <span class="wpwbot-admin-tab-name">
75 + <li tab-data="themes"><a href="<?php echo esc_url($action) .'&tab=themes' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-random"></i> </span> <span class="wpwbot-admin-tab-name">
95 76 <?php esc_html_e('Icons & Themes', 'chatbot'); ?>
96 77 </span> </a></li>
97 - <li tab-data="support"><a href="<?php echo esc_url($action).'&tab=support' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-info-outline"></span> </span> <span class="wpwbot-admin-tab-name">
78 + <li tab-data="support"><a href="<?php echo esc_url($action).'&tab=support' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-life-ring"></i> </span> <span class="wpwbot-admin-tab-name">
98 79 <?php esc_html_e('FAQ Builder', 'chatbot'); ?>
99 80 </span> </a></li>
100 - <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>
81 + <li tab-data="startmenu"><a href="<?php echo esc_url($action).'&tab=startmenu' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-bars"></i> </span> <span class="wpwbot-admin-tab-name"><?php esc_html_e('Start Menu', 'chatbot'); ?></span> </a></li>
101 82
102 83
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">
84 + <li tab-data="ai"><a href="<?php echo esc_url($action).'&tab=ai' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-500px"></i> </span> <span class="wpwbot-admin-tab-name">
104 85 <?php esc_html_e('Dialogflow', 'chatbot'); ?>
105 86 </span> </a></li>
106 87
107 88
108 89 <li tab-data="<?php echo esc_url('rpl'); ?>" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>">
109 - <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'); ?>
90 + <span class="wpwbot-admin-tab-icon"> <i class="fa fa-plug"></i>
91 + </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?>
111 92 </span>
112 93 </a>
113 94 </li>
114 95
@@ -114,10 +95,10 @@
114 95
115 96
116 97
117 98
118 - <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=custom_css'?>">
119 - <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-editor-code"></span>
99 + <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=ai'?>">
100 + <span class="wpwbot-admin-tab-icon"> <i class="fa fa-code"></i>
120 101 </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Custom CSS', 'chatbot'); ?></span>
121 102 </a>
122 103 </li>
123 104
@@ -142,9 +123,9 @@
142 123
143 124 <div class="text-center mt-5 qcld-Resetall">
144 125 <input type="button" class="btn btn-warning submit-button"
145 126 id="qcld-wp-chatbot-reset-option"
146 - value="<?php echo esc_attr__('Reset all options to Default', 'chatbot') ; ?>"/>
127 + value="<?php echo esc_html('Reset all options to Default') ; ?>"/>
147 128 </div>
148 129 </nav>
149 130
150 131
@@ -156,10 +137,10 @@
156 137
157 138 <div class="wrap qcld-swpm-admin-menu-wrap">
158 139 <div class="wrap qcld-swpm-admin-menu-wrap">
159 140 <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>
141 + <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html('Getting Started'); ?></a>
142 + <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html('WPBot – In a Nutshell'); ?></a>
162 143 </h3>
163 144 <div class="wppt-settings-section" id="general_int">
164 145 <div class="content form-container qcbot_help_secion" style="">
165 146 <!-- new Section -->
@@ -519,278 +500,159 @@
519 500 </div>
520 501 <?php } ?>
521 502
522 503 <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>
504 + <p class="d-ib"><i class="fa fa-check-square-o" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Getting Started section for how to create interactions.', 'chatbot'); ?></p>
505 + <p class="d-ib"><i class="fa fa-check-square-o" 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>
506 + <p class="d-ib"><i class="fa fa-check-square-o" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Help and Debugging section to troubleshoot common issues.', 'chatbot'); ?></p>
526 507 </div>
527 - </div>
528 - </div>
508 +
509 + <b>
510 + <!-- <p>Please see the plugin's Help and Debugging section to troubleshoot common issues.</p> -->
511 + </b>
512 +
529 513
530 -
531 -
532 -
533 - <div class="row">
534 - <div class="col-xs-6">
535 - <div class="cxsc-settings-blocks">
536 - <div class="form-group" style=" min-height: 150px;">
514 + <div class="cxsc-settings-blocks">
515 + <div class="form-group">
537 516 <?php
538 - $qcld_wpbot_url = get_site_url();
539 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
540 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
541 - $qcld_wpbot_admin_email = get_option('admin_email');
517 + $url = get_site_url();
518 + $url = wp_parse_url($url);
519 + $domain = $url['host'];
520 +
521 + $admin_email = get_option('admin_email');
542 522 ?>
543 523 <h4 class="qc-opt-title"><?php esc_html_e('Emails Will be Sent to', 'chatbot'); ?></h4>
544 524 <input type="text" class="form-control qc-opt-dcs-font"
545 - name="qlcd_wp_chatbot_admin_email"
546 - value="<?php echo (get_option('qlcd_wp_chatbot_admin_email') != '' ? esc_attr(get_option('qlcd_wp_chatbot_admin_email')) : esc_attr(sanitize_email($qcld_wpbot_admin_email)) ); ?>">
547 - <label class="qcld_label_width_full qcld_label_width_half" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'chatbot'); ?> </label>
525 + name="qlcd_wp_chatbot_admin_email"
526 + value="<?php echo (get_option('qlcd_wp_chatbot_admin_email') != '' ? esc_attr(get_option('qlcd_wp_chatbot_admin_email')) : sanitize_email($admin_email) ) ?>">
527 + <label class="qcld_label_width_full" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'chatbot'); ?> </label>
548 528 </div>
549 529 </div>
530 + <div class="cxsc-settings-blocks">
531 + <div class="form-group">
532 + <?php
533 + $url = get_site_url();
534 + $url = wp_parse_url($url);
535 + $domain = $url['host'];
536 + $fromEmail = "wordpress@" . $domain;
537 + ?>
538 + <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
539 + <input type="text" class="form-control qc-opt-dcs-font"
540 + name="qlcd_wp_chatbot_from_email"
541 + value="<?php echo (get_option('qlcd_wp_chatbot_from_email') != '' ? esc_attr( get_option('qlcd_wp_chatbot_from_email')) : sanitize_email($fromEmail)); ?> ">
542 + <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>
543 + </div>
550 544 </div>
551 - <div class="col-xs-6">
552 - <div class="cxsc-settings-blocks">
553 - <div class="form-group">
554 - <?php
555 - $qcld_wpbot_url = get_site_url();
556 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
557 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
558 - $qcld_wpbot_from_email = "wordpress@" . $qcld_wpbot_domain;
559 - ?>
560 - <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
561 - <input type="text" class="form-control qc-opt-dcs-font"
562 - name="qlcd_wp_chatbot_from_email"
563 - value="<?php echo (get_option('qlcd_wp_chatbot_from_email') != '' ? esc_attr( get_option('qlcd_wp_chatbot_from_email')) : esc_attr(sanitize_email($qcld_wpbot_from_email))); ?> ">
564 - <label class="qcld_label_width_full qcld_label_width_half" for="qlcd_wp_chatbot_from_email"><?php esc_html_e('All emails will be sent from this email address. If you change the From Email Address then please make sure the domain remains the same as where WordPress is installed. Otherwise, the emails may not be received.', 'chatbot'); ?> </label>
545 + </div>
546 + </div>
547 + <div class="row">
548 + <div class="col-xs-12">
549 + <div class="cxsc-settings-blocks">
550 + <div class="form-group">
551 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </h4>
552 + <div class="cxsc-settings-blocks">
553 + <input value="1" id="skip_wp_greetings" type="checkbox"
554 + name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
555 + <label for="skip_wp_greetings"><?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </label>
556 + </div>
565 557 </div>
566 558 </div>
567 - </div>
568 559 </div>
569 - <style>
570 - .wpbot-cards-grid {
571 - display: grid;
572 - grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
573 - gap: 20px;
574 - margin-bottom: 20px;
575 - margin-top: 20px;
576 - }
577 - .wpbot-checkbox-card {
578 - cursor: pointer;
579 - display: block;
580 - position: relative;
581 - margin: 0;
582 - }
583 - .wpbot-checkbox-card input[type="checkbox"] {
584 - position: absolute;
585 - opacity: 0;
586 - width: 0;
587 - height: 0;
588 - }
589 - .wpbot-checkbox-card .card-body {
590 - border: 1px solid #e2e8f0;
591 - border-radius: 12px;
592 - padding: 20px;
593 - background: #f8fafc;
594 - transition: all 0.2s ease;
595 - height: 100%;
596 - box-sizing: border-box;
597 - display: flex;
598 - flex-direction: column;
599 - position: relative;
600 - }
601 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body {
602 - border-color: #5b4e96;
603 - background: #eff6ff;
604 - box-shadow: 0 0 0 1px #5b4e96, 0 8px 24px rgba(37, 99, 235, 0.15);
605 - }
606 - .wpbot-checkbox-card .check-icon {
607 - position: absolute;
608 - top: 30px;
609 - right: 16px;
610 - width: 24px;
611 - height: 24px;
612 - border-radius: 50%;
613 - background: #f8fafc;
614 - border: 2px solid #e2e8f0;
615 - display: flex;
616 - align-items: center;
617 - justify-content: center;
618 - transition: all 0.2s ease;
619 - z-index: 2;
620 - }
621 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon {
622 - background: #5b4e96;
623 - border-color: #5b4e96;
624 - }
625 - .wpbot-checkbox-card .check-icon svg {
626 - width: 14px;
627 - height: 14px;
628 - stroke: #e2e8f0;
629 - stroke-width: 3;
630 - stroke-linecap: round;
631 - stroke-linejoin: round;
632 - fill: none;
633 - transition: stroke 0.2s ease;
634 - }
635 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon svg {
636 - stroke: white;
637 - }
638 - .wpbot-checkbox-card .icon-wrapper {
639 - width: 48px;
640 - height: 48px;
641 - border-radius: 12px;
642 - background: #ffffff;
643 - border: 1px solid #e2e8f0;
644 - display: flex;
645 - align-items: center;
646 - justify-content: center;
647 - margin-bottom: 16px;
648 - color: #64748b;
649 - }
650 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .icon-wrapper {
651 - border-color: #e0e7ff;
652 - background: #f0fdf4;
653 - color: #5b4e96;
654 - }
655 - .wpbot-checkbox-card h4 {
656 - margin: 0 0 8px 0 !important;
657 - font-size: 16px !important;
658 - font-weight: 600 !important;
659 - color: #1e293b !important;
660 - line-height: 1.4 !important;
661 - }
662 - .wpbot-checkbox-card p {
663 - margin: 0 !important;
664 - font-size: 14px !important;
665 - color: #64748b !important;
666 - line-height: 1.5 !important;
667 - }
668 - .wpbot-cards-grid-divider {
669 - height: 1px;
670 - width: 100%;
671 - background: #eee;
672 - }
673 - </style>
560 + </div>
674 561
675 562 <div class="row">
676 563 <div class="col-xs-12">
677 -
678 - <div class="wpbot-cards-grid-divider"></div>
679 -
680 - <div class="wpbot-cards-grid">
681 - <label class="wpbot-checkbox-card">
682 - <input value="1" id="enable_asking_for_email" type="checkbox" name="enable_asking_for_email" <?php echo (get_option('enable_asking_for_email') == 1 ? esc_attr('checked' ): ''); ?>>
683 - <div class="card-body">
684 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
685 - <div class="icon-wrapper"><i class="dashicons dashicons-email" style="font-size:24px;width:24px;height:24px;"></i></div>
686 - <h4><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></h4>
687 - <p><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></p>
688 - </div>
689 - </label>
564 + <div class="cxsc-settings-blocks">
565 + <div class="form-group">
566 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </h4>
567 + <div class="cxsc-settings-blocks">
568 + <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox"
569 + name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
570 + <label for="skip_wp_greetings_donot_show_menu"><?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </label>
571 + </div>
690 572 </div>
691 - <div class="wpbot-cards-grid-divider"></div>
692 - <div class="wpbot-cards-grid">
693 - <label class="wpbot-checkbox-card">
694 - <input value="1" id="skip_wp_greetings" type="checkbox" name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
695 - <div class="card-body">
696 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
697 - <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div>
698 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Show Start Menu", 'chatbot'); ?></h4>
699 - <p><?php echo esc_html__("Skip asking for name, Email and directly show the Start Menu.", 'chatbot'); ?></p>
700 - </div>
701 - </label>
702 - <label class="wpbot-checkbox-card">
703 - <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox" name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
704 - <div class="card-body">
705 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
706 - <div class="icon-wrapper"><i class="dashicons dashicons-hidden" style="font-size:24px;width:24px;height:24px;"></i></div>
707 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Disable Start Menu", 'chatbot'); ?></h4>
708 - <p><?php echo esc_html__("Skip asking for name, Email and disable the Start Menu.", 'chatbot'); ?></p>
709 - </div>
710 - </label>
711 - <label class="wpbot-checkbox-card">
712 - <input value="1" id="show_menu_after_greetings" type="checkbox" name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
713 - <div class="card-body">
714 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
715 - <div class="icon-wrapper"><i class="dashicons dashicons-menu-alt" style="font-size:24px;width:24px;height:24px;"></i></div>
716 - <h4><?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?></h4>
717 - <p><?php esc_html_e('Show Start Menu immediately after greetings.', 'chatbot'); ?></p>
718 - </div>
719 - </label>
573 + </div>
574 + </div>
575 + </div>
576 + <div class="row">
577 + <div class="col-xs-12">
578 + <div class="form-group">
579 + <h4 class="qc-opt-title">
580 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
581 + </h4>
582 + <div class="cxsc-settings-blocks">
583 + <input value="1" id="show_menu_after_greetings" type="checkbox"
584 + name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
585 + <label for="show_menu_after_greetings">
586 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
587 + </label>
720 588 </div>
721 - <div class="wpbot-cards-grid-divider"></div>
722 - <div class="wpbot-cards-grid">
723 - <label class="wpbot-checkbox-card">
724 - <input value="1" id="disable_back_to_start_menu" type="checkbox" name="disable_back_to_start_menu" <?php echo (get_option('disable_back_to_start_menu') == 1 ? esc_attr('checked' ): ''); ?>>
725 - <div class="card-body">
726 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
727 - <div class="icon-wrapper"><i class="dashicons dashicons-undo" style="font-size:24px;width:24px;height:24px;"></i></div>
728 - <h4><?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?></h4>
729 - <p><?php esc_html_e('Remove the option to go back to the Start Menu.', 'chatbot'); ?></p>
730 - </div>
731 - </label>
589 + </div>
732 590 </div>
733 - <div class="wpbot-cards-grid-divider"></div>
734 - <div class="wpbot-cards-grid">
735 -
736 -
737 - <label class="wpbot-checkbox-card">
738 - <input value="1" id="enable_wp_chatbot_rtl" type="checkbox" name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
739 - <div class="card-body">
740 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
741 - <div class="icon-wrapper"><i class="dashicons dashicons-editor-rtl" style="font-size:24px;width:24px;height:24px;"></i></div>
742 - <h4><?php esc_html_e('Enable RTL', 'chatbot'); ?></h4>
743 - <p><?php esc_html_e('Enable Right to Left language support for Chat.', 'chatbot'); ?></p>
744 - </div>
745 - </label>
746 -
747 -
748 - <label class="wpbot-checkbox-card">
749 - <input value="1" id="wpbot_enable_on_search" type="checkbox" name="wpbot_enable_on_search" <?php echo (get_option('wpbot_enable_on_search') == 1 ? esc_attr('checked') : ''); ?>>
750 - <div class="card-body">
751 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
752 - <div class="icon-wrapper"><i class="dashicons dashicons-search" style="font-size:24px;width:24px;height:24px;"></i></div>
753 - <h4><?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?></h4>
754 - <p><?php esc_html_e('Enable Chatbot on WordPress search pages.', 'chatbot'); ?></p>
755 - </div>
756 - </label>
757 -
758 - <label class="wpbot-checkbox-card">
759 - <input value="1" id="open_links_new_window" type="checkbox" name="open_links_new_window" <?php echo (get_option('open_links_new_window') == 1 ? esc_attr('checked'): ''); ?>>
760 - <div class="card-body">
761 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
762 - <div class="icon-wrapper"><i class="dashicons dashicons-external" style="font-size:24px;width:24px;height:24px;"></i></div>
763 - <h4><?php esc_html_e('Links in New Window', 'chatbot'); ?></h4>
764 - <p><?php esc_html_e('Open all Chatbot links in a new browser window.', 'chatbot'); ?></p>
765 - </div>
766 - </label>
767 - </div>
768 - <div class="wpbot-cards-grid-divider"></div>
769 - <div class="wpbot-cards-grid">
770 - <label class="wpbot-checkbox-card">
771 - <input value="1" id="disable_floating_button" type="checkbox" name="disable_floating_button" <?php echo (get_option('disable_floating_button') == 1 ? esc_attr('checked' ): ''); ?>>
772 - <div class="card-body">
773 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
774 - <div class="icon-wrapper"><i class="dashicons dashicons-dismiss" style="font-size:24px;width:24px;height:24px;"></i></div>
775 - <h4><?php esc_html_e('Disable Floating Button', 'chatbot'); ?></h4>
776 - <p><?php esc_html_e('Hide the chatbot floating icon from your website.', 'chatbot'); ?></p>
777 - </div>
778 - </label>
779 - <label class="wpbot-checkbox-card">
780 - <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox" name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
781 - <div class="card-body">
782 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
783 - <div class="icon-wrapper"><i class="dashicons dashicons-smartphone" style="font-size:24px;width:24px;height:24px;"></i></div>
784 - <h4><?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?></h4>
785 - <p><?php esc_html_e('Disable WPBot from loading on mobile devices.', 'chatbot'); ?></p>
786 - </div>
787 - </label>
591 + </div>
592 + <div class="row">
593 + <div class="col-xs-12">
594 + <div class="form-group">
595 + <h4 class="qc-opt-title">
596 + <?php esc_html_e('Disable WPBot', 'chatbot'); ?>
597 + </h4>
598 + <div class="cxsc-settings-blocks">
599 + <input value="1" id="disable_wp_chatbot" type="checkbox"
600 + name="disable_wp_chatbot" <?php echo (get_option('disable_wp_chatbot') == 1 ? esc_attr('checked'): ''); ?>>
601 + <label for="disable_wp_chatbot">
602 + <?php esc_html_e('Disable WPBot to Load', 'chatbot'); ?>
603 + </label>
788 604 </div>
789 -
790 -
791 605 </div>
792 606 </div>
607 + </div>
608 + <div class="row">
609 + <div class="col-xs-12">
610 + <div class="form-group">
611 + <h4 class="qc-opt-title">
612 + <?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?>
613 + </h4>
614 + <div class="cxsc-settings-blocks">
615 + <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox"
616 + name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
617 + <label for="disable_wp_chatbot_on_mobile">
618 + <?php esc_html_e('Disable WpBot to Load on Mobile Device', 'chatbot'); ?>
619 + </label>
620 + </div>
621 + </div>
622 + </div>
623 + </div>
624 + <div class="row">
625 + <div class="col-xs-12">
626 + <div class="form-group">
627 + <h4 class="qc-opt-title">
628 + <?php esc_html_e('Enable RTL', 'chatbot'); ?>
629 + </h4>
630 + <div class="cxsc-settings-blocks">
631 + <input value="1" id="enable_wp_chatbot_rtl" type="checkbox"
632 + name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
633 + <label for="enable_wp_chatbot_rtl">
634 + <?php esc_html_e('Enable RTL (Right to Left language) Support for Chat', 'chatbot'); ?>
635 + </label>
636 + </div>
637 + </div>
638 + </div>
639 +</div>
640 + <div class="row">
641 + <div class="col-xs-12">
642 + <div class="form-group">
643 + <h4 class="qc-opt-title">
644 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
645 + </h4>
646 + <div class="cxsc-settings-blocks">
647 + <input value="1" id="open_links_new_window" type="checkbox" name="open_links_new_window" <?php echo (get_option('open_links_new_window') == 1 ? esc_attr('checked'): ''); ?>>
648 + <label for="open_links_new_window">
649 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
650 + </label>
651 + </div>
652 + </div>
653 + </div>
654 +</div>
793 655
794 656 <div class="row">
795 657 <div class="col-xs-12">
796 658 <div class="form-group">
@@ -797,9 +659,9 @@
797 659 <h4 class="qc-opt-title"><?php esc_html_e('Bot Response Delay', 'chatbot'); ?> </h4>
798 660 <div class="cxsc-settings-blocks">
799 661 <select name="wpbot_preloading_time" id="wpbot_preloading_time">
800 662 <?php $current_preloading_time = get_option('wpbot_preloading_time'); ?>
801 - <option value="100" <?php selected($current_preloading_time, '100'); ?>><?php esc_html_e('0.1 Second', 'chatbot'); ?></option>
663 + <option value="100" <?php selected($current_preloading_time, '100'); ?>><?php esc_html_e('0 Second', 'chatbot'); ?></option>
802 664 <option value="500" <?php selected($current_preloading_time, '500'); ?>><?php esc_html_e('0.5 Second', 'chatbot'); ?></option>
803 665 <option value="1000" <?php selected($current_preloading_time, '1000'); ?>><?php esc_html_e('1 Second', 'chatbot'); ?></option>
804 666 <option value="2000" <?php selected($current_preloading_time, '2000'); ?>><?php esc_html_e('2 Second', 'chatbot'); ?></option>
805 667 <option value="3000" <?php selected($current_preloading_time, '3000'); ?>><?php esc_html_e('3 Second', 'chatbot'); ?></option>
@@ -827,17 +689,17 @@
827 689 }
828 690 ?>
829 691 <input type="number" class="qc-opt-dcs-font"
830 692 name="wp_chatbot_position_x"
831 - value="<?php echo esc_attr($qcld_wb_chatbot_position_x);?>"
832 - placeholder="<?php esc_attr_e('From Right In ', 'chatbot'); ?>">
693 + value="<?php echo esc_html($qcld_wb_chatbot_position_x);?>"
694 + placeholder="<?php esc_html_e('From Right In ', 'chatbot'); ?>">
833 695 <span class="qc-opt-dcs-font">
834 696 <?php esc_html_e('From Right In px', 'chatbot'); ?>
835 697 </span>
836 698 <input type="number" class="qc-opt-dcs-font"
837 699 name="wp_chatbot_position_y"
838 - value="<?php echo esc_attr($qcld_wb_chatbot_position_y); ?>"
839 - placeholder="<?php esc_attr_e('From Bottom In Px', 'chatbot'); ?> ">
700 + value="<?php echo esc_html($qcld_wb_chatbot_position_y); ?>"
701 + placeholder="<?php esc_html_e('From Bottom In Px', 'chatbot'); ?> ">
840 702 <span class="qc-opt-dcs-font">
841 703 <?php esc_html_e('From Bottom In px', 'chatbot'); ?>
842 704 </span> </div>
843 705 </div>
@@ -923,14 +785,14 @@
923 785 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
924 786 ?>
925 787 <li>
926 788 <input id="<?php echo esc_attr('wp_chatbot_show_page_'. $wp_chatbot_page->ID ); ?>"
927 - type="checkbox"
928 - name="wp_chatbot_show_pages_list[]"
929 - value="<?php echo esc_attr($wp_chatbot_page->ID); ?>" <?php if (!empty($wp_chatbot_select_pages) && in_array($wp_chatbot_page->ID, $wp_chatbot_select_pages) == true) {
930 - echo esc_attr('checked');
931 - } ?> >
932 - <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label>
789 + type="checkbox"
790 + name="wp_chatbot_show_pages_list[]"
791 + 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) {
792 + echo esc_attr('checked');
793 + } ?> >
794 + <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label>
933 795 </li>
934 796 <?php } ?>
935 797 </ul>
936 798 </div>
@@ -972,11 +834,30 @@
972 834 </div>
973 835 </div>
974 836 </div>
975 837
838 +
839 +
840 +
976 841 </div>
977 842 </div>
978 843 </div>
844 +
845 +
846 +
847 +
848 +
849 +
850 +
851 +
852 +
853 +
854 +
855 +
856 +
857 +
858 +
859 +
979 860 <!-- cxsc-settings-blocks-->
980 861 </div>
981 862 <!-- col-xs-12-->
982 863 </div>
@@ -984,68 +865,13 @@
984 865
985 866 </div>
986 867 <!-- top-section-->
987 868 </section>
988 - <section id="section-flip-5">
869 + <section id="section-flip-5">
870 + <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
871 + <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'); ?>
872 + </div> -->
989 873 <div class="wp-chatbot-language-center-summmery"> </div>
990 - <div class="row">
991 - <div class="col-md-12">
992 - <h4 class="qc-opt-title"><b><?php echo esc_html__( 'Change Language', 'chatbot'); ?></b></h4>
993 - <!-- Language Selection Dropdown -->
994 - <div class="cxsc-settings-blocks mb-6">
995 - <div class="form-group">
996 - <label for="qcld_language_center_select" class="block text-sm font-medium text-gray-700 mb-2 qc-opt-language-title">
997 - <?php echo esc_html__( 'Select a Language:', 'chatbot'); ?>
998 - </label>
999 - <select id="qcld_language_center_select" class="form-select" onchange="qcld_wpbot_languageChange_from_center(this.value)">
1000 - <option value=""> <?php echo esc_html__( '-- Choose a language --', 'chatbot'); ?></option>
1001 - <option value="arabic" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'arabic' ? 'selected' : '' ?>><?php echo esc_html__( 'Arabic (ar)', 'chatbot'); ?></option>
1002 - <option value="bulgarian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'bulgarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Bulgarian (bg)', 'chatbot'); ?></option>
1003 - <option value="chinese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese (zh)', 'chatbot'); ?></option>
1004 - <option value="chinese_mandarin" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese_mandarin' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese Mandarin (cmn)', 'chatbot'); ?></option>
1005 - <option value="danish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'danish' ? 'selected' : '' ?>><?php echo esc_html__( 'Danish (da)', 'chatbot'); ?></option>
1006 - <option value="dutch" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'dutch' ? 'selected' : '' ?>><?php echo esc_html__( 'Dutch (nl)', 'chatbot'); ?></option>
1007 - <option value="english" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'english' ? 'selected' : '' ?>><?php echo esc_html__( 'English (en)', 'chatbot'); ?></option>
1008 - <option value="estonian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'estonian' ? 'selected' : '' ?>><?php echo esc_html__( 'Estonian (et)', 'chatbot'); ?></option>
1009 - <option value="filipino" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'filipino' ? 'selected' : '' ?>><?php echo esc_html__( 'Filipino (fil)', 'chatbot'); ?></option>
1010 - <option value="french" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'french' ? 'selected' : '' ?>><?php echo esc_html__( 'French (fr)', 'chatbot'); ?></option>
1011 - <option value="german" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'german' ? 'selected' : '' ?>><?php echo esc_html__( 'German (de)', 'chatbot'); ?></option>
1012 - <option value="greek" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'greek' ? 'selected' : '' ?>><?php echo esc_html__( 'Greek (el)', 'chatbot'); ?></option>
1013 - <option value="hebrew" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hebrew' ? 'selected' : '' ?>><?php echo esc_html__( 'Hebrew (he)', 'chatbot'); ?></option>
1014 - <option value="hindi" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hindi' ? 'selected' : '' ?>><?php echo esc_html__( 'Hindi (hi)', 'chatbot'); ?></option>
1015 - <option value='hungarian' <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hungarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Hungarian (hu)', 'chatbot'); ?></option>
1016 - <option value="indonesian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'indonesian' ? 'selected' : '' ?>><?php echo esc_html__( 'Indonesian (id)', 'chatbot'); ?></option>
1017 - <option value="italian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'italian' ? 'selected' : '' ?>><?php echo esc_html__( 'Italian (it)', 'chatbot'); ?></option>
1018 - <option value="japanese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'japanese' ? 'selected' : '' ?>><?php echo esc_html__( 'Japanese (ja)', 'chatbot'); ?></option>
1019 - <option value="korean" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'korean' ? 'selected' : '' ?>><?php echo esc_html__( 'Korean (ko)', 'chatbot'); ?></option>
1020 - <option value="lithuanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'lithuanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Lithuanian (lt)', 'chatbot'); ?></option>
1021 - <option value="malay" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'malay' ? 'selected' : '' ?>><?php echo esc_html__( 'Malay (ms)', 'chatbot'); ?></option>
1022 - <option value="norwegian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'norwegian' ? 'selected' : '' ?>><?php echo esc_html__( 'Norwegian (no)', 'chatbot'); ?></option>
1023 - <option value="persian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'persian' ? 'selected' : '' ?>><?php echo esc_html__( 'Persian (fa)', 'chatbot'); ?></option>
1024 - <option value="polish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'polish' ? 'selected' : '' ?>><?php echo esc_html__( 'Polish (pl)', 'chatbot'); ?></option>
1025 - <option value="portuguese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'portuguese' ? 'selected' : '' ?>><?php echo esc_html__( 'Portuguese (pt)', 'chatbot'); ?></option>
1026 - <option value="romanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'romanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Romanian (ro)', 'chatbot'); ?></option>
1027 - <option value="russian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'russian' ? 'selected' : '' ?>><?php echo esc_html__( 'Russian (ru)', 'chatbot'); ?></option>
1028 - <option value="sinhala" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'sinhala' ? 'selected' : '' ?>><?php echo esc_html__( 'Sinhala (si)', 'chatbot'); ?></option>
1029 - <option value="spanish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'spanish' ? 'selected' : '' ?>><?php echo esc_html__( 'Spanish (es)', 'chatbot'); ?></option>
1030 - <option value="swedish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'swedish' ? 'selected' : '' ?>><?php echo esc_html__( 'Swedish (sv)', 'chatbot'); ?></option>
1031 - <option value="thai" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'thai' ? 'selected' : '' ?>><?php echo esc_html__( 'Thai (th)', 'chatbot'); ?></option>
1032 - <option value="turkish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'turkish' ? 'selected' : '' ?>><?php echo esc_html__( 'Turkish (tr)', 'chatbot'); ?></option>
1033 - <option value="ukrainian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'ukrainian' ? 'selected' : '' ?>><?php echo esc_html__( 'Ukrainian (uk)', 'chatbot'); ?></option>
1034 - <option value="vietnamese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'vietnamese' ? 'selected' : '' ?>><?php echo esc_html__( 'Vietnamese (vi)', 'chatbot'); ?></option>
1035 - <option value="not_mine" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'not_mine' ? 'selected' : '' ?>><?php echo esc_html__( 'My language is not here', 'chatbot'); ?></option>
1036 - </select>
1037 - <!-- Results Display Area -->
1038 - <div id="results-container" class="mt-8 p-4 flex items-center justify-center text-gray-600">
1039 - <p id="initial-message">
1040 - <?php echo esc_html__( 'Select your language to auto translate the texts used by the ChatBot. You can fine tune and update them manually from below.', 'chatbot'); ?> <b><?php echo esc_html__( 'Remember to Save the Settings.', 'chatbot'); ?></b>
1041 - </p>
1042 - <p id="waring-message"></p>
1043 - </div>
1044 - </div>
1045 - </div>
1046 - </div>
1047 - </div>
1048 874 <ul class="nav nav-tabs">
1049 875 <li class="active"><a data-toggle="tab" href="#wp-chatbot-lng-general">
1050 876 <?php esc_html_e('General', 'chatbot'); ?>
1051 877 </a></li>
@@ -1058,9 +884,8 @@
1058 884 </ul>
1059 885 <div class="tab-content">
1060 886 <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
1061 887 <div class="top-section">
1062 -
1063 888 <div class="row">
1064 889 <div class="col-xs-12" id="wp-chatbot-language-section">
1065 890 <p style="color: red"><b><?php esc_html_e('You can change ALL the texts used by the ChatBot to YOUR OWN language here (like Spanish, French etc.).', 'chatbot' ); ?></b></p>
1066 891 <p><?php esc_html_e('After making changes in the language center or settings, please type reset and hit enter in the ChatBot to start testing from the beginning or open a new Incognito window (Ctrl+Shit+N in chrome).', 'chatbot' ); ?></p>
@@ -1070,9 +895,9 @@
1070 895 <?php esc_html_e('Your Company or Website Name', 'chatbot'); ?>
1071 896 </h4>
1072 897 <input type="text" class="form-control qc-opt-dcs-font"
1073 898 name="qlcd_wp_chatbot_host"
1074 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?>">
899 + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?> ">
1075 900 </div>
1076 901 <div class="form-group">
1077 902 <h4 class="qc-opt-title">
1078 903 <?php esc_html_e('Agent name', 'chatbot'); ?>
@@ -1078,9 +903,9 @@
1078 903 <?php esc_html_e('Agent name', 'chatbot'); ?>
1079 904 </h4>
1080 905 <input type="text" class="form-control qc-opt-dcs-font"
1081 906 name="qlcd_wp_chatbot_agent"
1082 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie')); ?>">
907 + value="<?php echo (get_option('qlcd_wp_chatbot_agent') != '' ? esc_attr(get_option('qlcd_wp_chatbot_agent')) : 'Carrie'); ?>">
1083 908 </div>
1084 909 <div class="form-group">
1085 910 <h4 class="qc-opt-title">
1086 911 <?php esc_html_e('User demo name', 'chatbot'); ?>
@@ -1086,9 +911,9 @@
1086 911 <?php esc_html_e('User demo name', 'chatbot'); ?>
1087 912 </h4>
1088 913 <input type="text" class="form-control qc-opt-dcs-font"
1089 914 name="qlcd_wp_chatbot_shopper_demo_name"
1090 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?>">
915 + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?> ">
1091 916 </div>
1092 917 <div class="form-group">
1093 918 <h4 class="qc-opt-title">
1094 919 <?php esc_html_e('YES', 'chatbot'); ?>
@@ -1120,9 +945,8 @@
1120 945 <input type="text" class="form-control qc-opt-dcs-font "
1121 946 name="qlcd_wp_chatbot_sorry"
1122 947 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sorry') != '' ? get_option('qlcd_wp_chatbot_sorry') : 'Sorry')); ?>">
1123 948 </div>
1124 -
1125 949 <div class="form-group">
1126 950 <?php
1127 951 $agent_join_options = maybe_unserialize(get_option('qlcd_wp_chatbot_agent_join'));
1128 952 $agent_join_option = 'qlcd_wp_chatbot_agent_join';
@@ -1472,90 +1296,8 @@
1472 1296 </div>
1473 1297 </div>
1474 1298 <!-- tab-content-->
1475 1299 </section>
1476 - <section id="section-flip-51">
1477 - <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1478 - <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'); ?>
1479 - </div> -->
1480 - <div class="wp-chatbot-socail-btn-summmery"> </div>
1481 -
1482 - <div class="tab-content">
1483 - <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
1484 - <div class="top-section">
1485 - <div class="row">
1486 - <div class="col-xs-12" id="wp-chatbot-socila-btn">
1487 -
1488 -
1489 -
1490 - <div class="form-group">
1491 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Reactions for analytics (Like & Dislike)', 'chatbot' ); ?> </h4>
1492 - <div class="cxsc-settings-blocks">
1493 - <input value="1" id="skip_chat_reactions_menu" type="checkbox"
1494 - name="skip_chat_reactions_menu" <?php echo( get_option( 'skip_chat_reactions_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1495 - <label for="skip_chat_reactions_menu"><?php echo esc_html__( 'Enable Chat Reactions for analytics (Like & Dislike)', 'chatbot' ); ?> </label>
1496 - </div>
1497 - </div>
1498 - <div class="form-group">
1499 - <h4 class="qc-opt-title">
1500 - <?php esc_html_e('Like Text', 'chatbot'); ?>
1501 - </h4>
1502 - <input type="text" class="form-control qc-opt-dcs-font "
1503 - name="qlcd_wp_chatbot_like_text"
1504 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_like_text') != '' ? get_option('qlcd_wp_chatbot_like_text') : 'Like')); ?>">
1505 - </div>
1506 - <div class="form-group">
1507 - <h4 class="qc-opt-title">
1508 - <?php esc_html_e('Dislike Text', 'chatbot'); ?>
1509 - </h4>
1510 - <input type="text" class="form-control qc-opt-dcs-font "
1511 - name="qlcd_wp_chatbot_dislike_text"
1512 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dislike_text') != '' ? get_option('qlcd_wp_chatbot_dislike_text') : 'Dislike')); ?>">
1513 - </div>
1514 -
1515 - <div class="form-group">
1516 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </h4>
1517 - <div class="cxsc-settings-blocks">
1518 - <input value="1" id="enable_chat_report_menu" type="checkbox"
1519 - name="enable_chat_report_menu" <?php echo( get_option( 'enable_chat_report_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1520 - <label for="enable_chat_report_menu"><?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </label>
1521 - </div>
1522 - </div>
1523 - <div class="form-group">
1524 - <h4 class="qc-opt-title">
1525 - <?php esc_html_e('Report this Message', 'chatbot'); ?>
1526 - </h4>
1527 - <input type="text" class="form-control qc-opt-dcs-font "
1528 - name="qlcd_wp_chatbot_report_text"
1529 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_report_text') != '' ? get_option('qlcd_wp_chatbot_report_text') : 'Report')); ?>">
1530 - </div>
1531 - <div class="form-group">
1532 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </h4>
1533 - <div class="cxsc-settings-blocks">
1534 - <input value="1" id="enable_chat_share_menu" type="checkbox"
1535 - name="enable_chat_share_menu" <?php echo( get_option( 'enable_chat_share_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1536 - <label for="enable_chat_share_menu"><?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </label>
1537 - </div>
1538 - </div>
1539 - <div class="form-group">
1540 - <h4 class="qc-opt-title">
1541 - <?php esc_html_e('Share', 'chatbot'); ?>
1542 - </h4>
1543 - <input type="text" class="form-control qc-opt-dcs-font "
1544 - name="qlcd_wp_chatbot_share_text"
1545 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_share_text') != '' ? get_option('qlcd_wp_chatbot_share_text') : 'Share')); ?>">
1546 - </div>
1547 -
1548 - </div>
1549 -
1550 - </div>
1551 - </div>
1552 - </div>
1553 -
1554 - </div>
1555 - <!-- tab-content-->
1556 - </section>
1557 -
1558 1300 <section id="section-flip-3">
1559 1301 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1560 1302 <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'); ?>
1561 1303 </div> -->
@@ -1818,29 +1560,8 @@
1818 1560 </div>
1819 1561 </div>
1820 1562 <div id="top-section">
1821 1563 <div class="form-group">
1822 - <!-- Avatar Location Section -->
1823 - <div class="avatar-location-wrapper">
1824 - <h4 class="qc-opt-title"><?php esc_html_e('Avatar Location', 'chatbot'); ?></h4>
1825 - <?php $avatar_location = get_option('qcld_chatbot_avatar_location'); ?>
1826 - <input type="hidden" id="qcld-avatar-location" name="qcld_chatbot_avatar_location" value="<?php echo esc_attr($avatar_location); ?>">
1827 - <div class="avatar-location-cards">
1828 - <div class="avatar-location-card <?php echo ($avatar_location === 'inside') ? 'active' : ''; ?>" data-location="inside">
1829 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
1830 - <span><?php esc_html_e('Inside', 'chatbot'); ?></span>
1831 - </div>
1832 - <div class="avatar-location-card <?php echo ($avatar_location === 'side') ? 'active' : ''; ?>" data-location="side">
1833 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><line x1="9" y1="3" x2="9" y2="21"/></svg>
1834 - <span><?php esc_html_e('Side', 'chatbot'); ?></span>
1835 - </div>
1836 - <div class="avatar-location-card <?php echo ($avatar_location === 'hidden') ? 'active' : ''; ?>" data-location="hidden">
1837 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/></svg>
1838 - <span><?php esc_html_e('Hidden', 'chatbot'); ?></span>
1839 - </div>
1840 - </div>
1841 - </div>
1842 - <!-- End Avatar Location Section -->
1843 1564 <div class="row">
1844 1565 <div class="col-sm-12">
1845 1566 <h4 class="qc-opt-title">
1846 1567 <?php esc_html_e('WPBot Themes', 'chatbot'); ?>
@@ -1897,9 +1618,9 @@
1897 1618 <div class="cxsc-settings-blocks">
1898 1619 <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
1899 1620 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>>
1900 1621 <label for="enable_wp_chatbot_custom_color">
1901 - <?php esc_html_e('Enable Custom Styles ', 'chatbot'); ?>
1622 + <?php esc_html_e('Enable Style Colors ', 'chatbot'); ?>
1902 1623 </label>
1903 1624 </div>
1904 1625 </div>
1905 1626 </div>
@@ -1959,9 +1680,9 @@
1959 1680 <?php esc_html_e('Bot Message Text Color.', 'chatbot'); ?>
1960 1681 </h4>
1961 1682 <input id="wp_chatbot_bot_msg_text_color" type="text"
1962 1683 name="wp_chatbot_bot_msg_text_color"
1963 - value="<?php echo esc_attr((get_option('wp_chatbot_bot_msg_text_color') != '' ? get_option('wp_chatbot_bot_msg_text_color') : '#ffffff')); ?>"/>
1684 + value="<?php echo esc_attr((get_option('c') != '' ? get_option('wp_chatbot_bot_msg_text_color') : '#ffffff')); ?>"/>
1964 1685 </div>
1965 1686 </div>
1966 1687 </div>
1967 1688 <div class="col-xs-6">
@@ -2193,9 +1914,9 @@
2193 1914 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
2194 1915 ?>
2195 1916 <div class="row"> <span class="pull-right"> </span>
2196 1917 <div class="col-xs-12">
2197 - <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-remove"></span></button>
1918 + <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <i class="fa fa-times" aria-hidden="true"></i> </button>
2198 1919
2199 1920 <div class="cxsc-settings-blocks cxsc-settings-faq-blocks">
2200 1921 <p>
2201 1922 <b> <?php esc_html_e('FAQ query ', 'chatbot'); ?> </b>
@@ -2231,13 +1952,10 @@
2231 1952 } else {
2232 1953 ?>
2233 1954 <div class="row"> <span class="pull-right"> </span>
2234 1955 <div class="col-xs-12">
2235 - <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-remove"></span> </button>
1956 + <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <i class="fa fa-times" aria-hidden="true"></i> </button>
2236 1957
2237 -
2238 -
2239 -
2240 1958 <div class="cxsc-settings-blocks">
2241 1959 <p>
2242 1960 <b> <?php esc_html_e('FAQ Query', 'chatbot'); ?></b>
2243 1961 </p>
@@ -2270,9 +1988,9 @@
2270 1988 <div class="col-sm-6 text-left"></div>
2271 1989 <div class="col-sm-6 text-right">
2272 1990 <button class="btn btn-success btn-sm" type="button"
2273 1991 id="add-more-support-query">
2274 - <span class="dashicons dashicons-plus"></span>
1992 + <i class="fa fa-plus" aria-hidden="true"></i>
2275 1993
2276 1994 </button>
2277 1995 </div>
2278 1996 </div>
@@ -2284,9 +2002,9 @@
2284 2002 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2285 2003 <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
2286 2004 </div> -->
2287 2005 <?php
2288 - wp_enqueue_style('qcld-wp-chatbot-common-style', plugins_url(basename(plugin_dir_path(__FILE__)) . '/css/common-style.css', basename(__FILE__)), '', esc_attr(QCLD_wpCHATBOT_VERSION), 'screen');
2006 + wp_enqueue_style('qcld-wp-chatbot-common-style', plugins_url(basename(plugin_dir_path(__FILE__)) . '/css/common-style.css', basename(__FILE__)), '', QCLD_wpCHATBOT_VERSION, 'screen');
2289 2007 ?>
2290 2008 <div class="top-section">
2291 2009 <div class="notification-block-inner">
2292 2010 <div class="row">
@@ -2298,34 +2016,26 @@
2298 2016 <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_attr('Predefined Intents'); ?></h3>
2299 2017 <div class="row">
2300 2018 <div class="col-xs-12">
2301 2019 <div class="form-group">
2302 - <h4 class="qc-opt-title" style="margin-bottom: 20px;">
2020 + <h4 class="qc-opt-title">
2303 2021 <?php esc_html_e('Site Search', 'chatbot'); ?>
2304 2022 </h4>
2305 - <div class="wpbot-cards-grid" style="margin-top: 0;">
2306 - <label class="wpbot-checkbox-card">
2307 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox"
2308 - name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
2309 - <div class="card-body">
2310 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2311 - <div class="icon-wrapper"><i class="dashicons dashicons-search" style="font-size:24px;width:24px;height:24px;"></i></div>
2312 - <h4><?php esc_html_e('Disable site search feature and button on Start Menu', 'chatbot'); ?></h4>
2313 - <p><?php esc_html_e('Disable site search feature and button on Start Menu.', 'chatbot'); ?></p>
2314 - </div>
2023 + <div class="cxsc-settings-blocks">
2024 + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox"
2025 + name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
2026 + <label for="disable_wp_chatbot_site_search">
2027 + <?php esc_html_e('Disable site search feature and button on Start Menu', 'chatbot'); ?>
2315 2028 </label>
2316 - <label class="wpbot-checkbox-card">
2317 - <input value="<?php echo esc_attr('1' ); ?>" id="enable_wp_chatbot_post_content" type="checkbox"
2318 - name="enable_wp_chatbot_post_content" <?php echo(get_option('enable_wp_chatbot_post_content') == 1 ? esc_attr('checked' ): ''); ?>>
2319 - <div class="card-body">
2320 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2321 - <div class="icon-wrapper"><i class="dashicons dashicons-media-text" style="font-size:24px;width:24px;height:24px;"></i></div>
2322 - <h4><?php esc_html_e('Enable Searching Post Contents as well', 'chatbot'); ?></h4>
2323 - <p><?php esc_html_e('Enable searching within post contents as well.', 'chatbot'); ?></p>
2324 - </div>
2029 + </br><small><?php echo esc_html( '(You can disable searching post contents option below so it searches only the post Titles for most relevancy)'); ?></small></br>
2030 + </div>
2031 + <div class="cxsc-settings-blocks">
2032 + <input value="<?php echo esc_attr('1' ); ?>" id="enable_wp_chatbot_post_content" type="checkbox"
2033 + name="enable_wp_chatbot_post_content" <?php echo(get_option('enable_wp_chatbot_post_content') == 1 ? esc_attr('checked' ): ''); ?>>
2034 + <label for="enable_wp_chatbot_post_content">
2035 + <?php esc_html_e('Enable Searching Post Contents as well', 'chatbot'); ?>
2325 2036 </label>
2326 2037 </div>
2327 - <small style="display:block; margin-bottom: 15px; color: #64748b;"><?php echo esc_html( '(You can disable searching post contents option so it searches only the post Titles for most relevancy)'); ?></small>
2328 2038 </div>
2329 2039 </div>
2330 2040 </div>
2331 2041 <div class="form-group">
@@ -2341,18 +2051,13 @@
2341 2051 <div class="form-group">
2342 2052 <h4 class="qc-opt-title">
2343 2053 <?php esc_html_e('Call Me', 'chatbot'); ?>
2344 2054 </h4>
2345 - <div class="wpbot-cards-grid" style="margin-top: 15px;">
2346 - <label class="wpbot-checkbox-card">
2347 - <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox"
2348 - name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
2349 - <div class="card-body">
2350 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2351 - <div class="icon-wrapper"><i class="dashicons dashicons-phone" style="font-size:24px;width:24px;height:24px;"></i></div>
2352 - <h4><?php esc_html_e('Disable Call Me feature and button on Start Menu', 'chatbot'); ?></h4>
2353 - <p><?php esc_html_e('Disable Call Me feature and button on Start Menu.', 'chatbot'); ?></p>
2354 - </div>
2055 + <div class="cxsc-settings-blocks">
2056 + <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox"
2057 + name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
2058 + <label for="disable_wp_chatbot_call_gen">
2059 + <?php esc_html_e('Disable Call Me feature and button on Start Menu', 'chatbot'); ?>
2355 2060 </label>
2356 2061 </div>
2357 2062 </div>
2358 2063 </div>
@@ -2370,18 +2075,13 @@
2370 2075 <div class="form-group">
2371 2076 <h4 class="qc-opt-title">
2372 2077 <?php esc_html_e('Email', 'chatbot'); ?>
2373 2078 </h4>
2374 - <div class="wpbot-cards-grid" style="margin-top: 15px;">
2375 - <label class="wpbot-checkbox-card">
2376 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox"
2377 - name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>>
2378 - <div class="card-body">
2379 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2380 - <div class="icon-wrapper"><i class="dashicons dashicons-email" style="font-size:24px;width:24px;height:24px;"></i></div>
2381 - <h4><?php esc_html_e('Disable Email feature and button on Start Menu', 'chatbot'); ?></h4>
2382 - <p><?php esc_html_e('Disable Email feature and button on Start Menu.', 'chatbot'); ?></p>
2383 - </div>
2079 + <div class="cxsc-settings-blocks">
2080 + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox"
2081 + name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>>
2082 + <label for="disable_wp_chatbot_feedback">
2083 + <?php esc_html_e('Disable Email feature and button on Start Menu', 'chatbot'); ?>
2384 2084 </label>
2385 2085 </div>
2386 2086 </div>
2387 2087 </div>
@@ -2399,18 +2099,13 @@
2399 2099 <div class="form-group">
2400 2100 <h4 class="qc-opt-title">
2401 2101 <?php esc_html_e('FAQ', 'chatbot'); ?>
2402 2102 </h4>
2403 - <div class="wpbot-cards-grid" style="margin-top: 15px;">
2404 - <label class="wpbot-checkbox-card">
2405 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox"
2406 - name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
2407 - <div class="card-body">
2408 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2409 - <div class="icon-wrapper"><i class="dashicons dashicons-editor-help" style="font-size:24px;width:24px;height:24px;"></i></div>
2410 - <h4><?php esc_html_e('Disable FAQ feature and button on Start Menu', 'chatbot'); ?></h4>
2411 - <p><?php esc_html_e('Disable FAQ feature and button on Start Menu.', 'chatbot'); ?></p>
2412 - </div>
2103 + <div class="cxsc-settings-blocks">
2104 + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox"
2105 + name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
2106 + <label for="disable_wp_chatbot_faq">
2107 + <?php esc_html_e('Disable FAQ feature and button on Start Menu', 'chatbot'); ?>
2413 2108 </label>
2414 2109 </div>
2415 2110 </div>
2416 2111 </div>
@@ -2426,9 +2121,9 @@
2426 2121
2427 2122 </div>
2428 2123 </div>
2429 2124 </div>
2430 - <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div>
2125 + <div class="qcld-show-more-show-more"><i class="fa fa-plus-circle" aria-hidden="true"></i></div>
2431 2126 </div>
2432 2127 <div class="qc_menu_setup_area">
2433 2128 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'chatbot'); ?></h3>
2434 2129 <p style="color:red"><?php esc_html_e('Always open a new Incognito window (Ctrl+Shit+N in chrome) to test after making any change.', 'chatbot'); ?></p>
@@ -2443,18 +2138,14 @@
2443 2138 <?php
2444 2139 if(get_option('qc_wpbot_menu_order')!=''):
2445 2140 if( is_string( get_option('qc_wpbot_menu_order') ) ):
2446 2141 echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
2142 + else:
2447 2143 endif;
2448 - else:
2449 - $site_search_label = get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search';
2450 - $support_email_label = get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email.';
2451 - $support_phone_label = get_option('qlcd_wp_chatbot_support_phone') != '' ? get_option('qlcd_wp_chatbot_support_phone') : 'Leave your number. We will call you back!';
2452 - echo '<span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search">' . esc_attr($site_search_label) . '</span>';
2453 - echo '<span class="qcld-chatbot-suggest-email qc_draggable_item">' . esc_attr($support_email_label) . '</span>';
2454 - echo '<span class="qcld-chatbot-suggest-phone qc_draggable_item">' . esc_attr($support_phone_label) . '</span>';
2455 - endif;
2456 2144 ?>
2145 +
2146 +
2147 + <?php endif; ?>
2457 2148 </div>
2458 2149 </div>
2459 2150 <div class="qc_menu_list_area">
2460 2151 <h4><?php esc_html_e('Available Menu', 'chatbot'); ?></h4>
@@ -2498,9 +2189,9 @@
2498 2189 global $wpdb;
2499 2190
2500 2191 //To Do: Need to use prepared statement
2501 2192
2502 - $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, PluginCheck.Security.DirectDB.UnescapedDBParameter
2193 + $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); //DB Call OK, No Caching OK.
2503 2194 if(!empty($results)){
2504 2195 ?>
2505 2196 <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p>
2506 2197 <ul>
@@ -2618,17 +2309,17 @@
2618 2309 <?php
2619 2310
2620 2311 $placeholderPrivatekey = '{
2621 2312 "type": "service_account",
2622 - "project_id": "YOUR_PROJECT_ID",
2623 - "private_key_id": "YOUR_PRIVATE_KEY_ID",
2624 - "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----\n",
2625 - "client_email": "YOUR_CLIENT_EMAIL",
2626 - "client_id": "YOUR_CLIENT_ID",
2313 + "project_id": "PLACEYOUROWNID",
2314 + "private_key_id": "31e300128..........c48",
2315 + "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",
2316 + "client_email": "dialogflow-evysjn@wpbotpro.iam.gserviceaccount.com",
2317 + "client_id": "1026.....032997",
2627 2318 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
2628 2319 "token_uri": "https://oauth2.googleapis.com/token",
2629 2320 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
2630 - "client_x509_cert_url": "YOUR_CLIENT_X509_CERT_URL"
2321 + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dialogflow-evysjn%40wpbotpro.iam.gserviceaccount.com"
2631 2322 }';
2632 2323
2633 2324 ?>
2634 2325 <div class="form-group">
@@ -2925,8 +2616,69 @@
2925 2616
2926 2617
2927 2618 </div>
2928 2619
2620 +
2621 +
2622 +
2623 +
2624 +
2625 +
2626 +
2627 +
2628 +
2629 +
2630 +
2631 +
2632 +
2633 +
2634 +
2635 +<div id="qcld-quick-flyout" >
2636 + <div class="qcld-quick-flyout-items">
2637 + <a href="https://wpbot.pro/docs/knowledgebase/getting-started-with-chatbot/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item qcld-quick-flyout-premium" rel="noopener noreferrer" target="_blank" style="transition-delay: 0ms;">
2638 + <div class="qcld-quick-flyout-label">
2639 + <div>Getting Started</div>
2640 + </div>
2641 + <i class="dashicons dashicons-admin-home"></i>
2642 + </a>
2643 + <a href="https://wpbot.pro/docs/kb-sections/chatbot-faqs/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item" rel="noopener noreferrer" target="_blank" style="transition-delay: 60ms;">
2644 + <div class="qcld-quick-flyout-label">
2645 + <div>FAQ</div>
2646 + </div>
2647 + <i class="dashicons dashicons-flag"></i>
2648 + </a>
2649 + <a href="https://wpbot.pro/docs/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item" style="transition-delay: 90ms;">
2650 + <div class="qcld-quick-flyout-label">
2651 + <div>Read the Documentation</div>
2652 + </div>
2653 + <i class="dashicons dashicons-sos"></i>
2654 + </a>
2655 + <a href="https://www.wpbot.pro/free-support/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item" rel="noopener noreferrer" target="_blank" style="transition-delay: 120ms;">
2656 + <div class="qcld-quick-flyout-label">
2657 + <div>Ask for Help</div>
2658 + </div>
2659 + <i class="dashicons dashicons-email"></i>
2660 + </a>
2661 + <a href="https://www.wpbot.pro/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item" style="transition-delay: 30ms;">
2662 + <div class="qcld-quick-flyout-label">
2663 + <div>Check out the WPBot Demo</div>
2664 + </div>
2665 + <i class="dashicons dashicons-welcome-view-site"></i>
2666 + </a>
2667 + <a href="https://www.wpbot.pro/pricing/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item qcld-quick-flyout-premium" rel="noopener noreferrer" target="_blank" style="transition-delay: 0ms;">
2668 + <div class="qcld-quick-flyout-label">
2669 + <div>Upgrade to Premium</div>
2670 + </div>
2671 + <i class="dashicons dashicons-star-filled"></i>
2672 + </a>
2673 + </div>
2674 + <a href="javascript:void(0);" class="qcld-quick-flyout-button qcld-quick-flyout-mascot">
2675 + <div class="qcld-quick-flyout-label">
2676 + <div>Start Here</div>
2677 + </div>
2678 + <img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/agent-01.png' ); ?>" alt="Dialogflow CX">
2679 + </a>
2680 +</div>
2929 2681
2930 2682
2931 2683
2932 2684