PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, AI Services / 4.0.9
WPBot – AI ChatBot for Live Support, Lead Generation, AI Services v4.0.9
8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 8.5.2 8.5.0 8.4.9 All 531 releases
chatbot / admin_ui.php

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

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