PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, AI Services / 3.9.0
WPBot – AI ChatBot for Live Support, Lead Generation, AI Services v3.9.0
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.9.0, at admin_ui.php

2,090 lines 153.1 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
574 foreach ($post_types as $post_type) {
575 ?>
576 <li>
577 <input
578 id="wp_chatbot_exclude_post_<?php echo $post_type->name; ?>"
579 type="checkbox"
580 name="wp_chatbot_exclude_post_list[]"
581 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) {
582 echo 'checked';
583 } ?> >
584 <label
585 for="wp_chatbot_exclude_post_<?php echo $post_type->name; ?>"> <?php echo $post_type->name; ?></label>
586 </li>
587 <?php } ?>
588 </ul>
589 </div>
590 </div>
591 </div>
592 </div>
593 <!-- cxsc-settings-blocks-->
594 </div>
595 <!-- col-xs-12-->
596 </div>
597 <!-- row-->
598
599 </div>
600 <!-- top-section-->
601 </section>
602 <section id="section-flip-3">
603 <ul class="nav nav-tabs">
604 <li class="active"><a data-toggle="tab" href="#wp-chatbot-icon-theme-settings"><?php echo esc_html__('Icons & Themes', 'wpchatbot'); ?></a></li>
605 <li><a data-toggle="tab" href="#wp-chatbot-custom-color-options"><?php echo esc_html__('Custom Style Options', 'wpchatbot'); ?></a></li>
606 </ul>
607 <div class="tab-content">
608 <div id="wp-chatbot-icon-theme-settings" class="tab-pane fade in active">
609 <div class="top-section">
610 <div class="row">
611 <div class="col-xs-12">
612 <div class="row">
613 <div class="col-xs-12">
614 <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>
615 </div>
616 </div>
617 <h4 class="qc-opt-title">
618 <?php esc_html_e('WPBot Icon', 'wpchatbot'); ?>
619 </h4>
620 <div class="cxsc-settings-blocks">
621 <ul class="radio-list">
622 <!--<li><label for="wp_chatbot_icon_0" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-0.png"
623 alt=""> <input id="wp_chatbot_icon_0" type="radio"
624 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-0.png' ? 'checked' : ''); ?>
625 value="icon-0.png">
626 <?php esc_html_e('Icon - 0', 'wpchatbot'); ?></label>
627 </li>
628 <li><label for="wp_chatbot_icon_1" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-1.png"
629 alt=""> <input id="wp_chatbot_icon_1" type="radio"
630 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-1.png' ? 'checked' : ''); ?>
631 value="icon-1.png">
632 <?php esc_html_e('Icon - 1', 'wpchatbot'); ?></label>
633 </li>-->
634 <li>
635 <label for="wp_chatbot_icon_2" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-2.png"
636 alt="">
637 <input id="wp_chatbot_icon_2" type="radio"
638 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-2.png' ? 'checked' : ''); ?>
639 value="icon-2.png">
640 <?php esc_html_e('Icon - 2', 'wpchatbot'); ?>
641 </label>
642 </li>
643 <li>
644 <label for="wp_chatbot_icon_3" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-3.png"
645 alt="">
646 <input id="wp_chatbot_icon_3" type="radio"
647 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-3.png' ? 'checked' : ''); ?>
648 value="icon-3.png">
649 <?php esc_html_e('Icon - 3', 'wpchatbot'); ?>
650 </label>
651 </li>
652 <li>
653 <label for="wp_chatbot_icon_4" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-4.png"
654 alt="">
655 <input id="wp_chatbot_icon_4" type="radio"
656 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-4.png' ? 'checked' : ''); ?>
657 value="icon-4.png">
658 <?php esc_html_e('Icon - 4', 'wpchatbot'); ?>
659 </label>
660 </li>
661 <li>
662 <label for="wp_chatbot_icon_5" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-5.png"
663 alt="">
664 <input id="wp_chatbot_icon_5" type="radio"
665 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-5.png' ? 'checked' : ''); ?>
666 value="icon-5.png">
667 <?php esc_html_e('Icon - 5', 'wpchatbot'); ?>
668 </label>
669 </li>
670 <li>
671 <label for="wp_chatbot_icon_6" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-6.png"
672 alt="">
673 <input id="wp_chatbot_icon_6" type="radio"
674 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-6.png' ? 'checked' : ''); ?>
675 value="icon-6.png">
676 <?php esc_html_e('Icon - 6', 'wpchatbot'); ?>
677 </label>
678 </li>
679 <li>
680 <label for="wp_chatbot_icon_7" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-7.png"
681 alt="">
682 <input id="wp_chatbot_icon_7" type="radio"
683 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-7.png' ? 'checked' : ''); ?>
684 value="icon-7.png">
685 <?php esc_html_e('Icon - 7', 'wpchatbot'); ?>
686 </label>
687 </li>
688 <li>
689 <label for="wp_chatbot_icon_8" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-8.png"
690 alt="">
691 <input id="wp_chatbot_icon_8" type="radio"
692 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-8.png' ? 'checked' : ''); ?>
693 value="icon-8.png">
694 <?php esc_html_e('Icon - 8', 'wpchatbot'); ?>
695 </label>
696 </li>
697 <li>
698 <label for="wp_chatbot_icon_9" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-9.png"
699 alt="">
700 <input id="wp_chatbot_icon_9" type="radio"
701 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-9.png' ? 'checked' : ''); ?>
702 value="icon-9.png">
703 <?php esc_html_e('Icon - 9', 'wpchatbot'); ?>
704 </label>
705 </li>
706 <li>
707 <label for="wp_chatbot_icon_10" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-10.png"
708 alt="">
709 <input id="wp_chatbot_icon_10" type="radio"
710 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-10.png' ? 'checked' : ''); ?>
711 value="icon-10.png">
712 <?php esc_html_e('Icon - 10', 'wpchatbot'); ?>
713 </label>
714 </li>
715 <li>
716 <label for="wp_chatbot_icon_11" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-11.png"
717 alt="">
718 <input id="wp_chatbot_icon_11" type="radio"
719 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-11.png' ? 'checked' : ''); ?>
720 value="icon-11.png">
721 <?php esc_html_e('Icon - 11', 'wpchatbot'); ?>
722 </label>
723 </li>
724 <li>
725 <label for="wp_chatbot_icon_12" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-12.png"
726 alt="">
727 <input id="wp_chatbot_icon_12" type="radio"
728 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-12.png' ? 'checked' : ''); ?>
729 value="icon-12.png">
730 <?php esc_html_e('Icon - 12', 'wpchatbot'); ?>
731 </label>
732 </li>
733 <li>
734 <label for="wp_chatbot_icon_13" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-13.png"
735 alt="">
736 <input id="wp_chatbot_icon_13" type="radio"
737 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-13.png' ? 'checked' : ''); ?>
738 value="icon-13.png">
739 <?php esc_html_e('Icon - 13', 'wpchatbot'); ?>
740 </label>
741 </li>
742 <li>
743 <?php
744 if (get_option('wp_chatbot_custom_icon_path') != "") {
745 $wp_chatbot_custom_icon_path = get_option('wp_chatbot_custom_icon_path');
746 } else {
747 $wp_chatbot_custom_icon_path = QCLD_wpCHATBOT_IMG_URL . 'custom.png';
748 }
749 ?>
750 <label for="wp_chatbot_custom_icon_input" class="qc-opt-dcs-font"> <img id="wp_chatbot_custom_icon_src"
751 src="<?php echo $wp_chatbot_custom_icon_path; ?>" alt="">
752 <input id="wp_chatbot_custom_icon_input" type="radio"
753 name="wp_chatbot_icon"
754 value="custom.png" <?php echo(get_option('wp_chatbot_icon') == 'custom.png' ? 'checked' : ''); ?>>
755 <?php esc_html_e('Custom Icon', 'wpchatbot'); ?>
756 </label>
757 </li>
758 </ul>
759 </div>
760 <!-- cxsc-settings-blocks-->
761 <br>
762 <div class="cxsc-settings-blocks">
763 <div class="form-group">
764 <h4 class="qc-opt-title">
765 <?php _e('WPBot Icon Background Color.', 'woochatbot'); ?>
766 </h4>
767 <input id="wp_chatbot_floatingiconbg_color" type="text"
768 name="wp_chatbot_floatingiconbg_color"
769 value="<?php echo(get_option('wp_chatbot_floatingiconbg_color') != '' ? get_option('wp_chatbot_floatingiconbg_color') : '#fff'); ?>"/>
770 </div>
771 </div>
772 </div>
773 </div>
774 <div class="row">
775 <div class="col-xs-12">
776 <h4 class="qc-opt-title">
777 <?php esc_html_e(' Upload custom Icon ', 'wpchatbot'); ?>
778 </h4>
779 <div class="cxsc-settings-blocks">
780 <input type="hidden" name="wp_chatbot_custom_icon_path"
781 id="wp_chatbot_custom_icon_path"
782 value="<?php echo $wp_chatbot_custom_icon_path; ?>"/>
783 <button type="button" class="wp_chatbot_custom_icon_button button">
784 <?php esc_html_e('Upload Icon', 'wpchatbot'); ?>
785 </button>
786 </div>
787 </div>
788 </div>
789 </div>
790 <div class="top-section">
791 <div class="row">
792 <div class="col-xs-12">
793 <h4 class="qc-opt-title">
794 <?php esc_html_e(' WPBot Agent Image', 'wpchatbot'); ?>
795 </h4>
796 <div class="cxsc-settings-blocks">
797 <ul class="radio-list">
798 <li>
799 <label for="wp_chatbot_agent_image_def" class="qc-opt-dcs-font"> <img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>icon-0.png"
800 alt="">
801 <input id="wp_chatbot_agent_image_def" type="radio"
802 name="wp_chatbot_agent_image" <?php echo(get_option('wp_chatbot_agent_image') == 'agent-0.png' ? 'checked' : ''); ?>
803 value="agent-0.png">
804 <?php esc_html_e('Default Agent', 'wpchatbot'); ?>
805 </label>
806 </li>
807 <li>
808 <?php
809 if (get_option('wp_chatbot_custom_agent_path') != "") {
810 $wp_chatbot_custom_agent_path = get_option('wp_chatbot_custom_agent_path');
811 } else {
812 $wp_chatbot_custom_agent_path = QCLD_wpCHATBOT_IMG_URL . 'custom-agent.png';
813 }
814 ?>
815 <label for="wp_chatbot_agent_image_custom" class="qc-opt-dcs-font"> <img id="wp_chatbot_custom_agent_src"
816 src="<?php echo esc_url($wp_chatbot_custom_agent_path); ?>"
817 alt="Agent">
818 <input type="radio" name="wp_chatbot_agent_image"
819 id="wp_chatbot_agent_image_custom"
820 value="custom-agent.png" <?php echo(get_option('wp_chatbot_agent_image') == 'custom-agent.png' ? 'checked' : ''); ?>>
821 <?php echo esc_html__('Custom Agent', 'wpchatbot'); ?></label>
822 </li>
823 </ul>
824 </div>
825 <!-- cxsc-settings-blocks-->
826 </div>
827 </div>
828 <div class="row">
829 <div class="col-xs-12">
830 <h4 class="qc-opt-title">
831 <?php esc_html_e('Custom Agent Icon', 'wpchatbot'); ?>
832 </h4>
833 <div class="cxsc-settings-blocks">
834 <input type="hidden" name="wp_chatbot_custom_agent_path"
835 id="wp_chatbot_custom_agent_path"
836 value="<?php echo $wp_chatbot_custom_agent_path; ?>"/>
837 <button type="button" class="wp_chatbot_custom_agent_button button">
838 <?php esc_html_e('Upload Agent Icon', 'wpchatbot'); ?>
839 </button>
840 </div>
841 </div>
842 </div>
843 </div>
844 <div id="top-section">
845 <div class="row">
846 <div class="col-sm-12">
847 <h4 class="qc-opt-title">
848 <?php esc_html_e('WPBot Themes', 'wpchatbot'); ?>
849 </h4>
850 </div>
851 </div>
852 <div class="row">
853 <div class="col-sm-3">
854 <label for="qcld_wb_chatbot_theme_0"> <img class="thumbnail theme_prev"
855 src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>templates/template-00.JPG"
856 alt="Theme Basic">
857 <input id="qcld_wb_chatbot_theme_0" type="radio"
858 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-00' ? 'checked' : ''); ?>
859 value="template-00">
860 <?php esc_html_e('Theme Basic', 'wpchatbot'); ?>
861 </label>
862 </div>
863 <div class="col-sm-3">
864 <label for="qcld_wb_chatbot_theme_1"> <img class="thumbnail theme_prev"
865 src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>templates/template-01.JPG"
866 alt="Theme Basic">
867 <input id="qcld_wb_chatbot_theme_1" type="radio"
868 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-01' ? 'checked' : ''); ?>
869 value="template-01">
870 <?php esc_html_e('Theme One', 'wpchatbot'); ?>
871 </label>
872 </div>
873 </div>
874 </div>
875 </div>
876 <!--<hr>
877 <div id="top-section">
878 <div class="row">
879 <div class="col-sm-12">
880 <h4 class="qc-opt-title"> <?php esc_html_e('Custom Backgroud', 'wpchatbot'); ?></h4>
881 <div class="cxsc-settings-blocks">
882 <input value="1" id="qcld_wb_chatbot_change_bg" type="checkbox"
883 name="qcld_wb_chatbot_change_bg" <?php echo(get_option('qcld_wb_chatbot_change_bg') == 1 ? 'checked' : ''); ?>>
884 <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>
885 </div>
886 </div>
887 </div>
888 <div class="row qcld-wp-chatbot-board-bg-container" <?php if (get_option('qcld_wb_chatbot_change_bg') != 1) {
889 echo 'style="display:none"';
890 } ?>>
891 <div class="col-xs-6">
892 <p class="wp-chatbot-settings-instruction"> <?php esc_html_e('Upload wpwBot message board background (Ideal image size 376px X 688px).', 'wpchatbot'); ?> </p>
893 <div class="cxsc-settings-blocks">
894 <?php
895 if (get_option('qcld_wb_chatbot_board_bg_path') != "") {
896 $qcld_wb_chatbot_board_bg_path = get_option('qcld_wb_chatbot_board_bg_path');
897 } else {
898 $qcld_wb_chatbot_board_bg_path = QCLD_wpCHATBOT_IMG_URL . 'background/background.png';
899 }
900 ?>
901 <input type="hidden" name="qcld_wb_chatbot_board_bg_path"
902 id="qcld_wb_chatbot_board_bg_path"
903 value="<?php echo $qcld_wb_chatbot_board_bg_path; ?>"/>
904 <button type="button" class="qcld_wb_chatbot_board_bg_button button"><?php esc_html_e('Upload WpBot background.', 'wpchatbot'); ?></button>
905 </div>
906 </div>
907
908 <div class="col-xs-6">
909 <p class="wp-chatbot-settings-instruction"> <?php esc_html_e('Custom message board background', 'wpchatbot'); ?> </p>
910 <img id="qcld_wb_chatbot_board_bg_image" style="height:100%;width:100%"
911 src="<?php echo $qcld_wb_chatbot_board_bg_path; ?>"
912 alt="Custom Background">
913 </div>
914 </div>
915 </div>-->
916
917 <div id="wp-chatbot-custom-color-options" class="tab-pane fade">
918 <div class="top-section">
919 <div class="row">
920 <div class="col-xs-12">
921 <div class="cxsc-settings-blocks">
922 <div class="form-group">
923 <h4 class="qc-opt-title">
924 <?php _e('Bot Floating Icon Background Color.', 'woochatbot'); ?>
925 </h4>
926 <input id="wp_chatbot_floatingiconbg_color" type="text"
927 name="wp_chatbot_floatingiconbg_color"
928 value="<?php echo(get_option('wp_chatbot_floatingiconbg_color') != '' ? get_option('wp_chatbot_floatingiconbg_color') : '#fff'); ?>"/>
929 </div>
930 </div>
931 <h3 class="qc-opt-title">
932 <?php _e('Custom Style Options', 'woochatbot'); ?>
933 </h3>
934 <div class="cxsc-settings-blocks">
935 <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
936 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? 'checked' : ''); ?>>
937 <label for="enable_wp_chatbot_custom_color">
938 <?php _e('Enable Style Colors ', 'woochatbot'); ?>
939 </label>
940 </div>
941 <br>
942 <div class="cxsc-settings-blocks">
943 <div class="form-group">
944 <h4 class="qc-opt-title">
945 <?php _e('Text Color.', 'woochatbot'); ?>
946 </h4>
947 <input id="wp_chatbot_text_color" type="text"
948 name="wp_chatbot_text_color"
949 value="<?php echo(get_option('wp_chatbot_text_color') != '' ? get_option('wp_chatbot_text_color') : '#37424c'); ?>"/>
950 </div>
951 </div>
952 <div class="cxsc-settings-blocks">
953 <div class="form-group">
954 <h4 class="qc-opt-title">
955 <?php _e('Link Color.', 'woochatbot'); ?>
956 </h4>
957 <input id="wp_chatbot_link_color" type="text"
958 name="wp_chatbot_link_color"
959 value="<?php echo(get_option('wp_chatbot_link_color') != '' ? get_option('wp_chatbot_link_color') : '#e2cc1f'); ?>"/>
960 </div>
961 </div>
962 <div class="cxsc-settings-blocks">
963 <div class="form-group">
964 <h4 class="qc-opt-title">
965 <?php _e('Link Hover Color.', 'woochatbot'); ?>
966 </h4>
967 <input id="wp_chatbot_link_hover_color" type="text"
968 name="wp_chatbot_link_hover_color"
969 value="<?php echo(get_option('wp_chatbot_link_hover_color') != '' ? get_option('wp_chatbot_link_hover_color') : '#734006'); ?>"/>
970 </div>
971 </div>
972 <div class="cxsc-settings-blocks">
973 <div class="form-group">
974 <h4 class="qc-opt-title">
975 <?php _e('Bot Message Background Color.', 'woochatbot'); ?>
976 </h4>
977 <input id="wp_chatbot_bot_msg_bg_color" type="text"
978 name="wp_chatbot_bot_msg_bg_color"
979 value="<?php echo(get_option('wp_chatbot_bot_msg_bg_color') != '' ? get_option('wp_chatbot_bot_msg_bg_color') : '#1f8ceb'); ?>"/>
980 </div>
981 </div>
982 <div class="cxsc-settings-blocks">
983 <div class="form-group">
984 <h4 class="qc-opt-title">
985 <?php _e('Bot Message Text Color.', 'woochatbot'); ?>
986 </h4>
987 <input id="wp_chatbot_bot_msg_text_color" type="text"
988 name="wp_chatbot_bot_msg_text_color"
989 value="<?php echo(get_option('wp_chatbot_bot_msg_text_color') != '' ? get_option('wp_chatbot_bot_msg_text_color') : '#ffffff'); ?>"/>
990 </div>
991 </div>
992 <div class="cxsc-settings-blocks">
993 <div class="form-group">
994 <h4 class="qc-opt-title">
995 <?php _e('User Message Background Color.', 'woochatbot'); ?>
996 </h4>
997 <input id="wp_chatbot_user_msg_bg_color" type="text"
998 name="wp_chatbot_user_msg_bg_color"
999 value="<?php echo(get_option('wp_chatbot_user_msg_bg_color') != '' ? get_option('wp_chatbot_user_msg_bg_color') : '#ffffff'); ?>"/>
1000 </div>
1001 </div>
1002 <div class="cxsc-settings-blocks">
1003 <div class="form-group">
1004 <h4 class="qc-opt-title">
1005 <?php _e('User Message Text Color.', 'woochatbot'); ?>
1006 </h4>
1007 <input id="wp_chatbot_user_msg_text_color" type="text"
1008 name="wp_chatbot_user_msg_text_color"
1009 value="<?php echo(get_option('wp_chatbot_user_msg_text_color') != '' ? get_option('wp_chatbot_user_msg_text_color') : '#000000'); ?>"/>
1010 </div>
1011 </div>
1012 <div class="cxsc-settings-blocks">
1013 <div class="form-group">
1014 <h4 class="qc-opt-title">
1015 <?php _e('Buttons Background Color.', 'woochatbot'); ?>
1016 </h4>
1017 <input id="wp_chatbot_buttons_bg_color" type="text"
1018 name="wp_chatbot_buttons_bg_color"
1019 value="<?php echo(get_option('wp_chatbot_buttons_bg_color') != '' ? get_option('wp_chatbot_buttons_bg_color') : '#1f8ceb'); ?>"/>
1020 </div>
1021 </div>
1022 <div class="cxsc-settings-blocks">
1023 <div class="form-group">
1024 <h4 class="qc-opt-title">
1025 <?php _e('Buttons Hover Background Color.', 'woochatbot'); ?>
1026 </h4>
1027 <input id="wp_chatbot_buttons_bg_color" type="text"
1028 name="wp_chatbot_buttons_bg_color_hover"
1029 value="<?php echo(get_option('wp_chatbot_buttons_bg_color_hover') != '' ? get_option('wp_chatbot_buttons_bg_color_hover') : '#1f8ceb'); ?>"/>
1030 </div>
1031 </div>
1032 <div class="cxsc-settings-blocks">
1033 <div class="form-group">
1034 <h4 class="qc-opt-title">
1035 <?php _e('Buttons Text Color.', 'woochatbot'); ?>
1036 </h4>
1037 <input id="wp_chatbot_buttons_text_color" type="text"
1038 name="wp_chatbot_buttons_text_color"
1039 value="<?php echo(get_option('wp_chatbot_buttons_text_color') != '' ? get_option('wp_chatbot_buttons_text_color') : '#ffffff'); ?>"/>
1040 </div>
1041 </div>
1042 <div class="cxsc-settings-blocks">
1043 <div class="form-group">
1044 <h4 class="qc-opt-title">
1045 <?php _e('Buttons Text Color Hover.', 'woochatbot'); ?>
1046 </h4>
1047 <input id="wp_chatbot_buttons_text_color" type="text"
1048 name="wp_chatbot_buttons_text_color_hover"
1049 value="<?php echo(get_option('wp_chatbot_buttons_text_color_hover') != '' ? get_option('wp_chatbot_buttons_text_color_hover') : '#ffffff'); ?>"/>
1050 </div>
1051 </div>
1052 <div class="cxsc-settings-blocks">
1053 <div class="form-group">
1054 <h4 class="qc-opt-title">
1055 <?php _e('Theme Primary Color', 'woochatbot'); ?>
1056 </h4>
1057 <input id="wp_chatbot_theme_primary_color" type="text"
1058 name="wp_chatbot_theme_primary_color"
1059 value="<?php echo(get_option('wp_chatbot_theme_primary_color') != '' ? get_option('wp_chatbot_theme_primary_color') : '#ffffff'); ?>"/>
1060 </div>
1061 </div>
1062 <div class="cxsc-settings-blocks">
1063 <div class="form-group">
1064 <h4 class="qc-opt-title">
1065 <?php _e('Theme Secondary Color', 'woochatbot'); ?>
1066 </h4>
1067 <input id="wp_chatbot_theme_secondary_color" type="text"
1068 name="wp_chatbot_theme_secondary_color"
1069 value="<?php echo(get_option('wp_chatbot_theme_secondary_color') != '' ? get_option('wp_chatbot_theme_secondary_color') : '#ffffff'); ?>"/>
1070 </div>
1071 </div>
1072 <div class="cxsc-settings-blocks">
1073 <div class="form-group">
1074 <h4 class="qc-opt-title">
1075 <?php _e('Font size', 'woochatbot'); ?>
1076 </h4>
1077 <input id="wp_chatbot_font_size" type="number"
1078 name="wp_chatbot_font_size"
1079 value="<?php echo(get_option('wp_chatbot_font_size') != '' ? get_option('wp_chatbot_font_size') : '16'); ?>"/>
1080 </div>
1081 </div>
1082 <div class="cxsc-settings-blocks">
1083 <div class="form-group">
1084 <h4 class="qc-opt-title">
1085 <?php
1086 _e('User message Font family ', 'woochatbot');
1087 $user_font = get_option('wp_chat_user_font_family') != '' ? get_option('wp_chat_user_font_family') : '';
1088 $user_font_family = str_replace("\\", "",$user_font);
1089 ?>
1090 </h4>
1091 <input id="wp_chatbot_user_font" type="text" name="wp_chatbot_user_font"
1092 value="<?php echo(get_option('wp_chatbot_user_font') != '' ? get_option('wp_chatbot_user_font') : '');?>">
1093 <input id="wp_chat_user_font_family" type="hidden"
1094 name="wp_chat_user_font_family"
1095 />
1096 </div>
1097 </div>
1098 <div class="cxsc-settings-blocks">
1099 <div class="form-group">
1100 <h4 class="qc-opt-title">
1101 <?php
1102 _e('Bot message Font family ', 'woochatbot');
1103 $bot_font = get_option('wp_chat_bot_font_family') != '' ? get_option('wp_chat_bot_font_family') : '';
1104 $bot_font_family = str_replace("\\", "",$bot_font);
1105 ?>
1106 </h4>
1107 <input id="wp_chatbot_bot_font" type="text" name="wp_chatbot_bot_font"
1108 value="<?php echo(get_option('wp_chatbot_bot_font') != '' ? get_option('wp_chatbot_bot_font') : '');?>">
1109 <input id="wp_chat_bot_font_family" type="hidden"
1110 name="wp_chat_bot_font_family"
1111 />
1112 </div>
1113 </div>
1114 <script>
1115 jQuery(function ($) {
1116 $('#wp_chat_user_font_family').val(JSON.stringify(<?php echo $user_font_family; ?>));
1117 $('#wp_chat_bot_font_family').val(JSON.stringify(<?php echo $bot_font_family; ?>));
1118 $('#wp_chatbot_user_font')
1119 .fontpicker()
1120 .on('change', function() {
1121 var tmp = this.value.split(':'),
1122 family = tmp[0],
1123 variant = tmp[1] || '400',
1124 weight = parseInt(variant,10),
1125 italic = /i$/.test(variant);
1126 var css = {
1127 fontFamily: "'" + family + "'",
1128 fontWeight: weight,
1129 fontStyle: italic ? 'italic' : 'normal'
1130 };
1131
1132 $('#wp_chat_user_font_family').val(JSON.stringify(css));
1133 });
1134 $('#wp_chatbot_bot_font')
1135 .fontpicker()
1136 .on('change', function() {
1137 var tmp = this.value.split(':'),
1138 family = tmp[0],
1139 variant = tmp[1] || '400',
1140 weight = parseInt(variant,10),
1141 italic = /i$/.test(variant);
1142
1143 // Set selected font on body
1144 var css = {
1145 fontFamily: "'" + family + "'",
1146 fontWeight: weight,
1147 fontStyle: italic ? 'italic' : 'normal'
1148 };
1149 $('#wp_chat_bot_font_family').val(JSON.stringify(css));
1150 });
1151 });
1152 </script>
1153 </div>
1154 </div>
1155 </div>
1156 </div>
1157 </div>
1158 </section>
1159 <section id="section-flip-4">
1160 <div class="row">
1161 <div class="col-xs-12"> </div>
1162 </div>
1163 <div class="top-section">
1164 <h4 class="qc-opt-title">
1165 <?php esc_html_e('Build FAQ Query and Answers', 'wpchatbot'); ?>
1166 </h4>
1167 <div class="block-inner ui-sortable" id="wp-chatbot-support-builder">
1168 <?php
1169 $support_quereis=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_query')));
1170 $support_ans=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_ans')));
1171 if (count($support_ans) >= 1) {
1172 //foreach (get_option('support_ans') as $support_ans){
1173 $query_ans_counter=0;
1174 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
1175 ?>
1176 <div class="row"> <span class="pull-right"> </span>
1177 <div class="col-xs-12">
1178 <button type="button"
1179 class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <i class="fa fa-times" aria-hidden="true"></i> </button>
1180 <span class="wp-chatbot-support-cross pull-right" > <i class="fa fa-crosshairs" aria-hidden="true"></i> </span>
1181 <div class="cxsc-settings-blocks">
1182 <p class="qc-opt-dcs-font">
1183 <?php esc_html_e('FAQ query ', 'wpchatbot'); ?>
1184 </p>
1185 <input type="text" class="form-control" name="support_query[]"
1186 placeholder="<?php esc_html_e('FAQ query ', 'wpchatbot'); ?>" value="<?php echo $query ?>">
1187 <br>
1188 <p class="qc-opt-dcs-font">
1189 <?php esc_html_e('FAQ answer', 'wpchatbot'); ?>
1190 </p>
1191 <?php wp_editor(html_entity_decode(stripcslashes($ans)), 'support_ans'.'_'.$query_ans_counter, array('textarea_name' =>
1192 'support_ans[]',
1193 'textarea_rows' => 20,
1194 'editor_height' => 100,
1195 'disabled' => 'disabled',
1196 'media_buttons' => false,
1197 'tinymce' => array(
1198 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1199 )); ?>
1200 </div>
1201 </div>
1202 </div>
1203 <?php
1204 $query_ans_counter++;
1205 }
1206 //}
1207 } else {
1208 ?>
1209 <div class="row">
1210 <div class="col-xs-12">
1211 <button type="button"
1212 class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <i class="fa fa-times" aria-hidden="true"></i> </button>
1213 <span class="wp-chatbot-support-cross pull-right" > <i class="fa fa-crosshairs" aria-hidden="true"></i> </span>
1214 <div class="cxsc-settings-blocks">
1215 <p class="qc-opt-dcs-font">
1216 <?php esc_html_e('Support query', 'wpchatbot'); ?>
1217 </p>
1218 <input type="text" class="form-control" name="support_query[]"
1219 placeholder="<?php esc_html_e('Support query ', 'wpchatbot'); ?>">
1220 <br>
1221 <p class="qc-opt-dcs-font"><strong>
1222 <?php esc_html_e('Support answer', 'wpchatbot'); ?>
1223 </strong></p>
1224 <?php wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
1225 'support_ans[]',
1226 'textarea_rows' => 20,
1227 'editor_height' => 100,
1228 'disabled' => 'disabled',
1229 'media_buttons' => false,
1230 'tinymce' => array(
1231 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1232 )); ?>
1233 </div>
1234 <br>
1235 </div>
1236 </div>
1237 <?php
1238 }
1239 ?>
1240 </div>
1241 <div class="row">
1242 <div class="col-sm-6 text-left"></div>
1243 <div class="col-sm-6 text-right">
1244 <button class="btn btn-success btn-sm" type="button"
1245 id="add-more-support-query"><i
1246 class="fa fa-plus" aria-hidden="true"></i>
1247 <?php esc_html_e('Add More Questions and Answers', 'wpchatbot'); ?>
1248 </button>
1249 </div>
1250 </div>
1251 </div>
1252 </section>
1253 <!--<section id="section-flip-4">
1254 <div class="top-section">
1255 <div class="notification-block-inner">
1256 <div class="row">
1257 <div class="col-xs-12">
1258 <div class="cxsc-settings-blocks">
1259 <?php $notification_interval = get_option('qlcd_wp_chatbot_notification_interval') != "" ? get_option('qlcd_wp_chatbot_notification_interval') : 5 ?>
1260 <h4 class="qc-opt-title"><?php esc_html_e('Interval between notifications (in Seconds).', 'wpchatbot'); ?></h4>
1261 <input type="text" class="form-control"
1262 name="qlcd_wp_chatbot_notification_interval"
1263 value="<?php echo $notification_interval ?>">
1264 </div>
1265 </div>
1266 </div>
1267
1268 <?php
1269 $notifications = $this->qcld_wb_chatbot_str_replace(unserialize(get_option('qlcd_wp_chatbot_notifications')));
1270 if (!empty($notifications)) {
1271 $chatbot_notif_counter=0;
1272 foreach ($notifications as $notification) {
1273 ?>
1274 <div class="row">
1275 <div class="col-xs-12">
1276 <button type="button"
1277 class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right">
1278 <i class="fa fa-times" aria-hidden="true"></i>
1279 </button>
1280 <div class="cxsc-settings-blocks">
1281 <?php wp_editor(html_entity_decode(stripcslashes($notification)), 'qlcd_wp_chatbot_notifications_'.$chatbot_notif_counter, array('textarea_name' =>
1282 'qlcd_wp_chatbot_notifications[]',
1283 'textarea_rows' => 20,
1284 'editor_height' => 100,
1285 'disabled' => 'disabled',
1286 'media_buttons' => false,
1287 'tinymce' => array(
1288 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1289 )); ?>
1290 </div>
1291 </div>
1292
1293 </div>
1294
1295 <?php
1296 $chatbot_notif_counter++;
1297 }
1298 //}
1299 } else {
1300 ?>
1301 <div class="row">
1302 <div class="col-xs-12">
1303 <button type="button"
1304 class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right">
1305 <i class="fa fa-times" aria-hidden="true"></i>
1306 </button>
1307 <div class="cxsc-settings-blocks">
1308 <?php wp_editor(html_entity_decode(stripcslashes('')), 'qlcd_wp_chatbot_notifications_0', array('textarea_name' =>
1309 'qlcd_wp_chatbot_notifications[]',
1310 'textarea_rows' => 20,
1311 'editor_height' => 100,
1312 'disabled' => 'disabled',
1313 'media_buttons' => false,
1314 'tinymce' => array(
1315 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1316 )); ?>
1317 </div>
1318 </div>
1319 </div>
1320 <?php
1321 }
1322 ?>
1323 </div>
1324 <div class="row">
1325 <div class="col-sm-6 text-left"></div>
1326 <div class="col-sm-6 text-right">
1327 <button class="btn btn-success btn-sm" type="button"
1328 id="add-more-notification-message">
1329 <i class="fa fa-plus" aria-hidden="true"></i> <?php esc_html_e('Add', 'wpchatbot'); ?>
1330 </button>
1331 </div>
1332 </div>
1333
1334 </div>
1335
1336 </section>-->
1337 <section id="section-flip-5">
1338 <div class="wp-chatbot-language-center-summmery"> </div>
1339 <ul class="nav nav-tabs">
1340 <li class="active"><a data-toggle="tab" href="#wp-chatbot-lng-general">
1341 <?php esc_html_e('General', 'wpchatbot'); ?>
1342 </a></li>
1343 <li><a data-toggle="tab" href="#wp-chatbot-lng-support">
1344 <?php esc_html_e('FAQ', 'wpchatbot'); ?>
1345 </a></li>
1346 <li><a data-toggle="tab" href="#wp-chatbot-lng-reserve-keyword">
1347 <?php esc_html_e('ChatBot Keywords', 'wpchatbot'); ?>
1348 </a></li>
1349 </ul>
1350 <div class="tab-content">
1351 <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
1352 <div class="top-section">
1353 <div class="row">
1354 <div class="col-xs-12" id="wp-chatbot-language-section">
1355 <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>
1356 <p>You could use &lt;br&gt; tag for line break.</p>
1357 <div class="form-group">
1358 <h4 class="qc-opt-title">
1359 <?php esc_html_e('Your Company or Website Name', 'wpchatbot'); ?>
1360 </h4>
1361 <input type="text" class="form-control qc-opt-dcs-font"
1362 name="qlcd_wp_chatbot_host"
1363 value="<?php echo(get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store'); ?>">
1364 </div>
1365 <div class="form-group">
1366 <h4 class="qc-opt-title">
1367 <?php esc_html_e('Agent name', 'wpchatbot'); ?>
1368 </h4>
1369 <input type="text" class="form-control qc-opt-dcs-font"
1370 name="qlcd_wp_chatbot_agent"
1371 value="<?php echo(get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie'); ?>">
1372 </div>
1373 <div class="form-group">
1374 <h4 class="qc-opt-title">
1375 <?php esc_html_e('User demo name', 'wpchatbot'); ?>
1376 </h4>
1377 <input type="text" class="form-control qc-opt-dcs-font"
1378 name="qlcd_wp_chatbot_shopper_demo_name"
1379 value="<?php echo(get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo'); ?>">
1380 </div>
1381 <div class="form-group">
1382 <h4 class="qc-opt-title">
1383 <?php esc_html_e('YES', 'wpchatbot'); ?>
1384 </h4>
1385 <input type="text" class="form-control qc-opt-dcs-font"
1386 name="qlcd_wp_chatbot_yes"
1387 value="<?php echo(get_option('qlcd_wp_chatbot_yes') != '' ? get_option('qlcd_wp_chatbot_yes') : 'YES'); ?>">
1388 </div>
1389 <div class="form-group">
1390 <h4 class="qc-opt-title">
1391 <?php esc_html_e('NO', 'wpchatbot'); ?>
1392 </h4>
1393 <input type="text" class="form-control qc-opt-dcs-font"
1394 name="qlcd_wp_chatbot_no"
1395 value="<?php echo(get_option('qlcd_wp_chatbot_no') != '' ? get_option('qlcd_wp_chatbot_no') : 'NO'); ?>">
1396 </div>
1397 <div class="form-group">
1398 <h4 class="qc-opt-title">
1399 <?php esc_html_e('OR', 'wpchatbot'); ?>
1400 </h4>
1401 <input type="text" class="form-control qc-opt-dcs-font"
1402 name="qlcd_wp_chatbot_or"
1403 value="<?php echo(get_option('qlcd_wp_chatbot_or') != '' ? get_option('qlcd_wp_chatbot_or') : 'OR'); ?>">
1404 </div>
1405 <div class="form-group">
1406 <h4 class="qc-opt-title">
1407 <?php esc_html_e('Sorry', 'wpchatbot'); ?>
1408 </h4>
1409 <input type="text" class="form-control qc-opt-dcs-font"
1410 name="qlcd_wp_chatbot_sorry"
1411 value="<?php echo(get_option('qlcd_wp_chatbot_sorry') != '' ? get_option('qlcd_wp_chatbot_sorry') : 'Sorry'); ?>">
1412 </div>
1413 <div class="form-group">
1414 <?php
1415 $agent_join_options = unserialize(get_option('qlcd_wp_chatbot_agent_join'));
1416 $agent_join_option = 'qlcd_wp_chatbot_agent_join';
1417 $agent_join_text = __('has joined the conversation', 'wpchatbot');
1418 $this->qcld_wb_chatbot_dynamic_multi_option($agent_join_options, $agent_join_option, $agent_join_text);
1419 ?>
1420 </div>
1421 </div>
1422 <!--col-xs-12-->
1423 <div class="col-xs-12" id="wp-chatbot-language-section">
1424 <h4 class="text-success">
1425 <?php esc_html_e(' Message setting for Greetings: ', 'wpchatbot'); ?>
1426 </h4>
1427 <div class="form-group">
1428 <?php
1429 $welcome_to_options = unserialize(get_option('qlcd_wp_chatbot_welcome'));
1430 $welcome_to_option = 'qlcd_wp_chatbot_welcome';
1431 $welcome_to_text =__('Welcome to', 'wpchatbot');
1432 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_to_options, $welcome_to_option, $welcome_to_text);
1433 ?>
1434 </div>
1435 <div class="form-group">
1436 <?php
1437 $welcome_back_options = unserialize(get_option('qlcd_wp_chatbot_welcome_back'));
1438 $welcome_back_option = 'qlcd_wp_chatbot_welcome_back';
1439 $welcome_back_text = __('Welcome back', 'wpchatbot');
1440 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_back_options, $welcome_back_option, $welcome_back_text);
1441 ?>
1442 </div>
1443 <div class="form-group">
1444 <?php
1445 $back_to_start_options = unserialize(get_option('qlcd_wp_chatbot_back_to_start'));
1446 $back_to_start_option = 'qlcd_wp_chatbot_back_to_start';
1447 $back_to_start_text = __('Back to Start', 'wpchatbot');
1448 $this->qcld_wb_chatbot_dynamic_multi_option($back_to_start_options, $back_to_start_option, $back_to_start_text);
1449 ?>
1450 </div>
1451 <div class="form-group">
1452 <?php
1453 $hi_there_options = unserialize(get_option('qlcd_wp_chatbot_hi_there'));
1454 $hi_there_option = 'qlcd_wp_chatbot_hi_there';
1455 $hi_there_text = __('Hi There!', 'wpchatbot');
1456 $this->qcld_wb_chatbot_dynamic_multi_option($hi_there_options, $hi_there_option, $hi_there_text);
1457 ?>
1458 </div>
1459 <div class="form-group">
1460 <?php
1461 $asking_name_options = unserialize(get_option('qlcd_wp_chatbot_asking_name'));
1462 $asking_name_option = 'qlcd_wp_chatbot_asking_name';
1463 $asking_name_text = __('May I know your name?', 'wpchatbot');
1464 $this->qcld_wb_chatbot_dynamic_multi_option($asking_name_options, $asking_name_option, $asking_name_text);
1465 ?>
1466 </div>
1467 <div class="form-group">
1468 <?php
1469 $i_am_options = unserialize(get_option('qlcd_wp_chatbot_i_am'));
1470 $i_am_option = 'qlcd_wp_chatbot_i_am';
1471 $i_am_text = __('I am', 'wpchatbot');
1472 $this->qcld_wb_chatbot_dynamic_multi_option($i_am_options, $i_am_option, $i_am_text);
1473 ?>
1474 </div>
1475 <div class="form-group">
1476 <?php
1477 $name_greeting_options = unserialize(get_option('qlcd_wp_chatbot_name_greeting'));
1478 $name_greeting_option = 'qlcd_wp_chatbot_name_greeting';
1479 $name_greeting_text = __('Nice to meet you', 'wpchatbot');
1480 $this->qcld_wb_chatbot_dynamic_multi_option($name_greeting_options, $name_greeting_option, $name_greeting_text);
1481 ?>
1482 </div>
1483 <div class="form-group">
1484 <?php
1485 $wildcard_msg_options = unserialize(get_option('qlcd_wp_chatbot_wildcard_msg'));
1486 $wildcard_msg_option = 'qlcd_wp_chatbot_wildcard_msg';
1487 $wildcard_msg_text = __('I am here to find what you need. What are you looking for?', 'wpchatbot');
1488 $this->qcld_wb_chatbot_dynamic_multi_option($wildcard_msg_options, $wildcard_msg_option, $wildcard_msg_text);
1489 ?>
1490 </div>
1491 <div class="form-group">
1492 <?php
1493 $empty_filter_msgs = unserialize(get_option('qlcd_wp_chatbot_empty_filter_msg'));
1494 $empty_filter_msg = 'qlcd_wp_chatbot_empty_filter_msg';
1495 $empty_filter_msg_text = __('Sorry, I did not understand that', 'wpchatbot');
1496 $this->qcld_wb_chatbot_dynamic_multi_option($empty_filter_msgs, $empty_filter_msg, $empty_filter_msg_text);
1497 ?>
1498 </div>
1499 <div class="form-group">
1500 <?php
1501 $qlcd_wp_chatbot_did_you_mean = unserialize(get_option('qlcd_wp_chatbot_did_you_mean'));
1502 $qlcd_wp_chatbot_did_you_means = 'qlcd_wp_chatbot_did_you_mean';
1503 $wp_chatbot_no_result_text = esc_html__('Did you mean?', 'wpchatbot');
1504 $this->qcld_wb_chatbot_dynamic_multi_option($qlcd_wp_chatbot_did_you_mean, $qlcd_wp_chatbot_did_you_means, $wp_chatbot_no_result_text);
1505 ?>
1506 </div>
1507 <h4 class="text-success">
1508 <?php esc_html_e('Message setting for Editor Box ', 'wpchatbot'); ?>
1509 </h4>
1510 <div class="form-group">
1511 <?php
1512 $is_typing_options = unserialize(get_option('qlcd_wp_chatbot_is_typing'));
1513 $is_typing_option = 'qlcd_wp_chatbot_is_typing';
1514 $is_typing_text = __('is typing...', 'wpchatbot');
1515 $this->qcld_wb_chatbot_dynamic_multi_option($is_typing_options, $is_typing_option, $is_typing_text);
1516 ?>
1517 </div>
1518 <div class="form-group">
1519 <?php
1520 $send_a_msg_options = unserialize(get_option('qlcd_wp_chatbot_send_a_msg'));
1521 $send_a_msg_option = 'qlcd_wp_chatbot_send_a_msg';
1522 $send_a_msg_text =__('Send a message', 'wpchatbot');
1523 $this->qcld_wb_chatbot_dynamic_multi_option($send_a_msg_options, $send_a_msg_option, $send_a_msg_text);
1524 ?>
1525 </div>
1526 <div class="form-group">
1527 <?php
1528 $choose_option_options = unserialize(get_option('qlcd_wp_chatbot_choose_option'));
1529 $choose_option_option = 'qlcd_wp_chatbot_choose_option';
1530 $choose_option_text = __('Choose an option', 'wpchatbot');
1531 $this->qcld_wb_chatbot_dynamic_multi_option($choose_option_options, $choose_option_option, $choose_option_text);
1532 ?>
1533 </div>
1534 <div class="form-group">
1535 <?php
1536 $asking_email_options = unserialize(get_option('qlcd_wp_chatbot_asking_email'));
1537 $asking_email_option = 'qlcd_wp_chatbot_asking_email';
1538 $asking_email_text = __('Please provide your email address', 'wpchatbot');
1539 $this->qcld_wb_chatbot_dynamic_multi_option($asking_email_options, $asking_email_option, $asking_email_text);
1540 ?>
1541 </div>
1542 <div class="form-group">
1543 <?php
1544 $invalid_email_options = unserialize(get_option('qlcd_wp_chatbot_invalid_email'));
1545 $invalid_email_option = 'qlcd_wp_chatbot_invalid_email';
1546 $invalid_email_text = __('Sorry, Email address is not valid! Please provide a valid email.', 'wpchatbot');
1547 $this->qcld_wb_chatbot_dynamic_multi_option($invalid_email_options, $invalid_email_option, $invalid_email_text);
1548 ?>
1549 </div>
1550 <div class="form-group">
1551 <?php
1552 $asking_msg_options = unserialize(get_option('qlcd_wp_chatbot_asking_msg'));
1553 $asking_msg_option = 'qlcd_wp_chatbot_asking_msg';
1554 $asking_msg_text = __('Thank you for email address. Please write your message now.', 'wpchatbot');
1555 $this->qcld_wb_chatbot_dynamic_multi_option($asking_msg_options, $asking_msg_option, $asking_msg_text);
1556 ?>
1557 </div>
1558 <div class="form-group">
1559 <h4 class="qc-opt-title">
1560 <?php esc_html_e('WPBot Support Mail Subject', 'wpchatbot'); ?>
1561 </h4>
1562 <input type="text" class="form-control qc-opt-dcs-font"
1563 name="qlcd_wp_chatbot_email_sub"
1564 value="<?php echo(get_option('qlcd_wp_chatbot_email_sub') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_email_sub')) : 'Support Email Subject'); ?>">
1565 </div>
1566 <div class="form-group">
1567 <?php
1568 $support_option_again_options = unserialize(get_option('qlcd_wp_chatbot_support_option_again'));
1569 $support_option_again_option = 'qlcd_wp_chatbot_support_option_again';
1570 $support_option_again_text = __('You may choose option from below.', 'wpchatbot');
1571 $this->qcld_wb_chatbot_dynamic_multi_option($support_option_again_options, $support_option_again_option, $support_option_again_text);
1572 ?>
1573 </div>
1574 <div class="form-group">
1575 <h4 class="qc-opt-title">
1576 <?php esc_html_e('Your email was sent successfully.Thanks!', 'wpchatbot'); ?>
1577 </h4>
1578 <input type="text" class="form-control qc-opt-dcs-font"
1579 name="qlcd_wp_chatbot_email_sent"
1580 value="<?php echo(get_option('qlcd_wp_chatbot_email_sent') != '' ? get_option('qlcd_wp_chatbot_email_sent') : 'Your email was sent successfully.Thanks!'); ?>">
1581 </div>
1582 <div class="form-group">
1583 <h4 class="qc-opt-title">
1584 <?php esc_html_e('Sorry! I could not send your mail! Please contact the webmaster.', 'wpchatbot'); ?>
1585 </h4>
1586 <input type="text" class="form-control qc-opt-dcs-font"
1587 name="qlcd_wp_chatbot_email_fail"
1588 value="<?php echo(get_option('qlcd_wp_chatbot_email_fail') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_email_fail')) : 'Sorry! fail to send email'); ?>">
1589 </div>
1590 <div class="form-group">
1591 <?php
1592 $asking_phone_options = unserialize(get_option('qlcd_wp_chatbot_asking_phone'));
1593 $asking_phone_option = 'qlcd_wp_chatbot_asking_phone';
1594 $asking_phone_text = __('Please provide your Phone number', 'wpchatbot');
1595 $this->qcld_wb_chatbot_dynamic_multi_option($asking_phone_options, $asking_phone_option, $asking_phone_text);
1596 ?>
1597 </div>
1598 <div class="form-group">
1599 <?php
1600 $thanks_phone_options = unserialize(get_option('qlcd_wp_chatbot_thank_for_phone'));
1601 $thanks_phone_option = 'qlcd_wp_chatbot_thank_for_phone';
1602 $thanks_phone_text = __('Thank you for Phone number', 'wpchatbot');
1603 $this->qcld_wb_chatbot_dynamic_multi_option($thanks_phone_options, $thanks_phone_option, $thanks_phone_text);
1604 ?>
1605 </div>
1606 <div class="form-group">
1607 <h4 class="qc-opt-title">
1608 <?php esc_html_e('Thanks for your phone number. We will call you ASAP!', 'wpchatbot'); ?>
1609 </h4>
1610 <input type="text" class="form-control qc-opt-dcs-font"
1611 name="qlcd_wp_chatbot_phone_sent"
1612 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!'); ?>">
1613 </div>
1614 <div class="form-group">
1615 <h4 class="qc-opt-title">
1616 <?php esc_html_e('Sorry! I could not collect phone number! Please contact the webmaster.', 'wpchatbot'); ?>
1617 </h4>
1618 <input type="text" class="form-control qc-opt-dcs-font"
1619 name="qlcd_wp_chatbot_phone_fail"
1620 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!'); ?>">
1621 </div>
1622 </div>
1623 </div>
1624 </div>
1625 </div>
1626 <div id="wp-chatbot-lng-support" class="tab-pane fade">
1627 <div class="top-section">
1628 <div class="row">
1629 <div class="col-xs-12" id="wp-chatbot-language-section">
1630 <div class="form-group">
1631 <?php
1632 $support_welcome_options = unserialize(get_option('qlcd_wp_chatbot_support_welcome'));
1633 $support_welcome_option = 'qlcd_wp_chatbot_support_welcome';
1634 $support_welcome_text = __('Welcome to FAQ Section', 'wpchatbot');
1635 $this->qcld_wb_chatbot_dynamic_multi_option($support_welcome_options, $support_welcome_option, $support_welcome_text);
1636 ?>
1637 </div>
1638
1639 <!--<div class="form-group">
1640 <?php
1641 $feedback_label_options = unserialize(get_option('qlcd_wp_chatbot_feedback_label'));
1642 $feedback_label_option = 'qlcd_wp_chatbot_feedback_label';
1643 $feedback_label_text = __('Send Feedback!', 'wpchatbot');
1644 $this->qcld_wb_chatbot_dynamic_multi_option($feedback_label_options, $feedback_label_option, $feedback_label_text);
1645 ?>
1646 </div>-->
1647
1648 </div>
1649 </div>
1650 </div>
1651 </div>
1652 <div id="wp-chatbot-lng-reserve-keyword" class="tab-pane fade">
1653 <div class="top-section">
1654 <div class="row">
1655 <div class="col-xs-12" id="wp-chatbot-language-section">
1656 <div class="form-group">
1657 <h4 class="qc-opt-title">
1658 <?php esc_html_e('Start Keyword', 'wpchatbot'); ?>
1659 </h4>
1660 <input type="text" class="form-control qc-opt-dcs-font"
1661 name="qlcd_wp_chatbot_sys_key_help"
1662 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_help') != '' ? get_option('qlcd_wp_chatbot_sys_key_help') : 'start'); ?>">
1663 </div>
1664 <div class="form-group">
1665 <h4 class="qc-opt-title"><strong>
1666 <?php esc_html_e('FAQ', 'wpchatbot'); ?>
1667 </strong>
1668 <?php esc_html_e('Keyword', 'wpchatbot'); ?>
1669 </h4>
1670 <input type="text" class="form-control qc-opt-dcs-font"
1671 name="qlcd_wp_chatbot_sys_key_support"
1672 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_support') != '' ? get_option('qlcd_wp_chatbot_sys_key_support') : 'faq'); ?>">
1673 </div>
1674 <div class="form-group">
1675 <h4 class="qc-opt-title"><strong>
1676 <?php esc_html_e('Converstion History Clear', 'wpchatbot'); ?>
1677 </strong>
1678 <?php esc_html_e('Keyword', 'wpchatbot'); ?>
1679 </h4>
1680 <input type="text" class="form-control qc-opt-dcs-font"
1681 name="qlcd_wp_chatbot_sys_key_reset"
1682 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_reset') != '' ? get_option('qlcd_wp_chatbot_sys_key_reset') : 'reset'); ?>">
1683 </div>
1684 <div class="form-group">
1685 <?php
1686 $help_welcome_options = unserialize(get_option('qlcd_wp_chatbot_help_welcome'));
1687 $help_welcome_option = 'qlcd_wp_chatbot_help_welcome';
1688 $help_welcome_text = 'Welcome to Help Section';
1689 $this->qcld_wb_chatbot_dynamic_multi_option($help_welcome_options, $help_welcome_option, $help_welcome_text);
1690 ?>
1691 </div>
1692 <div class="form-group">
1693 <?php
1694 $help_msg_options = unserialize(get_option('qlcd_wp_chatbot_help_msg'));
1695 $help_msg_option = 'qlcd_wp_chatbot_help_msg';
1696 $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.';
1697 $this->qcld_wb_chatbot_dynamic_multi_option($help_msg_options, $help_msg_option, $help_msg_text);
1698 ?>
1699 </div>
1700 <div class="form-group">
1701 <?php
1702 $reset_options = unserialize(get_option('qlcd_wp_chatbot_reset'));
1703 $reset_option = 'qlcd_wp_chatbot_reset';
1704 $reset_text = 'Do you want to clear our chat history and start over?';
1705 $this->qcld_wb_chatbot_dynamic_multi_option($reset_options, $reset_option, $reset_text);
1706 ?>
1707 </div>
1708 </div>
1709 <!-- col-xs-12-->
1710 </div>
1711 <!-- row-->
1712 </div>
1713 <!-- top-section-->
1714 </div>
1715 </div>
1716 <!-- tab-content-->
1717 </section>
1718 <section id="section-flip-6">
1719 <?php
1720 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');
1721 ?>
1722 <div class="top-section">
1723 <div class="notification-block-inner">
1724 <div class="row">
1725 <div class="col-xs-12">
1726 <div class="row">
1727 <div class="col-xs-12">
1728 <h2>Predefined Intents</h2>
1729 <div class="row">
1730 <div class="col-xs-12">
1731 <h4 class="qc-opt-title">
1732 <?php esc_html_e('Call Me', 'wpchatbot'); ?>
1733 </h4>
1734 <div class="cxsc-settings-blocks">
1735 <input value="1" id="disable_wp_chatbot_call_gen" type="checkbox"
1736 name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? 'checked' : ''); ?>>
1737 <label for="disable_wp_chatbot_call_gen">
1738 <?php esc_html_e('Disable Call Me feature and button on Start Menu', 'wpchatbot'); ?>
1739 </label>
1740 </div>
1741 </div>
1742 </div>
1743 <div class="form-group" style="margin-bottom:0px">
1744 <h4 class="qc-opt-title">
1745 <?php esc_html_e('Button Label', 'wpchatbot'); ?>
1746 </h4>
1747 <input type="text" class="form-control qc-opt-dcs-font"
1748 name="qlcd_wp_chatbot_support_phone"
1749 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!'); ?>">
1750 </div>
1751 <div class="row">
1752 <div class="col-xs-12">
1753 <h4 class="qc-opt-title">
1754 <?php esc_html_e('Email', 'wpchatbot'); ?>
1755 </h4>
1756 <div class="cxsc-settings-blocks">
1757 <input value="1" id="disable_wp_chatbot_feedback" type="checkbox"
1758 name="disable_wp_chatbot_feedback" <?php echo(get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''); ?>>
1759 <label for="disable_wp_chatbot_feedback">
1760 <?php esc_html_e('Disable Email feature and button on Start Menu', 'wpchatbot'); ?>
1761 </label>
1762 </div>
1763 </div>
1764 </div>
1765 <div class="form-group" style="margin-bottom:0px">
1766 <h4 class="qc-opt-title">
1767 <?php esc_html_e('Button Label', 'wpchatbot'); ?>
1768 </h4>
1769 <input type="text" class="form-control qc-opt-dcs-font"
1770 name="qlcd_wp_chatbot_support_email"
1771 value="<?php echo(get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email'); ?>">
1772 </div>
1773 <div class="row">
1774 <div class="col-xs-12">
1775 <h4 class="qc-opt-title">
1776 <?php esc_html_e('FAQ', 'wpchatbot'); ?>
1777 </h4>
1778 <div class="cxsc-settings-blocks">
1779 <input value="1" id="disable_wp_chatbot_faq" type="checkbox"
1780 name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? 'checked' : ''); ?>>
1781 <label for="disable_wp_chatbot_faq">
1782 <?php esc_html_e('Disable FAQ feature and button on Start Menu', 'wpchatbot'); ?>
1783 </label>
1784 </div>
1785 </div>
1786 </div>
1787 <div class="form-group" style="margin-bottom:0px">
1788 <h4 class="qc-opt-title">
1789 <?php esc_html_e('Button Label', 'wpchatbot'); ?>
1790 </h4>
1791 <input type="text" class="form-control qc-opt-dcs-font"
1792 name="qlcd_wp_chatbot_wildcard_support"
1793 value="<?php echo(get_option('qlcd_wp_chatbot_wildcard_support') != '' ? get_option('qlcd_wp_chatbot_wildcard_support') : 'FAQ'); ?>">
1794 </div>
1795 </div>
1796 </div>
1797 <div class="qc_menu_setup_area">
1798 <h2>Menu Sorting & Customization Area</h2>
1799 <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>
1800 <p>In this section you can control the UI of the menu.<br>
1801 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>
1802 <br>
1803 <div class="qc_menu_area">
1804 <h4>Acitve Menu</h4>
1805 <div class="qc_menu_area_container" id="qc_menu_area">
1806 <?php
1807 if(get_option('qc_wpbot_menu_order')!=''):
1808 echo stripslashes(get_option('qc_wpbot_menu_order'));
1809 else:?>
1810 <?php if(get_option('disable_wp_chatbot_faq')==''): ?>
1811 <span class="qcld-chatbot-wildcard qc_draggable_item_remove" data-wildcart="support"><?php echo get_option('qlcd_wp_chatbot_wildcard_support'); ?></span>
1812 <?php endif; ?>
1813 <?php if(get_option('enable_wp_chatbot_messenger')=='1'): ?>
1814 <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>
1815 <?php endif; ?>
1816 <?php if(get_option('enable_wp_chatbot_whats')=='1'): ?>
1817 <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>
1818 <?php endif; ?>
1819 <?php if(get_option('disable_wp_chatbot_feedback')==''): ?>
1820 <span class="qcld-chatbot-suggest-email qc_draggable_item_remove"><?php echo get_option('qlcd_wp_chatbot_support_email'); ?></span>
1821 <?php endif; ?>
1822 <?php if(get_option('disable_wp_chatbot_call_gen')==''): ?>
1823 <span class="qcld-chatbot-suggest-phone qc_draggable_item_remove" ><?php echo get_option('qlcd_wp_chatbot_support_phone'); ?></span>
1824 <?php endif; ?>
1825 <?php
1826 if(class_exists('Qcformbuilder_Forms_Admin')){
1827 global $wpdb;
1828
1829 $results = $wpdb->get_results("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type='primary'");
1830 if(!empty($results)){
1831 ?>
1832 <?php
1833 foreach($results as $result){
1834 $form = unserialize($result->config);
1835 ?>
1836 <span class="qcld-chatbot-wildcard qcld-chatbot-form qc_draggable_item_remove" data-form="<?php echo $form['ID']; ?>" ><?php echo $form['name']; ?></span>
1837 <?php
1838 }
1839 ?>
1840 <?php
1841 }
1842 }
1843 ?>
1844 <?php endif; ?>
1845 </div>
1846 </div>
1847 <div class="qc_menu_list_area">
1848 <h4>Available Menu</h4>
1849 <div class="qc_menu_list_container">
1850 <p>Predefined Intents</p>
1851 <ul>
1852 <li>
1853 <?php if(get_option('disable_wp_chatbot_faq')==''): ?>
1854 <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="support"><?php echo get_option('qlcd_wp_chatbot_wildcard_support'); ?></span>
1855 <?php endif; ?>
1856 </li>
1857 <li>
1858 <?php if(get_option('enable_wp_chatbot_messenger')=='1'): ?>
1859 <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>
1860 <?php endif; ?>
1861 </li>
1862 <li>
1863 <?php if(get_option('enable_wp_chatbot_whats')=='1'): ?>
1864 <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>
1865 <?php endif; ?>
1866 </li>
1867 <li>
1868 <?php if(get_option('disable_wp_chatbot_feedback')==''): ?>
1869 <span class="qcld-chatbot-suggest-email qc_draggable_item"><?php echo get_option('qlcd_wp_chatbot_support_email'); ?></span>
1870 <?php endif; ?>
1871 </li>
1872 <li>
1873 <?php if(get_option('disable_wp_chatbot_call_gen')==''): ?>
1874 <span class="qcld-chatbot-suggest-phone qc_draggable_item" ><?php echo get_option('qlcd_wp_chatbot_support_phone'); ?></span>
1875 <?php endif; ?>
1876 </li>
1877 </ul>
1878 <?php
1879 if(class_exists('Qcformbuilder_Forms_Admin')){
1880 global $wpdb;
1881
1882 $results = $wpdb->get_results("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type='primary'");
1883 if(!empty($results)){
1884 ?>
1885 <p>Conversational Form</p>
1886 <ul>
1887 <?php
1888 foreach($results as $result){
1889 $form = unserialize($result->config);
1890 ?>
1891 <li><span class="qcld-chatbot-wildcard qcld-chatbot-form qc_draggable_item" data-form="<?php echo $form['ID']; ?>" ><?php echo $form['name']; ?></span></li>
1892 <?php
1893 }
1894 ?>
1895 </ul>
1896 <?php
1897 }
1898 }
1899 ?>
1900 </div>
1901 </div>
1902 </div>
1903 <input id="qc_wpbot_menu_order" type="hidden" name="qc_wpbot_menu_order" value='<?php echo stripslashes(get_option('qc_wpbot_menu_order')); ?>' />
1904 </div>
1905 </div>
1906 </div>
1907 </div>
1908 </section>
1909 <section id="section-flip-7">
1910 <div class="top-section">
1911 <div class="wp-chatbot-language-center-summmery">
1912 <p>
1913 <?php esc_html_e('DialogFlow as Artificial Intelligences Engine for wpwBot', 'wpchatbot'); ?>
1914 </p>
1915 </div>
1916 <div class="row">
1917 <div class="col-xs-12">
1918 <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>
1919 </div>
1920 </div>
1921 <div class="row">
1922 <div class="col-xs-12">
1923 <h4 class="qc-opt-title"><?php echo esc_html__('Enable DialogFlow as AI Engine to Detect Intent', 'wpchatbot'); ?> </h4>
1924 <div class="cxsc-settings-blocks">
1925 <input value="1" id="enable_wp_chatbot_dailogflow" type="checkbox"
1926 name="enable_wp_chatbot_dailogflow" <?php echo(get_option('enable_wp_chatbot_dailogflow') == 1 ? 'checked' : ''); ?>>
1927 <label for="enable_wp_chatbot_dailogflow"><?php echo esc_html__('Enable DialogFlow AI Engine to process Natural Language commands from users.', 'wpchatbot'); ?> </label>
1928 </div>
1929 </div>
1930 <div class="col-xs-12"> <br>
1931 <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>
1932 </div>
1933 <div class="col-xs-12" id="wp-chatbot-dialflow-section">
1934 <h4 class="qc-opt-title"><?php echo esc_html__('DialogFlow API Version', 'wpchatbot'); ?></h4>
1935 <div class="form-group">
1936 <label class="radio-inline">
1937 <input id="wp-chatbot-df-api" type="radio"
1938 name="wp_chatbot_df_api"
1939 value="v2" checked>
1940 <?php echo esc_html__('Dialogflow API V2', 'wpchatbot'); ?> </label>
1941 </div>
1942 <div id="wp-chatbot-df-section-v2" style="display:block">
1943 <!-- Dialogflow V2 Configuration -->
1944
1945 <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')): ?>
1946 <div class="form-group"> <br>
1947 <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>
1948 <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>
1949 <div class="qcld-wpbot-gcdownload-area">
1950 <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>
1951 <?php
1952 if(!is_writable(QCLD_wpCHATBOT_GC_ROOT)){
1953 echo '<span style="color:red;font-size: 12px;"><b>wp-content</b> folder is not writable.</span>';
1954 }
1955 ?>
1956 <br>
1957 <br>
1958 <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>
1959 <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>
1960 <p>2. Unzip the <b>wpbotgc.zip</b> inside to your computer.</p>
1961 <p>3. Create a folder with name <b>wpbot-dfv2-client</b> under <b>wp-content</b> into your server.</p>
1962 <p>4. Upload the upziped files and folders into <b>wpbot-dfv2-client</b> via FTP.</p>
1963 <div class="qcld_wpbot_download_statuses"> </div>
1964 </div>
1965 <br>
1966 </div>
1967 <?php else: ?>
1968 <div class="form-group">
1969 <h4 class="qc-opt-title" style="color:green"><?php echo esc_html__('Google Client Package is Installed on Your Website.', 'wpchatbot'); ?></h4>
1970 </div>
1971 <?php endif; ?>
1972 <div class="form-group">
1973 <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>
1974 </div>
1975 <div class="form-group">
1976 <h4 class="qc-opt-title"><?php echo esc_html__('DialogFlow Project ID', 'wpchatbot'); ?></h4>
1977 <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>
1978 <input type="text" class="form-control qc-opt-dcs-font"
1979 name="qlcd_wp_chatbot_dialogflow_project_id"
1980 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'); ?>">
1981 </div>
1982 <?php
1983
1984 $placeholderPrivatekey = '{
1985 "type": "service_account",
1986 "project_id": "PLACEYOUROWNID",
1987 "private_key_id": "31e300128..........c48",
1988 "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",
1989 "client_email": "dialogflow-evysjn@wpbotpro.iam.gserviceaccount.com",
1990 "client_id": "1026.....032997",
1991 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
1992 "token_uri": "https://oauth2.googleapis.com/token",
1993 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
1994 "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dialogflow-evysjn%40wpbotpro.iam.gserviceaccount.com"
1995 }';
1996
1997 ?>
1998 <div class="form-group">
1999 <h4 class="qc-opt-title"><?php echo esc_html__('Private Key', 'wpchatbot'); ?></h4>
2000 <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>
2001 <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>
2002 </div>
2003
2004 <!-- End Dialogflow V2 Configuration -->
2005 </div>
2006 <div class="form-group">
2007 <h4 class="qc-opt-title"><?php echo esc_html__('Please Click the Button Below to Test Dialogflow Connection.', 'wpchatbot'); ?> </h4>
2008 <p style="color:red"><?php echo esc_html__('*Save settings before pressing Test Dialogflow Connection', 'wpchatbot'); ?><br>
2009 <?php echo esc_html__('*You must have owner permission for the service account your are using in Dialogflow agent.', 'wpchatbot'); ?></p>
2010 <div class="cxsc-settings-blocks">
2011 <button class="btn btn-primary" id="qc_wpbot_df_status">Test Dialogflow Connection</button>
2012 <div class="qcwp_df_status"></div>
2013 </div>
2014 </div>
2015 <br>
2016 <div class="form-group">
2017 <h4 class="qc-opt-title">
2018 <?php esc_html_e('DialofFlow Default reply', 'wpchatbot'); ?>
2019 </h4>
2020 <input type="text" class="form-control qc-opt-dcs-font"
2021 name="qlcd_wp_chatbot_dialogflow_defualt_reply"
2022 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'); ?>">
2023 </div>
2024 <div class="form-group">
2025 <h4 class="qc-opt-title"><?php echo esc_html__('DialogFlow Agent Language (Ex: en)', 'wpchatbot'); ?></h4>
2026 <input type="text" class="form-control qc-opt-dcs-font"
2027 name="qlcd_wp_chatbot_dialogflow_agent_language"
2028 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'); ?>">
2029 </div>
2030 </div>
2031 </div>
2032 </div>
2033 </section>
2034 <!--<section id="section-flip-10">
2035 <div class="wp-chatbot-language-center-summmery">
2036 <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>
2037 </div>
2038 <div class="top-section">
2039 <div class="row">
2040 <div class="col-xs-12">
2041 <h4 class="qc-opt-title"><?php esc_html_e('Mobile App Pages', 'wpchatbot'); ?> </h4>
2042 <div class="cxsc-settings-blocks">
2043 <input value="1" id="wp_chatbot_app_pages" type="checkbox"
2044 name="wp_chatbot_app_pages" <?php echo(get_option('wp_chatbot_app_pages') == 1 ? 'checked' : ''); ?>>
2045 <label for="wp_chatbot_app_pages"><?php esc_html_e('Create pages for WpBot Mobile App', 'wpchatbot'); ?> </label>
2046 </div>
2047 <br>
2048 <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>
2049 <ol>
2050 <li><?php esc_html_e('WpBot Mobile App', 'wpchatbot'); ?></li>
2051 <li><?php esc_html_e('WpBot App Checkout', 'wpchatbot'); ?></li>
2052 <li><?php esc_html_e('WpBot App Order Thank You', 'wpchatbot'); ?></li>
2053 </ol>
2054 <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>
2055 <ol>
2056 <li><?php esc_html_e('WpBot Ionic FrameWork package', 'wpchatbot'); ?></li>
2057 <li><?php esc_html_e('WpBot PhoneGap package', 'wpchatbot'); ?></li>
2058 </ol>
2059 </div>
2060 </div>
2061 </div>
2062
2063 </section>-->
2064
2065
2066 </div>
2067 <!-- /content -->
2068 </div>
2069 <!-- /wp-chatbot-tabs -->
2070 <footer class="wp-chatbot-admin-footer">
2071 <div class="row">
2072 <div class="text-left col-sm-3 col-sm-offset-3">
2073 <input type="button" class="btn btn-warning submit-button"
2074 id="qcld-wp-chatbot-reset-option"
2075 value="<?php esc_html_e('Reset all options to Default', 'wpchatbot'); ?>"/>
2076 </div>
2077 <div class="text-right col-sm-6">
2078 <input type="submit" class="btn btn-primary submit-button" name="submit"
2079 id="submit" value="<?php esc_html_e('Save Settings', 'wpchatbot'); ?>"/>
2080 </div>
2081 </div>
2082 <!-- row-->
2083 </footer>
2084 </section>
2085 </div>
2086 <?php wp_nonce_field('wp_chatbot'); ?>
2087 </form>
2088 <script>
2089
2090 </script>