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

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

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