PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 7.3.2
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v7.3.2
8.7.8 8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 All 534 releases
← All changes | admin_ui.php +294 -730 8.7.27.3.2 View file →
@@ -1,26 +1,10 @@
1 +<?php
1 2
2 -<?php
3 3 // Exit if accessed directly
4 4 if ( ! defined( 'ABSPATH' ) ) {
5 5 exit;
6 6 }
7 -// Ensure WordPress escaping and translation functions are available
8 -if ( ! function_exists( 'esc_html' ) ) {
9 - require_once( ABSPATH . 'wp-includes/formatting.php' );
10 -}
11 -if ( ! function_exists( 'esc_html__' ) ) {
12 - require_once( ABSPATH . 'wp-includes/l10n.php' );
13 -}
14 -if ( ! function_exists( 'esc_html_e' ) ) {
15 - require_once( ABSPATH . 'wp-includes/l10n.php' );
16 -}
17 -if ( ! function_exists( 'esc_attr' ) ) {
18 - require_once( ABSPATH . 'wp-includes/formatting.php' );
19 -}
20 -if ( ! function_exists( 'esc_url' ) ) {
21 - require_once( ABSPATH . 'wp-includes/formatting.php' );
22 -}
23 7 ?>
24 8
25 9 <div class="wrap qcld-main-wrapper">
26 10 <h1 style="display:none">
@@ -28,11 +12,10 @@
28 12 </h1>
29 13
30 14 <div class="qcld-wp-chatbot-wrap-header">
31 15
32 - <div class="qcld-wp-chatbot-wrap-header-logo"><a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img 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,49 +54,42 @@
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" 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">
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" 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">
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 - <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">
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">
65 + <?php esc_html_e('Change Language', 'chatbot'); ?>
66 + </span> </a></li>
67 +
68 + <div class="cxsc-settings_openai_border"> <a href="<?php echo esc_url( $action) .'_openAi' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-gear"></i>
69 + </span> <span class=""> <?php esc_html_e('AI Settings', 'chatbot'); ?> </span>
70 + </a>
71 +</div>
72 +
73 +
74 +
75 + <li tab-data="themes"><a href="<?php echo esc_url($action) .'&tab=themes' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-random"></i> </span> <span class="wpwbot-admin-tab-name">
95 76 <?php esc_html_e('Icons & Themes', 'chatbot'); ?>
96 77 </span> </a></li>
97 - <li tab-data="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">
99 - <?php esc_html_e('Button Configurations', 'chatbot'); ?>
78 + <li tab-data="support"><a href="<?php echo esc_url($action).'&tab=support' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-life-ring"></i> </span> <span class="wpwbot-admin-tab-name">
79 + <?php esc_html_e('FAQ Builder', 'chatbot'); ?>
100 80 </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'); ?>
103 - </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">
105 - <?php esc_html_e('FAQ Builder', 'chatbot'); ?>
106 - </span> </a></li>
81 + <li tab-data="startmenu"><a href="<?php echo esc_url($action).'&tab=startmenu' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-bars"></i> </span> <span class="wpwbot-admin-tab-name"><?php esc_html_e('Start Menu', 'chatbot'); ?></span> </a></li>
82 +
107 83
108 - <li tab-data="ai"><a href="<?php echo esc_url($action).'&tab=ai' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-format-chat"></span> </span> <span class="wpwbot-admin-tab-name">
84 + <li tab-data="ai"><a href="<?php echo esc_url($action).'&tab=ai' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-500px"></i> </span> <span class="wpwbot-admin-tab-name">
109 85 <?php esc_html_e('Dialogflow', 'chatbot'); ?>
110 86 </span> </a></li>
111 87
112 88
113 - <li tab-data="<?php echo esc_url('rpl'); ?>" data-section="#section-flip-9" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>">
114 - <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-feedback"></span>
115 - </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?>
89 + <li tab-data="<?php echo esc_url('rpl'); ?>" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>">
90 + <span class="wpwbot-admin-tab-icon"> <i class="fa fa-plug"></i>
91 + </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?>
116 92 </span>
117 93 </a>
118 94 </li>
119 95
@@ -119,10 +95,10 @@
119 95
120 96
121 97
122 98
123 - <li tab-data="custom_css" data-section="#section-flip-13"> <a href="<?php echo esc_url($action).'&tab=custom_css'?>">
124 - <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-editor-code"></span>
99 + <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=ai'?>">
100 + <span class="wpwbot-admin-tab-icon"> <i class="fa fa-code"></i>
125 101 </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Custom CSS', 'chatbot'); ?></span>
126 102 </a>
127 103 </li>
128 104
@@ -147,9 +123,9 @@
147 123
148 124 <div class="text-center mt-5 qcld-Resetall">
149 125 <input type="button" class="btn btn-warning submit-button"
150 126 id="qcld-wp-chatbot-reset-option"
151 - value="<?php echo esc_attr__('Reset all options to Default', 'chatbot') ; ?>"/>
127 + value="<?php echo esc_html('Reset all options to Default') ; ?>"/>
152 128 </div>
153 129 </nav>
154 130
155 131
@@ -161,10 +137,10 @@
161 137
162 138 <div class="wrap qcld-swpm-admin-menu-wrap">
163 139 <div class="wrap qcld-swpm-admin-menu-wrap">
164 140 <h3 class="nav-tab-wrapper sld_nav_container wppt_nav_container">
165 - <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html__('Getting Started', 'chatbot'); ?></a>
166 - <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html__('WPBot – In a Nutshell', 'chatbot'); ?></a>
141 + <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html('Getting Started'); ?></a>
142 + <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html('WPBot – In a Nutshell'); ?></a>
167 143 </h3>
168 144 <div class="wppt-settings-section" id="general_int">
169 145 <div class="content form-container qcbot_help_secion" style="">
170 146 <!-- new Section -->
@@ -172,9 +148,9 @@
172 148 <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_html__('WPBot Interactions', 'chatbot'); ?></h3>
173 149 <p><?php echo esc_html__('You can use WPBot to both answer user questions and collect information from the users.', 'chatbot'); ?></p>
174 150 <h4><?php echo esc_html__('To create answers to user questions you can use:', 'chatbot'); ?></h4>
175 151 <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>
176 - </p>
152 +</p>
177 153 <h4> <?php echo esc_html__('To collect information from your users you can use:', 'chatbot'); ?></h4>
178 154 <p> <b>
179 155 <?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>
180 156 <hr>
@@ -209,9 +185,9 @@
209 185 <div class="to-icon-txt fa-4x-txt ">
210 186 <h3>
211 187 <span>// </span><?php esc_html_e('Send eMail, Call Me Back &amp; Feedback Collection', 'chatbot'); ?>
212 188 </h3>
213 - <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>
189 + <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>
214 190 </div>
215 191 </div>
216 192 <div class="to-icon-box left txt-left">
217 193 <div class="to-icon-txt fa-4x-txt ">
@@ -265,9 +241,9 @@
265 241 </h4>
266 242 </div>
267 243 <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
268 244 <div class="panel-body">
269 - <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'); ?>
245 + <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'); ?>
270 246 <?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'); ?>.
271 247 </p>
272 248 <h4><?php esc_html_e('Conversational Form Builder Free or Pro version works with the WPBot Free or Pro versions.', 'chatbot'); ?></h4>
273 249 <a class="FormBuilder" href="https://wordpress.org/plugins/conversational-forms/" target="_blank"><?php esc_html_e('Download Free Version', 'chatbot'); ?></a>
@@ -375,16 +351,16 @@
375 351 </div>
376 352 <div class="panel panel-default">
377 353 <div class="panel-heading" role="tab" id="headingSix">
378 354 <h4 class="panel-title">
379 - <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>
355 + <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>
380 356 </h4>
381 357 </div>
382 358 <div id="collapseSix" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix">
383 359 <div class="panel-body">
384 - <?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>
385 - <?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>
386 - <?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'); ?>
360 + <?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>
361 + <?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>
362 + <?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'); ?>
387 363 </div>
388 364 </div>
389 365 </div>
390 366 <div class="panel panel-default">
@@ -394,9 +370,9 @@
394 370 </h4>
395 371 </div>
396 372 <div id="collapseSeven" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSeven">
397 373 <div class="panel-body">
398 - <?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>
374 + <?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>
399 375 <?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'); ?>
400 376 </div>
401 377 </div>
402 378 </div>
@@ -524,306 +500,159 @@
524 500 </div>
525 501 <?php } ?>
526 502
527 503 <div class="cxsc-settings-blocks-notic">
528 - <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>
529 - <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>
530 - <p class="d-ib"><i class="dashicons dashicons-yes" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Help and Debugging section to troubleshoot common issues.', 'chatbot'); ?></p>
504 + <p class="d-ib"><i class="fa fa-check-square-o" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Getting Started section for how to create interactions.', 'chatbot'); ?></p>
505 + <p class="d-ib"><i class="fa fa-check-square-o" aria-hidden="true"></i> <?php esc_html_e('You can change ALL the texts used by the ChatBot to YOUR language here to make it speak French, German, Spanish etc. -> Change Language', 'chatbot'); ?></p>
506 + <p class="d-ib"><i class="fa fa-check-square-o" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Help and Debugging section to troubleshoot common issues.', 'chatbot'); ?></p>
531 507 </div>
532 - </div>
533 - </div>
508 +
509 + <b>
510 + <!-- <p>Please see the plugin's Help and Debugging section to troubleshoot common issues.</p> -->
511 + </b>
512 +
534 513
535 -
536 -
537 -
538 - <div class="row">
539 - <div class="col-xs-6">
540 - <div class="cxsc-settings-blocks">
541 - <div class="form-group" style=" min-height: 150px;">
514 + <div class="cxsc-settings-blocks">
515 + <div class="form-group">
542 516 <?php
543 - $qcld_wpbot_url = get_site_url();
544 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
545 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
546 - $qcld_wpbot_admin_email = get_option('admin_email');
517 + $url = get_site_url();
518 + $url = wp_parse_url($url);
519 + $domain = $url['host'];
520 +
521 + $admin_email = get_option('admin_email');
547 522 ?>
548 523 <h4 class="qc-opt-title"><?php esc_html_e('Emails Will be Sent to', 'chatbot'); ?></h4>
549 524 <input type="text" class="form-control qc-opt-dcs-font"
550 - name="qlcd_wp_chatbot_admin_email"
551 - 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)) ); ?>">
552 - <label class="qcld_label_width_full qcld_label_width_half" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'chatbot'); ?> </label>
525 + name="qlcd_wp_chatbot_admin_email"
526 + value="<?php echo (get_option('qlcd_wp_chatbot_admin_email') != '' ? esc_attr(get_option('qlcd_wp_chatbot_admin_email')) : sanitize_email($admin_email) ) ?>">
527 + <label class="qcld_label_width_full" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'chatbot'); ?> </label>
553 528 </div>
554 529 </div>
530 + <div class="cxsc-settings-blocks">
531 + <div class="form-group">
532 + <?php
533 + $url = get_site_url();
534 + $url = wp_parse_url($url);
535 + $domain = $url['host'];
536 + $fromEmail = "wordpress@" . $domain;
537 + ?>
538 + <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
539 + <input type="text" class="form-control qc-opt-dcs-font"
540 + name="qlcd_wp_chatbot_from_email"
541 + value="<?php echo (get_option('qlcd_wp_chatbot_from_email') != '' ? esc_attr( get_option('qlcd_wp_chatbot_from_email')) : sanitize_email($fromEmail)); ?> ">
542 + <label class="qcld_label_width_full" for="qlcd_wp_chatbot_from_email"><?php esc_html_e('All emails will be sent from this email address. If you change the From Email Address then please make sure the domain remains the same as where WordPress is installed. Otherwise, the emails may not be received.', 'chatbot'); ?> </label>
543 + </div>
555 544 </div>
556 - <div class="col-xs-6">
557 - <div class="cxsc-settings-blocks">
558 - <div class="form-group">
559 - <?php
560 - $qcld_wpbot_url = get_site_url();
561 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
562 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
563 - $qcld_wpbot_from_email = "wordpress@" . $qcld_wpbot_domain;
564 - ?>
565 - <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
566 - <input type="text" class="form-control qc-opt-dcs-font"
567 - name="qlcd_wp_chatbot_from_email"
568 - 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))); ?> ">
569 - <label class="qcld_label_width_full qcld_label_width_half" for="qlcd_wp_chatbot_from_email"><?php esc_html_e('All emails will be sent from this email address. If you change the From Email Address then please make sure the domain remains the same as where WordPress is installed. Otherwise, the emails may not be received.', 'chatbot'); ?> </label>
545 + </div>
546 + </div>
547 + <div class="row">
548 + <div class="col-xs-12">
549 + <div class="cxsc-settings-blocks">
550 + <div class="form-group">
551 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </h4>
552 + <div class="cxsc-settings-blocks">
553 + <input value="1" id="skip_wp_greetings" type="checkbox"
554 + name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
555 + <label for="skip_wp_greetings"><?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </label>
556 + </div>
570 557 </div>
571 558 </div>
572 - </div>
573 559 </div>
574 - <style>
575 - .wpbot-cards-grid {
576 - display: grid;
577 - grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
578 - gap: 20px;
579 - margin-bottom: 20px;
580 - margin-top: 20px;
581 - }
582 - .wpbot-checkbox-card {
583 - cursor: pointer;
584 - display: block;
585 - position: relative;
586 - margin: 0;
587 - }
588 - .wpbot-checkbox-card input[type="checkbox"] {
589 - position: absolute;
590 - opacity: 0;
591 - width: 0;
592 - height: 0;
593 - }
594 - .wpbot-checkbox-card .card-body {
595 - border: 1px solid #e2e8f0;
596 - border-radius: 12px;
597 - padding: 20px;
598 - background: #f8fafc;
599 - transition: all 0.2s ease;
600 - height: 100%;
601 - box-sizing: border-box;
602 - display: flex;
603 - flex-direction: column;
604 - position: relative;
605 - }
606 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body {
607 - border-color: #5b4e96;
608 - background: #eff6ff;
609 - box-shadow: 0 0 0 1px #5b4e96, 0 8px 24px rgba(37, 99, 235, 0.15);
610 - }
611 - .wpbot-checkbox-card .check-icon {
612 - position: absolute;
613 - top: 30px;
614 - right: 16px;
615 - width: 24px;
616 - height: 24px;
617 - border-radius: 50%;
618 - background: #f8fafc;
619 - border: 2px solid #e2e8f0;
620 - display: flex;
621 - align-items: center;
622 - justify-content: center;
623 - transition: all 0.2s ease;
624 - z-index: 2;
625 - }
626 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon {
627 - background: #5b4e96;
628 - border-color: #5b4e96;
629 - }
630 - .wpbot-checkbox-card .check-icon svg {
631 - width: 14px;
632 - height: 14px;
633 - stroke: #e2e8f0;
634 - stroke-width: 3;
635 - stroke-linecap: round;
636 - stroke-linejoin: round;
637 - fill: none;
638 - transition: stroke 0.2s ease;
639 - }
640 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon svg {
641 - stroke: white;
642 - }
643 - .wpbot-checkbox-card .icon-wrapper {
644 - width: 48px;
645 - height: 48px;
646 - border-radius: 12px;
647 - background: #ffffff;
648 - border: 1px solid #e2e8f0;
649 - display: flex;
650 - align-items: center;
651 - justify-content: center;
652 - margin-bottom: 16px;
653 - color: #64748b;
654 - }
655 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .icon-wrapper {
656 - border-color: #e0e7ff;
657 - background: #f0fdf4;
658 - color: #5b4e96;
659 - }
660 - .wpbot-checkbox-card h4 {
661 - margin: 0 0 8px 0 !important;
662 - font-size: 16px !important;
663 - font-weight: 600 !important;
664 - color: #1e293b !important;
665 - line-height: 1.4 !important;
666 - }
667 - .wpbot-checkbox-card p {
668 - margin: 0 !important;
669 - font-size: 14px !important;
670 - color: #64748b !important;
671 - line-height: 1.5 !important;
672 - }
673 - .wpbot-cards-grid-divider {
674 - height: 1px;
675 - width: 100%;
676 - background: #eee;
677 - }
678 - </style>
560 + </div>
679 561
680 562 <div class="row">
681 563 <div class="col-xs-12">
682 -
683 - <div class="wpbot-cards-grid-divider"></div>
684 -
685 - <div class="wpbot-cards-grid">
686 - <label class="wpbot-checkbox-card">
687 - <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' ): ''); ?>>
688 - <div class="card-body">
689 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
690 - <div class="icon-wrapper"><i class="dashicons dashicons-email" style="font-size:24px;width:24px;height:24px;"></i></div>
691 - <h4><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></h4>
692 - <p><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></p>
693 - </div>
694 - </label>
564 + <div class="cxsc-settings-blocks">
565 + <div class="form-group">
566 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </h4>
567 + <div class="cxsc-settings-blocks">
568 + <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox"
569 + name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
570 + <label for="skip_wp_greetings_donot_show_menu"><?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </label>
571 + </div>
695 572 </div>
696 - <div class="wpbot-cards-grid-divider"></div>
697 - <div class="wpbot-cards-grid">
698 - <label class="wpbot-checkbox-card">
699 - <input value="1" id="skip_wp_greetings" type="checkbox" name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
700 - <div class="card-body">
701 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
702 - <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div>
703 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Show Action Start Menu", 'chatbot'); ?></h4>
704 - <p><?php echo esc_html__("Skip asking for name, Email and directly show the Action Start Menu.", 'chatbot'); ?></p>
705 - </div>
706 - </label>
707 - <label class="wpbot-checkbox-card">
708 - <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' : ''); ?>>
709 - <div class="card-body">
710 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
711 - <div class="icon-wrapper"><i class="dashicons dashicons-hidden" style="font-size:24px;width:24px;height:24px;"></i></div>
712 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Disable Action Start Menu", 'chatbot'); ?></h4>
713 - <p><?php echo esc_html__("Skip asking for name, Email and disable the Action Start Menu.", 'chatbot'); ?></p>
714 - </div>
715 - </label>
716 - <label class="wpbot-checkbox-card">
717 - <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' ): ''); ?>>
718 - <div class="card-body">
719 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
720 - <div class="icon-wrapper"><i class="dashicons dashicons-menu-alt" style="font-size:24px;width:24px;height:24px;"></i></div>
721 - <h4><?php esc_html_e('Show Action Start Menu After Greetings', 'chatbot'); ?></h4>
722 - <p><?php esc_html_e('Show Action Start Menu immediately after greetings.', 'chatbot'); ?></p>
723 - </div>
724 - </label>
573 + </div>
574 + </div>
575 + </div>
576 + <div class="row">
577 + <div class="col-xs-12">
578 + <div class="form-group">
579 + <h4 class="qc-opt-title">
580 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
581 + </h4>
582 + <div class="cxsc-settings-blocks">
583 + <input value="1" id="show_menu_after_greetings" type="checkbox"
584 + name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
585 + <label for="show_menu_after_greetings">
586 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
587 + </label>
725 588 </div>
726 - <div class="wpbot-cards-grid-divider"> </div>
727 - <div class="wpbot-cards-grid">
728 - <label class="wpbot-checkbox-card">
729 - <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>
730 - <input value="1" id="skip_wp_greetings_trigger_intent" type="checkbox" name="skip_wp_greetings_trigger_intent" disabled />
731 - <div class="card-body">
732 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
733 - <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div>
734 - <h4><?php echo esc_html__("Skip Greetings and Trigger an Intent", 'chatbot'); ?> </h4>
735 - <p><?php echo esc_html__("Skip Asking for Name and Trigger an Intent", 'chatbot'); ?></p>
736 - <div class="qc_wp_intent_select_container" style="margin-top: 10px; ">
737 - <div style="margin-bottom: 8px;">
738 - <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>
739 - <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>
740 - <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option>
741 -
742 - </select>
743 - </div>
744 - <div>
745 - <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>
746 - <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>
747 - <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option>
748 - </select>
749 - </div>
750 - </div>
751 - </div>
752 - </label>
753 589 </div>
754 - <div class="wpbot-cards-grid-divider"></div>
755 - <div class="wpbot-cards-grid">
756 - <label class="wpbot-checkbox-card">
757 - <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' ): ''); ?>>
758 - <div class="card-body">
759 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
760 - <div class="icon-wrapper"><i class="dashicons dashicons-undo" style="font-size:24px;width:24px;height:24px;"></i></div>
761 - <h4><?php esc_html_e('Disable Back to Action Start Menu', 'chatbot'); ?></h4>
762 - <p><?php esc_html_e('Remove the option to go back to the Action Start Menu.', 'chatbot'); ?></p>
763 - </div>
764 - </label>
765 590 </div>
766 - <div class="wpbot-cards-grid-divider"></div>
767 - <div class="wpbot-cards-grid">
768 -
769 -
770 - <label class="wpbot-checkbox-card">
771 - <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' ): ''); ?>>
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-editor-rtl" style="font-size:24px;width:24px;height:24px;"></i></div>
775 - <h4><?php esc_html_e('Enable RTL', 'chatbot'); ?></h4>
776 - <p><?php esc_html_e('Enable Right to Left language support for Chat.', 'chatbot'); ?></p>
777 - </div>
778 - </label>
779 -
780 -
781 - <label class="wpbot-checkbox-card">
782 - <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') : ''); ?>>
783 - <div class="card-body">
784 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
785 - <div class="icon-wrapper"><i class="dashicons dashicons-search" style="font-size:24px;width:24px;height:24px;"></i></div>
786 - <h4><?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?></h4>
787 - <p><?php esc_html_e('Enable Chatbot on WordPress search pages.', 'chatbot'); ?></p>
788 - </div>
789 - </label>
790 -
791 - <label class="wpbot-checkbox-card">
792 - <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'): ''); ?>>
793 - <div class="card-body">
794 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
795 - <div class="icon-wrapper"><i class="dashicons dashicons-external" style="font-size:24px;width:24px;height:24px;"></i></div>
796 - <h4><?php esc_html_e('Links in New Window', 'chatbot'); ?></h4>
797 - <p><?php esc_html_e('Open all Chatbot links in a new browser window.', 'chatbot'); ?></p>
798 - </div>
799 - </label>
800 - </div>
801 - <div class="wpbot-cards-grid-divider"></div>
802 - <div class="wpbot-cards-grid">
803 - <label class="wpbot-checkbox-card">
804 - <input value="1" id="disable_floating_button" type="checkbox" name="disable_floating_button" <?php echo (get_option('disable_floating_button') == 1 ? esc_attr('checked' ): ''); ?>>
805 - <div class="card-body">
806 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
807 - <div class="icon-wrapper"><i class="dashicons dashicons-dismiss" style="font-size:24px;width:24px;height:24px;"></i></div>
808 - <h4><?php esc_html_e('Disable Floating Button', 'chatbot'); ?></h4>
809 - <p><?php esc_html_e('Hide the chatbot floating icon from your website.', 'chatbot'); ?></p>
810 - </div>
811 - </label>
812 - <label class="wpbot-checkbox-card">
813 - <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' ) : ''); ?>>
814 - <div class="card-body">
815 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
816 - <div class="icon-wrapper"><i class="dashicons dashicons-smartphone" style="font-size:24px;width:24px;height:24px;"></i></div>
817 - <h4><?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?></h4>
818 - <p><?php esc_html_e('Disable WPBot from loading on mobile devices.', 'chatbot'); ?></p>
819 - </div>
820 - </label>
591 + </div>
592 + <div class="row">
593 + <div class="col-xs-12">
594 + <div class="form-group">
595 + <h4 class="qc-opt-title">
596 + <?php esc_html_e('Disable WPBot', 'chatbot'); ?>
597 + </h4>
598 + <div class="cxsc-settings-blocks">
599 + <input value="1" id="disable_wp_chatbot" type="checkbox"
600 + name="disable_wp_chatbot" <?php echo (get_option('disable_wp_chatbot') == 1 ? esc_attr('checked'): ''); ?>>
601 + <label for="disable_wp_chatbot">
602 + <?php esc_html_e('Disable WPBot to Load', 'chatbot'); ?>
603 + </label>
821 604 </div>
822 -
823 -
824 605 </div>
825 606 </div>
607 + </div>
608 + <div class="row">
609 + <div class="col-xs-12">
610 + <div class="form-group">
611 + <h4 class="qc-opt-title">
612 + <?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?>
613 + </h4>
614 + <div class="cxsc-settings-blocks">
615 + <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox"
616 + name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
617 + <label for="disable_wp_chatbot_on_mobile">
618 + <?php esc_html_e('Disable WpBot to Load on Mobile Device', 'chatbot'); ?>
619 + </label>
620 + </div>
621 + </div>
622 + </div>
623 + </div>
624 + <div class="row">
625 + <div class="col-xs-12">
626 + <div class="form-group">
627 + <h4 class="qc-opt-title">
628 + <?php esc_html_e('Enable RTL', 'chatbot'); ?>
629 + </h4>
630 + <div class="cxsc-settings-blocks">
631 + <input value="1" id="enable_wp_chatbot_rtl" type="checkbox"
632 + name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
633 + <label for="enable_wp_chatbot_rtl">
634 + <?php esc_html_e('Enable RTL (Right to Left language) Support for Chat', 'chatbot'); ?>
635 + </label>
636 + </div>
637 + </div>
638 + </div>
639 +</div>
640 + <div class="row">
641 + <div class="col-xs-12">
642 + <div class="form-group">
643 + <h4 class="qc-opt-title">
644 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
645 + </h4>
646 + <div class="cxsc-settings-blocks">
647 + <input value="1" id="open_links_new_window" type="checkbox" name="open_links_new_window" <?php echo (get_option('open_links_new_window') == 1 ? esc_attr('checked'): ''); ?>>
648 + <label for="open_links_new_window">
649 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
650 + </label>
651 + </div>
652 + </div>
653 + </div>
654 +</div>
826 655
827 656 <div class="row">
828 657 <div class="col-xs-12">
829 658 <div class="form-group">
@@ -830,9 +659,9 @@
830 659 <h4 class="qc-opt-title"><?php esc_html_e('Bot Response Delay', 'chatbot'); ?> </h4>
831 660 <div class="cxsc-settings-blocks">
832 661 <select name="wpbot_preloading_time" id="wpbot_preloading_time">
833 662 <?php $current_preloading_time = get_option('wpbot_preloading_time'); ?>
834 - <option value="100" <?php selected($current_preloading_time, '100'); ?>><?php esc_html_e('0.1 Second', 'chatbot'); ?></option>
663 + <option value="100" <?php selected($current_preloading_time, '100'); ?>><?php esc_html_e('0 Second', 'chatbot'); ?></option>
835 664 <option value="500" <?php selected($current_preloading_time, '500'); ?>><?php esc_html_e('0.5 Second', 'chatbot'); ?></option>
836 665 <option value="1000" <?php selected($current_preloading_time, '1000'); ?>><?php esc_html_e('1 Second', 'chatbot'); ?></option>
837 666 <option value="2000" <?php selected($current_preloading_time, '2000'); ?>><?php esc_html_e('2 Second', 'chatbot'); ?></option>
838 667 <option value="3000" <?php selected($current_preloading_time, '3000'); ?>><?php esc_html_e('3 Second', 'chatbot'); ?></option>
@@ -841,13 +670,8 @@
841 670 </div>
842 671 </div>
843 672 </div>
844 673 </div>
845 -
846 -
847 -
848 -
849 -
850 674 <div class="row">
851 675 <div class="col-xs-12">
852 676 <div class="form-group">
853 677 <h4 class="qc-opt-title">
@@ -865,17 +689,17 @@
865 689 }
866 690 ?>
867 691 <input type="number" class="qc-opt-dcs-font"
868 692 name="wp_chatbot_position_x"
869 - value="<?php echo esc_attr($qcld_wb_chatbot_position_x);?>"
870 - placeholder="<?php esc_attr_e('From Right In ', 'chatbot'); ?>">
693 + value="<?php echo esc_html($qcld_wb_chatbot_position_x);?>"
694 + placeholder="<?php esc_html_e('From Right In ', 'chatbot'); ?>">
871 695 <span class="qc-opt-dcs-font">
872 696 <?php esc_html_e('From Right In px', 'chatbot'); ?>
873 697 </span>
874 698 <input type="number" class="qc-opt-dcs-font"
875 699 name="wp_chatbot_position_y"
876 - value="<?php echo esc_attr($qcld_wb_chatbot_position_y); ?>"
877 - placeholder="<?php esc_attr_e('From Bottom In Px', 'chatbot'); ?> ">
700 + value="<?php echo esc_html($qcld_wb_chatbot_position_y); ?>"
701 + placeholder="<?php esc_html_e('From Bottom In Px', 'chatbot'); ?> ">
878 702 <span class="qc-opt-dcs-font">
879 703 <?php esc_html_e('From Bottom In px', 'chatbot'); ?>
880 704 </span> </div>
881 705 </div>
@@ -961,14 +785,14 @@
961 785 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
962 786 ?>
963 787 <li>
964 788 <input id="<?php echo esc_attr('wp_chatbot_show_page_'. $wp_chatbot_page->ID ); ?>"
965 - type="checkbox"
966 - name="wp_chatbot_show_pages_list[]"
967 - 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) {
968 - echo esc_attr('checked');
969 - } ?> >
970 - <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label>
789 + type="checkbox"
790 + name="wp_chatbot_show_pages_list[]"
791 + value="<?php echo esc_attr($wp_chatbot_page->ID); ?>" <?php if (!empty($wp_chatbot_select_pages) && in_array($wp_chatbot_page->ID, $wp_chatbot_select_pages) == true) {
792 + echo esc_attr('checked');
793 + } ?> >
794 + <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label>
971 795 </li>
972 796 <?php } ?>
973 797 </ul>
974 798 </div>
@@ -1010,11 +834,30 @@
1010 834 </div>
1011 835 </div>
1012 836 </div>
1013 837
838 +
839 +
840 +
1014 841 </div>
1015 842 </div>
1016 843 </div>
844 +
845 +
846 +
847 +
848 +
849 +
850 +
851 +
852 +
853 +
854 +
855 +
856 +
857 +
858 +
859 +
1017 860 <!-- cxsc-settings-blocks-->
1018 861 </div>
1019 862 <!-- col-xs-12-->
1020 863 </div>
@@ -1022,68 +865,13 @@
1022 865
1023 866 </div>
1024 867 <!-- top-section-->
1025 868 </section>
1026 - <section id="section-flip-5">
869 + <section id="section-flip-5">
870 + <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
871 + <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
872 + </div> -->
1027 873 <div class="wp-chatbot-language-center-summmery"> </div>
1028 - <div class="row">
1029 - <div class="col-md-12">
1030 - <h4 class="qc-opt-title"><b><?php echo esc_html__( 'Change Language', 'chatbot'); ?></b></h4>
1031 - <!-- Language Selection Dropdown -->
1032 - <div class="cxsc-settings-blocks mb-6">
1033 - <div class="form-group">
1034 - <label for="qcld_language_center_select" class="block text-sm font-medium text-gray-700 mb-2 qc-opt-language-title">
1035 - <?php echo esc_html__( 'Select a Language:', 'chatbot'); ?>
1036 - </label>
1037 - <select id="qcld_language_center_select" class="form-select" onchange="qcld_wpbot_languageChange_from_center(this.value)">
1038 - <option value=""> <?php echo esc_html__( '-- Choose a language --', 'chatbot'); ?></option>
1039 - <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>
1040 - <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>
1041 - <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>
1042 - <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>
1043 - <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>
1044 - <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>
1045 - <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>
1046 - <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>
1047 - <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>
1048 - <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>
1049 - <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>
1050 - <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>
1051 - <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>
1052 - <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>
1053 - <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>
1054 - <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>
1055 - <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>
1056 - <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>
1057 - <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>
1058 - <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>
1059 - <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>
1060 - <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>
1061 - <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>
1062 - <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>
1063 - <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>
1064 - <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>
1065 - <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>
1066 - <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>
1067 - <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>
1068 - <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>
1069 - <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>
1070 - <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>
1071 - <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>
1072 - <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>
1073 - <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>
1074 - </select>
1075 - <!-- Results Display Area -->
1076 - <div id="results-container" class="mt-8 p-4 flex items-center justify-center text-gray-600">
1077 - <p id="initial-message">
1078 - <?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>
1079 - </p>
1080 - <p id="waring-message"></p>
1081 - </div>
1082 - </div>
1083 - </div>
1084 - </div>
1085 - </div>
1086 874 <ul class="nav nav-tabs">
1087 875 <li class="active"><a data-toggle="tab" href="#wp-chatbot-lng-general">
1088 876 <?php esc_html_e('General', 'chatbot'); ?>
1089 877 </a></li>
@@ -1096,9 +884,8 @@
1096 884 </ul>
1097 885 <div class="tab-content">
1098 886 <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
1099 887 <div class="top-section">
1100 -
1101 888 <div class="row">
1102 889 <div class="col-xs-12" id="wp-chatbot-language-section">
1103 890 <p style="color: red"><b><?php esc_html_e('You can change ALL the texts used by the ChatBot to YOUR OWN language here (like Spanish, French etc.).', 'chatbot' ); ?></b></p>
1104 891 <p><?php esc_html_e('After making changes in the language center or settings, please type reset and hit enter in the ChatBot to start testing from the beginning or open a new Incognito window (Ctrl+Shit+N in chrome).', 'chatbot' ); ?></p>
@@ -1108,9 +895,9 @@
1108 895 <?php esc_html_e('Your Company or Website Name', 'chatbot'); ?>
1109 896 </h4>
1110 897 <input type="text" class="form-control qc-opt-dcs-font"
1111 898 name="qlcd_wp_chatbot_host"
1112 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?>">
899 + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?> ">
1113 900 </div>
1114 901 <div class="form-group">
1115 902 <h4 class="qc-opt-title">
1116 903 <?php esc_html_e('Agent name', 'chatbot'); ?>
@@ -1116,9 +903,9 @@
1116 903 <?php esc_html_e('Agent name', 'chatbot'); ?>
1117 904 </h4>
1118 905 <input type="text" class="form-control qc-opt-dcs-font"
1119 906 name="qlcd_wp_chatbot_agent"
1120 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie')); ?>">
907 + value="<?php echo (get_option('qlcd_wp_chatbot_agent') != '' ? esc_attr(get_option('qlcd_wp_chatbot_agent')) : 'Carrie'); ?>">
1121 908 </div>
1122 909 <div class="form-group">
1123 910 <h4 class="qc-opt-title">
1124 911 <?php esc_html_e('User demo name', 'chatbot'); ?>
@@ -1124,9 +911,9 @@
1124 911 <?php esc_html_e('User demo name', 'chatbot'); ?>
1125 912 </h4>
1126 913 <input type="text" class="form-control qc-opt-dcs-font"
1127 914 name="qlcd_wp_chatbot_shopper_demo_name"
1128 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?>">
915 + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?> ">
1129 916 </div>
1130 917 <div class="form-group">
1131 918 <h4 class="qc-opt-title">
1132 919 <?php esc_html_e('YES', 'chatbot'); ?>
@@ -1158,9 +945,8 @@
1158 945 <input type="text" class="form-control qc-opt-dcs-font "
1159 946 name="qlcd_wp_chatbot_sorry"
1160 947 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sorry') != '' ? get_option('qlcd_wp_chatbot_sorry') : 'Sorry')); ?>">
1161 948 </div>
1162 -
1163 949 <div class="form-group">
1164 950 <?php
1165 951 $agent_join_options = maybe_unserialize(get_option('qlcd_wp_chatbot_agent_join'));
1166 952 $agent_join_option = 'qlcd_wp_chatbot_agent_join';
@@ -1510,90 +1296,8 @@
1510 1296 </div>
1511 1297 </div>
1512 1298 <!-- tab-content-->
1513 1299 </section>
1514 - <section id="section-flip-51">
1515 - <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1516 - <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'); ?>
1517 - </div> -->
1518 - <div class="wp-chatbot-socail-btn-summmery"> </div>
1519 -
1520 - <div class="tab-content">
1521 - <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
1522 - <div class="top-section">
1523 - <div class="row">
1524 - <div class="col-xs-12" id="wp-chatbot-socila-btn">
1525 -
1526 -
1527 -
1528 - <div class="form-group">
1529 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Reactions for analytics (Like & Dislike)', 'chatbot' ); ?> </h4>
1530 - <div class="cxsc-settings-blocks">
1531 - <input value="1" id="skip_chat_reactions_menu" type="checkbox"
1532 - name="skip_chat_reactions_menu" <?php echo( get_option( 'skip_chat_reactions_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1533 - <label for="skip_chat_reactions_menu"><?php echo esc_html__( 'Enable Chat Reactions for analytics (Like & Dislike)', 'chatbot' ); ?> </label>
1534 - </div>
1535 - </div>
1536 - <div class="form-group">
1537 - <h4 class="qc-opt-title">
1538 - <?php esc_html_e('Like Text', 'chatbot'); ?>
1539 - </h4>
1540 - <input type="text" class="form-control qc-opt-dcs-font "
1541 - name="qlcd_wp_chatbot_like_text"
1542 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_like_text') != '' ? get_option('qlcd_wp_chatbot_like_text') : 'Like')); ?>">
1543 - </div>
1544 - <div class="form-group">
1545 - <h4 class="qc-opt-title">
1546 - <?php esc_html_e('Dislike Text', 'chatbot'); ?>
1547 - </h4>
1548 - <input type="text" class="form-control qc-opt-dcs-font "
1549 - name="qlcd_wp_chatbot_dislike_text"
1550 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dislike_text') != '' ? get_option('qlcd_wp_chatbot_dislike_text') : 'Dislike')); ?>">
1551 - </div>
1552 -
1553 - <div class="form-group">
1554 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </h4>
1555 - <div class="cxsc-settings-blocks">
1556 - <input value="1" id="enable_chat_report_menu" type="checkbox"
1557 - name="enable_chat_report_menu" <?php echo( get_option( 'enable_chat_report_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1558 - <label for="enable_chat_report_menu"><?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </label>
1559 - </div>
1560 - </div>
1561 - <div class="form-group">
1562 - <h4 class="qc-opt-title">
1563 - <?php esc_html_e('Report this Message', 'chatbot'); ?>
1564 - </h4>
1565 - <input type="text" class="form-control qc-opt-dcs-font "
1566 - name="qlcd_wp_chatbot_report_text"
1567 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_report_text') != '' ? get_option('qlcd_wp_chatbot_report_text') : 'Report')); ?>">
1568 - </div>
1569 - <div class="form-group">
1570 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </h4>
1571 - <div class="cxsc-settings-blocks">
1572 - <input value="1" id="enable_chat_share_menu" type="checkbox"
1573 - name="enable_chat_share_menu" <?php echo( get_option( 'enable_chat_share_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1574 - <label for="enable_chat_share_menu"><?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </label>
1575 - </div>
1576 - </div>
1577 - <div class="form-group">
1578 - <h4 class="qc-opt-title">
1579 - <?php esc_html_e('Share', 'chatbot'); ?>
1580 - </h4>
1581 - <input type="text" class="form-control qc-opt-dcs-font "
1582 - name="qlcd_wp_chatbot_share_text"
1583 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_share_text') != '' ? get_option('qlcd_wp_chatbot_share_text') : 'Share')); ?>">
1584 - </div>
1585 -
1586 - </div>
1587 -
1588 - </div>
1589 - </div>
1590 - </div>
1591 -
1592 - </div>
1593 - <!-- tab-content-->
1594 - </section>
1595 -
1596 1300 <section id="section-flip-3">
1597 1301 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1598 1302 <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
1599 1303 </div> -->
@@ -1603,57 +1307,9 @@
1603 1307 </ul>
1604 1308 <div class="tab-content">
1605 1309 <div id="wp-chatbot-icon-theme-settings" class="tab-pane fade in active">
1606 1310 <div class="top-section">
1607 -
1608 -
1609 -
1610 - <div class="row">
1611 - <div class="col-xs-6">
1612 - <div class="form-group">
1613 - <h4 class="qc-opt-title">
1614 - <?php esc_html_e('ChatBot Window Max Height', 'wpchatbot'); ?>
1615 - </h4>
1616 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1617 - <?php
1618 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1619 - if (!$chatbot_content_max_height) {
1620 - $chatbot_content_max_height = 80;
1621 - } else {
1622 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1623 - }
1624 - ?>
1625 - <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
1626 - </div>
1627 - </div>
1628 - </div>
1629 - <div class="col-xs-6">
1630 - <div class="form-group">
1631 - <h4 class="qc-opt-title">
1632 - <?php esc_html_e('ChatBot Window Max Height ( Mobile Device )', 'wpchatbot'); ?>
1633 - </h4>
1634 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1635 - <?php
1636 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1637 - if (!$chatbot_content_max_height_responsive) {
1638 - $chatbot_content_max_height_responsive = 100;
1639 - } else {
1640 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1641 - }
1642 - ?>
1643 - <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
1644 - </div>
1645 - </div>
1646 - </div>
1647 - </div>
1648 -
1649 -
1650 -
1651 -
1652 -
1653 -
1654 -
1655 - <div class="row">
1311 + <div class="row">
1656 1312 <div class="col-xs-12">
1657 1313
1658 1314 <h3 class="qcld-wpbot-main-tabs-title">
1659 1315 <?php esc_html_e('WPBot Icon', 'chatbot'); ?>
@@ -1835,121 +1491,11 @@
1835 1491 </div>
1836 1492 </div>
1837 1493 </div>
1838 1494 </div>
1839 - <!-- ===== Custom Icon Video / YouTube ===== -->
1840 - <div class="row">
1841 - <div class="col-xs-12">
1842 - <div class="form-group">
1843 - <h4 class="qc-opt-title"><?php echo esc_html__('Custom Icon Video / YouTube Link', 'wpchatbot'); ?></h4>
1844 - <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>
1845 - <div class="cxsc-settings-blocks">
1846 1495
1847 - <?php
1848 - $wp_chatbot_icon_video = get_option('wp_chatbot_icon_video', '');
1849 - $is_youtube = (strpos($wp_chatbot_icon_video, 'youtube.com') !== false || strpos($wp_chatbot_icon_video, 'youtu.be') !== false);
1850 - $is_video = !$is_youtube && $wp_chatbot_icon_video !== '';
1851 - ?>
1852 1496
1853 - <!-- Video Upload -->
1854 - <p style="font-weight:600;margin-bottom:4px;"><?php echo esc_html__('Upload Video File', 'wpchatbot'); ?></p>
1855 - <input type="hidden"
1856 - name="wp_chatbot_icon_video"
1857 - id="wp_chatbot_icon_video"
1858 - value="<?php echo esc_url($wp_chatbot_icon_video); ?>" />
1859 - <button type="button" id="wp_chatbot_icon_video_btn" class="button">
1860 - <?php echo esc_html__('Upload Video', 'wpchatbot'); ?>
1861 - </button>
1862 - <?php if ($is_video): ?>
1863 - <span style="margin-left:8px;vertical-align:middle;">
1864 - <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>
1865 - </span>
1866 - <?php endif; ?>
1867 - <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;' : ''; ?>">
1868 - <?php echo esc_html__('Remove Video', 'wpchatbot'); ?>
1869 - </button>
1870 1497
1871 - <!-- YouTube URL -->
1872 - <p style="font-weight:600;margin-top:12px;margin-bottom:4px;"><?php echo esc_html__('— or — YouTube Embed URL', 'wpchatbot'); ?></p>
1873 - <?php $youtube_url_val = $is_youtube ? esc_url($wp_chatbot_icon_video) : ''; ?>
1874 - <input type="url"
1875 - name="wp_chatbot_icon_youtube_url"
1876 - id="wp_chatbot_icon_youtube_url"
1877 - class="regular-text"
1878 - placeholder="https://www.youtube.com/embed/VIDEO_ID"
1879 - value="<?php echo esc_url( $youtube_url_val ); ?>" />
1880 - <button type="button" id="wp_chatbot_icon_youtube_url_clear_btn" class="button" style="margin-left:6px;<?php echo ($youtube_url_val === '' ? 'display:none;' : ''); ?>">
1881 - <?php echo esc_html__('Remove YouTube URL', 'wpchatbot'); ?>
1882 - </button>
1883 - <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>
1884 -
1885 - <p style="font-weight:600;margin-top:14px;margin-bottom:4px;"><?php echo esc_html__('Autoplay Delay (seconds)', 'wpchatbot'); ?></p>
1886 - <input type="number"
1887 - name="wp_chatbot_icon_video_delay"
1888 - id="wp_chatbot_icon_video_delay"
1889 - class="small-text"
1890 - min="0"
1891 - max="60"
1892 - step="1"
1893 - value="<?php echo absint( get_option('wp_chatbot_icon_video_delay', 0) ); ?>" />
1894 - <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>
1895 -
1896 - </div>
1897 - </div>
1898 - </div>
1899 - </div>
1900 - <!-- ===== /Custom Icon Video / YouTube ===== -->
1901 - <script>
1902 - (function($){
1903 - $(document).ready(function(){
1904 - // Video upload via WP Media Library
1905 - $('#wp_chatbot_icon_video_btn').on('click', function(e){
1906 - e.preventDefault();
1907 - var frame = wp.media({
1908 - title: '<?php echo esc_js(__('Select or Upload Video', 'wpchatbot')); ?>',
1909 - button: { text: '<?php echo esc_js(__('Use this video', 'wpchatbot')); ?>' },
1910 - multiple: false,
1911 - library: { type: 'video' }
1912 - });
1913 - frame.on('select', function(){
1914 - var attachment = frame.state().get('selection').first().toJSON();
1915 - $('#wp_chatbot_icon_video').val(attachment.url);
1916 - $('#wp_chatbot_icon_youtube_url').val('');
1917 - $('#wp_chatbot_icon_youtube_url_clear_btn').hide();
1918 - $('#wp_chatbot_icon_video_clear_btn').show();
1919 - });
1920 - frame.open();
1921 - });
1922 -
1923 - // Clear uploaded video
1924 - $('#wp_chatbot_icon_video_clear_btn').on('click', function(){
1925 - $('#wp_chatbot_icon_video').val('');
1926 - $(this).hide();
1927 - });
1928 -
1929 - // Show/hide Remove YouTube URL button dynamically
1930 - $('#wp_chatbot_icon_youtube_url').on('input keyup change', function(){
1931 - if ($(this).val().trim() !== '') {
1932 - $('#wp_chatbot_icon_youtube_url_clear_btn').show();
1933 - } else {
1934 - $('#wp_chatbot_icon_youtube_url_clear_btn').hide();
1935 - }
1936 - });
1937 -
1938 - // Clear YouTube URL
1939 - $('#wp_chatbot_icon_youtube_url_clear_btn').on('click', function(){
1940 - $('#wp_chatbot_icon_youtube_url').val('');
1941 - var currentVideoVal = $('#wp_chatbot_icon_video').val();
1942 - if (currentVideoVal.indexOf('youtube.com') !== -1 || currentVideoVal.indexOf('youtu.be') !== -1) {
1943 - $('#wp_chatbot_icon_video').val('');
1944 - }
1945 - $(this).hide();
1946 - });
1947 - });
1948 - })(jQuery);
1949 - </script>
1950 -
1951 -
1952 1498 <div class="row">
1953 1499 <div class="col-xs-12">
1954 1500 <div class="form-group">
1955 1501 <h4 class="qc-opt-title">
@@ -2014,29 +1560,8 @@
2014 1560 </div>
2015 1561 </div>
2016 1562 <div id="top-section">
2017 1563 <div class="form-group">
2018 - <!-- Avatar Location Section -->
2019 - <div class="avatar-location-wrapper">
2020 - <h4 class="qc-opt-title"><?php esc_html_e('Avatar Location', 'chatbot'); ?></h4>
2021 - <?php $avatar_location = get_option('qcld_chatbot_avatar_location'); ?>
2022 - <input type="hidden" id="qcld-avatar-location" name="qcld_chatbot_avatar_location" value="<?php echo esc_attr($avatar_location); ?>">
2023 - <div class="avatar-location-cards">
2024 - <div class="avatar-location-card <?php echo ($avatar_location === 'inside') ? 'active' : ''; ?>" data-location="inside">
2025 - <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>
2026 - <span><?php esc_html_e('Inside', 'chatbot'); ?></span>
2027 - </div>
2028 - <div class="avatar-location-card <?php echo ($avatar_location === 'side') ? 'active' : ''; ?>" data-location="side">
2029 - <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>
2030 - <span><?php esc_html_e('Side', 'chatbot'); ?></span>
2031 - </div>
2032 - <div class="avatar-location-card <?php echo ($avatar_location === 'hidden') ? 'active' : ''; ?>" data-location="hidden">
2033 - <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>
2034 - <span><?php esc_html_e('Hidden', 'chatbot'); ?></span>
2035 - </div>
2036 - </div>
2037 - </div>
2038 - <!-- End Avatar Location Section -->
2039 1564 <div class="row">
2040 1565 <div class="col-sm-12">
2041 1566 <h4 class="qc-opt-title">
2042 1567 <?php esc_html_e('WPBot Themes', 'chatbot'); ?>
@@ -2093,9 +1618,9 @@
2093 1618 <div class="cxsc-settings-blocks">
2094 1619 <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
2095 1620 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>>
2096 1621 <label for="enable_wp_chatbot_custom_color">
2097 - <?php esc_html_e('Enable Custom Styles ', 'chatbot'); ?>
1622 + <?php esc_html_e('Enable Style Colors ', 'chatbot'); ?>
2098 1623 </label>
2099 1624 </div>
2100 1625 </div>
2101 1626 </div>
@@ -2155,9 +1680,9 @@
2155 1680 <?php esc_html_e('Bot Message Text Color.', 'chatbot'); ?>
2156 1681 </h4>
2157 1682 <input id="wp_chatbot_bot_msg_text_color" type="text"
2158 1683 name="wp_chatbot_bot_msg_text_color"
2159 - value="<?php echo esc_attr((get_option('wp_chatbot_bot_msg_text_color') != '' ? get_option('wp_chatbot_bot_msg_text_color') : '#ffffff')); ?>"/>
1684 + value="<?php echo esc_attr((get_option('c') != '' ? get_option('wp_chatbot_bot_msg_text_color') : '#ffffff')); ?>"/>
2160 1685 </div>
2161 1686 </div>
2162 1687 </div>
2163 1688 <div class="col-xs-6">
@@ -2389,9 +1914,9 @@
2389 1914 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
2390 1915 ?>
2391 1916 <div class="row"> <span class="pull-right"> </span>
2392 1917 <div class="col-xs-12">
2393 - <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-remove"></span></button>
1918 + <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <i class="fa fa-times" aria-hidden="true"></i> </button>
2394 1919
2395 1920 <div class="cxsc-settings-blocks cxsc-settings-faq-blocks">
2396 1921 <p>
2397 1922 <b> <?php esc_html_e('FAQ query ', 'chatbot'); ?> </b>
@@ -2427,13 +1952,10 @@
2427 1952 } else {
2428 1953 ?>
2429 1954 <div class="row"> <span class="pull-right"> </span>
2430 1955 <div class="col-xs-12">
2431 - <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-remove"></span> </button>
1956 + <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <i class="fa fa-times" aria-hidden="true"></i> </button>
2432 1957
2433 -
2434 -
2435 -
2436 1958 <div class="cxsc-settings-blocks">
2437 1959 <p>
2438 1960 <b> <?php esc_html_e('FAQ Query', 'chatbot'); ?></b>
2439 1961 </p>
@@ -2440,9 +1962,9 @@
2440 1962 <input type="text" class="form-control" name="support_query[]"
2441 1963 placeholder="<?php esc_html_e('FAQ Query ', 'chatbot'); ?> ">
2442 1964 <br>
2443 1965 <p class="qc-opt-dcs-font"><strong>
2444 - <?php esc_html_e('FAQ answer', 'chatbot'); ?>
1966 + <?php esc_html_e('Support answer', 'chatbot'); ?>
2445 1967 </strong></p>
2446 1968 <?php
2447 1969 wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
2448 1970 'support_ans[]',
@@ -2466,9 +1988,9 @@
2466 1988 <div class="col-sm-6 text-left"></div>
2467 1989 <div class="col-sm-6 text-right">
2468 1990 <button class="btn btn-success btn-sm" type="button"
2469 1991 id="add-more-support-query">
2470 - <span class="dashicons dashicons-plus"></span>
1992 + <i class="fa fa-plus" aria-hidden="true"></i>
2471 1993
2472 1994 </button>
2473 1995 </div>
2474 1996 </div>
@@ -2480,16 +2002,14 @@
2480 2002 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2481 2003 <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
2482 2004 </div> -->
2483 2005 <?php
2484 - wp_enqueue_style('qcld-wp-chatbot-common-style', plugins_url(basename(plugin_dir_path(__FILE__)) . '/css/common-style.css', basename(__FILE__)), '', esc_attr(QCLD_wpCHATBOT_VERSION), 'screen');
2006 + wp_enqueue_style('qcld-wp-chatbot-common-style', plugins_url(basename(plugin_dir_path(__FILE__)) . '/css/common-style.css', basename(__FILE__)), '', QCLD_wpCHATBOT_VERSION, 'screen');
2485 2007 ?>
2486 2008 <div class="top-section">
2487 2009 <div class="notification-block-inner">
2488 2010 <div class="row">
2489 2011 <div class="col-xs-12">
2490 -
2491 -
2492 2012 <div id="qcld-show-more-wrapper-box">
2493 2013 <div class="qcld-show-more-text qcld-show-more-show-more-height">
2494 2014 <div class="row">
2495 2015 <div class="col-xs-12">
@@ -2503,9 +2023,9 @@
2503 2023 <div class="cxsc-settings-blocks">
2504 2024 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox"
2505 2025 name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
2506 2026 <label for="disable_wp_chatbot_site_search">
2507 - <?php esc_html_e('Disable site search feature and button on Action Start Menu', 'chatbot'); ?>
2027 + <?php esc_html_e('Disable site search feature and button on Start Menu', 'chatbot'); ?>
2508 2028 </label>
2509 2029 </br><small><?php echo esc_html( '(You can disable searching post contents option below so it searches only the post Titles for most relevancy)'); ?></small></br>
2510 2030 </div>
2511 2031 <div class="cxsc-settings-blocks">
@@ -2535,9 +2055,9 @@
2535 2055 <div class="cxsc-settings-blocks">
2536 2056 <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox"
2537 2057 name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
2538 2058 <label for="disable_wp_chatbot_call_gen">
2539 - <?php esc_html_e('Disable Call Me feature and button on Action Start Menu', 'chatbot'); ?>
2059 + <?php esc_html_e('Disable Call Me feature and button on Start Menu', 'chatbot'); ?>
2540 2060 </label>
2541 2061 </div>
2542 2062 </div>
2543 2063 </div>
@@ -2559,9 +2079,9 @@
2559 2079 <div class="cxsc-settings-blocks">
2560 2080 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox"
2561 2081 name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>>
2562 2082 <label for="disable_wp_chatbot_feedback">
2563 - <?php esc_html_e('Disable Email feature and button on Action Start Menu', 'chatbot'); ?>
2083 + <?php esc_html_e('Disable Email feature and button on Start Menu', 'chatbot'); ?>
2564 2084 </label>
2565 2085 </div>
2566 2086 </div>
2567 2087 </div>
@@ -2583,9 +2103,9 @@
2583 2103 <div class="cxsc-settings-blocks">
2584 2104 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox"
2585 2105 name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
2586 2106 <label for="disable_wp_chatbot_faq">
2587 - <?php esc_html_e('Disable FAQ feature and button on Action Start Menu', 'chatbot'); ?>
2107 + <?php esc_html_e('Disable FAQ feature and button on Start Menu', 'chatbot'); ?>
2588 2108 </label>
2589 2109 </div>
2590 2110 </div>
2591 2111 </div>
@@ -2601,9 +2121,9 @@
2601 2121
2602 2122 </div>
2603 2123 </div>
2604 2124 </div>
2605 - <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div>
2125 + <div class="qcld-show-more-show-more"><i class="fa fa-plus-circle" aria-hidden="true"></i></div>
2606 2126 </div>
2607 2127 <div class="qc_menu_setup_area">
2608 2128 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'chatbot'); ?></h3>
2609 2129 <p style="color:red"><?php esc_html_e('Always open a new Incognito window (Ctrl+Shit+N in chrome) to test after making any change.', 'chatbot'); ?></p>
@@ -2618,18 +2138,14 @@
2618 2138 <?php
2619 2139 if(get_option('qc_wpbot_menu_order')!=''):
2620 2140 if( is_string( get_option('qc_wpbot_menu_order') ) ):
2621 2141 echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
2142 + else:
2622 2143 endif;
2623 - else:
2624 - $site_search_label = get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search';
2625 - $support_email_label = get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email.';
2626 - $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!';
2627 - echo '<span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search">' . esc_attr($site_search_label) . '</span>';
2628 - echo '<span class="qcld-chatbot-suggest-email qc_draggable_item">' . esc_attr($support_email_label) . '</span>';
2629 - echo '<span class="qcld-chatbot-suggest-phone qc_draggable_item">' . esc_attr($support_phone_label) . '</span>';
2630 - endif;
2631 2144 ?>
2145 +
2146 +
2147 + <?php endif; ?>
2632 2148 </div>
2633 2149 </div>
2634 2150 <div class="qc_menu_list_area">
2635 2151 <h4><?php esc_html_e('Available Menu', 'chatbot'); ?></h4>
@@ -2673,9 +2189,9 @@
2673 2189 global $wpdb;
2674 2190
2675 2191 //To Do: Need to use prepared statement
2676 2192
2677 - $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, PluginCheck.Security.DirectDB.UnescapedDBParameter
2193 + $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); //DB Call OK, No Caching OK.
2678 2194 if(!empty($results)){
2679 2195 ?>
2680 2196 <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p>
2681 2197 <ul>
@@ -2690,21 +2206,8 @@
2690 2206 </ul>
2691 2207 <?php
2692 2208 }
2693 2209 }
2694 -
2695 - // AI Forms
2696 - $saved_ai_forms = get_option( 'wpbot_ai_forms', array() );
2697 - if ( ! empty( $saved_ai_forms ) && is_array( $saved_ai_forms ) ) {
2698 - ?>
2699 - <p><?php esc_html_e('AI Actions', 'chatbot'); ?></p>
2700 - <ul>
2701 - <?php foreach ( $saved_ai_forms as $index => $form ) : ?>
2702 - <li><span class="qcld-chatbot-wildcard qcld-chatbot-ai-form qc_draggable_item" data-wildcart="ai_form" data-ai-form="<?php echo esc_attr( $index ); ?>"><?php echo esc_html( $form['title'] ); ?></span></li>
2703 - <?php endforeach; ?>
2704 - </ul>
2705 - <?php
2706 - }
2707 2210 ?>
2708 2211 </div>
2709 2212 </div>
2710 2213
@@ -2806,17 +2309,17 @@
2806 2309 <?php
2807 2310
2808 2311 $placeholderPrivatekey = '{
2809 2312 "type": "service_account",
2810 - "project_id": "YOUR_PROJECT_ID",
2811 - "private_key_id": "YOUR_PRIVATE_KEY_ID",
2812 - "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----\n",
2813 - "client_email": "YOUR_CLIENT_EMAIL",
2814 - "client_id": "YOUR_CLIENT_ID",
2313 + "project_id": "PLACEYOUROWNID",
2314 + "private_key_id": "31e300128..........c48",
2315 + "private_key": "-----BEGIN PRIVATE KEY-----\nTHIS IS A DEMO PRIVATE KEY to SHOW HOW IT SHOULD LOOK. Replace with ACTUAL KEY.+OdT09MGEdAjlgSF2HMDA3fl8Ey4dmTxRfAN9No6G3Ugs3BrpZHfY\nSviWzS4JQ0GkCubcJc0DzJ8AqG6xX7E3SfKpdtKEn1eYV7sfQL3C2lm2lTj6nWdt\nxrkhJVHn61kxfPAWChnkdPa5EbMNFnV5mN5rhwaOxR+tEjW9nWBjVFG0NMnOMWF4\nsu6QJVjQMtI99jPBCid1r4XV/sPABSXh8dscWdMinGhZfuCjF4sOGHUUaw+VDGb6\nZpPOh65nw5fsdOHETsb4BN/LW72Khux+870Ig4jkuLIN3PnSF9QfwO8U2qTG5sZK\nn5nxhT9zAgMBAAECggEAX1NSWRGnrcVsu6n1jn9xUpzvxyy+CJe1Z1DvHo1tmHNS\n0Q8OI/Y........THIS IS A DEMO PRIVATE KEY to SHOW HOW IT SHOULD LOOK. Replace with your own key......................................paqQKBgQCJ\nvNCZIHpLGVqwiw4SVYgZW2i+VsZ78sOw0SuuhjZNmOlGjpalbQCjKs9l5dSz5t5D\nVleJVyriFaXyvVty/iF6orqTgv0EhcLO2RI9KSrTpbOXcIkgeunAhRM3oloxSndt\n98H3f1xRvTLIm1enERLkOyGHmm7nWFV0BQWD+CxeCwKBgDtBGn+uBgNgZjSaLnkJ\noemAoIBN6aD4+QWduPldRgTilH6ABQ26SL+t4sa9jbAtkMuD/hWOMLBqmz98tfCC\ndy6cPghea+b0S7lj/wmUaDA1Vmz7luCLm+lO+fe3K6WIlEhAP/9MXVH90Sj6CllF\nAn4stWzIKHrRKA3lIvgJv+9W\n-----END PRIVATE KEY-----\n",
2316 + "client_email": "dialogflow-evysjn@wpbotpro.iam.gserviceaccount.com",
2317 + "client_id": "1026.....032997",
2815 2318 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
2816 2319 "token_uri": "https://oauth2.googleapis.com/token",
2817 2320 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
2818 - "client_x509_cert_url": "YOUR_CLIENT_X509_CERT_URL"
2321 + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dialogflow-evysjn%40wpbotpro.iam.gserviceaccount.com"
2819 2322 }';
2820 2323
2821 2324 ?>
2822 2325 <div class="form-group">
@@ -2857,9 +2360,9 @@
2857 2360 </section>
2858 2361
2859 2362 <section id="section-flip-9">
2860 2363 <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>
2861 - <?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>
2364 + <?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>
2862 2365
2863 2366 <div class="qcld-recommendbot-conv-feature">
2864 2367 <?php include_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '/qcld-recommendbot-plugin.php'; ?>
2865 2368 </div>
@@ -2879,9 +2382,9 @@
2879 2382
2880 2383 <h3><?php esc_html_e('How it Works?', 'chatbot'); ?></h3>
2881 2384 <p><?php esc_html_e('After creating a Conversation or form, you can show it in the ChatBot in different ways.', 'chatbot'); ?></p>
2882 2385 <ul>
2883 - <li><?php esc_html_e('🚀 Add it to the Action Start Menu', 'chatbot'); ?></li>
2386 + <li><?php esc_html_e('🚀 Add it to the Start menu', 'chatbot'); ?></li>
2884 2387 <li><?php esc_html_e('🚀 Invoke the form intent with a system command to start inside ChatBot any time', 'chatbot'); ?></li>
2885 2388 <li><?php esc_html_e('🚀 Load the single intent/form inside a ChatBot widget on any page', 'chatbot'); ?></li>
2886 2389 <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>
2887 2390 <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions', 'chatbot'); ?></li>
@@ -2908,9 +2411,9 @@
2908 2411 <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions (**NEW)', 'chatbot'); ?></li>
2909 2412 <li><?php esc_html_e('🚀 Unlimited Variables creation', 'chatbot'); ?></li>
2910 2413 <li><?php esc_html_e('🚀 Form Revisions', 'chatbot'); ?></li>
2911 2414 <li><?php esc_html_e('🚀 Create system command to initiate form for ChatBot', 'chatbot'); ?></li>
2912 - <li><?php esc_html_e('🚀 Add form to Action Start Menu', 'chatbot'); ?></li>
2415 + <li><?php esc_html_e('🚀 Add form to Start Menu', 'chatbot'); ?></li>
2913 2416 <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>
2914 2417 </ul>
2915 2418 </div>
2916 2419
@@ -3113,8 +2616,69 @@
3113 2616
3114 2617
3115 2618 </div>
3116 2619
2620 +
2621 +
2622 +
2623 +
2624 +
2625 +
2626 +
2627 +
2628 +
2629 +
2630 +
2631 +
2632 +
2633 +
2634 +
2635 +<div id="qcld-quick-flyout" >
2636 + <div class="qcld-quick-flyout-items">
2637 + <a href="https://wpbot.pro/docs/knowledgebase/getting-started-with-chatbot/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item qcld-quick-flyout-premium" rel="noopener noreferrer" target="_blank" style="transition-delay: 0ms;">
2638 + <div class="qcld-quick-flyout-label">
2639 + <div>Getting Started</div>
2640 + </div>
2641 + <i class="dashicons dashicons-admin-home"></i>
2642 + </a>
2643 + <a href="https://wpbot.pro/docs/kb-sections/chatbot-faqs/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item" rel="noopener noreferrer" target="_blank" style="transition-delay: 60ms;">
2644 + <div class="qcld-quick-flyout-label">
2645 + <div>FAQ</div>
2646 + </div>
2647 + <i class="dashicons dashicons-flag"></i>
2648 + </a>
2649 + <a href="https://wpbot.pro/docs/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item" style="transition-delay: 90ms;">
2650 + <div class="qcld-quick-flyout-label">
2651 + <div>Read the Documentation</div>
2652 + </div>
2653 + <i class="dashicons dashicons-sos"></i>
2654 + </a>
2655 + <a href="https://www.wpbot.pro/free-support/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item" rel="noopener noreferrer" target="_blank" style="transition-delay: 120ms;">
2656 + <div class="qcld-quick-flyout-label">
2657 + <div>Ask for Help</div>
2658 + </div>
2659 + <i class="dashicons dashicons-email"></i>
2660 + </a>
2661 + <a href="https://www.wpbot.pro/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item" style="transition-delay: 30ms;">
2662 + <div class="qcld-quick-flyout-label">
2663 + <div>Check out the WPBot Demo</div>
2664 + </div>
2665 + <i class="dashicons dashicons-welcome-view-site"></i>
2666 + </a>
2667 + <a href="https://www.wpbot.pro/pricing/" target="_blank" class="qcld-quick-flyout-button qcld-quick-flyout-item qcld-quick-flyout-premium" rel="noopener noreferrer" target="_blank" style="transition-delay: 0ms;">
2668 + <div class="qcld-quick-flyout-label">
2669 + <div>Upgrade to Premium</div>
2670 + </div>
2671 + <i class="dashicons dashicons-star-filled"></i>
2672 + </a>
2673 + </div>
2674 + <a href="javascript:void(0);" class="qcld-quick-flyout-button qcld-quick-flyout-mascot">
2675 + <div class="qcld-quick-flyout-label">
2676 + <div>Start Here</div>
2677 + </div>
2678 + <img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/agent-01.png' ); ?>" alt="Dialogflow CX">
2679 + </a>
2680 +</div>
3117 2681
3118 2682
3119 2683
3120 2684