PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, AI Services / 2.9.6
WPBot – AI ChatBot for Live Support, Lead Generation, AI Services v2.9.6
8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 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 2.9.6, at admin_ui.php

1,710 lines 131.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="wrap">
2 <h1 style="display:none"><?php _e('WPBot', 'wpchatbot'); ?> </h1>
3 </div>
4 <div class="wp-chatbot-wrap">
5 <div class="icon32"><br></div>
6 <form action="<?php echo esc_attr($action); ?>" method="POST" id="wp-chatbot-admin-form"
7 enctype="multipart/form-data">
8 <div class="container form-container">
9 <header class="wp-chatbot-admin-header">
10 <div class="row">
11 <div class="col-sm-6">
12 <h2><?php echo __('WPBot Control Panel', 'wpchatbot'); ?><?php echo get_option('wp_chatbot_index_meta'); ?></h2>
13 </div>
14 <div class="col-sm-6 text-right wp-chatbot-version">
15 <h3><?php _e('The Lite Version', 'wpchatbot'); ?></h3>
16 <p><a target="_blank" href="https://www.quantumcloud.com/"><?php _e('WPBot is a project by Web Design Company QuantumCloud', 'wpchatbot'); ?></a></p>
17 <p><a style="color: #b2ff20;" href="https://www.quantumcloud.com/products/chatbot-for-wordpress/" target="_blank">Upgrade To Pro</a></p>
18 </div>
19 </div>
20 </header>
21 <section class="wp-chatbot-tab-container-inner">
22 <div class="wp-chatbot-tabs wp-chatbot-tabs-style-flip">
23 <nav>
24 <ul>
25 <li tab-data="general"><a href="<?php echo esc_attr($action); ?>&tab=general">
26 <span class="wpwbot-admin-tab-icon">
27 <i class="fa fa-toggle-on"> </i>
28 </span>
29 <span class="wpwbot-admin-tab-name"> <?php _e('GENERAL SETTINGS', 'wpchatbot'); ?></span>
30 </a></li>
31 <li tab-data="themes"><a href="<?php echo esc_attr($action); ?>&tab=themes">
32 <span class="wpwbot-admin-tab-icon">
33 <i class="fa fa-gear faa-spin"></i>
34 </span>
35 <span class="wpwbot-admin-tab-name"> <?php _e('ICONS & THEMES', 'wpchatbot'); ?></span>
36 </a></li>
37 <li tab-data="support"><a href="<?php echo esc_attr($action); ?>&tab=support">
38 <span class="wpwbot-admin-tab-icon">
39 <i class="fa fa-life-ring"></i>
40 </span>
41 <span class="wpwbot-admin-tab-name"> <?php _e('FAQ Builder', 'wpchatbot'); ?></span>
42 </a></li>
43 <!--<li tab-data="notification"><a href="<?php echo esc_attr($action); ?>&tab=notification">
44 <span class="wpwbot-admin-tab-icon">
45 <i class="fa fa-bell-o"></i>
46 </span>
47 <span class="wpwbot-admin-tab-name"><?php _e('Notification Builder', 'wpchatbot'); ?></span>
48 </a></li>-->
49 <li tab-data="language"><a href="<?php echo esc_attr($action); ?>&tab=language">
50 <span class="wpwbot-admin-tab-icon">
51 <i class="fa fa-language"></i>
52 </span>
53 <span class="wpwbot-admin-tab-name"><?php _e('LANGUAGE CENTER', 'wpchatbot'); ?></span>
54 </a></li>
55
56 <li tab-data="startmenu"><a href="<?php echo esc_attr($action); ?>&tab=startmenu">
57 <span class="wpwbot-admin-tab-icon">
58 <i class="fa fa-bars"></i>
59 </span>
60 <span class="wpwbot-admin-tab-name"><?php echo esc_html__('Start Menu', 'wpchatbot'); ?></span>
61 </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 _e('Bot Activity Hour', 'wpchatbot'); ?></span>
68 </a></li>-->
69 <li tab-data="ai"><a href="<?php echo esc_attr($action); ?>&tab=ai">
70 <span class="wpwbot-admin-tab-icon">
71 <i class="fa fa-500px"></i>
72 </span>
73 <span class="wpwbot-admin-tab-name"><?php _e('Artificial intelligence', 'wpchatbot'); ?></span>
74 </a></li>
75 <!--<li tab-data="app"><a href="<?php echo esc_attr($action); ?>&tab=app">
76 <span class="wpwbot-admin-tab-icon">
77 <i class="fa fa-mobile"></i>
78 </span>
79 <span class="wpwbot-admin-tab-name"><?php _e('MOBILE APP', 'wpchatbot'); ?></span>
80 </a></li>
81 <li tab-data="custom"><a href="<?php echo esc_attr($action); ?>&tab=custom">
82 <span class="wpwbot-admin-tab-icon">
83 <i class="fa fa-code"></i>
84 </span>
85 <span class="wpwbot-admin-tab-name"><?php _e('Custom CSS', 'wpchatbot'); ?> </span>
86 </a></li>-->
87 <li tab-data="addons"><a href="<?php echo esc_attr($action); ?>&tab=addons">
88 <span class="wpwbot-admin-tab-icon">
89 <i class="fa fa-puzzle-piece" aria-hidden="true"></i>
90 </span>
91 <span class="wpwbot-admin-tab-name"><?php echo esc_html__('Addons', 'wpchatbot'); ?> </span>
92 </a></li>
93 </ul>
94 <a class="wpbot_free_messenger_adds" href="https://wordpress.org/plugins/chatbot-for-messenger/" target="_blank">Try our new ChatBot for Messenger WPBot addon free</a>
95 </nav>
96 <div class="content-wrap">
97 <section id="section-flip-1">
98 <div class="top-section">
99 <div class="row">
100 <div class="col-xs-12">
101 <div class="cxsc-settings-blocks">
102 <div class="form-group">
103 <?php
104 $url = get_site_url();
105 $url = parse_url($url);
106 $domain = $url['host'];
107
108 $admin_email = get_option('admin_email');
109 ?>
110 <h4 class="qc-opt-title"><?php echo esc_html__('Emails Will be Sent to', 'wpchatbot'); ?></h4>
111 <input type="text" class="form-control qc-opt-dcs-font"
112 name="qlcd_wp_chatbot_admin_email"
113 value="<?php echo(get_option('qlcd_wp_chatbot_admin_email') != '' ? get_option('qlcd_wp_chatbot_admin_email') : $admin_email); ?>">
114 <label for="disable_wp_chatbot"><?php echo esc_html__('Support and Call Back requests will be sent to this address', 'wpchatbot'); ?> </label>
115 </div>
116 </div>
117
118 </div>
119 </div>
120 <div class="row">
121 <div class="col-xs-12">
122 <h4 class="qc-opt-title"> <?php _e('Disable WPBot', 'wpchatbot'); ?> </h4>
123 <div class="cxsc-settings-blocks">
124 <input value="1" id="disable_wp_chatbot" type="checkbox"
125 name="disable_wp_chatbot" <?php echo(get_option('disable_wp_chatbot') == 1 ? 'checked' : ''); ?>>
126 <label for="disable_wp_chatbot"><?php _e('Disable WPBot to Load', 'wpchatbot'); ?> </label>
127 </div>
128 </div>
129 </div>
130 <!--<div class="row">
131 <div class="col-xs-12">
132 <h4 class="qc-opt-title"> <?php _e('Disable WPbot on Mobile Device', 'wpchatbot'); ?> </h4>
133 <div class="cxsc-settings-blocks">
134 <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox"
135 name="disable_wp_chatbot_on_mobile" <?php echo(get_option('disable_wp_chatbot_on_mobile') == 1 ? 'checked' : ''); ?>>
136 <label for="disable_wp_chatbot_on_mobile"><?php _e('Disable WpBot to Load on Mobile Device', 'wpchatbot'); ?> </label>
137 </div>
138 </div>
139 </div>-->
140 <!--<div class="row">
141 <div class="col-xs-12">
142 <h4 class="qc-opt-title"> <?php _e('Sound on Page Load', 'wpchatbot'); ?> </h4>
143 <div class="form-group">
144 <input value="1" id="enable_wp_chatbot_sound_initial" type="checkbox"
145 name="enable_wp_chatbot_sound_initial" <?php echo(get_option('enable_wp_chatbot_sound_initial') == 1 ? 'checked' : ''); ?>>
146 <label for="enable_wp_chatbot_sound_initial"><?php _e('Enable to play sound on initial page load', 'wpchatbot'); ?> </label>
147 </div>
148 </div>
149 </div>-->
150
151 <!-- row-->
152 <!--<div class="row">
153 <div class="col-xs-12">
154 <h4 class="qc-opt-title"> <?php _e('Disable WpBot Icon Animation', 'wpchatbot'); ?> </h4>
155 <div class="cxsc-settings-blocks">
156 <input value="1" id="disable_wp_chatbot_icon_animation" type="checkbox"
157 name="disable_wp_chatbot_icon_animation" <?php echo(get_option('disable_wp_chatbot_icon_animation') == 1 ? 'checked' : ''); ?>>
158 <label for="disable_wp_chatbot_icon_animation"><?php _e('Disable WpBot icon border animation', 'wpchatbot'); ?> </label>
159 </div>
160 </div>
161 </div>-->
162
163
164
165 <!--<div class="row">
166 <div class="col-xs-12">
167 <h4 class="qc-opt-title"><?php _e('Disable WpBot Opening Notification', 'wpchatbot'); ?> </h4>
168 <div class="cxsc-settings-blocks">
169 <input value="1" id="disable_wp_chatbot_notification" type="checkbox"
170 name="disable_wp_chatbot_notification" <?php echo(get_option('disable_wp_chatbot_notification') == 1 ? 'checked' : ''); ?>>
171 <label for="disable_wp_chatbot_notification"><?php _e('Disable WpBot Opening notification messages', 'wpchatbot'); ?> </label>
172 </div>
173 </div>
174 </div>-->
175 <div class="row">
176 <div class="col-xs-12">
177 <h4 class="qc-opt-title"><?php _e('Enable RTL', 'wpchatbot'); ?> </h4>
178 <div class="cxsc-settings-blocks">
179 <input value="1" id="enable_wp_chatbot_rtl" type="checkbox"
180 name="enable_wp_chatbot_rtl" <?php echo(get_option('enable_wp_chatbot_rtl') == 1 ? 'checked' : ''); ?>>
181 <label for="enable_wp_chatbot_rtl"><?php _e('Enable RTL (Right to Left language) Support for Chat', 'wpchatbot'); ?> </label>
182 </div>
183 </div>
184 </div>
185 <!--<div class="row">
186 <div class="col-xs-12">
187 <h4 class="qc-opt-title"><?php _e('Disable Call Me', 'wpchatbot'); ?> </h4>
188 <div class="cxsc-settings-blocks">
189 <input value="1" id="disable_wp_chatbot_call_sup" type="checkbox"
190 name="disable_wp_chatbot_call_sup" <?php echo(get_option('disable_wp_chatbot_call_sup') == 1 ? 'checked' : ''); ?>>
191 <label for="disable_wp_chatbot_call_sup"><?php _e('Disable Call Me button', 'wpchatbot'); ?> </label>
192 </div>
193 </div>
194 </div>-->
195
196 <!-- row-->
197 <div class="row">
198 <div class="col-xs-12">
199 <h4 class="qc-opt-title"><?php _e('WPBot Open Full Screen in Mobile', 'wpchatbot'); ?> </h4>
200 <div class="cxsc-settings-blocks">
201 <input value="1" id="enable_wp_chatbot_mobile_full_screen" type="checkbox"
202 name="enable_wp_chatbot_mobile_full_screen" <?php echo(get_option('enable_wp_chatbot_mobile_full_screen') == 1 ? 'checked' : ''); ?>>
203 <label for="enable_wp_chatbot_mobile_full_screen"><?php _e('Enable WpBot Open Full Screen in Mobile', 'wpchatbot'); ?> </label>
204 </div>
205 </div>
206 </div>
207 <div class="row">
208 <div class="col-xs-12">
209 <h4 class="qc-opt-title"><?php _e('Override WPBot Icon\'s Position', 'wpchatbot'); ?> </h4>
210 <div class="cxsc-settings-blocks">
211 <?php
212 $qcld_wb_chatbot_position_x = get_option('wp_chatbot_position_x');
213 if ((!isset($qcld_wb_chatbot_position_x)) || ($qcld_wb_chatbot_position_x == "")) {
214 $qcld_wb_chatbot_position_x = __("120", "wp_chatbot");
215 }
216 $qcld_wb_chatbot_position_y = get_option('wp_chatbot_position_y');
217 if ((!isset($qcld_wb_chatbot_position_y)) || ($qcld_wb_chatbot_position_y == "")) {
218 $qcld_wb_chatbot_position_y = __("120", "wp_chatbot");
219 } ?>
220 <input type="number" class="qc-opt-dcs-font"
221 name="wp_chatbot_position_x"
222 id=""
223 value="<?php echo($qcld_wb_chatbot_position_x); ?>"
224 placeholder="<?php _e('From Right In px', 'wpchatbot'); ?>"> <span class="qc-opt-dcs-font"><?php _e('From Right In px', 'wpchatbot'); ?></span>
225 <input type="number" class="qc-opt-dcs-font"
226 name="wp_chatbot_position_y"
227 id=""
228 value="<?php echo($qcld_wb_chatbot_position_y); ?>"
229 placeholder="<?php _e('From Bottom In Px', 'wpchatbot'); ?>"> <span class="qc-opt-dcs-font"><?php _e('From Bottom In px', 'wpchatbot'); ?></span>
230 </div>
231 </div>
232 <!--.col-sm-12-->
233 </div>
234 <!-- row-->
235
236 <div class="row">
237 <div class="col-xs-12">
238 <h4 class="qc-opt-title"><strong> <?php _e('WPBot', 'wpchatbot'); ?></strong> <?php _e('Loading Control Options', 'wpchatbot'); ?> </h4>
239 <div class="cxsc-settings-blocks">
240 <div class="row">
241 <div class="col-sm-4 text-right">
242 <span class="qc-opt-title-font"><?php _e('Show on Home Page', 'wpchatbot'); ?></span>
243 </div>
244 <div class="col-sm-8">
245 <label class="radio-inline">
246 <input id="wp-chatbot-show-home-page" type="radio"
247 name="wp_chatbot_show_home_page"
248 value="on" <?php echo(get_option('wp_chatbot_show_home_page') == 'on' ? 'checked' : ''); ?>>
249 <?php _e('YES', 'wpchatbot'); ?>
250 </label>
251 <label class="radio-inline">
252 <input id="wp-chatbot-show-home-page" type="radio"
253 name="wp_chatbot_show_home_page"
254 value="off" <?php echo(get_option('wp_chatbot_show_home_page') == 'off' ? 'checked' : ''); ?>>
255 <?php _e('NO', 'wpchatbot'); ?>
256 </label>
257 </div>
258 </div>
259 <!-- row-->
260 <div class="row">
261 <div class="col-sm-4 text-right">
262 <span class="qc-opt-title-font"><?php _e('Show on blog posts', 'wpchatbot'); ?></span>
263 </div>
264 <div class="col-sm-8">
265 <label class="radio-inline">
266 <input class="wp-chatbot-show-posts" type="radio"
267 name="wp_chatbot_show_posts"
268 value="on" <?php echo(get_option('wp_chatbot_show_posts') == 'on' ? 'checked' : ''); ?>>
269 <?php _e('YES', 'wpchatbot'); ?>
270 </label>
271 <label class="radio-inline">
272 <input class="wp-chatbot-show-posts" type="radio"
273 name="wp_chatbot_show_posts"
274 value="off" <?php echo(get_option('wp_chatbot_show_posts') == 'off' ? 'checked' : ''); ?>>
275 <?php _e('NO', 'wpchatbot'); ?>
276 </label>
277 </div>
278 </div>
279 <!-- row-->
280 <div class="row">
281 <div class="col-md-4 text-right">
282 <span class="qc-opt-title-font"><?php _e('Show on pages', 'wpchatbot'); ?></span>
283 </div>
284 <div class="col-md-8">
285 <label class="radio-inline">
286 <input class="wp-chatbot-show-pages" type="radio"
287 name="wp_chatbot_show_pages"
288 value="on" <?php echo(get_option('wp_chatbot_show_pages') == 'on' ? 'checked' : ''); ?>>
289 <?php _e('All Pages', 'wpchatbot'); ?>
290 </label>
291 <label class="radio-inline">
292 <input class="wp-chatbot-show-pages" type="radio"
293 name="wp_chatbot_show_pages"
294 value="off" <?php echo(get_option('wp_chatbot_show_pages') == 'off' ? 'checked' : ''); ?>>
295 <?php _e('Selected Pages Only ', 'wpchatbot'); ?></label>
296 <div id="wp-chatbot-show-pages-list">
297 <ul class="checkbox-list">
298 <?php
299 $wp_chatbot_pages = get_pages();
300 $wp_chatbot_select_pages = unserialize(get_option('wp_chatbot_show_pages_list'));
301 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
302 ?>
303 <li>
304 <input
305 id="wp_chatbot_show_page_<?php echo $wp_chatbot_page->ID; ?>"
306 type="checkbox"
307 name="wp_chatbot_show_pages_list[]"
308 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) {
309 echo 'checked';
310 } ?> >
311 <label
312 for="wp_chatbot_show_page_<?php echo $wp_chatbot_page->ID; ?>"> <?php echo $wp_chatbot_page->post_title; ?></label>
313 </li>
314 <?php } ?>
315 </ul>
316 </div>
317 </div>
318 </div>
319
320 </div>
321 <!-- cxsc-settings-blocks-->
322 </div>
323 <!-- col-xs-12-->
324 </div>
325 <!-- row-->
326 <div class="row">
327 <div class="col-xs-12">
328 <h2>Predefined Intents</h2>
329
330
331 <div class="row">
332 <div class="col-xs-12">
333 <h4 class="qc-opt-title"><?php _e('Disable Call Me', 'wpchatbot'); ?> </h4>
334 <div class="cxsc-settings-blocks">
335 <input value="1" id="disable_wp_chatbot_call_gen" type="checkbox"
336 name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? 'checked' : ''); ?>>
337 <label for="disable_wp_chatbot_call_gen"><?php _e('Disable Call Me feature and button on start', 'wpchatbot'); ?> </label>
338 </div>
339 </div>
340 </div>
341 <div class="row">
342 <div class="col-xs-12">
343 <h4 class="qc-opt-title"><?php _e('Disable Email', 'wpchatbot'); ?> </h4>
344 <div class="cxsc-settings-blocks">
345 <input value="1" id="disable_wp_chatbot_feedback" type="checkbox"
346 name="disable_wp_chatbot_feedback" <?php echo(get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''); ?>>
347 <label for="disable_wp_chatbot_feedback"><?php _e('Disable Email feature and button on start', 'wpchatbot'); ?> </label>
348 </div>
349 </div>
350 </div>
351 <div class="row">
352 <div class="col-xs-12">
353 <h4 class="qc-opt-title"><?php _e('Disable FAQ', 'wpchatbot'); ?> </h4>
354 <div class="cxsc-settings-blocks">
355 <input value="1" id="disable_wp_chatbot_faq" type="checkbox"
356 name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? 'checked' : ''); ?>>
357 <label for="disable_wp_chatbot_faq"><?php _e('Disable FAQ feature and button on start', 'wpchatbot'); ?> </label>
358 </div>
359 </div>
360 </div>
361 <div class="row">
362 <div class="col-xs-12">
363 <h4 class="qc-opt-title"><?php _e('Custom Intents', 'wpchatbot'); ?> </h4>
364 <div class="cxsc-settings-blocks">
365
366 <label for="disable_wp_chatbot_faq"><?php _e('Coming Soon', 'wpchatbot'); ?> </label>
367 </div>
368 </div>
369 </div>
370
371 </div>
372 </div>
373 </div>
374 <!-- top-section-->
375 </section>
376 <section id="section-flip-2">
377 <div class="top-section">
378
379 <div class="row">
380 <div class="col-xs-12">
381
382 <div class="row">
383 <div class="col-xs-12">
384 <p class="wpqcld_chk_seft">
385 <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>
386 </p>
387 </div>
388 </div>
389
390 <h4 class="qc-opt-title"><?php _e('WPBot Icon', 'wpchatbot'); ?></h4>
391 <div class="cxsc-settings-blocks">
392 <ul class="radio-list">
393 <!--<li><label for="wp_chatbot_icon_0" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-0.png"
394 alt=""> <input id="wp_chatbot_icon_0" type="radio"
395 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-0.png' ? 'checked' : ''); ?>
396 value="icon-0.png">
397 <?php _e('Icon - 0', 'wpchatbot'); ?></label>
398 </li>
399 <li><label for="wp_chatbot_icon_1" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-1.png"
400 alt=""> <input id="wp_chatbot_icon_1" type="radio"
401 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-1.png' ? 'checked' : ''); ?>
402 value="icon-1.png">
403 <?php _e('Icon - 1', 'wpchatbot'); ?></label>
404 </li>-->
405 <li><label for="wp_chatbot_icon_2" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-2.png"
406 alt=""> <input id="wp_chatbot_icon_2" type="radio"
407 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-2.png' ? 'checked' : ''); ?>
408 value="icon-2.png">
409 <?php _e('Icon - 2', 'wpchatbot'); ?></label>
410 </li>
411 <li><label for="wp_chatbot_icon_3" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-3.png"
412 alt=""> <input id="wp_chatbot_icon_3" type="radio"
413 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-3.png' ? 'checked' : ''); ?>
414 value="icon-3.png">
415 <?php _e('Icon - 3', 'wpchatbot'); ?></label>
416 </li>
417 <li><label for="wp_chatbot_icon_4" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-4.png"
418 alt=""> <input id="wp_chatbot_icon_4" type="radio"
419 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-4.png' ? 'checked' : ''); ?>
420 value="icon-4.png">
421 <?php _e('Icon - 4', 'wpchatbot'); ?></label>
422 </li>
423 <li><label for="wp_chatbot_icon_5" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-5.png"
424 alt=""> <input id="wp_chatbot_icon_5" type="radio"
425 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-5.png' ? 'checked' : ''); ?>
426 value="icon-5.png">
427 <?php _e('Icon - 5', 'wpchatbot'); ?></label>
428 </li>
429 <li><label for="wp_chatbot_icon_6" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-6.png"
430 alt=""> <input id="wp_chatbot_icon_6" type="radio"
431 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-6.png' ? 'checked' : ''); ?>
432 value="icon-6.png">
433 <?php _e('Icon - 6', 'wpchatbot'); ?></label>
434 </li>
435 <li><label for="wp_chatbot_icon_7" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-7.png"
436 alt=""> <input id="wp_chatbot_icon_7" type="radio"
437 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-7.png' ? 'checked' : ''); ?>
438 value="icon-7.png">
439 <?php _e('Icon - 7', 'wpchatbot'); ?></label>
440 </li>
441 <li><label for="wp_chatbot_icon_8" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-8.png"
442 alt=""> <input id="wp_chatbot_icon_8" type="radio"
443 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-8.png' ? 'checked' : ''); ?>
444 value="icon-8.png">
445 <?php _e('Icon - 8', 'wpchatbot'); ?></label>
446 </li>
447 <li><label for="wp_chatbot_icon_9" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-9.png"
448 alt=""> <input id="wp_chatbot_icon_9" type="radio"
449 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-9.png' ? 'checked' : ''); ?>
450 value="icon-9.png">
451 <?php _e('Icon - 9', 'wpchatbot'); ?></label>
452 </li>
453 <li><label for="wp_chatbot_icon_10" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-10.png"
454 alt=""> <input id="wp_chatbot_icon_10" type="radio"
455 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-10.png' ? 'checked' : ''); ?>
456 value="icon-10.png">
457 <?php _e('Icon - 10', 'wpchatbot'); ?></label>
458 </li>
459 <li><label for="wp_chatbot_icon_11" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-11.png"
460 alt=""> <input id="wp_chatbot_icon_11" type="radio"
461 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-11.png' ? 'checked' : ''); ?>
462 value="icon-11.png">
463 <?php _e('Icon - 11', 'wpchatbot'); ?></label>
464 </li>
465 <li><label for="wp_chatbot_icon_12" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-12.png"
466 alt=""> <input id="wp_chatbot_icon_12" type="radio"
467 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-12.png' ? 'checked' : ''); ?>
468 value="icon-12.png">
469 <?php _e('Icon - 12', 'wpchatbot'); ?></label>
470 </li>
471 <li><label for="wp_chatbot_icon_13" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-13.png"
472 alt=""> <input id="wp_chatbot_icon_13" type="radio"
473 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-13.png' ? 'checked' : ''); ?>
474 value="icon-13.png">
475 <?php _e('Icon - 13', 'wpchatbot'); ?></label>
476 </li>
477
478 <li>
479 <?php
480 if (get_option('wp_chatbot_custom_icon_path') != "") {
481 $wp_chatbot_custom_icon_path = get_option('wp_chatbot_custom_icon_path');
482 } else {
483 $wp_chatbot_custom_icon_path = QCLD_wpCHATBOT_IMG_URL . 'custom.png';
484 }
485 ?>
486 <label for="wp_chatbot_custom_icon_input" class="qc-opt-dcs-font">
487 <img id="wp_chatbot_custom_icon_src"
488 src="<?php echo $wp_chatbot_custom_icon_path; ?>" alt="">
489 <input id="wp_chatbot_custom_icon_input" type="radio"
490 name="wp_chatbot_icon"
491 value="custom.png" <?php echo(get_option('wp_chatbot_icon') == 'custom.png' ? 'checked' : ''); ?>>
492 <?php _e('Custom Icon', 'wpchatbot'); ?></label>
493 </li>
494
495 </ul>
496 </div>
497 <!-- cxsc-settings-blocks-->
498 </div>
499 </div>
500 <div class="row">
501 <div class="col-xs-12">
502 <h4 class="qc-opt-title"><?php _e(' Upload custom Icon ', 'wpchatbot'); ?></h4>
503 <div class="cxsc-settings-blocks">
504 <input type="hidden" name="wp_chatbot_custom_icon_path"
505 id="wp_chatbot_custom_icon_path"
506 value="<?php echo $wp_chatbot_custom_icon_path; ?>"/>
507 <button type="button" class="wp_chatbot_custom_icon_button button"><?php _e('Upload Icon', 'wpchatbot'); ?> </button>
508 </div>
509
510 </div>
511 </div>
512 </div>
513
514 <div class="top-section">
515 <div class="row">
516 <div class="col-xs-12">
517 <h4 class="qc-opt-title"><?php _e(' WPBot Agent Image', 'wpchatbot'); ?></h4>
518 <div class="cxsc-settings-blocks">
519 <ul class="radio-list">
520 <li>
521 <label for="wp_chatbot_agent_image_def" class="qc-opt-dcs-font">
522 <img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>icon-0.png"
523 alt=""> <input id="wp_chatbot_agent_image_def" type="radio"
524 name="wp_chatbot_agent_image" <?php echo(get_option('wp_chatbot_agent_image') == 'agent-0.png' ? 'checked' : ''); ?>
525 value="agent-0.png">
526
527 <?php _e('Default Agent', 'wpchatbot'); ?></label>
528 </li>
529 <li>
530 <?php
531 if (get_option('wp_chatbot_custom_agent_path') != "") {
532 $wp_chatbot_custom_agent_path = get_option('wp_chatbot_custom_agent_path');
533 } else {
534 $wp_chatbot_custom_agent_path = QCLD_wpCHATBOT_IMG_URL . 'custom-agent.png';
535 }
536 ?>
537 <label for="wp_chatbot_agent_image_custom" class="qc-opt-dcs-font">
538 <img id="wp_chatbot_custom_agent_src"
539 src="<?php echo esc_url($wp_chatbot_custom_agent_path); ?>"
540 alt="Agent">
541 <input type="radio" name="wp_chatbot_agent_image"
542 id="wp_chatbot_agent_image_custom"
543 value="custom-agent.png" <?php echo(get_option('wp_chatbot_agent_image') == 'custom-agent.png' ? 'checked' : ''); ?>>
544 <?php echo esc_html__('Custom Agent', 'wpchatbot'); ?></label>
545 </li>
546
547 </ul>
548 </div>
549 <!-- cxsc-settings-blocks-->
550 </div>
551 </div>
552 <div class="row">
553 <div class="col-xs-12">
554 <h4 class="qc-opt-title"> <?php _e('Custom Agent Icon', 'wpchatbot'); ?> </h4>
555 <div class="cxsc-settings-blocks">
556 <input type="hidden" name="wp_chatbot_custom_agent_path"
557 id="wp_chatbot_custom_agent_path"
558 value="<?php echo $wp_chatbot_custom_agent_path; ?>"/>
559 <button type="button" class="wp_chatbot_custom_agent_button button"><?php _e('Upload Agent Icon', 'wpchatbot'); ?></button>
560 </div>
561 </div>
562 </div>
563 </div>
564 <div id="top-section">
565 <div class="row">
566 <div class="col-sm-12">
567 <h4 class="qc-opt-title"> <?php _e('WPBot Themes', 'wpchatbot'); ?></h4>
568 </div>
569 </div>
570 <div class="row">
571 <div class="col-sm-3">
572 <label for="qcld_wb_chatbot_theme_0">
573 <img class="thumbnail theme_prev"
574 src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>templates/template-00.JPG"
575 alt="Theme Basic">
576 <input id="qcld_wb_chatbot_theme_0" type="radio"
577 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-00' ? 'checked' : ''); ?>
578 value="template-00">
579 <?php _e('Theme Basic', 'wpchatbot'); ?></label>
580 </div>
581
582 </div>
583 </div>
584 <!--<hr>
585 <div id="top-section">
586 <div class="row">
587 <div class="col-sm-12">
588 <h4 class="qc-opt-title"> <?php _e('Custom Backgroud', 'wpchatbot'); ?></h4>
589 <div class="cxsc-settings-blocks">
590 <input value="1" id="qcld_wb_chatbot_change_bg" type="checkbox"
591 name="qcld_wb_chatbot_change_bg" <?php echo(get_option('qcld_wb_chatbot_change_bg') == 1 ? 'checked' : ''); ?>>
592 <label for="qcld_wb_chatbot_change_bg"><?php _e('Change the wpwBot message board background for Theme 2 and Theme 3.', 'wpchatbot'); ?> </label>
593 </div>
594 </div>
595 </div>
596 <div class="row qcld-wp-chatbot-board-bg-container" <?php if (get_option('qcld_wb_chatbot_change_bg') != 1) {
597 echo 'style="display:none"';
598 } ?>>
599 <div class="col-xs-6">
600 <p class="wp-chatbot-settings-instruction"> <?php _e('Upload wpwBot message board background (Ideal image size 376px X 688px).', 'wpchatbot'); ?> </p>
601 <div class="cxsc-settings-blocks">
602 <?php
603 if (get_option('qcld_wb_chatbot_board_bg_path') != "") {
604 $qcld_wb_chatbot_board_bg_path = get_option('qcld_wb_chatbot_board_bg_path');
605 } else {
606 $qcld_wb_chatbot_board_bg_path = QCLD_wpCHATBOT_IMG_URL . 'background/background.png';
607 }
608 ?>
609 <input type="hidden" name="qcld_wb_chatbot_board_bg_path"
610 id="qcld_wb_chatbot_board_bg_path"
611 value="<?php echo $qcld_wb_chatbot_board_bg_path; ?>"/>
612 <button type="button" class="qcld_wb_chatbot_board_bg_button button"><?php _e('Upload WpBot background.', 'wpchatbot'); ?></button>
613 </div>
614 </div>
615
616 <div class="col-xs-6">
617 <p class="wp-chatbot-settings-instruction"> <?php _e('Custom message board background', 'wpchatbot'); ?> </p>
618 <img id="qcld_wb_chatbot_board_bg_image" style="height:100%;width:100%"
619 src="<?php echo $qcld_wb_chatbot_board_bg_path; ?>"
620 alt="Custom Background">
621 </div>
622 </div>
623 </div>-->
624 </section>
625 <section id="section-flip-3">
626 <div class="row">
627 <div class="col-xs-12">
628
629
630
631 </div>
632 </div>
633 <div class="top-section">
634 <h4 class="qc-opt-title"><?php _e('Build FAQ Query and Answers', 'wpchatbot'); ?></h4>
635 <div class="block-inner ui-sortable" id="wp-chatbot-support-builder">
636 <?php
637 $support_quereis=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_query')));
638 $support_ans=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_ans')));
639 if (count($support_ans) >= 1) {
640 //foreach (get_option('support_ans') as $support_ans){
641 $query_ans_counter=0;
642 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
643 ?>
644 <div class="row">
645 <span class="pull-right"> </span>
646 <div class="col-xs-12">
647 <button type="button"
648 class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right">
649 <i class="fa fa-times" aria-hidden="true"></i>
650 </button>
651 <span class="wp-chatbot-support-cross pull-right" >
652 <i class="fa fa-crosshairs" aria-hidden="true"></i>
653 </span>
654 <div class="cxsc-settings-blocks">
655 <p class="qc-opt-dcs-font"><?php _e('FAQ query ', 'wpchatbot'); ?></p>
656 <input type="text" class="form-control" name="support_query[]"
657 placeholder="<?php _e('FAQ query ', 'wpchatbot'); ?>" value="<?php echo $query ?>">
658 <br>
659 <p class="qc-opt-dcs-font"><?php _e('FAQ answer', 'wpchatbot'); ?></p>
660 <?php wp_editor(html_entity_decode(stripcslashes($ans)), 'support_ans'.'_'.$query_ans_counter, array('textarea_name' =>
661 'support_ans[]',
662 'textarea_rows' => 20,
663 'editor_height' => 100,
664 'disabled' => 'disabled',
665 'media_buttons' => false,
666 'tinymce' => array(
667 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
668 )); ?>
669 </div>
670 </div>
671 </div>
672 <?php
673 $query_ans_counter++;
674 }
675 //}
676 } else {
677 ?>
678 <div class="row">
679 <div class="col-xs-12">
680 <button type="button"
681 class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right">
682 <i class="fa fa-times" aria-hidden="true"></i>
683 </button>
684 <span class="wp-chatbot-support-cross pull-right" >
685 <i class="fa fa-crosshairs" aria-hidden="true"></i>
686 </span>
687 <div class="cxsc-settings-blocks">
688 <p class="qc-opt-dcs-font"><?php _e('Support query', 'wpchatbot'); ?> </p>
689 <input type="text" class="form-control" name="support_query[]"
690 placeholder="<?php _e('Support query ', 'wpchatbot'); ?>">
691 <br>
692 <p class="qc-opt-dcs-font"><strong><?php _e('Support answer', 'wpchatbot'); ?></strong></p>
693 <?php wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
694 'support_ans[]',
695 'textarea_rows' => 20,
696 'editor_height' => 100,
697 'disabled' => 'disabled',
698 'media_buttons' => false,
699 'tinymce' => array(
700 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
701 )); ?>
702 </div>
703 <br>
704 </div>
705 </div>
706 <?php
707 }
708 ?>
709 </div>
710 <div class="row">
711 <div class="col-sm-6 text-left"></div>
712 <div class="col-sm-6 text-right">
713 <button class="btn btn-success btn-sm" type="button"
714 id="add-more-support-query"><i
715 class="fa fa-plus" aria-hidden="true"></i> <?php _e('Add More Questions and Answers', 'wpchatbot'); ?>
716 </button>
717 </div>
718 </div>
719 </div>
720 </section>
721 <!--<section id="section-flip-4">
722 <div class="top-section">
723 <div class="notification-block-inner">
724 <div class="row">
725 <div class="col-xs-12">
726 <div class="cxsc-settings-blocks">
727 <?php $notification_interval = get_option('qlcd_wp_chatbot_notification_interval') != "" ? get_option('qlcd_wp_chatbot_notification_interval') : 5 ?>
728 <h4 class="qc-opt-title"><?php _e('Interval between notifications (in Seconds).', 'wpchatbot'); ?></h4>
729 <input type="text" class="form-control"
730 name="qlcd_wp_chatbot_notification_interval"
731 value="<?php echo $notification_interval ?>">
732 </div>
733 </div>
734 </div>
735
736 <?php
737 $notifications = $this->qcld_wb_chatbot_str_replace(unserialize(get_option('qlcd_wp_chatbot_notifications')));
738 if (!empty($notifications)) {
739 $chatbot_notif_counter=0;
740 foreach ($notifications as $notification) {
741 ?>
742 <div class="row">
743 <div class="col-xs-12">
744 <button type="button"
745 class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right">
746 <i class="fa fa-times" aria-hidden="true"></i>
747 </button>
748 <div class="cxsc-settings-blocks">
749 <?php wp_editor(html_entity_decode(stripcslashes($notification)), 'qlcd_wp_chatbot_notifications_'.$chatbot_notif_counter, array('textarea_name' =>
750 'qlcd_wp_chatbot_notifications[]',
751 'textarea_rows' => 20,
752 'editor_height' => 100,
753 'disabled' => 'disabled',
754 'media_buttons' => false,
755 'tinymce' => array(
756 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
757 )); ?>
758 </div>
759 </div>
760
761 </div>
762
763 <?php
764 $chatbot_notif_counter++;
765 }
766 //}
767 } else {
768 ?>
769 <div class="row">
770 <div class="col-xs-12">
771 <button type="button"
772 class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right">
773 <i class="fa fa-times" aria-hidden="true"></i>
774 </button>
775 <div class="cxsc-settings-blocks">
776 <?php wp_editor(html_entity_decode(stripcslashes('')), 'qlcd_wp_chatbot_notifications_0', array('textarea_name' =>
777 'qlcd_wp_chatbot_notifications[]',
778 'textarea_rows' => 20,
779 'editor_height' => 100,
780 'disabled' => 'disabled',
781 'media_buttons' => false,
782 'tinymce' => array(
783 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
784 )); ?>
785 </div>
786 </div>
787 </div>
788 <?php
789 }
790 ?>
791 </div>
792 <div class="row">
793 <div class="col-sm-6 text-left"></div>
794 <div class="col-sm-6 text-right">
795 <button class="btn btn-success btn-sm" type="button"
796 id="add-more-notification-message">
797 <i class="fa fa-plus" aria-hidden="true"></i> <?php _e('Add', 'wpchatbot'); ?>
798 </button>
799 </div>
800 </div>
801
802 </div>
803
804 </section>-->
805 <section id="section-flip-4">
806 <div class="wp-chatbot-language-center-summmery">
807
808 </div>
809 <ul class="nav nav-tabs">
810 <li class="active"><a data-toggle="tab" href="#wp-chatbot-lng-general"><?php _e('General', 'wpchatbot'); ?></a></li>
811
812 <li><a data-toggle="tab" href="#wp-chatbot-lng-support"><?php _e('FAQ', 'wpchatbot'); ?></a></li>
813
814 <li><a data-toggle="tab" href="#wp-chatbot-lng-system-keyword"><?php _e('System Keywords', 'wpchatbot'); ?></a></li>
815 </ul>
816 <div class="tab-content">
817 <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
818 <div class="top-section">
819 <div class="row">
820 <div class="col-xs-12" id="wp-chatbot-language-section">
821
822 <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>
823 <p>You could use &lt;br&gt; tag for line break.</p>
824
825 <div class="form-group">
826 <h4 class="qc-opt-title"><?php _e('Your Company or Website Name', 'wpchatbot'); ?></h4>
827 <input type="text" class="form-control qc-opt-dcs-font"
828 name="qlcd_wp_chatbot_host"
829 value="<?php echo(get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store'); ?>">
830 </div>
831 <div class="form-group">
832 <h4 class="qc-opt-title"><?php _e('Agent name', 'wpchatbot'); ?></h4>
833 <input type="text" class="form-control qc-opt-dcs-font"
834 name="qlcd_wp_chatbot_agent"
835 value="<?php echo(get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie'); ?>">
836 </div>
837 <div class="form-group">
838 <h4 class="qc-opt-title"><?php _e('User demo name', 'wpchatbot'); ?></h4>
839 <input type="text" class="form-control qc-opt-dcs-font"
840 name="qlcd_wp_chatbot_shopper_demo_name"
841 value="<?php echo(get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo'); ?>">
842 </div>
843 <div class="form-group">
844 <h4 class="qc-opt-title"><?php _e('YES', 'wpchatbot'); ?></h4>
845 <input type="text" class="form-control qc-opt-dcs-font"
846 name="qlcd_wp_chatbot_yes"
847 value="<?php echo(get_option('qlcd_wp_chatbot_yes') != '' ? get_option('qlcd_wp_chatbot_yes') : 'YES'); ?>">
848 </div>
849 <div class="form-group">
850 <h4 class="qc-opt-title"><?php _e('NO', 'wpchatbot'); ?></h4>
851 <input type="text" class="form-control qc-opt-dcs-font"
852 name="qlcd_wp_chatbot_no"
853 value="<?php echo(get_option('qlcd_wp_chatbot_no') != '' ? get_option('qlcd_wp_chatbot_no') : 'NO'); ?>">
854 </div>
855 <div class="form-group">
856 <h4 class="qc-opt-title"><?php _e('OR', 'wpchatbot'); ?></h4>
857 <input type="text" class="form-control qc-opt-dcs-font"
858 name="qlcd_wp_chatbot_or"
859 value="<?php echo(get_option('qlcd_wp_chatbot_or') != '' ? get_option('qlcd_wp_chatbot_or') : 'OR'); ?>">
860 </div>
861 <div class="form-group">
862 <h4 class="qc-opt-title"><?php _e('Sorry', 'wpchatbot'); ?></h4>
863 <input type="text" class="form-control qc-opt-dcs-font"
864 name="qlcd_wp_chatbot_sorry"
865 value="<?php echo(get_option('qlcd_wp_chatbot_sorry') != '' ? get_option('qlcd_wp_chatbot_sorry') : 'Sorry'); ?>">
866 </div>
867 <div class="form-group">
868 <?php
869 $agent_join_options = unserialize(get_option('qlcd_wp_chatbot_agent_join'));
870 $agent_join_option = 'qlcd_wp_chatbot_agent_join';
871 $agent_join_text = __('has joined the conversation', 'wpchatbot');
872 $this->qcld_wb_chatbot_dynamic_multi_option($agent_join_options, $agent_join_option, $agent_join_text);
873 ?>
874 </div>
875 </div>
876 <!--col-xs-12-->
877 <div class="col-xs-12" id="wp-chatbot-language-section">
878 <h4 class="text-success"><?php _e(' Message setting for Greetings: ', 'wpchatbot'); ?></h4>
879 <div class="form-group">
880 <?php
881 $welcome_to_options = unserialize(get_option('qlcd_wp_chatbot_welcome'));
882 $welcome_to_option = 'qlcd_wp_chatbot_welcome';
883 $welcome_to_text =__('Welcome to', 'wpchatbot');
884 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_to_options, $welcome_to_option, $welcome_to_text);
885 ?>
886 </div>
887 <div class="form-group">
888 <?php
889 $welcome_back_options = unserialize(get_option('qlcd_wp_chatbot_welcome_back'));
890 $welcome_back_option = 'qlcd_wp_chatbot_welcome_back';
891 $welcome_back_text = __('Welcome back', 'wpchatbot');
892 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_back_options, $welcome_back_option, $welcome_back_text);
893 ?>
894 </div>
895 <div class="form-group">
896 <?php
897 $back_to_start_options = unserialize(get_option('qlcd_wp_chatbot_back_to_start'));
898 $back_to_start_option = 'qlcd_wp_chatbot_back_to_start';
899 $back_to_start_text = __('Back to Start', 'wpchatbot');
900 $this->qcld_wb_chatbot_dynamic_multi_option($back_to_start_options, $back_to_start_option, $back_to_start_text);
901 ?>
902 </div>
903 <div class="form-group">
904 <?php
905 $hi_there_options = unserialize(get_option('qlcd_wp_chatbot_hi_there'));
906 $hi_there_option = 'qlcd_wp_chatbot_hi_there';
907 $hi_there_text = __('Hi There!', 'wpchatbot');
908 $this->qcld_wb_chatbot_dynamic_multi_option($hi_there_options, $hi_there_option, $hi_there_text);
909 ?>
910 </div>
911 <div class="form-group">
912 <?php
913 $asking_name_options = unserialize(get_option('qlcd_wp_chatbot_asking_name'));
914 $asking_name_option = 'qlcd_wp_chatbot_asking_name';
915 $asking_name_text = __('May I know your name?', 'wpchatbot');
916 $this->qcld_wb_chatbot_dynamic_multi_option($asking_name_options, $asking_name_option, $asking_name_text);
917 ?>
918 </div>
919 <div class="form-group">
920 <?php
921 $i_am_options = unserialize(get_option('qlcd_wp_chatbot_i_am'));
922 $i_am_option = 'qlcd_wp_chatbot_i_am';
923 $i_am_text = __('I am', 'wpchatbot');
924 $this->qcld_wb_chatbot_dynamic_multi_option($i_am_options, $i_am_option, $i_am_text);
925 ?>
926 </div>
927 <div class="form-group">
928 <?php
929 $name_greeting_options = unserialize(get_option('qlcd_wp_chatbot_name_greeting'));
930 $name_greeting_option = 'qlcd_wp_chatbot_name_greeting';
931 $name_greeting_text = __('Nice to meet you', 'wpchatbot');
932 $this->qcld_wb_chatbot_dynamic_multi_option($name_greeting_options, $name_greeting_option, $name_greeting_text);
933 ?>
934 </div>
935 <div class="form-group">
936 <?php
937 $wildcard_msg_options = unserialize(get_option('qlcd_wp_chatbot_wildcard_msg'));
938 $wildcard_msg_option = 'qlcd_wp_chatbot_wildcard_msg';
939 $wildcard_msg_text = __('I am here to find what you need. What are you looking for?', 'wpchatbot');
940 $this->qcld_wb_chatbot_dynamic_multi_option($wildcard_msg_options, $wildcard_msg_option, $wildcard_msg_text);
941 ?>
942 </div>
943 <div class="form-group">
944 <?php
945 $empty_filter_msgs = unserialize(get_option('qlcd_wp_chatbot_empty_filter_msg'));
946 $empty_filter_msg = 'qlcd_wp_chatbot_empty_filter_msg';
947 $empty_filter_msg_text = __('Sorry, I did not understand that', 'wpchatbot');
948 $this->qcld_wb_chatbot_dynamic_multi_option($empty_filter_msgs, $empty_filter_msg, $empty_filter_msg_text);
949 ?>
950 </div>
951
952 <h4 class="text-success"> <?php _e('Message setting for Editor Box ', 'wpchatbot'); ?></h4>
953 <div class="form-group">
954 <?php
955 $is_typing_options = unserialize(get_option('qlcd_wp_chatbot_is_typing'));
956 $is_typing_option = 'qlcd_wp_chatbot_is_typing';
957 $is_typing_text = __('is typing...', 'wpchatbot');
958 $this->qcld_wb_chatbot_dynamic_multi_option($is_typing_options, $is_typing_option, $is_typing_text);
959 ?>
960 </div>
961 <div class="form-group">
962 <?php
963 $send_a_msg_options = unserialize(get_option('qlcd_wp_chatbot_send_a_msg'));
964 $send_a_msg_option = 'qlcd_wp_chatbot_send_a_msg';
965 $send_a_msg_text =__('Send a message', 'wpchatbot');
966 $this->qcld_wb_chatbot_dynamic_multi_option($send_a_msg_options, $send_a_msg_option, $send_a_msg_text);
967 ?>
968 </div>
969 <div class="form-group">
970 <?php
971 $choose_option_options = unserialize(get_option('qlcd_wp_chatbot_choose_option'));
972 $choose_option_option = 'qlcd_wp_chatbot_choose_option';
973 $choose_option_text = __('Choose an option', 'wpchatbot');
974 $this->qcld_wb_chatbot_dynamic_multi_option($choose_option_options, $choose_option_option, $choose_option_text);
975 ?>
976 </div>
977
978
979
980 <div class="form-group">
981 <?php
982 $asking_email_options = unserialize(get_option('qlcd_wp_chatbot_asking_email'));
983 $asking_email_option = 'qlcd_wp_chatbot_asking_email';
984 $asking_email_text = __('Please provide your email address', 'wpchatbot');
985 $this->qcld_wb_chatbot_dynamic_multi_option($asking_email_options, $asking_email_option, $asking_email_text);
986 ?>
987 </div>
988 <div class="form-group">
989 <?php
990 $invalid_email_options = unserialize(get_option('qlcd_wp_chatbot_invalid_email'));
991 $invalid_email_option = 'qlcd_wp_chatbot_invalid_email';
992 $invalid_email_text = __('Sorry, Email address is not valid! Please provide a valid email.', 'wpchatbot');
993 $this->qcld_wb_chatbot_dynamic_multi_option($invalid_email_options, $invalid_email_option, $invalid_email_text);
994 ?>
995 </div>
996 <div class="form-group">
997 <?php
998 $asking_msg_options = unserialize(get_option('qlcd_wp_chatbot_asking_msg'));
999 $asking_msg_option = 'qlcd_wp_chatbot_asking_msg';
1000 $asking_msg_text = __('Thank you for email address. Please write your message now.', 'wpchatbot');
1001 $this->qcld_wb_chatbot_dynamic_multi_option($asking_msg_options, $asking_msg_option, $asking_msg_text);
1002 ?>
1003 </div>
1004
1005
1006
1007 <div class="form-group">
1008 <h4 class="qc-opt-title"><?php _e('WPBot Support Mail Subject', 'wpchatbot'); ?></h4>
1009 <input type="text" class="form-control qc-opt-dcs-font"
1010 name="qlcd_wp_chatbot_email_sub"
1011 value="<?php echo(get_option('qlcd_wp_chatbot_email_sub') != '' ? get_option('qlcd_wp_chatbot_email_sub') : 'Support Email Subject'); ?>">
1012 </div>
1013
1014 <div class="form-group">
1015 <?php
1016 $support_option_again_options = unserialize(get_option('qlcd_wp_chatbot_support_option_again'));
1017 $support_option_again_option = 'qlcd_wp_chatbot_support_option_again';
1018 $support_option_again_text = __('You may choose option from below.', 'wpchatbot');
1019 $this->qcld_wb_chatbot_dynamic_multi_option($support_option_again_options, $support_option_again_option, $support_option_again_text);
1020 ?>
1021 </div>
1022
1023 <div class="form-group">
1024 <h4 class="qc-opt-title"><?php _e('Your email was sent successfully.Thanks!', 'wpchatbot'); ?></h4>
1025 <input type="text" class="form-control qc-opt-dcs-font"
1026 name="qlcd_wp_chatbot_email_sent"
1027 value="<?php echo(get_option('qlcd_wp_chatbot_email_sent') != '' ? get_option('qlcd_wp_chatbot_email_sent') : 'Your email was sent successfully.Thanks!'); ?>">
1028 </div>
1029 <div class="form-group">
1030 <h4 class="qc-opt-title"><?php _e('Sorry! I could not send your mail! Please contact the webmaster.', 'wpchatbot'); ?></h4>
1031 <input type="text" class="form-control qc-opt-dcs-font"
1032 name="qlcd_wp_chatbot_email_fail"
1033 value="<?php echo(get_option('qlcd_wp_chatbot_email_fail') != '' ? get_option('qlcd_wp_chatbot_email_fail') : 'Sorry! fail to send email'); ?>">
1034 </div>
1035
1036
1037
1038 <div class="form-group">
1039 <?php
1040 $support_phone_options = unserialize(get_option('qlcd_wp_chatbot_support_phone'));
1041 $support_phone_option = 'qlcd_wp_chatbot_support_phone';
1042 $support_phone_text = __('Leave your number. We will call you back!', 'wpchatbot');
1043 $this->qcld_wb_chatbot_dynamic_multi_option($support_phone_options, $support_phone_option, $support_phone_text);
1044 ?>
1045 </div>
1046 <div class="form-group">
1047 <?php
1048 $asking_phone_options = unserialize(get_option('qlcd_wp_chatbot_asking_phone'));
1049 $asking_phone_option = 'qlcd_wp_chatbot_asking_phone';
1050 $asking_phone_text = __('Please provide your Phone number', 'wpchatbot');
1051 $this->qcld_wb_chatbot_dynamic_multi_option($asking_phone_options, $asking_phone_option, $asking_phone_text);
1052 ?>
1053 </div>
1054 <div class="form-group">
1055 <?php
1056 $thanks_phone_options = unserialize(get_option('qlcd_wp_chatbot_thank_for_phone'));
1057 $thanks_phone_option = 'qlcd_wp_chatbot_thank_for_phone';
1058 $thanks_phone_text = __('Thank you for Phone number', 'wpchatbot');
1059 $this->qcld_wb_chatbot_dynamic_multi_option($thanks_phone_options, $thanks_phone_option, $thanks_phone_text);
1060 ?>
1061 </div>
1062
1063 <div class="form-group">
1064 <h4 class="qc-opt-title"><?php _e('Thanks for your phone number. We will call you ASAP!', 'wpchatbot'); ?></h4>
1065 <input type="text" class="form-control qc-opt-dcs-font"
1066 name="qlcd_wp_chatbot_phone_sent"
1067 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!'); ?>">
1068 </div>
1069 <div class="form-group">
1070 <h4 class="qc-opt-title"><?php _e('Sorry! I could not collect phone number! Please contact the webmaster.', 'wpchatbot'); ?></h4>
1071 <input type="text" class="form-control qc-opt-dcs-font"
1072 name="qlcd_wp_chatbot_phone_fail"
1073 value="<?php echo(get_option('qlcd_wp_chatbot_phone_fail') != '' ? get_option('qlcd_wp_chatbot_phone_fail') : 'Sorry! I could not collect phone number!'); ?>">
1074 </div>
1075
1076
1077
1078
1079
1080
1081 </div>
1082 </div>
1083 </div>
1084 </div>
1085
1086 <div id="wp-chatbot-lng-support" class="tab-pane fade">
1087 <div class="top-section">
1088 <div class="row">
1089 <div class="col-xs-12" id="wp-chatbot-language-section">
1090 <div class="form-group">
1091 <?php
1092 $wildcard_support_options = unserialize(get_option('qlcd_wp_chatbot_wildcard_support'));
1093 $wildcard_support_option = 'qlcd_wp_chatbot_wildcard_support';
1094 $wildcard_support_text = __('FAQ', 'wpchatbot');
1095 $this->qcld_wb_chatbot_dynamic_multi_option($wildcard_support_options, $wildcard_support_option, $wildcard_support_text);
1096 ?>
1097 </div>
1098 <div class="form-group">
1099 <?php
1100 $support_welcome_options = unserialize(get_option('qlcd_wp_chatbot_support_welcome'));
1101 $support_welcome_option = 'qlcd_wp_chatbot_support_welcome';
1102 $support_welcome_text = __('Welcome to FAQ Section', 'wpchatbot');
1103 $this->qcld_wb_chatbot_dynamic_multi_option($support_welcome_options, $support_welcome_option, $support_welcome_text);
1104 ?>
1105 </div>
1106 <!--<div class="form-group">
1107 <?php
1108 $support_email_options = unserialize(get_option('qlcd_wp_chatbot_support_email'));
1109 $support_email_option = 'qlcd_wp_chatbot_support_email';
1110 $support_email_text = __('Click me if you want to send us a email.', 'wpchatbot');
1111 $this->qcld_wb_chatbot_dynamic_multi_option($support_email_options, $support_email_option, $support_email_text);
1112 ?>
1113 </div>-->
1114
1115
1116 <!--<div class="form-group">
1117 <?php
1118 $feedback_label_options = unserialize(get_option('qlcd_wp_chatbot_feedback_label'));
1119 $feedback_label_option = 'qlcd_wp_chatbot_feedback_label';
1120 $feedback_label_text = __('Send Feedback!', 'wpchatbot');
1121 $this->qcld_wb_chatbot_dynamic_multi_option($feedback_label_options, $feedback_label_option, $feedback_label_text);
1122 ?>
1123 </div>-->
1124
1125
1126 </div>
1127 </div>
1128 </div>
1129 </div>
1130
1131 <div id="wp-chatbot-lng-system-keyword" class="tab-pane fade">
1132 <div class="top-section">
1133 <div class="row">
1134 <div class="col-xs-12" id="wp-chatbot-language-section">
1135 <div class="form-group">
1136 <h4 class="qc-opt-title"><?php _e('Start Keyword', 'wpchatbot'); ?></h4>
1137 <input type="text" class="form-control qc-opt-dcs-font"
1138 name="qlcd_wp_chatbot_sys_key_help"
1139 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_help') != '' ? get_option('qlcd_wp_chatbot_sys_key_help') : 'start'); ?>">
1140 </div>
1141
1142
1143
1144 <div class="form-group">
1145 <h4 class="qc-opt-title"><strong><?php _e('FAQ', 'wpchatbot'); ?></strong> <?php _e('Keyword', 'wpchatbot'); ?></h4>
1146 <input type="text" class="form-control qc-opt-dcs-font"
1147 name="qlcd_wp_chatbot_sys_key_support"
1148 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_support') != '' ? get_option('qlcd_wp_chatbot_sys_key_support') : 'faq'); ?>">
1149 </div>
1150 <div class="form-group">
1151 <h4 class="qc-opt-title"><strong><?php _e('Converstion History Clear', 'wpchatbot'); ?></strong> <?php _e('Keyword', 'wpchatbot'); ?></h4>
1152 <input type="text" class="form-control qc-opt-dcs-font"
1153 name="qlcd_wp_chatbot_sys_key_reset"
1154 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_reset') != '' ? get_option('qlcd_wp_chatbot_sys_key_reset') : 'reset'); ?>">
1155 </div>
1156 <div class="form-group">
1157 <?php
1158 $help_welcome_options = unserialize(get_option('qlcd_wp_chatbot_help_welcome'));
1159 $help_welcome_option = 'qlcd_wp_chatbot_help_welcome';
1160 $help_welcome_text = 'Welcome to Help Section';
1161 $this->qcld_wb_chatbot_dynamic_multi_option($help_welcome_options, $help_welcome_option, $help_welcome_text);
1162 ?>
1163 </div>
1164 <div class="form-group">
1165 <?php
1166 $help_msg_options = unserialize(get_option('qlcd_wp_chatbot_help_msg'));
1167 $help_msg_option = 'qlcd_wp_chatbot_help_msg';
1168 $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.';
1169 $this->qcld_wb_chatbot_dynamic_multi_option($help_msg_options, $help_msg_option, $help_msg_text);
1170 ?>
1171 </div>
1172 <div class="form-group">
1173 <?php
1174 $reset_options = unserialize(get_option('qlcd_wp_chatbot_reset'));
1175 $reset_option = 'qlcd_wp_chatbot_reset';
1176 $reset_text = 'Do you want to clear our chat history and start over?';
1177 $this->qcld_wb_chatbot_dynamic_multi_option($reset_options, $reset_option, $reset_text);
1178 ?>
1179 </div>
1180 </div>
1181 <!-- col-xs-12-->
1182 </div>
1183 <!-- row-->
1184 </div>
1185 <!-- top-section-->
1186 </div>
1187 <!-- wp-chatbot-lng-system-keyword-->
1188 </div>
1189 <!-- tab-content-->
1190 </section>
1191
1192
1193 <section id="section-flip-5">
1194 <?php
1195 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');
1196 ?>
1197 <div class="top-section">
1198 <div class="notification-block-inner">
1199 <div class="row">
1200 <div class="col-xs-12">
1201
1202 <h2>Start Menu</h2>
1203 <p>If you leave the Menu Area blank then default start menu will be shown.</p>
1204 <div class="qc_menu_setup_area">
1205
1206 <div class="qc_menu_area">
1207 <h3>Menu Area</h3>
1208 <p>Drag an menu item to Menu List to remove the item from Menu Area.</p>
1209 <p>You can re-order menu item by drag it up and down.</p>
1210 <div class="qc_menu_area_container" id="qc_menu_area">
1211
1212 <?php echo stripslashes(get_option('qc_wpbot_menu_order')); ?>
1213
1214 </div>
1215 </div>
1216
1217 <div class="qc_menu_list_area" style="margin-top: 29px;">
1218 <h3>Menu List</h3>
1219 <p>Drag an menu item and drop it in Menu area.</p>
1220 <div class="qc_menu_list_container">
1221 <p>Predefined Intents</p>
1222 <ul>
1223
1224
1225
1226
1227 <li>
1228 <?php if(get_option('disable_wp_chatbot_faq')==''): ?>
1229 <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="support"><?php echo qcld_choose_random(unserialize(get_option('qlcd_wp_chatbot_wildcard_support'))); ?></span>
1230 <?php endif; ?>
1231
1232 </li>
1233 <li>
1234 <?php if(get_option('enable_wp_chatbot_messenger')=='1'): ?>
1235 <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>
1236 <?php endif; ?>
1237
1238 </li>
1239
1240 <li>
1241 <?php if(get_option('enable_wp_chatbot_whats')=='1'): ?>
1242 <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>
1243 <?php endif; ?>
1244
1245 </li>
1246
1247 <li>
1248 <?php if(get_option('disable_wp_chatbot_feedback')==''): ?>
1249 <span class="qcld-chatbot-suggest-email qc_draggable_item">Send Us Email</span>
1250 <?php endif; ?>
1251
1252 </li>
1253
1254
1255
1256 <li>
1257 <?php if(get_option('disable_wp_chatbot_call_gen')==''): ?>
1258 <span class="qcld-chatbot-suggest-phone qc_draggable_item" ><?php echo qcld_choose_random(unserialize(get_option('qlcd_wp_chatbot_support_phone'))); ?></span>
1259 <?php endif; ?>
1260
1261 </li>
1262
1263
1264 </ul>
1265
1266
1267
1268
1269 <?php
1270 if(class_exists('Qcformbuilder_Forms_Admin')){
1271 global $wpdb;
1272
1273 $results = $wpdb->get_results("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type='primary'");
1274 if(!empty($results)){
1275 ?>
1276 <p>Conversational Form</p>
1277 <ul>
1278 <?php
1279 foreach($results as $result){
1280 $form = unserialize($result->config);
1281 ?>
1282 <li><span class="qcld-chatbot-wildcard qcld-chatbot-form qc_draggable_item" data-form="<?php echo $form['ID']; ?>" ><?php echo $form['name']; ?></span></li>
1283 <?php
1284 }
1285 ?>
1286 </ul>
1287 <?php
1288 }
1289 }
1290 ?>
1291
1292
1293 </div>
1294
1295 </div>
1296
1297 </div>
1298
1299 <input id="qc_wpbot_menu_order" type="hidden" name="qc_wpbot_menu_order" value='<?php echo stripslashes(get_option('qc_wpbot_menu_order')); ?>' />
1300
1301 </div>
1302 </div>
1303 </div>
1304 </div>
1305 </section>
1306
1307 <!--<section id="section-flip-8">
1308 <div class="top-section">
1309 <div class="wp-chatbot-language-center-summmery">
1310 <p><?php _e('WPBot will be opened based on the following settings', 'wpchatbot'); ?> </p>
1311 </div>
1312 <div class="row">
1313 <div class="col-xs-12">
1314 <h4 class="qc-opt-title"><?php _e('Enable Bot Activity Hour', 'wpchatbot'); ?> </h4>
1315 <div class="cxsc-settings-blocks" style="padding:0 20px;">
1316 <input value="1" id="enable_wp_chatbot_opening_hour" type="checkbox"
1317 name="enable_wp_chatbot_opening_hour" <?php echo(get_option('enable_wp_chatbot_opening_hour') == 1 ? 'checked' : ''); ?>>
1318 <label for="enable_wp_chatbot_opening_hour"><?php _e('If enabled WPBot will show only during the time schedule you set below. The timezone you set from WordPress general settings will be used.', 'wpchatbot'); ?> </label>
1319 </div>
1320 </div>
1321 </div>
1322 <style>
1323 .wp-chatbot-hours-container{
1324 padding:0px 0 15px 0;
1325 display: flex;
1326 justify-content: space-between;
1327 }
1328 .wp-chatbot-hours{
1329 /*width:75%;*/
1330 display: inline-block;
1331 }
1332 .wp-chatbot-hours input{
1333 display: inline-block;
1334 width: 40%;
1335 padding-right: 10px;
1336 text-align: center;
1337 }
1338 .wp-chatbot-hours-remove{
1339 display: inline-block;
1340 /*width:20%;*/
1341 }
1342 </style>
1343 <div class="row" id="wp-chatbot-hours-wrapper">
1344 <div class="col-xs-12">
1345 <h4 class="qc-opt-title"><?php _e('WPBot Bot Activity Hours', 'wpchatbot'); ?> </h4>
1346 <?php
1347
1348 if(get_option('wpwbot_hours')){
1349 $wpwbot_times=unserialize(get_option('wpwbot_hours'));
1350 }else{
1351 $wpwbot_times=array();
1352 }
1353 ?>
1354 <div class="row">
1355 <div class="col-xs-3">Monday</div>
1356 <div class="col-xs-4 wp-chatbot-day">
1357 <?php
1358 $this->wp_chatbot_opening_hours('monday',$wpwbot_times);
1359 ?>
1360 </div>
1361 <div class="col-xs-3">
1362 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="monday">
1363 <i class="fa fa-plus" aria-hidden="true"></i> Add
1364 </button>
1365 </div>
1366 </div>
1367 <div class="row">
1368 <div class="col-xs-3">Tuesday</div>
1369 <div class="col-xs-4 wp-chatbot-day">
1370 <?php
1371 $this->wp_chatbot_opening_hours('tuesday',$wpwbot_times);
1372 ?>
1373 </div>
1374 <div class="col-xs-3">
1375 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="tuesday">
1376 <i class="fa fa-plus" aria-hidden="true"></i> Add
1377 </button>
1378 </div>
1379 </div>
1380 <div class="row">
1381 <div class="col-xs-3">Wednesday</div>
1382 <div class="col-xs-4 wp-chatbot-day">
1383 <?php
1384 $this->wp_chatbot_opening_hours('wednesday',$wpwbot_times);
1385 ?>
1386 </div>
1387 <div class="col-xs-3">
1388 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="wednesday">
1389 <i class="fa fa-plus" aria-hidden="true"></i> Add
1390 </button>
1391 </div>
1392 </div>
1393 <div class="row">
1394 <div class="col-xs-3">Thursday</div>
1395 <div class="col-xs-4 wp-chatbot-day">
1396 <?php
1397 $this->wp_chatbot_opening_hours('thursday',$wpwbot_times);
1398 ?>
1399 </div>
1400 <div class="col-xs-3">
1401 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="thursday">
1402 <i class="fa fa-plus" aria-hidden="true"></i> Add
1403 </button>
1404 </div>
1405 </div>
1406 <div class="row">
1407 <div class="col-xs-3">Friday</div>
1408 <div class="col-xs-4 wp-chatbot-day">
1409 <?php
1410 $this->wp_chatbot_opening_hours('friday',$wpwbot_times);
1411 ?>
1412 </div>
1413 <div class="col-xs-3">
1414 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="friday">
1415 <i class="fa fa-plus" aria-hidden="true"></i> Add
1416 </button>
1417 </div>
1418 </div>
1419 <div class="row">
1420 <div class="col-xs-3">Saturday</div>
1421 <div class="col-xs-4 wp-chatbot-day">
1422 <?php
1423 $this->wp_chatbot_opening_hours('saturday',$wpwbot_times);
1424 ?>
1425 </div>
1426 <div class="col-xs-3">
1427 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="saturday">
1428 <i class="fa fa-plus" aria-hidden="true"></i> Add
1429 </button>
1430 </div>
1431 </div>
1432 <div class="row">
1433 <div class="col-xs-3">Sunday</div>
1434 <div class="col-xs-4 wp-chatbot-day">
1435 <?php
1436 $this->wp_chatbot_opening_hours('sunday',$wpwbot_times);
1437 ?>
1438 </div>
1439 <div class="col-xs-3">
1440 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="sunday">
1441 <i class="fa fa-plus" aria-hidden="true"></i> Add
1442 </button>
1443 </div>
1444 </div>
1445 </div>
1446 </div>
1447 </div>
1448
1449 </section>-->
1450 <section id="section-flip-6">
1451 <div class="top-section">
1452 <div class="wp-chatbot-language-center-summmery">
1453 <p><?php _e('DialogFlow as Artificial Intelligences Engine for wpwBot', 'wpchatbot'); ?> </p>
1454 </div>
1455 <div class="row">
1456 <div class="col-xs-12">
1457 <p class="wpqcld_chk_seft">
1458 <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>
1459 </p>
1460 </div>
1461 </div>
1462 <div class="row">
1463 <div class="col-xs-12">
1464 <h4 class="qc-opt-title"><?php _e('Enable DialogFlow as AI Engine to Detect Intent', 'wpchatbot'); ?> </h4>
1465 <div class="cxsc-settings-blocks">
1466 <input value="1" id="enable_wp_chatbot_dailogflow" type="checkbox"
1467 name="enable_wp_chatbot_dailogflow" <?php echo(get_option('enable_wp_chatbot_dailogflow') == 1 ? 'checked' : ''); ?>>
1468 <label for="enable_wp_chatbot_dailogflow"><?php _e('Enable DialogFlow AI Engine to process Natural Language commands from users.', 'wpchatbot'); ?> </label>
1469 </div>
1470 </div>
1471 <div class="col-xs-12">
1472 <br>
1473 <p><?php _e('You will need an Access Token from DialogFlow. Log in to DialogFlow Console from', 'wpchatbot'); ?>
1474 <a style="text-decoration:underline;color:blue" href="https://dialogflow.com/" target="_blank"><?php _e('Here', 'wpchatbot'); ?></a> <?php _e('with your gmail account. Create a new agent and copy the Client Access Token from Settings.', 'wpchatbot'); ?> </p>
1475
1476 <p><a style="text-decoration:underline;color:blue" href="<?php echo QCLD_wpCHATBOT_PLUGIN_URL; ?>download/wpwBot.zip" download ><?php _e('Download', 'wpchatbot'); ?></a> <?php _e('the agent training data and import from DialogFlow->Settings->Export and Import tab. You can add or modify Training phrases under the Intents. But .', 'wpchatbot'); ?><b><?php _e('do NOT modify or delete the Intents we have created.', 'wpchatbot'); ?></b> </p>
1477 </div>
1478
1479 <div class="col-xs-12" id="wp-chatbot-dialflow-section">
1480 <div class="form-group">
1481 <h4 class="qc-opt-title"><?php _e('DialogFlow client Access Token', 'wpchatbot'); ?></h4>
1482 <input type="text" class="form-control qc-opt-dcs-font"
1483 name="qlcd_wp_chatbot_dialogflow_client_token"
1484 value="<?php echo(get_option('qlcd_wp_chatbot_dialogflow_client_token') != '' ? get_option('qlcd_wp_chatbot_dialogflow_client_token') : ''); ?>" placeholder="<?php _e('DialogFlow Client Access Token', 'wpchatbot'); ?>">
1485 </div>
1486 <div class="form-group">
1487 <h4 class="qc-opt-title"><?php _e('DialofFlow Defualt reply', 'wpchatbot'); ?></h4>
1488 <input type="text" class="form-control qc-opt-dcs-font"
1489 name="qlcd_wp_chatbot_dialogflow_defualt_reply"
1490 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 _e('DialogFlow defualt reply', 'wpchatbot'); ?>">
1491 </div>
1492
1493
1494 <div class="form-group">
1495 <h4 class="qc-opt-title"><?php echo esc_html__('DialogFlow Agent Language (Ex: en)', 'wpchatbot'); ?></h4>
1496 <input type="text" class="form-control qc-opt-dcs-font"
1497 name="qlcd_wp_chatbot_dialogflow_agent_language"
1498 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'); ?>">
1499 </div>
1500
1501 </div>
1502 </div>
1503 </div>
1504
1505 </section>
1506 <!--<section id="section-flip-10">
1507 <div class="wp-chatbot-language-center-summmery">
1508 <p><?php _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 _e(' the Mobile App Addon.', 'wpchatbot'); ?></a>
1509 </div>
1510 <div class="top-section">
1511 <div class="row">
1512 <div class="col-xs-12">
1513 <h4 class="qc-opt-title"><?php _e('Mobile App Pages', 'wpchatbot'); ?> </h4>
1514 <div class="cxsc-settings-blocks">
1515 <input value="1" id="wp_chatbot_app_pages" type="checkbox"
1516 name="wp_chatbot_app_pages" <?php echo(get_option('wp_chatbot_app_pages') == 1 ? 'checked' : ''); ?>>
1517 <label for="wp_chatbot_app_pages"><?php _e('Create pages for WpBot Mobile App', 'wpchatbot'); ?> </label>
1518 </div>
1519 <br>
1520 <p class="qc-opt-title-font"><?php _e('Following pages will be created to use in', 'wpchatbot'); ?> <strong> <?php _e('WpBot', 'wpchatbot'); ?> </strong> <?php _e(' Android or IOS Mobile App', 'wpchatbot'); ?>.</p>
1521 <ol>
1522 <li><?php _e('WpBot Mobile App', 'wpchatbot'); ?></li>
1523 <li><?php _e('WpBot App Checkout', 'wpchatbot'); ?></li>
1524 <li><?php _e('WpBot App Order Thank You', 'wpchatbot'); ?></li>
1525 </ol>
1526 <p class="qc-opt-title-font"><?php _e('Follow the', 'wpchatbot'); ?> <strong> <?php _e('Documentation', 'wpchatbot'); ?> </strong> <?php _e('to build & publish a Mobile Application (Android or IOS ) for your store using any of', 'wpchatbot'); ?> </p>
1527 <ol>
1528 <li><?php _e('WpBot Ionic FrameWork package', 'wpchatbot'); ?></li>
1529 <li><?php _e('WpBot PhoneGap package', 'wpchatbot'); ?></li>
1530 </ol>
1531 </div>
1532 </div>
1533 </div>
1534
1535 </section>-->
1536
1537
1538 <section id="section-flip-7">
1539 <div class="top-section">
1540 <div class="row">
1541 <div class="col-xs-12">
1542
1543 <?php wp_enqueue_style( 'qcpd-google-font-lato', 'https://fonts.googleapis.com/css?family=Lato' ); ?>
1544 <?php wp_enqueue_style( 'qcpd-style-addon-page', QCLD_wpCHATBOT_PLUGIN_URL.'qc-support-promo-page/css/style.css' ); ?>
1545 <?php wp_enqueue_style( 'qcpd-style-responsive-addon-page', QCLD_wpCHATBOT_PLUGIN_URL.'qc-support-promo-page/css/responsive.css' ); ?>
1546
1547 <div class="qc_support_container"><!--qc_support_container-->
1548
1549 <div class="qc_tabcontent clearfix-div">
1550 <div class="qc-row">
1551 <div class="wpbot-chatbot-pro-link">
1552 <a href="https://www.quantumcloud.com/products/chatbot-for-wordpress/" target="_blank" >Get the ChatBot Pro <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/wp-bot-logo.png'); ?>" /></a>
1553 </div>
1554 <h2 class="plugin-title wpbot_page_title" style="text-align:center" >Extend <a href="https://www.quantumcloud.com/products/chatbot-for-wordpress/" target="_blank">WPBot Pro</a> and give it more Super Powers</h2>
1555 <p style="text-align:center">Following AddOns and Themes are available for the <a href="https://www.quantumcloud.com/products/chatbot-for-wordpress/" target="_blank">WPBot pro!</a></p>
1556 <div class="qc-column-12"><!-- qc-column-4 -->
1557 <!-- Feature Box 1 -->
1558 <div class="support-block ">
1559 <div class="support-block-img">
1560 <a href="<?php echo esc_url('https://www.quantumcloud.com/products/themes/chatbot-theme/'); ?>" target="_blank"> <img class="wp_addon_fullwidth" src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/ChatBot-Master-theme.png'); ?>" alt=""></a>
1561 </div>
1562 <div class="support-block-info">
1563 <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">ChatBot Master Theme</a></h4>
1564 <p style="margin-top: -24px;margin-bottom: 50px;">Get a ChatBot Powered Theme!</p>
1565 </div>
1566 </div>
1567 </div><!--/qc-column-4 -->
1568 <div class="qc-column-6"><!-- qc-column-4 -->
1569 <!-- Feature Box 1 -->
1570 <div class="support-block support-block-custom">
1571 <div class="support-block-img">
1572 <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/chatbot-addons.png'); ?>" alt=""></a>
1573 </div>
1574 <div class="support-block-info">
1575 <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">ChatBot Addons</a></h4>
1576 <p>Empower WPBot and WoowBot Extend Capabilities with AddOns!</p>
1577
1578 </div>
1579 </div>
1580 </div><!--/qc-column-4 -->
1581 <div class="qc-column-6"><!-- qc-column-4 -->
1582 <!-- Feature Box 1 -->
1583 <div class="support-block support-block-custom">
1584 <div class="support-block-img">
1585 <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/custom-post-type-addon-logo.png'); ?>" alt=""></a>
1586 </div>
1587 <div class="support-block-info">
1588 <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">Extended Search</a></h4>
1589 <p>Extend WPBot’s search power to include almost any Custom Post Type including WooCommerce</p>
1590
1591 </div>
1592 </div>
1593 </div><!--/qc-column-4 -->
1594
1595 <div class="qc-column-6"><!-- qc-column-4 -->
1596 <!-- Feature Box 1 -->
1597 <div class="support-block support-block-custom">
1598 <div class="support-block-img">
1599 <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/messenger-chatbot.png'); ?>" alt=""></a>
1600 </div>
1601 <div class="support-block-info">
1602 <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">Messenger ChatBot Addon</a></h4>
1603 <p>Utilize the WPBot on your website as a hub to respond to customer questions on FB Page & Messenger</p>
1604
1605 </div>
1606 </div>
1607 </div><!--/qc-column-4 -->
1608
1609
1610 <div class="qc-column-6"><!-- qc-column-4 -->
1611 <!-- Feature Box 1 -->
1612 <div class="support-block support-block-custom">
1613 <div class="support-block-img">
1614 <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/chatbot-sesssion-save.png'); ?>" alt=""></a>
1615 </div>
1616 <div class="support-block-info">
1617 <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">ChatBot Session Save Addon</a></h4>
1618 <p>This AddOn saves the user chat sessions and helps you fine tune the bot for better support and performance.</p>
1619
1620 </div>
1621 </div>
1622 </div><!--/qc-column-4 -->
1623
1624
1625 <div class="qc-column-6"><!-- qc-column-4 -->
1626 <!-- Feature Box 1 -->
1627 <div class="support-block support-block-custom">
1628 <div class="support-block-img">
1629 <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/WPBot-LiveChat.png'); ?>" alt=""></a>
1630 </div>
1631 <div class="support-block-info">
1632 <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">LiveChat Addon</a></h4>
1633 <p>Live Human Chat integrated with WPBot<p/>
1634 </div>
1635 </div>
1636 </div><!--/qc-column-4 -->
1637
1638 <div class="qc-column-6"><!-- qc-column-4 -->
1639 <!-- Feature Box 1 -->
1640 <div class="support-block support-block-custom">
1641 <div class="support-block-img">
1642 <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/white-label.png'); ?>" alt=""></a>
1643 </div>
1644 <div class="support-block-info">
1645 <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">White Label WPBot</a></h4>
1646 <p>Replace the QuantumCloud Logo and branding with yours. Suitable for developers and agencies interested in providing ChatBot services for their clients.<p/>
1647 </div>
1648 </div>
1649 </div><!--/qc-column-4 -->
1650
1651 <div class="qc-column-6"><!-- qc-column-4 -->
1652 <!-- Feature Box 1 -->
1653 <div class="support-block support-block-custom">
1654 <div class="support-block-img">
1655 <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/mailing-list-integrationt (1).png'); ?>" alt=""></a>
1656 </div>
1657 <div class="support-block-info">
1658 <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">Mailing List Integration AddOn</a></h4>
1659 <p>Mailing List Integration is an addon that lets you connect our ChatBot with Mailchimp and Zapier accounts. You can add new subscribers to your Mailchimp Lists and unsubscribe them.<p/>
1660 </div>
1661 </div>
1662 </div><!--/qc-column-4 -->
1663 <div class="qc-column-6"><!-- qc-column-4 -->
1664 <!-- Feature Box 1 -->
1665 <div class="support-block support-block-custom">
1666 <div class="support-block-img">
1667 <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/coming-soon-special.png'); ?>" alt=""></a>
1668 </div>
1669 <div class="support-block-info">
1670 <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">More is coming soon.</a></h4>
1671
1672 </div>
1673 </div>
1674 </div><!--/qc-column-4 -->
1675
1676 </div>
1677 <!--qc row-->
1678 </div>
1679
1680 </div><!--qc_support_container-->
1681
1682
1683
1684 </div>
1685 </div>
1686 <!-- row-->
1687 </div>
1688 </section>
1689
1690
1691 </div><!-- /content -->
1692 </div><!-- /wp-chatbot-tabs -->
1693 <footer class="wp-chatbot-admin-footer">
1694 <div class="row">
1695 <div class="text-left col-sm-3 col-sm-offset-3">
1696 <input type="button" class="btn btn-warning submit-button"
1697 id="qcld-wp-chatbot-reset-option"
1698 value="<?php _e('Reset all options to Default', 'wpchatbot'); ?>"/>
1699 </div>
1700 <div class="text-right col-sm-6">
1701 <input type="submit" class="btn btn-primary submit-button" name="submit"
1702 id="submit" value="<?php _e('Save Settings', 'wpchatbot'); ?>"/>
1703 </div>
1704 </div>
1705 <!-- row-->
1706 </footer>
1707 </section>
1708 </div>
1709 <?php wp_nonce_field('wp_chatbot'); ?>
1710 </form>