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

1,450 lines 116.8 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 </div>
18 </div>
19 </header>
20 <section class="wp-chatbot-tab-container-inner">
21 <div class="wp-chatbot-tabs wp-chatbot-tabs-style-flip">
22 <nav>
23 <ul>
24 <li tab-data="general"><a href="<?php echo esc_attr($action); ?>&tab=general">
25 <span class="wpwbot-admin-tab-icon">
26 <i class="fa fa-toggle-on"> </i>
27 </span>
28 <span class="wpwbot-admin-tab-name"> <?php _e('GENERAL SETTINGS', 'wpchatbot'); ?></span>
29 </a></li>
30 <li tab-data="themes"><a href="<?php echo esc_attr($action); ?>&tab=themes">
31 <span class="wpwbot-admin-tab-icon">
32 <i class="fa fa-gear faa-spin"></i>
33 </span>
34 <span class="wpwbot-admin-tab-name"> <?php _e('ICONS & THEMES', 'wpchatbot'); ?></span>
35 </a></li>
36 <li tab-data="support"><a href="<?php echo esc_attr($action); ?>&tab=support">
37 <span class="wpwbot-admin-tab-icon">
38 <i class="fa fa-life-ring"></i>
39 </span>
40 <span class="wpwbot-admin-tab-name"> <?php _e('FAQ Builder', 'wpchatbot'); ?></span>
41 </a></li>
42 <!--<li tab-data="notification"><a href="<?php echo esc_attr($action); ?>&tab=notification">
43 <span class="wpwbot-admin-tab-icon">
44 <i class="fa fa-bell-o"></i>
45 </span>
46 <span class="wpwbot-admin-tab-name"><?php _e('Notification Builder', 'wpchatbot'); ?></span>
47 </a></li>-->
48 <li tab-data="language"><a href="<?php echo esc_attr($action); ?>&tab=language">
49 <span class="wpwbot-admin-tab-icon">
50 <i class="fa fa-language"></i>
51 </span>
52 <span class="wpwbot-admin-tab-name"><?php _e('LANGUAGE CENTER', 'wpchatbot'); ?></span>
53 </a></li>
54
55
56 <!--<li tab-data="hours"><a href="<?php echo esc_attr($action); ?>&tab=hours">
57 <span class="wpwbot-admin-tab-icon">
58 <i class="fa fa-calendar"></i>
59 </span>
60 <span class="wpwbot-admin-tab-name"><?php _e('Bot Activity Hour', 'wpchatbot'); ?></span>
61 </a></li>
62 <li tab-data="ai"><a href="<?php echo esc_attr($action); ?>&tab=ai">
63 <span class="wpwbot-admin-tab-icon">
64 <i class="fa fa-500px"></i>
65 </span>
66 <span class="wpwbot-admin-tab-name"><?php _e('Artificial intelligence', 'wpchatbot'); ?></span>
67 </a></li>-->
68 <!--<li tab-data="app"><a href="<?php echo esc_attr($action); ?>&tab=app">
69 <span class="wpwbot-admin-tab-icon">
70 <i class="fa fa-mobile"></i>
71 </span>
72 <span class="wpwbot-admin-tab-name"><?php _e('MOBILE APP', 'wpchatbot'); ?></span>
73 </a></li>
74 <li tab-data="custom"><a href="<?php echo esc_attr($action); ?>&tab=custom">
75 <span class="wpwbot-admin-tab-icon">
76 <i class="fa fa-code"></i>
77 </span>
78 <span class="wpwbot-admin-tab-name"><?php _e('Custom CSS', 'wpchatbot'); ?> </span>
79 </a></li>-->
80 </ul>
81 </nav>
82 <div class="content-wrap">
83 <section id="section-flip-1">
84 <div class="top-section">
85 <!-- row-->
86 <!--<div class="row">
87 <div class="col-xs-12">
88 <div class="cxsc-settings-blocks">
89 <div class="form-group">
90 <?php
91 $url = get_site_url();
92 $url = parse_url($url);
93 $domain = $url['host'];
94 //$admin_email = "admin@" . $domain;
95 $admin_email = get_option('admin_email');
96 ?>
97 <h4 class="qc-opt-title"><?php _e('Emails Will be Sent to', 'wpchatbot'); ?></h4>
98 <input type="text" class="form-control qc-opt-dcs-font"
99 name="qlcd_wp_chatbot_admin_email"
100 value="<?php echo(get_option('qlcd_wp_chatbot_admin_email') != '' ? get_option('qlcd_wp_chatbot_admin_email') : $admin_email); ?>">
101 </div>
102 </div>
103
104 <div class="cxsc-settings-blocks">
105 <h4 class="qc-opt-title"><?php _e('wpwBot Products Search Options', 'wpchatbot'); ?> </h4>
106 <select class="form-control" id="wp-chatbot-search-option"
107 name="qlcd_wp_chatbot_search_option">
108 <option
109 value="standard" <?php if (get_option('qlcd_wp_chatbot_search_option') == 'standard') {
110 echo 'selected';
111 } ?>><?php _e('Standard Search', 'wpchatbot'); ?>
112 </option>
113 <option
114 value="advanced" <?php if (get_option('qlcd_wp_chatbot_search_option') == 'advanced') {
115 echo 'selected';
116 } ?>><?php _e('Advanced Search', 'wpchatbot'); ?>
117 </option>
118 </select>
119 <div id="wp-chatbot-standard-search">
120 <p class="qc-opt-title-font"> <?php _e('Use wpcommerce standard products search criteria.', 'wpchatbot'); ?> </p>
121 </div>
122 <div id="wp-chatbot-advanced-search">
123 <p class="qc-opt-title-font"> <?php _e('To Enable Title, Content, Excerpt,Categories,Tag and SKU Search', 'wpchatbot'); ?> <strong><?php _e(' Re-Index Products', 'wpchatbot'); ?></strong> <strong><?php _e('is required', 'wpchatbot'); ?> .
124 </p>
125 <div class="cxsc-settings-blocks">
126 <button type="button" class="btn btn-primary"
127 id="qlcd_wp_chatbot_index"> <?php _e('Re-Index Products', 'wpchatbot'); ?>
128 </button>
129 <p><span id="qlcd_wp_chatbot_index_loader"></span> <span
130 id="qlcd_wp_chatbot_index_process"></span> <span
131 id="qlcd_wp_chatbot_index_progress"></span></p>
132 </div>
133 <p><strong style="color:red"> <?php _e('Note', 'wpchatbot'); ?> </strong> : <?php _e(' For large number of products,it may take time to complete indexing.', 'wpchatbot'); ?> </p>
134 </div>
135 </div>
136
137 </div>
138 </div>-->
139 <div class="row">
140 <div class="col-xs-12">
141 <h4 class="qc-opt-title"> <?php _e('Disable WPBot', 'wpchatbot'); ?> </h4>
142 <div class="cxsc-settings-blocks">
143 <input value="1" id="disable_wp_chatbot" type="checkbox"
144 name="disable_wp_chatbot" <?php echo(get_option('disable_wp_chatbot') == 1 ? 'checked' : ''); ?>>
145 <label for="disable_wp_chatbot"><?php _e('Disable WPBot to Load', 'wpchatbot'); ?> </label>
146 </div>
147 </div>
148 </div>
149 <!--<div class="row">
150 <div class="col-xs-12">
151 <h4 class="qc-opt-title"> <?php _e('Disable WPbot on Mobile Device', 'wpchatbot'); ?> </h4>
152 <div class="cxsc-settings-blocks">
153 <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox"
154 name="disable_wp_chatbot_on_mobile" <?php echo(get_option('disable_wp_chatbot_on_mobile') == 1 ? 'checked' : ''); ?>>
155 <label for="disable_wp_chatbot_on_mobile"><?php _e('Disable WpBot to Load on Mobile Device', 'wpchatbot'); ?> </label>
156 </div>
157 </div>
158 </div>-->
159 <!--<div class="row">
160 <div class="col-xs-12">
161 <h4 class="qc-opt-title"> <?php _e('Sound on Page Load', 'wpchatbot'); ?> </h4>
162 <div class="form-group">
163 <input value="1" id="enable_wp_chatbot_sound_initial" type="checkbox"
164 name="enable_wp_chatbot_sound_initial" <?php echo(get_option('enable_wp_chatbot_sound_initial') == 1 ? 'checked' : ''); ?>>
165 <label for="enable_wp_chatbot_sound_initial"><?php _e('Enable to play sound on initial page load', 'wpchatbot'); ?> </label>
166 </div>
167 </div>
168 </div>-->
169
170 <!-- row-->
171 <!--<div class="row">
172 <div class="col-xs-12">
173 <h4 class="qc-opt-title"> <?php _e('Disable WpBot Icon Animation', 'wpchatbot'); ?> </h4>
174 <div class="cxsc-settings-blocks">
175 <input value="1" id="disable_wp_chatbot_icon_animation" type="checkbox"
176 name="disable_wp_chatbot_icon_animation" <?php echo(get_option('disable_wp_chatbot_icon_animation') == 1 ? 'checked' : ''); ?>>
177 <label for="disable_wp_chatbot_icon_animation"><?php _e('Disable WpBot icon border animation', 'wpchatbot'); ?> </label>
178 </div>
179 </div>
180 </div>-->
181
182
183
184 <!--<div class="row">
185 <div class="col-xs-12">
186 <h4 class="qc-opt-title"><?php _e('Disable WpBot Opening Notification', 'wpchatbot'); ?> </h4>
187 <div class="cxsc-settings-blocks">
188 <input value="1" id="disable_wp_chatbot_notification" type="checkbox"
189 name="disable_wp_chatbot_notification" <?php echo(get_option('disable_wp_chatbot_notification') == 1 ? 'checked' : ''); ?>>
190 <label for="disable_wp_chatbot_notification"><?php _e('Disable WpBot Opening notification messages', 'wpchatbot'); ?> </label>
191 </div>
192 </div>
193 </div>-->
194 <div class="row">
195 <div class="col-xs-12">
196 <h4 class="qc-opt-title"><?php _e('Enable RTL Support for Chat', 'wpchatbot'); ?> </h4>
197 <div class="cxsc-settings-blocks">
198 <input value="1" id="enable_wp_chatbot_rtl" type="checkbox"
199 name="enable_wp_chatbot_rtl" <?php echo(get_option('enable_wp_chatbot_rtl') == 1 ? 'checked' : ''); ?>>
200 <label for="enable_wp_chatbot_rtl"><?php _e('Enable RTL for Chat Window', 'wpchatbot'); ?> </label>
201 </div>
202 </div>
203 </div>
204 <!--<div class="row">
205 <div class="col-xs-12">
206 <h4 class="qc-opt-title"><?php _e('Disable Call Me', 'wpchatbot'); ?> </h4>
207 <div class="cxsc-settings-blocks">
208 <input value="1" id="disable_wp_chatbot_call_sup" type="checkbox"
209 name="disable_wp_chatbot_call_sup" <?php echo(get_option('disable_wp_chatbot_call_sup') == 1 ? 'checked' : ''); ?>>
210 <label for="disable_wp_chatbot_call_sup"><?php _e('Disable Call Me button', 'wpchatbot'); ?> </label>
211 </div>
212 </div>
213 </div>
214 <div class="row">
215 <div class="col-xs-12">
216 <h4 class="qc-opt-title"><?php _e('WpBot Open Full Screen in Mobile', 'wpchatbot'); ?> </h4>
217 <div class="cxsc-settings-blocks">
218 <input value="1" id="enable_wp_chatbot_mobile_full_screen" type="checkbox"
219 name="enable_wp_chatbot_mobile_full_screen" <?php echo(get_option('enable_wp_chatbot_mobile_full_screen') == 1 ? 'checked' : ''); ?>>
220 <label for="enable_wp_chatbot_mobile_full_screen"><?php _e('Enable WpBot Open Full Screen in Mobile', 'wpchatbot'); ?> </label>
221 </div>
222 </div>
223 </div>-->
224 <!-- row-->
225 <div class="row">
226 <div class="col-xs-12">
227 <h4 class="qc-opt-title"><?php _e('Override WPBot Icon\'s Position', 'wpchatbot'); ?> </h4>
228 <div class="cxsc-settings-blocks">
229 <?php
230 $qcld_wb_chatbot_position_x = get_option('wp_chatbot_position_x');
231 if ((!isset($qcld_wb_chatbot_position_x)) || ($qcld_wb_chatbot_position_x == "")) {
232 $qcld_wb_chatbot_position_x = __("120", "wp_chatbot");
233 }
234 $qcld_wb_chatbot_position_y = get_option('wp_chatbot_position_y');
235 if ((!isset($qcld_wb_chatbot_position_y)) || ($qcld_wb_chatbot_position_y == "")) {
236 $qcld_wb_chatbot_position_y = __("120", "wp_chatbot");
237 } ?>
238 <input type="number" class="qc-opt-dcs-font"
239 name="wp_chatbot_position_x"
240 id=""
241 value="<?php echo($qcld_wb_chatbot_position_x); ?>"
242 placeholder="<?php _e('From Right In px', 'wpchatbot'); ?>"> <span class="qc-opt-dcs-font"><?php _e('From Right In px', 'wpchatbot'); ?></span>
243 <input type="number" class="qc-opt-dcs-font"
244 name="wp_chatbot_position_y"
245 id=""
246 value="<?php echo($qcld_wb_chatbot_position_y); ?>"
247 placeholder="<?php _e('From Bottom In Px', 'wpchatbot'); ?>"> <span class="qc-opt-dcs-font"><?php _e('From Bottom In px', 'wpchatbot'); ?></span>
248 </div>
249 </div>
250 <!--.col-sm-12-->
251 </div>
252 <!-- row-->
253
254 <div class="row">
255 <div class="col-xs-12">
256 <h4 class="qc-opt-title"><strong> <?php _e('WPBot', 'wpchatbot'); ?></strong> <?php _e('Loading Control Options', 'wpchatbot'); ?> </h4>
257 <div class="cxsc-settings-blocks">
258 <div class="row">
259 <div class="col-sm-4 text-right">
260 <span class="qc-opt-title-font"><?php _e('Show on Home Page', 'wpchatbot'); ?></span>
261 </div>
262 <div class="col-sm-8">
263 <label class="radio-inline">
264 <input id="wp-chatbot-show-home-page" type="radio"
265 name="wp_chatbot_show_home_page"
266 value="on" <?php echo(get_option('wp_chatbot_show_home_page') == 'on' ? 'checked' : ''); ?>>
267 <?php _e('YES', 'wpchatbot'); ?>
268 </label>
269 <label class="radio-inline">
270 <input id="wp-chatbot-show-home-page" type="radio"
271 name="wp_chatbot_show_home_page"
272 value="off" <?php echo(get_option('wp_chatbot_show_home_page') == 'off' ? 'checked' : ''); ?>>
273 <?php _e('NO', 'wpchatbot'); ?>
274 </label>
275 </div>
276 </div>
277 <!-- row-->
278 <div class="row">
279 <div class="col-sm-4 text-right">
280 <span class="qc-opt-title-font"><?php _e('Show on blog posts', 'wpchatbot'); ?></span>
281 </div>
282 <div class="col-sm-8">
283 <label class="radio-inline">
284 <input class="wp-chatbot-show-posts" type="radio"
285 name="wp_chatbot_show_posts"
286 value="on" <?php echo(get_option('wp_chatbot_show_posts') == 'on' ? 'checked' : ''); ?>>
287 <?php _e('YES', 'wpchatbot'); ?>
288 </label>
289 <label class="radio-inline">
290 <input class="wp-chatbot-show-posts" type="radio"
291 name="wp_chatbot_show_posts"
292 value="off" <?php echo(get_option('wp_chatbot_show_posts') == 'off' ? 'checked' : ''); ?>>
293 <?php _e('NO', 'wpchatbot'); ?>
294 </label>
295 </div>
296 </div>
297 <!-- row-->
298 <div class="row">
299 <div class="col-md-4 text-right">
300 <span class="qc-opt-title-font"><?php _e('Show on pages', 'wpchatbot'); ?></span>
301 </div>
302 <div class="col-md-8">
303 <label class="radio-inline">
304 <input class="wp-chatbot-show-pages" type="radio"
305 name="wp_chatbot_show_pages"
306 value="on" <?php echo(get_option('wp_chatbot_show_pages') == 'on' ? 'checked' : ''); ?>>
307 <?php _e('All Pages', 'wpchatbot'); ?>
308 </label>
309 <label class="radio-inline">
310 <input class="wp-chatbot-show-pages" type="radio"
311 name="wp_chatbot_show_pages"
312 value="off" <?php echo(get_option('wp_chatbot_show_pages') == 'off' ? 'checked' : ''); ?>>
313 <?php _e('Selected Pages Only ', 'wpchatbot'); ?></label>
314 <div id="wp-chatbot-show-pages-list">
315 <ul class="checkbox-list">
316 <?php
317 $wp_chatbot_pages = get_pages();
318 $wp_chatbot_select_pages = unserialize(get_option('wp_chatbot_show_pages_list'));
319 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
320 ?>
321 <li>
322 <input
323 id="wp_chatbot_show_page_<?php echo $wp_chatbot_page->ID; ?>"
324 type="checkbox"
325 name="wp_chatbot_show_pages_list[]"
326 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) {
327 echo 'checked';
328 } ?> >
329 <label
330 for="wp_chatbot_show_page_<?php echo $wp_chatbot_page->ID; ?>"> <?php echo $wp_chatbot_page->post_title; ?></label>
331 </li>
332 <?php } ?>
333 </ul>
334 </div>
335 </div>
336 </div>
337
338 </div>
339 <!-- cxsc-settings-blocks-->
340 </div>
341 <!-- col-xs-12-->
342 </div>
343 <!-- row-->
344 <div class="row">
345 <div class="col-xs-12">
346 <h2>Predefined Intents</h2>
347 <div class="row">
348 <div class="col-xs-12">
349 <h4 class="qc-opt-title"><?php _e('Disable Site Search', 'wpchatbot'); ?> </h4>
350 <div class="cxsc-settings-blocks">
351 <input value="1" id="disable_wp_chatbot_site_search" type="checkbox"
352 name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? 'checked' : ''); ?>>
353 <label for="disable_wp_chatbot_site_search"><?php _e('Disable Site Search button on start', 'wpchatbot'); ?> </label>
354 </div>
355 </div>
356 </div>
357
358 <div class="row">
359 <div class="col-xs-12">
360 <h4 class="qc-opt-title"><?php _e('Disable Call Me', 'wpchatbot'); ?> </h4>
361 <div class="cxsc-settings-blocks">
362 <input value="1" id="disable_wp_chatbot_call_gen" type="checkbox"
363 name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? 'checked' : ''); ?>>
364 <label for="disable_wp_chatbot_call_gen"><?php _e('Disable Call Me button on start', 'wpchatbot'); ?> </label>
365 </div>
366 </div>
367 </div>
368 <div class="row">
369 <div class="col-xs-12">
370 <h4 class="qc-opt-title"><?php _e('Disable Email', 'wpchatbot'); ?> </h4>
371 <div class="cxsc-settings-blocks">
372 <input value="1" id="disable_wp_chatbot_feedback" type="checkbox"
373 name="disable_wp_chatbot_feedback" <?php echo(get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''); ?>>
374 <label for="disable_wp_chatbot_feedback"><?php _e('Disable Email button on start', 'wpchatbot'); ?> </label>
375 </div>
376 </div>
377 </div>
378 <div class="row">
379 <div class="col-xs-12">
380 <h4 class="qc-opt-title"><?php _e('Disable FAQ', 'wpchatbot'); ?> </h4>
381 <div class="cxsc-settings-blocks">
382 <input value="1" id="disable_wp_chatbot_faq" type="checkbox"
383 name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? 'checked' : ''); ?>>
384 <label for="disable_wp_chatbot_faq"><?php _e('Disable FAQ button on start', 'wpchatbot'); ?> </label>
385 </div>
386 </div>
387 </div>
388 <div class="row">
389 <div class="col-xs-12">
390 <h4 class="qc-opt-title"><?php _e('Custom Intents', 'wpchatbot'); ?> </h4>
391 <div class="cxsc-settings-blocks">
392
393 <label for="disable_wp_chatbot_faq"><?php _e('Coming Soon', 'wpchatbot'); ?> </label>
394 </div>
395 </div>
396 </div>
397
398 </div>
399 </div>
400 </div>
401 <!-- top-section-->
402 </section>
403 <section id="section-flip-2">
404 <div class="top-section">
405
406 <div class="row">
407 <div class="col-xs-12">
408 <h4 class="qc-opt-title"><?php _e('WPBot Icon', 'wpchatbot'); ?></h4>
409 <div class="cxsc-settings-blocks">
410 <ul class="radio-list">
411 <!--<li><label for="wp_chatbot_icon_0" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-0.png"
412 alt=""> <input id="wp_chatbot_icon_0" type="radio"
413 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-0.png' ? 'checked' : ''); ?>
414 value="icon-0.png">
415 <?php _e('Icon - 0', 'wpchatbot'); ?></label>
416 </li>
417 <li><label for="wp_chatbot_icon_1" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-1.png"
418 alt=""> <input id="wp_chatbot_icon_1" type="radio"
419 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-1.png' ? 'checked' : ''); ?>
420 value="icon-1.png">
421 <?php _e('Icon - 1', 'wpchatbot'); ?></label>
422 </li>-->
423 <li><label for="wp_chatbot_icon_2" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-2.png"
424 alt=""> <input id="wp_chatbot_icon_2" type="radio"
425 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-2.png' ? 'checked' : ''); ?>
426 value="icon-2.png">
427 <?php _e('Icon - 2', 'wpchatbot'); ?></label>
428 </li>
429 <li><label for="wp_chatbot_icon_3" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-3.png"
430 alt=""> <input id="wp_chatbot_icon_3" type="radio"
431 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-3.png' ? 'checked' : ''); ?>
432 value="icon-3.png">
433 <?php _e('Icon - 3', 'wpchatbot'); ?></label>
434 </li>
435 <li><label for="wp_chatbot_icon_4" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-4.png"
436 alt=""> <input id="wp_chatbot_icon_4" type="radio"
437 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-4.png' ? 'checked' : ''); ?>
438 value="icon-4.png">
439 <?php _e('Icon - 4', 'wpchatbot'); ?></label>
440 </li>
441 <li><label for="wp_chatbot_icon_5" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-5.png"
442 alt=""> <input id="wp_chatbot_icon_5" type="radio"
443 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-5.png' ? 'checked' : ''); ?>
444 value="icon-5.png">
445 <?php _e('Icon - 5', 'wpchatbot'); ?></label>
446 </li>
447 <li><label for="wp_chatbot_icon_6" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-6.png"
448 alt=""> <input id="wp_chatbot_icon_6" type="radio"
449 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-6.png' ? 'checked' : ''); ?>
450 value="icon-6.png">
451 <?php _e('Icon - 6', 'wpchatbot'); ?></label>
452 </li>
453 <li><label for="wp_chatbot_icon_7" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-7.png"
454 alt=""> <input id="wp_chatbot_icon_7" type="radio"
455 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-7.png' ? 'checked' : ''); ?>
456 value="icon-7.png">
457 <?php _e('Icon - 7', 'wpchatbot'); ?></label>
458 </li>
459 <li><label for="wp_chatbot_icon_8" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-8.png"
460 alt=""> <input id="wp_chatbot_icon_8" type="radio"
461 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-8.png' ? 'checked' : ''); ?>
462 value="icon-8.png">
463 <?php _e('Icon - 8', 'wpchatbot'); ?></label>
464 </li>
465 <li><label for="wp_chatbot_icon_9" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-9.png"
466 alt=""> <input id="wp_chatbot_icon_9" type="radio"
467 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-9.png' ? 'checked' : ''); ?>
468 value="icon-9.png">
469 <?php _e('Icon - 9', 'wpchatbot'); ?></label>
470 </li>
471 <li><label for="wp_chatbot_icon_10" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-10.png"
472 alt=""> <input id="wp_chatbot_icon_10" type="radio"
473 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-10.png' ? 'checked' : ''); ?>
474 value="icon-10.png">
475 <?php _e('Icon - 10', 'wpchatbot'); ?></label>
476 </li>
477 <li><label for="wp_chatbot_icon_11" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-11.png"
478 alt=""> <input id="wp_chatbot_icon_11" type="radio"
479 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-11.png' ? 'checked' : ''); ?>
480 value="icon-11.png">
481 <?php _e('Icon - 11', 'wpchatbot'); ?></label>
482 </li>
483 <li><label for="wp_chatbot_icon_12" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-12.png"
484 alt=""> <input id="wp_chatbot_icon_12" type="radio"
485 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-12.png' ? 'checked' : ''); ?>
486 value="icon-12.png">
487 <?php _e('Icon - 12', 'wpchatbot'); ?></label>
488 </li>
489 <li><label for="wp_chatbot_icon_13" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-13.png"
490 alt=""> <input id="wp_chatbot_icon_13" type="radio"
491 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-13.png' ? 'checked' : ''); ?>
492 value="icon-13.png">
493 <?php _e('Icon - 13', 'wpchatbot'); ?></label>
494 </li>
495
496 <li>
497 <?php
498 if (get_option('wp_chatbot_custom_icon_path') != "") {
499 $wp_chatbot_custom_icon_path = get_option('wp_chatbot_custom_icon_path');
500 } else {
501 $wp_chatbot_custom_icon_path = QCLD_wpCHATBOT_IMG_URL . 'custom.png';
502 }
503 ?>
504 <label for="wp_chatbot_custom_icon_input" class="qc-opt-dcs-font">
505 <img id="wp_chatbot_custom_icon_src"
506 src="<?php echo $wp_chatbot_custom_icon_path; ?>" alt="">
507 <input id="wp_chatbot_custom_icon_input" type="radio"
508 name="wp_chatbot_icon"
509 value="custom.png" <?php echo(get_option('wp_chatbot_icon') == 'custom.png' ? 'checked' : ''); ?>>
510 <?php _e('Custom Icon', 'wpchatbot'); ?></label>
511 </li>
512
513 </ul>
514 </div>
515 <!-- cxsc-settings-blocks-->
516 </div>
517 </div>
518 <div class="row">
519 <div class="col-xs-12">
520 <h4 class="qc-opt-title"><?php _e(' Upload custom Icon ', 'wpchatbot'); ?></h4>
521 <div class="cxsc-settings-blocks">
522 <input type="hidden" name="wp_chatbot_custom_icon_path"
523 id="wp_chatbot_custom_icon_path"
524 value="<?php echo $wp_chatbot_custom_icon_path; ?>"/>
525 <button type="button" class="wp_chatbot_custom_icon_button button"><?php _e('Upload Icon', 'wpchatbot'); ?> </button>
526 </div>
527
528 </div>
529 </div>
530 </div>
531
532 <div class="top-section">
533 <div class="row">
534 <div class="col-xs-12">
535 <h4 class="qc-opt-title"><?php _e(' WPBot Agent Image', 'wpchatbot'); ?></h4>
536 <div class="cxsc-settings-blocks">
537 <ul class="radio-list">
538 <li>
539 <label for="wp_chatbot_agent_image_def" class="qc-opt-dcs-font">
540 <img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>icon-0.png"
541 alt=""> <input id="wp_chatbot_agent_image_def" type="radio"
542 name="wp_chatbot_agent_image" <?php echo(get_option('wp_chatbot_agent_image') == 'agent-0.png' ? 'checked' : ''); ?>
543 value="agent-0.png">
544
545 <?php _e('Default Agent', 'wpchatbot'); ?></label>
546 </li>
547
548 </ul>
549 </div>
550 <!-- cxsc-settings-blocks-->
551 </div>
552 </div>
553 <!--<div class="row">
554 <div class="col-xs-12">
555 <h4 class="qc-opt-title"> <?php _e('Custom Agent Icon', 'wpchatbot'); ?> </h4>
556 <div class="cxsc-settings-blocks">
557 <input type="hidden" name="wp_chatbot_custom_agent_path"
558 id="wp_chatbot_custom_agent_path"
559 value="<?php echo $wp_chatbot_custom_agent_path; ?>"/>
560 <button type="button" class="wp_chatbot_custom_agent_button button"><?php _e('Upload Agent Icon', 'wpchatbot'); ?></button>
561 </div>
562 </div>
563 </div>-->
564 </div>
565 <div id="top-section">
566 <div class="row">
567 <div class="col-sm-12">
568 <h4 class="qc-opt-title"> <?php _e('WPBot Themes', 'wpchatbot'); ?></h4>
569 </div>
570 </div>
571 <div class="row">
572 <div class="col-sm-3">
573 <label for="qcld_wb_chatbot_theme_0">
574 <img class="thumbnail theme_prev"
575 src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>templates/template-00.JPG"
576 alt="Theme Basic">
577 <input id="qcld_wb_chatbot_theme_0" type="radio"
578 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-00' ? 'checked' : ''); ?>
579 value="template-00">
580 <?php _e('Theme Basic', 'wpchatbot'); ?></label>
581 </div>
582
583 </div>
584 </div>
585 <!--<hr>
586 <div id="top-section">
587 <div class="row">
588 <div class="col-sm-12">
589 <h4 class="qc-opt-title"> <?php _e('Custom Backgroud', 'wpchatbot'); ?></h4>
590 <div class="cxsc-settings-blocks">
591 <input value="1" id="qcld_wb_chatbot_change_bg" type="checkbox"
592 name="qcld_wb_chatbot_change_bg" <?php echo(get_option('qcld_wb_chatbot_change_bg') == 1 ? 'checked' : ''); ?>>
593 <label for="qcld_wb_chatbot_change_bg"><?php _e('Change the wpwBot message board background for Theme 2 and Theme 3.', 'wpchatbot'); ?> </label>
594 </div>
595 </div>
596 </div>
597 <div class="row qcld-wp-chatbot-board-bg-container" <?php if (get_option('qcld_wb_chatbot_change_bg') != 1) {
598 echo 'style="display:none"';
599 } ?>>
600 <div class="col-xs-6">
601 <p class="wp-chatbot-settings-instruction"> <?php _e('Upload wpwBot message board background (Ideal image size 376px X 688px).', 'wpchatbot'); ?> </p>
602 <div class="cxsc-settings-blocks">
603 <?php
604 if (get_option('qcld_wb_chatbot_board_bg_path') != "") {
605 $qcld_wb_chatbot_board_bg_path = get_option('qcld_wb_chatbot_board_bg_path');
606 } else {
607 $qcld_wb_chatbot_board_bg_path = QCLD_wpCHATBOT_IMG_URL . 'background/background.png';
608 }
609 ?>
610 <input type="hidden" name="qcld_wb_chatbot_board_bg_path"
611 id="qcld_wb_chatbot_board_bg_path"
612 value="<?php echo $qcld_wb_chatbot_board_bg_path; ?>"/>
613 <button type="button" class="qcld_wb_chatbot_board_bg_button button"><?php _e('Upload WpBot background.', 'wpchatbot'); ?></button>
614 </div>
615 </div>
616
617 <div class="col-xs-6">
618 <p class="wp-chatbot-settings-instruction"> <?php _e('Custom message board background', 'wpchatbot'); ?> </p>
619 <img id="qcld_wb_chatbot_board_bg_image" style="height:100%;width:100%"
620 src="<?php echo $qcld_wb_chatbot_board_bg_path; ?>"
621 alt="Custom Background">
622 </div>
623 </div>
624 </div>-->
625 </section>
626 <section id="section-flip-3">
627 <div class="row">
628 <div class="col-xs-12">
629
630
631
632 </div>
633 </div>
634 <div class="top-section">
635 <h4 class="qc-opt-title"><?php _e('Build FAQ Query and Answers', 'wpchatbot'); ?></h4>
636 <div class="block-inner ui-sortable" id="wp-chatbot-support-builder">
637 <?php
638 $support_quereis=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_query')));
639 $support_ans=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_ans')));
640 if (count($support_ans) >= 1) {
641 //foreach (get_option('support_ans') as $support_ans){
642 $query_ans_counter=0;
643 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
644 ?>
645 <div class="row">
646 <span class="pull-right"> </span>
647 <div class="col-xs-12">
648 <button type="button"
649 class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right">
650 <i class="fa fa-times" aria-hidden="true"></i>
651 </button>
652 <span class="wp-chatbot-support-cross pull-right" >
653 <i class="fa fa-crosshairs" aria-hidden="true"></i>
654 </span>
655 <div class="cxsc-settings-blocks">
656 <p class="qc-opt-dcs-font"><?php _e('FAQ query ', 'wpchatbot'); ?></p>
657 <input type="text" class="form-control" name="support_query[]"
658 placeholder="<?php _e('FAQ query ', 'wpchatbot'); ?>" value="<?php echo $query ?>">
659 <br>
660 <p class="qc-opt-dcs-font"><?php _e('FAQ answer', 'wpchatbot'); ?></p>
661 <?php wp_editor(html_entity_decode(stripcslashes($ans)), 'support_ans'.'_'.$query_ans_counter, array('textarea_name' =>
662 'support_ans[]',
663 'textarea_rows' => 20,
664 'editor_height' => 100,
665 'disabled' => 'disabled',
666 'media_buttons' => false,
667 'tinymce' => array(
668 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
669 )); ?>
670 </div>
671 </div>
672 </div>
673 <?php
674 $query_ans_counter++;
675 }
676 //}
677 } else {
678 ?>
679 <div class="row">
680 <div class="col-xs-12">
681 <button type="button"
682 class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right">
683 <i class="fa fa-times" aria-hidden="true"></i>
684 </button>
685 <span class="wp-chatbot-support-cross pull-right" >
686 <i class="fa fa-crosshairs" aria-hidden="true"></i>
687 </span>
688 <div class="cxsc-settings-blocks">
689 <p class="qc-opt-dcs-font"><?php _e('Support query', 'wpchatbot'); ?> </p>
690 <input type="text" class="form-control" name="support_query[]"
691 placeholder="<?php _e('Support query ', 'wpchatbot'); ?>">
692 <br>
693 <p class="qc-opt-dcs-font"><strong><?php _e('Support answer', 'wpchatbot'); ?></strong></p>
694 <?php wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
695 'support_ans[]',
696 'textarea_rows' => 20,
697 'editor_height' => 100,
698 'disabled' => 'disabled',
699 'media_buttons' => false,
700 'tinymce' => array(
701 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
702 )); ?>
703 </div>
704 <br>
705 </div>
706 </div>
707 <?php
708 }
709 ?>
710 </div>
711 <div class="row">
712 <div class="col-sm-6 text-left"></div>
713 <div class="col-sm-6 text-right">
714 <button class="btn btn-success btn-sm" type="button"
715 id="add-more-support-query"><i
716 class="fa fa-plus" aria-hidden="true"></i> <?php _e('Add More Questions and Answers', 'wpchatbot'); ?>
717 </button>
718 </div>
719 </div>
720 </div>
721 </section>
722 <!--<section id="section-flip-4">
723 <div class="top-section">
724 <div class="notification-block-inner">
725 <div class="row">
726 <div class="col-xs-12">
727 <div class="cxsc-settings-blocks">
728 <?php $notification_interval = get_option('qlcd_wp_chatbot_notification_interval') != "" ? get_option('qlcd_wp_chatbot_notification_interval') : 5 ?>
729 <h4 class="qc-opt-title"><?php _e('Interval between notifications (in Seconds).', 'wpchatbot'); ?></h4>
730 <input type="text" class="form-control"
731 name="qlcd_wp_chatbot_notification_interval"
732 value="<?php echo $notification_interval ?>">
733 </div>
734 </div>
735 </div>
736
737 <?php
738 $notifications = $this->qcld_wb_chatbot_str_replace(unserialize(get_option('qlcd_wp_chatbot_notifications')));
739 if (!empty($notifications)) {
740 $chatbot_notif_counter=0;
741 foreach ($notifications as $notification) {
742 ?>
743 <div class="row">
744 <div class="col-xs-12">
745 <button type="button"
746 class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right">
747 <i class="fa fa-times" aria-hidden="true"></i>
748 </button>
749 <div class="cxsc-settings-blocks">
750 <?php wp_editor(html_entity_decode(stripcslashes($notification)), 'qlcd_wp_chatbot_notifications_'.$chatbot_notif_counter, array('textarea_name' =>
751 'qlcd_wp_chatbot_notifications[]',
752 'textarea_rows' => 20,
753 'editor_height' => 100,
754 'disabled' => 'disabled',
755 'media_buttons' => false,
756 'tinymce' => array(
757 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
758 )); ?>
759 </div>
760 </div>
761
762 </div>
763
764 <?php
765 $chatbot_notif_counter++;
766 }
767 //}
768 } else {
769 ?>
770 <div class="row">
771 <div class="col-xs-12">
772 <button type="button"
773 class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right">
774 <i class="fa fa-times" aria-hidden="true"></i>
775 </button>
776 <div class="cxsc-settings-blocks">
777 <?php wp_editor(html_entity_decode(stripcslashes('')), 'qlcd_wp_chatbot_notifications_0', array('textarea_name' =>
778 'qlcd_wp_chatbot_notifications[]',
779 'textarea_rows' => 20,
780 'editor_height' => 100,
781 'disabled' => 'disabled',
782 'media_buttons' => false,
783 'tinymce' => array(
784 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
785 )); ?>
786 </div>
787 </div>
788 </div>
789 <?php
790 }
791 ?>
792 </div>
793 <div class="row">
794 <div class="col-sm-6 text-left"></div>
795 <div class="col-sm-6 text-right">
796 <button class="btn btn-success btn-sm" type="button"
797 id="add-more-notification-message">
798 <i class="fa fa-plus" aria-hidden="true"></i> <?php _e('Add', 'wpchatbot'); ?>
799 </button>
800 </div>
801 </div>
802
803 </div>
804
805 </section>-->
806 <section id="section-flip-5">
807 <div class="wp-chatbot-language-center-summmery">
808
809 </div>
810 <ul class="nav nav-tabs">
811 <li class="active"><a data-toggle="tab" href="#wp-chatbot-lng-general"><?php _e('General', 'wpchatbot'); ?></a></li>
812
813 <li><a data-toggle="tab" href="#wp-chatbot-lng-support"><?php _e('FAQ', 'wpchatbot'); ?></a></li>
814
815 <li><a data-toggle="tab" href="#wp-chatbot-lng-system-keyword"><?php _e('System Keywords', 'wpchatbot'); ?></a></li>
816 </ul>
817 <div class="tab-content">
818 <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
819 <div class="top-section">
820 <div class="row">
821 <div class="col-xs-12" id="wp-chatbot-language-section">
822 <div class="form-group">
823 <h4 class="qc-opt-title"><?php _e('Your Company or Website Name', 'wpchatbot'); ?></h4>
824 <input type="text" class="form-control qc-opt-dcs-font"
825 name="qlcd_wp_chatbot_host"
826 value="<?php echo(get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store'); ?>">
827 </div>
828 <div class="form-group">
829 <h4 class="qc-opt-title"><?php _e('Agent name', 'wpchatbot'); ?></h4>
830 <input type="text" class="form-control qc-opt-dcs-font"
831 name="qlcd_wp_chatbot_agent"
832 value="<?php echo(get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie'); ?>">
833 </div>
834 <div class="form-group">
835 <h4 class="qc-opt-title"><?php _e('User demo name', 'wpchatbot'); ?></h4>
836 <input type="text" class="form-control qc-opt-dcs-font"
837 name="qlcd_wp_chatbot_shopper_demo_name"
838 value="<?php echo(get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo'); ?>">
839 </div>
840 <div class="form-group">
841 <h4 class="qc-opt-title"><?php _e('YES', 'wpchatbot'); ?></h4>
842 <input type="text" class="form-control qc-opt-dcs-font"
843 name="qlcd_wp_chatbot_yes"
844 value="<?php echo(get_option('qlcd_wp_chatbot_yes') != '' ? get_option('qlcd_wp_chatbot_yes') : 'YES'); ?>">
845 </div>
846 <div class="form-group">
847 <h4 class="qc-opt-title"><?php _e('NO', 'wpchatbot'); ?></h4>
848 <input type="text" class="form-control qc-opt-dcs-font"
849 name="qlcd_wp_chatbot_no"
850 value="<?php echo(get_option('qlcd_wp_chatbot_no') != '' ? get_option('qlcd_wp_chatbot_no') : 'NO'); ?>">
851 </div>
852 <div class="form-group">
853 <h4 class="qc-opt-title"><?php _e('OR', 'wpchatbot'); ?></h4>
854 <input type="text" class="form-control qc-opt-dcs-font"
855 name="qlcd_wp_chatbot_or"
856 value="<?php echo(get_option('qlcd_wp_chatbot_or') != '' ? get_option('qlcd_wp_chatbot_or') : 'OR'); ?>">
857 </div>
858 <div class="form-group">
859 <h4 class="qc-opt-title"><?php _e('Sorry', 'wpchatbot'); ?></h4>
860 <input type="text" class="form-control qc-opt-dcs-font"
861 name="qlcd_wp_chatbot_sorry"
862 value="<?php echo(get_option('qlcd_wp_chatbot_sorry') != '' ? get_option('qlcd_wp_chatbot_sorry') : 'Sorry'); ?>">
863 </div>
864 <div class="form-group">
865 <?php
866 $agent_join_options = unserialize(get_option('qlcd_wp_chatbot_agent_join'));
867 $agent_join_option = 'qlcd_wp_chatbot_agent_join';
868 $agent_join_text = __('has joined the conversation', 'wpchatbot');
869 $this->qcld_wb_chatbot_dynamic_multi_option($agent_join_options, $agent_join_option, $agent_join_text);
870 ?>
871 </div>
872 </div>
873 <!--col-xs-12-->
874 <div class="col-xs-12" id="wp-chatbot-language-section">
875 <h4 class="text-success"><?php _e(' Message setting for Greetings: ', 'wpchatbot'); ?></h4>
876 <div class="form-group">
877 <?php
878 $welcome_to_options = unserialize(get_option('qlcd_wp_chatbot_welcome'));
879 $welcome_to_option = 'qlcd_wp_chatbot_welcome';
880 $welcome_to_text =__('Welcome to', 'wpchatbot');
881 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_to_options, $welcome_to_option, $welcome_to_text);
882 ?>
883 </div>
884 <div class="form-group">
885 <?php
886 $welcome_back_options = unserialize(get_option('qlcd_wp_chatbot_welcome_back'));
887 $welcome_back_option = 'qlcd_wp_chatbot_welcome_back';
888 $welcome_back_text = __('Welcome back', 'wpchatbot');
889 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_back_options, $welcome_back_option, $welcome_back_text);
890 ?>
891 </div>
892 <div class="form-group">
893 <?php
894 $back_to_start_options = unserialize(get_option('qlcd_wp_chatbot_back_to_start'));
895 $back_to_start_option = 'qlcd_wp_chatbot_back_to_start';
896 $back_to_start_text = __('Back to Start', 'wpchatbot');
897 $this->qcld_wb_chatbot_dynamic_multi_option($back_to_start_options, $back_to_start_option, $back_to_start_text);
898 ?>
899 </div>
900 <div class="form-group">
901 <?php
902 $hi_there_options = unserialize(get_option('qlcd_wp_chatbot_hi_there'));
903 $hi_there_option = 'qlcd_wp_chatbot_hi_there';
904 $hi_there_text = __('Hi There!', 'wpchatbot');
905 $this->qcld_wb_chatbot_dynamic_multi_option($hi_there_options, $hi_there_option, $hi_there_text);
906 ?>
907 </div>
908 <div class="form-group">
909 <?php
910 $asking_name_options = unserialize(get_option('qlcd_wp_chatbot_asking_name'));
911 $asking_name_option = 'qlcd_wp_chatbot_asking_name';
912 $asking_name_text = __('May I know your name?', 'wpchatbot');
913 $this->qcld_wb_chatbot_dynamic_multi_option($asking_name_options, $asking_name_option, $asking_name_text);
914 ?>
915 </div>
916 <div class="form-group">
917 <?php
918 $i_am_options = unserialize(get_option('qlcd_wp_chatbot_i_am'));
919 $i_am_option = 'qlcd_wp_chatbot_i_am';
920 $i_am_text = __('I am', 'wpchatbot');
921 $this->qcld_wb_chatbot_dynamic_multi_option($i_am_options, $i_am_option, $i_am_text);
922 ?>
923 </div>
924 <div class="form-group">
925 <?php
926 $name_greeting_options = unserialize(get_option('qlcd_wp_chatbot_name_greeting'));
927 $name_greeting_option = 'qlcd_wp_chatbot_name_greeting';
928 $name_greeting_text = __('Nice to meet you', 'wpchatbot');
929 $this->qcld_wb_chatbot_dynamic_multi_option($name_greeting_options, $name_greeting_option, $name_greeting_text);
930 ?>
931 </div>
932 <div class="form-group">
933 <?php
934 $wildcard_msg_options = unserialize(get_option('qlcd_wp_chatbot_wildcard_msg'));
935 $wildcard_msg_option = 'qlcd_wp_chatbot_wildcard_msg';
936 $wildcard_msg_text = __('I am here to find what you need. What are you looking for?', 'wpchatbot');
937 $this->qcld_wb_chatbot_dynamic_multi_option($wildcard_msg_options, $wildcard_msg_option, $wildcard_msg_text);
938 ?>
939 </div>
940 <div class="form-group">
941 <?php
942 $empty_filter_msgs = unserialize(get_option('qlcd_wp_chatbot_empty_filter_msg'));
943 $empty_filter_msg = 'qlcd_wp_chatbot_empty_filter_msg';
944 $empty_filter_msg_text = __('Sorry, I did not understand that', 'wpchatbot');
945 $this->qcld_wb_chatbot_dynamic_multi_option($empty_filter_msgs, $empty_filter_msg, $empty_filter_msg_text);
946 ?>
947 </div>
948
949 <h4 class="text-success"> <?php _e('Message setting for Editor Box ', 'wpchatbot'); ?></h4>
950 <div class="form-group">
951 <?php
952 $is_typing_options = unserialize(get_option('qlcd_wp_chatbot_is_typing'));
953 $is_typing_option = 'qlcd_wp_chatbot_is_typing';
954 $is_typing_text = __('is typing...', 'wpchatbot');
955 $this->qcld_wb_chatbot_dynamic_multi_option($is_typing_options, $is_typing_option, $is_typing_text);
956 ?>
957 </div>
958 <div class="form-group">
959 <?php
960 $send_a_msg_options = unserialize(get_option('qlcd_wp_chatbot_send_a_msg'));
961 $send_a_msg_option = 'qlcd_wp_chatbot_send_a_msg';
962 $send_a_msg_text =__('Send a message', 'wpchatbot');
963 $this->qcld_wb_chatbot_dynamic_multi_option($send_a_msg_options, $send_a_msg_option, $send_a_msg_text);
964 ?>
965 </div>
966 <div class="form-group">
967 <?php
968 $choose_option_options = unserialize(get_option('qlcd_wp_chatbot_choose_option'));
969 $choose_option_option = 'qlcd_wp_chatbot_choose_option';
970 $choose_option_text = __('Choose an option', 'wpchatbot');
971 $this->qcld_wb_chatbot_dynamic_multi_option($choose_option_options, $choose_option_option, $choose_option_text);
972 ?>
973 </div>
974
975
976
977 <div class="form-group">
978 <?php
979 $asking_email_options = unserialize(get_option('qlcd_wp_chatbot_asking_email'));
980 $asking_email_option = 'qlcd_wp_chatbot_asking_email';
981 $asking_email_text = __('Please provide your email address', 'wpchatbot');
982 $this->qcld_wb_chatbot_dynamic_multi_option($asking_email_options, $asking_email_option, $asking_email_text);
983 ?>
984 </div>
985 <div class="form-group">
986 <?php
987 $invalid_email_options = unserialize(get_option('qlcd_wp_chatbot_invalid_email'));
988 $invalid_email_option = 'qlcd_wp_chatbot_invalid_email';
989 $invalid_email_text = __('Sorry, Email address is not valid! Please provide a valid email.', 'wpchatbot');
990 $this->qcld_wb_chatbot_dynamic_multi_option($invalid_email_options, $invalid_email_option, $invalid_email_text);
991 ?>
992 </div>
993 <div class="form-group">
994 <?php
995 $asking_msg_options = unserialize(get_option('qlcd_wp_chatbot_asking_msg'));
996 $asking_msg_option = 'qlcd_wp_chatbot_asking_msg';
997 $asking_msg_text = __('Thank you for email address. Please write your message now.', 'wpchatbot');
998 $this->qcld_wb_chatbot_dynamic_multi_option($asking_msg_options, $asking_msg_option, $asking_msg_text);
999 ?>
1000 </div>
1001
1002 <div class="form-group">
1003 <h4 class="qc-opt-title"><?php _e('Site Search', 'wpchatbot'); ?></h4>
1004 <input type="text" class="form-control qc-opt-dcs-font"
1005 name="qlcd_wp_site_search"
1006 value="<?php echo(get_option('qlcd_wp_site_search') != '' ? get_option('qlcd_wp_site_search') : 'Site Search'); ?>">
1007 </div>
1008
1009 <div class="form-group">
1010 <?php
1011 $wp_chatbot_no_results = unserialize(get_option('qlcd_wp_chatbot_no_result'));
1012 $wp_chatbot_no_result = 'qlcd_wp_chatbot_no_result';
1013 $wp_chatbot_no_result_text = __('Sorry, No result found!', 'wpchatbot');
1014 $this->qcld_wb_chatbot_dynamic_multi_option($wp_chatbot_no_results, $wp_chatbot_no_result, $wp_chatbot_no_result_text);
1015 ?>
1016 </div>
1017
1018 <div class="form-group">
1019 <h4 class="qc-opt-title"><?php _e('WPBot Support Mail Subject', 'wpchatbot'); ?></h4>
1020 <input type="text" class="form-control qc-opt-dcs-font"
1021 name="qlcd_wp_chatbot_email_sub"
1022 value="<?php echo(get_option('qlcd_wp_chatbot_email_sub') != '' ? get_option('qlcd_wp_chatbot_email_sub') : 'Support Email Subject'); ?>">
1023 </div>
1024
1025 <div class="form-group">
1026 <?php
1027 $support_option_again_options = unserialize(get_option('qlcd_wp_chatbot_support_option_again'));
1028 $support_option_again_option = 'qlcd_wp_chatbot_support_option_again';
1029 $support_option_again_text = __('You may choose option from below.', 'wpchatbot');
1030 $this->qcld_wb_chatbot_dynamic_multi_option($support_option_again_options, $support_option_again_option, $support_option_again_text);
1031 ?>
1032 </div>
1033
1034 <div class="form-group">
1035 <h4 class="qc-opt-title"><?php _e('Your email was sent successfully.Thanks!', 'wpchatbot'); ?></h4>
1036 <input type="text" class="form-control qc-opt-dcs-font"
1037 name="qlcd_wp_chatbot_email_sent"
1038 value="<?php echo(get_option('qlcd_wp_chatbot_email_sent') != '' ? get_option('qlcd_wp_chatbot_email_sent') : 'Your email was sent successfully.Thanks!'); ?>">
1039 </div>
1040 <div class="form-group">
1041 <h4 class="qc-opt-title"><?php _e('Sorry! I could not send your mail! Please contact the webmaster.', 'wpchatbot'); ?></h4>
1042 <input type="text" class="form-control qc-opt-dcs-font"
1043 name="qlcd_wp_chatbot_email_fail"
1044 value="<?php echo(get_option('qlcd_wp_chatbot_email_fail') != '' ? get_option('qlcd_wp_chatbot_email_fail') : 'Sorry! fail to send email'); ?>">
1045 </div>
1046
1047
1048
1049 <div class="form-group">
1050 <?php
1051 $support_phone_options = unserialize(get_option('qlcd_wp_chatbot_support_phone'));
1052 $support_phone_option = 'qlcd_wp_chatbot_support_phone';
1053 $support_phone_text = __('Leave your number. We will call you back!', 'wpchatbot');
1054 $this->qcld_wb_chatbot_dynamic_multi_option($support_phone_options, $support_phone_option, $support_phone_text);
1055 ?>
1056 </div>
1057 <div class="form-group">
1058 <?php
1059 $asking_phone_options = unserialize(get_option('qlcd_wp_chatbot_asking_phone'));
1060 $asking_phone_option = 'qlcd_wp_chatbot_asking_phone';
1061 $asking_phone_text = __('Please provide your Phone number', 'wpchatbot');
1062 $this->qcld_wb_chatbot_dynamic_multi_option($asking_phone_options, $asking_phone_option, $asking_phone_text);
1063 ?>
1064 </div>
1065 <div class="form-group">
1066 <?php
1067 $thanks_phone_options = unserialize(get_option('qlcd_wp_chatbot_thank_for_phone'));
1068 $thanks_phone_option = 'qlcd_wp_chatbot_thank_for_phone';
1069 $thanks_phone_text = __('Thank you for Phone number', 'wpchatbot');
1070 $this->qcld_wb_chatbot_dynamic_multi_option($thanks_phone_options, $thanks_phone_option, $thanks_phone_text);
1071 ?>
1072 </div>
1073
1074 <div class="form-group">
1075 <h4 class="qc-opt-title"><?php _e('Thanks for your phone number. We will call you ASAP!', 'wpchatbot'); ?></h4>
1076 <input type="text" class="form-control qc-opt-dcs-font"
1077 name="qlcd_wp_chatbot_phone_sent"
1078 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!'); ?>">
1079 </div>
1080 <div class="form-group">
1081 <h4 class="qc-opt-title"><?php _e('Sorry! I could not collect phone number! Please contact the webmaster.', 'wpchatbot'); ?></h4>
1082 <input type="text" class="form-control qc-opt-dcs-font"
1083 name="qlcd_wp_chatbot_phone_fail"
1084 value="<?php echo(get_option('qlcd_wp_chatbot_phone_fail') != '' ? get_option('qlcd_wp_chatbot_phone_fail') : 'Sorry! I could not collect phone number!'); ?>">
1085 </div>
1086
1087
1088
1089
1090
1091
1092 </div>
1093 </div>
1094 </div>
1095 </div>
1096
1097 <div id="wp-chatbot-lng-support" class="tab-pane fade">
1098 <div class="top-section">
1099 <div class="row">
1100 <div class="col-xs-12" id="wp-chatbot-language-section">
1101 <div class="form-group">
1102 <?php
1103 $wildcard_support_options = unserialize(get_option('qlcd_wp_chatbot_wildcard_support'));
1104 $wildcard_support_option = 'qlcd_wp_chatbot_wildcard_support';
1105 $wildcard_support_text = __('FAQ', 'wpchatbot');
1106 $this->qcld_wb_chatbot_dynamic_multi_option($wildcard_support_options, $wildcard_support_option, $wildcard_support_text);
1107 ?>
1108 </div>
1109 <div class="form-group">
1110 <?php
1111 $support_welcome_options = unserialize(get_option('qlcd_wp_chatbot_support_welcome'));
1112 $support_welcome_option = 'qlcd_wp_chatbot_support_welcome';
1113 $support_welcome_text = __('Welcome to FAQ Section', 'wpchatbot');
1114 $this->qcld_wb_chatbot_dynamic_multi_option($support_welcome_options, $support_welcome_option, $support_welcome_text);
1115 ?>
1116 </div>
1117 <!--<div class="form-group">
1118 <?php
1119 $support_email_options = unserialize(get_option('qlcd_wp_chatbot_support_email'));
1120 $support_email_option = 'qlcd_wp_chatbot_support_email';
1121 $support_email_text = __('Click me if you want to send us a email.', 'wpchatbot');
1122 $this->qcld_wb_chatbot_dynamic_multi_option($support_email_options, $support_email_option, $support_email_text);
1123 ?>
1124 </div>-->
1125
1126
1127 <!--<div class="form-group">
1128 <?php
1129 $feedback_label_options = unserialize(get_option('qlcd_wp_chatbot_feedback_label'));
1130 $feedback_label_option = 'qlcd_wp_chatbot_feedback_label';
1131 $feedback_label_text = __('Send Feedback!', 'wpchatbot');
1132 $this->qcld_wb_chatbot_dynamic_multi_option($feedback_label_options, $feedback_label_option, $feedback_label_text);
1133 ?>
1134 </div>-->
1135
1136
1137 </div>
1138 </div>
1139 </div>
1140 </div>
1141
1142 <div id="wp-chatbot-lng-system-keyword" class="tab-pane fade">
1143 <div class="top-section">
1144 <div class="row">
1145 <div class="col-xs-12" id="wp-chatbot-language-section">
1146 <div class="form-group">
1147 <h4 class="qc-opt-title"><?php _e('Start Keyword', 'wpchatbot'); ?></h4>
1148 <input type="text" class="form-control qc-opt-dcs-font"
1149 name="qlcd_wp_chatbot_sys_key_help"
1150 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_help') != '' ? get_option('qlcd_wp_chatbot_sys_key_help') : 'start'); ?>">
1151 </div>
1152
1153
1154
1155 <div class="form-group">
1156 <h4 class="qc-opt-title"><strong><?php _e('FAQ', 'wpchatbot'); ?></strong> <?php _e('Keyword', 'wpchatbot'); ?></h4>
1157 <input type="text" class="form-control qc-opt-dcs-font"
1158 name="qlcd_wp_chatbot_sys_key_support"
1159 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_support') != '' ? get_option('qlcd_wp_chatbot_sys_key_support') : 'faq'); ?>">
1160 </div>
1161 <div class="form-group">
1162 <h4 class="qc-opt-title"><strong><?php _e('Converstion History Clear', 'wpchatbot'); ?></strong> <?php _e('Keyword', 'wpchatbot'); ?></h4>
1163 <input type="text" class="form-control qc-opt-dcs-font"
1164 name="qlcd_wp_chatbot_sys_key_reset"
1165 value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_reset') != '' ? get_option('qlcd_wp_chatbot_sys_key_reset') : 'reset'); ?>">
1166 </div>
1167 <div class="form-group">
1168 <?php
1169 $help_welcome_options = unserialize(get_option('qlcd_wp_chatbot_help_welcome'));
1170 $help_welcome_option = 'qlcd_wp_chatbot_help_welcome';
1171 $help_welcome_text = 'Welcome to Help Section';
1172 $this->qcld_wb_chatbot_dynamic_multi_option($help_welcome_options, $help_welcome_option, $help_welcome_text);
1173 ?>
1174 </div>
1175 <div class="form-group">
1176 <?php
1177 $help_msg_options = unserialize(get_option('qlcd_wp_chatbot_help_msg'));
1178 $help_msg_option = 'qlcd_wp_chatbot_help_msg';
1179 $help_msg_text = '<h3>Type and Hit Enter</h3> 1. <b>start</b> Get back to the main menu. <br> 2. <b>support</b> for SUPPORT. <br> 3. <b>reset</b> To clear chat history and start from the beginning.';
1180 $this->qcld_wb_chatbot_dynamic_multi_option($help_msg_options, $help_msg_option, $help_msg_text);
1181 ?>
1182 </div>
1183 <div class="form-group">
1184 <?php
1185 $reset_options = unserialize(get_option('qlcd_wp_chatbot_reset'));
1186 $reset_option = 'qlcd_wp_chatbot_reset';
1187 $reset_text = 'Do you want to clear our chat history and start over?';
1188 $this->qcld_wb_chatbot_dynamic_multi_option($reset_options, $reset_option, $reset_text);
1189 ?>
1190 </div>
1191 </div>
1192 <!-- col-xs-12-->
1193 </div>
1194 <!-- row-->
1195 </div>
1196 <!-- top-section-->
1197 </div>
1198 <!-- wp-chatbot-lng-system-keyword-->
1199 </div>
1200 <!-- tab-content-->
1201 </section>
1202
1203
1204 <section id="section-flip-8">
1205 <div class="top-section">
1206 <div class="wp-chatbot-language-center-summmery">
1207 <p><?php _e('WPBot will be opened based on the following settings', 'wpchatbot'); ?> </p>
1208 </div>
1209 <div class="row">
1210 <div class="col-xs-12">
1211 <h4 class="qc-opt-title"><?php _e('Enable Bot Activity Hour', 'wpchatbot'); ?> </h4>
1212 <div class="cxsc-settings-blocks" style="padding:0 20px;">
1213 <input value="1" id="enable_wp_chatbot_opening_hour" type="checkbox"
1214 name="enable_wp_chatbot_opening_hour" <?php echo(get_option('enable_wp_chatbot_opening_hour') == 1 ? 'checked' : ''); ?>>
1215 <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>
1216 </div>
1217 </div>
1218 </div>
1219 <style>
1220 .wp-chatbot-hours-container{
1221 padding:0px 0 15px 0;
1222 display: flex;
1223 justify-content: space-between;
1224 }
1225 .wp-chatbot-hours{
1226 /*width:75%;*/
1227 display: inline-block;
1228 }
1229 .wp-chatbot-hours input{
1230 display: inline-block;
1231 width: 40%;
1232 padding-right: 10px;
1233 text-align: center;
1234 }
1235 .wp-chatbot-hours-remove{
1236 display: inline-block;
1237 /*width:20%;*/
1238 }
1239 </style>
1240 <div class="row" id="wp-chatbot-hours-wrapper">
1241 <div class="col-xs-12">
1242 <h4 class="qc-opt-title"><?php _e('WPBot Bot Activity Hours', 'wpchatbot'); ?> </h4>
1243 <?php
1244
1245 if(get_option('wpwbot_hours')){
1246 $wpwbot_times=unserialize(get_option('wpwbot_hours'));
1247 }else{
1248 $wpwbot_times=array();
1249 }
1250 ?>
1251 <div class="row">
1252 <div class="col-xs-3">Monday</div>
1253 <div class="col-xs-4 wp-chatbot-day">
1254 <?php
1255 $this->wp_chatbot_opening_hours('monday',$wpwbot_times);
1256 ?>
1257 </div>
1258 <div class="col-xs-3">
1259 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="monday">
1260 <i class="fa fa-plus" aria-hidden="true"></i> Add
1261 </button>
1262 </div>
1263 </div>
1264 <div class="row">
1265 <div class="col-xs-3">Tuesday</div>
1266 <div class="col-xs-4 wp-chatbot-day">
1267 <?php
1268 $this->wp_chatbot_opening_hours('tuesday',$wpwbot_times);
1269 ?>
1270 </div>
1271 <div class="col-xs-3">
1272 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="tuesday">
1273 <i class="fa fa-plus" aria-hidden="true"></i> Add
1274 </button>
1275 </div>
1276 </div>
1277 <div class="row">
1278 <div class="col-xs-3">Wednesday</div>
1279 <div class="col-xs-4 wp-chatbot-day">
1280 <?php
1281 $this->wp_chatbot_opening_hours('wednesday',$wpwbot_times);
1282 ?>
1283 </div>
1284 <div class="col-xs-3">
1285 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="wednesday">
1286 <i class="fa fa-plus" aria-hidden="true"></i> Add
1287 </button>
1288 </div>
1289 </div>
1290 <div class="row">
1291 <div class="col-xs-3">Thursday</div>
1292 <div class="col-xs-4 wp-chatbot-day">
1293 <?php
1294 $this->wp_chatbot_opening_hours('thursday',$wpwbot_times);
1295 ?>
1296 </div>
1297 <div class="col-xs-3">
1298 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="thursday">
1299 <i class="fa fa-plus" aria-hidden="true"></i> Add
1300 </button>
1301 </div>
1302 </div>
1303 <div class="row">
1304 <div class="col-xs-3">Friday</div>
1305 <div class="col-xs-4 wp-chatbot-day">
1306 <?php
1307 $this->wp_chatbot_opening_hours('friday',$wpwbot_times);
1308 ?>
1309 </div>
1310 <div class="col-xs-3">
1311 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="friday">
1312 <i class="fa fa-plus" aria-hidden="true"></i> Add
1313 </button>
1314 </div>
1315 </div>
1316 <div class="row">
1317 <div class="col-xs-3">Saturday</div>
1318 <div class="col-xs-4 wp-chatbot-day">
1319 <?php
1320 $this->wp_chatbot_opening_hours('saturday',$wpwbot_times);
1321 ?>
1322 </div>
1323 <div class="col-xs-3">
1324 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="saturday">
1325 <i class="fa fa-plus" aria-hidden="true"></i> Add
1326 </button>
1327 </div>
1328 </div>
1329 <div class="row">
1330 <div class="col-xs-3">Sunday</div>
1331 <div class="col-xs-4 wp-chatbot-day">
1332 <?php
1333 $this->wp_chatbot_opening_hours('sunday',$wpwbot_times);
1334 ?>
1335 </div>
1336 <div class="col-xs-3">
1337 <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="sunday">
1338 <i class="fa fa-plus" aria-hidden="true"></i> Add
1339 </button>
1340 </div>
1341 </div>
1342 </div>
1343 </div>
1344 </div>
1345 <!-- top-section-->
1346 </section>
1347 <!--<section id="section-flip-9">
1348 <div class="top-section">
1349 <div class="wp-chatbot-language-center-summmery">
1350 <p><?php _e('DialogFlow as Artificial Intelligences Engine for wpwBot', 'wpchatbot'); ?> </p>
1351 </div>
1352 <div class="row">
1353 <div class="col-xs-12">
1354 <h4 class="qc-opt-title"><?php _e('Enable DialogFlow as AI Engine to Detect Intent', 'wpchatbot'); ?> </h4>
1355 <div class="cxsc-settings-blocks">
1356 <input value="1" id="enable_wp_chatbot_dailogflow" type="checkbox"
1357 name="enable_wp_chatbot_dailogflow" <?php echo(get_option('enable_wp_chatbot_dailogflow') == 1 ? 'checked' : ''); ?>>
1358 <label for="enable_wp_chatbot_dailogflow"><?php _e('Enable DialogFlow AI Engine to process Natural Language commands from users.', 'wpchatbot'); ?> </label>
1359 </div>
1360 </div>
1361 <div class="col-xs-12">
1362 <br>
1363 <p><?php _e('You will need an Access Token from DialogFlow. Log in to DialogFlow Console from', 'wpchatbot'); ?>
1364 <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>
1365
1366 <p><a style="text-decoration:underline;color:blue" href="<?php echo site_url() ?>/wp-content/plugins/wpwbot-wpcommerce-chatbot-pro/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>
1367 </div>
1368
1369 <div class="col-xs-12" id="wp-chatbot-dialflow-section">
1370 <div class="form-group">
1371 <h4 class="qc-opt-title"><?php _e('DialogFlow client Access Token', 'wpchatbot'); ?></h4>
1372 <input type="text" class="form-control qc-opt-dcs-font"
1373 name="qlcd_wp_chatbot_dialogflow_client_token"
1374 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'); ?>">
1375 </div>
1376 <div class="form-group">
1377 <h4 class="qc-opt-title"><?php _e('DialofFlow Defualt reply', 'wpchatbot'); ?></h4>
1378 <input type="text" class="form-control qc-opt-dcs-font"
1379 name="qlcd_wp_chatbot_dialogflow_defualt_reply"
1380 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'); ?>">
1381 </div>
1382 </div>
1383 </div>
1384 </div>
1385
1386 </section>-->
1387 <!--<section id="section-flip-10">
1388 <div class="wp-chatbot-language-center-summmery">
1389 <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>
1390 </div>
1391 <div class="top-section">
1392 <div class="row">
1393 <div class="col-xs-12">
1394 <h4 class="qc-opt-title"><?php _e('Mobile App Pages', 'wpchatbot'); ?> </h4>
1395 <div class="cxsc-settings-blocks">
1396 <input value="1" id="wp_chatbot_app_pages" type="checkbox"
1397 name="wp_chatbot_app_pages" <?php echo(get_option('wp_chatbot_app_pages') == 1 ? 'checked' : ''); ?>>
1398 <label for="wp_chatbot_app_pages"><?php _e('Create pages for WpBot Mobile App', 'wpchatbot'); ?> </label>
1399 </div>
1400 <br>
1401 <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>
1402 <ol>
1403 <li><?php _e('WpBot Mobile App', 'wpchatbot'); ?></li>
1404 <li><?php _e('WpBot App Checkout', 'wpchatbot'); ?></li>
1405 <li><?php _e('WpBot App Order Thank You', 'wpchatbot'); ?></li>
1406 </ol>
1407 <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>
1408 <ol>
1409 <li><?php _e('WpBot Ionic FrameWork package', 'wpchatbot'); ?></li>
1410 <li><?php _e('WpBot PhoneGap package', 'wpchatbot'); ?></li>
1411 </ol>
1412 </div>
1413 </div>
1414 </div>
1415
1416 </section>-->
1417 <section id="section-flip-11">
1418 <div class="top-section">
1419 <div class="row">
1420 <div class="col-xs-12">
1421 <h4 class="qc-opt-dcs"><?php _e('You can paste or write your custom css here.', 'wpchatbot'); ?></h4>
1422 <textarea name="wp_chatbot_custom_css"
1423 class="form-control wp-chatbot-custom-css"
1424 cols="10"
1425 rows="16"><?php echo get_option('wp_chatbot_custom_css'); ?></textarea>
1426 </div>
1427 </div>
1428 <!-- row-->
1429 </div>
1430 </section>
1431 </div><!-- /content -->
1432 </div><!-- /wp-chatbot-tabs -->
1433 <footer class="wp-chatbot-admin-footer">
1434 <div class="row">
1435 <div class="text-left col-sm-3 col-sm-offset-3">
1436 <input type="button" class="btn btn-warning submit-button"
1437 id="qcld-wp-chatbot-reset-option"
1438 value="<?php _e('Reset all options to Default', 'wpchatbot'); ?>"/>
1439 </div>
1440 <div class="text-right col-sm-6">
1441 <input type="submit" class="btn btn-primary submit-button" name="submit"
1442 id="submit" value="<?php _e('Save Settings', 'wpchatbot'); ?>"/>
1443 </div>
1444 </div>
1445 <!-- row-->
1446 </footer>
1447 </section>
1448 </div>
1449 <?php wp_nonce_field('wp_chatbot'); ?>
1450 </form>