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

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