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

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

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