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

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

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