PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.0.0
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.0.0
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 +285 -591 8.6.98.0.0 View file →
@@ -1,26 +1,10 @@
1 +<?php
1 2
2 -<?php
3 3 // Exit if accessed directly
4 4 if ( ! defined( 'ABSPATH' ) ) {
5 5 exit;
6 6 }
7 -// Ensure WordPress escaping and translation functions are available
8 -if ( ! function_exists( 'esc_html' ) ) {
9 - require_once( ABSPATH . 'wp-includes/formatting.php' );
10 -}
11 -if ( ! function_exists( 'esc_html__' ) ) {
12 - require_once( ABSPATH . 'wp-includes/l10n.php' );
13 -}
14 -if ( ! function_exists( 'esc_html_e' ) ) {
15 - require_once( ABSPATH . 'wp-includes/l10n.php' );
16 -}
17 -if ( ! function_exists( 'esc_attr' ) ) {
18 - require_once( ABSPATH . 'wp-includes/formatting.php' );
19 -}
20 -if ( ! function_exists( 'esc_url' ) ) {
21 - require_once( ABSPATH . 'wp-includes/formatting.php' );
22 -}
23 7 ?>
24 8
25 9 <div class="wrap qcld-main-wrapper">
26 10 <h1 style="display:none">
@@ -28,10 +12,10 @@
28 12 </h1>
29 13
30 14 <div class="qcld-wp-chatbot-wrap-header">
31 15
32 - <div class="qcld-wp-chatbot-wrap-header-logo"><a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a>
33 - <p><strong>Core Version:</strong> v<?php echo esc_attr(QCLD_wpCHATBOT_VERSION); ?></p>
16 + <div class="qcld-wp-chatbot-wrap-header-logo"><a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a>
17 + <p><strong>Core Version:</strong> v<?php echo QCLD_wpCHATBOT_VERSION; ?></p>
34 18 </div>
35 19 <ul class="qcld-wp-chatbot-wrap-version-wrapper">
36 20 <li>
37 21 <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a>
@@ -63,9 +47,9 @@
63 47
64 48 <div class="wp-chatbot-wrap">
65 49 <div class="icon32"><br>
66 50 </div>
67 -<form action="<?php echo esc_url($action); ?>" method="POST" id="wp-chatbot-admin-form"
51 +<form action="<?php echo esc_url($action, 'chatbot'); ?>" method="POST" id="wp-chatbot-admin-form"
68 52 enctype="multipart/form-data">
69 53 <div class="form-container">
70 54
71 55 <section class="wp-chatbot-tab-container-inner">
@@ -71,48 +55,44 @@
71 55 <section class="wp-chatbot-tab-container-inner">
72 56 <div class="wp-chatbot-tabs wp-chatbot-tabs-style-flip">
73 57 <nav>
74 58 <ul>
75 - <li class="tab-current" tab-data="started" data-section="#section-flip-1"><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">
59 + <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">
76 60 <?php esc_html_e('Getting Started', 'chatbot'); ?>
77 61 </span> </a></li>
78 - <li tab-data="general" data-section="#section-flip-2"><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">
62 + <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">
79 63 <?php esc_html_e('General settings', 'chatbot'); ?>
80 64 </span> </a></li>
81 - <div class="cxsc-settings_openai_border">
82 - <a href="<?php echo esc_url( $action) .'_openAi' ?>">
83 - <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-update"></span>
84 - </span> <span class=""> <?php esc_html_e('AI Settings', 'chatbot'); ?> </span>
85 - </a>
86 - </div>
87 - <div class="cxsc-settings_openai_border">
88 - <a href="<?php echo esc_url( $action) .'_ai_actions' ?>">
89 - <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-update"></span>
90 - </span> <span class=""> <?php esc_html_e('AI Actions', 'chatbot'); ?> </span>
91 - </a>
92 - </div>
93 -
94 - <li tab-data="themes" data-section="#section-flip-3"><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">
95 - <?php esc_html_e('Icons & Themes', 'chatbot'); ?>
65 + <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">
66 + <?php esc_html_e('Change Language', 'chatbot'); ?>
96 67 </span> </a></li>
97 - <li tab-data="startmenu" data-section="#section-flip-6"><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('Action Start Menu', 'chatbot'); ?></span> </a></li>
98 - <li tab-data="social" data-section="#section-flip-51"><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">
68 + <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">
99 69 <?php esc_html_e('Button Configurations', 'chatbot'); ?>
100 70 </span> </a></li>
101 - <li tab-data="language" data-section="#section-flip-5"><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">
102 - <?php esc_html_e('Change Language', 'chatbot'); ?>
71 + <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>
72 + </span> <span class=""> <?php esc_html_e('AI Settings', 'chatbot'); ?> </span>
73 + </a>
74 +</div>
75 +
76 +
77 +
78 + <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">
79 + <?php esc_html_e('Icons & Themes', 'chatbot'); ?>
103 80 </span> </a></li>
104 - <li tab-data="support" data-section="#section-flip-4"><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">
81 + <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">
105 82 <?php esc_html_e('FAQ Builder', 'chatbot'); ?>
106 83 </span> </a></li>
107 - <li tab-data="ai" data-section="#section-flip-7"><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="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>
85 +
86 +
87 + <li tab-data="ai"><a href="<?php echo esc_url($action).'&tab=ai' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-format-chat"></span> </span> <span class="wpwbot-admin-tab-name">
108 88 <?php esc_html_e('Dialogflow', 'chatbot'); ?>
109 89 </span> </a></li>
110 90
111 91
112 - <li tab-data="<?php echo esc_url('rpl'); ?>" data-section="#section-flip-9" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>">
92 + <li tab-data="<?php echo esc_url('rpl'); ?>" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>">
113 93 <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-feedback"></span>
114 - </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?>
94 + </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?>
115 95 </span>
116 96 </a>
117 97 </li>
118 98
@@ -118,9 +98,9 @@
118 98
119 99
120 100
121 101
122 - <li tab-data="custom_css" data-section="#section-flip-13"> <a href="<?php echo esc_url($action).'&tab=custom_css'?>">
102 + <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=ai'?>">
123 103 <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-editor-code"></span>
124 104 </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Custom CSS', 'chatbot'); ?></span>
125 105 </a>
126 106 </li>
@@ -146,9 +126,9 @@
146 126
147 127 <div class="text-center mt-5 qcld-Resetall">
148 128 <input type="button" class="btn btn-warning submit-button"
149 129 id="qcld-wp-chatbot-reset-option"
150 - value="<?php echo esc_attr__('Reset all options to Default', 'chatbot') ; ?>"/>
130 + value="<?php echo esc_html('Reset all options to Default') ; ?>"/>
151 131 </div>
152 132 </nav>
153 133
154 134
@@ -160,10 +140,10 @@
160 140
161 141 <div class="wrap qcld-swpm-admin-menu-wrap">
162 142 <div class="wrap qcld-swpm-admin-menu-wrap">
163 143 <h3 class="nav-tab-wrapper sld_nav_container wppt_nav_container">
164 - <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html__('Getting Started', 'chatbot'); ?></a>
165 - <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html__('WPBot – In a Nutshell', 'chatbot'); ?></a>
144 + <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html('Getting Started'); ?></a>
145 + <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html('WPBot – In a Nutshell'); ?></a>
166 146 </h3>
167 147 <div class="wppt-settings-section" id="general_int">
168 148 <div class="content form-container qcbot_help_secion" style="">
169 149 <!-- new Section -->
@@ -171,9 +151,9 @@
171 151 <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_html__('WPBot Interactions', 'chatbot'); ?></h3>
172 152 <p><?php echo esc_html__('You can use WPBot to both answer user questions and collect information from the users.', 'chatbot'); ?></p>
173 153 <h4><?php echo esc_html__('To create answers to user questions you can use:', 'chatbot'); ?></h4>
174 154 <p> <b><?php echo esc_html__('Simple Text Responses', 'chatbot'); ?></b> (built-in), <b style="font-size: 14px"><?php echo esc_html__('FAQ', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Site search', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Product search', 'chatbot'); ?></b>(built-in Pro feature), <b style="font-size: 14px"><?php echo esc_html__('DialogFlow', 'chatbot'); ?></b>(3rd Party) or <b style="font-size: 14px"><?php echo esc_html__('OpenAI', 'chatbot'); ?></b>(3rd Party)</br>
175 - </p>
155 +</p>
176 156 <h4> <?php echo esc_html__('To collect information from your users you can use:', 'chatbot'); ?></h4>
177 157 <p> <b>
178 158 <?php echo esc_html__('Conversational forms', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Mail us', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Call me back', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Collect feedback features', 'chatbot'); ?></b>(built-in)</p>
179 159 <hr>
@@ -208,9 +188,9 @@
208 188 <div class="to-icon-txt fa-4x-txt ">
209 189 <h3>
210 190 <span>// </span><?php esc_html_e('Send eMail, Call Me Back &amp; Feedback Collection', 'chatbot'); ?>
211 191 </h3>
212 - <p><?php esc_html_e('Users can send a email to the site admin directly from the Chat window for customer support. The Call Me Back feature lets you get call requests from your customers which will be emailed to you. You can also use WPBot to collect Feedback from your customers regarding anything! You can disable/enable these features from the Action Start Menu.', 'chatbot'); ?></p>
192 + <p><?php esc_html_e('Users can send a email to the site admin directly from the Chat window for customer support. The Call Me Back feature lets you get call requests from your customers which will be emailed to you. You can also use WPBot to collect Feedback from your customers regarding anything! You can disable/enable these features from the Start Menu.', 'chatbot'); ?></p>
213 193 </div>
214 194 </div>
215 195 <div class="to-icon-box left txt-left">
216 196 <div class="to-icon-txt fa-4x-txt ">
@@ -264,9 +244,9 @@
264 244 </h4>
265 245 </div>
266 246 <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
267 247 <div class="panel-body">
268 - <p><?php esc_html_e('Extend the Action Start Menu with the', 'chatbot'); ?> <?php esc_html_e('powerful Conversational Forms', 'chatbot'); ?>&nbsp;<?php esc_html_e(' Addon for WPBot. It extends WPBot’s functionality and adds the ability to create', 'chatbot'); ?> <?php esc_html_e('conditional conversations', 'chatbot'); ?> <?php esc_html_e('and/or', 'chatbot'); ?> <?php esc_html_e('forms', 'chatbot'); ?> <?php esc_html_e('for the WPBot. It is a visual,', 'chatbot'); ?> <?php esc_html_e('drag and drop', 'chatbot'); ?><?php esc_html_e(' form builder that is easy to use and very flexible. Supports conditional logic and use of variables to build all types of forms or just', 'chatbot'); ?> <?php esc_html_e('menu driven', 'chatbot'); ?>
248 + <p><?php esc_html_e('Extend the Start Menu with the', 'chatbot'); ?> <?php esc_html_e('powerful Conversational Forms', 'chatbot'); ?>&nbsp;<?php esc_html_e(' Addon for WPBot. It extends WPBot’s functionality and adds the ability to create', 'chatbot'); ?> <?php esc_html_e('conditional conversations', 'chatbot'); ?> <?php esc_html_e('and/or', 'chatbot'); ?> <?php esc_html_e('forms', 'chatbot'); ?> <?php esc_html_e('for the WPBot. It is a visual,', 'chatbot'); ?> <?php esc_html_e('drag and drop', 'chatbot'); ?><?php esc_html_e(' form builder that is easy to use and very flexible. Supports conditional logic and use of variables to build all types of forms or just', 'chatbot'); ?> <?php esc_html_e('menu driven', 'chatbot'); ?>
269 249 <?php esc_html_e('conversations', 'chatbot'); ?> <?php esc_html_e('with if else logic', 'chatbot'); ?> . <?php esc_html_e('Conversations or forms can be', 'chatbot'); ?> <?php esc_html_e('eMailed', 'chatbot'); ?> <?php esc_html_e('to you and', 'chatbot'); ?> <?php esc_html_e('saved in the database', 'chatbot'); ?>.
270 250 </p>
271 251 <h4><?php esc_html_e('Conversational Form Builder Free or Pro version works with the WPBot Free or Pro versions.', 'chatbot'); ?></h4>
272 252 <a class="FormBuilder" href="https://wordpress.org/plugins/conversational-forms/" target="_blank"><?php esc_html_e('Download Free Version', 'chatbot'); ?></a>
@@ -374,16 +354,16 @@
374 354 </div>
375 355 <div class="panel panel-default">
376 356 <div class="panel-heading" role="tab" id="headingSix">
377 357 <h4 class="panel-title">
378 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseSix" aria-expanded="false" aria-controls="collapseSix"> <?php esc_html_e('Action Start Menu', 'chatbot'); ?> </a>
358 + <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseSix" aria-expanded="false" aria-controls="collapseSix"> <?php esc_html_e('Start Menu', 'chatbot'); ?> </a>
379 359 </h4>
380 360 </div>
381 361 <div id="collapseSix" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix">
382 362 <div class="panel-body">
383 - <?php echo esc_html_e('While using a ChatBot, users can get lost or not know how to Interact with the Bot. That is why we have a Action Start Menu to always give the user', 'chatbot'); ?> <b><?php echo esc_html_e('options to do more', 'chatbot'); ?></b>. <?php echo esc_html_e('From ChatBot->Settings->Action Start Menu you can drag Available Menu Items (Intents) to the Active Menu Items area.', 'chatbot'); ?></br></br>
384 - <?php echo esc_html_e('Besides the built-in Intents, you can also create custom Intents for your Action Start Menu using','chatbot'); ?> <b><?php echo esc_html_e('Simple Text Responses', 'chatbot'); ?></b> and <b><?php echo esc_html_e('Conversational form builder', 'chatbot'); ?></b>. <?php echo esc_html_e('You can create almost any kind of response with the combinations of the two.', 'chatbot'); ?></br></br>
385 - <?php echo esc_html_e('We recommend enabling','chatbot'); ?><b><?php echo esc_html_e(' Show Action Start Menu After Greetings ', 'chatbot'); ?></b><?php echo esc_html_e('from ChatBot Pro->Settings->General settings.','chatbot'); ?>
363 + <?php echo esc_html_e('While using a ChatBot, users can get lost or not know how to Interact with the Bot. That is why we have a Start menu to always give the user', 'chatbot'); ?> <b><?php echo esc_html_e('options to do more', 'chatbot'); ?></b>. <?php echo esc_html_e('From ChatBot->Settings->Start Menu you can drag Available Menu Items (Intents) to the Active Menu Items area.', 'chatbot'); ?></br></br>
364 + <?php echo esc_html_e('Besides the built-in Intents, you can also create custom Intents for your Start Menu using','chatbot'); ?> <b><?php echo esc_html_e('Simple Text Responses', 'chatbot'); ?></b> and <b><?php echo esc_html_e('Conversational form builder', 'chatbot'); ?></b>. <?php echo esc_html_e('You can create almost any kind of response with the combinations of the two.', 'chatbot'); ?></br></br>
365 + <?php echo esc_html_e('We recommend enabling','chatbot'); ?><b><?php echo esc_html_e(' Show Start Menu After Greetings ', 'chatbot'); ?></b><?php echo esc_html_e('from ChatBot Pro->Settings->General settings.','chatbot'); ?>
386 366 </div>
387 367 </div>
388 368 </div>
389 369 <div class="panel panel-default">
@@ -393,9 +373,9 @@
393 373 </h4>
394 374 </div>
395 375 <div id="collapseSeven" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSeven">
396 376 <div class="panel-body">
397 - <?php echo esc_html_e('Head over to ChatBot Pro->Settings->General and make sure to Enable the Floating Icon. As soon as you do that, the ChatBot can start working for your users. Make sure to drag some items to the Active Menu area under the Action Start Menu.', 'chatbot'); ?></br></br>
377 + <?php echo esc_html_e('Head over to ChatBot Pro->Settings->General and make sure to Enable the Floating Icon. As soon as you do that, the ChatBot can start working for your users. Make sure to drag some items to the Active Menu area under the Start Menu.', 'chatbot'); ?></br></br>
398 378 <?php echo esc_html_e('The ChatBot settings area is full of options. Do not be intimidated by that. You do not need to use all the options – just what you need. Head over to the Settings->', 'chatbot'); ?><b><?php echo esc_html_e('Icons and Themes','chatbot'); ?></b> <?php echo esc_html_e('for options to customize your ChatBot. You will also find options to embed the ChatBot on a page, click to chat, FAQ builder etc. under the Setting options.', 'chatbot'); ?>
399 379 </div>
400 380 </div>
401 381 </div>
@@ -527,299 +507,203 @@
527 507 <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>
528 508 <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>
529 509 <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>
530 510 </div>
531 - </div>
532 - </div>
511 +
512 + <b>
513 + <!-- <p>Please see the plugin's Help and Debugging section to troubleshoot common issues.</p> -->
514 + </b>
515 +
533 516
534 -
535 -
536 -
537 - <div class="row">
538 - <div class="col-xs-6">
539 - <div class="cxsc-settings-blocks">
540 - <div class="form-group" style=" min-height: 150px;">
517 + <div class="cxsc-settings-blocks">
518 + <div class="form-group">
541 519 <?php
542 - $qcld_wpbot_url = get_site_url();
543 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
544 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
545 - $qcld_wpbot_admin_email = get_option('admin_email');
520 + $url = get_site_url();
521 + $url = wp_parse_url($url);
522 + $domain = $url['host'];
523 +
524 + $admin_email = get_option('admin_email');
546 525 ?>
547 526 <h4 class="qc-opt-title"><?php esc_html_e('Emails Will be Sent to', 'chatbot'); ?></h4>
548 527 <input type="text" class="form-control qc-opt-dcs-font"
549 - name="qlcd_wp_chatbot_admin_email"
550 - 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)) ); ?>">
551 - <label class="qcld_label_width_full qcld_label_width_half" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'chatbot'); ?> </label>
528 + name="qlcd_wp_chatbot_admin_email"
529 + value="<?php echo (get_option('qlcd_wp_chatbot_admin_email') != '' ? esc_attr(get_option('qlcd_wp_chatbot_admin_email')) : sanitize_email($admin_email) ) ?>">
530 + <label class="qcld_label_width_full" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'chatbot'); ?> </label>
552 531 </div>
553 532 </div>
533 + <div class="cxsc-settings-blocks">
534 + <div class="form-group">
535 + <?php
536 + $url = get_site_url();
537 + $url = wp_parse_url($url);
538 + $domain = $url['host'];
539 + $fromEmail = "wordpress@" . $domain;
540 + ?>
541 + <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
542 + <input type="text" class="form-control qc-opt-dcs-font"
543 + name="qlcd_wp_chatbot_from_email"
544 + value="<?php echo (get_option('qlcd_wp_chatbot_from_email') != '' ? esc_attr( get_option('qlcd_wp_chatbot_from_email')) : sanitize_email($fromEmail)); ?> ">
545 + <label class="qcld_label_width_full" for="qlcd_wp_chatbot_from_email"><?php esc_html_e('All emails will be sent from this email address. If you change the From Email Address then please make sure the domain remains the same as where WordPress is installed. Otherwise, the emails may not be received.', 'chatbot'); ?> </label>
546 + </div>
554 547 </div>
555 - <div class="col-xs-6">
556 - <div class="cxsc-settings-blocks">
557 - <div class="form-group">
558 - <?php
559 - $qcld_wpbot_url = get_site_url();
560 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
561 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
562 - $qcld_wpbot_from_email = "wordpress@" . $qcld_wpbot_domain;
563 - ?>
564 - <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
565 - <input type="text" class="form-control qc-opt-dcs-font"
566 - name="qlcd_wp_chatbot_from_email"
567 - 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))); ?> ">
568 - <label class="qcld_label_width_full qcld_label_width_half" for="qlcd_wp_chatbot_from_email"><?php esc_html_e('All emails will be sent from this email address. If you change the From Email Address then please make sure the domain remains the same as where WordPress is installed. Otherwise, the emails may not be received.', 'chatbot'); ?> </label>
548 + </div>
549 + </div>
550 + <div class="row">
551 + <div class="col-xs-12">
552 + <div class="form-group">
553 + <h4 class="qc-opt-title">
554 + <?php esc_html_e('Disable Floating Button', 'chatbot'); ?>
555 + </h4>
556 + <div class="cxsc-settings-blocks">
557 + <input value="1" id="disable_floating_button" type="checkbox"
558 + name="disable_floating_button" <?php echo (get_option('disable_floating_button') == 1 ? esc_attr('checked' ): ''); ?>>
559 + <label for="disable_floating_button">
560 + <?php esc_html_e('Disable Floating Button', 'chatbot'); ?>
561 + </label>
562 + </div>
563 + </div>
564 + </div>
565 + </div>
566 + <div class="row">
567 + <div class="col-xs-12">
568 + <div class="form-group">
569 + <h4 class="qc-opt-title">
570 + <?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?>
571 + </h4>
572 + <div class="cxsc-settings-blocks">
573 + <input value="1" id="wpbot_enable_on_search" type="checkbox"
574 + name="wpbot_enable_on_search" <?php // echo (get_option('wpbot_enable_on_search') == 1 ? esc_attr('checked' ): ''); ?>>
575 + <label for="wpbot_enable_on_search">
576 + <?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?>
577 + </label>
578 + </div>
579 + </div>
580 + </div>
581 + </div>
582 + <div class="row">
583 + <div class="col-xs-12">
584 + <div class="cxsc-settings-blocks">
585 + <div class="form-group">
586 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </h4>
587 + <div class="cxsc-settings-blocks">
588 + <input value="1" id="skip_wp_greetings" type="checkbox"
589 + name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
590 + <label for="skip_wp_greetings"><?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </label>
591 + </div>
569 592 </div>
570 593 </div>
571 - </div>
572 594 </div>
573 - <style>
574 - .wpbot-cards-grid {
575 - display: grid;
576 - grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
577 - gap: 20px;
578 - margin-bottom: 20px;
579 - margin-top: 20px;
580 - }
581 - .wpbot-checkbox-card {
582 - cursor: pointer;
583 - display: block;
584 - position: relative;
585 - margin: 0;
586 - }
587 - .wpbot-checkbox-card input[type="checkbox"] {
588 - position: absolute;
589 - opacity: 0;
590 - width: 0;
591 - height: 0;
592 - }
593 - .wpbot-checkbox-card .card-body {
594 - border: 1px solid #e2e8f0;
595 - border-radius: 12px;
596 - padding: 20px;
597 - background: #f8fafc;
598 - transition: all 0.2s ease;
599 - height: 100%;
600 - box-sizing: border-box;
601 - display: flex;
602 - flex-direction: column;
603 - position: relative;
604 - }
605 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body {
606 - border-color: #5b4e96;
607 - background: #eff6ff;
608 - box-shadow: 0 0 0 1px #5b4e96, 0 8px 24px rgba(37, 99, 235, 0.15);
609 - }
610 - .wpbot-checkbox-card .check-icon {
611 - position: absolute;
612 - top: 30px;
613 - right: 16px;
614 - width: 24px;
615 - height: 24px;
616 - border-radius: 50%;
617 - background: #f8fafc;
618 - border: 2px solid #e2e8f0;
619 - display: flex;
620 - align-items: center;
621 - justify-content: center;
622 - transition: all 0.2s ease;
623 - z-index: 2;
624 - }
625 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon {
626 - background: #5b4e96;
627 - border-color: #5b4e96;
628 - }
629 - .wpbot-checkbox-card .check-icon svg {
630 - width: 14px;
631 - height: 14px;
632 - stroke: #e2e8f0;
633 - stroke-width: 3;
634 - stroke-linecap: round;
635 - stroke-linejoin: round;
636 - fill: none;
637 - transition: stroke 0.2s ease;
638 - }
639 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon svg {
640 - stroke: white;
641 - }
642 - .wpbot-checkbox-card .icon-wrapper {
643 - width: 48px;
644 - height: 48px;
645 - border-radius: 12px;
646 - background: #ffffff;
647 - border: 1px solid #e2e8f0;
648 - display: flex;
649 - align-items: center;
650 - justify-content: center;
651 - margin-bottom: 16px;
652 - color: #64748b;
653 - }
654 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .icon-wrapper {
655 - border-color: #e0e7ff;
656 - background: #f0fdf4;
657 - color: #5b4e96;
658 - }
659 - .wpbot-checkbox-card h4 {
660 - margin: 0 0 8px 0 !important;
661 - font-size: 16px !important;
662 - font-weight: 600 !important;
663 - color: #1e293b !important;
664 - line-height: 1.4 !important;
665 - }
666 - .wpbot-checkbox-card p {
667 - margin: 0 !important;
668 - font-size: 14px !important;
669 - color: #64748b !important;
670 - line-height: 1.5 !important;
671 - }
672 - .wpbot-cards-grid-divider {
673 - height: 1px;
674 - width: 100%;
675 - background: #eee;
676 - }
677 - </style>
595 + </div>
678 596
679 597 <div class="row">
680 598 <div class="col-xs-12">
681 -
682 - <div class="wpbot-cards-grid-divider"></div>
683 -
684 - <div class="wpbot-cards-grid">
685 - <label class="wpbot-checkbox-card">
686 - <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' ): ''); ?>>
687 - <div class="card-body">
688 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
689 - <div class="icon-wrapper"><i class="dashicons dashicons-email" style="font-size:24px;width:24px;height:24px;"></i></div>
690 - <h4><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></h4>
691 - <p><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></p>
692 - </div>
693 - </label>
599 + <div class="cxsc-settings-blocks">
600 + <div class="form-group">
601 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </h4>
602 + <div class="cxsc-settings-blocks">
603 + <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox"
604 + name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
605 + <label for="skip_wp_greetings_donot_show_menu"><?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </label>
606 + </div>
694 607 </div>
695 - <div class="wpbot-cards-grid-divider"></div>
696 - <div class="wpbot-cards-grid">
697 - <label class="wpbot-checkbox-card">
698 - <input value="1" id="skip_wp_greetings" type="checkbox" name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
699 - <div class="card-body">
700 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
701 - <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div>
702 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Show Action Start Menu", 'chatbot'); ?></h4>
703 - <p><?php echo esc_html__("Skip asking for name, Email and directly show the Action Start Menu.", 'chatbot'); ?></p>
704 - </div>
705 - </label>
706 - <label class="wpbot-checkbox-card">
707 - <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' : ''); ?>>
708 - <div class="card-body">
709 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
710 - <div class="icon-wrapper"><i class="dashicons dashicons-hidden" style="font-size:24px;width:24px;height:24px;"></i></div>
711 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Disable Action Start Menu", 'chatbot'); ?></h4>
712 - <p><?php echo esc_html__("Skip asking for name, Email and disable the Action Start Menu.", 'chatbot'); ?></p>
713 - </div>
714 - </label>
715 - <label class="wpbot-checkbox-card">
716 - <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' ): ''); ?>>
717 - <div class="card-body">
718 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
719 - <div class="icon-wrapper"><i class="dashicons dashicons-menu-alt" style="font-size:24px;width:24px;height:24px;"></i></div>
720 - <h4><?php esc_html_e('Show Action Start Menu After Greetings', 'chatbot'); ?></h4>
721 - <p><?php esc_html_e('Show Action Start Menu immediately after greetings.', 'chatbot'); ?></p>
722 - </div>
723 - </label>
724 - <label class="wpbot-checkbox-card">
725 - <span class="pro-badge" style="display:inline-block; padding:2px 8px; background:#5B4E96; color:#fff; border-radius:20px; font-size:9px; font-weight:bold; text-transform:uppercase; vertical-align:middle;position: relative;top: 10px;z-index: 999;">PRO</span>
726 - <input value="1" id="skip_wp_greetings_trigger_intent" type="checkbox" name="skip_wp_greetings_trigger_intent" checked disabled />
727 - <div class="card-body">
728 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
729 - <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div>
730 - <h4><?php echo esc_html__("Skip Greetings and Trigger an Intent", 'chatbot'); ?> </h4>
731 - <p><?php echo esc_html__("Skip Asking for Name and Trigger an Intent", 'chatbot'); ?></p>
732 - <div class="qc_wp_intent_select_container" style="margin-top: 10px; ">
733 - <div style="margin-bottom: 8px;">
734 - <label style="font-weight: 600; font-size: 13px; color: #5b4e96; display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for non logged in user', 'chatbot'); ?></label>
735 - <select name="qlcd_wp_chatbot_intent_for_non_logged_in_user" id="qlcd_wp_chatbot_intent_for_non_logged_in_user" style="width: 100%; max-width: 250px;" disabled>
736 - <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option>
737 -
738 - </select>
739 - </div>
740 - <div>
741 - <label style="font-weight: 600; font-size: 13px; color: #5b4e96; display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for Logged in User', 'chatbot'); ?></label>
742 - <select name="qlcd_wp_chatbot_intent_for_logged_in_user" id="qlcd_wp_chatbot_intent_for_logged_in_user" style="width: 100%; max-width: 250px;" disabled>
743 - <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option>
744 - </select>
745 - </div>
746 - </div>
747 - </div>
748 - </label>
608 + </div>
609 + </div>
610 + </div>
611 + <div class="row">
612 + <div class="col-xs-12">
613 + <div class="form-group">
614 + <h4 class="qc-opt-title">
615 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
616 + </h4>
617 + <div class="cxsc-settings-blocks">
618 + <input value="1" id="show_menu_after_greetings" type="checkbox"
619 + name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
620 + <label for="show_menu_after_greetings">
621 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
622 + </label>
749 623 </div>
750 - <div class="wpbot-cards-grid-divider"></div>
751 - <div class="wpbot-cards-grid">
752 - <label class="wpbot-checkbox-card">
753 - <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' ): ''); ?>>
754 - <div class="card-body">
755 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
756 - <div class="icon-wrapper"><i class="dashicons dashicons-undo" style="font-size:24px;width:24px;height:24px;"></i></div>
757 - <h4><?php esc_html_e('Disable Back to Action Start Menu', 'chatbot'); ?></h4>
758 - <p><?php esc_html_e('Remove the option to go back to the Action Start Menu.', 'chatbot'); ?></p>
759 - </div>
760 - </label>
624 + </div>
761 625 </div>
762 - <div class="wpbot-cards-grid-divider"></div>
763 - <div class="wpbot-cards-grid">
764 -
765 -
766 - <label class="wpbot-checkbox-card">
767 - <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' ): ''); ?>>
768 - <div class="card-body">
769 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
770 - <div class="icon-wrapper"><i class="dashicons dashicons-editor-rtl" style="font-size:24px;width:24px;height:24px;"></i></div>
771 - <h4><?php esc_html_e('Enable RTL', 'chatbot'); ?></h4>
772 - <p><?php esc_html_e('Enable Right to Left language support for Chat.', 'chatbot'); ?></p>
773 - </div>
774 - </label>
775 -
776 -
777 - <label class="wpbot-checkbox-card">
778 - <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') : ''); ?>>
779 - <div class="card-body">
780 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
781 - <div class="icon-wrapper"><i class="dashicons dashicons-search" style="font-size:24px;width:24px;height:24px;"></i></div>
782 - <h4><?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?></h4>
783 - <p><?php esc_html_e('Enable Chatbot on WordPress search pages.', 'chatbot'); ?></p>
784 - </div>
785 - </label>
786 -
787 - <label class="wpbot-checkbox-card">
788 - <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'): ''); ?>>
789 - <div class="card-body">
790 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
791 - <div class="icon-wrapper"><i class="dashicons dashicons-external" style="font-size:24px;width:24px;height:24px;"></i></div>
792 - <h4><?php esc_html_e('Links in New Window', 'chatbot'); ?></h4>
793 - <p><?php esc_html_e('Open all Chatbot links in a new browser window.', 'chatbot'); ?></p>
794 - </div>
795 - </label>
796 - </div>
797 - <div class="wpbot-cards-grid-divider"></div>
798 - <div class="wpbot-cards-grid">
799 - <label class="wpbot-checkbox-card">
800 - <input value="1" id="disable_floating_button" type="checkbox" name="disable_floating_button" <?php echo (get_option('disable_floating_button') == 1 ? esc_attr('checked' ): ''); ?>>
801 - <div class="card-body">
802 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
803 - <div class="icon-wrapper"><i class="dashicons dashicons-dismiss" style="font-size:24px;width:24px;height:24px;"></i></div>
804 - <h4><?php esc_html_e('Disable Floating Button', 'chatbot'); ?></h4>
805 - <p><?php esc_html_e('Hide the chatbot floating icon from your website.', 'chatbot'); ?></p>
806 - </div>
807 - </label>
808 - <label class="wpbot-checkbox-card">
809 - <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' ) : ''); ?>>
810 - <div class="card-body">
811 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
812 - <div class="icon-wrapper"><i class="dashicons dashicons-smartphone" style="font-size:24px;width:24px;height:24px;"></i></div>
813 - <h4><?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?></h4>
814 - <p><?php esc_html_e('Disable WPBot from loading on mobile devices.', 'chatbot'); ?></p>
815 - </div>
816 - </label>
626 + </div>
627 + <div class="row">
628 + <div class="col-xs-12">
629 + <div class="form-group">
630 + <h4 class="qc-opt-title">
631 + <?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?>
632 + </h4>
633 + <div class="cxsc-settings-blocks">
634 + <input value="1" id="disable_back_to_start_menu" type="checkbox"
635 + name="disable_back_to_start_menu" <?php echo (get_option('disable_back_to_start_menu') == 1 ? esc_attr('checked' ): ''); ?>>
636 + <label for="disable_back_to_start_menu">
637 + <?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?>
638 + </label>
817 639 </div>
818 -
819 -
640 + </div>
820 641 </div>
821 642 </div>
643 + <div class="row">
644 + <div class="col-xs-12">
645 + <div class="form-group">
646 + <h4 class="qc-opt-title">
647 + <?php esc_html_e('Disable WPBot', 'chatbot'); ?>
648 + </h4>
649 + <div class="cxsc-settings-blocks">
650 + <input value="1" id="disable_wp_chatbot" type="checkbox"
651 + name="disable_wp_chatbot" <?php echo (get_option('disable_wp_chatbot') == 1 ? esc_attr('checked'): ''); ?>>
652 + <label for="disable_wp_chatbot">
653 + <?php esc_html_e('Disable WPBot to Load', 'chatbot'); ?>
654 + </label>
655 + </div>
656 + </div>
657 + </div>
658 + </div>
659 + <div class="row">
660 + <div class="col-xs-12">
661 + <div class="form-group">
662 + <h4 class="qc-opt-title">
663 + <?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?>
664 + </h4>
665 + <div class="cxsc-settings-blocks">
666 + <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox"
667 + name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
668 + <label for="disable_wp_chatbot_on_mobile">
669 + <?php esc_html_e('Disable WpBot to Load on Mobile Device', 'chatbot'); ?>
670 + </label>
671 + </div>
672 + </div>
673 + </div>
674 + </div>
675 + <div class="row">
676 + <div class="col-xs-12">
677 + <div class="form-group">
678 + <h4 class="qc-opt-title">
679 + <?php esc_html_e('Enable RTL', 'chatbot'); ?>
680 + </h4>
681 + <div class="cxsc-settings-blocks">
682 + <input value="1" id="enable_wp_chatbot_rtl" type="checkbox"
683 + name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
684 + <label for="enable_wp_chatbot_rtl">
685 + <?php esc_html_e('Enable RTL (Right to Left language) Support for Chat', 'chatbot'); ?>
686 + </label>
687 + </div>
688 + </div>
689 + </div>
690 +</div>
691 + <div class="row">
692 + <div class="col-xs-12">
693 + <div class="form-group">
694 + <h4 class="qc-opt-title">
695 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
696 + </h4>
697 + <div class="cxsc-settings-blocks">
698 + <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'): ''); ?>>
699 + <label for="open_links_new_window">
700 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
701 + </label>
702 + </div>
703 + </div>
704 + </div>
705 +</div>
822 706
823 707 <div class="row">
824 708 <div class="col-xs-12">
825 709 <div class="form-group">
@@ -837,13 +721,8 @@
837 721 </div>
838 722 </div>
839 723 </div>
840 724 </div>
841 -
842 -
843 -
844 -
845 -
846 725 <div class="row">
847 726 <div class="col-xs-12">
848 727 <div class="form-group">
849 728 <h4 class="qc-opt-title">
@@ -861,17 +740,17 @@
861 740 }
862 741 ?>
863 742 <input type="number" class="qc-opt-dcs-font"
864 743 name="wp_chatbot_position_x"
865 - value="<?php echo esc_attr($qcld_wb_chatbot_position_x);?>"
866 - placeholder="<?php esc_attr_e('From Right In ', 'chatbot'); ?>">
744 + value="<?php echo esc_html($qcld_wb_chatbot_position_x);?>"
745 + placeholder="<?php esc_html_e('From Right In ', 'chatbot'); ?>">
867 746 <span class="qc-opt-dcs-font">
868 747 <?php esc_html_e('From Right In px', 'chatbot'); ?>
869 748 </span>
870 749 <input type="number" class="qc-opt-dcs-font"
871 750 name="wp_chatbot_position_y"
872 - value="<?php echo esc_attr($qcld_wb_chatbot_position_y); ?>"
873 - placeholder="<?php esc_attr_e('From Bottom In Px', 'chatbot'); ?> ">
751 + value="<?php echo esc_html($qcld_wb_chatbot_position_y); ?>"
752 + placeholder="<?php esc_html_e('From Bottom In Px', 'chatbot'); ?> ">
874 753 <span class="qc-opt-dcs-font">
875 754 <?php esc_html_e('From Bottom In px', 'chatbot'); ?>
876 755 </span> </div>
877 756 </div>
@@ -957,14 +836,14 @@
957 836 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
958 837 ?>
959 838 <li>
960 839 <input id="<?php echo esc_attr('wp_chatbot_show_page_'. $wp_chatbot_page->ID ); ?>"
961 - type="checkbox"
962 - name="wp_chatbot_show_pages_list[]"
963 - 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) {
964 - echo esc_attr('checked');
965 - } ?> >
966 - <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label>
840 + type="checkbox"
841 + name="wp_chatbot_show_pages_list[]"
842 + 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) {
843 + echo esc_attr('checked');
844 + } ?> >
845 + <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label>
967 846 </li>
968 847 <?php } ?>
969 848 </ul>
970 849 </div>
@@ -1022,57 +901,57 @@
1022 901 <section id="section-flip-5">
1023 902 <div class="wp-chatbot-language-center-summmery"> </div>
1024 903 <div class="row">
1025 904 <div class="col-md-12">
1026 - <h4 class="qc-opt-title"><b><?php echo esc_html__( 'Change Language', 'chatbot'); ?></b></h4>
905 + <h4 class="qc-opt-title"><b><?php echo esc_html__( 'Change Language', 'wpchatbot' ); ?></b></h4>
1027 906 <!-- Language Selection Dropdown -->
1028 907 <div class="cxsc-settings-blocks mb-6">
1029 908 <div class="form-group">
1030 909 <label for="qcld_language_center_select" class="block text-sm font-medium text-gray-700 mb-2 qc-opt-language-title">
1031 - <?php echo esc_html__( 'Select a Language:', 'chatbot'); ?>
910 + <?php echo esc_html__( 'Select a Language:', 'wpchatbot' ); ?>
1032 911 </label>
1033 912 <select id="qcld_language_center_select" class="form-select" onchange="qcld_wpbot_languageChange_from_center(this.value)">
1034 - <option value=""> <?php echo esc_html__( '-- Choose a language --', 'chatbot'); ?></option>
1035 - <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>
1036 - <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>
1037 - <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>
1038 - <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>
1039 - <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>
1040 - <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>
1041 - <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>
1042 - <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>
1043 - <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>
1044 - <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>
1045 - <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>
1046 - <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>
1047 - <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>
1048 - <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>
1049 - <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>
1050 - <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>
1051 - <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>
1052 - <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>
1053 - <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>
1054 - <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>
1055 - <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>
1056 - <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>
1057 - <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>
1058 - <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>
1059 - <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>
1060 - <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>
1061 - <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>
1062 - <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>
1063 - <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>
1064 - <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>
1065 - <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>
1066 - <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>
1067 - <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>
1068 - <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>
1069 - <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>
913 + <option value=""> <?php echo esc_html__( '-- Choose a language --', 'wpchatbot' ); ?></option>
914 + <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>
915 + <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>
916 + <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>
917 + <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>
918 + <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>
919 + <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>
920 + <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>
921 + <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>
922 + <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>
923 + <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>
924 + <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>
925 + <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>
926 + <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>
927 + <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>
928 + <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>
929 + <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>
930 + <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>
931 + <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>
932 + <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>
933 + <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>
934 + <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>
935 + <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>
936 + <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>
937 + <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>
938 + <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>
939 + <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>
940 + <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>
941 + <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>
942 + <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>
943 + <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>
944 + <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>
945 + <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>
946 + <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>
947 + <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>
948 + <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>
1070 949 </select>
1071 950 <!-- Results Display Area -->
1072 951 <div id="results-container" class="mt-8 p-4 flex items-center justify-center text-gray-600">
1073 952 <p id="initial-message">
1074 - <?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>
953 + <?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>
1075 954 </p>
1076 955 <p id="waring-message"></p>
1077 956 </div>
1078 957 </div>
@@ -1104,9 +983,9 @@
1104 983 <?php esc_html_e('Your Company or Website Name', 'chatbot'); ?>
1105 984 </h4>
1106 985 <input type="text" class="form-control qc-opt-dcs-font"
1107 986 name="qlcd_wp_chatbot_host"
1108 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?>">
987 + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?> ">
1109 988 </div>
1110 989 <div class="form-group">
1111 990 <h4 class="qc-opt-title">
1112 991 <?php esc_html_e('Agent name', 'chatbot'); ?>
@@ -1112,9 +991,9 @@
1112 991 <?php esc_html_e('Agent name', 'chatbot'); ?>
1113 992 </h4>
1114 993 <input type="text" class="form-control qc-opt-dcs-font"
1115 994 name="qlcd_wp_chatbot_agent"
1116 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie')); ?>">
995 + value="<?php echo (get_option('qlcd_wp_chatbot_agent') != '' ? esc_attr(get_option('qlcd_wp_chatbot_agent')) : 'Carrie'); ?>">
1117 996 </div>
1118 997 <div class="form-group">
1119 998 <h4 class="qc-opt-title">
1120 999 <?php esc_html_e('User demo name', 'chatbot'); ?>
@@ -1120,9 +999,9 @@
1120 999 <?php esc_html_e('User demo name', 'chatbot'); ?>
1121 1000 </h4>
1122 1001 <input type="text" class="form-control qc-opt-dcs-font"
1123 1002 name="qlcd_wp_chatbot_shopper_demo_name"
1124 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?>">
1003 + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?> ">
1125 1004 </div>
1126 1005 <div class="form-group">
1127 1006 <h4 class="qc-opt-title">
1128 1007 <?php esc_html_e('YES', 'chatbot'); ?>
@@ -1546,13 +1425,13 @@
1546 1425 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dislike_text') != '' ? get_option('qlcd_wp_chatbot_dislike_text') : 'Dislike')); ?>">
1547 1426 </div>
1548 1427
1549 1428 <div class="form-group">
1550 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </h4>
1429 + <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Reporting Message', 'wpchatbot' ); ?> </h4>
1551 1430 <div class="cxsc-settings-blocks">
1552 1431 <input value="1" id="enable_chat_report_menu" type="checkbox"
1553 1432 name="enable_chat_report_menu" <?php echo( get_option( 'enable_chat_report_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1554 - <label for="enable_chat_report_menu"><?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </label>
1433 + <label for="enable_chat_report_menu"><?php echo esc_html__( 'Enable Reporting Message', 'wpchatbot' ); ?> </label>
1555 1434 </div>
1556 1435 </div>
1557 1436 <div class="form-group">
1558 1437 <h4 class="qc-opt-title">
@@ -1562,13 +1441,13 @@
1562 1441 name="qlcd_wp_chatbot_report_text"
1563 1442 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_report_text') != '' ? get_option('qlcd_wp_chatbot_report_text') : 'Report')); ?>">
1564 1443 </div>
1565 1444 <div class="form-group">
1566 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </h4>
1445 + <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Share', 'wpchatbot' ); ?> </h4>
1567 1446 <div class="cxsc-settings-blocks">
1568 1447 <input value="1" id="enable_chat_share_menu" type="checkbox"
1569 1448 name="enable_chat_share_menu" <?php echo( get_option( 'enable_chat_share_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1570 - <label for="enable_chat_share_menu"><?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </label>
1449 + <label for="enable_chat_share_menu"><?php echo esc_html__( 'Enable Chat Share', 'wpchatbot' ); ?> </label>
1571 1450 </div>
1572 1451 </div>
1573 1452 <div class="form-group">
1574 1453 <h4 class="qc-opt-title">
@@ -1599,57 +1478,9 @@
1599 1478 </ul>
1600 1479 <div class="tab-content">
1601 1480 <div id="wp-chatbot-icon-theme-settings" class="tab-pane fade in active">
1602 1481 <div class="top-section">
1603 -
1604 -
1605 -
1606 - <div class="row">
1607 - <div class="col-xs-6">
1608 - <div class="form-group">
1609 - <h4 class="qc-opt-title">
1610 - <?php esc_html_e('ChatBot Window Max Height', 'wpchatbot'); ?>
1611 - </h4>
1612 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1613 - <?php
1614 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1615 - if (!$chatbot_content_max_height) {
1616 - $chatbot_content_max_height = 80;
1617 - } else {
1618 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1619 - }
1620 - ?>
1621 - <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
1622 - </div>
1623 - </div>
1624 - </div>
1625 - <div class="col-xs-6">
1626 - <div class="form-group">
1627 - <h4 class="qc-opt-title">
1628 - <?php esc_html_e('ChatBot Window Max Height ( Mobile Device )', 'wpchatbot'); ?>
1629 - </h4>
1630 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1631 - <?php
1632 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1633 - if (!$chatbot_content_max_height_responsive) {
1634 - $chatbot_content_max_height_responsive = 100;
1635 - } else {
1636 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1637 - }
1638 - ?>
1639 - <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
1640 - </div>
1641 - </div>
1642 - </div>
1643 - </div>
1644 -
1645 -
1646 -
1647 -
1648 -
1649 -
1650 -
1651 - <div class="row">
1482 + <div class="row">
1652 1483 <div class="col-xs-12">
1653 1484
1654 1485 <h3 class="qcld-wpbot-main-tabs-title">
1655 1486 <?php esc_html_e('WPBot Icon', 'chatbot'); ?>
@@ -1831,121 +1662,11 @@
1831 1662 </div>
1832 1663 </div>
1833 1664 </div>
1834 1665 </div>
1835 - <!-- ===== Custom Icon Video / YouTube ===== -->
1836 - <div class="row">
1837 - <div class="col-xs-12">
1838 - <div class="form-group">
1839 - <h4 class="qc-opt-title"><?php echo esc_html__('Custom Icon Video / YouTube Link', 'wpchatbot'); ?></h4>
1840 - <p style="margin-bottom:8px;"><?php echo esc_html__('Upload a short video file or paste a YouTube embed URL to use instead of the wpbot icon.', 'wpchatbot'); ?></p>
1841 - <div class="cxsc-settings-blocks">
1842 1666
1843 - <?php
1844 - $wp_chatbot_icon_video = get_option('wp_chatbot_icon_video', '');
1845 - $is_youtube = (strpos($wp_chatbot_icon_video, 'youtube.com') !== false || strpos($wp_chatbot_icon_video, 'youtu.be') !== false);
1846 - $is_video = !$is_youtube && $wp_chatbot_icon_video !== '';
1847 - ?>
1848 1667
1849 - <!-- Video Upload -->
1850 - <p style="font-weight:600;margin-bottom:4px;"><?php echo esc_html__('Upload Video File', 'wpchatbot'); ?></p>
1851 - <input type="hidden"
1852 - name="wp_chatbot_icon_video"
1853 - id="wp_chatbot_icon_video"
1854 - value="<?php echo esc_url($wp_chatbot_icon_video); ?>" />
1855 - <button type="button" id="wp_chatbot_icon_video_btn" class="button">
1856 - <?php echo esc_html__('Upload Video', 'wpchatbot'); ?>
1857 - </button>
1858 - <?php if ($is_video): ?>
1859 - <span style="margin-left:8px;vertical-align:middle;">
1860 - <video src="<?php echo esc_url($wp_chatbot_icon_video); ?>" width="80" height="80" style="border-radius:50%;object-fit:cover;" muted loop autoplay playsinline></video>
1861 - </span>
1862 - <?php endif; ?>
1863 - <button type="button" id="wp_chatbot_icon_video_clear_btn" class="button" style="margin-left:6px;<?php echo ($wp_chatbot_icon_video === '' || $is_youtube) ? 'display:none;' : ''; ?>">
1864 - <?php echo esc_html__('Remove Video', 'wpchatbot'); ?>
1865 - </button>
1866 1668
1867 - <!-- YouTube URL -->
1868 - <p style="font-weight:600;margin-top:12px;margin-bottom:4px;"><?php echo esc_html__('— or — YouTube Embed URL', 'wpchatbot'); ?></p>
1869 - <?php $youtube_url_val = $is_youtube ? esc_url($wp_chatbot_icon_video) : ''; ?>
1870 - <input type="url"
1871 - name="wp_chatbot_icon_youtube_url"
1872 - id="wp_chatbot_icon_youtube_url"
1873 - class="regular-text"
1874 - placeholder="https://www.youtube.com/embed/VIDEO_ID"
1875 - value="<?php echo esc_url( $youtube_url_val ); ?>" />
1876 - <button type="button" id="wp_chatbot_icon_youtube_url_clear_btn" class="button" style="margin-left:6px;<?php echo ($youtube_url_val === '' ? 'display:none;' : ''); ?>">
1877 - <?php echo esc_html__('Remove YouTube URL', 'wpchatbot'); ?>
1878 - </button>
1879 - <p class="description"><?php echo esc_html__('Paste the YouTube embed URL (e.g. https://www.youtube.com/embed/xxxxx). This will override the uploaded video above.', 'wpchatbot'); ?></p>
1880 -
1881 - <p style="font-weight:600;margin-top:14px;margin-bottom:4px;"><?php echo esc_html__('Autoplay Delay (seconds)', 'wpchatbot'); ?></p>
1882 - <input type="number"
1883 - name="wp_chatbot_icon_video_delay"
1884 - id="wp_chatbot_icon_video_delay"
1885 - class="small-text"
1886 - min="0"
1887 - max="60"
1888 - step="1"
1889 - value="<?php echo absint( get_option('wp_chatbot_icon_video_delay', 0) ); ?>" />
1890 - <p class="description"><?php echo esc_html__('Wait this many seconds after page load before starting the video. Set to 0 for immediate autoplay.', 'wpchatbot'); ?></p>
1891 -
1892 - </div>
1893 - </div>
1894 - </div>
1895 - </div>
1896 - <!-- ===== /Custom Icon Video / YouTube ===== -->
1897 - <script>
1898 - (function($){
1899 - $(document).ready(function(){
1900 - // Video upload via WP Media Library
1901 - $('#wp_chatbot_icon_video_btn').on('click', function(e){
1902 - e.preventDefault();
1903 - var frame = wp.media({
1904 - title: '<?php echo esc_js(__('Select or Upload Video', 'wpchatbot')); ?>',
1905 - button: { text: '<?php echo esc_js(__('Use this video', 'wpchatbot')); ?>' },
1906 - multiple: false,
1907 - library: { type: 'video' }
1908 - });
1909 - frame.on('select', function(){
1910 - var attachment = frame.state().get('selection').first().toJSON();
1911 - $('#wp_chatbot_icon_video').val(attachment.url);
1912 - $('#wp_chatbot_icon_youtube_url').val('');
1913 - $('#wp_chatbot_icon_youtube_url_clear_btn').hide();
1914 - $('#wp_chatbot_icon_video_clear_btn').show();
1915 - });
1916 - frame.open();
1917 - });
1918 -
1919 - // Clear uploaded video
1920 - $('#wp_chatbot_icon_video_clear_btn').on('click', function(){
1921 - $('#wp_chatbot_icon_video').val('');
1922 - $(this).hide();
1923 - });
1924 -
1925 - // Show/hide Remove YouTube URL button dynamically
1926 - $('#wp_chatbot_icon_youtube_url').on('input keyup change', function(){
1927 - if ($(this).val().trim() !== '') {
1928 - $('#wp_chatbot_icon_youtube_url_clear_btn').show();
1929 - } else {
1930 - $('#wp_chatbot_icon_youtube_url_clear_btn').hide();
1931 - }
1932 - });
1933 -
1934 - // Clear YouTube URL
1935 - $('#wp_chatbot_icon_youtube_url_clear_btn').on('click', function(){
1936 - $('#wp_chatbot_icon_youtube_url').val('');
1937 - var currentVideoVal = $('#wp_chatbot_icon_video').val();
1938 - if (currentVideoVal.indexOf('youtube.com') !== -1 || currentVideoVal.indexOf('youtu.be') !== -1) {
1939 - $('#wp_chatbot_icon_video').val('');
1940 - }
1941 - $(this).hide();
1942 - });
1943 - });
1944 - })(jQuery);
1945 - </script>
1946 -
1947 -
1948 1669 <div class="row">
1949 1670 <div class="col-xs-12">
1950 1671 <div class="form-group">
1951 1672 <h4 class="qc-opt-title">
@@ -2010,29 +1731,8 @@
2010 1731 </div>
2011 1732 </div>
2012 1733 <div id="top-section">
2013 1734 <div class="form-group">
2014 - <!-- Avatar Location Section -->
2015 - <div class="avatar-location-wrapper">
2016 - <h4 class="qc-opt-title"><?php esc_html_e('Avatar Location', 'chatbot'); ?></h4>
2017 - <?php $avatar_location = get_option('qcld_chatbot_avatar_location'); ?>
2018 - <input type="hidden" id="qcld-avatar-location" name="qcld_chatbot_avatar_location" value="<?php echo esc_attr($avatar_location); ?>">
2019 - <div class="avatar-location-cards">
2020 - <div class="avatar-location-card <?php echo ($avatar_location === 'inside') ? 'active' : ''; ?>" data-location="inside">
2021 - <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>
2022 - <span><?php esc_html_e('Inside', 'chatbot'); ?></span>
2023 - </div>
2024 - <div class="avatar-location-card <?php echo ($avatar_location === 'side') ? 'active' : ''; ?>" data-location="side">
2025 - <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>
2026 - <span><?php esc_html_e('Side', 'chatbot'); ?></span>
2027 - </div>
2028 - <div class="avatar-location-card <?php echo ($avatar_location === 'hidden') ? 'active' : ''; ?>" data-location="hidden">
2029 - <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>
2030 - <span><?php esc_html_e('Hidden', 'chatbot'); ?></span>
2031 - </div>
2032 - </div>
2033 - </div>
2034 - <!-- End Avatar Location Section -->
2035 1735 <div class="row">
2036 1736 <div class="col-sm-12">
2037 1737 <h4 class="qc-opt-title">
2038 1738 <?php esc_html_e('WPBot Themes', 'chatbot'); ?>
@@ -2089,9 +1789,9 @@
2089 1789 <div class="cxsc-settings-blocks">
2090 1790 <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
2091 1791 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>>
2092 1792 <label for="enable_wp_chatbot_custom_color">
2093 - <?php esc_html_e('Enable Custom Styles ', 'chatbot'); ?>
1793 + <?php esc_html_e('Enable Custom Styles ', 'wpbot'); ?>
2094 1794 </label>
2095 1795 </div>
2096 1796 </div>
2097 1797 </div>
@@ -2436,9 +2136,9 @@
2436 2136 <input type="text" class="form-control" name="support_query[]"
2437 2137 placeholder="<?php esc_html_e('FAQ Query ', 'chatbot'); ?> ">
2438 2138 <br>
2439 2139 <p class="qc-opt-dcs-font"><strong>
2440 - <?php esc_html_e('FAQ answer', 'chatbot'); ?>
2140 + <?php esc_html_e('Support answer', 'chatbot'); ?>
2441 2141 </strong></p>
2442 2142 <?php
2443 2143 wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
2444 2144 'support_ans[]',
@@ -2476,16 +2176,14 @@
2476 2176 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2477 2177 <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'); ?>
2478 2178 </div> -->
2479 2179 <?php
2480 - 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');
2180 + 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');
2481 2181 ?>
2482 2182 <div class="top-section">
2483 2183 <div class="notification-block-inner">
2484 2184 <div class="row">
2485 2185 <div class="col-xs-12">
2486 -
2487 -
2488 2186 <div id="qcld-show-more-wrapper-box">
2489 2187 <div class="qcld-show-more-text qcld-show-more-show-more-height">
2490 2188 <div class="row">
2491 2189 <div class="col-xs-12">
@@ -2499,9 +2197,9 @@
2499 2197 <div class="cxsc-settings-blocks">
2500 2198 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox"
2501 2199 name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
2502 2200 <label for="disable_wp_chatbot_site_search">
2503 - <?php esc_html_e('Disable site search feature and button on Action Start Menu', 'chatbot'); ?>
2201 + <?php esc_html_e('Disable site search feature and button on Start Menu', 'chatbot'); ?>
2504 2202 </label>
2505 2203 </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>
2506 2204 </div>
2507 2205 <div class="cxsc-settings-blocks">
@@ -2531,9 +2229,9 @@
2531 2229 <div class="cxsc-settings-blocks">
2532 2230 <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox"
2533 2231 name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
2534 2232 <label for="disable_wp_chatbot_call_gen">
2535 - <?php esc_html_e('Disable Call Me feature and button on Action Start Menu', 'chatbot'); ?>
2233 + <?php esc_html_e('Disable Call Me feature and button on Start Menu', 'chatbot'); ?>
2536 2234 </label>
2537 2235 </div>
2538 2236 </div>
2539 2237 </div>
@@ -2555,9 +2253,9 @@
2555 2253 <div class="cxsc-settings-blocks">
2556 2254 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox"
2557 2255 name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>>
2558 2256 <label for="disable_wp_chatbot_feedback">
2559 - <?php esc_html_e('Disable Email feature and button on Action Start Menu', 'chatbot'); ?>
2257 + <?php esc_html_e('Disable Email feature and button on Start Menu', 'chatbot'); ?>
2560 2258 </label>
2561 2259 </div>
2562 2260 </div>
2563 2261 </div>
@@ -2579,9 +2277,9 @@
2579 2277 <div class="cxsc-settings-blocks">
2580 2278 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox"
2581 2279 name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
2582 2280 <label for="disable_wp_chatbot_faq">
2583 - <?php esc_html_e('Disable FAQ feature and button on Action Start Menu', 'chatbot'); ?>
2281 + <?php esc_html_e('Disable FAQ feature and button on Start Menu', 'chatbot'); ?>
2584 2282 </label>
2585 2283 </div>
2586 2284 </div>
2587 2285 </div>
@@ -2597,9 +2295,9 @@
2597 2295
2598 2296 </div>
2599 2297 </div>
2600 2298 </div>
2601 - <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div>
2299 + <div class="qcld-show-more-show-more"><i class="dashicons dashicons-plus-alt" aria-hidden="true"></i></div>
2602 2300 </div>
2603 2301 <div class="qc_menu_setup_area">
2604 2302 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'chatbot'); ?></h3>
2605 2303 <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>
@@ -2614,18 +2312,14 @@
2614 2312 <?php
2615 2313 if(get_option('qc_wpbot_menu_order')!=''):
2616 2314 if( is_string( get_option('qc_wpbot_menu_order') ) ):
2617 2315 echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
2316 + else:
2618 2317 endif;
2619 - else:
2620 - $site_search_label = get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search';
2621 - $support_email_label = get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email.';
2622 - $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!';
2623 - echo '<span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search">' . esc_attr($site_search_label) . '</span>';
2624 - echo '<span class="qcld-chatbot-suggest-email qc_draggable_item">' . esc_attr($support_email_label) . '</span>';
2625 - echo '<span class="qcld-chatbot-suggest-phone qc_draggable_item">' . esc_attr($support_phone_label) . '</span>';
2626 - endif;
2627 2318 ?>
2319 +
2320 +
2321 + <?php endif; ?>
2628 2322 </div>
2629 2323 </div>
2630 2324 <div class="qc_menu_list_area">
2631 2325 <h4><?php esc_html_e('Available Menu', 'chatbot'); ?></h4>
@@ -2669,9 +2363,9 @@
2669 2363 global $wpdb;
2670 2364
2671 2365 //To Do: Need to use prepared statement
2672 2366
2673 - $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
2367 + $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); //DB Call OK, No Caching OK.
2674 2368 if(!empty($results)){
2675 2369 ?>
2676 2370 <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p>
2677 2371 <ul>
@@ -2840,9 +2534,9 @@
2840 2534 </section>
2841 2535
2842 2536 <section id="section-flip-9">
2843 2537 <div class="cxsc-settings-blocks-addon"><?php esc_html_e('Install the Conversational Form Builder to Collect Information from the users and create Button (menu) Driven Conversations.', 'chatbot'); ?></br>
2844 - <?php esc_html_e('After creating a Conversational form, you can add it to the ChatBot`s Action Start Menu from the ChatBot Settings->Action Start Menu', 'chatbot'); ?></b></div>
2538 + <?php esc_html_e('After creating a Conversational form, you can add it to the ChatBot`s Start Menu from the ChatBot Settings->Start Menu', 'chatbot'); ?></b></div>
2845 2539
2846 2540 <div class="qcld-recommendbot-conv-feature">
2847 2541 <?php include_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '/qcld-recommendbot-plugin.php'; ?>
2848 2542 </div>
@@ -2862,9 +2556,9 @@
2862 2556
2863 2557 <h3><?php esc_html_e('How it Works?', 'chatbot'); ?></h3>
2864 2558 <p><?php esc_html_e('After creating a Conversation or form, you can show it in the ChatBot in different ways.', 'chatbot'); ?></p>
2865 2559 <ul>
2866 - <li><?php esc_html_e('🚀 Add it to the Action Start Menu', 'chatbot'); ?></li>
2560 + <li><?php esc_html_e('🚀 Add it to the Start menu', 'chatbot'); ?></li>
2867 2561 <li><?php esc_html_e('🚀 Invoke the form intent with a system command to start inside ChatBot any time', 'chatbot'); ?></li>
2868 2562 <li><?php esc_html_e('🚀 Load the single intent/form inside a ChatBot widget on any page', 'chatbot'); ?></li>
2869 2563 <li><?php esc_html_e('🚀 Load the intent/form inside the ChatBot using a Click to Chat button that can be placed anywhere inside your content on any page.', 'chatbot'); ?></li>
2870 2564 <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions', 'chatbot'); ?></li>
@@ -2891,9 +2585,9 @@
2891 2585 <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions (**NEW)', 'chatbot'); ?></li>
2892 2586 <li><?php esc_html_e('🚀 Unlimited Variables creation', 'chatbot'); ?></li>
2893 2587 <li><?php esc_html_e('🚀 Form Revisions', 'chatbot'); ?></li>
2894 2588 <li><?php esc_html_e('🚀 Create system command to initiate form for ChatBot', 'chatbot'); ?></li>
2895 - <li><?php esc_html_e('🚀 Add form to Action Start Menu', 'chatbot'); ?></li>
2589 + <li><?php esc_html_e('🚀 Add form to Start Menu', 'chatbot'); ?></li>
2896 2590 <li><?php esc_html_e('🚀 Submit Forms to OpenAI for a Response with your instructions and user submitted data. Supports multi-modal mode. Users can upload an Image or Audio file along with other form fields that you create. Check this article on how Conversational forms work with OpenAI.', 'chatbot'); ?></li>
2897 2591 </ul>
2898 2592 </div>
2899 2593