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

2,612 lines 190.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit;
6 }
7 ?>
8
9 <div class="wrap qcld-main-wrapper">
10 <h1 style="display:none">
11 <?php esc_html_e('WPBot', 'wpbot'); ?>
12 </h1>
13
14 <div class="qcld-wp-chatbot-wrap-header">
15
16 <a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a>
17 <p><strong>Core Version:</strong> v<?php echo QCLD_wpCHATBOT_VERSION; ?></p>
18 <ul class="qcld-wp-chatbot-wrap-version-wrapper">
19 <li>
20 <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a>
21
22 </li>
23 </ul>
24 </div>
25
26 <div class="qcld-wp-chatbot-wrap-header-doc">
27
28 <a href="#" class="qcld-wp-chatbot-wrap--doc_logo">
29 <img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/doc.jpg' ); ?>" alt="Dialogflow CX">
30 <div class="docs_icon"><i class="fa fa-book" aria-hidden="true"></i></div>
31
32 </a>
33
34 <div class="qcld-wp-chatbot-wrap-header-doc-details">
35
36 <h3><?php esc_html_e('Get Started with WPBot', 'wpbot'); ?></h3>
37 <p><?php esc_html_e('Do more than just chat with your ChatBot! More Leads, Conversions & Satisfied customers while saving time & increasing your business opportunities. WPBot is the best ChatBot for WordPress to improve user engagement, Generate Leads, & provide Automated Live customer support across your website & social platforms.', 'wpbot'); ?></p>
38
39 <div class="qcld-wp-chatbot-wrap-header-doc-button">
40
41 <a href="https://wpbot.pro/docs/knowledgebase/getting-started-with-chatbot/" class="GetStartedwithYourChatBot" target="_blank">Get Started with Your ChatBot</a>
42 <a href="https://wpbot.pro/docs/" target="_blank">Documentation</a>
43 </div>
44 </div>
45 </div>
46
47 <div class="wp-chatbot-wrap">
48 <div class="icon32"><br>
49 </div>
50 <form action="<?php echo esc_url($action, 'wpbot'); ?>" method="POST" id="wp-chatbot-admin-form"
51 enctype="multipart/form-data">
52 <div class="form-container">
53
54 <section class="wp-chatbot-tab-container-inner">
55 <div class="wp-chatbot-tabs wp-chatbot-tabs-style-flip">
56 <nav>
57 <ul>
58 <li class="tab-current" tab-data="started"><a href="<?php echo esc_url($action).'&tab=started' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-get-pocket"> </i> </span> <span class="wpwbot-admin-tab-name">
59 <?php esc_html_e('Getting Started', 'wpbot'); ?>
60 </span> </a></li>
61 <li tab-data="general"><a href="<?php echo esc_url($action) .'&tab=general' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-toggle-on"> </i> </span> <span class="wpwbot-admin-tab-name">
62 <?php esc_html_e('General settings', 'wpbot'); ?>
63 </span> </a></li>
64 <li tab-data="language"><a href="<?php echo esc_url($action) .'&tab=language' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-language"></i> </span> <span class="wpwbot-admin-tab-name">
65 <?php esc_html_e('Change Language', 'wpbot'); ?>
66 </span> </a></li>
67
68 <div class="cxsc-settings_openai_border"> <a href="<?php echo esc_url( $action) .'_openAi' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-gear"></i>
69 </span> <span class=""> <?php esc_html_e('AI Settings', 'wpbot'); ?> </span>
70 </a>
71 </div>
72
73
74
75 <li tab-data="themes"><a href="<?php echo esc_url($action) .'&tab=themes' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-random"></i> </span> <span class="wpwbot-admin-tab-name">
76 <?php esc_html_e('Icons & Themes', 'wpbot'); ?>
77 </span> </a></li>
78 <li tab-data="support"><a href="<?php echo esc_url($action).'&tab=support' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-life-ring"></i> </span> <span class="wpwbot-admin-tab-name">
79 <?php esc_html_e('FAQ Builder', 'wpbot'); ?>
80 </span> </a></li>
81 <li tab-data="startmenu"><a href="<?php echo esc_url($action).'&tab=startmenu' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-bars"></i> </span> <span class="wpwbot-admin-tab-name"><?php esc_html_e('Start Menu', 'wpbot'); ?></span> </a></li>
82
83
84 <li tab-data="ai"><a href="<?php echo esc_url($action).'&tab=ai' ?>"> <span class="wpwbot-admin-tab-icon"> <i class="fa fa-500px"></i> </span> <span class="wpwbot-admin-tab-name">
85 <?php esc_html_e('Dialogflow', 'wpbot'); ?>
86 </span> </a></li>
87
88
89 <li tab-data="<?php echo esc_url('rpl'); ?>" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>">
90 <span class="wpwbot-admin-tab-icon"> <i class="fa fa-plug"></i>
91 </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'wpbot'); ?>
92 </span>
93 </a>
94 </li>
95
96
97
98
99 <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=ai'?>">
100 <span class="wpwbot-admin-tab-icon"> <i class="fa fa-code"></i>
101 </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Custom CSS', 'wpbot'); ?></span>
102 </a>
103 </li>
104
105
106 </ul>
107
108 <div class="text-center mt-5 qcld-goPreemium">
109
110 <a href="https://www.wpbot.pro/" target="_blank"><span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="21" viewBox="0 0 24 21" fill="none">
111 <path d="M19.6799 17.28H4.31988C3.52596 17.28 2.87988 17.9261 2.87988 18.72C2.87988 19.5139 3.52596 20.16 4.31988 20.16H19.6799C20.4738 20.16 21.1199 19.5139 21.1199 18.72C21.1199 17.9261 20.4738 17.28 19.6799 17.28Z" fill="#FF9900"></path>
112 <path d="M22.08 2.88C21.0211 2.88 20.16 3.74114 20.16 4.8C20.16 5.51137 20.5536 6.1267 21.1305 6.45886C20.0198 9.08925 18.287 10.703 16.6675 10.5571C14.8665 10.4102 13.3977 8.28094 12.5875 4.71839C13.6262 4.45533 14.4 3.51933 14.4 2.4C14.4 1.07616 13.3238 0 12 0C10.6761 0 9.59995 1.07616 9.59995 2.4C9.59995 3.51938 10.3737 4.45538 11.4124 4.71839C10.6022 8.28094 9.13336 10.4102 7.33242 10.5571C5.71964 10.703 3.97913 9.08925 2.86941 6.45886C3.44634 6.1267 3.83995 5.51133 3.83995 4.8C3.83995 3.74114 2.97881 2.88 1.91995 2.88C0.861141 2.88 0 3.74114 0 4.8C0 5.78498 0.748781 6.58945 1.70494 6.69886L3.55392 16.32H20.4461L22.295 6.69886C23.2512 6.58945 24 5.78498 24 4.8C24 3.74114 23.1389 2.88 22.08 2.88Z" fill="url(#paint0_linear_189_140)"></path>
113 <defs>
114 <linearGradient id="paint0_linear_189_140" x1="12" y1="0" x2="12" y2="16.32" gradientUnits="userSpaceOnUse">
115 <stop stop-color="#FFC045"></stop>
116 <stop offset="1" stop-color="#FF9900"></stop>
117 </linearGradient>
118 </defs>
119 </svg></span>Go Premium</a>
120
121 </div>
122
123
124 <div class="text-center mt-5 qcld-Resetall">
125 <input type="button" class="btn btn-warning submit-button"
126 id="qcld-wp-chatbot-reset-option"
127 value="<?php echo esc_html('Reset all options to Default') ; ?>"/>
128 </div>
129 </nav>
130
131
132
133
134 <div class="content-wrap">
135 <section id="section-flip-1">
136
137
138 <div class="wrap qcld-swpm-admin-menu-wrap">
139 <div class="wrap qcld-swpm-admin-menu-wrap">
140 <h3 class="nav-tab-wrapper sld_nav_container wppt_nav_container">
141 <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html('Getting Started'); ?></a>
142 <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html('WPBot – In a Nutshell'); ?></a>
143 </h3>
144 <div class="wppt-settings-section" id="general_int">
145 <div class="content form-container qcbot_help_secion" style="">
146 <!-- new Section -->
147
148 <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_html__('WPBot Interactions', 'wpbot'); ?></h3>
149 <p><?php echo esc_html__('You can use WPBot to both answer user questions and collect information from the users.', 'wpbot'); ?></p>
150 <h4><?php echo esc_html__('To create answers to user questions you can use:', 'wpbot'); ?></h4>
151 <p> <b><?php echo esc_html__('Simple Text Responses', 'wpbot'); ?></b> (built-in), <b style="font-size: 14px"><?php echo esc_html__('FAQ', 'wpbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Site search', 'wpbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Product search', 'wpbot'); ?></b>(built-in Pro feature), <b style="font-size: 14px"><?php echo esc_html__('DialogFlow', 'wpbot'); ?></b>(3rd Party) or <b style="font-size: 14px"><?php echo esc_html__('OpenAI', 'wpbot'); ?></b>(3rd Party)</br>
152 </p>
153 <h4> <?php echo esc_html__('To collect information from your users you can use:', 'wpbot'); ?></h4>
154 <p> <b>
155 <?php echo esc_html__('Conversational forms', 'wpbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Mail us', 'wpbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Call me back', 'wpbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Collect feedback features', 'wpbot'); ?></b>(built-in)</p>
156 <hr>
157 <p>
158 <b> <?php echo esc_html__('When you activate the plugin, by default only the Site search option will work. Site search displays links to your website pages that contain the keywords in the user query. ', 'wpbot'); ?>
159 </b></p>
160 <p><b><?php echo esc_html__('To generate direct text responses, you need to use either Simple Text Responses or AI services. ', 'wpbot'); ?>
161 </b></p>
162 <hr>
163 <h4><?php echo esc_html__('You can create user interactions in the following ways:', 'wpbot'); ?></h4>
164
165 <div class="panel panel-default">
166 <div class="panel-heading" role="tab" id="FeaturesOne">
167 <h4 class="panel-title">
168 <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>
169 </h4>
170 </div>
171 <div id="FeaturescollapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="FeaturesOne">
172 <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">
173 <div class="wpb_column vc_column_container vc_col-sm-6">
174 <div class="vc_column-inner ">
175 <div class="wpb_wrapper">
176 <div class="to-icon-box left txt-left">
177 <div class="to-icon-txt fa-4x-txt ">
178 <h3>
179 <span>// </span><?php esc_html_e('Simple Text Responses', 'wpbot'); ?>
180 </h3>
181 <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>
182 </div>
183 </div>
184 <div class="to-icon-box left txt-left">
185 <div class="to-icon-txt fa-4x-txt ">
186 <h3>
187 <span>// </span><?php esc_html_e('Send eMail, Call Me Back &amp; Feedback Collection', 'wpbot'); ?>
188 </h3>
189 <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>
190 </div>
191 </div>
192 <div class="to-icon-box left txt-left">
193 <div class="to-icon-txt fa-4x-txt ">
194 <h3>
195 <span>// </span><?php esc_html_e('Advanced Site Search', 'wpbot'); ?> <span class="qc_wpbot_pro">PRO</span>
196 </h3>
197 <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>
198 </div>
199 </div>
200 </div>
201 </div>
202 </div>
203 <div class="wpb_column vc_column_container vc_col-sm-6">
204 <div class="vc_column-inner ">
205 <div class="wpb_wrapper">
206 <div class="to-icon-box left txt-left">
207 <div class="to-icon-txt fa-4x-txt ">
208 <h3>
209 <span>// </span><?php esc_html_e('Frequently Asked Questions', 'wpbot'); ?>
210 </h3>
211 <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>
212 </div>
213 </div>
214 <div class="to-icon-box left txt-left">
215 <div class="to-icon-txt fa-4x-txt ">
216 <h3>
217 <span>// </span>Ask for name, email, phone number etc.
218 </h3>
219 <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>
220 </div>
221 </div>
222 <div class="to-icon-box left txt-left">
223 <div class="to-icon-txt fa-4x-txt ">
224 <h3>
225 <span>// </span><?php esc_html_e('Newsletter Subscription', 'wpbot'); ?> <span class="qc_wpbot_pro">PRO</span>
226 </h3>
227 <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>
228 </div>
229 </div>
230 </div>
231 </div>
232 </div>
233 </div>
234 </div>
235 </div>
236 </div>
237 <div class="panel panel-default">
238 <div class="panel-heading" role="tab" id="headingTwo">
239 <h4 class="panel-title">
240 <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>
241 </h4>
242 </div>
243 <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
244 <div class="panel-body">
245 <p><?php esc_html_e('Extend the Start Menu with the', 'wpbot'); ?> <?php esc_html_e('powerful Conversational Forms', 'wpbot'); ?>&nbsp;<?php esc_html_e(' Addon for WPBot. It extends WPBot’s functionality and adds the ability to create', 'wpbot'); ?> <?php esc_html_e('conditional conversations', 'wpbot'); ?> <?php esc_html_e('and/or', 'wpbot'); ?> <?php esc_html_e('forms', 'wpbot'); ?> <?php esc_html_e('for the WPBot. It is a visual,', 'wpbot'); ?> <?php esc_html_e('drag and drop', 'wpbot'); ?><?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'); ?> <?php esc_html_e('menu driven', 'wpbot'); ?>
246 <?php esc_html_e('conversations', 'wpbot'); ?> <?php esc_html_e('with if else logic', 'wpbot'); ?> . <?php esc_html_e('Conversations or forms can be', 'wpbot'); ?> <?php esc_html_e('eMailed', 'wpbot'); ?> <?php esc_html_e('to you and', 'wpbot'); ?> <?php esc_html_e('saved in the database', 'wpbot'); ?>.
247 </p>
248 <h4><?php esc_html_e('Conversational Form Builder Free or Pro version works with the WPBot Free or Pro versions.', 'wpbot'); ?></h4>
249 <a class="FormBuilder" href="https://wordpress.org/plugins/conversational-forms/" target="_blank"><?php esc_html_e('Download Free Version', 'wpbot'); ?></a>
250 <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>
251 <h4><?php esc_html_e('What Can You Do with it?', 'wpbot'); ?></h4>
252 <p><?php esc_html_e('Conversation Forms allows you to create a wide variety of forms, that might include:', 'wpbot'); ?></p>
253 <ul>
254 <li><?php esc_html_e('Create menu or button driven conversations', 'wpbot'); ?></li>
255 <li><?php esc_html_e('Conditional Menu Driven Conversations', 'wpbot'); ?>
256 <span class="qc_wpbot_pro" style="font-size: 9px;"><?php esc_html_e('PRO', 'wpbot'); ?></span>
257 </li>
258 <li><?php esc_html_e('Standard Contact Forms', 'wpbot'); ?></li>
259 <li><?php esc_html_e('Dynamic,', 'wpbot'); ?> <?php esc_html_e('conditional Forms', 'wpbot'); ?> <?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>
260 </li>
261 <li>Job <?php esc_html_e('Application Forms', 'wpbot'); ?>
262 </li>
263 <li>
264 <?php esc_html_e('Lead Capture', 'wpbot'); ?> <?php esc_html_e('Forms', 'wpbot'); ?>
265 </li>
266 <li><?php esc_html_e('Various types of', 'wpbot'); ?> <?php esc_html_e('Calculators', 'wpbot'); ?>
267 <span class="qc_wpbot_pro" style="font-size: 9px;"><?php esc_html_e('PRO', 'wpbot'); ?></span>
268 </li>
269 <li><?php esc_html_e('Feedback', 'wpbot'); ?> Survey<?php esc_html_e(' Forms etc.', 'wpbot'); ?> </li>
270 </ul>
271 </div>
272 </div>
273 </div>
274 <div class="panel panel-default">
275 <div class="panel-heading" role="tab" id="AIheadingThree">
276 <h4 class="panel-title">
277 <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>
278 </h4>
279 </div>
280 <div id="AIcollapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="AIheadingThree">
281 <div class="panel-body">
282
283 <div class="section-container">
284 <div class="wpb_column vc_column_container vc_col-sm-6">
285 <div class="wpb_wrapper">
286 <h3 style="font-size: 20px;"><?php esc_html_e('DialogFlow Essential', 'wpbot'); ?></h3> <?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 automatically 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>
287 <p style="text-align: left;"><?php esc_html_e('In addition you can also Enable ', 'wpbot'); ?><?php esc_html_e('Advanced Chained Question and Answers 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>
288 </p>
289 <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'); ?> Cards<?php esc_html_e(', Quick Text Reply or Custom PayLoad inside the ChatBot window. You can also insert an ', 'wpbot'); ?><?php esc_html_e('image', 'wpbot'); ?><?php esc_html_e(' or', 'wpbot'); ?> <?php esc_html_e('youtube video', 'wpbot'); ?><?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>
290 </p>
291 <h3 style="font-size: 20px;"><?php esc_html_e('OpenAI', 'wpbot'); ?></h3><?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'); ?>
292 </div>
293 </div>
294 <div class="wpb_column vc_column_container vc_col-sm-6">
295 <div class="wpb_wrapper">
296 <h3 style="font-size: 20px;"><?php esc_html_e('DialogFlow CX', 'wpbot'); ?> <span class="qc_wpbot_pro">PRO</span>
297 </h3>
298 <p><?php esc_html_e('WPBot supports', 'wpbot'); ?> <?php esc_html_e('visual workflow builder', 'wpbot'); ?><?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'); ?> <?php esc_html_e('workflow', 'wpbot'); ?>. </p>
299 <ul>
300 <li>
301 <?php esc_html_e('Console visualization', 'wpbot'); ?><?php esc_html_e(': A new', 'wpbot'); ?><?php esc_html_e('visual builder', 'wpbot'); ?> <?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'); ?>
302 </li>
303 <li>
304 <?php esc_html_e('Intuitive and powerful conversation control', 'wpbot'); ?>: <?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'); ?>
305 </li>
306 <li>
307 <?php esc_html_e('Flows for agent partitions', 'wpbot'); ?>: <?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'); ?>
308 </li>
309 <img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/dialogflow-cx-1024x676.jpg' ); ?>" alt="Dialogflow CX">
310 </ul>
311 </div>
312 </div>
313 </div>
314
315
316 </div>
317 </div>
318
319
320 <!-- end new Section -->
321
322 </div>
323 </div>
324 </div>
325
326
327
328
329 <div class="wppt-settings-section" id="general_wp_nutshell" style="display:none;">
330 <div class="content form-container qcbot_help_secion">
331 <!-- new Section -->
332 <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_html__('WPBot – In a Nutshell', 'wpbot'); ?></h3>
333
334 <p><?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'); ?></p>
335 <div style="clear:both"></div>
336 <div class="panel panel-default">
337 <div class="panel-heading" role="tab" id="headingOne">
338 <h4 class="panel-title">
339 <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>
340 </h4>
341 </div>
342 <div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
343 <div class="panel-body">
344 <?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>
345 <?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>
346 <?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>
347 <?php echo esc_html_e('Please check this article for'); ?> <span class="wppt_nav_container qcld-plan-tab-text">
348 <a href="#general_int"><?php echo esc_html_e('more details'); ?></a> </span> <?php echo esc_html_e('on how you can create Intents and Responses.'); ?>
349 </div>
350 </div>
351 </div>
352 <div class="panel panel-default">
353 <div class="panel-heading" role="tab" id="headingSix">
354 <h4 class="panel-title">
355 <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>
356 </h4>
357 </div>
358 <div id="collapseSix" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix">
359 <div class="panel-body">
360 <?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>
361 <?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>
362 <?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.'); ?>
363 </div>
364 </div>
365 </div>
366 <div class="panel panel-default">
367 <div class="panel-heading" role="tab" id="headingSeven">
368 <h4 class="panel-title">
369 <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>
370 </h4>
371 </div>
372 <div id="collapseSeven" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSeven">
373 <div class="panel-body">
374 <?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>
375 <?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.'); ?>
376 </div>
377 </div>
378 </div>
379 <div class="panel panel-default">
380 <div class="panel-heading" role="tab" id="headingEight">
381 <h4 class="panel-title">
382 <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>
383 </h4>
384 </div>
385 <div id="collapseEight" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingEight">
386 <div class="panel-body">
387 <?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..'); ?>
388 </div>
389 </div>
390 </div>
391 <div class="panel panel-default">
392 <div class="panel-heading" role="tab" id="headingtwo">
393 <h4 class="panel-title">
394 <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>
395 </h4>
396 </div>
397 <div id="collapsetwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingtwo">
398 <div class="panel-body">
399 <?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.'); ?>
400 </div>
401 </div>
402 </div>
403 <div class="panel panel-default">
404 <div class="panel-heading" role="tab" id="headingThree">
405 <h4 class="panel-title">
406 <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>
407 </h4>
408 </div>
409 <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
410 <div class="panel-body">
411 <?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.'); ?>
412 </div>
413 </div>
414 </div>
415 <div class="panel panel-default">
416 <div class="panel-heading" role="tab" id="headingten">
417 <h4 class="panel-title">
418 <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>
419 </h4>
420 </div>
421 <div id="collapseten" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingten">
422 <div class="panel-body">
423 <?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.'); ?>
424 </div>
425 </div>
426 </div>
427 <div class="panel panel-default">
428 <div class="panel-heading" role="tab" id="headingFour">
429 <h4 class="panel-title">
430 <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>
431 </h4>
432 </div>
433 <div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
434 <div class="panel-body">
435 <?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.'); ?>
436 </div>
437 </div>
438 </div>
439 <div class="panel panel-default">
440 <div class="panel-heading" role="tab" id="headingFive">
441 <h4 class="panel-title">
442 <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>
443 </h4>
444 </div>
445 <div id="collapseFive" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFive">
446 <div class="panel-body">
447 <?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.'); ?>
448 </div>
449 </div>
450 </div>
451 </div>
452 <!-- end new Section -->
453
454
455 </div>
456 <script type="text/javascript">
457 jQuery(document).ready(function($){
458 var url=document.URL;
459 var arr=url.split('#');
460 var tab_tar = '.'+arr[1];
461 setTimeout(function(){
462 jQuery(tab_tar).trigger('click');
463 }, 500);
464
465 jQuery('.wppt_nav_container .nav-tab').on('click', function(e){
466 e.preventDefault();
467 var section_id = jQuery(this).attr('href');
468 jQuery('.wppt_nav_container .nav-tab').removeClass('nav-tab-active');
469 jQuery(this).addClass('nav-tab-active');
470 jQuery('.wppt-settings-section').hide();
471 jQuery('.wppt-settings-section').each(function(){
472 jQuery(section_id).show();
473 });
474 });
475 })
476 </script>
477 </section>
478 <section id="section-flip-2">
479 <div class="top-section">
480 <div class="row">
481 <div class="col-xs-12">
482 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
483 <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'wpbot'); ?>
484 </div> -->
485
486 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('General settings', 'wpbot'); ?></h3>
487
488 <?php if( get_option( 'ai_enabled') != 1 && get_option('qcld_openrouter_enabled') !='1' ){ ?>
489 <div class="qcld-general-settings-connection-notic">
490
491 <p>
492 <?php esc_html_e( ' When you activate the plugin, by default only the Site search option will work. Site search displays links to your website pages that contain the keywords in the user query.','wpbot' ); ?>
493 </p>
494 <p>
495 <?php esc_html_e( 'Use ','wpbot' ); ?><a href="<?php echo esc_url(admin_url('admin.php?page=simple-text-response')); ?>"><b><?php esc_html_e( 'Simple Text Responses','wpbot' ); ?></b></a> <?php esc_html_e( ' or','wpbot' ); ?> <a href="<?php echo esc_url(admin_url('admin.php?page=wpbot_openAi')); ?>"><b><?php esc_html_e( 'Connect to an AI service','wpbot' ); ?> </b></a><?php esc_html_e( 'like OpenAI or OpenRouter. Openrouter supports all the major AI models like Anthropic, Google Gemini, Meta, Mistral, Cohere, xAI, Perplexity AI, DeepSeek etc. and also provides Free Credits.','wpbot' ); ?>
496
497 </p>
498
499 <a class="qcld-general-settings-close" href="javascript:void(0);" onclick="this.parentElement.style.display='none'; localStorage.setItem('qcld_general_settings_notice_closed', '1');">×</a>
500 </div>
501 <?php } ?>
502
503 <div class="cxsc-settings-blocks-notic">
504 <p class="d-ib"><i class="fa fa-check-square-o" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Getting Started section for how to create interactions.', 'wpbot'); ?></p>
505 <p class="d-ib"><i class="fa fa-check-square-o" aria-hidden="true"></i> <?php esc_html_e('You can change ALL the texts used by the ChatBot to YOUR language here to make it speak French, German, Spanish etc. -> Change Language', 'wpbot'); ?></p>
506 <p class="d-ib"><i class="fa fa-check-square-o" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Help and Debugging section to troubleshoot common issues.', 'wpbot'); ?></p>
507 </div>
508
509 <b>
510 <!-- <p>Please see the plugin's Help and Debugging section to troubleshoot common issues.</p> -->
511 </b>
512
513
514 <div class="cxsc-settings-blocks">
515 <div class="form-group">
516 <?php
517 $url = get_site_url();
518 $url = wp_parse_url($url);
519 $domain = $url['host'];
520
521 $admin_email = get_option('admin_email');
522 ?>
523 <h4 class="qc-opt-title"><?php esc_html_e('Emails Will be Sent to', 'wpbot'); ?></h4>
524 <input type="text" class="form-control qc-opt-dcs-font"
525 name="qlcd_wp_chatbot_admin_email"
526 value="<?php echo (get_option('qlcd_wp_chatbot_admin_email') != '' ? esc_attr(get_option('qlcd_wp_chatbot_admin_email')) : esc_attr($admin_email) ) ?>">
527 <label class="qcld_label_width_full" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'wpbot'); ?> </label>
528 </div>
529 </div>
530 <div class="cxsc-settings-blocks">
531 <div class="form-group">
532 <?php
533 $url = get_site_url();
534 $url = wp_parse_url($url);
535 $domain = $url['host'];
536 $fromEmail = "wordpress@" . $domain;
537 ?>
538 <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'wpbot'); ?></h4>
539 <input type="text" class="form-control qc-opt-dcs-font"
540 name="qlcd_wp_chatbot_from_email"
541 value="<?php echo (get_option('qlcd_wp_chatbot_from_email') != '' ? esc_attr( get_option('qlcd_wp_chatbot_from_email')) : esc_attr($fromEmail)); ?> ">
542 <label class="qcld_label_width_full" for="qlcd_wp_chatbot_from_email"><?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 the same as where WordPress is installed. Otherwise, the emails may not be received.', 'wpbot'); ?> </label>
543 </div>
544 </div>
545 </div>
546 </div>
547 <div class="row">
548 <div class="col-xs-12">
549 <div class="cxsc-settings-blocks">
550 <div class="form-group">
551 <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", "wpchatbot"); ?> </h4>
552 <div class="cxsc-settings-blocks">
553 <input value="1" id="skip_wp_greetings" type="checkbox"
554 name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
555 <label for="skip_wp_greetings"><?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", "wpchatbot"); ?> </label>
556 </div>
557 </div>
558 </div>
559 </div>
560 </div>
561
562 <div class="row">
563 <div class="col-xs-12">
564 <div class="cxsc-settings-blocks">
565 <div class="form-group">
566 <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", "wpchatbot"); ?> </h4>
567 <div class="cxsc-settings-blocks">
568 <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox"
569 name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
570 <label for="skip_wp_greetings_donot_show_menu"><?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", "wpchatbot"); ?> </label>
571 </div>
572 </div>
573 </div>
574 </div>
575 </div>
576 <div class="row">
577 <div class="col-xs-12">
578 <div class="form-group">
579 <h4 class="qc-opt-title">
580 <?php esc_html_e('Show Start Menu After Greetings', 'wpbot'); ?>
581 </h4>
582 <div class="cxsc-settings-blocks">
583 <input value="1" id="show_menu_after_greetings" type="checkbox"
584 name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
585 <label for="show_menu_after_greetings">
586 <?php esc_html_e('Show Start Menu After Greetings', 'wpbot'); ?>
587 </label>
588 </div>
589 </div>
590 </div>
591 </div>
592 <div class="row">
593 <div class="col-xs-12">
594 <div class="form-group">
595 <h4 class="qc-opt-title">
596 <?php esc_html_e('Disable WPBot', 'wpbot'); ?>
597 </h4>
598 <div class="cxsc-settings-blocks">
599 <input value="1" id="disable_wp_chatbot" type="checkbox"
600 name="disable_wp_chatbot" <?php echo (get_option('disable_wp_chatbot') == 1 ? esc_attr('checked'): ''); ?>>
601 <label for="disable_wp_chatbot">
602 <?php esc_html_e('Disable WPBot to Load', 'wpbot'); ?>
603 </label>
604 </div>
605 </div>
606 </div>
607 </div>
608 <div class="row">
609 <div class="col-xs-12">
610 <div class="form-group">
611 <h4 class="qc-opt-title">
612 <?php esc_html_e('Disable WPbot on Mobile Device', 'wpbot'); ?>
613 </h4>
614 <div class="cxsc-settings-blocks">
615 <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox"
616 name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
617 <label for="disable_wp_chatbot_on_mobile">
618 <?php esc_html_e('Disable WpBot to Load on Mobile Device', 'wpbot'); ?>
619 </label>
620 </div>
621 </div>
622 </div>
623 </div>
624 <div class="row">
625 <div class="col-xs-12">
626 <div class="form-group">
627 <h4 class="qc-opt-title">
628 <?php esc_html_e('Enable RTL', 'wpbot'); ?>
629 </h4>
630 <div class="cxsc-settings-blocks">
631 <input value="1" id="enable_wp_chatbot_rtl" type="checkbox"
632 name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
633 <label for="enable_wp_chatbot_rtl">
634 <?php esc_html_e('Enable RTL (Right to Left language) Support for Chat', 'wpbot'); ?>
635 </label>
636 </div>
637 </div>
638 </div>
639 </div>
640 <div class="row">
641 <div class="col-xs-12">
642 <div class="form-group">
643 <h4 class="qc-opt-title">
644 <?php esc_html_e('Open All Links in a New Window', 'wpbot'); ?>
645 </h4>
646 <div class="cxsc-settings-blocks">
647 <input value="1" id="open_links_new_window" type="checkbox" name="open_links_new_window" <?php echo (get_option('open_links_new_window') == 1 ? esc_attr('checked'): ''); ?>>
648 <label for="open_links_new_window">
649 <?php esc_html_e('Open All Links in a New Window', 'wpbot'); ?>
650 </label>
651 </div>
652 </div>
653 </div>
654 </div>
655
656 <div class="row">
657 <div class="col-xs-12">
658 <div class="form-group">
659 <h4 class="qc-opt-title"><?php esc_html_e('Bot Response Delay', 'wpbot'); ?> </h4>
660 <div class="cxsc-settings-blocks">
661 <select name="wpbot_preloading_time" id="wpbot_preloading_time">
662 <option value="100" <?php esc_attr_e((get_option('wpbot_preloading_time') == '100' ? 'selected="selected"' : ''), 'wpbot'); ?>><?php esc_html_e('0 Second', 'wpbot'); ?></option>
663 <option value="500" <?php esc_attr_e((get_option('wpbot_preloading_time') == '500' ? 'selected="selected"' : ''), 'wpbot'); ?>><?php esc_html_e('0.5 Second', 'wpbot'); ?></option>
664 <option value="1000" <?php esc_attr_e((get_option('wpbot_preloading_time') == '1000' ? 'selected="selected"' : ''), 'wpbot'); ?>><?php esc_html_e('1 Second', 'wpbot'); ?></option>
665 <option value="2000" <?php esc_attr_e((get_option('wpbot_preloading_time') == '2000' ? 'selected="selected"' : ''), 'wpbot'); ?>><?php esc_html_e('2 Second', 'wpbot'); ?></option>
666 <option value="3000" <?php esc_attr_e((get_option('wpbot_preloading_time') == '3000' ? 'selected="selected"' : ''), 'wpbot'); ?>><?php esc_html_e('3 Second', 'wpbot'); ?></option>
667 </select>
668 <label class="qcld_label_width_full" for="wpbot_preloading_time"><?php esc_html_e('Bot Response Delay', 'wpbot'); ?> </label>
669 </div>
670 </div>
671 </div>
672 </div>
673 <div class="row">
674 <div class="col-xs-12">
675 <div class="form-group">
676 <h4 class="qc-opt-title">
677 <?php esc_html_e('Override WPBot Icon\'s Position', 'wpbot'); ?>
678 </h4>
679 <div class="cxsc-settings-blocks cxsc-settings-blocks-font-resize">
680 <?php
681 $qcld_wb_chatbot_position_x = get_option('wp_chatbot_position_x');
682 if ((!isset($qcld_wb_chatbot_position_x)) || ($qcld_wb_chatbot_position_x == "")) {
683 $qcld_wb_chatbot_position_x = __("120", "wp_chatbot");
684 }
685 $qcld_wb_chatbot_position_y = get_option('wp_chatbot_position_y');
686 if ((!isset($qcld_wb_chatbot_position_y)) || ($qcld_wb_chatbot_position_y == "")) {
687 $qcld_wb_chatbot_position_y = __("120", "wp_chatbot");
688 }
689 ?>
690 <input type="number" class="qc-opt-dcs-font"
691 name="wp_chatbot_position_x"
692 value="<?php esc_attr_e($qcld_wb_chatbot_position_x, 'wpbot'); ; ?>"
693 placeholder="<?php esc_html_e('From Right In ', 'wpbot'); ?>">
694 <span class="qc-opt-dcs-font">
695 <?php esc_html_e('From Right In px', 'wpbot'); ?>
696 </span>
697 <input type="number" class="qc-opt-dcs-font"
698 name="wp_chatbot_position_y"
699 value="<?php esc_attr_e($qcld_wb_chatbot_position_y, 'wpbot'); ; ?>"
700 placeholder="<?php esc_html_e('From Bottom In Px', 'wpbot'); ?> ">
701 <span class="qc-opt-dcs-font">
702 <?php esc_html_e('From Bottom In px', 'wpbot'); ?>
703 </span> </div>
704 </div>
705 <!--.col-sm-12-->
706 </div>
707 <!-- row-->
708 </div>
709 <div class="row">
710 <div class="col-xs-12">
711
712 <div class="panel panel-default">
713 <div class="panel-heading" role="tab" id="headingTwoControl">
714 <h4 class="panel-title">
715 <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwoControl" aria-expanded="false" aria-controls="collapseTwoControl"> <?php esc_html_e('WPBot Loading Control Options', 'wpbot'); ?> </a>
716 </h4>
717 </div>
718 <div id="collapseTwoControl" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwoControl">
719 <div class="panel-body">
720 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('WPBot Loading Control Options', 'wpbot'); ?></h3>
721 <div class="cxsc-settings-blocks cxsc-settings-blocks-style">
722 <div class="row">
723 <div class="col-sm-4 text-right"> <span class="qc-opt-title-font">
724 <?php esc_html_e('Show on Home Page', 'wpbot'); ?>
725 </span> </div>
726 <div class="col-sm-8">
727 <label class="radio-inline ">
728 <input id="wp-chatbot-show-home-page" type="radio"
729 name="wp_chatbot_show_home_page"
730 value="on" <?php echo(get_option('wp_chatbot_show_home_page') == 'on' ? esc_attr('checked' ): ''); ?>>
731 <?php esc_html_e('YES', 'wpbot'); ?>
732 </label>
733 <label class="radio-inline ">
734 <input id="wp-chatbot-show-home-page" type="radio"
735 name="wp_chatbot_show_home_page"
736 value="off" <?php echo(get_option('wp_chatbot_show_home_page') == 'off' ? esc_attr('checked' ): ''); ?>>
737 <?php esc_html_e('NO', 'wpbot'); ?>
738 </label>
739 </div>
740 </div>
741 <!-- row-->
742 <div class="row">
743 <div class="col-sm-4 text-right"> <span class="qc-opt-title-font">
744 <?php esc_html_e('Show on blog posts', 'wpbot'); ?>
745 </span> </div>
746 <div class="col-sm-8">
747 <label class="radio-inline ">
748 <input class="wp-chatbot-show-posts" type="radio"
749 name="wp_chatbot_show_posts"
750 value="on" <?php echo(get_option('wp_chatbot_show_posts') == 'on' ? esc_attr('checked' ): ''); ?>>
751 <?php esc_html_e('YES', 'wpbot'); ?>
752 </label>
753 <label class="radio-inline ">
754 <input class="wp-chatbot-show-posts" type="radio"
755 name="wp_chatbot_show_posts"
756 value="off" <?php echo(get_option('wp_chatbot_show_posts') == 'off' ? esc_attr('checked' ): ''); ?>>
757 <?php esc_html_e('NO', 'wpbot'); ?>
758 </label>
759 </div>
760 </div>
761 <!-- row-->
762 <div class="row">
763 <div class="col-md-4 text-right"> <span class="qc-opt-title-font">
764 <?php esc_html_e('Show on pages', 'wpbot'); ?>
765 </span> </div>
766 <div class="col-md-8">
767 <label class="radio-inline ">
768 <input class="wp-chatbot-show-pages" type="radio"
769 name="wp_chatbot_show_pages"
770 value="on" <?php echo(get_option('wp_chatbot_show_pages') == 'on' ? esc_attr('checked' ): ''); ?>>
771 <?php esc_html_e('All Pages', 'wpbot'); ?>
772 </label>
773 <label class="radio-inline ">
774 <input class="wp-chatbot-show-pages" type="radio"
775 name="wp_chatbot_show_pages"
776 value="off" <?php echo(get_option('wp_chatbot_show_pages') == 'off' ? esc_attr('checked' ): ''); ?>>
777 <?php esc_html_e('Selected Pages Only ', 'wpbot'); ?>
778 </label>
779 <div id="wp-chatbot-show-pages-list">
780 <ul class="checkbox-list">
781 <?php
782 $wp_chatbot_pages = get_pages();
783 $wp_chatbot_select_pages = maybe_unserialize(get_option('wp_chatbot_show_pages_list'));
784 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
785 ?>
786 <li>
787 <input id="<?php echo esc_attr('wp_chatbot_show_page_'. $wp_chatbot_page->ID, 'wpbot' ); ?>"
788 type="checkbox"
789 name="wp_chatbot_show_pages_list[]"
790 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) {
791 echo esc_attr('checked');
792 } ?> >
793 <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>
794 </li>
795 <?php } ?>
796 </ul>
797 </div>
798 </div>
799 </div>
800 <!--row-->
801 <div class="row">
802 <div class="col-sm-4 text-right"> <span class="qc-opt-title-font">
803 <?php esc_html_e('Exclude from Custom Post', 'wpbot'); ?>
804 </span></div>
805 <div class="col-sm-8">
806 <div id="wp-chatbot-exclude-post-list" class="wp-chatbot-exclude-post-list">
807 <ul class="checkbox-list">
808 <?php
809 $get_cpt_args = array(
810 'public' => true,
811 '_builtin' => false
812 );
813
814 $post_types = get_post_types( $get_cpt_args, 'object' );
815 $wp_chatbot_exclude_post_list = maybe_unserialize(get_option('wp_chatbot_exclude_post_list'));
816
817 foreach ($post_types as $post_type) {
818 ?>
819 <li>
820 <input
821 id="<?php echo esc_attr( 'wp_chatbot_exclude_post_'. $post_type->name, 'wpbot' ); ?>"
822 type="checkbox"
823 name="wp_chatbot_exclude_post_list[]"
824 value="<?php echo esc_attr($post_type->name); ?>" <?php if (!empty($wp_chatbot_exclude_post_list) && in_array($post_type->name, $wp_chatbot_exclude_post_list) == true) {
825 echo esc_attr('checked');
826 } ?> >
827 <label
828 for="wp_chatbot_exclude_post_<?php echo esc_attr($post_type->name); ?>"> <?php esc_html_e($post_type->name, 'wpbot'); ?></label>
829 </li>
830 <?php } ?>
831 </ul>
832 </div>
833 </div>
834 </div>
835 </div>
836
837
838
839
840 </div>
841 </div>
842 </div>
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859 <!-- cxsc-settings-blocks-->
860 </div>
861 <!-- col-xs-12-->
862 </div>
863 <!-- row-->
864
865 </div>
866 <!-- top-section-->
867 </section>
868 <section id="section-flip-5">
869 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
870 <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'wpbot'); ?>
871 </div> -->
872 <div class="wp-chatbot-language-center-summmery"> </div>
873 <ul class="nav nav-tabs">
874 <li class="active"><a data-toggle="tab" href="#wp-chatbot-lng-general">
875 <?php esc_html_e('General', 'wpbot'); ?>
876 </a></li>
877 <li><a data-toggle="tab" href="#wp-chatbot-lng-support">
878 <?php esc_html_e('FAQ', 'wpbot'); ?>
879 </a></li>
880 <li><a data-toggle="tab" href="#wp-chatbot-lng-reserve-keyword">
881 <?php esc_html_e('ChatBot Keywords', 'wpbot'); ?>
882 </a></li>
883 </ul>
884 <div class="tab-content">
885 <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
886 <div class="top-section">
887 <div class="row">
888 <div class="col-xs-12" id="wp-chatbot-language-section">
889 <p style="color: red"><b><?php esc_html_e('You can change ALL the texts used by the ChatBot to YOUR OWN language here (like Spanish, French etc.).', 'wpbot' ); ?></b></p>
890 <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>
891 <p><?php esc_html_e('You could use &lt;br&gt; tag for line break.', 'wpbot' ); ?></p>
892 <div class="form-group">
893 <h4 class="qc-opt-title">
894 <?php esc_html_e('Your Company or Website Name', 'wpbot'); ?>
895 </h4>
896 <input type="text" class="form-control qc-opt-dcs-font"
897 name="qlcd_wp_chatbot_host"
898 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?> ">
899 </div>
900 <div class="form-group">
901 <h4 class="qc-opt-title">
902 <?php esc_html_e('Agent name', 'wpbot'); ?>
903 </h4>
904 <input type="text" class="form-control qc-opt-dcs-font"
905 name="qlcd_wp_chatbot_agent"
906 value="<?php echo (get_option('qlcd_wp_chatbot_agent') != '' ? esc_attr(get_option('qlcd_wp_chatbot_agent')) : 'Carrie'); ?>">
907 </div>
908 <div class="form-group">
909 <h4 class="qc-opt-title">
910 <?php esc_html_e('User demo name', 'wpbot'); ?>
911 </h4>
912 <input type="text" class="form-control qc-opt-dcs-font"
913 name="qlcd_wp_chatbot_shopper_demo_name"
914 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?> ">
915 </div>
916 <div class="form-group">
917 <h4 class="qc-opt-title">
918 <?php esc_html_e('YES', 'wpbot'); ?>
919 </h4>
920 <input type="text" class="form-control qc-opt-dcs-font"
921 name="qlcd_wp_chatbot_yes"
922 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_yes') != '' ? get_option('qlcd_wp_chatbot_yes') : 'YES')); ?>">
923 </div>
924 <div class="form-group">
925 <h4 class="qc-opt-title">
926 <?php esc_html_e('NO', 'wpbot'); ?>
927 </h4>
928 <input type="text" class="form-control qc-opt-dcs-font"
929 name="qlcd_wp_chatbot_no"
930 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_no') != '' ? get_option('qlcd_wp_chatbot_no') : 'NO')); ?>">
931 </div>
932 <div class="form-group">
933 <h4 class="qc-opt-title">
934 <?php esc_html_e('OR', 'wpbot'); ?>
935 </h4>
936 <input type="text" class="form-control qc-opt-dcs-font"
937 name="qlcd_wp_chatbot_or"
938 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_or') != '' ? get_option('qlcd_wp_chatbot_or') : 'OR')); ?>">
939 </div>
940 <div class="form-group">
941 <h4 class="qc-opt-title">
942 <?php esc_html_e('Sorry', 'wpbot'); ?>
943 </h4>
944 <input type="text" class="form-control qc-opt-dcs-font "
945 name="qlcd_wp_chatbot_sorry"
946 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sorry') != '' ? get_option('qlcd_wp_chatbot_sorry') : 'Sorry')); ?>">
947 </div>
948 <div class="form-group">
949 <?php
950 $agent_join_options = maybe_unserialize(get_option('qlcd_wp_chatbot_agent_join'));
951 $agent_join_option = 'qlcd_wp_chatbot_agent_join';
952 $agent_join_text = __('has joined the conversation', 'wpbot');
953 $this->qcld_wb_chatbot_dynamic_multi_option($agent_join_options, $agent_join_option, $agent_join_text);
954 ?>
955 </div>
956 </div>
957 <!--col-xs-12-->
958 <div class="col-xs-12" id="wp-chatbot-language-section">
959 <h4 class="text-success">
960 <?php esc_html_e(' Message setting for Greetings: ', 'wpbot'); ?>
961 </h4>
962 <div class="form-group">
963 <?php
964 $welcome_to_options = maybe_unserialize(get_option('qlcd_wp_chatbot_welcome'));
965 $welcome_to_option = 'qlcd_wp_chatbot_welcome';
966 $welcome_to_text = esc_html('Welcome to');
967 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_to_options, $welcome_to_option, $welcome_to_text);
968 ?>
969 </div>
970 <div class="form-group">
971 <?php
972 $welcome_back_options = maybe_unserialize(get_option('qlcd_wp_chatbot_welcome_back'));
973 $welcome_back_option = 'qlcd_wp_chatbot_welcome_back';
974 $welcome_back_text = esc_html('Welcome back');
975 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_back_options, $welcome_back_option, $welcome_back_text);
976 ?>
977 </div>
978 <div class="form-group">
979 <?php
980 $back_to_start_options = maybe_unserialize(get_option('qlcd_wp_chatbot_back_to_start'));
981 $back_to_start_option = 'qlcd_wp_chatbot_back_to_start';
982 $back_to_start_text = esc_html('Back to Start');
983 $this->qcld_wb_chatbot_dynamic_multi_option($back_to_start_options, $back_to_start_option, $back_to_start_text);
984 ?>
985 </div>
986 <div class="form-group">
987 <?php
988 $hi_there_options = maybe_unserialize(get_option('qlcd_wp_chatbot_hi_there'));
989 $hi_there_option = 'qlcd_wp_chatbot_hi_there';
990 $hi_there_text = esc_html('Hi There!');
991 $this->qcld_wb_chatbot_dynamic_multi_option($hi_there_options, $hi_there_option, $hi_there_text);
992 ?>
993 </div>
994 <div class="form-group">
995 <?php
996 $hello_options = maybe_unserialize(get_option('qlcd_wp_chatbot_hello'));
997 $hello_option = 'qlcd_wp_chatbot_hello';
998 $hello_text = esc_html('Hello');
999 $this->qcld_wb_chatbot_dynamic_multi_option($hello_options, $hello_option, $hello_text);
1000 ?>
1001 </div>
1002 <div class="form-group">
1003 <?php
1004 $asking_name_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_name'));
1005 $asking_name_option = 'qlcd_wp_chatbot_asking_name';
1006 $asking_name_text = esc_html('May I know your name?');
1007 $this->qcld_wb_chatbot_dynamic_multi_option($asking_name_options, $asking_name_option, $asking_name_text);
1008 ?>
1009 </div>
1010 <div class="form-group">
1011 <?php
1012 $i_am_options = maybe_unserialize(get_option('qlcd_wp_chatbot_i_am'));
1013 $i_am_option = 'qlcd_wp_chatbot_i_am';
1014 $i_am_text = esc_html('I am');
1015 $this->qcld_wb_chatbot_dynamic_multi_option($i_am_options, $i_am_option, $i_am_text);
1016 ?>
1017 </div>
1018 <div class="form-group">
1019 <?php
1020 $name_greeting_options = maybe_unserialize(get_option('qlcd_wp_chatbot_name_greeting'));
1021 $name_greeting_option = 'qlcd_wp_chatbot_name_greeting';
1022 $name_greeting_text = esc_html('Nice to meet you');
1023 $this->qcld_wb_chatbot_dynamic_multi_option($name_greeting_options, $name_greeting_option, $name_greeting_text);
1024 ?>
1025 </div>
1026 <div class="form-group">
1027 <?php
1028 $wildcard_msg_options = maybe_unserialize(get_option('qlcd_wp_chatbot_wildcard_msg'));
1029 $wildcard_msg_option = 'qlcd_wp_chatbot_wildcard_msg';
1030 $wildcard_msg_text = esc_html('I am here to find what you need. What are you looking for?');
1031 $this->qcld_wb_chatbot_dynamic_multi_option($wildcard_msg_options, $wildcard_msg_option, $wildcard_msg_text);
1032 ?>
1033 </div>
1034 <div class="form-group">
1035 <?php
1036 $empty_filter_msgs = maybe_unserialize(get_option('qlcd_wp_chatbot_empty_filter_msg'));
1037 $empty_filter_msg = 'qlcd_wp_chatbot_empty_filter_msg';
1038 $empty_filter_msg_text = esc_html('Sorry, I did not understand that');
1039 $this->qcld_wb_chatbot_dynamic_multi_option($empty_filter_msgs, $empty_filter_msg, $empty_filter_msg_text);
1040 ?>
1041 </div>
1042 <div class="form-group">
1043 <?php
1044 $qlcd_wp_chatbot_did_you_mean = maybe_unserialize(get_option('qlcd_wp_chatbot_did_you_mean'));
1045 $qlcd_wp_chatbot_did_you_means = 'qlcd_wp_chatbot_did_you_mean';
1046 $wp_chatbot_no_result_text = esc_html('Did you mean?');
1047 $this->qcld_wb_chatbot_dynamic_multi_option($qlcd_wp_chatbot_did_you_mean, $qlcd_wp_chatbot_did_you_means, $wp_chatbot_no_result_text);
1048 ?>
1049 </div>
1050 <h4 class="text-success">
1051 <?php esc_html_e('Message setting for Editor Box ', 'wpbot'); ?>
1052 </h4>
1053 <div class="form-group">
1054 <?php
1055 $is_typing_options = maybe_unserialize(get_option('qlcd_wp_chatbot_is_typing'));
1056 $is_typing_option = 'qlcd_wp_chatbot_is_typing';
1057 $is_typing_text = esc_html('is typing...');
1058 $this->qcld_wb_chatbot_dynamic_multi_option($is_typing_options, $is_typing_option, $is_typing_text);
1059 ?>
1060 </div>
1061 <div class="form-group">
1062 <?php
1063 $send_a_msg_options = maybe_unserialize(get_option('qlcd_wp_chatbot_send_a_msg'));
1064 $send_a_msg_option = 'qlcd_wp_chatbot_send_a_msg';
1065 $send_a_msg_text = esc_html('Send a message');
1066 $this->qcld_wb_chatbot_dynamic_multi_option($send_a_msg_options, $send_a_msg_option, $send_a_msg_text);
1067 ?>
1068 </div>
1069 <div class="form-group">
1070 <?php
1071 $choose_option_options = maybe_unserialize(get_option('qlcd_wp_chatbot_choose_option'));
1072 $choose_option_option = 'qlcd_wp_chatbot_choose_option';
1073 $choose_option_text = esc_html('Choose an option');
1074 $this->qcld_wb_chatbot_dynamic_multi_option($choose_option_options, $choose_option_option, $choose_option_text);
1075 ?>
1076 </div>
1077 <div class="form-group">
1078 <?php
1079 $asking_email_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_email'));
1080 $asking_email_option = 'qlcd_wp_chatbot_asking_email';
1081 $asking_email_text = esc_html('Please provide your email address');
1082 $this->qcld_wb_chatbot_dynamic_multi_option($asking_email_options, $asking_email_option, $asking_email_text);
1083 ?>
1084 </div>
1085 <div class="form-group">
1086 <?php
1087 $invalid_email_options = maybe_unserialize(get_option('qlcd_wp_chatbot_invalid_email'));
1088 $invalid_email_option = 'qlcd_wp_chatbot_invalid_email';
1089 $invalid_email_text = esc_html('Sorry, Email address is not valid! Please provide a valid email.');
1090 $this->qcld_wb_chatbot_dynamic_multi_option($invalid_email_options, $invalid_email_option, $invalid_email_text);
1091 ?>
1092 </div>
1093 <div class="form-group">
1094 <?php
1095 $asking_msg_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_msg'));
1096 $asking_msg_option = 'qlcd_wp_chatbot_asking_msg';
1097 $asking_msg_text = esc_html('Thank you for email address. Please write your message now.');
1098 $this->qcld_wb_chatbot_dynamic_multi_option($asking_msg_options, $asking_msg_option, $asking_msg_text);
1099 ?>
1100 </div>
1101 <div class="form-group">
1102 <h4 class="qc-opt-title">
1103 <?php esc_html_e('WPBot Support Mail Subject', 'wpbot'); ?>
1104 </h4>
1105 <input type="text" class="form-control qc-opt-dcs-font"
1106 name="qlcd_wp_chatbot_email_sub"
1107 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_email_sub') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_email_sub')) : 'Support Email Subject') ); ?>">
1108 </div>
1109 <div class="form-group">
1110 <?php
1111 $support_option_again_options = maybe_unserialize(get_option('qlcd_wp_chatbot_support_option_again'));
1112 $support_option_again_option = 'qlcd_wp_chatbot_support_option_again';
1113 $support_option_again_text = esc_html('You may choose option from below.');
1114 $this->qcld_wb_chatbot_dynamic_multi_option($support_option_again_options, $support_option_again_option, $support_option_again_text);
1115 ?>
1116 </div>
1117 <div class="form-group">
1118 <h4 class="qc-opt-title">
1119 <?php esc_html_e('Your email was sent successfully.Thanks!', 'wpbot'); ?>
1120 </h4>
1121 <input type="text" class="form-control qc-opt-dcs-font"
1122 name="qlcd_wp_chatbot_email_sent"
1123 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!')); ?> ">
1124 </div>
1125 <div class="form-group">
1126 <h4 class="qc-opt-title">
1127 <?php esc_html_e('Sorry! I could not send your mail! Please contact the webmaster.', 'wpbot'); ?>
1128 </h4>
1129 <input type="text" class="form-control qc-opt-dcs-font "
1130 name="qlcd_wp_chatbot_email_fail"
1131 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')); ?> ">
1132 </div>
1133
1134 <div class="form-group">
1135 <h4 class="qc-opt-title">
1136 <?php esc_html_e('Check the relevant pages for more details and up to date information:', 'wpbot'); ?>
1137 </h4>
1138 <input type="text" class="form-control qc-opt-dcs-font "
1139 name="qlcd_wp_chatbot_relevant_post_link_openai"
1140 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_relevant_post_link_openai') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_relevant_post_link_openai')) : 'Check the relevant pages for more details and up to date information:')); ?> ">
1141 </div>
1142
1143 <div class="form-group">
1144 <?php
1145 $asking_phone_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_phone'));
1146 $asking_phone_option = 'qlcd_wp_chatbot_asking_phone';
1147 $asking_phone_text = esc_html('Please provide your Phone number');
1148 $this->qcld_wb_chatbot_dynamic_multi_option($asking_phone_options, $asking_phone_option, $asking_phone_text);
1149 ?>
1150 </div>
1151 <div class="form-group">
1152 <?php
1153 $thanks_phone_options = maybe_unserialize(get_option('qlcd_wp_chatbot_thank_for_phone'));
1154 $thanks_phone_option = 'qlcd_wp_chatbot_thank_for_phone';
1155 $thanks_phone_text = esc_html('Thank you for Phone number');
1156 $this->qcld_wb_chatbot_dynamic_multi_option($thanks_phone_options, $thanks_phone_option, $thanks_phone_text);
1157 ?>
1158 </div>
1159 <div class="form-group">
1160 <h4 class="qc-opt-title">
1161 <?php esc_html_e('Thanks for your phone number. We will call you ASAP!', 'wpbot'); ?>
1162 </h4>
1163 <input type="text" class="form-control qc-opt-dcs-font"
1164 name="qlcd_wp_chatbot_phone_sent"
1165 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!')); ?> ">
1166 </div>
1167 <div class="form-group">
1168 <h4 class="qc-opt-title">
1169 <?php esc_html_e('Sorry! I could not collect phone number! Please contact the webmaster.', 'wpbot'); ?>
1170 </h4>
1171 <input type="text" class="form-control qc-opt-dcs-font"
1172 name="qlcd_wp_chatbot_phone_fail"
1173 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!')); ?> ">
1174 </div>
1175
1176 <div class="form-group">
1177 <h4 class="qc-opt-title">
1178 <?php esc_html_e('Please enter your keyword for searching', 'wpbot'); ?>
1179 </h4>
1180 <input type="text" class="form-control qc-opt-dcs-font"
1181 name="qlcd_wp_chatbot_asking_search_keyword"
1182 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_asking_search_keyword') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_asking_search_keyword')) : 'Please enter your keyword for searching')); ?> ">
1183 </div>
1184 <div class="form-group">
1185 <h4 class="qc-opt-title">
1186 <?php esc_html_e('We have found these results', 'wpbot'); ?>
1187 </h4>
1188 <input type="text" class="form-control qc-opt-dcs-font"
1189 name="qlcd_wp_chatbot_found_result"
1190 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_found_result') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_found_result')) : 'We have found these results')); ?> ">
1191 </div>
1192 <div class="form-group">
1193 <?php
1194 $qlcd_wp_chatbot_product_fails = maybe_unserialize(get_option('qlcd_wp_chatbot_product_fail'));
1195 $qlcd_wp_chatbot_product_fail = 'qlcd_wp_chatbot_product_fail';
1196 $fail_text = esc_html('Sorry, I found nothing');
1197 $this->qcld_wb_chatbot_dynamic_multi_option($qlcd_wp_chatbot_product_fails, $qlcd_wp_chatbot_product_fail, $fail_text);
1198 ?>
1199 </div>
1200 </div>
1201 </div>
1202 </div>
1203 </div>
1204 <div id="wp-chatbot-lng-support" class="tab-pane fade">
1205 <div class="top-section">
1206 <div class="row">
1207 <div class="col-xs-12" id="wp-chatbot-language-section">
1208 <div class="form-group">
1209 <?php
1210 $support_welcome_options = maybe_unserialize(get_option('qlcd_wp_chatbot_support_welcome'));
1211 $support_welcome_option = 'qlcd_wp_chatbot_support_welcome';
1212 $support_welcome_text = esc_html('Welcome to FAQ Section');
1213 $this->qcld_wb_chatbot_dynamic_multi_option($support_welcome_options, $support_welcome_option, $support_welcome_text);
1214 ?>
1215 </div>
1216
1217
1218
1219 </div>
1220 </div>
1221 </div>
1222 </div>
1223 <div id="wp-chatbot-lng-reserve-keyword" class="tab-pane fade">
1224 <div class="top-section">
1225 <div class="row">
1226 <div class="col-xs-12" id="wp-chatbot-language-section">
1227 <div class="form-group">
1228 <h4 class="qc-opt-title">
1229 <?php esc_html_e('Start Keyword', 'wpbot'); ?>
1230 </h4>
1231 <input type="text" class="form-control qc-opt-dcs-font"
1232 name="qlcd_wp_chatbot_sys_key_help"
1233 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_help') != '' ? get_option('qlcd_wp_chatbot_sys_key_help'): 'start')) ; ?> ">
1234 </div>
1235 <div class="form-group">
1236 <h4 class="qc-opt-title"><strong>
1237 <?php esc_html_e('FAQ', 'wpbot'); ?>
1238 </strong>
1239 <?php esc_html_e('Keyword', 'wpbot'); ?>
1240 </h4>
1241 <input type="text" class="form-control qc-opt-dcs-font"
1242 name="qlcd_wp_chatbot_sys_key_support"
1243 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_support') != '' ? get_option('qlcd_wp_chatbot_sys_key_support') : 'faq')); ?> ">
1244 </div>
1245 <div class="form-group">
1246 <h4 class="qc-opt-title"><strong>
1247 <?php esc_html_e('Converstion History Clear', 'wpbot'); ?>
1248 </strong>
1249 <?php esc_html_e('Keyword', 'wpbot'); ?>
1250 </h4>
1251 <input type="text" class="form-control qc-opt-dcs-font"
1252 name="qlcd_wp_chatbot_sys_key_reset"
1253 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_reset') != '' ? get_option('qlcd_wp_chatbot_sys_key_reset') : 'reset')); ?> ">
1254 </div>
1255 <div class="form-group">
1256 <h4 class="qc-opt-title"><strong>
1257 <?php esc_html_e('eMail', 'wpbot'); ?>
1258 </strong>
1259 <?php esc_html_e('Keyword to Send eMail', 'wpbot'); ?>
1260 </h4>
1261 <input type="text" class="form-control qc-opt-dcs-font"
1262 name="qlcd_wp_chatbot_sys_key_email"
1263 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_email') != '' ? get_option('qlcd_wp_chatbot_sys_key_email'): 'email')); ?>">
1264 </div>
1265 <div class="form-group">
1266 <?php
1267 $help_welcome_options = maybe_unserialize(wp_kses_post(get_option('qlcd_wp_chatbot_help_welcome')));
1268 $help_welcome_option = 'qlcd_wp_chatbot_help_welcome';
1269 $help_welcome_text = esc_html('Welcome to Help Section');
1270 $this->qcld_wb_chatbot_dynamic_multi_option($help_welcome_options, $help_welcome_option, $help_welcome_text);
1271 ?>
1272 </div>
1273 <div class="form-group">
1274 <?php
1275 $help_msg_options = maybe_unserialize(wp_kses_post(get_option('qlcd_wp_chatbot_help_msg')));
1276 $help_msg_option = 'qlcd_wp_chatbot_help_msg';
1277 $help_msg_text = '<b>Type and Hit Enter</b><br><ul><li> <b>start</b> to Get back to the main menu. </li><li> <b>faq</b> for FAQ. </li><li> <b>email </b> to send eMail </li><li> <b>reset</b> to restart the chat</li></ul>';
1278 $this->qcld_wb_chatbot_dynamic_multi_option($help_msg_options, $help_msg_option, $help_msg_text);
1279 ?>
1280 </div>
1281 <div class="form-group">
1282 <?php
1283 $reset_options = maybe_unserialize(wp_kses_post(get_option('qlcd_wp_chatbot_reset')));
1284 $reset_option = 'qlcd_wp_chatbot_reset';
1285 $reset_text = esc_html('Do you want to clear our chat history and start over?' );
1286 $this->qcld_wb_chatbot_dynamic_multi_option($reset_options, $reset_option, $reset_text);
1287 ?>
1288 </div>
1289 </div>
1290 <!-- col-xs-12-->
1291 </div>
1292 <!-- row-->
1293 </div>
1294 <!-- top-section-->
1295 </div>
1296 </div>
1297 <!-- tab-content-->
1298 </section>
1299 <section id="section-flip-3">
1300 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1301 <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'wpbot'); ?>
1302 </div> -->
1303 <ul class="nav nav-tabs">
1304 <li class="active"><a data-toggle="tab" href="#wp-chatbot-icon-theme-settings"><?php esc_html_e('Icons & Themes', 'wpbot'); ?></a></li>
1305 <li><a data-toggle="tab" href="#wp-chatbot-custom-color-options"><?php esc_html_e('Custom Style Options', 'wpbot'); ?></a></li>
1306 </ul>
1307 <div class="tab-content">
1308 <div id="wp-chatbot-icon-theme-settings" class="tab-pane fade in active">
1309 <div class="top-section">
1310 <div class="row">
1311 <div class="col-xs-12">
1312
1313 <h3 class="qcld-wpbot-main-tabs-title">
1314 <?php esc_html_e('WPBot Icon', 'wpbot'); ?>
1315 </h3>
1316 <div class="cxsc-settings-blocks">
1317 <ul class="radio-list">
1318
1319 <li>
1320 <label for="wp_chatbot_icon_0" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-0.png" alt="">
1321 <input id="wp_chatbot_icon_0" type="radio"
1322 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-0.png' ? esc_attr('checked' ): ''); ?>
1323 value="<?php echo esc_attr('icon-0.png'); ?>">
1324 <?php esc_html_e('Icon - 0', 'wpbot'); ?>
1325 </label>
1326 </li>
1327 <li>
1328 <label for="wp_chatbot_icon_1" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-1.png"
1329 alt="">
1330 <input id="wp_chatbot_icon_1" type="radio"
1331 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-1.png' ? esc_attr('checked' ): ''); ?>
1332 value="<?php echo esc_attr('icon-1.png'); ?>">
1333 <?php esc_html_e('Icon - 1', 'wpbot'); ?>
1334 </label>
1335 </li>
1336 <li>
1337 <label for="wp_chatbot_icon_2" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-2.png"
1338 alt="">
1339 <input id="wp_chatbot_icon_2" type="radio"
1340 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-2.png' ? esc_attr('checked' ): ''); ?>
1341 value="<?php echo esc_attr('icon-2.png'); ?>">
1342 <?php esc_html_e('Icon - 2', 'wpbot'); ?>
1343 </label>
1344 </li>
1345 <li>
1346 <label for="wp_chatbot_icon_3" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-3.png"
1347 alt="">
1348 <input id="wp_chatbot_icon_3" type="radio"
1349 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-3.png' ? esc_attr('checked' ): ''); ?>
1350 value="<?php echo esc_attr('icon-3.png'); ?>">
1351 <?php esc_html_e('Icon - 3', 'wpbot'); ?>
1352 </label>
1353 </li>
1354 <li>
1355 <label for="wp_chatbot_icon_4" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-4.png"
1356 alt="' ">
1357 <input id="wp_chatbot_icon_4" type="radio"
1358 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-4.png' ? esc_attr('checked'): ''); ?>
1359 value="<?php echo esc_attr('icon-4.png'); ?>">
1360 <?php esc_html_e('Icon - 4', 'wpbot'); ?>
1361 </label>
1362 </li>
1363 <li>
1364 <label for="wp_chatbot_icon_5" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-5.png"
1365 alt="">
1366 <input id="wp_chatbot_icon_5" type="radio"
1367 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-5.png' ? esc_attr('checked' ): ''); ?>
1368 value="<?php echo esc_attr('icon-5.png'); ?>">
1369 <?php esc_html_e('Icon - 5', 'wpbot'); ?>
1370 </label>
1371 </li>
1372 <li>
1373 <label for="wp_chatbot_icon_6" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-6.png"
1374 alt=" ">
1375 <input id="wp_chatbot_icon_6" type="radio"
1376 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-6.png' ? esc_attr('checked' ): ''); ?>
1377 value="<?php echo esc_attr('icon-6.png'); ?>">
1378 <?php esc_html_e('Icon - 6', 'wpbot'); ?>
1379 </label>
1380 </li>
1381 <li>
1382 <label for="wp_chatbot_icon_7" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-7.png"
1383 alt=" ">
1384 <input id="wp_chatbot_icon_7" type="radio"
1385 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-7.png' ? esc_attr('checked' ): ''); ?>
1386 value="<?php echo esc_attr('icon-7.png'); ?>">
1387 <?php esc_html_e('Icon - 7', 'wpbot'); ?>
1388 </label>
1389 </li>
1390 <li>
1391 <label for="wp_chatbot_icon_8" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-8.png"
1392 alt="">
1393 <input id="wp_chatbot_icon_8" type="radio"
1394 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-8.png' ? esc_attr('checked' ): ''); ?>
1395 value="<?php echo esc_attr('icon-8.png'); ?>">
1396 <?php esc_html_e('Icon - 8', 'wpbot'); ?>
1397 </label>
1398 </li>
1399 <li>
1400 <label for="wp_chatbot_icon_9" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-9.png"
1401 alt=" ">
1402 <input id="wp_chatbot_icon_9" type="radio"
1403 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-9.png' ? esc_attr('checked' ): ''); ?>
1404 value="<?php echo esc_attr('icon-9.png'); ?>">
1405 <?php esc_html_e('Icon - 9', 'wpbot'); ?>
1406 </label>
1407 </li>
1408 <li>
1409 <label for="wp_chatbot_icon_10" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-10.png"
1410 alt=" ">
1411 <input id="wp_chatbot_icon_10" type="radio"
1412 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-10.png' ? esc_attr('checked' ): ''); ?>
1413 value="<?php echo esc_attr('icon-10.png'); ?>">
1414 <?php esc_html_e('Icon - 10', 'wpbot'); ?>
1415 </label>
1416 </li>
1417 <li>
1418 <label for="wp_chatbot_icon_11" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-11.png"
1419 alt="">
1420 <input id="wp_chatbot_icon_11" type="radio"
1421 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-11.png' ? esc_attr('checked' ): ''); ?>
1422 value="<?php echo esc_attr('icon-11.png'); ?>">
1423 <?php esc_html_e('Icon - 11', 'wpbot'); ?>
1424 </label>
1425 </li>
1426 <li>
1427 <label for="wp_chatbot_icon_12" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-12.png"
1428 alt="">
1429 <input id="wp_chatbot_icon_12" type="radio"
1430 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-12.png' ? esc_attr('checked' ): ''); ?>
1431 value="<?php echo esc_attr('icon-12.png'); ?>">
1432 <?php esc_html_e('Icon - 12', 'wpbot'); ?>
1433 </label>
1434 </li>
1435
1436 <li>
1437 <label for="wp_chatbot_icon_13" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-13.png"
1438 alt="">
1439 <input id="wp_chatbot_icon_13" type="radio"
1440 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-13.png' ? esc_attr('checked' ): ''); ?>
1441 value="<?php echo esc_attr('icon-13.png'); ?>">
1442 <?php esc_html_e('Icon - 13', 'wpbot'); ?>
1443 </label>
1444 </li>
1445 <li>
1446 <?php
1447 if (get_option('wp_chatbot_custom_icon_path') != "") {
1448 $wp_chatbot_custom_icon_path = get_option('wp_chatbot_custom_icon_path');
1449 } else {
1450 $wp_chatbot_custom_icon_path = esc_url(QCLD_wpCHATBOT_IMG_URL) . 'custom.png';
1451 }
1452 ?>
1453 <label for="wp_chatbot_custom_icon_input" class="qc-opt-dcs-font"> <img id="wp_chatbot_custom_icon_src "
1454 src="<?php echo esc_url($wp_chatbot_custom_icon_path); ?>" alt=" ">
1455 <input id="wp_chatbot_custom_icon_input" type="radio"
1456 name="wp_chatbot_icon"
1457 value="<?php echo esc_attr('custom.png' ); ?>" <?php echo(get_option('wp_chatbot_icon') == 'custom.png' ? esc_attr('checked' ): ''); ?>>
1458 <?php esc_html_e('Custom Icon', 'wpbot'); ?>
1459 </label>
1460 </li>
1461 </ul>
1462 </div>
1463 <!-- cxsc-settings-blocks-->
1464
1465 <div class="row">
1466 <div class="col-xs-12">
1467 <div class="cxsc-settings-blocks">
1468 <div class="form-group">
1469 <h4 class="qc-opt-title">
1470 <?php esc_html_e('WPBot Icon Background Color.', 'wpbot'); ?>
1471 </h4>
1472 <input id="wp_chatbot_floatingiconbg_color" type="text" name="wp_chatbot_floatingiconbg_color" value="<?php echo esc_attr((get_option('wp_chatbot_floatingiconbg_color') != '' ? get_option('wp_chatbot_floatingiconbg_color'): '#fff') ); ?>"/>
1473 </div>
1474 </div>
1475 </div>
1476 </div>
1477 <div class="row">
1478 <div class="col-xs-12">
1479 <div class="form-group">
1480 <h4 class="qc-opt-title">
1481 <?php esc_html_e(' Upload custom Icon ', 'wpbot'); ?> <span class="small"><span class="text-danger"><?php esc_html_e('** If you select custom icon, you must upload an icon image.', 'wpbot'); ?></span></span>
1482 </h4>
1483 <div class="cxsc-settings-blocks">
1484 <input type="hidden" name="wp_chatbot_custom_icon_path"
1485 id="wp_chatbot_custom_icon_path"
1486 value="<?php esc_attr_e( $wp_chatbot_custom_icon_path, 'wpbot' ); ?>"/>
1487 <button type="button" class="wp_chatbot_custom_icon_button button">
1488 <?php esc_html_e('Upload Icon', 'wpbot'); ?>
1489 </button>
1490 </div>
1491 </div>
1492 </div>
1493 </div>
1494
1495
1496
1497 <div class="row">
1498 <div class="col-xs-12">
1499 <div class="form-group">
1500 <h4 class="qc-opt-title">
1501 <?php esc_html_e(' WPBot Agent Image', 'wpbot'); ?>
1502 </h4>
1503 <div class="cxsc-settings-blocks">
1504 <ul class="radio-list radio-list-custom">
1505 <li>
1506 <label for="wp_chatbot_agent_image_def" class="qc-opt-dcs-font"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>icon-13.png"
1507 alt="">
1508 <input id="wp_chatbot_agent_image_def" type="radio"
1509 name="wp_chatbot_agent_image" <?php echo(get_option('wp_chatbot_agent_image') == 'agent-0.png' ? esc_attr('checked' ): ''); ?>
1510 value="agent-0.png">
1511 <?php esc_html_e('Default Agent', 'wpbot'); ?>
1512 </label>
1513 </li>
1514 <li>
1515 <?php
1516 if (get_option('wp_chatbot_custom_agent_path') != "") {
1517 $wp_chatbot_custom_agent_path = get_option('wp_chatbot_custom_agent_path');
1518 } else {
1519 $wp_chatbot_custom_agent_path = esc_url(QCLD_wpCHATBOT_IMG_URL) . 'custom-agent.png';
1520 }
1521 ?>
1522 <label for="wp_chatbot_agent_image_custom" class="qc-opt-dcs-font"> <img id="wp_chatbot_custom_agent_src"
1523 src="<?php echo esc_url($wp_chatbot_custom_agent_path); ?>"
1524 alt="Agent">
1525 <input type="radio" name="wp_chatbot_agent_image"
1526 id="wp_chatbot_agent_image_custom"
1527 value="custom-agent.png" <?php echo(get_option('wp_chatbot_agent_image') == 'custom-agent.png' ? esc_attr('checked' ): ''); ?>>
1528 <?php esc_html_e('Custom Agent', 'wpbot'); ?></label>
1529 </li>
1530 </ul>
1531 </div>
1532 <!-- cxsc-settings-blocks-->
1533 </div>
1534 </div>
1535 </div>
1536 </div>
1537 </div>
1538 </div>
1539 <div class="top-section">
1540 <div class="row">
1541 <div class="col-xs-12">
1542 <div class="form-group">
1543 <h4 class="qc-opt-title">
1544 <?php esc_html_e('Custom Agent Icon', 'wpbot'); ?>
1545 </h4>
1546 <div class="cxsc-settings-blocks">
1547 <input type="hidden" name="wp_chatbot_custom_agent_path"
1548 id="wp_chatbot_custom_agent_path"
1549 value="<?php esc_attr_e( $wp_chatbot_custom_agent_path, 'wpbot' ); ?>"/>
1550 <button type="button" class="wp_chatbot_custom_agent_button button">
1551 <?php esc_html_e('Upload Agent Icon', 'wpbot'); ?>
1552 </button>
1553 </div>
1554 </div>
1555 </div>
1556 </div>
1557 </div>
1558 <div id="top-section">
1559 <div class="form-group">
1560 <div class="row">
1561 <div class="col-sm-12">
1562 <h4 class="qc-opt-title">
1563 <?php esc_html_e('WPBot Themes', 'wpbot'); ?>
1564 </h4>
1565 </div>
1566 </div>
1567 <div class="row qcld_thumbnail_theme_prev">
1568 <div class="col-sm-3">
1569 <label for="qcld_wb_chatbot_theme_0"> <img class="thumbnail theme_prev"
1570 src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>templates/template-00.JPG"
1571 alt="Theme Basic">
1572 <input id="qcld_wb_chatbot_theme_0" type="radio"
1573 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-00' ? esc_attr('checked' ): ''); ?>
1574 value="template-00">
1575 <?php esc_html_e('Theme Basic', 'wpbot'); ?>
1576 </label>
1577 </div>
1578 <div class="col-sm-3">
1579 <label for="qcld_wb_chatbot_theme_1"> <img class="thumbnail theme_prev"
1580 src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>templates/template-01.JPG"
1581 alt="Theme Basic">
1582 <input id="qcld_wb_chatbot_theme_1" type="radio"
1583 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-01' ? esc_attr('checked' ): ''); ?>
1584 value="template-01">
1585 <?php esc_html_e('Theme One', 'wpbot'); ?>
1586 </label>
1587 </div>
1588 <div class="col-sm-6">
1589 <label for="qcld_wb_chatbot_theme_horizontal"> <img class="thumbnail theme_prev"
1590 src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>templates/horizontal.png"
1591 alt="Theme horizontal">
1592 <input id="qcld_wb_chatbot_theme_horizontal" type="radio"
1593 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-horizontal' ? esc_attr('checked' ): ''); ?>
1594 value="template-horizontal">
1595 <?php esc_html_e('Theme Horizontal', 'wpbot'); ?>
1596 </label>
1597 </div>
1598 </div>
1599 </div>
1600 </div>
1601 </div>
1602
1603
1604 <div id="wp-chatbot-custom-color-options" class="tab-pane fade">
1605 <div class="top-section">
1606 <div class="row">
1607
1608 <div class="col-xs-6">
1609 <div class="cxsc-settings-blocks cxsc-settings-blocks-style">
1610 <div class="form-group">
1611 <h4 class="qc-opt-title">
1612 <?php esc_html_e('Custom Style Options', 'wpbot'); ?>
1613 </h4>
1614 <div class="cxsc-settings-blocks">
1615 <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
1616 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>>
1617 <label for="enable_wp_chatbot_custom_color">
1618 <?php esc_html_e('Enable Style Colors ', 'wpbot'); ?>
1619 </label>
1620 </div>
1621 </div>
1622 </div>
1623 </div>
1624 <div class="col-xs-6">
1625 <div class="cxsc-settings-blocks">
1626 <div class="form-group">
1627 <h4 class="qc-opt-title">
1628 <?php esc_html_e('Text Color.', 'wpbot'); ?>
1629 </h4>
1630 <input id="wp_chatbot_text_color" type="text"
1631 name="wp_chatbot_text_color"
1632 value="<?php echo esc_attr((get_option('wp_chatbot_text_color') != '' ? get_option('wp_chatbot_text_color') : '#37424c')); ?>"/>
1633 </div>
1634 </div>
1635 </div>
1636 <div class="col-xs-6">
1637 <div class="cxsc-settings-blocks">
1638 <div class="form-group">
1639 <h4 class="qc-opt-title">
1640 <?php esc_html_e('Link Color.', 'wpbot'); ?>
1641 </h4>
1642 <input id="wp_chatbot_link_color" type="text"
1643 name="wp_chatbot_link_color"
1644 value="<?php echo esc_attr((get_option('wp_chatbot_link_color') != '' ? get_option('wp_chatbot_link_color') : '#e2cc1f')); ?>"/>
1645 </div>
1646 </div>
1647 </div>
1648 <div class="col-xs-6">
1649 <div class="cxsc-settings-blocks">
1650 <div class="form-group">
1651 <h4 class="qc-opt-title">
1652 <?php esc_html_e('Link Hover Color.', 'wpbot'); ?>
1653 </h4>
1654 <input id="wp_chatbot_link_hover_color" type="text"
1655 name="wp_chatbot_link_hover_color"
1656 value="<?php echo esc_attr((get_option('wp_chatbot_link_hover_color') != '' ? get_option('wp_chatbot_link_hover_color') : '#734006')); ?>"/>
1657 </div>
1658 </div>
1659 </div>
1660 <div class="col-xs-6">
1661 <div class="cxsc-settings-blocks">
1662 <div class="form-group">
1663 <h4 class="qc-opt-title">
1664 <?php esc_html_e('Bot Message Background Color.', 'wpbot'); ?>
1665 </h4>
1666 <input id="wp_chatbot_bot_msg_bg_color" type="text"
1667 name="wp_chatbot_bot_msg_bg_color"
1668 value="<?php echo esc_attr((get_option('wp_chatbot_bot_msg_bg_color') != '' ? get_option('wp_chatbot_bot_msg_bg_color'): '#1f8ceb')) ; ?>"/>
1669 </div>
1670 </div>
1671 </div>
1672 <div class="col-xs-6">
1673 <div class="cxsc-settings-blocks">
1674 <div class="form-group">
1675 <h4 class="qc-opt-title">
1676 <?php esc_html_e('Bot Message Text Color.', 'wpbot'); ?>
1677 </h4>
1678 <input id="wp_chatbot_bot_msg_text_color" type="text"
1679 name="wp_chatbot_bot_msg_text_color"
1680 value="<?php echo esc_attr((get_option('c') != '' ? get_option('wp_chatbot_bot_msg_text_color') : '#ffffff')); ?>"/>
1681 </div>
1682 </div>
1683 </div>
1684 <div class="col-xs-6">
1685 <div class="cxsc-settings-blocks">
1686 <div class="form-group">
1687 <h4 class="qc-opt-title">
1688 <?php esc_html_e('User Message Background Color.', 'wpbot'); ?>
1689 </h4>
1690 <input id="wp_chatbot_user_msg_bg_color" type="text"
1691 name="wp_chatbot_user_msg_bg_color"
1692 value="<?php echo esc_attr((get_option('wp_chatbot_user_msg_bg_color') != '' ? get_option('wp_chatbot_user_msg_bg_color') : '#ffffff') ); ?>"/>
1693 </div>
1694 </div>
1695 </div>
1696 <div class="col-xs-6">
1697 <div class="cxsc-settings-blocks">
1698 <div class="form-group">
1699 <h4 class="qc-opt-title">
1700 <?php esc_html_e('User Message Text Color.', 'wpbot'); ?>
1701 </h4>
1702 <input id="wp_chatbot_user_msg_text_color" type="text"
1703 name="wp_chatbot_user_msg_text_color"
1704 value="<?php echo esc_attr((get_option('wp_chatbot_user_msg_text_color') != '' ? get_option('wp_chatbot_user_msg_text_color') : '#000000')); ?>"/>
1705 </div>
1706 </div>
1707 </div>
1708 <div class="col-xs-6">
1709 <div class="cxsc-settings-blocks">
1710 <div class="form-group">
1711 <h4 class="qc-opt-title">
1712 <?php esc_html_e('Buttons Background Color.', 'wpbot'); ?>
1713 </h4>
1714 <input id="wp_chatbot_buttons_bg_color" type="text"
1715 name="wp_chatbot_buttons_bg_color"
1716 value="<?php echo esc_attr((get_option('wp_chatbot_buttons_bg_color') != '' ?get_option('wp_chatbot_buttons_bg_color'): '#1f8ceb')) ; ?>"/>
1717 </div>
1718 </div>
1719 </div>
1720 <div class="col-xs-6">
1721 <div class="cxsc-settings-blocks">
1722 <div class="form-group">
1723 <h4 class="qc-opt-title">
1724 <?php esc_html_e('Buttons Hover Background Color.', 'wpbot'); ?>
1725 </h4>
1726 <input id="wp_chatbot_buttons_bg_color" type="text"
1727 name="wp_chatbot_buttons_bg_color_hover"
1728 value="<?php echo esc_attr((get_option('wp_chatbot_buttons_bg_color_hover') != '' ? get_option('wp_chatbot_buttons_bg_color_hover') : '#1f8ceb')); ?>"/>
1729 </div>
1730 </div>
1731 </div>
1732 <div class="col-xs-6">
1733 <div class="cxsc-settings-blocks">
1734 <div class="form-group">
1735 <h4 class="qc-opt-title">
1736 <?php esc_html_e('Buttons Text Color.', 'wpbot'); ?>
1737 </h4>
1738 <input id="wp_chatbot_buttons_text_color" type="text"
1739 name="wp_chatbot_buttons_text_color"
1740 value="<?php echo esc_attr((get_option('wp_chatbot_buttons_text_color') != '' ? get_option('wp_chatbot_buttons_text_color') : '#ffffff')); ?>"/>
1741 </div>
1742 </div>
1743 </div>
1744 <div class="col-xs-6">
1745 <div class="cxsc-settings-blocks">
1746 <div class="form-group">
1747 <h4 class="qc-opt-title">
1748 <?php esc_html_e('Buttons Text Color Hover.', 'wpbot'); ?>
1749 </h4>
1750 <input id="wp_chatbot_buttons_text_color" type="text"
1751 name="wp_chatbot_buttons_text_color_hover"
1752 value="<?php echo esc_attr((get_option('wp_chatbot_buttons_text_color_hover') != '' ? get_option('wp_chatbot_buttons_text_color_hover') : '#ffffff')); ?>"/>
1753 </div>
1754 </div>
1755 </div>
1756 <div class="col-xs-6">
1757 <div class="cxsc-settings-blocks">
1758 <div class="form-group">
1759 <h4 class="qc-opt-title">
1760 <?php esc_html_e('Header background Color', 'wpbot'); ?>
1761 </h4>
1762 <input id="wp_chatbot_header_background_color" type="text"
1763 name="wp_chatbot_header_background_color"
1764 value="<?php esc_html_e((get_option('wp_chatbot_header_background_color') != '' ? get_option('wp_chatbot_header_background_color'): '#ffffff'), 'wpbot' ) ; ?>"/>
1765 </div>
1766 </div>
1767 </div>
1768 <div class="col-xs-6">
1769 <div class="cxsc-settings-blocks">
1770 <div class="form-group">
1771 <h4 class="qc-opt-title">
1772 <?php esc_html_e('Theme Primary Color', 'wpbot'); ?>
1773 </h4>
1774 <input id="wp_chatbot_theme_primary_color" type="text"
1775 name="wp_chatbot_theme_primary_color"
1776 value="<?php echo esc_attr((get_option('wp_chatbot_theme_primary_color') != '' ? get_option('wp_chatbot_theme_primary_color') : '#ffffff')); ?>"/>
1777 </div>
1778 </div>
1779 </div>
1780 <div class="col-xs-6">
1781 <div class="cxsc-settings-blocks">
1782 <div class="form-group">
1783 <h4 class="qc-opt-title">
1784 <?php esc_html_e('Theme Secondary Color', 'wpbot'); ?>
1785 </h4>
1786 <input id="wp_chatbot_theme_secondary_color" type="text"
1787 name="wp_chatbot_theme_secondary_color"
1788 value="<?php echo esc_attr((get_option('wp_chatbot_theme_secondary_color') != '' ? get_option('wp_chatbot_theme_secondary_color') : '#ffffff')); ?>"/>
1789 </div>
1790 </div>
1791 </div>
1792 <div class="col-xs-6">
1793 <div class="cxsc-settings-blocks">
1794 <div class="form-group">
1795 <h4 class="qc-opt-title">
1796 <?php esc_html_e('Font size', 'wpbot'); ?>
1797 </h4>
1798 <input id="wp_chatbot_font_size" type="number"
1799 name="wp_chatbot_font_size"
1800 value="<?php echo esc_attr((get_option('wp_chatbot_font_size') != '' ? get_option('wp_chatbot_font_size'): '16')) ; ?>"/>
1801 </div>
1802 </div>
1803 </div>
1804 <div class="col-xs-6">
1805 <div class="cxsc-settings-blocks">
1806 <div class="form-group">
1807 <h4 class="qc-opt-title">
1808 <?php
1809 esc_html_e('User message Font family ', 'wpbot');
1810 $user_font = get_option('wp_chat_user_font_family') != '' ? get_option('wp_chat_user_font_family') : '';
1811 $user_font_family = str_replace("\\", "",$user_font);
1812 ?>
1813 </h4>
1814 <input id="wp_chatbot_user_font" type="text" name="wp_chatbot_user_font"
1815 value="<?php echo esc_attr((get_option('wp_chatbot_user_font') != '' ? get_option('wp_chatbot_user_font') : ''));?>">
1816 <input id="wp_chat_user_font_family" type="hidden"
1817 name="wp_chat_user_font_family"
1818 />
1819 </div>
1820 </div>
1821 </div>
1822 <div class="col-xs-6">
1823 <div class="cxsc-settings-blocks">
1824 <div class="form-group">
1825 <h4 class="qc-opt-title">
1826 <?php
1827 esc_html_e('Bot message Font family ', 'wpbot');
1828 $bot_font = get_option('wp_chat_bot_font_family') != '' ? esc_html__(get_option('wp_chat_bot_font_family'), 'wpbot' ) : '';
1829 $bot_font_family = str_replace("\\", "",$bot_font);
1830 ?>
1831 </h4>
1832 <input id="wp_chatbot_bot_font" type="text" name="wp_chatbot_bot_font"
1833 value="<?php echo esc_attr((get_option('wp_chatbot_bot_font') != '' ? get_option('wp_chatbot_bot_font') : ''));?>">
1834 <input id="wp_chat_bot_font_family" type="hidden"
1835 name="wp_chat_bot_font_family"
1836 />
1837 </div>
1838 </div>
1839 </div>
1840
1841 <?php
1842 $custom_js = "jQuery(function ($) {
1843 $('#wp_chat_user_font_family').val(JSON.stringify(". esc_attr($user_font_family) ."));
1844 $('#wp_chat_bot_font_family').val(JSON.stringify(". esc_attr($bot_font_family)."));
1845 $('#wp_chatbot_user_font')
1846 .fontpicker()
1847 .on('change', function() {
1848 var tmp = this.value.split(':'),
1849 family = tmp[0],
1850 variant = tmp[1] || '400',
1851 weight = parseInt(variant,10),
1852 italic = /i$/.test(variant);
1853 var css = {
1854 fontFamily:family,
1855 fontWeight: weight,
1856 fontStyle: italic ? 'italic' : 'normal'
1857 };
1858 $('#wp_chat_user_font_family').val(JSON.stringify(css));
1859 });
1860 $('#wp_chatbot_bot_font')
1861 .fontpicker()
1862 .on('change', function() {
1863 var tmp = this.value.split(':'),
1864 family = tmp[0],
1865 variant = tmp[1] || '400',
1866 weight = parseInt(variant,10),
1867 italic = /i$/.test(variant);
1868 // Set selected font on body
1869 var css = {
1870 fontFamily:family,
1871 fontWeight: weight,
1872 fontStyle: italic ? 'italic' : 'normal'
1873 };
1874 $('#wp_chat_bot_font_family').val(JSON.stringify(css));
1875 });
1876 });
1877 ";
1878 wp_add_inline_script('qcld-wp-chatbot-admin-js', $custom_js );
1879
1880 ?>
1881 </div>
1882 </div>
1883 </div>
1884 </div>
1885 </section>
1886
1887 <section id="section-flip-4">
1888 <div class="row">
1889 <div class="col-xs-12">
1890 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1891 <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'wpbot'); ?>
1892 </div> -->
1893 </div>
1894 </div>
1895 <div class="top-section">
1896 <h3 class="qcld-wpbot-main-tabs-title">
1897 <?php esc_html_e('Build FAQ Query and Answers', 'wpbot'); ?>
1898
1899 </h3>
1900
1901 <p><b><?php esc_html_e('These FAQs are not searchable. You can use ChatBot->Simple Text Responses for searchable FAQs', 'wpbot'); ?></b></p>
1902
1903 <div class="block-inner ui-sortable qcld-faq-block" id="wp-chatbot-support-builder">
1904 <?php
1905 $support_quereis=$this->qcld_wb_chatbot_str_replace(maybe_unserialize( get_option('support_query')));
1906 $support_ans=$this->qcld_wb_chatbot_str_replace(maybe_unserialize( get_option('support_ans')));
1907 if (($support_quereis[0] != '') && ($support_ans[0] != '') && !empty($support_ans[0]) && (count($support_ans) == count($support_quereis))) {
1908
1909 $query_ans_counter=0;
1910 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
1911 ?>
1912 <div class="row"> <span class="pull-right"> </span>
1913 <div class="col-xs-12">
1914 <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <i class="fa fa-times" aria-hidden="true"></i> </button>
1915
1916 <div class="cxsc-settings-blocks cxsc-settings-faq-blocks">
1917 <p>
1918 <b> <?php esc_html_e('FAQ query ', 'wpbot'); ?> </b>
1919 </p>
1920 <input type="text" class="form-control" name="support_query[]"
1921 placeholder="<?php esc_html_e('FAQ query', 'wpbot' ); ?> " value="<?php echo $query; ?>">
1922 <br>
1923 <p>
1924 <b><?php esc_html_e('FAQ answer', 'wpbot'); ?></b>
1925 </p>
1926 <?php
1927 $anss = is_string( $ans ) ? $ans : '';
1928 $answer = !is_array($ans) ? stripcslashes($ans) : $anss;
1929
1930 wp_editor(html_entity_decode($answer), 'support_ans'.'_'.$query_ans_counter, array('textarea_name' =>
1931 'support_ans[]',
1932 'textarea_rows' => 20,
1933 'editor_height' => 100,
1934 'disabled' => 'disabled',
1935 'media_buttons' => false,
1936 'tinymce' => array(
1937 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1938 ));
1939
1940 ?>
1941 </div>
1942 </div>
1943 </div>
1944 <?php
1945 $query_ans_counter++;
1946 }
1947 //}
1948 } else {
1949 ?>
1950 <div class="row"> <span class="pull-right"> </span>
1951 <div class="col-xs-12">
1952 <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <i class="fa fa-times" aria-hidden="true"></i> </button>
1953
1954 <div class="cxsc-settings-blocks">
1955 <p>
1956 <b> <?php esc_html_e('FAQ Query', 'wpbot'); ?></b>
1957 </p>
1958 <input type="text" class="form-control" name="support_query[]"
1959 placeholder="<?php esc_html_e('FAQ Query ', 'wpbot'); ?> ">
1960 <br>
1961 <p class="qc-opt-dcs-font"><strong>
1962 <?php esc_html_e('Support answer', 'wpbot'); ?>
1963 </strong></p>
1964 <?php
1965 wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
1966 'support_ans[]',
1967 'textarea_rows' => 20,
1968 'editor_height' => 100,
1969 'disabled' => 'disabled',
1970 'media_buttons' => false,
1971 'tinymce' => array(
1972 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1973 ));
1974 ?>
1975 </div>
1976 <br>
1977 </div>
1978 </div>
1979 <?php
1980 }
1981 ?>
1982 </div>
1983 <div class="row">
1984 <div class="col-sm-6 text-left"></div>
1985 <div class="col-sm-6 text-right">
1986 <button class="btn btn-success btn-sm" type="button"
1987 id="add-more-support-query">
1988 <i class="fa fa-plus" aria-hidden="true"></i>
1989
1990 </button>
1991 </div>
1992 </div>
1993 </div>
1994 </section>
1995
1996
1997 <section id="section-flip-6">
1998 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1999 <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'wpbot'); ?>
2000 </div> -->
2001 <?php
2002 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');
2003 ?>
2004 <div class="top-section">
2005 <div class="notification-block-inner">
2006 <div class="row">
2007 <div class="col-xs-12">
2008 <div id="qcld-show-more-wrapper-box">
2009 <div class="qcld-show-more-text qcld-show-more-show-more-height">
2010 <div class="row">
2011 <div class="col-xs-12">
2012 <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_attr('Predefined Intents'); ?></h3>
2013 <div class="row">
2014 <div class="col-xs-12">
2015 <div class="form-group">
2016 <h4 class="qc-opt-title">
2017 <?php esc_html_e('Site Search', 'wpbot'); ?>
2018 </h4>
2019 <div class="cxsc-settings-blocks">
2020 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox"
2021 name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
2022 <label for="disable_wp_chatbot_site_search">
2023 <?php esc_html_e('Disable site search feature and button on Start Menu', 'wpbot'); ?>
2024 </label>
2025 </br><small><?php echo esc_html( '(You can disable searching post contents option below so it searches only the post Titles for most relevancy)'); ?></small></br>
2026 </div>
2027 <div class="cxsc-settings-blocks">
2028 <input value="<?php echo esc_attr('1' ); ?>" id="enable_wp_chatbot_post_content" type="checkbox"
2029 name="enable_wp_chatbot_post_content" <?php echo(get_option('enable_wp_chatbot_post_content') == 1 ? esc_attr('checked' ): ''); ?>>
2030 <label for="enable_wp_chatbot_post_content">
2031 <?php esc_html_e('Enable Searching Post Contents as well', 'wpbot'); ?>
2032 </label>
2033 </div>
2034 </div>
2035 </div>
2036 </div>
2037 <div class="form-group">
2038 <h4 class="qc-opt-title">
2039 <?php esc_html_e('Button Label', 'wpbot'); ?>
2040 </h4>
2041 <input type="text" class="form-control qc-opt-dcs-font"
2042 name="qlcd_wp_chatbot_wildcard_site_search"
2043 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search')); ?> ">
2044 </div>
2045 <div class="row">
2046 <div class="col-xs-12">
2047 <div class="form-group">
2048 <h4 class="qc-opt-title">
2049 <?php esc_html_e('Call Me', 'wpbot'); ?>
2050 </h4>
2051 <div class="cxsc-settings-blocks">
2052 <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox"
2053 name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
2054 <label for="disable_wp_chatbot_call_gen">
2055 <?php esc_html_e('Disable Call Me feature and button on Start Menu', 'wpbot'); ?>
2056 </label>
2057 </div>
2058 </div>
2059 </div>
2060 </div>
2061 <div class="form-group">
2062 <h4 class="qc-opt-title">
2063 <?php esc_html_e('Button Label', 'wpbot'); ?>
2064 </h4>
2065 <input type="text" class="form-control qc-opt-dcs-font"
2066 name="qlcd_wp_chatbot_support_phone"
2067 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!')); ?> ">
2068 </div>
2069 <div class="row">
2070 <div class="col-xs-12">
2071 <div class="form-group">
2072 <h4 class="qc-opt-title">
2073 <?php esc_html_e('Email', 'wpbot'); ?>
2074 </h4>
2075 <div class="cxsc-settings-blocks">
2076 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox"
2077 name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'wpbot' ); ?>>
2078 <label for="disable_wp_chatbot_feedback">
2079 <?php esc_html_e('Disable Email feature and button on Start Menu', 'wpbot'); ?>
2080 </label>
2081 </div>
2082 </div>
2083 </div>
2084 </div>
2085 <div class="form-group">
2086 <h4 class="qc-opt-title">
2087 <?php esc_html_e('Button Label', 'wpbot'); ?>
2088 </h4>
2089 <input type="text" class="form-control qc-opt-dcs-font"
2090 name="qlcd_wp_chatbot_support_email"
2091 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email')); ?> ">
2092 </div>
2093 <div class="row">
2094 <div class="col-xs-12">
2095 <div class="form-group">
2096 <h4 class="qc-opt-title">
2097 <?php esc_html_e('FAQ', 'wpbot'); ?>
2098 </h4>
2099 <div class="cxsc-settings-blocks">
2100 <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox"
2101 name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
2102 <label for="disable_wp_chatbot_faq">
2103 <?php esc_html_e('Disable FAQ feature and button on Start Menu', 'wpbot'); ?>
2104 </label>
2105 </div>
2106 </div>
2107 </div>
2108 </div>
2109 <div class="form-group">
2110 <h4 class="qc-opt-title">
2111 <?php esc_html_e('Button Label', 'wpbot'); ?>
2112 </h4>
2113 <input type="text" class="form-control qc-opt-dcs-font"
2114 name="qlcd_wp_chatbot_wildcard_support"
2115 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_wildcard_support') != '' ? get_option('qlcd_wp_chatbot_wildcard_support') : 'FAQ')); ?> ">
2116 </div>
2117
2118 </div>
2119 </div>
2120 </div>
2121 <div class="qcld-show-more-show-more"><i class="fa fa-plus-circle" aria-hidden="true"></i></div>
2122 </div>
2123 <div class="qc_menu_setup_area">
2124 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'wpbot'); ?></h3>
2125 <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>
2126 <p><?php esc_html_e('To adjust the Active Menu ordering just drag it up or down.', 'wpbot'); ?><br>
2127 <?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>
2128 <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>
2129
2130 <div class="qc_menu_area_box">
2131 <div class="qc_menu_area">
2132 <h4><?php esc_html_e( 'Acitve Menu', 'wpbot'); ?></h4>
2133 <div class="qc_menu_area_container" id="qc_menu_area">
2134 <?php
2135 if(get_option('qc_wpbot_menu_order')!=''):
2136 if( is_string( get_option('qc_wpbot_menu_order') ) ):
2137 echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
2138 else:
2139 endif;
2140 ?>
2141
2142
2143 <?php endif; ?>
2144 </div>
2145 </div>
2146 <div class="qc_menu_list_area">
2147 <h4><?php esc_html_e('Available Menu', 'wpbot'); ?></h4>
2148 <div class="qc_menu_list_container">
2149 <p><?php esc_html_e('Predefined Intents', 'wpbot'); ?></p>
2150 <ul>
2151 <li>
2152 <?php if(get_option('disable_wp_chatbot_faq')==''): ?>
2153 <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="support"><?php esc_attr_e(get_option('qlcd_wp_chatbot_wildcard_support'), 'wpbot' ); ?></span>
2154 <?php endif; ?>
2155 </li>
2156 <li>
2157 <?php if(get_option('disable_wp_chatbot_site_search')==''): ?>
2158 <span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search"><?php esc_attr_e(get_option('qlcd_wp_chatbot_wildcard_site_search'), 'wpbot' ); ?></span>
2159 <?php endif; ?>
2160 </li>
2161 <li>
2162 <?php if(get_option('enable_wp_chatbot_messenger')=='1'): ?>
2163 <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="messenger"><?php echo wp_kses_post(qcld_choose_random(maybe_unserialize(get_option('qlcd_wp_chatbot_messenger_label')))) ?></span>
2164 <?php endif; ?>
2165 </li>
2166 <li>
2167 <?php if(get_option('enable_wp_chatbot_whats')=='1'): ?>
2168 <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="whatsapp"><?php echo wp_kses_post(qcld_choose_random(maybe_unserialize(get_option('qlcd_wp_chatbot_whats_label')))); ?></span>
2169 <?php endif; ?>
2170 </li>
2171 <li>
2172 <?php if(get_option('disable_wp_chatbot_feedback')==''): ?>
2173 <span class="qcld-chatbot-suggest-email qc_draggable_item"><?php esc_attr_e(get_option('qlcd_wp_chatbot_support_email'), 'wpbot' ); ?></span>
2174 <?php endif; ?>
2175 </li>
2176 <li>
2177 <?php if(get_option('disable_wp_chatbot_call_gen')==''): ?>
2178 <span class="qcld-chatbot-suggest-phone qc_draggable_item" ><?php esc_attr_e(get_option('qlcd_wp_chatbot_support_phone'), 'wpbot' ); ?></span>
2179 <?php endif; ?>
2180 </li>
2181 </ul>
2182 <?php
2183 if(class_exists('Qcformbuilder_Forms_Admin')){
2184
2185 global $wpdb;
2186
2187 //To Do: Need to use prepared statement
2188
2189 $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); //DB Call OK, No Caching OK
2190 if(!empty($results)){
2191 ?>
2192 <p><?php esc_html_e('Conversational Form', 'wpbot'); ?></p>
2193 <ul>
2194 <?php
2195 foreach($results as $result){
2196 $form = maybe_unserialize($result->config);
2197 ?>
2198 <li><span class="qcld-chatbot-wildcard qcld-chatbot-form qc_draggable_item" data-form="<?php echo esc_attr($form['ID']); ?>" ><?php esc_html_e($form['name']); ?></span></li>
2199 <?php
2200 }
2201 ?>
2202 </ul>
2203 <?php
2204 }
2205 }
2206 ?>
2207 </div>
2208 </div>
2209
2210 </div>
2211
2212
2213 </div>
2214 <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'))); ?>' />
2215 </div>
2216 </div>
2217 </div>
2218 </div>
2219 </section>
2220 <section id="section-flip-7">
2221 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2222 <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'wpbot'); ?>
2223 </div> -->
2224 <div class="top-section">
2225 <div class="wp-chatbot-language-center-summmery">
2226 <p>
2227 <?php esc_html_e('DialogFlow as Artificial Intelligences Engine for wpwBot', 'wpbot'); ?>
2228 </p>
2229 </div>
2230
2231 <div class="row wp-chatbot-language-center-summmery-checkbox">
2232 <div class="col-xs-12">
2233 <div class="wrapTexttop-lite">
2234 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Enable DialogFlow as AI Engine to Detect Intent', 'wpbot'); ?> </h3>
2235 <div class="alert alert-warning" role="alert">
2236 <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>
2237 <h5 style="color: #f00;font-weight:900 "><?php esc_html_e(' Enable either DialogFlow or OpenAI', 'wpbot'); ?> </h5>
2238 </div>
2239 <div class="cxsc-settings-blocks">
2240 <input value="1" id="enable_wp_chatbot_dailogflow" type="checkbox"
2241 name="enable_wp_chatbot_dailogflow" <?php echo(get_option('enable_wp_chatbot_dailogflow') == 1 ? esc_attr('checked' ): ''); ?>>
2242 <label for="enable_wp_chatbot_dailogflow"><?php esc_html_e('Enable DialogFlow AI Engine to process Natural Language commands from users.', 'wpbot'); ?> </label> <br>
2243
2244 </div>
2245 </div>
2246 </div>
2247
2248 <div class="col-xs-12" id="wp-chatbot-dialflow-section">
2249 <p><?php esc_html_e('Log in to DialogFlow Console from', 'wpbot'); ?>
2250 <a class="wpbot_df_instruction" href="<?php echo esc_url('https://dialogflow.com/', 'wpbot'); ?>"
2251 target="_blank">
2252 <?php esc_html_e('Here', 'wpbot'); ?></a>
2253 <?php esc_html_e('with your gmail account.', 'wpbot'); ?> <a class="wpbot_df_instruction" 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>
2254 <h4 class="qc-opt-title"><?php esc_html_e('DialogFlow API Version', 'wpbot'); ?></h4>
2255 <div class="form-group">
2256 <label class="radio-inline ">
2257 <input id="wp-chatbot-df-api" type="radio"
2258 name="wp_chatbot_df_api"
2259 value="v2" checked>
2260 <?php esc_html_e('Dialogflow API V2', 'wpbot'); ?> </label>
2261 </div>
2262 <div id="wp-chatbot-df-section-v2" style="display:block">
2263 <!-- Dialogflow V2 Configuration -->
2264
2265 <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')): ?>
2266 <div class="form-group"> <br>
2267 <h4 class="qc-opt-title" style="color:red "><?php esc_html_e('For Interacting with Dialogflow V2 the Google Client Package is Required!', 'wpbot'); ?></h4>
2268 <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>
2269 <div class="qcld-wpbot-gcdownload-area">
2270 <button class="btn btn-primary" id="qc_wpbot_gc_download" <?php echo (!is_writable(QCLD_wpCHATBOT_GC_ROOT)?'disabled':''); ?>><?php esc_html_e('Download and Install the Google Client', 'wpbot'); ?></button>
2271 <?php
2272 if(!is_writable(QCLD_wpCHATBOT_GC_ROOT)){
2273 echo '<span style="color:red;font-size: 12px; "><b>'.esc_html('wp-content').' </b> '.esc_html('folder is not writable.').'</span>';
2274 }
2275 ?>
2276 <br>
2277 <br>
2278 <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"><?php esc_html_e('GC', 'wpbot'); ?></u> <?php esc_html_e('package by following some simple steps.', 'wpbot'); ?></p>
2279 <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'); ?>" target="_blank"><?php esc_attr_e('https://github.com/qcloud/gc/archive/master.zip', 'wpbot'); ?></a></p>
2280 <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>
2281 <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>
2282 <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>
2283 <div class="qcld_wpbot_download_statuses"> </div>
2284 </div>
2285 <br>
2286 </div>
2287 <?php else: ?>
2288 <div class="form-group">
2289 <h4 class="qc-opt-title" style="color:green "><?php esc_html_e('Google Client Package is Installed on Your Website.', 'wpbot'); ?></h4>
2290 </div>
2291 <?php endif; ?>
2292 <div class="form-group">
2293 <h4 class="qc-opt-title" ><?php esc_html_e('Please follow along with this', 'wpbot'); ?> <a href="<?php echo esc_url('https://www.wpbot.pro/dialogflow-integration'); ?>" 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>
2294 </div>
2295 <div class="form-group">
2296 <h4 class="qc-opt-title"><?php esc_html_e('DialogFlow Project ID', 'wpbot'); ?></h4>
2297 <p><?php esc_html_e('You can follow the', 'wpbot'); ?> <a href="<?php echo esc_url('https://www.youtube.com/watch?v=qY-EHFY2wH8" '); ?>" target="_blank"><?php esc_html_e('tutorial', 'wpbot'); ?> </a><?php esc_html_e(' to get the Project ID.', 'wpbot'); ?> </p>
2298 <input type="text" class="form-control qc-opt-dcs-font"
2299 name="qlcd_wp_chatbot_dialogflow_project_id"
2300 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'); ?> ">
2301 </div>
2302 <?php
2303
2304 $placeholderPrivatekey = '{
2305 "type": "service_account",
2306 "project_id": "PLACEYOUROWNID",
2307 "private_key_id": "31e300128..........c48",
2308 "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",
2309 "client_email": "dialogflow-evysjn@wpbotpro.iam.gserviceaccount.com",
2310 "client_id": "1026.....032997",
2311 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
2312 "token_uri": "https://oauth2.googleapis.com/token",
2313 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
2314 "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dialogflow-evysjn%40wpbotpro.iam.gserviceaccount.com"
2315 }';
2316
2317 ?>
2318 <div class="form-group">
2319 <h4 class="qc-opt-title"><?php esc_html_e('Private Key', 'wpbot'); ?></h4>
2320 <p><?php esc_html_e("Paste your google service account's private key JSON file's contents (string) here", "wpbot"); ?> <a href="<?php echo esc_url('https://www.youtube.com/watch?v=qY-EHFY2wH8'); ?>" target="_blank"><?php esc_html_e('tutorial', 'wpbot'); ?></a> <?php esc_html_e('to get private key JSON file. ', 'wpbot'); ?></p>
2321 <textarea class="form-control" 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>
2322 </div>
2323
2324 <!-- End Dialogflow V2 Configuration -->
2325 </div>
2326 <div class="form-group">
2327 <h4 class="qc-opt-title"><?php esc_html_e('Please Click the Button Below to Test Dialogflow Connection.', 'wpbot'); ?> </h4>
2328 <p style="color:red "><?php esc_html_e('*Save settings before pressing Test Dialogflow Connection', 'wpbot'); ?><br>
2329 <?php esc_html_e('*You must have owner permission for the service account your are using in Dialogflow agent.', 'wpbot'); ?></p>
2330 <div class="cxsc-settings-blocks">
2331 <button class="btn btn-primary" id="qc_wpbot_df_status"><?php esc_html_e('Test Dialogflow Connection', 'wpbot'); ?></button>
2332 <div class="qcwp_df_status"></div>
2333 </div>
2334 </div>
2335 <br>
2336 <div class="form-group">
2337 <h4 class="qc-opt-title">
2338 <?php esc_html_e('DialogFlow Default reply', 'wpbot'); ?>
2339 </h4>
2340 <input type="text" class="form-control qc-opt-dcs-font"
2341 name="qlcd_wp_chatbot_dialogflow_defualt_reply"
2342 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'); ?> ">
2343 </div>
2344 <div class="form-group">
2345 <h4 class="qc-opt-title"><?php esc_html_e('DialogFlow Agent Language (Ex: en)', 'wpbot'); ?></h4>
2346 <input type="text" class="form-control qc-opt-dcs-font"
2347 name="qlcd_wp_chatbot_dialogflow_agent_language"
2348 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'); ?>">
2349 </div>
2350 </div>
2351 </div>
2352 </div>
2353 </section>
2354
2355 <section id="section-flip-9">
2356 <div class="cxsc-settings-blocks-addon"><?php esc_html_e('Install the Conversational Form Builder to Collect Information from the users and create Button (menu) Driven Conversations.', 'wpbot'); ?></br>
2357 <?php esc_html_e('After creating a Conversational form, you can add it to the ChatBot`s Start Menu from the ChatBot Settings->Start Menu', 'wpbot'); ?></b></div>
2358
2359 <div class="qcld-recommendbot-conv-feature">
2360 <?php include_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '/qcld-recommendbot-plugin.php'; ?>
2361 </div>
2362 <div class="qcld-seo-help-feature">
2363 <h3><?php esc_html_e('What Can You Do with it?', 'wpbot'); ?></h3>
2364 <p><?php esc_html_e('Conversation Forms Pro allows you to create a wide variety of forms, that might include:', 'wpbot'); ?></p>
2365 <ul>
2366 <li><?php esc_html_e('🚀 Conditional Menu Driven Conversations', 'wpbot'); ?></li>
2367 <li><?php esc_html_e('🚀 Standard Contact Forms', 'wpbot'); ?></li>
2368 <li><?php esc_html_e('🚀 Dynamic, conditional Forms – where fields can change based on the user selections', 'wpbot'); ?></li>
2369 <li><?php esc_html_e('🚀 Job Application Forms', 'wpbot'); ?></li>
2370 <li><?php esc_html_e('🚀 Lead Capture Forms', 'wpbot'); ?></li>
2371 <li><?php esc_html_e('🚀 Various types of Calculators', 'wpbot'); ?></li>
2372 <li><?php esc_html_e('🚀 Feedback Survey Forms etc.', 'wpbot'); ?></li>
2373 <li><?php esc_html_e('🚀 Submit Forms to OpenAI for a Response with your instructions and user submitted data. Supports multi-modal mode. Users can upload an Image or Audio file along with other form fields that you create. Check this article on how Conversational forms work with OpenAI', 'wpbot'); ?>.</li>
2374 </ul>
2375
2376 <h3><?php esc_html_e('How it Works?', 'wpbot'); ?></h3>
2377 <p><?php esc_html_e('After creating a Conversation or form, you can show it in the ChatBot in different ways.', 'wpbot'); ?></p>
2378 <ul>
2379 <li><?php esc_html_e('🚀 Add it to the Start menu', 'wpbot'); ?></li>
2380 <li><?php esc_html_e('🚀 Invoke the form intent with a system command to start inside ChatBot any time', 'wpbot'); ?></li>
2381 <li><?php esc_html_e('🚀 Load the single intent/form inside a ChatBot widget on any page', 'wpbot'); ?></li>
2382 <li><?php esc_html_e('🚀 Load the intent/form inside the ChatBot using a Click to Chat button that can be placed anywhere inside your content on any page.', 'wpbot'); ?></li>
2383 <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions', 'wpbot'); ?></li>
2384 </ul>
2385 <h3><?php esc_html_e('Feature Highlights', 'wpbot'); ?></h3>
2386
2387
2388 <div class="qcld-seo-help-feature-left">
2389 <ul>
2390 <li><?php esc_html_e('🚀 Easy to use visual drag and drop conversations and form builder', 'wpbot'); ?></li>
2391 <li><?php esc_html_e('🚀 Create conversational form or just conversation using the HTML element', 'wpbot'); ?></li>
2392 <li><?php esc_html_e('🚀 Add text fields, single option selection or multiple option selection with checkboxes', 'wpbot'); ?></li>
2393 <li><?php esc_html_e('🚀 Add HTML contents inside the conversation forms', 'wpbot'); ?></li>
2394 <li><?php esc_html_e('🚀 eMail conversations or forms to the admin at the end of conversation', 'wpbot'); ?></li>
2395 <li><?php esc_html_e('🚀 Set different recipient email addresses for different conversation forms', 'wpbot'); ?></li>
2396 <li><?php esc_html_e('🚀 Clone form', 'wpbot'); ?></li>
2397 <li><?php esc_html_e('🚀 Export/Import Forms', 'wpbot'); ?></li>
2398 <li><?php esc_html_e('🚀 Form Entries saved into database', 'wpbot'); ?></li>
2399 <li><?php esc_html_e('🚀 Export Form Entries as CSV', 'wpbot'); ?></li>
2400 <li><?php esc_html_e('🚀 12 Ready Form Templates to Get Started with (Contact Form, Feedback form. Survey Form, BMR Calculator, Appointment Request, Booking Form, Room Area Calculator)', 'wpbot'); ?></li>
2401 <li><?php esc_html_e('🚀 11 Input Fields (Simple Text, Hidden, Email Address, Number, URL, Calculation, Select Option, Checkbox, DateTime Picker, HTML, File Upload, OpenAI Instructions)', 'wpbot'); ?></li>
2402 <li><?php esc_html_e('🚀 Processor – Auto Responder – Send an auto response e-mail for form submission', 'wpbot'); ?></li>
2403 <li><?php esc_html_e('🚀 Unlimited Conditional Field creation', 'wpbot'); ?></li>
2404 <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions (**NEW)', 'wpbot'); ?></li>
2405 <li><?php esc_html_e('🚀 Unlimited Variables creation', 'wpbot'); ?></li>
2406 <li><?php esc_html_e('🚀 Form Revisions', 'wpbot'); ?></li>
2407 <li><?php esc_html_e('🚀 Create system command to initiate form for ChatBot', 'wpbot'); ?></li>
2408 <li><?php esc_html_e('🚀 Add form to Start Menu', 'wpbot'); ?></li>
2409 <li><?php esc_html_e('🚀 Submit Forms to OpenAI for a Response with your instructions and user submitted data. Supports multi-modal mode. Users can upload an Image or Audio file along with other form fields that you create. Check this article on how Conversational forms work with OpenAI.', 'wpbot'); ?></li>
2410 </ul>
2411 </div>
2412
2413 </div>
2414 </section>
2415
2416 <section id="section-flip-13">
2417 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2418 <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'wpbot'); ?>
2419 </div> -->
2420 <div class="top-section">
2421 <div class="row">
2422 <div class="col-xs-12">
2423 <h4 class="qc-opt-dcs"><?php esc_html_e('You can paste or write your custom css here.', 'wpbot'); ?></h4>
2424 <textarea name="wp_chatbot_custom_css"
2425 class="form-control wp-chatbot-custom-css"
2426 cols="10"
2427 rows="16"><?php echo esc_textarea(get_option('wp_chatbot_custom_css')); ?></textarea>
2428 </div>
2429 </div>
2430 <!-- row-->
2431 </div>
2432 </section>
2433
2434 <section id="section-flip-11">
2435 <div class="cxsc-settings-blocks-addon">
2436 <?php esc_html_e('Harness the power of AI to generate SEO Freindly contents quickly. Install our SEO Help plugin with One Click Turbo AI Content Writer, YouTube Subtitle to SEO Article Generator with AI, Global AI writing panel, AI Image Generator and RSS Feed AutoBlogging with OpenAI or Google Gemini.', 'wpbot'); ?></div>
2437
2438 <div class="qcld-recommendbot-conv-feature">
2439 <?php include_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '/qcld-recommendbot-ai-plugin.php'; ?>
2440
2441 </div>
2442 <div class="qcld-seo-help-feature">
2443 <h3><?php esc_html_e('SEO Help Features', 'wpbot'); ?></h3>
2444 <h4><?php esc_html_e('OpenAI ChatGPT or Google Gemini Powered Content Generator', 'wpbot'); ?></h4>
2445 <p>
2446 <?php esc_html_e('🚀 Supports both Google Gemini AI and OpenAI (ChatGPT)', 'wpbot'); ?><br>
2447 <?php esc_html_e('🚀 Generate Text Contents for your Blog with the Click of a Button – Turbo content generator', 'wpbot'); ?><br>
2448 <?php esc_html_e('🚀 Generate Single Articles directly from your Blog post edit page', 'wpbot'); ?><br>
2449 <?php esc_html_e('🚀 Generate BULK articles and schedule each article’s publish time', 'wpbot'); ?><br>
2450 <?php esc_html_e('🚀 Select to auto publish or save in draft', 'wpbot'); ?><br>
2451 <?php esc_html_e('🚀 Generate summeries for Blog Posts automatically using OpenAI ChatGPT. Automatic content summary (summarizer) or TLDR can be helpful for both your readers and SEO. Blog Post Article Summaries are automatically added to your contents and can make your content look fresh to Search Engines if you enable Generate multiple summaries and use them randomly.', 'wpbot'); ?><br>
2452 <?php esc_html_e('🚀 Automatically Create and Insert AI Images inside your articles', 'wpbot'); ?><br>
2453 <?php esc_html_e('🚀 Options to fine tune your articles (How many headings?, Heading Tag, Writing Style, Writing Tone, Image Size, Language, Add Image, Add Tagline, Add Introduction, Add Conclusion, Add Faq, Anchor Text, Target URL, Add Call-to-Action, Call-to-Action Position, Add Keywords, Keywords to Avoid, Make Keywords Bold etc.)', 'wpbot'); ?><br>
2454 <?php esc_html_e('🚀 A Collection of hundreds of ready Prompts for your ideas', 'wpbot'); ?><br>
2455 <?php esc_html_e('🚀 Generate royalty free AI Images with many different options (Artist, Style, Photography, Lighting, Subject, Camera, Composition, Resolution, Color, Special Effects, Size9(up to 4K))', 'wpbot'); ?><br>
2456 <?php esc_html_e('🚀 Save AI Generated images to Media Library with one click', 'wpbot'); ?><br>
2457 <?php esc_html_e('🚀 AI Image Gutenberg Block. Create and Insert Image directly into your blog post', 'wpbot'); ?><br>
2458 <?php esc_html_e('🚀 Generate Meta Description with one click', 'wpbot'); ?><br>
2459 <?php esc_html_e('🚀 Add meta description tag automatically to the page source', 'wpbot'); ?><br>
2460 <?php esc_html_e('🚀 OpenAI playground', 'wpbot'); ?><br>
2461 <?php esc_html_e('🚀 ChatGPT and Google Gemini in WordPress backend', 'wpbot'); ?><br>
2462 <?php esc_html_e('🚀 Humanize article so they do not sound AI written', 'wpbot'); ?></p>
2463 <h4><?php esc_html_e('YouTube Video Subtitle to SEO Article Generator with AI', 'wpbot'); ?></h4>
2464 <p>
2465 <?php esc_html_e('🚀 Generate Articles from YouTube Subtitles. Works Best for Long form Videos', 'wpbot'); ?><br>
2466 <?php esc_html_e('🚀 Rewrite subtitle to a SEO Friendly Blog Article', 'wpbot'); ?><br>
2467 <?php esc_html_e('🚀 Fine tune your articles (How many headings?, Heading Tag, Writing Style, Writing Tone, Image Size, Language, Add Image, Add Tagline, Add Introduction, Add Conclusion, Add Faq, Anchor Text, Target URL, Add Call-to-Action, Call-to-Action Position, Add Keywords, Keywords to Avoid, Make Keywords Bold etc.)', 'wpbot'); ?><br>
2468 <?php esc_html_e('🚀 Directly Generate a Blog Post Draft', 'wpbot'); ?><br>
2469 <?php esc_html_e('🚀 Humanize article so they do not sound AI written', 'wpbot'); ?></p>
2470 <h4><?php esc_html_e('RSS Feed to Post, Auto Blogging', 'wpbot'); ?></h4>
2471 <p>
2472 <?php esc_html_e('🚀 Automatically Import and Convert RSS feed items to WordPress pages, posts, and custom post type.', 'wpbot'); ?><br>
2473 <?php esc_html_e('🚀 Automatically import and aggregate unlimited RSS feeds from unlimited sources', 'wpbot'); ?><br>
2474 <?php esc_html_e('🚀 Schedule RSS Feed to Post according to your need for Autoblogging', 'wpbot'); ?><br>
2475 <?php esc_html_e('🚀 Rewrite RSS feeds with OpenAI AI before publishing to prevent duplicate contents', 'wpbot'); ?></p>
2476 <h4><?php esc_html_e('SEO Features', 'wpbot'); ?></h4>
2477 <p>
2478 <?php esc_html_e('🚀 Outputs all the essential meta tags that are essential for Search Engine Optimization', 'wpbot'); ?><br>
2479 <?php esc_html_e('🚀 Meta tags can be set for each Post type', 'wpbot'); ?><br>
2480 <?php esc_html_e('🚀 Configure Meta Tags Globally and Per Post basis', 'wpbot'); ?><br>
2481 <?php esc_html_e('🚀 Generate and Add Meta Description with one click', 'wpbot'); ?><br>
2482 <?php esc_html_e('🚀 Set the OGP information required for Social Networking Websites such as Facebook and Twitter.', 'wpbot'); ?><br>
2483 <?php esc_html_e('🚀 Customize the meta tag information individually for each post, page, and term.', 'wpbot'); ?><br>
2484 <?php esc_html_e('🚀 Easily set the Google Analytics measurement code and Webmaster Tools verification code.', 'wpbot'); ?><br>
2485 <?php esc_html_e('🚀 Works out of the box', 'wpbot'); ?></p>
2486 <h4><?php esc_html_e('SEO Optimized Images', 'wpbot'); ?></h4>
2487 <p>
2488 <?php esc_html_e('🚀 Dynamically insert SEO-Friendly “alt” and “title” attributes to your images. Simply activate the plugin, provide the pattern, and you are ready to go.', 'wpbot'); ?><br>
2489 <?php esc_html_e('🚀 Dynamically replaces the “alt” and “title” tags. It does not make any changes to the database. This means that if you deactivate the plugin, everything will return to the original settings.', 'wpbot'); ?><br>
2490 <?php esc_html_e('🚀 Insert an image name, a post title and a post category in the “title” and “alt” attributes of the image.', 'wpbot'); ?></p>
2491 <h4><?php esc_html_e('No-Index Features', 'wpbot'); ?></h4>
2492 <p>
2493 <?php esc_html_e('🚀 Easily add a meta-tag for robots noindex tags to parts of your WordPress site as necessary from a central location', 'wpbot'); ?>
2494 </p>
2495 <h5><?php esc_html_e('1. Pages and Posts', 'wpbot'); ?></h5>
2496 <p>
2497 <?php esc_html_e('🚀 Front Page: Block the indexing of the website’s front page.', 'wpbot'); ?><br>
2498 <?php esc_html_e('🚀 Home Page: Block the indexing of the website’s home page.', 'wpbot'); ?><br>
2499 <?php esc_html_e('🚀 Page: Block the indexing of the site’s pages.', 'wpbot'); ?><br>
2500 <?php esc_html_e('🚀 Privacy Policy Page: Block the indexing of the website’s privacy policy page.', 'wpbot'); ?><br>
2501 <?php esc_html_e('🚀 Single Post: Block the indexing of a post on the site.', 'wpbot'); ?>
2502 </p>
2503 <h5><?php esc_html_e('2. Taxonomies', 'wpbot'); ?></h5>
2504 <p>
2505 <?php esc_html_e('🚀 Categories: Block the indexing of the website categories.', 'wpbot'); ?><br>
2506 <?php esc_html_e('🚀 Tags: Block the indexing of the website’s tags.', 'wpbot'); ?>
2507 </p>
2508 <h5><?php esc_html_e('3. Dates', 'wpbot'); ?></h5>
2509 <p>
2510 <?php esc_html_e('🚀 Date: Block the indexing based on any date-based archive pages.', 'wpbot'); ?><br>
2511 <?php esc_html_e('🚀 Day, Month, Time, Year: Block the indexing for daily, monthly, by time, or yearly archive of the site.', 'wpbot'); ?>
2512 </p>
2513 <h5><?php esc_html_e('4. Archives', 'wpbot'); ?></h5>
2514 <p>
2515 <?php esc_html_e('🚀 Archive: Block the indexing of any type of Archive page. Category, Tag, Author and Date based pages etc. are all types of Archives.', 'wpbot'); ?><br>
2516 <?php esc_html_e('🚀 Author: Block the indexing of the author’s page, where the author’s publications appear.', 'wpbot'); ?><br>
2517 <?php esc_html_e('🚀 Post Type Archive: Block the indexing of any post type page.', 'wpbot'); ?>
2518 </p>
2519 <h5><?php esc_html_e('5. Pagination and Search', 'wpbot'); ?></h5>
2520 <p>
2521 <?php esc_html_e('🚀 Pagination: Block the indexing of the pagination, i.e. all pages other than the main page of an archive.', 'wpbot'); ?><br>
2522
2523 <?php esc_html_e('🚀 Search: Block the indexing of the internal search result pages.', 'wpbot'); ?>
2524 </p>
2525 <h5><?php esc_html_e('6. Attachments and Previews', 'wpbot'); ?></h5>
2526 <p>
2527 <?php esc_html_e('🚀 Attachment: Block the indexing of an attachment document to a post or page.', 'wpbot'); ?><br>
2528 <?php esc_html_e('🚀 Customize Preview: Block the indexing when a content is being displayed in customize mode', 'wpbot'); ?><br>
2529 <?php esc_html_e('🚀 Preview: Block the indexing when a single post is being displayed in draft mode.', 'wpbot'); ?>
2530 </p>
2531 <h5><?php esc_html_e('7. Error Page', 'wpbot'); ?></h5>
2532 <p>
2533 <?php esc_html_e('🚀 Error 404: This will cause an error page to be blocked from being indexed. As it is an error page, it should not be indexed per se, but just in case.', 'wpbot'); ?>
2534 </p>
2535 <h5><?php esc_html_e('8. Other Features', 'wpbot'); ?></h5>
2536 <p>
2537 <?php esc_html_e('🚀 Works with all modern browsers', 'wpbot'); ?><br>
2538 <?php esc_html_e('🚀 Scan for Broken Links on your website', 'wpbot'); ?><br>
2539 <?php esc_html_e('🚀 Open External links in new window', 'wpbot'); ?><br>
2540 <?php esc_html_e('🚀 Priority, Premium Support', 'wpbot'); ?><br>
2541 <?php esc_html_e('🚀 Auto Upgrades for Plugin', 'wpbot'); ?></p>
2542 </div>
2543 </section>
2544
2545
2546 <footer class="wp-chatbot-admin-footer">
2547 <div class="row">
2548
2549
2550 <input type="submit" class="btn btn-primary submit-button" name="submit"
2551 id="submit" value="Save Settings"/>
2552
2553 </div>
2554 <!-- row-->
2555 </footer>
2556
2557 </div>
2558
2559
2560
2561 <div class="wp-chatbot-admin-upgrade-pro-sidebar">
2562 <div class="wp-chatbot-admingradient-color">
2563 <img class="wp-chatbot-admin-banner" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/template-sample.gif' ); ?>" alt="">
2564 <h3 class="wp-chatbot-admincart-title">Upgrade To <span>Pro</span></h3>
2565 <ul class="feature-list">
2566 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Core WPBot Pro</li>
2567 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Chat Sessions and Histories</li>
2568 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Extended Search Module</li>
2569 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">OpenAI Basic and DialogFlow</li>
2570 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Simple text Responses Pro Module</li>
2571 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Conversational Forms Pro Module</li>
2572 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">WooCommerce Module</li>
2573 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">OpenAI Pro Adv. (Fine Tuning, Assistant)</li>
2574 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Live (Human) Chat Module</li>
2575 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Tavily Search API module</li>
2576 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Extended UI Module</li>
2577 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">WebHook & Mailing List Module</li>
2578 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">White Label Module</li>
2579 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">FaceBook Messenger Module</li>
2580 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">WhatsApp through Twilio Module</li>
2581 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Multi Language Module</li>
2582 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Settings Export Import Module</li>
2583 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Voice Message Module</li>
2584 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Voice Chat Module</li>
2585 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Telegram Module</li>
2586 <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Priority Technical Support</li>
2587 </ul>
2588
2589 <a class="wp-chatbot-admin-pro-upgrade-button" target="_blank" href="https://www.wpbot.pro/">Upgrade to Pro <img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/external-white.svg' ); ?>" alt=""></a>
2590 </div>
2591
2592 </div>
2593
2594
2595
2596
2597 </div>
2598
2599 </section>
2600
2601
2602
2603
2604
2605
2606 </div>
2607 <?php wp_nonce_field('wp_chatbot'); ?>
2608 </form>
2609
2610
2611 </div>
2612