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

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

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