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

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