PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, AI Services / 3.8.9
WPBot – AI ChatBot for Live Support, Lead Generation, AI Services v3.8.9
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 8.5.2 8.5.0 8.4.9 All 531 releases
chatbot / admin_ui.php

admin_ui.php in WPBot – AI ChatBot for Live Support, Lead Generation, AI Services 3.8.9, at admin_ui.php

2,089 lines 153.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit;
6 }
7 ?>
8
9 <div class="wrap">
10 <h1 style="display:none">
11 <?php esc_html_e('WPBot', 'wpchatbot'); ?>
12 </h1>
13 </div>
14 <div class="wp-chatbot-wrap">
15 <div class="icon32"><br>
16 </div>
17 <form action="<?php echo esc_attr($action); ?>" method="POST" id="wp-chatbot-admin-form"
18 enctype="multipart/form-data">
19 <div class="container form-container">
20 <header class="wp-chatbot-admin-header">
21 <div class="row">
22 <div class="col-sm-6">
23 <h2><?php echo __('WPBot Control Panel', 'wpchatbot'); ?><?php echo get_option('wp_chatbot_index_meta'); ?></h2>
24 </div>
25 <div class="col-sm-6 text-right wp-chatbot-version">
26 <h3>
27 <?php esc_html_e('The Lite Version', 'wpchatbot'); ?>
28 </h3>
29 <p><a target="_blank" href="https://www.quantumcloud.com/">
30 <?php esc_html_e('WPBot is a project by Web Design Company QuantumCloud', 'wpchatbot'); ?>
31 </a></p>
32 <p><a style="color: #b2ff20;" href="https://www.quantumcloud.com/products/chatbot-for-wordpress/" target="_blank">Upgrade To Pro</a></p>
33 </div>
34 </div>
35 </header>
36 <section class="wp-chatbot-tab-container-inner">
37 <div class="wp-chatbot-tabs wp-chatbot-tabs-style-flip">
38 <nav>
39 <ul>
40 <li tab-data="started"><a href="<?php echo esc_attr($action); ?>&tab=started"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-toggle-on"> </i> </span> <span class="wpwbot-admin-tab-name">
41 <?php esc_html_e('GETTING STARTED', 'wpchatbot'); ?>
42 </span> </a></li>
43 <li tab-data="general"><a href="<?php echo esc_attr($action); ?>&tab=general"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-toggle-on"> </i> </span> <span class="wpwbot-admin-tab-name">
44 <?php esc_html_e('GENERAL SETTINGS', 'wpchatbot'); ?>
45 </span> </a></li>
46 <li tab-data="themes"><a href="<?php echo esc_attr($action); ?>&tab=themes"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-gear faa-spin"></i> </span> <span class="wpwbot-admin-tab-name">
47 <?php esc_html_e('ICONS & THEMES', 'wpchatbot'); ?>
48 </span> </a></li>
49 <li tab-data="support"><a href="<?php echo esc_attr($action); ?>&tab=support"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-life-ring"></i> </span> <span class="wpwbot-admin-tab-name">
50 <?php esc_html_e('FAQ Builder', 'wpchatbot'); ?>
51 </span> </a></li>
52 <!--<li tab-data="notification"><a href="<?php echo esc_attr($action); ?>&tab=notification">
53 <span class="wpwbot-admin-tab-icon">
54 <i class="fa fa-bell-o"></i>
55 </span>
56 <span class="wpwbot-admin-tab-name"><?php esc_html_e('Notification Builder', 'wpchatbot'); ?></span>
57 </a></li>-->
58 <li tab-data="language"><a href="<?php echo esc_attr($action); ?>&tab=language"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-language"></i> </span> <span class="wpwbot-admin-tab-name">
59 <?php esc_html_e('LANGUAGE CENTER', 'wpchatbot'); ?>
60 </span> </a></li>
61 <li tab-data="startmenu"><a href="<?php echo esc_attr($action); ?>&tab=startmenu"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-bars"></i> </span> <span class="wpwbot-admin-tab-name"><?php echo esc_html__('Start Menu', 'wpchatbot'); ?></span> </a></li>
62
63 <!--<li tab-data="hours"><a href="<?php echo esc_attr($action); ?>&tab=hours">
64 <span class="wpwbot-admin-tab-icon">
65 <i class="fa fa-calendar"></i>
66 </span>
67 <span class="wpwbot-admin-tab-name"><?php esc_html_e('Bot Activity Hour', 'wpchatbot'); ?></span>
68 </a></li>-->
69 <li tab-data="ai"><a href="<?php echo esc_attr($action); ?>&tab=ai"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-500px"></i> </span> <span class="wpwbot-admin-tab-name">
70 <?php esc_html_e('Dialogflow', 'wpchatbot'); ?>
71 </span> </a></li>
72 <!--<li tab-data="app"><a href="<?php echo esc_attr($action); ?>&tab=app">
73 <span class="wpwbot-admin-tab-icon">
74 <i class="fa fa-mobile"></i>
75 </span>
76 <span class="wpwbot-admin-tab-name"><?php esc_html_e('MOBILE APP', 'wpchatbot'); ?></span>
77 </a></li>
78 <li tab-data="custom"><a href="<?php echo esc_attr($action); ?>&tab=custom">
79 <span class="wpwbot-admin-tab-icon">
80 <i class="fa fa-code"></i>
81 </span>
82 <span class="wpwbot-admin-tab-name"><?php esc_html_e('Custom CSS', 'wpchatbot'); ?> </span>
83 </a></li>-->
84
85 </ul>
86 <a class="wpbot_addons_link" href="https://www.quantumcloud.com/products/chatbot-addons/" target="_blank">
87 <i class="fa fa-puzzle-piece" aria-hidden="true"></i><span class="wpwbot-admin-tab-name"><?php echo esc_html__('Addons', 'wpchatbot'); ?> </span> <i class="fa fa-external-link" aria-hidden="true"></i>
88 </a>
89 <a class="wpbot_free_messenger_adds" href="https://wordpress.org/plugins/conversational-forms/" target="_blank">Create Menu Driven Conversations and forms with the Conversational Form addon</a>
90 <a class="wpbot_free_messenger_adds" href="https://wordpress.org/plugins/chatbot-for-messenger/" target="_blank">Create Auto Facebook Page Comments and Messenger Bot with the Messenger addon</a>
91
92 </nav>
93 <div class="content-wrap">
94 <section id="section-flip-1">
95 <div class="top-section getting_gtarted_section">
96 <div class="col-xs-12">
97 <div class="content form-container qcbot_help_secion">
98 <h2 style="margin-top: 10px;">WPBot Interactions</h2>
99 <h3 style=" color: #222; margin: 0; padding: 0 0 12px 0; font-size: 16px; font-weight: bold;">You can create user interactions in the following ways:</h3>
100 <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
101 <div class="panel panel-default">
102 <div class="panel-heading" role="tab" id="headingOne">
103 <h4 class="panel-title">
104 <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
105 Predefined intents - Built-in ChatBot Features
106 </a>
107 </h4>
108 </div>
109 <div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
110 <div class="panel-body">
111 Predefined intents can work without integration to DialogFlow API and AI. These are readily available as soon as you install the plugin and can be turned on or off individually.
112 <div class="section-container">
113 <div class="wpb_column vc_column_container vc_col-sm-6">
114 <div class="vc_column-inner ">
115 <div class="wpb_wrapper">
116 <div class="to-icon-box left txt-left">
117 <div class="to-icon-txt fa-4x-txt ">
118 <h3>
119 <span>// </span>Simple Text Responses
120 </h3>
121 <p>Create unlimited text responses from your WordPress backend. The ChatBot uses advanced search algorithm for natural language phrase matching with user input. </p>
122 </div>
123 </div>
124 <div class="to-icon-box left txt-left">
125 <div class="to-icon-txt fa-4x-txt ">
126 <h3>
127 <span>// </span>Send eMail, Call Me Back &amp; Feedback Collection
128 </h3>
129 <p>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. </p>
130 </div>
131 </div>
132 <div class="to-icon-box left txt-left">
133 <div class="to-icon-txt fa-4x-txt ">
134 <h3>
135 <span>// </span>Advanced Site Search <span class="qc_wpbot_pro">PRO</span>
136 </h3>
137 <p>If no matching text response is found WPBot will conduct an advanced website search and try to match user queries with your website contents and show results. </p>
138 </div>
139 </div>
140 </div>
141 </div>
142 </div>
143 <div class="wpb_column vc_column_container vc_col-sm-6">
144 <div class="vc_column-inner ">
145 <div class="wpb_wrapper">
146 <div class="to-icon-box left txt-left">
147 <div class="to-icon-txt fa-4x-txt ">
148 <h3>
149 <span>// </span>Frequently Asked Questions
150 </h3>
151 <p>Create a set of Frequently Asked Questions or FAQ so users can quickly find answers to the most common questions they have.</p>
152 </div>
153 </div>
154 <div class="to-icon-box left txt-left">
155 <div class="to-icon-txt fa-4x-txt ">
156 <h3>
157 <span>// </span>Ask for name, email, phone number etc.
158 </h3>
159 <p>Asking for the name is the default workflow. In the pro version, you can also ask for an email and phone number if you want to or skip the Greetings part altogether and load any intent of your choice.</p>
160 </div>
161 </div>
162 <div class="to-icon-box left txt-left">
163 <div class="to-icon-txt fa-4x-txt ">
164 <h3>
165 <span>// </span>Newsletter Subscription <span class="qc_wpbot_pro">PRO</span>
166 </h3>
167 <p>WPBot can prompt User for eMail subscription. Link this with your Retargeting ChatBot window popup and a special offer. People can register their email address that you can later export as CSV! <strong>GDPR compliant</strong> with unsubscribe option from the ChatBot! </p>
168 </div>
169 </div>
170 </div>
171 </div>
172 </div>
173 </div>
174 </div>
175 </div>
176 </div>
177 <div class="panel panel-default">
178 <div class="panel-heading" role="tab" id="headingTwo">
179 <h4 class="panel-title">
180 <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
181 Menu Driven - Created with Conversational Form Builder Addon
182 </a>
183 </h4>
184 </div>
185 <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
186 <div class="panel-body">
187 <p>Extend the Start Menu with the <strong>powerful Conversational Forms</strong>&nbsp; Addon for WPBot. It extends WPBot’s functionality and adds the ability to create <strong>conditional conversations</strong> and/or <strong>forms</strong> for the WPBot. It is a visual, <strong> drag and drop</strong> 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 <strong>menu driven</strong>
188 <strong>conversations </strong>with if else logic <strong>. </strong>Conversations or forms can be <strong>eMailed</strong> to you and <strong>saved in the database</strong>.
189 </p>
190 <h4>Conversational Form Builder Free or Pro version works with the WPBot Free or Pro versions.</h4>
191 <a class="FormBuilder" href="https://wordpress.org/plugins/conversational-forms/" target="_blank">Download Free Version</a>
192 <a class="FormBuilder" href="https://www.quantumcloud.com/products/chatbot-addons/" target="_blank">Grab the Pro version</a>
193 <h4>What Can You Do with it?</h4>
194 <p>Conversation Forms allows you to create a wide variety of forms, that might include:</p>
195 <ul>
196 <li>Create menu or button driven conversations</li>
197 <li>Conditional <strong>Menu Driven Conversations</strong>
198 <span class="qc_wpbot_pro" style="font-size: 9px;">PRO</span>
199 </li>
200 <li>Standard Contact Forms</li>
201 <li>Dynamic, <strong>conditional Forms</strong> – where fields can change based on the user selections <span class="qc_wpbot_pro" style="font-size: 9px;">PRO</span>
202 </li>
203 <li>Job <strong>Application Forms</strong>
204 </li>
205 <li>
206 <strong>Lead Capture</strong> Forms
207 </li>
208 <li>Various types of <strong>Calculators</strong>
209 <span class="qc_wpbot_pro" style="font-size: 9px;">PRO</span>
210 </li>
211 <li>Feedback <strong>Survey</strong> Forms etc. </li>
212 </ul>
213
214 </div>
215 </div>
216 </div>
217 <div class="panel panel-default">
218 <div class="panel-heading" role="tab" id="headingThree">
219 <h4 class="panel-title">
220 <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
221 DialogFlow ES and CX
222 </a>
223 </h4>
224 </div>
225 <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
226 <div class="panel-body">
227 <div class="section-container">
228 <div class="wpb_column vc_column_container vc_col-sm-6">
229 <div class="wpb_wrapper">
230 <h2 style="font-size: 20px;">DialogFlow Essential</h2> Intents created in Dialogflow give you the power to build a truly human like, intelligent and comprehensive chatbot. Build any type of Intents and Responses (including rich message responses) directly in DialogFlow and train the bot accordingly. When you create custom intents and responses in DialogFlow, WPBot will <strong>automatically</strong> display them when user inputs match with your Custom Intents along with the responses you created. You can also build Rich responses by enabling Facebook messenger Response option. <p></p>
231 <p style="text-align: left;">In addition you can also Enable <strong>Advanced Chained Question and Answers</strong> using follow up Intents, Contexts, Entities etc. and then have resulting answers from your users emailed to you. This feature lets you create a a series of questions in DialogFlow that will be asked by the bot and based on the user inputs a response will be displayed. <span class="qc_wpbot_pro" style="font-size: 9px;">PRO</span>
232 </p>
233 <p style="text-align: left;">WPBot also supports Rich responses using Facebook Messenger integration. This allows you to display Image, <strong>Cards</strong>, Quick Text Reply or Custom PayLoad inside the ChatBot window. You can also insert an <strong>image</strong> or <strong>youtube video</strong> link inside the DialogFlow responses and they will be automatically rendered by the WPBot! <span class="qc_wpbot_pro" style="font-size: 9px;">PRO</span>
234 </p>
235 </div>
236 </div>
237 <div class="wpb_column vc_column_container vc_col-sm-6">
238 <div class="wpb_wrapper">
239 <h2 style="font-size: 20px;">DialogFlow CX <span class="qc_wpbot_pro">PRO</span>
240 </h2>
241 <p>WPBot supports <strong>visual workflow builder</strong> Dialogflow CX. It provides a new way of designing agents, taking a state machine approach to agent design. This gives you clear and explicit control over a conversation, a better end-user experience, and a better development <strong>workflow</strong>. </p>
242 <ul>
243 <li>
244 <strong>Console visualization</strong>: A new <strong>visual builder</strong> makes building and maintaining agents easier. Conversation paths are graphed as a state machine model, which makes conversations easier to design, enhance, and maintain.
245 </li>
246 <li>
247 <strong>Intuitive and powerful conversation control</strong>: Conversation states and state transitions are first-class types that provide explicit and powerful control over conversation paths. You can clearly define a series of steps that you want the end-user to go through.
248 </li>
249 <li>
250 <strong>Flows for agent partitions</strong>: With flows, you can partition your agent into smaller conversation topics. Different team members can own different flows, which makes large and complex agents easy to build.
251 </li>
252 <img style="width:100%" src="http://devel1/wpbot/wp-content/plugins/chatbot/images/dialogflow-cx-1024x676.jpg" alt="Dialogflow CX">
253 </ul>
254 </div>
255 </div>
256 </div>
257 </div>
258 </div>
259 </div>
260 </div>
261 </section>
262 <section id="section-flip-2">
263 <div class="top-section">
264 <div class="row">
265 <div class="col-xs-12"> <b>
266 <p class="d-ib"> The ChatBot can work with ANY language. Just change the language texts from the ChatBot Settings->Language Center to your preferred one. Multi language is supported with the <a class="d-ib" href="https://www.quantumcloud.com/products/chatbot-for-wordpress/" target="_blank">WpBot Pro version</a> and an addon. </p>
267 </b> <b>
268 <p>Please see the plugin's Help and Debugging section to troubleshoot common issues.</p>
269 </b>
270 <div class="cxsc-settings-blocks">
271 <div class="form-group">
272 <?php
273 $url = get_site_url();
274 $url = parse_url($url);
275 $domain = $url['host'];
276
277 $admin_email = get_option('admin_email');
278 ?>
279 <h4 class="qc-opt-title"><?php echo esc_html__('Emails Will be Sent to', 'wpchatbot'); ?></h4>
280 <input type="text" class="form-control qc-opt-dcs-font"
281 name="qlcd_wp_chatbot_admin_email"
282 value="<?php echo(get_option('qlcd_wp_chatbot_admin_email') != '' ? get_option('qlcd_wp_chatbot_admin_email') : $admin_email); ?>">
283 <label for="disable_wp_chatbot"><?php echo esc_html__('Support and Call Back requests will be sent to this address', 'wpchatbot'); ?> </label>
284 </div>
285 </div>
286 <div class="cxsc-settings-blocks">
287 <div class="form-group">
288 <?php
289
290 $url = get_site_url();
291 $url = parse_url($url);
292 $domain = $url['host'];
293
294 $fromEmail = "wordpress@" . $domain;
295
296 ?>
297 <h4 class="qc-opt-title"><?php echo esc_html__('From Email Address', 'wpchatbot'); ?></h4>
298 <input type="text" class="form-control qc-opt-dcs-font"
299 name="qlcd_wp_chatbot_from_email"
300 value="<?php echo(get_option('qlcd_wp_chatbot_from_email') != '' ? get_option('qlcd_wp_chatbot_from_email') : $fromEmail); ?>">
301 <label for="qlcd_wp_chatbot_from_email"><?php echo esc_html__('All email will be send from this email address. If you change the From Email Address then please make sure the domain remain same otherwise the email would not send.', 'wpchatbot'); ?> </label>
302 </div>
303 </div>
304 </div>
305 </div>
306 <div class="row">
307 <div class="col-xs-12">
308 <h4 class="qc-opt-title">
309 <?php esc_html_e('Disable WPBot', 'wpchatbot'); ?>
310 </h4>
311 <div class="cxsc-settings-blocks">
312 <input value="1" id="disable_wp_chatbot" type="checkbox"
313 name="disable_wp_chatbot" <?php echo(get_option('disable_wp_chatbot') == 1 ? 'checked' : ''); ?>>
314 <label for="disable_wp_chatbot">
315 <?php esc_html_e('Disable WPBot to Load', 'wpchatbot'); ?>
316 </label>
317 </div>
318 </div>
319 </div>
320 <div class="row">
321 <div class="col-xs-12">
322 <h4 class="qc-opt-title">
323 <?php esc_html_e('Disable WPbot on Mobile Device', 'wpchatbot'); ?>
324 </h4>
325 <div class="cxsc-settings-blocks">
326 <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox"
327 name="disable_wp_chatbot_on_mobile" <?php echo(get_option('disable_wp_chatbot_on_mobile') == 1 ? 'checked' : ''); ?>>
328 <label for="disable_wp_chatbot_on_mobile">
329 <?php esc_html_e('Disable WpBot to Load on Mobile Device', 'wpchatbot'); ?>
330 </label>
331 </div>
332 </div>
333 </div>
334 <!--<div class="row">
335 <div class="col-xs-12">
336 <h4 class="qc-opt-title"> <?php esc_html_e('Sound on Page Load', 'wpchatbot'); ?> </h4>
337 <div class="form-group">
338 <input value="1" id="enable_wp_chatbot_sound_initial" type="checkbox"
339 name="enable_wp_chatbot_sound_initial" <?php echo(get_option('enable_wp_chatbot_sound_initial') == 1 ? 'checked' : ''); ?>>
340 <label for="enable_wp_chatbot_sound_initial"><?php esc_html_e('Enable to play sound on initial page load', 'wpchatbot'); ?> </label>
341 </div>
342 </div>
343 </div>-->
344
345 <!-- row-->
346 <!--<div class="row">
347 <div class="col-xs-12">
348 <h4 class="qc-opt-title"> <?php esc_html_e('Disable WpBot Icon Animation', 'wpchatbot'); ?> </h4>
349 <div class="cxsc-settings-blocks">
350 <input value="1" id="disable_wp_chatbot_icon_animation" type="checkbox"
351 name="disable_wp_chatbot_icon_animation" <?php echo(get_option('disable_wp_chatbot_icon_animation') == 1 ? 'checked' : ''); ?>>
352 <label for="disable_wp_chatbot_icon_animation"><?php esc_html_e('Disable WpBot icon border animation', 'wpchatbot'); ?> </label>
353 </div>
354 </div>
355 </div>-->
356
357 <!--<div class="row">
358 <div class="col-xs-12">
359 <h4 class="qc-opt-title"><?php esc_html_e('Disable WpBot Opening Notification', 'wpchatbot'); ?> </h4>
360 <div class="cxsc-settings-blocks">
361 <input value="1" id="disable_wp_chatbot_notification" type="checkbox"
362 name="disable_wp_chatbot_notification" <?php echo(get_option('disable_wp_chatbot_notification') == 1 ? 'checked' : ''); ?>>
363 <label for="disable_wp_chatbot_notification"><?php esc_html_e('Disable WpBot Opening notification messages', 'wpchatbot'); ?> </label>
364 </div>
365 </div>
366 </div>-->
367 <div class="row">
368 <div class="col-xs-12">
369 <h4 class="qc-opt-title">
370 <?php esc_html_e('Enable RTL', 'wpchatbot'); ?>
371 </h4>
372 <div class="cxsc-settings-blocks">
373 <input value="1" id="enable_wp_chatbot_rtl" type="checkbox"
374 name="enable_wp_chatbot_rtl" <?php echo(get_option('enable_wp_chatbot_rtl') == 1 ? 'checked' : ''); ?>>
375 <label for="enable_wp_chatbot_rtl">
376 <?php esc_html_e('Enable RTL (Right to Left language) Support for Chat', 'wpchatbot'); ?>
377 </label>
378 </div>
379 </div>
380 </div>
381 <div class="row">
382 <div class="col-xs-12">
383 <h4 class="qc-opt-title"> <?php echo esc_html__('Show Start Menu After Greetings', 'wpchatbot'); ?> </h4>
384 <div class="cxsc-settings-blocks">
385 <input value="1" id="show_menu_after_greetings" type="checkbox"
386 name="show_menu_after_greetings" <?php echo(get_option('show_menu_after_greetings') == 1 ? 'checked' : ''); ?>>
387 <label for="show_menu_after_greetings"><?php echo esc_html__('Show Start Menu After Greetings', 'wpchatbot'); ?> </label>
388 </div>
389 </div>
390 </div>
391
392 <!--<div class="row">
393 <div class="col-xs-12">
394 <h4 class="qc-opt-title"><?php esc_html_e('Disable Call Me', 'wpchatbot'); ?> </h4>
395 <div class="cxsc-settings-blocks">
396 <input value="1" id="disable_wp_chatbot_call_sup" type="checkbox"
397 name="disable_wp_chatbot_call_sup" <?php echo(get_option('disable_wp_chatbot_call_sup') == 1 ? 'checked' : ''); ?>>
398 <label for="disable_wp_chatbot_call_sup"><?php esc_html_e('Disable Call Me button', 'wpchatbot'); ?> </label>
399 </div>
400 </div>
401 </div>-->
402
403 <!-- row-->
404 <div class="row">
405 <div class="col-xs-12">
406 <h4 class="qc-opt-title">
407 <?php esc_html_e('WPBot Open Full Screen in Mobile', 'wpchatbot'); ?>
408 </h4>
409 <div class="cxsc-settings-blocks">
410 <input value="1" id="enable_wp_chatbot_mobile_full_screen" type="checkbox"
411 name="enable_wp_chatbot_mobile_full_screen" <?php echo(get_option('enable_wp_chatbot_mobile_full_screen') == 1 ? 'checked' : ''); ?>>
412 <label for="enable_wp_chatbot_mobile_full_screen">
413 <?php esc_html_e('Enable WpBot Open Full Screen in Mobile', 'wpchatbot'); ?>
414 </label>
415 </div>
416 </div>
417 </div>
418 <div class="row">
419 <div class="col-xs-12">
420 <h4 class="qc-opt-title"><?php echo esc_html__('Bot Response Delay', 'wpchatbot'); ?> </h4>
421 <div class="cxsc-settings-blocks">
422 <select name="wpbot_preloading_time" id="wpbot_preloading_time">
423 <option value="100" <?php echo(get_option('wpbot_preloading_time') == '100' ? 'selected="selected"' : ''); ?>>0 Second</option>
424 <option value="500" <?php echo(get_option('wpbot_preloading_time') == '500' ? 'selected="selected"' : ''); ?>>0.5 Second</option>
425 <option value="1000" <?php echo(get_option('wpbot_preloading_time') == '1000' ? 'selected="selected"' : ''); ?>>1 Second</option>
426 <option value="2000" <?php echo(get_option('wpbot_preloading_time') == '2000' ? 'selected="selected"' : ''); ?>>2 Second</option>
427 <option value="3000" <?php echo(get_option('wpbot_preloading_time') == '3000' ? 'selected="selected"' : ''); ?>>3 Second</option>
428 </select>
429 <label for="wpbot_preloading_time"><?php echo esc_html__('Bot Response Delay', 'wpchatbot'); ?> </label>
430 </div>
431 </div>
432 </div>
433 <div class="row">
434 <div class="col-xs-12">
435 <h4 class="qc-opt-title">
436 <?php esc_html_e('Override WPBot Icon\'s Position', 'wpchatbot'); ?>
437 </h4>
438 <div class="cxsc-settings-blocks">
439 <?php
440 $qcld_wb_chatbot_position_x = get_option('wp_chatbot_position_x');
441 if ((!isset($qcld_wb_chatbot_position_x)) || ($qcld_wb_chatbot_position_x == "")) {
442 $qcld_wb_chatbot_position_x = __("120", "wp_chatbot");
443 }
444 $qcld_wb_chatbot_position_y = get_option('wp_chatbot_position_y');
445 if ((!isset($qcld_wb_chatbot_position_y)) || ($qcld_wb_chatbot_position_y == "")) {
446 $qcld_wb_chatbot_position_y = __("120", "wp_chatbot");
447 } ?>
448 <input type="number" class="qc-opt-dcs-font"
449 name="wp_chatbot_position_x"
450 id=""
451 value="<?php echo($qcld_wb_chatbot_position_x); ?>"
452 placeholder="<?php esc_html_e('From Right In px', 'wpchatbot'); ?>">
453 <span class="qc-opt-dcs-font">
454 <?php esc_html_e('From Right In px', 'wpchatbot'); ?>
455 </span>
456 <input type="number" class="qc-opt-dcs-font"
457 name="wp_chatbot_position_y"
458 id=""
459 value="<?php echo($qcld_wb_chatbot_position_y); ?>"
460 placeholder="<?php esc_html_e('From Bottom In Px', 'wpchatbot'); ?>">
461 <span class="qc-opt-dcs-font">
462 <?php esc_html_e('From Bottom In px', 'wpchatbot'); ?>
463 </span> </div>
464 </div>
465 <!--.col-sm-12-->
466 </div>
467 <!-- row-->
468
469 <div class="row">
470 <div class="col-xs-12">
471 <h4 class="qc-opt-title"><strong>
472 <?php esc_html_e('WPBot', 'wpchatbot'); ?>
473 </strong>
474 <?php esc_html_e('Loading Control Options', 'wpchatbot'); ?>
475 </h4>
476 <div class="cxsc-settings-blocks">
477 <div class="row">
478 <div class="col-sm-4 text-right"> <span class="qc-opt-title-font">
479 <?php esc_html_e('Show on Home Page', 'wpchatbot'); ?>
480 </span> </div>
481 <div class="col-sm-8">
482 <label class="radio-inline">
483 <input id="wp-chatbot-show-home-page" type="radio"
484 name="wp_chatbot_show_home_page"
485 value="on" <?php echo(get_option('wp_chatbot_show_home_page') == 'on' ? 'checked' : ''); ?>>
486 <?php esc_html_e('YES', 'wpchatbot'); ?>
487 </label>
488 <label class="radio-inline">
489 <input id="wp-chatbot-show-home-page" type="radio"
490 name="wp_chatbot_show_home_page"
491 value="off" <?php echo(get_option('wp_chatbot_show_home_page') == 'off' ? 'checked' : ''); ?>>
492 <?php esc_html_e('NO', 'wpchatbot'); ?>
493 </label>
494 </div>
495 </div>
496 <!-- row-->
497 <div class="row">
498 <div class="col-sm-4 text-right"> <span class="qc-opt-title-font">
499 <?php esc_html_e('Show on blog posts', 'wpchatbot'); ?>
500 </span> </div>
501 <div class="col-sm-8">
502 <label class="radio-inline">
503 <input class="wp-chatbot-show-posts" type="radio"
504 name="wp_chatbot_show_posts"
505 value="on" <?php echo(get_option('wp_chatbot_show_posts') == 'on' ? 'checked' : ''); ?>>
506 <?php esc_html_e('YES', 'wpchatbot'); ?>
507 </label>
508 <label class="radio-inline">
509 <input class="wp-chatbot-show-posts" type="radio"
510 name="wp_chatbot_show_posts"
511 value="off" <?php echo(get_option('wp_chatbot_show_posts') == 'off' ? 'checked' : ''); ?>>
512 <?php esc_html_e('NO', 'wpchatbot'); ?>
513 </label>
514 </div>
515 </div>
516 <!-- row-->
517 <div class="row">
518 <div class="col-md-4 text-right"> <span class="qc-opt-title-font">
519 <?php esc_html_e('Show on pages', 'wpchatbot'); ?>
520 </span> </div>
521 <div class="col-md-8">
522 <label class="radio-inline">
523 <input class="wp-chatbot-show-pages" type="radio"
524 name="wp_chatbot_show_pages"
525 value="on" <?php echo(get_option('wp_chatbot_show_pages') == 'on' ? 'checked' : ''); ?>>
526 <?php esc_html_e('All Pages', 'wpchatbot'); ?>
527 </label>
528 <label class="radio-inline">
529 <input class="wp-chatbot-show-pages" type="radio"
530 name="wp_chatbot_show_pages"
531 value="off" <?php echo(get_option('wp_chatbot_show_pages') == 'off' ? 'checked' : ''); ?>>
532 <?php esc_html_e('Selected Pages Only ', 'wpchatbot'); ?>
533 </label>
534 <div id="wp-chatbot-show-pages-list">
535 <ul class="checkbox-list">
536 <?php
537 $wp_chatbot_pages = get_pages();
538 $wp_chatbot_select_pages = unserialize(get_option('wp_chatbot_show_pages_list'));
539 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
540 ?>
541 <li>
542 <input
543 id="wp_chatbot_show_page_<?php echo $wp_chatbot_page->ID; ?>"
544 type="checkbox"
545 name="wp_chatbot_show_pages_list[]"
546 value="<?php echo $wp_chatbot_page->ID; ?>" <?php if (!empty($wp_chatbot_select_pages) && in_array($wp_chatbot_page->ID, $wp_chatbot_select_pages) == true) {
547 echo 'checked';
548 } ?> >
549 <label
550 for="wp_chatbot_show_page_<?php echo $wp_chatbot_page->ID; ?>"> <?php echo $wp_chatbot_page->post_title; ?></label>
551 </li>
552 <?php } ?>
553 </ul>
554 </div>
555 </div>
556 </div>
557 <!--row-->
558 <div class="row">
559 <div class="col-sm-4 text-right"> <span class="qc-opt-title-font">
560 <?php _e('Exclude from Custom Post', 'wpchatbot'); ?>
561 </span></div>
562 <div class="col-sm-8">
563 <div id="wp-chatbot-exclude-post-list">
564 <ul class="checkbox-list">
565 <?php
566 $get_cpt_args = array(
567 'public' => true,
568 '_builtin' => false
569 );
570
571 $post_types = get_post_types( $get_cpt_args, 'object' );
572 $wp_chatbot_exclude_post_list = maybe_unserialize(get_option('wp_chatbot_exclude_post_list'));
573 foreach ($post_types as $post_type) {
574 ?>
575 <li>
576 <input
577 id="wp_chatbot_exclude_post_<?php echo $post_type->name; ?>"
578 type="checkbox"
579 name="wp_chatbot_exclude_post_list[]"
580 value="<?php echo $post_type->name; ?>" <?php if (!empty($wp_chatbot_exclude_post_list) && in_array($post_type->name, $wp_chatbot_exclude_post_list) == true) {
581 echo 'checked';
582 } ?> >
583 <label
584 for="wp_chatbot_exclude_post_<?php echo $post_type->name; ?>"> <?php echo $post_type->name; ?></label>
585 </li>
586 <?php } ?>
587 </ul>
588 </div>
589 </div>
590 </div>
591 </div>
592 <!-- cxsc-settings-blocks-->
593 </div>
594 <!-- col-xs-12-->
595 </div>
596 <!-- row-->
597
598 </div>
599 <!-- top-section-->
600 </section>
601 <section id="section-flip-3">
602 <ul class="nav nav-tabs">
603 <li class="active"><a data-toggle="tab" href="#wp-chatbot-icon-theme-settings"><?php echo esc_html__('Icons & Themes', 'wpchatbot'); ?></a></li>
604 <li><a data-toggle="tab" href="#wp-chatbot-custom-color-options"><?php echo esc_html__('Custom Style Options', 'wpchatbot'); ?></a></li>
605 </ul>
606 <div class="tab-content">
607 <div id="wp-chatbot-icon-theme-settings" class="tab-pane fade in active">
608 <div class="top-section">
609 <div class="row">
610 <div class="col-xs-12">
611 <div class="row">
612 <div class="col-xs-12">
613 <p class="wpqcld_chk_seft"> <a target="_blank" href="https://www.quantumcloud.com/products/themes/chatbot-theme/"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL ?>/chatbot-theme.jpg" alt="" /></a> </p>
614 </div>
615 </div>
616 <h4 class="qc-opt-title">
617 <?php esc_html_e('WPBot Icon', 'wpchatbot'); ?>
618 </h4>
619 <div class="cxsc-settings-blocks">
620 <ul class="radio-list">
621 <!--<li><label for="wp_chatbot_icon_0" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-0.png"
622 alt=""> <input id="wp_chatbot_icon_0" type="radio"
623 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-0.png' ? 'checked' : ''); ?>
624 value="icon-0.png">
625 <?php esc_html_e('Icon - 0', 'wpchatbot'); ?></label>
626 </li>
627 <li><label for="wp_chatbot_icon_1" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-1.png"
628 alt=""> <input id="wp_chatbot_icon_1" type="radio"
629 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-1.png' ? 'checked' : ''); ?>
630 value="icon-1.png">
631 <?php esc_html_e('Icon - 1', 'wpchatbot'); ?></label>
632 </li>-->
633 <li>
634 <label for="wp_chatbot_icon_2" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-2.png"
635 alt="">
636 <input id="wp_chatbot_icon_2" type="radio"
637 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-2.png' ? 'checked' : ''); ?>
638 value="icon-2.png">
639 <?php esc_html_e('Icon - 2', 'wpchatbot'); ?>
640 </label>
641 </li>
642 <li>
643 <label for="wp_chatbot_icon_3" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-3.png"
644 alt="">
645 <input id="wp_chatbot_icon_3" type="radio"
646 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-3.png' ? 'checked' : ''); ?>
647 value="icon-3.png">
648 <?php esc_html_e('Icon - 3', 'wpchatbot'); ?>
649 </label>
650 </li>
651 <li>
652 <label for="wp_chatbot_icon_4" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-4.png"
653 alt="">
654 <input id="wp_chatbot_icon_4" type="radio"
655 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-4.png' ? 'checked' : ''); ?>
656 value="icon-4.png">
657 <?php esc_html_e('Icon - 4', 'wpchatbot'); ?>
658 </label>
659 </li>
660 <li>
661 <label for="wp_chatbot_icon_5" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-5.png"
662 alt="">
663 <input id="wp_chatbot_icon_5" type="radio"
664 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-5.png' ? 'checked' : ''); ?>
665 value="icon-5.png">
666 <?php esc_html_e('Icon - 5', 'wpchatbot'); ?>
667 </label>
668 </li>
669 <li>
670 <label for="wp_chatbot_icon_6" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-6.png"
671 alt="">
672 <input id="wp_chatbot_icon_6" type="radio"
673 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-6.png' ? 'checked' : ''); ?>
674 value="icon-6.png">
675 <?php esc_html_e('Icon - 6', 'wpchatbot'); ?>
676 </label>
677 </li>
678 <li>
679 <label for="wp_chatbot_icon_7" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-7.png"
680 alt="">
681 <input id="wp_chatbot_icon_7" type="radio"
682 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-7.png' ? 'checked' : ''); ?>
683 value="icon-7.png">
684 <?php esc_html_e('Icon - 7', 'wpchatbot'); ?>
685 </label>
686 </li>
687 <li>
688 <label for="wp_chatbot_icon_8" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-8.png"
689 alt="">
690 <input id="wp_chatbot_icon_8" type="radio"
691 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-8.png' ? 'checked' : ''); ?>
692 value="icon-8.png">
693 <?php esc_html_e('Icon - 8', 'wpchatbot'); ?>
694 </label>
695 </li>
696 <li>
697 <label for="wp_chatbot_icon_9" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-9.png"
698 alt="">
699 <input id="wp_chatbot_icon_9" type="radio"
700 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-9.png' ? 'checked' : ''); ?>
701 value="icon-9.png">
702 <?php esc_html_e('Icon - 9', 'wpchatbot'); ?>
703 </label>
704 </li>
705 <li>
706 <label for="wp_chatbot_icon_10" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-10.png"
707 alt="">
708 <input id="wp_chatbot_icon_10" type="radio"
709 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-10.png' ? 'checked' : ''); ?>
710 value="icon-10.png">
711 <?php esc_html_e('Icon - 10', 'wpchatbot'); ?>
712 </label>
713 </li>
714 <li>
715 <label for="wp_chatbot_icon_11" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-11.png"
716 alt="">
717 <input id="wp_chatbot_icon_11" type="radio"
718 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-11.png' ? 'checked' : ''); ?>
719 value="icon-11.png">
720 <?php esc_html_e('Icon - 11', 'wpchatbot'); ?>
721 </label>
722 </li>
723 <li>
724 <label for="wp_chatbot_icon_12" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-12.png"
725 alt="">
726 <input id="wp_chatbot_icon_12" type="radio"
727 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-12.png' ? 'checked' : ''); ?>
728 value="icon-12.png">
729 <?php esc_html_e('Icon - 12', 'wpchatbot'); ?>
730 </label>
731 </li>
732 <li>
733 <label for="wp_chatbot_icon_13" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-13.png"
734 alt="">
735 <input id="wp_chatbot_icon_13" type="radio"
736 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-13.png' ? 'checked' : ''); ?>
737 value="icon-13.png">
738 <?php esc_html_e('Icon - 13', 'wpchatbot'); ?>
739 </label>
740 </li>
741 <li>
742 <?php
743 if (get_option('wp_chatbot_custom_icon_path') != "") {
744 $wp_chatbot_custom_icon_path = get_option('wp_chatbot_custom_icon_path');
745 } else {
746 $wp_chatbot_custom_icon_path = QCLD_wpCHATBOT_IMG_URL . 'custom.png';
747 }
748 ?>
749 <label for="wp_chatbot_custom_icon_input" class="qc-opt-dcs-font"> <img id="wp_chatbot_custom_icon_src"
750 src="<?php echo $wp_chatbot_custom_icon_path; ?>" alt="">
751 <input id="wp_chatbot_custom_icon_input" type="radio"
752 name="wp_chatbot_icon"
753 value="custom.png" <?php echo(get_option('wp_chatbot_icon') == 'custom.png' ? 'checked' : ''); ?>>
754 <?php esc_html_e('Custom Icon', 'wpchatbot'); ?>
755 </label>
756 </li>
757 </ul>
758 </div>
759 <!-- cxsc-settings-blocks-->
760 <br>
761 <div class="cxsc-settings-blocks">
762 <div class="form-group">
763 <h4 class="qc-opt-title">
764 <?php _e('WPBot Icon Background Color.', 'woochatbot'); ?>
765 </h4>
766 <input id="wp_chatbot_floatingiconbg_color" type="text"
767 name="wp_chatbot_floatingiconbg_color"
768 value="<?php echo(get_option('wp_chatbot_floatingiconbg_color') != '' ? get_option('wp_chatbot_floatingiconbg_color') : '#fff'); ?>"/>
769 </div>
770 </div>
771 </div>
772 </div>
773 <div class="row">
774 <div class="col-xs-12">
775 <h4 class="qc-opt-title">
776 <?php esc_html_e(' Upload custom Icon ', 'wpchatbot'); ?>
777 </h4>
778 <div class="cxsc-settings-blocks">
779 <input type="hidden" name="wp_chatbot_custom_icon_path"
780 id="wp_chatbot_custom_icon_path"
781 value="<?php echo $wp_chatbot_custom_icon_path; ?>"/>
782 <button type="button" class="wp_chatbot_custom_icon_button button">
783 <?php esc_html_e('Upload Icon', 'wpchatbot'); ?>
784 </button>
785 </div>
786 </div>
787 </div>
788 </div>
789 <div class="top-section">
790 <div class="row">
791 <div class="col-xs-12">
792 <h4 class="qc-opt-title">
793 <?php esc_html_e(' WPBot Agent Image', 'wpchatbot'); ?>
794 </h4>
795 <div class="cxsc-settings-blocks">
796 <ul class="radio-list">
797 <li>
798 <label for="wp_chatbot_agent_image_def" class="qc-opt-dcs-font"> <img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>icon-0.png"
799 alt="">
800 <input id="wp_chatbot_agent_image_def" type="radio"
801 name="wp_chatbot_agent_image" <?php echo(get_option('wp_chatbot_agent_image') == 'agent-0.png' ? 'checked' : ''); ?>
802 value="agent-0.png">
803 <?php esc_html_e('Default Agent', 'wpchatbot'); ?>
804 </label>
805 </li>
806 <li>
807 <?php
808 if (get_option('wp_chatbot_custom_agent_path') != "") {
809 $wp_chatbot_custom_agent_path = get_option('wp_chatbot_custom_agent_path');
810 } else {
811 $wp_chatbot_custom_agent_path = QCLD_wpCHATBOT_IMG_URL . 'custom-agent.png';
812 }
813 ?>
814 <label for="wp_chatbot_agent_image_custom" class="qc-opt-dcs-font"> <img id="wp_chatbot_custom_agent_src"
815 src="<?php echo esc_url($wp_chatbot_custom_agent_path); ?>"
816 alt="Agent">
817 <input type="radio" name="wp_chatbot_agent_image"
818 id="wp_chatbot_agent_image_custom"
819 value="custom-agent.png" <?php echo(get_option('wp_chatbot_agent_image') == 'custom-agent.png' ? 'checked' : ''); ?>>
820 <?php echo esc_html__('Custom Agent', 'wpchatbot'); ?></label>
821 </li>
822 </ul>
823 </div>
824 <!-- cxsc-settings-blocks-->
825 </div>
826 </div>
827 <div class="row">
828 <div class="col-xs-12">
829 <h4 class="qc-opt-title">
830 <?php esc_html_e('Custom Agent Icon', 'wpchatbot'); ?>
831 </h4>
832 <div class="cxsc-settings-blocks">
833 <input type="hidden" name="wp_chatbot_custom_agent_path"
834 id="wp_chatbot_custom_agent_path"
835 value="<?php echo $wp_chatbot_custom_agent_path; ?>"/>
836 <button type="button" class="wp_chatbot_custom_agent_button button">
837 <?php esc_html_e('Upload Agent Icon', 'wpchatbot'); ?>
838 </button>
839 </div>
840 </div>
841 </div>
842 </div>
843 <div id="top-section">
844 <div class="row">
845 <div class="col-sm-12">
846 <h4 class="qc-opt-title">
847 <?php esc_html_e('WPBot Themes', 'wpchatbot'); ?>
848 </h4>
849 </div>
850 </div>
851 <div class="row">
852 <div class="col-sm-3">
853 <label for="qcld_wb_chatbot_theme_0"> <img class="thumbnail theme_prev"
854 src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>templates/template-00.JPG"
855 alt="Theme Basic">
856 <input id="qcld_wb_chatbot_theme_0" type="radio"
857 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-00' ? 'checked' : ''); ?>
858 value="template-00">
859 <?php esc_html_e('Theme Basic', 'wpchatbot'); ?>
860 </label>
861 </div>
862 <div class="col-sm-3">
863 <label for="qcld_wb_chatbot_theme_1"> <img class="thumbnail theme_prev"
864 src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>templates/template-01.JPG"
865 alt="Theme Basic">
866 <input id="qcld_wb_chatbot_theme_1" type="radio"
867 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-01' ? 'checked' : ''); ?>
868 value="template-01">
869 <?php esc_html_e('Theme One', 'wpchatbot'); ?>
870 </label>
871 </div>
872 </div>
873 </div>
874 </div>
875 <!--<hr>
876 <div id="top-section">
877 <div class="row">
878 <div class="col-sm-12">
879 <h4 class="qc-opt-title"> <?php esc_html_e('Custom Backgroud', 'wpchatbot'); ?></h4>
880 <div class="cxsc-settings-blocks">
881 <input value="1" id="qcld_wb_chatbot_change_bg" type="checkbox"
882 name="qcld_wb_chatbot_change_bg" <?php echo(get_option('qcld_wb_chatbot_change_bg') == 1 ? 'checked' : ''); ?>>
883 <label for="qcld_wb_chatbot_change_bg"><?php esc_html_e('Change the wpwBot message board background for Theme 2 and Theme 3.', 'wpchatbot'); ?> </label>
884 </div>
885 </div>
886 </div>
887 <div class="row qcld-wp-chatbot-board-bg-container" <?php if (get_option('qcld_wb_chatbot_change_bg') != 1) {
888 echo 'style="display:none"';
889 } ?>>
890 <div class="col-xs-6">
891 <p class="wp-chatbot-settings-instruction"> <?php esc_html_e('Upload wpwBot message board background (Ideal image size 376px X 688px).', 'wpchatbot'); ?> </p>
892 <div class="cxsc-settings-blocks">
893 <?php
894 if (get_option('qcld_wb_chatbot_board_bg_path') != "") {
895 $qcld_wb_chatbot_board_bg_path = get_option('qcld_wb_chatbot_board_bg_path');
896 } else {
897 $qcld_wb_chatbot_board_bg_path = QCLD_wpCHATBOT_IMG_URL . 'background/background.png';
898 }
899 ?>
900 <input type="hidden" name="qcld_wb_chatbot_board_bg_path"
901 id="qcld_wb_chatbot_board_bg_path"
902 value="<?php echo $qcld_wb_chatbot_board_bg_path; ?>"/>
903 <button type="button" class="qcld_wb_chatbot_board_bg_button button"><?php esc_html_e('Upload WpBot background.', 'wpchatbot'); ?></button>
904 </div>
905 </div>
906
907 <div class="col-xs-6">
908 <p class="wp-chatbot-settings-instruction"> <?php esc_html_e('Custom message board background', 'wpchatbot'); ?> </p>
909 <img id="qcld_wb_chatbot_board_bg_image" style="height:100%;width:100%"
910 src="<?php echo $qcld_wb_chatbot_board_bg_path; ?>"
911 alt="Custom Background">
912 </div>
913 </div>
914 </div>-->
915
916 <div id="wp-chatbot-custom-color-options" class="tab-pane fade">
917 <div class="top-section">
918 <div class="row">
919 <div class="col-xs-12">
920 <div class="cxsc-settings-blocks">
921 <div class="form-group">
922 <h4 class="qc-opt-title">
923 <?php _e('Bot Floating Icon Background Color.', 'woochatbot'); ?>
924 </h4>
925 <input id="wp_chatbot_floatingiconbg_color" type="text"
926 name="wp_chatbot_floatingiconbg_color"
927 value="<?php echo(get_option('wp_chatbot_floatingiconbg_color') != '' ? get_option('wp_chatbot_floatingiconbg_color') : '#fff'); ?>"/>
928 </div>
929 </div>
930 <h3 class="qc-opt-title">
931 <?php _e('Custom Style Options', 'woochatbot'); ?>
932 </h3>
933 <div class="cxsc-settings-blocks">
934 <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
935 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? 'checked' : ''); ?>>
936 <label for="enable_wp_chatbot_custom_color">
937 <?php _e('Enable Style Colors ', 'woochatbot'); ?>
938 </label>
939 </div>
940 <br>
941 <div class="cxsc-settings-blocks">
942 <div class="form-group">
943 <h4 class="qc-opt-title">
944 <?php _e('Text Color.', 'woochatbot'); ?>
945 </h4>
946 <input id="wp_chatbot_text_color" type="text"
947 name="wp_chatbot_text_color"
948 value="<?php echo(get_option('wp_chatbot_text_color') != '' ? get_option('wp_chatbot_text_color') : '#37424c'); ?>"/>
949 </div>
950 </div>
951 <div class="cxsc-settings-blocks">
952 <div class="form-group">
953 <h4 class="qc-opt-title">
954 <?php _e('Link Color.', 'woochatbot'); ?>
955 </h4>
956 <input id="wp_chatbot_link_color" type="text"
957 name="wp_chatbot_link_color"
958 value="<?php echo(get_option('wp_chatbot_link_color') != '' ? get_option('wp_chatbot_link_color') : '#e2cc1f'); ?>"/>
959 </div>
960 </div>
961 <div class="cxsc-settings-blocks">
962 <div class="form-group">
963 <h4 class="qc-opt-title">
964 <?php _e('Link Hover Color.', 'woochatbot'); ?>
965 </h4>
966 <input id="wp_chatbot_link_hover_color" type="text"
967 name="wp_chatbot_link_hover_color"
968 value="<?php echo(get_option('wp_chatbot_link_hover_color') != '' ? get_option('wp_chatbot_link_hover_color') : '#734006'); ?>"/>
969 </div>
970 </div>
971 <div class="cxsc-settings-blocks">
972 <div class="form-group">
973 <h4 class="qc-opt-title">
974 <?php _e('Bot Message Background Color.', 'woochatbot'); ?>
975 </h4>
976 <input id="wp_chatbot_bot_msg_bg_color" type="text"
977 name="wp_chatbot_bot_msg_bg_color"
978 value="<?php echo(get_option('wp_chatbot_bot_msg_bg_color') != '' ? get_option('wp_chatbot_bot_msg_bg_color') : '#1f8ceb'); ?>"/>
979 </div>
980 </div>
981 <div class="cxsc-settings-blocks">
982 <div class="form-group">
983 <h4 class="qc-opt-title">
984 <?php _e('Bot Message Text Color.', 'woochatbot'); ?>
985 </h4>
986 <input id="wp_chatbot_bot_msg_text_color" type="text"
987 name="wp_chatbot_bot_msg_text_color"
988 value="<?php echo(get_option('wp_chatbot_bot_msg_text_color') != '' ? get_option('wp_chatbot_bot_msg_text_color') : '#ffffff'); ?>"/>
989 </div>
990 </div>
991 <div class="cxsc-settings-blocks">
992 <div class="form-group">
993 <h4 class="qc-opt-title">
994 <?php _e('User Message Background Color.', 'woochatbot'); ?>
995 </h4>
996 <input id="wp_chatbot_user_msg_bg_color" type="text"
997 name="wp_chatbot_user_msg_bg_color"
998 value="<?php echo(get_option('wp_chatbot_user_msg_bg_color') != '' ? get_option('wp_chatbot_user_msg_bg_color') : '#ffffff'); ?>"/>
999 </div>
1000 </div>
1001 <div class="cxsc-settings-blocks">
1002 <div class="form-group">
1003 <h4 class="qc-opt-title">
1004 <?php _e('User Message Text Color.', 'woochatbot'); ?>
1005 </h4>
1006 <input id="wp_chatbot_user_msg_text_color" type="text"
1007 name="wp_chatbot_user_msg_text_color"
1008 value="<?php echo(get_option('wp_chatbot_user_msg_text_color') != '' ? get_option('wp_chatbot_user_msg_text_color') : '#000000'); ?>"/>
1009 </div>
1010 </div>
1011 <div class="cxsc-settings-blocks">
1012 <div class="form-group">
1013 <h4 class="qc-opt-title">
1014 <?php _e('Buttons Background Color.', 'woochatbot'); ?>
1015 </h4>
1016 <input id="wp_chatbot_buttons_bg_color" type="text"
1017 name="wp_chatbot_buttons_bg_color"
1018 value="<?php echo(get_option('wp_chatbot_buttons_bg_color') != '' ? get_option('wp_chatbot_buttons_bg_color') : '#1f8ceb'); ?>"/>
1019 </div>
1020 </div>
1021 <div class="cxsc-settings-blocks">
1022 <div class="form-group">
1023 <h4 class="qc-opt-title">
1024 <?php _e('Buttons Hover Background Color.', 'woochatbot'); ?>
1025 </h4>
1026 <input id="wp_chatbot_buttons_bg_color" type="text"
1027 name="wp_chatbot_buttons_bg_color_hover"
1028 value="<?php echo(get_option('wp_chatbot_buttons_bg_color_hover') != '' ? get_option('wp_chatbot_buttons_bg_color_hover') : '#1f8ceb'); ?>"/>
1029 </div>
1030 </div>
1031 <div class="cxsc-settings-blocks">
1032 <div class="form-group">
1033 <h4 class="qc-opt-title">
1034 <?php _e('Buttons Text Color.', 'woochatbot'); ?>
1035 </h4>
1036 <input id="wp_chatbot_buttons_text_color" type="text"
1037 name="wp_chatbot_buttons_text_color"
1038 value="<?php echo(get_option('wp_chatbot_buttons_text_color') != '' ? get_option('wp_chatbot_buttons_text_color') : '#ffffff'); ?>"/>
1039 </div>
1040 </div>
1041 <div class="cxsc-settings-blocks">
1042 <div class="form-group">
1043 <h4 class="qc-opt-title">
1044 <?php _e('Buttons Text Color Hover.', 'woochatbot'); ?>
1045 </h4>
1046 <input id="wp_chatbot_buttons_text_color" type="text"
1047 name="wp_chatbot_buttons_text_color_hover"
1048 value="<?php echo(get_option('wp_chatbot_buttons_text_color_hover') != '' ? get_option('wp_chatbot_buttons_text_color_hover') : '#ffffff'); ?>"/>
1049 </div>
1050 </div>
1051 <div class="cxsc-settings-blocks">
1052 <div class="form-group">
1053 <h4 class="qc-opt-title">
1054 <?php _e('Theme Primary Color', 'woochatbot'); ?>
1055 </h4>
1056 <input id="wp_chatbot_theme_primary_color" type="text"
1057 name="wp_chatbot_theme_primary_color"
1058 value="<?php echo(get_option('wp_chatbot_theme_primary_color') != '' ? get_option('wp_chatbot_theme_primary_color') : '#ffffff'); ?>"/>
1059 </div>
1060 </div>
1061 <div class="cxsc-settings-blocks">
1062 <div class="form-group">
1063 <h4 class="qc-opt-title">
1064 <?php _e('Theme Secondary Color', 'woochatbot'); ?>
1065 </h4>
1066 <input id="wp_chatbot_theme_secondary_color" type="text"
1067 name="wp_chatbot_theme_secondary_color"
1068 value="<?php echo(get_option('wp_chatbot_theme_secondary_color') != '' ? get_option('wp_chatbot_theme_secondary_color') : '#ffffff'); ?>"/>
1069 </div>
1070 </div>
1071 <div class="cxsc-settings-blocks">
1072 <div class="form-group">
1073 <h4 class="qc-opt-title">
1074 <?php _e('Font size', 'woochatbot'); ?>
1075 </h4>
1076 <input id="wp_chatbot_font_size" type="number"
1077 name="wp_chatbot_font_size"
1078 value="<?php echo(get_option('wp_chatbot_font_size') != '' ? get_option('wp_chatbot_font_size') : '16'); ?>"/>
1079 </div>
1080 </div>
1081 <div class="cxsc-settings-blocks">
1082 <div class="form-group">
1083 <h4 class="qc-opt-title">
1084 <?php
1085 _e('User message Font family ', 'woochatbot');
1086 $user_font = get_option('wp_chat_user_font_family') != '' ? get_option('wp_chat_user_font_family') : '';
1087 $user_font_family = str_replace("\\", "",$user_font);
1088 ?>
1089 </h4>
1090 <input id="wp_chatbot_user_font" type="text" name="wp_chatbot_user_font"
1091 value="<?php echo(get_option('wp_chatbot_user_font') != '' ? get_option('wp_chatbot_user_font') : '');?>">
1092 <input id="wp_chat_user_font_family" type="hidden"
1093 name="wp_chat_user_font_family"
1094 />
1095 </div>
1096 </div>
1097 <div class="cxsc-settings-blocks">
1098 <div class="form-group">
1099 <h4 class="qc-opt-title">
1100 <?php
1101 _e('Bot message Font family ', 'woochatbot');
1102 $bot_font = get_option('wp_chat_bot_font_family') != '' ? get_option('wp_chat_bot_font_family') : '';
1103 $bot_font_family = str_replace("\\", "",$bot_font);
1104 ?>
1105 </h4>
1106 <input id="wp_chatbot_bot_font" type="text" name="wp_chatbot_bot_font"
1107 value="<?php echo(get_option('wp_chatbot_bot_font') != '' ? get_option('wp_chatbot_bot_font') : '');?>">
1108 <input id="wp_chat_bot_font_family" type="hidden"
1109 name="wp_chat_bot_font_family"
1110 />
1111 </div>
1112 </div>
1113 <script>
1114 jQuery(function ($) {
1115 $('#wp_chat_user_font_family').val(JSON.stringify(<?php echo $user_font_family; ?>));
1116 $('#wp_chat_bot_font_family').val(JSON.stringify(<?php echo $bot_font_family; ?>));
1117 $('#wp_chatbot_user_font')
1118 .fontpicker()
1119 .on('change', function() {
1120 var tmp = this.value.split(':'),
1121 family = tmp[0],
1122 variant = tmp[1] || '400',
1123 weight = parseInt(variant,10),
1124 italic = /i$/.test(variant);
1125 var css = {
1126 fontFamily: "'" + family + "'",
1127 fontWeight: weight,
1128 fontStyle: italic ? 'italic' : 'normal'
1129 };
1130
1131 $('#wp_chat_user_font_family').val(JSON.stringify(css));
1132 });
1133 $('#wp_chatbot_bot_font')
1134 .fontpicker()
1135 .on('change', function() {
1136 var tmp = this.value.split(':'),
1137 family = tmp[0],
1138 variant = tmp[1] || '400',
1139 weight = parseInt(variant,10),
1140 italic = /i$/.test(variant);
1141
1142 // Set selected font on body
1143 var css = {
1144 fontFamily: "'" + family + "'",
1145 fontWeight: weight,
1146 fontStyle: italic ? 'italic' : 'normal'
1147 };
1148 $('#wp_chat_bot_font_family').val(JSON.stringify(css));
1149 });
1150 });
1151 </script>
1152 </div>
1153 </div>
1154 </div>
1155 </div>
1156 </div>
1157 </section>
1158 <section id="section-flip-4">
1159 <div class="row">
1160 <div class="col-xs-12"> </div>
1161 </div>
1162 <div class="top-section">
1163 <h4 class="qc-opt-title">
1164 <?php esc_html_e('Build FAQ Query and Answers', 'wpchatbot'); ?>
1165 </h4>
1166 <div class="block-inner ui-sortable" id="wp-chatbot-support-builder">
1167 <?php
1168 $support_quereis=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_query')));
1169 $support_ans=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_ans')));
1170 if (count($support_ans) >= 1) {
1171 //foreach (get_option('support_ans') as $support_ans){
1172 $query_ans_counter=0;
1173 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
1174 ?>
1175 <div class="row"> <span class="pull-right"> </span>
1176 <div class="col-xs-12">
1177 <button type="button"
1178 class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <i class="fa fa-times" aria-hidden="true"></i> </button>
1179 <span class="wp-chatbot-support-cross pull-right" > <i class="fa fa-crosshairs" aria-hidden="true"></i> </span>
1180 <div class="cxsc-settings-blocks">
1181 <p class="qc-opt-dcs-font">
1182 <?php esc_html_e('FAQ query ', 'wpchatbot'); ?>
1183 </p>
1184 <input type="text" class="form-control" name="support_query[]"
1185 placeholder="<?php esc_html_e('FAQ query ', 'wpchatbot'); ?>" value="<?php echo $query ?>">
1186 <br>
1187 <p class="qc-opt-dcs-font">
1188 <?php esc_html_e('FAQ answer', 'wpchatbot'); ?>
1189 </p>
1190 <?php wp_editor(html_entity_decode(stripcslashes($ans)), 'support_ans'.'_'.$query_ans_counter, array('textarea_name' =>
1191 'support_ans[]',
1192 'textarea_rows' => 20,
1193 'editor_height' => 100,
1194 'disabled' => 'disabled',
1195 'media_buttons' => false,
1196 'tinymce' => array(
1197 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1198 )); ?>
1199 </div>
1200 </div>
1201 </div>
1202 <?php
1203 $query_ans_counter++;
1204 }
1205 //}
1206 } else {
1207 ?>
1208 <div class="row">
1209 <div class="col-xs-12">
1210 <button type="button"
1211 class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <i class="fa fa-times" aria-hidden="true"></i> </button>
1212 <span class="wp-chatbot-support-cross pull-right" > <i class="fa fa-crosshairs" aria-hidden="true"></i> </span>
1213 <div class="cxsc-settings-blocks">
1214 <p class="qc-opt-dcs-font">
1215 <?php esc_html_e('Support query', 'wpchatbot'); ?>
1216 </p>
1217 <input type="text" class="form-control" name="support_query[]"
1218 placeholder="<?php esc_html_e('Support query ', 'wpchatbot'); ?>">
1219 <br>
1220 <p class="qc-opt-dcs-font"><strong>
1221 <?php esc_html_e('Support answer', 'wpchatbot'); ?>
1222 </strong></p>
1223 <?php wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
1224 'support_ans[]',
1225 'textarea_rows' => 20,
1226 'editor_height' => 100,
1227 'disabled' => 'disabled',
1228 'media_buttons' => false,
1229 'tinymce' => array(
1230 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1231 )); ?>
1232 </div>
1233 <br>
1234 </div>
1235 </div>
1236 <?php
1237 }
1238 ?>
1239 </div>
1240 <div class="row">
1241 <div class="col-sm-6 text-left"></div>
1242 <div class="col-sm-6 text-right">
1243 <button class="btn btn-success btn-sm" type="button"
1244 id="add-more-support-query"><i
1245 class="fa fa-plus" aria-hidden="true"></i>
1246 <?php esc_html_e('Add More Questions and Answers', 'wpchatbot'); ?>
1247 </button>
1248 </div>
1249 </div>
1250 </div>
1251 </section>
1252 <!--<section id="section-flip-4">
1253 <div class="top-section">
1254 <div class="notification-block-inner">
1255 <div class="row">
1256 <div class="col-xs-12">
1257 <div class="cxsc-settings-blocks">
1258 <?php $notification_interval = get_option('qlcd_wp_chatbot_notification_interval') != "" ? get_option('qlcd_wp_chatbot_notification_interval') : 5 ?>
1259 <h4 class="qc-opt-title"><?php esc_html_e('Interval between notifications (in Seconds).', 'wpchatbot'); ?></h4>
1260 <input type="text" class="form-control"
1261 name="qlcd_wp_chatbot_notification_interval"
1262 value="<?php echo $notification_interval ?>">
1263 </div>
1264 </div>
1265 </div>
1266
1267 <?php
1268 $notifications = $this->qcld_wb_chatbot_str_replace(unserialize(get_option('qlcd_wp_chatbot_notifications')));
1269 if (!empty($notifications)) {
1270 $chatbot_notif_counter=0;
1271 foreach ($notifications as $notification) {
1272 ?>
1273 <div class="row">
1274 <div class="col-xs-12">
1275 <button type="button"
1276 class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right">
1277 <i class="fa fa-times" aria-hidden="true"></i>
1278 </button>
1279 <div class="cxsc-settings-blocks">
1280 <?php wp_editor(html_entity_decode(stripcslashes($notification)), 'qlcd_wp_chatbot_notifications_'.$chatbot_notif_counter, array('textarea_name' =>
1281 'qlcd_wp_chatbot_notifications[]',
1282 'textarea_rows' => 20,
1283 'editor_height' => 100,
1284 'disabled' => 'disabled',
1285 'media_buttons' => false,
1286 'tinymce' => array(
1287 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1288 )); ?>
1289 </div>
1290 </div>
1291
1292 </div>
1293
1294 <?php
1295 $chatbot_notif_counter++;
1296 }
1297 //}
1298 } else {
1299 ?>
1300 <div class="row">
1301 <div class="col-xs-12">
1302 <button type="button"
1303 class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right">
1304 <i class="fa fa-times" aria-hidden="true"></i>
1305 </button>
1306 <div class="cxsc-settings-blocks">
1307 <?php wp_editor(html_entity_decode(stripcslashes('')), 'qlcd_wp_chatbot_notifications_0', array('textarea_name' =>
1308 'qlcd_wp_chatbot_notifications[]',
1309 'textarea_rows' => 20,
1310 'editor_height' => 100,
1311 'disabled' => 'disabled',
1312 'media_buttons' => false,
1313 'tinymce' => array(
1314 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1315 )); ?>
1316 </div>
1317 </div>
1318 </div>
1319 <?php
1320 }
1321 ?>
1322 </div>
1323 <div class="row">
1324 <div class="col-sm-6 text-left"></div>
1325 <div class="col-sm-6 text-right">
1326 <button class="btn btn-success btn-sm" type="button"
1327 id="add-more-notification-message">
1328 <i class="fa fa-plus" aria-hidden="true"></i> <?php esc_html_e('Add', 'wpchatbot'); ?>
1329 </button>
1330 </div>
1331 </div>
1332
1333 </div>
1334
1335 </section>-->
1336 <section id="section-flip-5">
1337 <div class="wp-chatbot-language-center-summmery"> </div>
1338 <ul class="nav nav-tabs">
1339 <li class="active"><a data-toggle="tab" href="#wp-chatbot-lng-general">
1340 <?php esc_html_e('General', 'wpchatbot'); ?>
1341 </a></li>
1342 <li><a data-toggle="tab" href="#wp-chatbot-lng-support">
1343 <?php esc_html_e('FAQ', 'wpchatbot'); ?>
1344 </a></li>
1345 <li><a data-toggle="tab" href="#wp-chatbot-lng-reserve-keyword">
1346 <?php esc_html_e('ChatBot Keywords', 'wpchatbot'); ?>
1347 </a></li>
1348 </ul>
1349 <div class="tab-content">
1350 <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
1351 <div class="top-section">
1352 <div class="row">
1353 <div class="col-xs-12" id="wp-chatbot-language-section">
1354 <p>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).</p>
1355 <p>You could use &lt;br&gt; tag for line break.</p>
1356 <div class="form-group">
1357 <h4 class="qc-opt-title">
1358 <?php esc_html_e('Your Company or Website Name', 'wpchatbot'); ?>
1359 </h4>
1360 <input type="text" class="form-control qc-opt-dcs-font"
1361 name="qlcd_wp_chatbot_host"
1362 value="<?php echo(get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store'); ?>">
1363 </div>
1364 <div class="form-group">
1365 <h4 class="qc-opt-title">
1366 <?php esc_html_e('Agent name', 'wpchatbot'); ?>
1367 </h4>
1368 <input type="text" class="form-control qc-opt-dcs-font"
1369 name="qlcd_wp_chatbot_agent"
1370 value="<?php echo(get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie'); ?>">
1371 </div>
1372 <div class="form-group">
1373 <h4 class="qc-opt-title">
1374 <?php esc_html_e('User demo name', 'wpchatbot'); ?>
1375 </h4>
1376 <input type="text" class="form-control qc-opt-dcs-font"
1377 name="qlcd_wp_chatbot_shopper_demo_name"
1378 value="<?php echo(get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo'); ?>">
1379 </div>
1380 <div class="form-group">
1381 <h4 class="qc-opt-title">
1382 <?php esc_html_e('YES', 'wpchatbot'); ?>
1383 </h4>
1384 <input type="text" class="form-control qc-opt-dcs-font"
1385 name="qlcd_wp_chatbot_yes"
1386 value="<?php echo(get_option('qlcd_wp_chatbot_yes') != '' ? get_option('qlcd_wp_chatbot_yes') : 'YES'); ?>">
1387 </div>
1388 <div class="form-group">
1389 <h4 class="qc-opt-title">
1390 <?php esc_html_e('NO', 'wpchatbot'); ?>
1391 </h4>
1392 <input type="text" class="form-control qc-opt-dcs-font"
1393 name="qlcd_wp_chatbot_no"
1394 value="<?php echo(get_option('qlcd_wp_chatbot_no') != '' ? get_option('qlcd_wp_chatbot_no') : 'NO'); ?>">
1395 </div>
1396 <div class="form-group">
1397 <h4 class="qc-opt-title">
1398 <?php esc_html_e('OR', 'wpchatbot'); ?>
1399 </h4>
1400 <input type="text" class="form-control qc-opt-dcs-font"
1401 name="qlcd_wp_chatbot_or"
1402 value="<?php echo(get_option('qlcd_wp_chatbot_or') != '' ? get_option('qlcd_wp_chatbot_or') : 'OR'); ?>">
1403 </div>
1404 <div class="form-group">
1405 <h4 class="qc-opt-title">
1406 <?php esc_html_e('Sorry', 'wpchatbot'); ?>
1407 </h4>
1408 <input type="text" class="form-control qc-opt-dcs-font"
1409 name="qlcd_wp_chatbot_sorry"
1410 value="<?php echo(get_option('qlcd_wp_chatbot_sorry') != '' ? get_option('qlcd_wp_chatbot_sorry') : 'Sorry'); ?>">
1411 </div>
1412 <div class="form-group">
1413 <?php
1414 $agent_join_options = unserialize(get_option('qlcd_wp_chatbot_agent_join'));
1415 $agent_join_option = 'qlcd_wp_chatbot_agent_join';
1416 $agent_join_text = __('has joined the conversation', 'wpchatbot');
1417 $this->qcld_wb_chatbot_dynamic_multi_option($agent_join_options, $agent_join_option, $agent_join_text);
1418 ?>
1419 </div>
1420 </div>
1421 <!--col-xs-12-->
1422 <div class="col-xs-12" id="wp-chatbot-language-section">
1423 <h4 class="text-success">
1424 <?php esc_html_e(' Message setting for Greetings: ', 'wpchatbot'); ?>
1425 </h4>
1426 <div class="form-group">
1427 <?php
1428 $welcome_to_options = unserialize(get_option('qlcd_wp_chatbot_welcome'));
1429 $welcome_to_option = 'qlcd_wp_chatbot_welcome';
1430 $welcome_to_text =__('Welcome to', 'wpchatbot');
1431 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_to_options, $welcome_to_option, $welcome_to_text);
1432 ?>
1433 </div>
1434 <div class="form-group">
1435 <?php
1436 $welcome_back_options = unserialize(get_option('qlcd_wp_chatbot_welcome_back'));
1437 $welcome_back_option = 'qlcd_wp_chatbot_welcome_back';
1438 $welcome_back_text = __('Welcome back', 'wpchatbot');
1439 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_back_options, $welcome_back_option, $welcome_back_text);
1440 ?>
1441 </div>
1442 <div class="form-group">
1443 <?php
1444 $back_to_start_options = unserialize(get_option('qlcd_wp_chatbot_back_to_start'));
1445 $back_to_start_option = 'qlcd_wp_chatbot_back_to_start';
1446 $back_to_start_text = __('Back to Start', 'wpchatbot');
1447 $this->qcld_wb_chatbot_dynamic_multi_option($back_to_start_options, $back_to_start_option, $back_to_start_text);
1448 ?>
1449 </div>
1450 <div class="form-group">
1451 <?php
1452 $hi_there_options = unserialize(get_option('qlcd_wp_chatbot_hi_there'));
1453 $hi_there_option = 'qlcd_wp_chatbot_hi_there';
1454 $hi_there_text = __('Hi There!', 'wpchatbot');
1455 $this->qcld_wb_chatbot_dynamic_multi_option($hi_there_options, $hi_there_option, $hi_there_text);
1456 ?>
1457 </div>
1458 <div class="form-group">
1459 <?php
1460 $asking_name_options = unserialize(get_option('qlcd_wp_chatbot_asking_name'));
1461 $asking_name_option = 'qlcd_wp_chatbot_asking_name';
1462 $asking_name_text = __('May I know your name?', 'wpchatbot');
1463 $this->qcld_wb_chatbot_dynamic_multi_option($asking_name_options, $asking_name_option, $asking_name_text);
1464 ?>
1465 </div>
1466 <div class="form-group">
1467 <?php
1468 $i_am_options = unserialize(get_option('qlcd_wp_chatbot_i_am'));
1469 $i_am_option = 'qlcd_wp_chatbot_i_am';
1470 $i_am_text = __('I am', 'wpchatbot');
1471 $this->qcld_wb_chatbot_dynamic_multi_option($i_am_options, $i_am_option, $i_am_text);
1472 ?>
1473 </div>
1474 <div class="form-group">
1475 <?php
1476 $name_greeting_options = unserialize(get_option('qlcd_wp_chatbot_name_greeting'));
1477 $name_greeting_option = 'qlcd_wp_chatbot_name_greeting';
1478 $name_greeting_text = __('Nice to meet you', 'wpchatbot');
1479 $this->qcld_wb_chatbot_dynamic_multi_option($name_greeting_options, $name_greeting_option, $name_greeting_text);
1480 ?>
1481 </div>
1482 <div class="form-group">
1483 <?php
1484 $wildcard_msg_options = unserialize(get_option('qlcd_wp_chatbot_wildcard_msg'));
1485 $wildcard_msg_option = 'qlcd_wp_chatbot_wildcard_msg';
1486 $wildcard_msg_text = __('I am here to find what you need. What are you looking for?', 'wpchatbot');
1487 $this->qcld_wb_chatbot_dynamic_multi_option($wildcard_msg_options, $wildcard_msg_option, $wildcard_msg_text);
1488 ?>
1489 </div>
1490 <div class="form-group">
1491 <?php
1492 $empty_filter_msgs = unserialize(get_option('qlcd_wp_chatbot_empty_filter_msg'));
1493 $empty_filter_msg = 'qlcd_wp_chatbot_empty_filter_msg';
1494 $empty_filter_msg_text = __('Sorry, I did not understand that', 'wpchatbot');
1495 $this->qcld_wb_chatbot_dynamic_multi_option($empty_filter_msgs, $empty_filter_msg, $empty_filter_msg_text);
1496 ?>
1497 </div>
1498 <div class="form-group">
1499 <?php
1500 $qlcd_wp_chatbot_did_you_mean = unserialize(get_option('qlcd_wp_chatbot_did_you_mean'));
1501 $qlcd_wp_chatbot_did_you_means = 'qlcd_wp_chatbot_did_you_mean';
1502 $wp_chatbot_no_result_text = esc_html__('Did you mean?', 'wpchatbot');
1503 $this->qcld_wb_chatbot_dynamic_multi_option($qlcd_wp_chatbot_did_you_mean, $qlcd_wp_chatbot_did_you_means, $wp_chatbot_no_result_text);
1504 ?>
1505 </div>
1506 <h4 class="text-success">
1507 <?php esc_html_e('Message setting for Editor Box ', 'wpchatbot'); ?>
1508 </h4>
1509 <div class="form-group">
1510 <?php
1511 $is_typing_options = unserialize(get_option('qlcd_wp_chatbot_is_typing'));
1512 $is_typing_option = 'qlcd_wp_chatbot_is_typing';
1513 $is_typing_text = __('is typing...', 'wpchatbot');
1514 $this->qcld_wb_chatbot_dynamic_multi_option($is_typing_options, $is_typing_option, $is_typing_text);
1515 ?>
1516 </div>
1517 <div class="form-group">
1518 <?php
1519 $send_a_msg_options = unserialize(get_option('qlcd_wp_chatbot_send_a_msg'));
1520 $send_a_msg_option = 'qlcd_wp_chatbot_send_a_msg';
1521 $send_a_msg_text =__('Send a message', 'wpchatbot');
1522 $this->qcld_wb_chatbot_dynamic_multi_option($send_a_msg_options, $send_a_msg_option, $send_a_msg_text);
1523 ?>
1524 </div>
1525 <div class="form-group">
1526 <?php
1527 $choose_option_options = unserialize(get_option('qlcd_wp_chatbot_choose_option'));
1528 $choose_option_option = 'qlcd_wp_chatbot_choose_option';
1529 $choose_option_text = __('Choose an option', 'wpchatbot');
1530 $this->qcld_wb_chatbot_dynamic_multi_option($choose_option_options, $choose_option_option, $choose_option_text);
1531 ?>
1532 </div>
1533 <div class="form-group">
1534 <?php
1535 $asking_email_options = unserialize(get_option('qlcd_wp_chatbot_asking_email'));
1536 $asking_email_option = 'qlcd_wp_chatbot_asking_email';
1537 $asking_email_text = __('Please provide your email address', 'wpchatbot');
1538 $this->qcld_wb_chatbot_dynamic_multi_option($asking_email_options, $asking_email_option, $asking_email_text);
1539 ?>
1540 </div>
1541 <div class="form-group">
1542 <?php
1543 $invalid_email_options = unserialize(get_option('qlcd_wp_chatbot_invalid_email'));
1544 $invalid_email_option = 'qlcd_wp_chatbot_invalid_email';
1545 $invalid_email_text = __('Sorry, Email address is not valid! Please provide a valid email.', 'wpchatbot');
1546 $this->qcld_wb_chatbot_dynamic_multi_option($invalid_email_options, $invalid_email_option, $invalid_email_text);
1547 ?>
1548 </div>
1549 <div class="form-group">
1550 <?php
1551 $asking_msg_options = unserialize(get_option('qlcd_wp_chatbot_asking_msg'));
1552 $asking_msg_option = 'qlcd_wp_chatbot_asking_msg';
1553 $asking_msg_text = __('Thank you for email address. Please write your message now.', 'wpchatbot');
1554 $this->qcld_wb_chatbot_dynamic_multi_option($asking_msg_options, $asking_msg_option, $asking_msg_text);
1555 ?>
1556 </div>
1557 <div class="form-group">
1558 <h4 class="qc-opt-title">
1559 <?php esc_html_e('WPBot Support Mail Subject', 'wpchatbot'); ?>
1560 </h4>
1561 <input type="text" class="form-control qc-opt-dcs-font"
1562 name="qlcd_wp_chatbot_email_sub"
1563 value="<?php echo(get_option('qlcd_wp_chatbot_email_sub') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_email_sub')) : 'Support Email Subject'); ?>">
1564 </div>
1565 <div class="form-group">
1566 <?php
1567 $support_option_again_options = unserialize(get_option('qlcd_wp_chatbot_support_option_again'));
1568 $support_option_again_option = 'qlcd_wp_chatbot_support_option_again';
1569 $support_option_again_text = __('You may choose option from below.', 'wpchatbot');
1570 $this->qcld_wb_chatbot_dynamic_multi_option($support_option_again_options, $support_option_again_option, $support_option_again_text);
1571 ?>
1572 </div>
1573 <div class="form-group">
1574 <h4 class="qc-opt-title">
1575 <?php esc_html_e('Your email was sent successfully.Thanks!', 'wpchatbot'); ?>
1576 </h4>
1577 <input type="text" class="form-control qc-opt-dcs-font"
1578 name="qlcd_wp_chatbot_email_sent"
1579 value="<?php echo(get_option('qlcd_wp_chatbot_email_sent') != '' ? get_option('qlcd_wp_chatbot_email_sent') : 'Your email was sent successfully.Thanks!'); ?>">
1580 </div>
1581 <div class="form-group">
1582 <h4 class="qc-opt-title">
1583 <?php esc_html_e('Sorry! I could not send your mail! Please contact the webmaster.', 'wpchatbot'); ?>
1584 </h4>
1585 <input type="text" class="form-control qc-opt-dcs-font"
1586 name="qlcd_wp_chatbot_email_fail"
1587 value="<?php echo(get_option('qlcd_wp_chatbot_email_fail') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_email_fail')) : 'Sorry! fail to send email'); ?>">
1588 </div>
1589 <div class="form-group">
1590 <?php
1591 $asking_phone_options = unserialize(get_option('qlcd_wp_chatbot_asking_phone'));
1592 $asking_phone_option = 'qlcd_wp_chatbot_asking_phone';
1593 $asking_phone_text = __('Please provide your Phone number', 'wpchatbot');
1594 $this->qcld_wb_chatbot_dynamic_multi_option($asking_phone_options, $asking_phone_option, $asking_phone_text);
1595 ?>
1596 </div>
1597 <div class="form-group">
1598 <?php
1599 $thanks_phone_options = unserialize(get_option('qlcd_wp_chatbot_thank_for_phone'));
1600 $thanks_phone_option = 'qlcd_wp_chatbot_thank_for_phone';
1601 $thanks_phone_text = __('Thank you for Phone number', 'wpchatbot');
1602 $this->qcld_wb_chatbot_dynamic_multi_option($thanks_phone_options, $thanks_phone_option, $thanks_phone_text);
1603 ?>
1604 </div>
1605 <div class="form-group">
1606 <h4 class="qc-opt-title">
1607 <?php esc_html_e('Thanks for your phone number. We will call you ASAP!', 'wpchatbot'); ?>
1608 </h4>
1609 <input type="text" class="form-control qc-opt-dcs-font"
1610 name="qlcd_wp_chatbot_phone_sent"
1611 value="<?php echo(get_option('qlcd_wp_chatbot_phone_sent') != '' ? get_option('qlcd_wp_chatbot_phone_sent') : 'Thanks for your phone number. We will call you ASAP!'); ?>">
1612 </div>
1613 <div class="form-group">
1614 <h4 class="qc-opt-title">
1615 <?php esc_html_e('Sorry! I could not collect phone number! Please contact the webmaster.', 'wpchatbot'); ?>
1616 </h4>
1617 <input type="text" class="form-control qc-opt-dcs-font"
1618 name="qlcd_wp_chatbot_phone_fail"
1619 value="<?php echo(get_option('qlcd_wp_chatbot_phone_fail') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_phone_fail')) : 'Sorry! I could not collect phone number!'); ?>">
1620 </div>
1621 </div>
1622 </div>
1623 </div>
1624 </div>
1625 <div id="wp-chatbot-lng-support" class="tab-pane fade">
1626 <div class="top-section">
1627 <div class="row">
1628 <div class="col-xs-12" id="wp-chatbot-language-section">
1629 <div class="form-group">
1630 <?php
1631 $support_welcome_options = unserialize(get_option('qlcd_wp_chatbot_support_welcome'));
1632 $support_welcome_option = 'qlcd_wp_chatbot_support_welcome';
1633 $support_welcome_text = __('Welcome to FAQ Section', 'wpchatbot');
1634 $this->qcld_wb_chatbot_dynamic_multi_option($support_welcome_options, $support_welcome_option, $support_welcome_text);
1635 ?>
1636 </div>
1637
1638 <!--<div class="form-group">
1639 <?php
1640 $feedback_label_options = unserialize(get_option('qlcd_wp_chatbot_feedback_label'));
1641 $feedback_label_option = 'qlcd_wp_chatbot_feedback_label';
1642 $feedback_label_text = __('Send Feedback!', 'wpchatbot');
1643 $this->qcld_wb_chatbot_dynamic_multi_option($feedback_label_options, $feedback_label_option, $feedback_label_text);
1644 ?>
1645 </div>-->
1646
1647 </div>
1648 </div>
1649 </div>
1650 </div>
1651 <div id="wp-chatbot-lng-reserve-keyword" class="tab-pane fade">
1652 <div class="top-section">
1653 <div class="row">
1654 <div class="col-xs-12" id="wp-chatbot-language-section">
1655 <div class="form-group">
1656 <h4 class="qc-opt-title">
1657 <?php esc_html_e('Start Keyword', 'wpchatbot'); ?>
1658 </h4>
1659 <input type="text" class="form-control qc-opt-dcs-font"
1660 name="qlcd_wp_chatbot_sys_key_help"
1661 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_help') != '' ? get_option('qlcd_wp_chatbot_sys_key_help') : 'start'); ?>">
1662 </div>
1663 <div class="form-group">
1664 <h4 class="qc-opt-title"><strong>
1665 <?php esc_html_e('FAQ', 'wpchatbot'); ?>
1666 </strong>
1667 <?php esc_html_e('Keyword', 'wpchatbot'); ?>
1668 </h4>
1669 <input type="text" class="form-control qc-opt-dcs-font"
1670 name="qlcd_wp_chatbot_sys_key_support"
1671 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_support') != '' ? get_option('qlcd_wp_chatbot_sys_key_support') : 'faq'); ?>">
1672 </div>
1673 <div class="form-group">
1674 <h4 class="qc-opt-title"><strong>
1675 <?php esc_html_e('Converstion History Clear', 'wpchatbot'); ?>
1676 </strong>
1677 <?php esc_html_e('Keyword', 'wpchatbot'); ?>
1678 </h4>
1679 <input type="text" class="form-control qc-opt-dcs-font"
1680 name="qlcd_wp_chatbot_sys_key_reset"
1681 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_reset') != '' ? get_option('qlcd_wp_chatbot_sys_key_reset') : 'reset'); ?>">
1682 </div>
1683 <div class="form-group">
1684 <?php
1685 $help_welcome_options = unserialize(get_option('qlcd_wp_chatbot_help_welcome'));
1686 $help_welcome_option = 'qlcd_wp_chatbot_help_welcome';
1687 $help_welcome_text = 'Welcome to Help Section';
1688 $this->qcld_wb_chatbot_dynamic_multi_option($help_welcome_options, $help_welcome_option, $help_welcome_text);
1689 ?>
1690 </div>
1691 <div class="form-group">
1692 <?php
1693 $help_msg_options = unserialize(get_option('qlcd_wp_chatbot_help_msg'));
1694 $help_msg_option = 'qlcd_wp_chatbot_help_msg';
1695 $help_msg_text = '<h3>Type and Hit Enter</h3> 1. <b>start</b> Get back to the main menu. <br> 2. <b>faq</b> for FAQ. <br> 3. <b>eMail </b> to Send eMail <br> 4. <b>reset</b> To clear chat history and start from the beginning.';
1696 $this->qcld_wb_chatbot_dynamic_multi_option($help_msg_options, $help_msg_option, $help_msg_text);
1697 ?>
1698 </div>
1699 <div class="form-group">
1700 <?php
1701 $reset_options = unserialize(get_option('qlcd_wp_chatbot_reset'));
1702 $reset_option = 'qlcd_wp_chatbot_reset';
1703 $reset_text = 'Do you want to clear our chat history and start over?';
1704 $this->qcld_wb_chatbot_dynamic_multi_option($reset_options, $reset_option, $reset_text);
1705 ?>
1706 </div>
1707 </div>
1708 <!-- col-xs-12-->
1709 </div>
1710 <!-- row-->
1711 </div>
1712 <!-- top-section-->
1713 </div>
1714 </div>
1715 <!-- tab-content-->
1716 </section>
1717 <section id="section-flip-6">
1718 <?php
1719 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');
1720 ?>
1721 <div class="top-section">
1722 <div class="notification-block-inner">
1723 <div class="row">
1724 <div class="col-xs-12">
1725 <div class="row">
1726 <div class="col-xs-12">
1727 <h2>Predefined Intents</h2>
1728 <div class="row">
1729 <div class="col-xs-12">
1730 <h4 class="qc-opt-title">
1731 <?php esc_html_e('Call Me', 'wpchatbot'); ?>
1732 </h4>
1733 <div class="cxsc-settings-blocks">
1734 <input value="1" id="disable_wp_chatbot_call_gen" type="checkbox"
1735 name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? 'checked' : ''); ?>>
1736 <label for="disable_wp_chatbot_call_gen">
1737 <?php esc_html_e('Disable Call Me feature and button on Start Menu', 'wpchatbot'); ?>
1738 </label>
1739 </div>
1740 </div>
1741 </div>
1742 <div class="form-group" style="margin-bottom:0px">
1743 <h4 class="qc-opt-title">
1744 <?php esc_html_e('Button Label', 'wpchatbot'); ?>
1745 </h4>
1746 <input type="text" class="form-control qc-opt-dcs-font"
1747 name="qlcd_wp_chatbot_support_phone"
1748 value="<?php echo(get_option('qlcd_wp_chatbot_support_phone') != '' ? get_option('qlcd_wp_chatbot_support_phone') : 'Leave your number. We will call you back!'); ?>">
1749 </div>
1750 <div class="row">
1751 <div class="col-xs-12">
1752 <h4 class="qc-opt-title">
1753 <?php esc_html_e('Email', 'wpchatbot'); ?>
1754 </h4>
1755 <div class="cxsc-settings-blocks">
1756 <input value="1" id="disable_wp_chatbot_feedback" type="checkbox"
1757 name="disable_wp_chatbot_feedback" <?php echo(get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''); ?>>
1758 <label for="disable_wp_chatbot_feedback">
1759 <?php esc_html_e('Disable Email feature and button on Start Menu', 'wpchatbot'); ?>
1760 </label>
1761 </div>
1762 </div>
1763 </div>
1764 <div class="form-group" style="margin-bottom:0px">
1765 <h4 class="qc-opt-title">
1766 <?php esc_html_e('Button Label', 'wpchatbot'); ?>
1767 </h4>
1768 <input type="text" class="form-control qc-opt-dcs-font"
1769 name="qlcd_wp_chatbot_support_email"
1770 value="<?php echo(get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email'); ?>">
1771 </div>
1772 <div class="row">
1773 <div class="col-xs-12">
1774 <h4 class="qc-opt-title">
1775 <?php esc_html_e('FAQ', 'wpchatbot'); ?>
1776 </h4>
1777 <div class="cxsc-settings-blocks">
1778 <input value="1" id="disable_wp_chatbot_faq" type="checkbox"
1779 name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? 'checked' : ''); ?>>
1780 <label for="disable_wp_chatbot_faq">
1781 <?php esc_html_e('Disable FAQ feature and button on Start Menu', 'wpchatbot'); ?>
1782 </label>
1783 </div>
1784 </div>
1785 </div>
1786 <div class="form-group" style="margin-bottom:0px">
1787 <h4 class="qc-opt-title">
1788 <?php esc_html_e('Button Label', 'wpchatbot'); ?>
1789 </h4>
1790 <input type="text" class="form-control qc-opt-dcs-font"
1791 name="qlcd_wp_chatbot_wildcard_support"
1792 value="<?php echo(get_option('qlcd_wp_chatbot_wildcard_support') != '' ? get_option('qlcd_wp_chatbot_wildcard_support') : 'FAQ'); ?>">
1793 </div>
1794 </div>
1795 </div>
1796 <div class="qc_menu_setup_area">
1797 <h2>Menu Sorting & Customization Area</h2>
1798 <p style="color:red">After making changes in the settings, please clear browser cache and cookies before reloading the page or open a new Incognito window (Ctrl+Shit+N in chrome).</p>
1799 <p>In this section you can control the UI of the menu.<br>
1800 To adjust the <b>Active Menu</b> ordering just drag it up or down. To add a menu item in <b>Active Menu</b> simply drag a menu item from <b>Available Menu</b> and drop it to <b>Active Menu</b> . To remove a menu item from <b>Active Menu</b> simple drag the menu item and drop it to <b>Available Menu</b>.</p>
1801 <br>
1802 <div class="qc_menu_area">
1803 <h4>Acitve Menu</h4>
1804 <div class="qc_menu_area_container" id="qc_menu_area">
1805 <?php
1806 if(get_option('qc_wpbot_menu_order')!=''):
1807 echo stripslashes(get_option('qc_wpbot_menu_order'));
1808 else:?>
1809 <?php if(get_option('disable_wp_chatbot_faq')==''): ?>
1810 <span class="qcld-chatbot-wildcard qc_draggable_item_remove" data-wildcart="support"><?php echo get_option('qlcd_wp_chatbot_wildcard_support'); ?></span>
1811 <?php endif; ?>
1812 <?php if(get_option('enable_wp_chatbot_messenger')=='1'): ?>
1813 <span class="qcld-chatbot-wildcard qc_draggable_item_remove" data-wildcart="messenger"><?php echo qcld_choose_random(unserialize(get_option('qlcd_wp_chatbot_messenger_label'))) ?></span>
1814 <?php endif; ?>
1815 <?php if(get_option('enable_wp_chatbot_whats')=='1'): ?>
1816 <span class="qcld-chatbot-wildcard qc_draggable_item_remove" data-wildcart="whatsapp"><?php echo qcld_choose_random(unserialize(get_option('qlcd_wp_chatbot_whats_label'))); ?></span>
1817 <?php endif; ?>
1818 <?php if(get_option('disable_wp_chatbot_feedback')==''): ?>
1819 <span class="qcld-chatbot-suggest-email qc_draggable_item_remove"><?php echo get_option('qlcd_wp_chatbot_support_email'); ?></span>
1820 <?php endif; ?>
1821 <?php if(get_option('disable_wp_chatbot_call_gen')==''): ?>
1822 <span class="qcld-chatbot-suggest-phone qc_draggable_item_remove" ><?php echo get_option('qlcd_wp_chatbot_support_phone'); ?></span>
1823 <?php endif; ?>
1824 <?php
1825 if(class_exists('Qcformbuilder_Forms_Admin')){
1826 global $wpdb;
1827
1828 $results = $wpdb->get_results("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type='primary'");
1829 if(!empty($results)){
1830 ?>
1831 <?php
1832 foreach($results as $result){
1833 $form = unserialize($result->config);
1834 ?>
1835 <span class="qcld-chatbot-wildcard qcld-chatbot-form qc_draggable_item_remove" data-form="<?php echo $form['ID']; ?>" ><?php echo $form['name']; ?></span>
1836 <?php
1837 }
1838 ?>
1839 <?php
1840 }
1841 }
1842 ?>
1843 <?php endif; ?>
1844 </div>
1845 </div>
1846 <div class="qc_menu_list_area">
1847 <h4>Available Menu</h4>
1848 <div class="qc_menu_list_container">
1849 <p>Predefined Intents</p>
1850 <ul>
1851 <li>
1852 <?php if(get_option('disable_wp_chatbot_faq')==''): ?>
1853 <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="support"><?php echo get_option('qlcd_wp_chatbot_wildcard_support'); ?></span>
1854 <?php endif; ?>
1855 </li>
1856 <li>
1857 <?php if(get_option('enable_wp_chatbot_messenger')=='1'): ?>
1858 <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="messenger"><?php echo qcld_choose_random(unserialize(get_option('qlcd_wp_chatbot_messenger_label'))) ?></span>
1859 <?php endif; ?>
1860 </li>
1861 <li>
1862 <?php if(get_option('enable_wp_chatbot_whats')=='1'): ?>
1863 <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="whatsapp"><?php echo qcld_choose_random(unserialize(get_option('qlcd_wp_chatbot_whats_label'))); ?></span>
1864 <?php endif; ?>
1865 </li>
1866 <li>
1867 <?php if(get_option('disable_wp_chatbot_feedback')==''): ?>
1868 <span class="qcld-chatbot-suggest-email qc_draggable_item"><?php echo get_option('qlcd_wp_chatbot_support_email'); ?></span>
1869 <?php endif; ?>
1870 </li>
1871 <li>
1872 <?php if(get_option('disable_wp_chatbot_call_gen')==''): ?>
1873 <span class="qcld-chatbot-suggest-phone qc_draggable_item" ><?php echo get_option('qlcd_wp_chatbot_support_phone'); ?></span>
1874 <?php endif; ?>
1875 </li>
1876 </ul>
1877 <?php
1878 if(class_exists('Qcformbuilder_Forms_Admin')){
1879 global $wpdb;
1880
1881 $results = $wpdb->get_results("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type='primary'");
1882 if(!empty($results)){
1883 ?>
1884 <p>Conversational Form</p>
1885 <ul>
1886 <?php
1887 foreach($results as $result){
1888 $form = unserialize($result->config);
1889 ?>
1890 <li><span class="qcld-chatbot-wildcard qcld-chatbot-form qc_draggable_item" data-form="<?php echo $form['ID']; ?>" ><?php echo $form['name']; ?></span></li>
1891 <?php
1892 }
1893 ?>
1894 </ul>
1895 <?php
1896 }
1897 }
1898 ?>
1899 </div>
1900 </div>
1901 </div>
1902 <input id="qc_wpbot_menu_order" type="hidden" name="qc_wpbot_menu_order" value='<?php echo stripslashes(get_option('qc_wpbot_menu_order')); ?>' />
1903 </div>
1904 </div>
1905 </div>
1906 </div>
1907 </section>
1908 <section id="section-flip-7">
1909 <div class="top-section">
1910 <div class="wp-chatbot-language-center-summmery">
1911 <p>
1912 <?php esc_html_e('DialogFlow as Artificial Intelligences Engine for wpwBot', 'wpchatbot'); ?>
1913 </p>
1914 </div>
1915 <div class="row">
1916 <div class="col-xs-12">
1917 <p class="wpqcld_chk_seft"> <a target="_blank" href="https://www.quantumcloud.com/custom-chatbot-services/"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL ?>/chatbot-custom-service.jpg" alt="" /></a> </p>
1918 </div>
1919 </div>
1920 <div class="row">
1921 <div class="col-xs-12">
1922 <h4 class="qc-opt-title"><?php echo esc_html__('Enable DialogFlow as AI Engine to Detect Intent', 'wpchatbot'); ?> </h4>
1923 <div class="cxsc-settings-blocks">
1924 <input value="1" id="enable_wp_chatbot_dailogflow" type="checkbox"
1925 name="enable_wp_chatbot_dailogflow" <?php echo(get_option('enable_wp_chatbot_dailogflow') == 1 ? 'checked' : ''); ?>>
1926 <label for="enable_wp_chatbot_dailogflow"><?php echo esc_html__('Enable DialogFlow AI Engine to process Natural Language commands from users.', 'wpchatbot'); ?> </label>
1927 </div>
1928 </div>
1929 <div class="col-xs-12"> <br>
1930 <p><?php echo esc_html__('Log in to DialogFlow Console from', 'wpchatbot'); ?> <a class="wpbot_df_instruction" href="<?php echo esc_url('https://dialogflow.com/'); ?>" target="_blank"><?php echo esc_html__('Here', 'wpchatbot'); ?></a> <?php echo esc_html__('with your gmail account.', 'wpchatbot'); ?> <a class="wpbot_df_instruction" href="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'download/wpwBot.zip'); ?>" download ><?php echo esc_html__('Download', 'wpchatbot'); ?></a> <?php echo esc_html__('the agent training data and import from DialogFlow->Settings->Export and Import tab. You can add your own intents in that agent but do not modify our following training intents which are', 'wpchatbot'); ?> <b>email, email subscription, faq, get email, get name, help, phone, reset, site search and start.</b> </p>
1931 </div>
1932 <div class="col-xs-12" id="wp-chatbot-dialflow-section">
1933 <h4 class="qc-opt-title"><?php echo esc_html__('DialogFlow API Version', 'wpchatbot'); ?></h4>
1934 <div class="form-group">
1935 <label class="radio-inline">
1936 <input id="wp-chatbot-df-api" type="radio"
1937 name="wp_chatbot_df_api"
1938 value="v2" checked>
1939 <?php echo esc_html__('Dialogflow API V2', 'wpchatbot'); ?> </label>
1940 </div>
1941 <div id="wp-chatbot-df-section-v2" style="display:block">
1942 <!-- Dialogflow V2 Configuration -->
1943
1944 <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')): ?>
1945 <div class="form-group"> <br>
1946 <h4 class="qc-opt-title" style="color:red"><?php echo esc_html__('For Interacting with Dialogflow V2 the Google Client Package is Required!', 'wpchatbot'); ?></h4>
1947 <p>Please click the download button below to download the Google Client package. The package will be downloaded inside your Wordpress's <b>/wp-content</b> folder. This package is around <b>10 MB</b> in zip file format and it will be about <b>49 MB</b> after unzipping. Please make sure that your server has enough space to store that package.</p>
1948 <div class="qcld-wpbot-gcdownload-area">
1949 <button class="btn btn-primary" id="qc_wpbot_gc_download" <?php echo (!is_writable(QCLD_wpCHATBOT_GC_ROOT)?'disabled':''); ?>>Download and Install the Google Client</button>
1950 <?php
1951 if(!is_writable(QCLD_wpCHATBOT_GC_ROOT)){
1952 echo '<span style="color:red;font-size: 12px;"><b>wp-content</b> folder is not writable.</span>';
1953 }
1954 ?>
1955 <br>
1956 <br>
1957 <p>Alternatively, If the download operation fails for some reason like folder permission or server timeout issue then you can manually upload the <u title="Google Client">GC</u> package by following some simple steps.</p>
1958 <p>1. Download GC package from: <a href="https://github.com/qcloud/gc/archive/master.zip" target="_blank">https://github.com/qcloud/gc/archive/master.zip</a></p>
1959 <p>2. Unzip the <b>wpbotgc.zip</b> inside to your computer.</p>
1960 <p>3. Create a folder with name <b>wpbot-dfv2-client</b> under <b>wp-content</b> into your server.</p>
1961 <p>4. Upload the upziped files and folders into <b>wpbot-dfv2-client</b> via FTP.</p>
1962 <div class="qcld_wpbot_download_statuses"> </div>
1963 </div>
1964 <br>
1965 </div>
1966 <?php else: ?>
1967 <div class="form-group">
1968 <h4 class="qc-opt-title" style="color:green"><?php echo esc_html__('Google Client Package is Installed on Your Website.', 'wpchatbot'); ?></h4>
1969 </div>
1970 <?php endif; ?>
1971 <div class="form-group">
1972 <h4 class="qc-opt-title" >Please follow along with this <a href="https://dev.quantumcloud.com/wpbot-pro/dialogflow-integration/" target="_blank">tutorial</a>. It will help you to create a project id, private key and integrate WPBot with Dialogflow: <a href="https://dev.quantumcloud.com/wpbot-pro/dialogflow-integration/" target="_blank">Click Here</a></h4>
1973 </div>
1974 <div class="form-group">
1975 <h4 class="qc-opt-title"><?php echo esc_html__('DialogFlow Project ID', 'wpchatbot'); ?></h4>
1976 <p>You can follow the <a href="https://www.youtube.com/watch?v=qY-EHFY2wH8" target="_blank">tutorial</a> to get the Project ID. </p>
1977 <input type="text" class="form-control qc-opt-dcs-font"
1978 name="qlcd_wp_chatbot_dialogflow_project_id"
1979 value="<?php echo(get_option('qlcd_wp_chatbot_dialogflow_project_id') != '' ? get_option('qlcd_wp_chatbot_dialogflow_project_id') : ''); ?>" placeholder="<?php echo esc_html__('DialogFlow Project ID', 'wpchatbot'); ?>">
1980 </div>
1981 <?php
1982
1983 $placeholderPrivatekey = '{
1984 "type": "service_account",
1985 "project_id": "PLACEYOUROWNID",
1986 "private_key_id": "31e300128..........c48",
1987 "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",
1988 "client_email": "dialogflow-evysjn@wpbotpro.iam.gserviceaccount.com",
1989 "client_id": "1026.....032997",
1990 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
1991 "token_uri": "https://oauth2.googleapis.com/token",
1992 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
1993 "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dialogflow-evysjn%40wpbotpro.iam.gserviceaccount.com"
1994 }';
1995
1996 ?>
1997 <div class="form-group">
1998 <h4 class="qc-opt-title"><?php echo esc_html__('Private Key', 'wpchatbot'); ?></h4>
1999 <p>Put your google service account's private key JSON string here. You can follow the <a href="https://www.youtube.com/watch?v=qY-EHFY2wH8" target="_blank">tutorial</a> to get private key JSON file. </p>
2000 <textarea class="form-control" rows="20" name="qlcd_wp_chatbot_dialogflow_project_key" placeholder='<?php echo $placeholderPrivatekey; ?>'><?php echo(get_option('qlcd_wp_chatbot_dialogflow_project_key') != '' ? get_option('qlcd_wp_chatbot_dialogflow_project_key') : ''); ?></textarea>
2001 </div>
2002
2003 <!-- End Dialogflow V2 Configuration -->
2004 </div>
2005 <div class="form-group">
2006 <h4 class="qc-opt-title"><?php echo esc_html__('Please Click the Button Below to Test Dialogflow Connection.', 'wpchatbot'); ?> </h4>
2007 <p style="color:red"><?php echo esc_html__('*Save settings before pressing Test Dialogflow Connection', 'wpchatbot'); ?><br>
2008 <?php echo esc_html__('*You must have owner permission for the service account your are using in Dialogflow agent.', 'wpchatbot'); ?></p>
2009 <div class="cxsc-settings-blocks">
2010 <button class="btn btn-primary" id="qc_wpbot_df_status">Test Dialogflow Connection</button>
2011 <div class="qcwp_df_status"></div>
2012 </div>
2013 </div>
2014 <br>
2015 <div class="form-group">
2016 <h4 class="qc-opt-title">
2017 <?php esc_html_e('DialofFlow Default reply', 'wpchatbot'); ?>
2018 </h4>
2019 <input type="text" class="form-control qc-opt-dcs-font"
2020 name="qlcd_wp_chatbot_dialogflow_defualt_reply"
2021 value="<?php echo(get_option('qlcd_wp_chatbot_dialogflow_defualt_reply') != '' ? get_option('qlcd_wp_chatbot_dialogflow_defualt_reply') : 'Sorry, I did not understand you. You may browse'); ?>" placeholder="<?php esc_html_e('DialogFlow default reply', 'wpchatbot'); ?>">
2022 </div>
2023 <div class="form-group">
2024 <h4 class="qc-opt-title"><?php echo esc_html__('DialogFlow Agent Language (Ex: en)', 'wpchatbot'); ?></h4>
2025 <input type="text" class="form-control qc-opt-dcs-font"
2026 name="qlcd_wp_chatbot_dialogflow_agent_language"
2027 value="<?php echo (get_option('qlcd_wp_chatbot_dialogflow_agent_language') != '' ? get_option('qlcd_wp_chatbot_dialogflow_agent_language') : 'en'); ?>" placeholder="<?php echo esc_html__('DialogFlow Agent Language', 'wpchatbot'); ?>">
2028 </div>
2029 </div>
2030 </div>
2031 </div>
2032 </section>
2033 <!--<section id="section-flip-10">
2034 <div class="wp-chatbot-language-center-summmery">
2035 <p><?php esc_html_e('Enable the Mobile App feature ONLY if you bought ', 'wpchatbot'); ?> <a target="_blank" href="https://www.quantumcloud.com/products/wpcommerce-chatbot-wpwbot/#app"><?php esc_html_e(' the Mobile App Addon.', 'wpchatbot'); ?></a>
2036 </div>
2037 <div class="top-section">
2038 <div class="row">
2039 <div class="col-xs-12">
2040 <h4 class="qc-opt-title"><?php esc_html_e('Mobile App Pages', 'wpchatbot'); ?> </h4>
2041 <div class="cxsc-settings-blocks">
2042 <input value="1" id="wp_chatbot_app_pages" type="checkbox"
2043 name="wp_chatbot_app_pages" <?php echo(get_option('wp_chatbot_app_pages') == 1 ? 'checked' : ''); ?>>
2044 <label for="wp_chatbot_app_pages"><?php esc_html_e('Create pages for WpBot Mobile App', 'wpchatbot'); ?> </label>
2045 </div>
2046 <br>
2047 <p class="qc-opt-title-font"><?php esc_html_e('Following pages will be created to use in', 'wpchatbot'); ?> <strong> <?php esc_html_e('WpBot', 'wpchatbot'); ?> </strong> <?php esc_html_e(' Android or IOS Mobile App', 'wpchatbot'); ?>.</p>
2048 <ol>
2049 <li><?php esc_html_e('WpBot Mobile App', 'wpchatbot'); ?></li>
2050 <li><?php esc_html_e('WpBot App Checkout', 'wpchatbot'); ?></li>
2051 <li><?php esc_html_e('WpBot App Order Thank You', 'wpchatbot'); ?></li>
2052 </ol>
2053 <p class="qc-opt-title-font"><?php esc_html_e('Follow the', 'wpchatbot'); ?> <strong> <?php esc_html_e('Documentation', 'wpchatbot'); ?> </strong> <?php esc_html_e('to build & publish a Mobile Application (Android or IOS ) for your store using any of', 'wpchatbot'); ?> </p>
2054 <ol>
2055 <li><?php esc_html_e('WpBot Ionic FrameWork package', 'wpchatbot'); ?></li>
2056 <li><?php esc_html_e('WpBot PhoneGap package', 'wpchatbot'); ?></li>
2057 </ol>
2058 </div>
2059 </div>
2060 </div>
2061
2062 </section>-->
2063
2064
2065 </div>
2066 <!-- /content -->
2067 </div>
2068 <!-- /wp-chatbot-tabs -->
2069 <footer class="wp-chatbot-admin-footer">
2070 <div class="row">
2071 <div class="text-left col-sm-3 col-sm-offset-3">
2072 <input type="button" class="btn btn-warning submit-button"
2073 id="qcld-wp-chatbot-reset-option"
2074 value="<?php esc_html_e('Reset all options to Default', 'wpchatbot'); ?>"/>
2075 </div>
2076 <div class="text-right col-sm-6">
2077 <input type="submit" class="btn btn-primary submit-button" name="submit"
2078 id="submit" value="<?php esc_html_e('Save Settings', 'wpchatbot'); ?>"/>
2079 </div>
2080 </div>
2081 <!-- row-->
2082 </footer>
2083 </section>
2084 </div>
2085 <?php wp_nonce_field('wp_chatbot'); ?>
2086 </form>
2087 <script>
2088
2089 </script>