PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 7.5.2
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v7.5.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 +231 -450 8.6.77.5.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 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,21 @@
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">
67 + <li tab-data="social"><a href="<?php echo esc_url($action) .'&tab=social' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-share"></i> </span> <span class="wpwbot-admin-tab-name">
85 68 <?php esc_html_e('Button Configurations', 'chatbot'); ?>
86 69 </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>
70 + <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 71 </span> <span class=""> <?php esc_html_e('AI Settings', 'chatbot'); ?> </span>
89 72 </a>
90 73 </div>
91 74
@@ -90,25 +73,25 @@
90 73 </div>
91 74
92 75
93 76
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">
77 + <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 78 <?php esc_html_e('Icons & Themes', 'chatbot'); ?>
96 79 </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">
80 + <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 81 <?php esc_html_e('FAQ Builder', 'chatbot'); ?>
99 82 </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>
83 + <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 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"> <i class="fa fa-500px"></i> </span> <span class="wpwbot-admin-tab-name">
104 87 <?php esc_html_e('Dialogflow', 'chatbot'); ?>
105 88 </span> </a></li>
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 - <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'); ?>
92 + <span class="wpwbot-admin-tab-icon"> <i class="fa fa-plug"></i>
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,10 +97,10 @@
114 97
115 98
116 99
117 100
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>
101 + <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=ai'?>">
102 + <span class="wpwbot-admin-tab-icon"> <i class="fa fa-code"></i>
120 103 </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Custom CSS', 'chatbot'); ?></span>
121 104 </a>
122 105 </li>
123 106
@@ -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,278 +502,159 @@
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="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>
507 + <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>
508 + <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 509 </div>
527 - </div>
528 - </div>
510 +
511 + <b>
512 + <!-- <p>Please see the plugin's Help and Debugging section to troubleshoot common issues.</p> -->
513 + </b>
514 +
529 515
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;">
516 + <div class="cxsc-settings-blocks">
517 + <div class="form-group">
537 518 <?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');
519 + $url = get_site_url();
520 + $url = wp_parse_url($url);
521 + $domain = $url['host'];
522 +
523 + $admin_email = get_option('admin_email');
542 524 ?>
543 525 <h4 class="qc-opt-title"><?php esc_html_e('Emails Will be Sent to', 'chatbot'); ?></h4>
544 526 <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>
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) ) ?>">
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>
548 530 </div>
549 531 </div>
532 + <div class="cxsc-settings-blocks">
533 + <div class="form-group">
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>
545 + </div>
550 546 </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>
547 + </div>
548 + </div>
549 + <div class="row">
550 + <div class="col-xs-12">
551 + <div class="cxsc-settings-blocks">
552 + <div class="form-group">
553 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </h4>
554 + <div class="cxsc-settings-blocks">
555 + <input value="1" id="skip_wp_greetings" type="checkbox"
556 + name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
557 + <label for="skip_wp_greetings"><?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </label>
558 + </div>
565 559 </div>
566 560 </div>
567 - </div>
568 561 </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>
562 + </div>
674 563
675 564 <div class="row">
676 565 <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>
566 + <div class="cxsc-settings-blocks">
567 + <div class="form-group">
568 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </h4>
569 + <div class="cxsc-settings-blocks">
570 + <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox"
571 + name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
572 + <label for="skip_wp_greetings_donot_show_menu"><?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </label>
573 + </div>
690 574 </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>
575 + </div>
576 + </div>
577 + </div>
578 + <div class="row">
579 + <div class="col-xs-12">
580 + <div class="form-group">
581 + <h4 class="qc-opt-title">
582 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
583 + </h4>
584 + <div class="cxsc-settings-blocks">
585 + <input value="1" id="show_menu_after_greetings" type="checkbox"
586 + name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
587 + <label for="show_menu_after_greetings">
588 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
589 + </label>
720 590 </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>
591 + </div>
732 592 </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>
593 + </div>
594 + <div class="row">
595 + <div class="col-xs-12">
596 + <div class="form-group">
597 + <h4 class="qc-opt-title">
598 + <?php esc_html_e('Disable WPBot', 'chatbot'); ?>
599 + </h4>
600 + <div class="cxsc-settings-blocks">
601 + <input value="1" id="disable_wp_chatbot" type="checkbox"
602 + name="disable_wp_chatbot" <?php echo (get_option('disable_wp_chatbot') == 1 ? esc_attr('checked'): ''); ?>>
603 + <label for="disable_wp_chatbot">
604 + <?php esc_html_e('Disable WPBot to Load', 'chatbot'); ?>
605 + </label>
788 606 </div>
789 -
790 -
791 607 </div>
792 608 </div>
609 + </div>
610 + <div class="row">
611 + <div class="col-xs-12">
612 + <div class="form-group">
613 + <h4 class="qc-opt-title">
614 + <?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?>
615 + </h4>
616 + <div class="cxsc-settings-blocks">
617 + <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox"
618 + name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
619 + <label for="disable_wp_chatbot_on_mobile">
620 + <?php esc_html_e('Disable WpBot to Load on Mobile Device', 'chatbot'); ?>
621 + </label>
622 + </div>
623 + </div>
624 + </div>
625 + </div>
626 + <div class="row">
627 + <div class="col-xs-12">
628 + <div class="form-group">
629 + <h4 class="qc-opt-title">
630 + <?php esc_html_e('Enable RTL', 'chatbot'); ?>
631 + </h4>
632 + <div class="cxsc-settings-blocks">
633 + <input value="1" id="enable_wp_chatbot_rtl" type="checkbox"
634 + name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
635 + <label for="enable_wp_chatbot_rtl">
636 + <?php esc_html_e('Enable RTL (Right to Left language) Support for Chat', 'chatbot'); ?>
637 + </label>
638 + </div>
639 + </div>
640 + </div>
641 +</div>
642 + <div class="row">
643 + <div class="col-xs-12">
644 + <div class="form-group">
645 + <h4 class="qc-opt-title">
646 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
647 + </h4>
648 + <div class="cxsc-settings-blocks">
649 + <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'): ''); ?>>
650 + <label for="open_links_new_window">
651 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
652 + </label>
653 + </div>
654 + </div>
655 + </div>
656 +</div>
793 657
794 658 <div class="row">
795 659 <div class="col-xs-12">
796 660 <div class="form-group">
@@ -797,9 +661,9 @@
797 661 <h4 class="qc-opt-title"><?php esc_html_e('Bot Response Delay', 'chatbot'); ?> </h4>
798 662 <div class="cxsc-settings-blocks">
799 663 <select name="wpbot_preloading_time" id="wpbot_preloading_time">
800 664 <?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>
665 + <option value="100" <?php selected($current_preloading_time, '100'); ?>><?php esc_html_e('0 Second', 'chatbot'); ?></option>
802 666 <option value="500" <?php selected($current_preloading_time, '500'); ?>><?php esc_html_e('0.5 Second', 'chatbot'); ?></option>
803 667 <option value="1000" <?php selected($current_preloading_time, '1000'); ?>><?php esc_html_e('1 Second', 'chatbot'); ?></option>
804 668 <option value="2000" <?php selected($current_preloading_time, '2000'); ?>><?php esc_html_e('2 Second', 'chatbot'); ?></option>
805 669 <option value="3000" <?php selected($current_preloading_time, '3000'); ?>><?php esc_html_e('3 Second', 'chatbot'); ?></option>
@@ -808,13 +672,8 @@
808 672 </div>
809 673 </div>
810 674 </div>
811 675 </div>
812 -
813 -
814 -
815 -
816 -
817 676 <div class="row">
818 677 <div class="col-xs-12">
819 678 <div class="form-group">
820 679 <h4 class="qc-opt-title">
@@ -832,17 +691,17 @@
832 691 }
833 692 ?>
834 693 <input type="number" class="qc-opt-dcs-font"
835 694 name="wp_chatbot_position_x"
836 - value="<?php echo esc_attr($qcld_wb_chatbot_position_x);?>"
837 - 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'); ?>">
838 697 <span class="qc-opt-dcs-font">
839 698 <?php esc_html_e('From Right In px', 'chatbot'); ?>
840 699 </span>
841 700 <input type="number" class="qc-opt-dcs-font"
842 701 name="wp_chatbot_position_y"
843 - value="<?php echo esc_attr($qcld_wb_chatbot_position_y); ?>"
844 - 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'); ?> ">
845 704 <span class="qc-opt-dcs-font">
846 705 <?php esc_html_e('From Bottom In px', 'chatbot'); ?>
847 706 </span> </div>
848 707 </div>
@@ -928,14 +787,14 @@
928 787 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
929 788 ?>
930 789 <li>
931 790 <input id="<?php echo esc_attr('wp_chatbot_show_page_'. $wp_chatbot_page->ID ); ?>"
932 - type="checkbox"
933 - name="wp_chatbot_show_pages_list[]"
934 - 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) {
935 - echo esc_attr('checked');
936 - } ?> >
937 - <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>
938 797 </li>
939 798 <?php } ?>
940 799 </ul>
941 800 </div>
@@ -993,57 +852,57 @@
993 852 <section id="section-flip-5">
994 853 <div class="wp-chatbot-language-center-summmery"> </div>
995 854 <div class="row">
996 855 <div class="col-md-12">
997 - <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>
998 857 <!-- Language Selection Dropdown -->
999 858 <div class="cxsc-settings-blocks mb-6">
1000 859 <div class="form-group">
1001 860 <label for="qcld_language_center_select" class="block text-sm font-medium text-gray-700 mb-2 qc-opt-language-title">
1002 - <?php echo esc_html__( 'Select a Language:', 'chatbot'); ?>
861 + <?php echo esc_html__( 'Select a Language:', 'wpchatbot' ); ?>
1003 862 </label>
1004 863 <select id="qcld_language_center_select" class="form-select" onchange="qcld_wpbot_languageChange_from_center(this.value)">
1005 - <option value=""> <?php echo esc_html__( '-- Choose a language --', 'chatbot'); ?></option>
1006 - <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>
1007 - <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>
1008 - <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>
1009 - <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>
1010 - <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>
1011 - <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>
1012 - <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>
1013 - <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>
1014 - <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>
1015 - <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>
1016 - <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>
1017 - <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>
1018 - <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>
1019 - <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>
1020 - <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>
1021 - <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>
1022 - <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>
1023 - <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>
1024 - <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>
1025 - <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>
1026 - <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>
1027 - <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>
1028 - <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>
1029 - <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>
1030 - <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>
1031 - <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>
1032 - <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>
1033 - <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>
1034 - <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>
1035 - <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>
1036 - <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>
1037 - <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>
1038 - <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>
1039 - <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>
1040 - <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>
1041 900 </select>
1042 901 <!-- Results Display Area -->
1043 902 <div id="results-container" class="mt-8 p-4 flex items-center justify-center text-gray-600">
1044 903 <p id="initial-message">
1045 - <?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>
1046 905 </p>
1047 906 <p id="waring-message"></p>
1048 907 </div>
1049 908 </div>
@@ -1075,9 +934,9 @@
1075 934 <?php esc_html_e('Your Company or Website Name', 'chatbot'); ?>
1076 935 </h4>
1077 936 <input type="text" class="form-control qc-opt-dcs-font"
1078 937 name="qlcd_wp_chatbot_host"
1079 - 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') ); ?> ">
1080 939 </div>
1081 940 <div class="form-group">
1082 941 <h4 class="qc-opt-title">
1083 942 <?php esc_html_e('Agent name', 'chatbot'); ?>
@@ -1083,9 +942,9 @@
1083 942 <?php esc_html_e('Agent name', 'chatbot'); ?>
1084 943 </h4>
1085 944 <input type="text" class="form-control qc-opt-dcs-font"
1086 945 name="qlcd_wp_chatbot_agent"
1087 - 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'); ?>">
1088 947 </div>
1089 948 <div class="form-group">
1090 949 <h4 class="qc-opt-title">
1091 950 <?php esc_html_e('User demo name', 'chatbot'); ?>
@@ -1091,9 +950,9 @@
1091 950 <?php esc_html_e('User demo name', 'chatbot'); ?>
1092 951 </h4>
1093 952 <input type="text" class="form-control qc-opt-dcs-font"
1094 953 name="qlcd_wp_chatbot_shopper_demo_name"
1095 - 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')); ?> ">
1096 955 </div>
1097 956 <div class="form-group">
1098 957 <h4 class="qc-opt-title">
1099 958 <?php esc_html_e('YES', 'chatbot'); ?>
@@ -1495,9 +1354,9 @@
1495 1354 <div class="form-group">
1496 1355 <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Reactions for analytics (Like & Dislike)', 'chatbot' ); ?> </h4>
1497 1356 <div class="cxsc-settings-blocks">
1498 1357 <input value="1" id="skip_chat_reactions_menu" type="checkbox"
1499 - 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' : '' ); ?>>
1500 1359 <label for="skip_chat_reactions_menu"><?php echo esc_html__( 'Enable Chat Reactions for analytics (Like & Dislike)', 'chatbot' ); ?> </label>
1501 1360 </div>
1502 1361 </div>
1503 1362 <div class="form-group">
@@ -1517,13 +1376,13 @@
1517 1376 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dislike_text') != '' ? get_option('qlcd_wp_chatbot_dislike_text') : 'Dislike')); ?>">
1518 1377 </div>
1519 1378
1520 1379 <div class="form-group">
1521 - <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>
1522 1381 <div class="cxsc-settings-blocks">
1523 1382 <input value="1" id="enable_chat_report_menu" type="checkbox"
1524 - name="enable_chat_report_menu" <?php echo( get_option( 'enable_chat_report_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1525 - <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>
1526 1385 </div>
1527 1386 </div>
1528 1387 <div class="form-group">
1529 1388 <h4 class="qc-opt-title">
@@ -1533,13 +1392,13 @@
1533 1392 name="qlcd_wp_chatbot_report_text"
1534 1393 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_report_text') != '' ? get_option('qlcd_wp_chatbot_report_text') : 'Report')); ?>">
1535 1394 </div>
1536 1395 <div class="form-group">
1537 - <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>
1538 1397 <div class="cxsc-settings-blocks">
1539 1398 <input value="1" id="enable_chat_share_menu" type="checkbox"
1540 - name="enable_chat_share_menu" <?php echo( get_option( 'enable_chat_share_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1541 - <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>
1542 1401 </div>
1543 1402 </div>
1544 1403 <div class="form-group">
1545 1404 <h4 class="qc-opt-title">
@@ -1570,57 +1429,9 @@
1570 1429 </ul>
1571 1430 <div class="tab-content">
1572 1431 <div id="wp-chatbot-icon-theme-settings" class="tab-pane fade in active">
1573 1432 <div class="top-section">
1574 -
1575 -
1576 -
1577 - <div class="row">
1578 - <div class="col-xs-6">
1579 - <div class="form-group">
1580 - <h4 class="qc-opt-title">
1581 - <?php esc_html_e('ChatBot Window Max Height', 'wpchatbot'); ?>
1582 - </h4>
1583 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1584 - <?php
1585 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1586 - if (!$chatbot_content_max_height) {
1587 - $chatbot_content_max_height = 80;
1588 - } else {
1589 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1590 - }
1591 - ?>
1592 - <input value="<?php echo esc_attr( $chatbot_content_max_height ); ?>" id="chatbot_content_max_height" type="number" min="0" max="100" placeholder="Max height 100" name="chatbot_content_max_height"> vh
1593 - </div>
1594 - </div>
1595 - </div>
1596 - <div class="col-xs-6">
1597 - <div class="form-group">
1598 - <h4 class="qc-opt-title">
1599 - <?php esc_html_e('ChatBot Window Max Height ( Mobile Device )', 'wpchatbot'); ?>
1600 - </h4>
1601 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1602 - <?php
1603 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1604 - if (!$chatbot_content_max_height_responsive) {
1605 - $chatbot_content_max_height_responsive = 100;
1606 - } else {
1607 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1608 - }
1609 - ?>
1610 - <input value="<?php echo esc_attr( $chatbot_content_max_height_responsive ); ?>" id="chatbot_content_max_height_responsive" type="number" min="0" max="100" placeholder="Max height 100" name="chatbot_content_max_height_responsive"> vh
1611 - </div>
1612 - </div>
1613 - </div>
1614 - </div>
1615 -
1616 -
1617 -
1618 -
1619 -
1620 -
1621 -
1622 - <div class="row">
1433 + <div class="row">
1623 1434 <div class="col-xs-12">
1624 1435
1625 1436 <h3 class="qcld-wpbot-main-tabs-title">
1626 1437 <?php esc_html_e('WPBot Icon', 'chatbot'); ?>
@@ -1871,29 +1682,8 @@
1871 1682 </div>
1872 1683 </div>
1873 1684 <div id="top-section">
1874 1685 <div class="form-group">
1875 - <!-- Avatar Location Section -->
1876 - <div class="avatar-location-wrapper">
1877 - <h4 class="qc-opt-title"><?php esc_html_e('Avatar Location', 'chatbot'); ?></h4>
1878 - <?php $avatar_location = get_option('qcld_chatbot_avatar_location'); ?>
1879 - <input type="hidden" id="qcld-avatar-location" name="qcld_chatbot_avatar_location" value="<?php echo esc_attr($avatar_location); ?>">
1880 - <div class="avatar-location-cards">
1881 - <div class="avatar-location-card <?php echo ($avatar_location === 'inside') ? 'active' : ''; ?>" data-location="inside">
1882 - <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>
1883 - <span><?php esc_html_e('Inside', 'chatbot'); ?></span>
1884 - </div>
1885 - <div class="avatar-location-card <?php echo ($avatar_location === 'side') ? 'active' : ''; ?>" data-location="side">
1886 - <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>
1887 - <span><?php esc_html_e('Side', 'chatbot'); ?></span>
1888 - </div>
1889 - <div class="avatar-location-card <?php echo ($avatar_location === 'hidden') ? 'active' : ''; ?>" data-location="hidden">
1890 - <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>
1891 - <span><?php esc_html_e('Hidden', 'chatbot'); ?></span>
1892 - </div>
1893 - </div>
1894 - </div>
1895 - <!-- End Avatar Location Section -->
1896 1686 <div class="row">
1897 1687 <div class="col-sm-12">
1898 1688 <h4 class="qc-opt-title">
1899 1689 <?php esc_html_e('WPBot Themes', 'chatbot'); ?>
@@ -1950,9 +1740,9 @@
1950 1740 <div class="cxsc-settings-blocks">
1951 1741 <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
1952 1742 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>>
1953 1743 <label for="enable_wp_chatbot_custom_color">
1954 - <?php esc_html_e('Enable Custom Styles ', 'chatbot'); ?>
1744 + <?php esc_html_e('Enable Style Colors ', 'wpbot'); ?>
1955 1745 </label>
1956 1746 </div>
1957 1747 </div>
1958 1748 </div>
@@ -1969,9 +1759,9 @@
1969 1759 </div>
1970 1760 </div>
1971 1761 </div>
1972 1762 <div class="col-xs-6">
1973 - <div class="cxsc-settings-blocks">
1763 + <div class="cxsc-settings-blocks">Enable Custom Styles
1974 1764 <div class="form-group">
1975 1765 <h4 class="qc-opt-title">
1976 1766 <?php esc_html_e('Link Color.', 'chatbot'); ?>
1977 1767 </h4>
@@ -2246,9 +2036,9 @@
2246 2036 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
2247 2037 ?>
2248 2038 <div class="row"> <span class="pull-right"> </span>
2249 2039 <div class="col-xs-12">
2250 - <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"> <i class="fa fa-times" aria-hidden="true"></i> </button>
2251 2041
2252 2042 <div class="cxsc-settings-blocks cxsc-settings-faq-blocks">
2253 2043 <p>
2254 2044 <b> <?php esc_html_e('FAQ query ', 'chatbot'); ?> </b>
@@ -2284,13 +2074,10 @@
2284 2074 } else {
2285 2075 ?>
2286 2076 <div class="row"> <span class="pull-right"> </span>
2287 2077 <div class="col-xs-12">
2288 - <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"> <i class="fa fa-times" aria-hidden="true"></i> </button>
2289 2079
2290 -
2291 -
2292 -
2293 2080 <div class="cxsc-settings-blocks">
2294 2081 <p>
2295 2082 <b> <?php esc_html_e('FAQ Query', 'chatbot'); ?></b>
2296 2083 </p>
@@ -2297,9 +2084,9 @@
2297 2084 <input type="text" class="form-control" name="support_query[]"
2298 2085 placeholder="<?php esc_html_e('FAQ Query ', 'chatbot'); ?> ">
2299 2086 <br>
2300 2087 <p class="qc-opt-dcs-font"><strong>
2301 - <?php esc_html_e('FAQ answer', 'chatbot'); ?>
2088 + <?php esc_html_e('Support answer', 'chatbot'); ?>
2302 2089 </strong></p>
2303 2090 <?php
2304 2091 wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
2305 2092 'support_ans[]',
@@ -2323,9 +2110,9 @@
2323 2110 <div class="col-sm-6 text-left"></div>
2324 2111 <div class="col-sm-6 text-right">
2325 2112 <button class="btn btn-success btn-sm" type="button"
2326 2113 id="add-more-support-query">
2327 - <span class="dashicons dashicons-plus"></span>
2114 + <i class="fa fa-plus" aria-hidden="true"></i>
2328 2115
2329 2116 </button>
2330 2117 </div>
2331 2118 </div>
@@ -2337,16 +2124,14 @@
2337 2124 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2338 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'); ?>
2339 2126 </div> -->
2340 2127 <?php
2341 - 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');
2342 2129 ?>
2343 2130 <div class="top-section">
2344 2131 <div class="notification-block-inner">
2345 2132 <div class="row">
2346 2133 <div class="col-xs-12">
2347 -
2348 -
2349 2134 <div id="qcld-show-more-wrapper-box">
2350 2135 <div class="qcld-show-more-text qcld-show-more-show-more-height">
2351 2136 <div class="row">
2352 2137 <div class="col-xs-12">
@@ -2458,9 +2243,9 @@
2458 2243
2459 2244 </div>
2460 2245 </div>
2461 2246 </div>
2462 - <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div>
2247 + <div class="qcld-show-more-show-more"><i class="fa fa-plus-circle" aria-hidden="true"></i></div>
2463 2248 </div>
2464 2249 <div class="qc_menu_setup_area">
2465 2250 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'chatbot'); ?></h3>
2466 2251 <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>
@@ -2475,18 +2260,14 @@
2475 2260 <?php
2476 2261 if(get_option('qc_wpbot_menu_order')!=''):
2477 2262 if( is_string( get_option('qc_wpbot_menu_order') ) ):
2478 2263 echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
2264 + else:
2479 2265 endif;
2480 - else:
2481 - $site_search_label = get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search';
2482 - $support_email_label = get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email.';
2483 - $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!';
2484 - echo '<span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search">' . esc_attr($site_search_label) . '</span>';
2485 - echo '<span class="qcld-chatbot-suggest-email qc_draggable_item">' . esc_attr($support_email_label) . '</span>';
2486 - echo '<span class="qcld-chatbot-suggest-phone qc_draggable_item">' . esc_attr($support_phone_label) . '</span>';
2487 - endif;
2488 2266 ?>
2267 +
2268 +
2269 + <?php endif; ?>
2489 2270 </div>
2490 2271 </div>
2491 2272 <div class="qc_menu_list_area">
2492 2273 <h4><?php esc_html_e('Available Menu', 'chatbot'); ?></h4>
@@ -2530,9 +2311,9 @@
2530 2311 global $wpdb;
2531 2312
2532 2313 //To Do: Need to use prepared statement
2533 2314
2534 - $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.
2535 2316 if(!empty($results)){
2536 2317 ?>
2537 2318 <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p>
2538 2319 <ul>
@@ -2650,17 +2431,17 @@
2650 2431 <?php
2651 2432
2652 2433 $placeholderPrivatekey = '{
2653 2434 "type": "service_account",
2654 - "project_id": "YOUR_PROJECT_ID",
2655 - "private_key_id": "YOUR_PRIVATE_KEY_ID",
2656 - "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----\n",
2657 - "client_email": "YOUR_CLIENT_EMAIL",
2658 - "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",
2659 2440 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
2660 2441 "token_uri": "https://oauth2.googleapis.com/token",
2661 2442 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
2662 - "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"
2663 2444 }';
2664 2445
2665 2446 ?>
2666 2447 <div class="form-group">