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

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

2,240 lines 187.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 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
502 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
503 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
504 <?php esc_html_e('Disable WPbot on Mobile Device', 'wpbot'); ?>
505 </h4>
506 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
507 <input value="<?php esc_attr_e('1', 'wpbot'); ?>" id="<?php esc_attr_e( 'disable_wp_chatbot_on_mobile', 'wpbot' ); ?>" type="checkbox"
508 name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
509 <label for="<?php esc_attr_e('disable_wp_chatbot_on_mobile', 'wpbot' ); ?>">
510 <?php esc_html_e('Disable WpBot to Load on Mobile Device', 'wpbot'); ?>
511 </label>
512 </div>
513 </div>
514 </div>
515
516 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
517 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
518 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
519 <?php esc_html_e('Enable RTL', 'wpbot'); ?>
520 </h4>
521 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
522 <input value="<?php esc_attr_e('1', 'wpbot'); ?>" id="<?php esc_attr_e( 'enable_wp_chatbot_rtl', 'wpbot' ); ?>" type="checkbox"
523 name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
524 <label for="<?php esc_attr_e( 'enable_wp_chatbot_rtl', 'wpbot' ); ?>">
525 <?php esc_html_e('Enable RTL (Right to Left language) Support for Chat', 'wpbot'); ?>
526 </label>
527 </div>
528 </div>
529 </div>
530 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
531 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
532 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
533 <?php esc_html_e('Show Start Menu After Greetings', 'wpbot'); ?>
534 </h4>
535 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
536 <input value="<?php esc_attr_e('1', 'wpbot'); ?>" id="<?php esc_attr_e( 'show_menu_after_greetings', 'wpbot' ); ?>" type="checkbox"
537 name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
538 <label for="<?php esc_html_e('show_menu_after_greetings', 'wpbot' ); ?>">
539 <?php esc_html_e('Show Start Menu After Greetings', 'wpbot'); ?>
540 </label>
541 </div>
542 </div>
543 </div>
544
545 <!-- <div class="<?php // esc_attr_e( 'row', 'wpbot' ); ?> ">
546 <div class="<?php // esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
547 <h4 class="<?php // esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
548 <?php // esc_html_e('WPBot Open Full Screen in Mobile', 'wpbot'); ?>
549 </h4>
550 <div class="<?php // esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
551 <input value="<?php // esc_attr_e('1', 'wpbot'); ?>" id="<?php // esc_attr_e( 'enable_wp_chatbot_mobile_full_screen', 'wpbot' ); ?>" type="checkbox"
552 name="enable_wp_chatbot_mobile_full_screen" <?php // echo (get_option('enable_wp_chatbot_mobile_full_screen') == 1 ? esc_attr('checked' ): ''); ?>>
553 <label for="<?php // esc_attr_e( 'enable_wp_chatbot_mobile_full_screen', 'wpbot' ); ?>">
554 <?php // esc_html_e('Enable WpBot Open Full Screen in Mobile', 'wpbot'); ?>
555 </label>
556 </div>
557 </div>
558 </div> -->
559 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
560 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
561 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> "><?php esc_html_e('Bot Response Delay', 'wpbot'); ?> </h4>
562 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
563 <select name="wpbot_preloading_time" id="<?php esc_attr_e( 'wpbot_preloading_time', 'wpbot' ); ?> ">
564 <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>
565 <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>
566 <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>
567 <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>
568 <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>
569 </select>
570 <label for="wpbot_preloading_time', 'wpbot' ); ?> "><?php esc_html_e('Bot Response Delay', 'wpbot'); ?> </label>
571 </div>
572 </div>
573 </div>
574 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
575 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
576 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
577 <?php esc_html_e('Override WPBot Icon\'s Position', 'wpbot'); ?>
578 </h4>
579 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
580 <?php
581 $qcld_wb_chatbot_position_x = get_option('wp_chatbot_position_x');
582 if ((!isset($qcld_wb_chatbot_position_x)) || ($qcld_wb_chatbot_position_x == "")) {
583 $qcld_wb_chatbot_position_x = __("120", "wp_chatbot");
584 }
585 $qcld_wb_chatbot_position_y = get_option('wp_chatbot_position_y');
586 if ((!isset($qcld_wb_chatbot_position_y)) || ($qcld_wb_chatbot_position_y == "")) {
587 $qcld_wb_chatbot_position_y = __("120", "wp_chatbot");
588 }
589 ?>
590 <input type="number" class="<?php esc_attr_e( 'qc-opt-dcs-font', 'wpbot' ); ?> "
591 name="wp_chatbot_position_x"
592 value="<?php esc_attr_e($qcld_wb_chatbot_position_x, 'wpbot'); ; ?>"
593 placeholder="<?php esc_html_e('From Right In px', 'wpbot'); ?>">
594 <span class="<?php esc_attr_e( 'qc-opt-dcs-font', 'wpbot' ); ?> ">
595 <?php esc_html_e('From Right In px', 'wpbot'); ?>
596 </span>
597 <input type="number" class="<?php esc_attr_e( 'qc-opt-dcs-font', 'wpbot' ); ?>"
598 name="wp_chatbot_position_y"
599 value="<?php esc_attr_e($qcld_wb_chatbot_position_y, 'wpbot'); ; ?>"
600 placeholder="<?php esc_html_e('From Bottom In Px', 'wpbot'); ?> ">
601 <span class="<?php esc_attr_e( 'qc-opt-dcs-font', 'wpbot' ); ?> ">
602 <?php esc_html_e('From Bottom In px', 'wpbot'); ?>
603 </span> </div>
604 </div>
605 <!--.col-sm-12-->
606 </div>
607 <!-- row-->
608
609 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
610 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
611 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> "><strong>
612 <?php esc_html_e('WPBot', 'wpbot'); ?>
613 </strong>
614 <?php esc_html_e('Loading Control Options', 'wpbot'); ?>
615 </h4>
616 <div class="<?php esc_attr_e( 'cxsc-settings-blocks cxsc-settings-blocks-style', 'wpbot' ); ?> ">
617 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
618 <div class="<?php esc_attr_e( 'col-sm-4 text-right', 'wpbot' ); ?> "> <span class="<?php esc_attr_e( 'qc-opt-title-font', 'wpbot' ); ?> ">
619 <?php esc_html_e('Show on Home Page', 'wpbot'); ?>
620 </span> </div>
621 <div class="<?php esc_attr_e( 'col-sm-8', 'wpbot' ); ?> ">
622 <label class="<?php esc_attr_e( 'radio-inline', 'wpbot' ); ?> ">
623 <input id="<?php esc_attr_e( 'wp-chatbot-show-home-page', 'wpbot' ); ?>" type="radio"
624 name="wp_chatbot_show_home_page"
625 value="<?php esc_attr_e( 'on', 'wpbot' ); ?>" <?php echo(get_option('wp_chatbot_show_home_page') == 'on' ? esc_attr('checked' ): ''); ?>>
626 <?php esc_html_e('YES', 'wpbot'); ?>
627 </label>
628 <label class="<?php esc_attr_e( 'radio-inline', 'wpbot' ); ?> ">
629 <input id="<?php esc_attr_e( 'wp-chatbot-show-home-page', 'wpbot' ); ?>" type="radio"
630 name="wp_chatbot_show_home_page"
631 value="<?php esc_attr_e( 'off', 'wpbot' ); ?>" <?php echo(get_option('wp_chatbot_show_home_page') == 'off' ? esc_attr('checked' ): ''); ?>>
632 <?php esc_html_e('NO', 'wpbot'); ?>
633 </label>
634 </div>
635 </div>
636 <!-- row-->
637 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
638 <div class="<?php esc_attr_e( 'col-sm-4 text-right', 'wpbot' ); ?> "> <span class="<?php esc_attr_e( 'qc-opt-title-font', 'wpbot' ); ?> ">
639 <?php esc_html_e('Show on blog posts', 'wpbot'); ?>
640 </span> </div>
641 <div class="<?php esc_attr_e( 'col-sm-8', 'wpbot' ); ?> ">
642 <label class="<?php esc_attr_e( 'radio-inline', 'wpbot' ); ?> ">
643 <input class="<?php esc_attr_e( 'wp-chatbot-show-posts', 'wpbot'); ?>" type="radio"
644 name="wp_chatbot_show_posts"
645 value="<?php esc_attr_e( 'on', 'wpbot' ); ?>" <?php echo(get_option('wp_chatbot_show_posts') == 'on' ? esc_attr('checked' ): ''); ?>>
646 <?php esc_html_e('YES', 'wpbot'); ?>
647 </label>
648 <label class="<?php esc_attr_e( 'radio-inline', 'wpbot' ); ?> ">
649 <input class="<?php esc_attr_e( 'wp-chatbot-show-posts', 'wpbot'); ?>" type="radio"
650 name="wp_chatbot_show_posts"
651 value="<?php esc_attr_e( 'off', 'wpbot' ); ?>" <?php echo(get_option('wp_chatbot_show_posts') == 'off' ? esc_attr('checked' ): ''); ?>>
652 <?php esc_html_e('NO', 'wpbot'); ?>
653 </label>
654 </div>
655 </div>
656 <!-- row-->
657 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
658 <div class="<?php esc_attr_e( 'col-md-4 text-right', 'wpbot' ); ?> "> <span class="<?php esc_attr_e( 'qc-opt-title-font', 'wpbot' ); ?> ">
659 <?php esc_html_e('Show on pages', 'wpbot'); ?>
660 </span> </div>
661 <div class="<?php esc_attr_e( 'col-md-8', 'wpbot' ); ?> ">
662 <label class="<?php esc_attr_e( 'radio-inline', 'wpbot' ); ?> ">
663 <input class="<?php esc_attr_e( 'wp-chatbot-show-pages ', 'wpbot'); ?>" type="radio"
664 name="wp_chatbot_show_pages"
665 value="<?php esc_attr_e( 'on', 'wpbot' ); ?>" <?php echo(get_option('wp_chatbot_show_pages') == 'on' ? esc_attr('checked' ): ''); ?>>
666 <?php esc_html_e('All Pages', 'wpbot'); ?>
667 </label>
668 <label class="<?php esc_attr_e( 'radio-inline', 'wpbot' ); ?> ">
669 <input class="<?php esc_attr_e( 'wp-chatbot-show-pages', 'wpbot'); ?>" type="radio"
670 name="wp_chatbot_show_pages"
671 value="<?php esc_attr_e( 'off', 'wpbot' ); ?>" <?php echo(get_option('wp_chatbot_show_pages') == 'off' ? esc_attr('checked' ): ''); ?>>
672 <?php esc_html_e('Selected Pages Only ', 'wpbot'); ?>
673 </label>
674 <div id="<?php esc_attr_e( 'wp-chatbot-show-pages-list', 'wpbot' ); ?> ">
675 <ul class="<?php esc_attr_e( 'checkbox-list', 'wpbot' ); ?> ">
676 <?php
677 $wp_chatbot_pages = get_pages();
678 $wp_chatbot_select_pages = maybe_unserialize(get_option('wp_chatbot_show_pages_list'));
679 foreach ($wp_chatbot_pages as $wp_chatbot_page) {
680 ?>
681 <li>
682 <input id="<?php esc_attr_e( 'wp_chatbot_show_page_'. $wp_chatbot_page->ID, 'wpbot' ); ?>"
683 type="checkbox"
684 name="wp_chatbot_show_pages_list[]"
685 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) {
686 echo esc_attr('checked');
687 } ?> >
688 <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>
689 </li>
690 <?php } ?>
691 </ul>
692 </div>
693 </div>
694 </div>
695 <!--row-->
696 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
697 <div class="<?php esc_attr_e( 'col-sm-4 text-right', 'wpbot' ); ?> "> <span class="<?php esc_attr_e( 'qc-opt-title-font', 'wpbot' ); ?> ">
698 <?php esc_html_e('Exclude from Custom Post', 'wpbot'); ?>
699 </span></div>
700 <div class="<?php esc_attr_e( 'col-sm-8', 'wpbot' ); ?> ">
701 <div id="<?php esc_attr_e( 'wp-chatbot-exclude-post-list', 'wpbot' ); ?> ">
702 <ul class="<?php esc_attr_e( 'checkbox-list', 'wpbot' ); ?> ">
703 <?php
704 $get_cpt_args = array(
705 'public' => true,
706 '_builtin' => false
707 );
708
709 $post_types = get_post_types( $get_cpt_args, 'object' );
710 $wp_chatbot_exclude_post_list = maybe_unserialize(get_option('wp_chatbot_exclude_post_list'));
711
712 foreach ($post_types as $post_type) {
713 ?>
714 <li>
715 <input
716 id="<?php echo esc_attr( 'wp_chatbot_exclude_post_'. $post_type->name, 'wpbot' ); ?>"
717 type="checkbox"
718 name="wp_chatbot_exclude_post_list[]"
719 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) {
720 echo esc_attr('checked');
721 } ?> >
722 <label
723 for="wp_chatbot_exclude_post_<?php echo esc_attr($post_type->name); ?>"> <?php esc_html_e($post_type->name, 'wpbot'); ?></label>
724 </li>
725 <?php } ?>
726 </ul>
727 </div>
728 </div>
729 </div>
730 </div>
731 <!-- cxsc-settings-blocks-->
732 </div>
733 <!-- col-xs-12-->
734 </div>
735 <!-- row-->
736
737 </div>
738 <!-- top-section-->
739 </section>
740 <section id="<?php esc_attr_e( 'section-flip-5', 'wpbot' ); ?>">
741 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic', 'wpbot' ); ?>" style="<?php // echo esc_attr('background: #2271B1'); ?>">
742 <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'); ?>
743 </div> -->
744 <div class="<?php esc_attr_e( 'wp-chatbot-language-center-summmery', 'wpbot' ); ?> "> </div>
745 <ul class="<?php esc_attr_e( 'nav nav-tabs', 'wpbot' ); ?> ">
746 <li class="<?php esc_attr_e( 'active', 'wpbot' ); ?> "><a data-toggle="tab" href="<?php esc_attr_e( '#wp-chatbot-lng-general', 'wpbot' ); ?> ">
747 <?php esc_html_e('General', 'wpbot'); ?>
748 </a></li>
749 <li><a data-toggle="tab" href="<?php esc_attr_e( '#wp-chatbot-lng-support', 'wpbot' ); ?> ">
750 <?php esc_html_e('FAQ', 'wpbot'); ?>
751 </a></li>
752 <li><a data-toggle="tab" href="<?php esc_attr_e( '#wp-chatbot-lng-reserve-keyword', 'wpbot' ); ?> ">
753 <?php esc_html_e('ChatBot Keywords', 'wpbot'); ?>
754 </a></li>
755 </ul>
756 <div class="<?php esc_attr_e( 'tab-content', 'wpbot' ); ?> ">
757 <div id="<?php esc_attr_e( 'wp-chatbot-lng-general', 'wpbot' ); ?>" class="<?php esc_attr_e( 'tab-pane fade in active', 'wpbot' ); ?> ">
758 <div class="<?php esc_attr_e( 'top-section', 'wpbot' ); ?> ">
759 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
760 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?>" id="<?php esc_attr_e( 'wp-chatbot-language-section', 'wpbot' ); ?>">
761 <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>
762 <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>
763 <p><?php esc_html_e('You could use &lt;br&gt; tag for line break.', 'wpbot' ); ?></p>
764 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
765 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
766 <?php esc_html_e('Your Company or Website Name', 'wpbot'); ?>
767 </h4>
768 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
769 name="qlcd_wp_chatbot_host"
770 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?> ">
771 </div>
772 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
773 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
774 <?php esc_html_e('Agent name', 'wpbot'); ?>
775 </h4>
776 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
777 name="qlcd_wp_chatbot_agent"
778 value="<?php echo (get_option('qlcd_wp_chatbot_agent') != '' ? esc_attr(get_option('qlcd_wp_chatbot_agent')) : 'Carrie'); ?>">
779 </div>
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('User demo 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_shopper_demo_name"
786 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?> ">
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('YES', 'wpbot'); ?>
791 </h4>
792 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
793 name="qlcd_wp_chatbot_yes"
794 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_yes') != '' ? get_option('qlcd_wp_chatbot_yes') : 'YES')); ?>">
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('NO', 'wpbot'); ?>
799 </h4>
800 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
801 name="qlcd_wp_chatbot_no"
802 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_no') != '' ? get_option('qlcd_wp_chatbot_no') : 'NO')); ?>">
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('OR', 'wpbot'); ?>
807 </h4>
808 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
809 name="qlcd_wp_chatbot_or"
810 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_or') != '' ? get_option('qlcd_wp_chatbot_or') : 'OR')); ?>">
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('Sorry', 'wpbot'); ?>
815 </h4>
816 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font ', 'wpbot' ); ?>"
817 name="qlcd_wp_chatbot_sorry"
818 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sorry') != '' ? get_option('qlcd_wp_chatbot_sorry') : 'Sorry')); ?>">
819 </div>
820 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
821 <?php
822 $agent_join_options = maybe_unserialize(get_option('qlcd_wp_chatbot_agent_join'));
823 $agent_join_option = 'qlcd_wp_chatbot_agent_join';
824 $agent_join_text = __('has joined the conversation', 'wpbot');
825 $this->qcld_wb_chatbot_dynamic_multi_option($agent_join_options, $agent_join_option, $agent_join_text);
826 ?>
827 </div>
828 </div>
829 <!--col-xs-12-->
830 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?>" id="<?php esc_attr_e( 'wp-chatbot-language-section', 'wpbot' ); ?> ">
831 <h4 class="<?php esc_attr_e( 'text-success', 'wpbot' ); ?> ">
832 <?php esc_html_e(' Message setting for Greetings: ', 'wpbot'); ?>
833 </h4>
834 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
835 <?php
836 $welcome_to_options = maybe_unserialize(get_option('qlcd_wp_chatbot_welcome'));
837 $welcome_to_option = 'qlcd_wp_chatbot_welcome';
838 $welcome_to_text = esc_html('Welcome to');
839 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_to_options, $welcome_to_option, $welcome_to_text);
840 ?>
841 </div>
842 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
843 <?php
844 $welcome_back_options = maybe_unserialize(get_option('qlcd_wp_chatbot_welcome_back'));
845 $welcome_back_option = 'qlcd_wp_chatbot_welcome_back';
846 $welcome_back_text = esc_html('Welcome back');
847 $this->qcld_wb_chatbot_dynamic_multi_option($welcome_back_options, $welcome_back_option, $welcome_back_text);
848 ?>
849 </div>
850 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
851 <?php
852 $back_to_start_options = maybe_unserialize(get_option('qlcd_wp_chatbot_back_to_start'));
853 $back_to_start_option = 'qlcd_wp_chatbot_back_to_start';
854 $back_to_start_text = esc_html('Back to Start');
855 $this->qcld_wb_chatbot_dynamic_multi_option($back_to_start_options, $back_to_start_option, $back_to_start_text);
856 ?>
857 </div>
858 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
859 <?php
860 $hi_there_options = maybe_unserialize(get_option('qlcd_wp_chatbot_hi_there'));
861 $hi_there_option = 'qlcd_wp_chatbot_hi_there';
862 $hi_there_text = esc_html('Hi There!');
863 $this->qcld_wb_chatbot_dynamic_multi_option($hi_there_options, $hi_there_option, $hi_there_text);
864 ?>
865 </div>
866 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
867 <?php
868 $hello_options = maybe_unserialize(get_option('qlcd_wp_chatbot_hello'));
869 $hello_option = 'qlcd_wp_chatbot_hello';
870 $hello_text = esc_html('Hello');
871 $this->qcld_wb_chatbot_dynamic_multi_option($hello_options, $hello_option, $hello_text);
872 ?>
873 </div>
874 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
875 <?php
876 $asking_name_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_name'));
877 $asking_name_option = 'qlcd_wp_chatbot_asking_name';
878 $asking_name_text = esc_html('May I know your name?');
879 $this->qcld_wb_chatbot_dynamic_multi_option($asking_name_options, $asking_name_option, $asking_name_text);
880 ?>
881 </div>
882 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
883 <?php
884 $i_am_options = maybe_unserialize(get_option('qlcd_wp_chatbot_i_am'));
885 $i_am_option = 'qlcd_wp_chatbot_i_am';
886 $i_am_text = esc_html('I am');
887 $this->qcld_wb_chatbot_dynamic_multi_option($i_am_options, $i_am_option, $i_am_text);
888 ?>
889 </div>
890 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
891 <?php
892 $name_greeting_options = maybe_unserialize(get_option('qlcd_wp_chatbot_name_greeting'));
893 $name_greeting_option = 'qlcd_wp_chatbot_name_greeting';
894 $name_greeting_text = esc_html('Nice to meet you');
895 $this->qcld_wb_chatbot_dynamic_multi_option($name_greeting_options, $name_greeting_option, $name_greeting_text);
896 ?>
897 </div>
898 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
899 <?php
900 $wildcard_msg_options = maybe_unserialize(get_option('qlcd_wp_chatbot_wildcard_msg'));
901 $wildcard_msg_option = 'qlcd_wp_chatbot_wildcard_msg';
902 $wildcard_msg_text = esc_html('I am here to find what you need. What are you looking for?');
903 $this->qcld_wb_chatbot_dynamic_multi_option($wildcard_msg_options, $wildcard_msg_option, $wildcard_msg_text);
904 ?>
905 </div>
906 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
907 <?php
908 $empty_filter_msgs = maybe_unserialize(get_option('qlcd_wp_chatbot_empty_filter_msg'));
909 $empty_filter_msg = 'qlcd_wp_chatbot_empty_filter_msg';
910 $empty_filter_msg_text = esc_html('Sorry, I did not understand that');
911 $this->qcld_wb_chatbot_dynamic_multi_option($empty_filter_msgs, $empty_filter_msg, $empty_filter_msg_text);
912 ?>
913 </div>
914 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
915 <?php
916 $qlcd_wp_chatbot_did_you_mean = maybe_unserialize(get_option('qlcd_wp_chatbot_did_you_mean'));
917 $qlcd_wp_chatbot_did_you_means = 'qlcd_wp_chatbot_did_you_mean';
918 $wp_chatbot_no_result_text = esc_html('Did you mean?');
919 $this->qcld_wb_chatbot_dynamic_multi_option($qlcd_wp_chatbot_did_you_mean, $qlcd_wp_chatbot_did_you_means, $wp_chatbot_no_result_text);
920 ?>
921 </div>
922 <h4 class="<?php esc_attr_e( 'text-success', 'wpbot' ); ?> ">
923 <?php esc_html_e('Message setting for Editor Box ', 'wpbot'); ?>
924 </h4>
925 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
926 <?php
927 $is_typing_options = maybe_unserialize(get_option('qlcd_wp_chatbot_is_typing'));
928 $is_typing_option = 'qlcd_wp_chatbot_is_typing';
929 $is_typing_text = esc_html('is typing...');
930 $this->qcld_wb_chatbot_dynamic_multi_option($is_typing_options, $is_typing_option, $is_typing_text);
931 ?>
932 </div>
933 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
934 <?php
935 $send_a_msg_options = maybe_unserialize(get_option('qlcd_wp_chatbot_send_a_msg'));
936 $send_a_msg_option = 'qlcd_wp_chatbot_send_a_msg';
937 $send_a_msg_text = esc_html('Send a message');
938 $this->qcld_wb_chatbot_dynamic_multi_option($send_a_msg_options, $send_a_msg_option, $send_a_msg_text);
939 ?>
940 </div>
941 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
942 <?php
943 $choose_option_options = maybe_unserialize(get_option('qlcd_wp_chatbot_choose_option'));
944 $choose_option_option = 'qlcd_wp_chatbot_choose_option';
945 $choose_option_text = esc_html('Choose an option');
946 $this->qcld_wb_chatbot_dynamic_multi_option($choose_option_options, $choose_option_option, $choose_option_text);
947 ?>
948 </div>
949 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
950 <?php
951 $asking_email_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_email'));
952 $asking_email_option = 'qlcd_wp_chatbot_asking_email';
953 $asking_email_text = esc_html('Please provide your email address');
954 $this->qcld_wb_chatbot_dynamic_multi_option($asking_email_options, $asking_email_option, $asking_email_text);
955 ?>
956 </div>
957 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
958 <?php
959 $invalid_email_options = maybe_unserialize(get_option('qlcd_wp_chatbot_invalid_email'));
960 $invalid_email_option = 'qlcd_wp_chatbot_invalid_email';
961 $invalid_email_text = esc_html('Sorry, Email address is not valid! Please provide a valid email.');
962 $this->qcld_wb_chatbot_dynamic_multi_option($invalid_email_options, $invalid_email_option, $invalid_email_text);
963 ?>
964 </div>
965 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
966 <?php
967 $asking_msg_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_msg'));
968 $asking_msg_option = 'qlcd_wp_chatbot_asking_msg';
969 $asking_msg_text = esc_html('Thank you for email address. Please write your message now.');
970 $this->qcld_wb_chatbot_dynamic_multi_option($asking_msg_options, $asking_msg_option, $asking_msg_text);
971 ?>
972 </div>
973 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
974 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
975 <?php esc_html_e('WPBot Support Mail Subject', 'wpbot'); ?>
976 </h4>
977 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
978 name="qlcd_wp_chatbot_email_sub"
979 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_email_sub') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_email_sub')) : 'Support Email Subject') ); ?>">
980 </div>
981 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
982 <?php
983 $support_option_again_options = maybe_unserialize(get_option('qlcd_wp_chatbot_support_option_again'));
984 $support_option_again_option = 'qlcd_wp_chatbot_support_option_again';
985 $support_option_again_text = esc_html('You may choose option from below.');
986 $this->qcld_wb_chatbot_dynamic_multi_option($support_option_again_options, $support_option_again_option, $support_option_again_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('Your email was sent successfully.Thanks!', '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_sent"
995 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!')); ?> ">
996 </div>
997 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
998 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
999 <?php esc_html_e('Sorry! I could not send your mail! Please contact the webmaster.', 'wpbot'); ?>
1000 </h4>
1001 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font ', 'wpbot' ); ?>"
1002 name="qlcd_wp_chatbot_email_fail"
1003 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')); ?> ">
1004 </div>
1005
1006 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1007 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1008 <?php esc_html_e('Check the relevant pages for more details and up to date information:', 'wpbot'); ?>
1009 </h4>
1010 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font ', 'wpbot' ); ?>"
1011 name="qlcd_wp_chatbot_relevant_post_link_openai"
1012 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:')); ?> ">
1013 </div>
1014
1015 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1016 <?php
1017 $asking_phone_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_phone'));
1018 $asking_phone_option = 'qlcd_wp_chatbot_asking_phone';
1019 $asking_phone_text = esc_html('Please provide your Phone number');
1020 $this->qcld_wb_chatbot_dynamic_multi_option($asking_phone_options, $asking_phone_option, $asking_phone_text);
1021 ?>
1022 </div>
1023 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1024 <?php
1025 $thanks_phone_options = maybe_unserialize(get_option('qlcd_wp_chatbot_thank_for_phone'));
1026 $thanks_phone_option = 'qlcd_wp_chatbot_thank_for_phone';
1027 $thanks_phone_text = esc_html('Thank you for Phone number');
1028 $this->qcld_wb_chatbot_dynamic_multi_option($thanks_phone_options, $thanks_phone_option, $thanks_phone_text);
1029 ?>
1030 </div>
1031 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1032 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1033 <?php esc_html_e('Thanks for your phone number. We will call you ASAP!', 'wpbot'); ?>
1034 </h4>
1035 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1036 name="qlcd_wp_chatbot_phone_sent"
1037 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!')); ?> ">
1038 </div>
1039 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1040 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1041 <?php esc_html_e('Sorry! I could not collect phone number! Please contact the webmaster.', 'wpbot'); ?>
1042 </h4>
1043 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1044 name="qlcd_wp_chatbot_phone_fail"
1045 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!')); ?> ">
1046 </div>
1047
1048 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1049 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1050 <?php esc_html_e('Please enter your keyword for searching', 'wpbot'); ?>
1051 </h4>
1052 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1053 name="qlcd_wp_chatbot_asking_search_keyword"
1054 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')); ?> ">
1055 </div>
1056 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1057 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1058 <?php esc_html_e('We have found these results', 'wpbot'); ?>
1059 </h4>
1060 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1061 name="qlcd_wp_chatbot_found_result"
1062 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')); ?> ">
1063 </div>
1064 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1065 <?php
1066 $qlcd_wp_chatbot_product_fails = maybe_unserialize(get_option('qlcd_wp_chatbot_product_fail'));
1067 $qlcd_wp_chatbot_product_fail = 'qlcd_wp_chatbot_product_fail';
1068 $fail_text = esc_html('Sorry, I found nothing');
1069 $this->qcld_wb_chatbot_dynamic_multi_option($qlcd_wp_chatbot_product_fails, $qlcd_wp_chatbot_product_fail, $fail_text);
1070 ?>
1071 </div>
1072 </div>
1073 </div>
1074 </div>
1075 </div>
1076 <div id="<?php esc_attr_e( 'wp-chatbot-lng-support', 'wpbot' ); ?>" class="<?php esc_attr_e( 'tab-pane fade', 'wpbot' ); ?> ">
1077 <div class="<?php esc_attr_e( 'top-section', 'wpbot' ); ?> ">
1078 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1079 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?>" id="<?php esc_attr_e( 'wp-chatbot-language-section', 'wpbot' ); ?> ">
1080 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1081 <?php
1082 $support_welcome_options = maybe_unserialize(get_option('qlcd_wp_chatbot_support_welcome'));
1083 $support_welcome_option = 'qlcd_wp_chatbot_support_welcome';
1084 $support_welcome_text = esc_html('Welcome to FAQ Section');
1085 $this->qcld_wb_chatbot_dynamic_multi_option($support_welcome_options, $support_welcome_option, $support_welcome_text);
1086 ?>
1087 </div>
1088
1089 <div class="<?php // esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1090 <?php
1091 // $feedback_label_options = maybe_unserialize(get_option('qlcd_wp_chatbot_feedback_label'));
1092 // $feedback_label_option = 'qlcd_wp_chatbot_feedback_label';
1093 // $feedback_label_text = esc_html('Send Feedback!');
1094 // $this->qcld_wb_chatbot_dynamic_multi_option($feedback_label_options, $feedback_label_option, $feedback_label_text);
1095 ?>
1096 </div>
1097
1098 </div>
1099 </div>
1100 </div>
1101 </div>
1102 <div id="<?php esc_attr_e( 'wp-chatbot-lng-reserve-keyword', 'wpbot' ); ?>" class="<?php esc_attr_e( 'tab-pane fade', 'wpbot' ); ?> ">
1103 <div class="<?php esc_attr_e( 'top-section', 'wpbot' ); ?> ">
1104 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1105 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?>" id="<?php esc_attr_e( 'wp-chatbot-language-section', 'wpbot' ); ?> ">
1106 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1107 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1108 <?php esc_html_e('Start Keyword', 'wpbot'); ?>
1109 </h4>
1110 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1111 name="qlcd_wp_chatbot_sys_key_help"
1112 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_help') != '' ? get_option('qlcd_wp_chatbot_sys_key_help'): 'start')) ; ?> ">
1113 </div>
1114 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1115 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> "><strong>
1116 <?php esc_html_e('FAQ', 'wpbot'); ?>
1117 </strong>
1118 <?php esc_html_e('Keyword', 'wpbot'); ?>
1119 </h4>
1120 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1121 name="qlcd_wp_chatbot_sys_key_support"
1122 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_support') != '' ? get_option('qlcd_wp_chatbot_sys_key_support') : 'faq')); ?> ">
1123 </div>
1124 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1125 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> "><strong>
1126 <?php esc_html_e('Converstion History Clear', 'wpbot'); ?>
1127 </strong>
1128 <?php esc_html_e('Keyword', 'wpbot'); ?>
1129 </h4>
1130 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1131 name="qlcd_wp_chatbot_sys_key_reset"
1132 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_reset') != '' ? get_option('qlcd_wp_chatbot_sys_key_reset') : 'reset')); ?> ">
1133 </div>
1134 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1135 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> "><strong>
1136 <?php esc_html_e('eMail', 'wpbot'); ?>
1137 </strong>
1138 <?php esc_html_e('Keyword to Send eMail', 'wpbot'); ?>
1139 </h4>
1140 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1141 name="qlcd_wp_chatbot_sys_key_email"
1142 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_email') != '' ? get_option('qlcd_wp_chatbot_sys_key_email'): 'email')); ?>">
1143 </div>
1144 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1145 <?php
1146 $help_welcome_options = maybe_unserialize(wp_kses_post(get_option('qlcd_wp_chatbot_help_welcome')));
1147 $help_welcome_option = 'qlcd_wp_chatbot_help_welcome';
1148 $help_welcome_text = esc_html('Welcome to Help Section');
1149 $this->qcld_wb_chatbot_dynamic_multi_option($help_welcome_options, $help_welcome_option, $help_welcome_text);
1150 ?>
1151 </div>
1152 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1153 <?php
1154 $help_msg_options = maybe_unserialize(wp_kses_post(get_option('qlcd_wp_chatbot_help_msg')));
1155 $help_msg_option = 'qlcd_wp_chatbot_help_msg';
1156 $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>';
1157 $this->qcld_wb_chatbot_dynamic_multi_option($help_msg_options, $help_msg_option, $help_msg_text);
1158 ?>
1159 </div>
1160 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1161 <?php
1162 $reset_options = maybe_unserialize(wp_kses_post(get_option('qlcd_wp_chatbot_reset')));
1163 $reset_option = 'qlcd_wp_chatbot_reset';
1164 $reset_text = esc_html('Do you want to clear our chat history and start over?' );
1165 $this->qcld_wb_chatbot_dynamic_multi_option($reset_options, $reset_option, $reset_text);
1166 ?>
1167 </div>
1168 </div>
1169 <!-- col-xs-12-->
1170 </div>
1171 <!-- row-->
1172 </div>
1173 <!-- top-section-->
1174 </div>
1175 </div>
1176 <!-- tab-content-->
1177 </section>
1178 <section id="<?php esc_attr_e( 'section-flip-3', 'wpbot' ); ?> ">
1179 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic', 'wpbot' ); ?>" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1180 <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'); ?>
1181 </div> -->
1182 <ul class="<?php esc_attr_e( 'nav nav-tabs', 'wpbot' ); ?> ">
1183 <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>
1184 <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>
1185 </ul>
1186 <div class="<?php esc_attr_e( 'tab-content', 'wpbot' ); ?> ">
1187 <div id="<?php esc_attr_e( 'wp-chatbot-icon-theme-settings', 'wpbot' ); ?>" class="<?php esc_attr_e( 'tab-pane fade in active', 'wpbot' ); ?> ">
1188 <div class="<?php esc_attr_e( 'top-section', 'wpbot' ); ?> ">
1189 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1190 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1191
1192 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1193 <?php esc_html_e('WPBot Icon', 'wpbot'); ?>
1194 </h4>
1195 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1196 <ul class="<?php esc_attr_e( 'radio-list', 'wpbot' ); ?> ">
1197
1198 <li>
1199 <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="">
1200 <input id="<?php esc_attr_e( 'wp_chatbot_icon_0', 'wpbot' ); ?>" type="radio"
1201 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-0.png' ? esc_attr('checked' ): ''); ?>
1202 value="<?php echo esc_attr('icon-0.png'); ?>">
1203 <?php esc_html_e('Icon - 0', 'wpbot'); ?>
1204 </label>
1205 </li>
1206 <li>
1207 <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"
1208 alt="">
1209 <input id="<?php esc_attr_e( 'wp_chatbot_icon_1', 'wpbot' ); ?>" type="radio"
1210 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-1.png' ? esc_attr('checked' ): ''); ?>
1211 value="<?php echo esc_attr('icon-1.png'); ?>">
1212 <?php esc_html_e('Icon - 1', 'wpbot'); ?>
1213 </label>
1214 </li>
1215 <li>
1216 <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"
1217 alt="">
1218 <input id="<?php esc_attr_e( 'wp_chatbot_icon_2', 'wpbot' ); ?>" type="radio"
1219 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-2.png' ? esc_attr('checked' ): ''); ?>
1220 value="<?php echo esc_attr('icon-2.png'); ?>">
1221 <?php esc_html_e('Icon - 2', 'wpbot'); ?>
1222 </label>
1223 </li>
1224 <li>
1225 <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"
1226 alt="">
1227 <input id="<?php esc_attr_e( 'wp_chatbot_icon_3', 'wpbot' ); ?>" type="radio"
1228 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-3.png' ? esc_attr('checked' ): ''); ?>
1229 value="<?php echo esc_attr('icon-3.png'); ?>">
1230 <?php esc_html_e('Icon - 3', 'wpbot'); ?>
1231 </label>
1232 </li>
1233 <li>
1234 <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"
1235 alt="' ">
1236 <input id="<?php esc_attr_e( 'wp_chatbot_icon_4', 'wpbot' ); ?>" type="radio"
1237 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-4.png' ? esc_attr('checked'): ''); ?>
1238 value="<?php echo esc_attr('icon-4.png'); ?>">
1239 <?php esc_html_e('Icon - 4', 'wpbot'); ?>
1240 </label>
1241 </li>
1242 <li>
1243 <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"
1244 alt="">
1245 <input id="<?php esc_attr_e( 'wp_chatbot_icon_5', 'wpbot' ); ?>" type="radio"
1246 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-5.png' ? esc_attr('checked' ): ''); ?>
1247 value="<?php echo esc_attr('icon-5.png'); ?>">
1248 <?php esc_html_e('Icon - 5', 'wpbot'); ?>
1249 </label>
1250 </li>
1251 <li>
1252 <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"
1253 alt=" ">
1254 <input id="<?php esc_attr_e( 'wp_chatbot_icon_6', 'wpbot' ); ?>" type="radio"
1255 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-6.png' ? esc_attr('checked' ): ''); ?>
1256 value="<?php echo esc_attr('icon-6.png'); ?>">
1257 <?php esc_html_e('Icon - 6', 'wpbot'); ?>
1258 </label>
1259 </li>
1260 <li>
1261 <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"
1262 alt=" ">
1263 <input id="<?php esc_attr_e( 'wp_chatbot_icon_7', 'wpbot' ); ?>" type="radio"
1264 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-7.png' ? esc_attr('checked' ): ''); ?>
1265 value="<?php echo esc_attr('icon-7.png'); ?>">
1266 <?php esc_html_e('Icon - 7', 'wpbot'); ?>
1267 </label>
1268 </li>
1269 <li>
1270 <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"
1271 alt="">
1272 <input id="<?php esc_attr_e( 'wp_chatbot_icon_8', 'wpbot' ); ?>" type="radio"
1273 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-8.png' ? esc_attr('checked' ): ''); ?>
1274 value="<?php echo esc_attr('icon-8.png'); ?>">
1275 <?php esc_html_e('Icon - 8', 'wpbot'); ?>
1276 </label>
1277 </li>
1278 <li>
1279 <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"
1280 alt=" ">
1281 <input id="<?php esc_attr_e( 'wp_chatbot_icon_9', 'wpbot' ); ?>" type="radio"
1282 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-9.png' ? esc_attr('checked' ): ''); ?>
1283 value="<?php echo esc_attr('icon-9.png'); ?>">
1284 <?php esc_html_e('Icon - 9', 'wpbot'); ?>
1285 </label>
1286 </li>
1287 <li>
1288 <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"
1289 alt=" ">
1290 <input id="<?php esc_attr_e( 'wp_chatbot_icon_10', 'wpbot' ); ?>" type="radio"
1291 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-10.png' ? esc_attr('checked' ): ''); ?>
1292 value="<?php echo esc_attr('icon-10.png'); ?>">
1293 <?php esc_html_e('Icon - 10', 'wpbot'); ?>
1294 </label>
1295 </li>
1296 <li>
1297 <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"
1298 alt="">
1299 <input id="<?php esc_attr_e( 'wp_chatbot_icon_11', 'wpbot' ); ?>" type="radio"
1300 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-11.png' ? esc_attr('checked' ): ''); ?>
1301 value="<?php echo esc_attr('icon-11.png'); ?>">
1302 <?php esc_html_e('Icon - 11', 'wpbot'); ?>
1303 </label>
1304 </li>
1305 <li>
1306 <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"
1307 alt="">
1308 <input id="<?php esc_attr_e( 'wp_chatbot_icon_12', 'wpbot' ); ?>" type="radio"
1309 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-12.png' ? esc_attr('checked' ): ''); ?>
1310 value="<?php echo esc_attr('icon-12.png'); ?>">
1311 <?php esc_html_e('Icon - 12', 'wpbot'); ?>
1312 </label>
1313 </li>
1314
1315 <li>
1316 <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"
1317 alt="">
1318 <input id="<?php esc_attr_e( 'wp_chatbot_icon_13', 'wpbot' ); ?>" type="radio"
1319 name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-13.png' ? esc_attr('checked' ): ''); ?>
1320 value="<?php echo esc_attr('icon-13.png'); ?>">
1321 <?php esc_html_e('Icon - 13', 'wpbot'); ?>
1322 </label>
1323 </li>
1324 <li>
1325 <?php
1326 if (get_option('wp_chatbot_custom_icon_path') != "") {
1327 $wp_chatbot_custom_icon_path = get_option('wp_chatbot_custom_icon_path');
1328 } else {
1329 $wp_chatbot_custom_icon_path = esc_url(QCLD_wpCHATBOT_IMG_URL) . 'custom.png';
1330 }
1331 ?>
1332 <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' ); ?>"
1333 src="<?php echo esc_url($wp_chatbot_custom_icon_path); ?>" alt=" ">
1334 <input id="<?php esc_attr_e( 'wp_chatbot_custom_icon_input', 'wpbot' ); ?>" type="radio"
1335 name="wp_chatbot_icon"
1336 value="<?php echo esc_attr('custom.png' ); ?>" <?php echo(get_option('wp_chatbot_icon') == 'custom.png' ? esc_attr('checked' ): ''); ?>>
1337 <?php esc_html_e('Custom Icon', 'wpbot'); ?>
1338 </label>
1339 </li>
1340 </ul>
1341 </div>
1342 <!-- cxsc-settings-blocks-->
1343
1344 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1345 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?> ">
1346 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1347 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1348 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1349 <?php esc_html_e('WPBot Icon Background Color.', 'wpbot'); ?>
1350 </h4>
1351 <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') ); ?>"/>
1352 </div>
1353 </div>
1354 </div>
1355 </div>
1356 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1357 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1358 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1359 <?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>
1360 </h4>
1361 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1362 <input type="hidden" name="wp_chatbot_custom_icon_path"
1363 id="<?php esc_attr_e( 'wp_chatbot_custom_icon_path', 'wpbot' ); ?>"
1364 value="<?php esc_attr_e( $wp_chatbot_custom_icon_path, 'wpbot' ); ?>"/>
1365 <button type="button" class="<?php esc_attr_e( 'wp_chatbot_custom_icon_button button', 'wpbot' ); ?> ">
1366 <?php esc_html_e('Upload Icon', 'wpbot'); ?>
1367 </button>
1368 </div>
1369 </div>
1370 </div>
1371
1372
1373
1374 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1375 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1376 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1377 <?php esc_html_e(' WPBot Agent Image', 'wpbot'); ?>
1378 </h4>
1379 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1380 <ul class="<?php esc_attr_e( 'radio-list radio-list-custom', 'wpbot' ); ?> ">
1381 <li>
1382 <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"
1383 alt="', 'wpbot' ); ?> ">
1384 <input id="<?php esc_attr_e( 'wp_chatbot_agent_image_def', 'wpbot' ); ?>" type="radio"
1385 name="wp_chatbot_agent_image" <?php echo(get_option('wp_chatbot_agent_image') == 'agent-0.png' ? esc_attr('checked' ): ''); ?>
1386 value="<?php esc_attr_e('agent-0.png', 'wpbot' ); ?> ">
1387 <?php esc_html_e('Default Agent', 'wpbot'); ?>
1388 </label>
1389 </li>
1390 <li>
1391 <?php
1392 if (get_option('wp_chatbot_custom_agent_path') != "") {
1393 $wp_chatbot_custom_agent_path = get_option('wp_chatbot_custom_agent_path');
1394 } else {
1395 $wp_chatbot_custom_agent_path = esc_url(QCLD_wpCHATBOT_IMG_URL) . 'custom-agent.png';
1396 }
1397 ?>
1398 <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' ); ?>"
1399 src="<?php echo esc_url($wp_chatbot_custom_agent_path); ?>"
1400 alt="Agent', 'wpbot' ); ?> ">
1401 <input type="radio" name="wp_chatbot_agent_image"
1402 id="<?php esc_attr_e( 'wp_chatbot_agent_image_custom', 'wpbot' ); ?>"
1403 value="<?php esc_attr_e('custom-agent.png', 'wpbot' ); ?>" <?php echo(get_option('wp_chatbot_agent_image') == 'custom-agent.png' ? esc_attr('checked' ): ''); ?>>
1404 <?php esc_html_e('Custom Agent', 'wpbot'); ?></label>
1405 </li>
1406 </ul>
1407 </div>
1408 <!-- cxsc-settings-blocks-->
1409 </div>
1410 </div>
1411 </div>
1412 </div>
1413 </div>
1414 <div class="<?php esc_attr_e( 'top-section', 'wpbot' ); ?> ">
1415 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1416 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1417 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1418 <?php esc_html_e('Custom Agent Icon', 'wpbot'); ?>
1419 </h4>
1420 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1421 <input type="hidden" name="wp_chatbot_custom_agent_path"
1422 id="<?php esc_attr_e( 'wp_chatbot_custom_agent_path', 'wpbot' ); ?>"
1423 value="<?php esc_attr_e( $wp_chatbot_custom_agent_path, 'wpbot' ); ?>"/>
1424 <button type="button" class="<?php esc_attr_e( 'wp_chatbot_custom_agent_button button', 'wpbot' ); ?> ">
1425 <?php esc_html_e('Upload Agent Icon', 'wpbot'); ?>
1426 </button>
1427 </div>
1428 </div>
1429 </div>
1430 </div>
1431 <div id="<?php esc_attr_e( 'top-section', 'wpbot' ); ?> ">
1432 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1433 <div class="<?php esc_attr_e( 'col-sm-12', 'wpbot' ); ?> ">
1434 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1435 <?php esc_html_e('WPBot Themes', 'wpbot'); ?>
1436 </h4>
1437 </div>
1438 </div>
1439 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1440 <div class="<?php esc_attr_e( 'col-sm-3', 'wpbot' ); ?> ">
1441 <label for="<?php esc_attr_e( 'qcld_wb_chatbot_theme_0', 'wpbot' ); ?>"> <img class="<?php esc_attr_e( 'thumbnail theme_prev', 'wpbot' ); ?>"
1442 src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>templates/template-00.JPG"
1443 alt="Theme Basic', 'wpbot' ); ?> ">
1444 <input id="<?php esc_attr_e( 'qcld_wb_chatbot_theme_0', 'wpbot' ); ?>" type="radio"
1445 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-00' ? esc_attr('checked' ): ''); ?>
1446 value="<?php esc_attr_e( 'template-00', 'wpbot' ); ?>">
1447 <?php esc_html_e('Theme Basic', 'wpbot'); ?>
1448 </label>
1449 </div>
1450 <div class="<?php esc_attr_e( 'col-sm-3', 'wpbot' ); ?> ">
1451 <label for="<?php esc_attr_e( 'qcld_wb_chatbot_theme_1', 'wpbot' ); ?>"> <img class="<?php esc_attr_e( 'thumbnail theme_prev', 'wpbot' ); ?>"
1452 src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>templates/template-01.JPG"
1453 alt="Theme Basic', 'wpbot' ); ?> ">
1454 <input id="<?php esc_attr_e( 'qcld_wb_chatbot_theme_1', 'wpbot' ); ?>" type="radio"
1455 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-01' ? esc_attr('checked' ): ''); ?>
1456 value="<?php esc_attr_e( 'template-01', 'wpbot' ); ?>">
1457 <?php esc_html_e('Theme One', 'wpbot'); ?>
1458 </label>
1459 </div>
1460 <div class="<?php esc_attr_e( 'col-sm-6', 'wpbot' ); ?> ">
1461 <label for="<?php esc_attr_e( 'qcld_wb_chatbot_theme_horizontal', 'wpbot' ); ?>"> <img class="<?php esc_attr_e( 'thumbnail theme_prev', 'wpbot' ); ?>"
1462 src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>templates/horizontal.png"
1463 alt="Theme horizontal', 'wpbot' ); ?> ">
1464 <input id="<?php esc_attr_e( 'qcld_wb_chatbot_theme_horizontal', 'wpbot' ); ?>" type="radio"
1465 name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-horizontal' ? esc_attr('checked' ): ''); ?>
1466 value="<?php esc_attr_e( 'template-horizontal', 'wpbot' ); ?>">
1467 <?php esc_html_e('Theme Horizontal', 'wpbot'); ?>
1468 </label>
1469 </div>
1470 </div>
1471 </div>
1472 </div>
1473
1474
1475 <div id="<?php esc_attr_e( 'wp-chatbot-custom-color-options', 'wpbot' ); ?>" class="<?php esc_attr_e( 'tab-pane fade', 'wpbot' ); ?>">
1476 <div class="<?php esc_attr_e( 'top-section', 'wpbot' ); ?>">
1477 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?>">
1478
1479 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1480 <div class="cxsc-settings-blocks cxsc-settings-blocks-style">
1481 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?>">
1482 <?php esc_html_e('Custom Style Options', 'wpbot'); ?>
1483 </h4>
1484 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1485 <input value="1" id="<?php esc_attr_e( 'enable_wp_chatbot_custom_color', 'wpbot' ); ?>" type="checkbox"
1486 name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>>
1487 <label for="<?php esc_attr_e( 'enable_wp_chatbot_custom_color', 'wpbot' ); ?>">
1488 <?php esc_html_e('Enable Style Colors ', 'wpbot'); ?>
1489 </label>
1490 </div>
1491 </div>
1492 </div>
1493 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1494 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1495 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1496 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1497 <?php esc_html_e('Text Color.', 'wpbot'); ?>
1498 </h4>
1499 <input id="<?php esc_attr_e( 'wp_chatbot_text_color', 'wpbot' ); ?>" type="text"
1500 name="wp_chatbot_text_color"
1501 value="<?php echo esc_attr((get_option('wp_chatbot_text_color') != '' ? get_option('wp_chatbot_text_color') : '#37424c')); ?>"/>
1502 </div>
1503 </div>
1504 </div>
1505 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1506 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1507 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1508 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1509 <?php esc_html_e('Link Color.', 'wpbot'); ?>
1510 </h4>
1511 <input id="<?php esc_attr_e( 'wp_chatbot_link_color', 'wpbot' ); ?>" type="text"
1512 name="wp_chatbot_link_color"
1513 value="<?php echo esc_attr((get_option('wp_chatbot_link_color') != '' ? get_option('wp_chatbot_link_color') : '#e2cc1f')); ?>"/>
1514 </div>
1515 </div>
1516 </div>
1517 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1518 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1519 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1520 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1521 <?php esc_html_e('Link Hover Color.', 'wpbot'); ?>
1522 </h4>
1523 <input id="<?php esc_attr_e( 'wp_chatbot_link_hover_color', 'wpbot' ); ?>" type="text"
1524 name="wp_chatbot_link_hover_color"
1525 value="<?php echo esc_attr((get_option('wp_chatbot_link_hover_color') != '' ? get_option('wp_chatbot_link_hover_color') : '#734006')); ?>"/>
1526 </div>
1527 </div>
1528 </div>
1529 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1530 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1531 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1532 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1533 <?php esc_html_e('Bot Message Background Color.', 'wpbot'); ?>
1534 </h4>
1535 <input id="<?php esc_attr_e( 'wp_chatbot_bot_msg_bg_color', 'wpbot' ); ?>" type="text"
1536 name="wp_chatbot_bot_msg_bg_color"
1537 value="<?php echo esc_attr((get_option('wp_chatbot_bot_msg_bg_color') != '' ? get_option('wp_chatbot_bot_msg_bg_color'): '#1f8ceb')) ; ?>"/>
1538 </div>
1539 </div>
1540 </div>
1541 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1542 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1543 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1544 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1545 <?php esc_html_e('Bot Message Text Color.', 'wpbot'); ?>
1546 </h4>
1547 <input id="<?php esc_attr_e( 'wp_chatbot_bot_msg_text_color', 'wpbot' ); ?>" type="text"
1548 name="wp_chatbot_bot_msg_text_color"
1549 value="<?php echo esc_attr((get_option('c') != '' ? get_option('wp_chatbot_bot_msg_text_color') : '#ffffff')); ?>"/>
1550 </div>
1551 </div>
1552 </div>
1553 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1554 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1555 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1556 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1557 <?php esc_html_e('User Message Background Color.', 'wpbot'); ?>
1558 </h4>
1559 <input id="<?php esc_attr_e( 'wp_chatbot_user_msg_bg_color', 'wpbot' ); ?>" type="text"
1560 name="wp_chatbot_user_msg_bg_color"
1561 value="<?php echo esc_attr((get_option('wp_chatbot_user_msg_bg_color') != '' ? get_option('wp_chatbot_user_msg_bg_color') : '#ffffff') ); ?>"/>
1562 </div>
1563 </div>
1564 </div>
1565 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1566 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1567 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1568 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1569 <?php esc_html_e('User Message Text Color.', 'wpbot'); ?>
1570 </h4>
1571 <input id="<?php esc_attr_e( 'wp_chatbot_user_msg_text_color', 'wpbot' ); ?>" type="text"
1572 name="wp_chatbot_user_msg_text_color"
1573 value="<?php echo esc_attr((get_option('wp_chatbot_user_msg_text_color') != '' ? get_option('wp_chatbot_user_msg_text_color') : '#000000')); ?>"/>
1574 </div>
1575 </div>
1576 </div>
1577 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1578 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1579 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1580 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1581 <?php esc_html_e('Buttons Background Color.', 'wpbot'); ?>
1582 </h4>
1583 <input id="<?php esc_attr_e( 'wp_chatbot_buttons_bg_color', 'wpbot' ); ?>" type="text"
1584 name="wp_chatbot_buttons_bg_color"
1585 value="<?php echo esc_attr((get_option('wp_chatbot_buttons_bg_color') != '' ?get_option('wp_chatbot_buttons_bg_color'): '#1f8ceb')) ; ?>"/>
1586 </div>
1587 </div>
1588 </div>
1589 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1590 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1591 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1592 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1593 <?php esc_html_e('Buttons Hover Background Color.', 'wpbot'); ?>
1594 </h4>
1595 <input id="<?php esc_attr_e( 'wp_chatbot_buttons_bg_color', 'wpbot' ); ?>" type="text"
1596 name="wp_chatbot_buttons_bg_color_hover"
1597 value="<?php echo esc_attr((get_option('wp_chatbot_buttons_bg_color_hover') != '' ? get_option('wp_chatbot_buttons_bg_color_hover') : '#1f8ceb')); ?>"/>
1598 </div>
1599 </div>
1600 </div>
1601 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1602 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1603 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1604 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1605 <?php esc_html_e('Buttons Text Color.', 'wpbot'); ?>
1606 </h4>
1607 <input id="<?php esc_attr_e( 'wp_chatbot_buttons_text_color', 'wpbot' ); ?>" type="text"
1608 name="wp_chatbot_buttons_text_color"
1609 value="<?php echo esc_attr((get_option('wp_chatbot_buttons_text_color') != '' ? get_option('wp_chatbot_buttons_text_color') : '#ffffff')); ?>"/>
1610 </div>
1611 </div>
1612 </div>
1613 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1614 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1615 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1616 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1617 <?php esc_html_e('Buttons Text Color Hover.', 'wpbot'); ?>
1618 </h4>
1619 <input id="<?php esc_attr_e( 'wp_chatbot_buttons_text_color', 'wpbot' ); ?>" type="text"
1620 name="wp_chatbot_buttons_text_color_hover"
1621 value="<?php echo esc_attr((get_option('wp_chatbot_buttons_text_color_hover') != '' ? get_option('wp_chatbot_buttons_text_color_hover') : '#ffffff')); ?>"/>
1622 </div>
1623 </div>
1624 </div>
1625 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1626 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1627 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1628 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1629 <?php esc_html_e('Header background Color', 'wpbot'); ?>
1630 </h4>
1631 <input id="<?php esc_attr_e( 'wp_chatbot_header_background_color', 'wpbot' ); ?>" type="text"
1632 name="wp_chatbot_header_background_color"
1633 value="<?php esc_html_e((get_option('wp_chatbot_header_background_color') != '' ? get_option('wp_chatbot_header_background_color'): '#ffffff'), 'wpbot' ) ; ?>"/>
1634 </div>
1635 </div>
1636 </div>
1637 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1638 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1639 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1640 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1641 <?php esc_html_e('Theme Primary Color', 'wpbot'); ?>
1642 </h4>
1643 <input id="<?php esc_attr_e( 'wp_chatbot_theme_primary_color', 'wpbot' ); ?>" type="text"
1644 name="wp_chatbot_theme_primary_color"
1645 value="<?php echo esc_attr((get_option('wp_chatbot_theme_primary_color') != '' ? get_option('wp_chatbot_theme_primary_color') : '#ffffff')); ?>"/>
1646 </div>
1647 </div>
1648 </div>
1649 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1650 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1651 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
1652 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1653 <?php esc_html_e('Theme Secondary Color', 'wpbot'); ?>
1654 </h4>
1655 <input id="<?php esc_attr_e( 'wp_chatbot_theme_secondary_color', 'wpbot' ); ?>" type="text"
1656 name="wp_chatbot_theme_secondary_color"
1657 value="<?php echo esc_attr((get_option('wp_chatbot_theme_secondary_color') != '' ? get_option('wp_chatbot_theme_secondary_color') : '#ffffff')); ?>"/>
1658 </div>
1659 </div>
1660 </div>
1661 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1662 <div class="cxsc-settings-blocks">
1663 <div class="form-group">
1664 <h4 class="qc-opt-title">
1665 <?php esc_html_e('Font size', 'wpbot'); ?>
1666 </h4>
1667 <input id="wp_chatbot_font_size" type="number"
1668 name="wp_chatbot_font_size"
1669 value="<?php echo esc_attr((get_option('wp_chatbot_font_size') != '' ? get_option('wp_chatbot_font_size'): '16')) ; ?>"/>
1670 </div>
1671 </div>
1672 </div>
1673 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1674 <div class="cxsc-settings-blocks">
1675 <div class="form-group">
1676 <h4 class="qc-opt-title">
1677 <?php
1678 esc_html_e('User message Font family ', 'wpbot');
1679 $user_font = get_option('wp_chat_user_font_family') != '' ? get_option('wp_chat_user_font_family') : '';
1680 $user_font_family = str_replace("\\", "",$user_font);
1681 ?>
1682 </h4>
1683 <input id="wp_chatbot_user_font" type="text" name="wp_chatbot_user_font"
1684 value="<?php echo esc_attr((get_option('wp_chatbot_user_font') != '' ? get_option('wp_chatbot_user_font') : ''));?>">
1685 <input id="wp_chat_user_font_family" type="hidden"
1686 name="wp_chat_user_font_family"
1687 />
1688 </div>
1689 </div>
1690 </div>
1691 <div class="<?php esc_attr_e( 'col-xs-6', 'wpbot' ); ?>">
1692 <div class="cxsc-settings-blocks">
1693 <div class="form-group">
1694 <h4 class="qc-opt-title">
1695 <?php
1696 esc_html_e('Bot message Font family ', 'wpbot');
1697 $bot_font = get_option('wp_chat_bot_font_family') != '' ? esc_html__(get_option('wp_chat_bot_font_family'), 'wpbot' ) : '';
1698 $bot_font_family = str_replace("\\", "",$bot_font);
1699 ?>
1700 </h4>
1701 <input id="wp_chatbot_bot_font" type="text" name="wp_chatbot_bot_font"
1702 value="<?php echo esc_attr((get_option('wp_chatbot_bot_font') != '' ? get_option('wp_chatbot_bot_font') : ''));?>">
1703 <input id="wp_chat_bot_font_family" type="hidden"
1704 name="wp_chat_bot_font_family"
1705 />
1706 </div>
1707 </div>
1708 </div>
1709
1710 <?php
1711 $custom_js = "jQuery(function ($) {
1712 $('#wp_chat_user_font_family').val(JSON.stringify(". esc_attr($user_font_family) ."));
1713 $('#wp_chat_bot_font_family').val(JSON.stringify(". esc_attr($bot_font_family)."));
1714 $('#wp_chatbot_user_font')
1715 .fontpicker()
1716 .on('change', function() {
1717 var tmp = this.value.split(':'),
1718 family = tmp[0],
1719 variant = tmp[1] || '400',
1720 weight = parseInt(variant,10),
1721 italic = /i$/.test(variant);
1722 var css = {
1723 fontFamily:family,
1724 fontWeight: weight,
1725 fontStyle: italic ? 'italic' : 'normal'
1726 };
1727 $('#wp_chat_user_font_family').val(JSON.stringify(css));
1728 });
1729 $('#wp_chatbot_bot_font')
1730 .fontpicker()
1731 .on('change', function() {
1732 var tmp = this.value.split(':'),
1733 family = tmp[0],
1734 variant = tmp[1] || '400',
1735 weight = parseInt(variant,10),
1736 italic = /i$/.test(variant);
1737 // Set selected font on body
1738 var css = {
1739 fontFamily:family,
1740 fontWeight: weight,
1741 fontStyle: italic ? 'italic' : 'normal'
1742 };
1743 $('#wp_chat_bot_font_family').val(JSON.stringify(css));
1744 });
1745 });
1746 ";
1747 wp_add_inline_script('qcld-wp-chatbot-admin-js', $custom_js );
1748
1749 ?>
1750 </div>
1751 </div>
1752 </div>
1753 </div>
1754 </section>
1755
1756 <section id="<?php esc_attr_e( 'section-flip-4', 'wpbot' ); ?> ">
1757 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1758 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1759 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic', 'wpbot' ); ?>" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1760 <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'); ?>
1761 </div> -->
1762 </div>
1763 </div>
1764 <div class="<?php esc_attr_e( 'top-section', 'wpbot' ); ?> ">
1765 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1766 <?php esc_html_e('Build FAQ Query and Answers', 'wpbot'); ?>
1767 </h4>
1768 <div class="<?php esc_attr_e( 'block-inner ui-sortable', 'wpbot' ); ?>" id="<?php esc_attr_e( 'wp-chatbot-support-builder', 'wpbot' ); ?> ">
1769 <?php
1770 $support_quereis=$this->qcld_wb_chatbot_str_replace(maybe_unserialize( get_option('support_query')));
1771 $support_ans=$this->qcld_wb_chatbot_str_replace(maybe_unserialize( get_option('support_ans')));
1772 if (($support_quereis[0] != '') && ($support_ans[0] != '') && !empty($support_ans[0]) && (count($support_ans) == count($support_quereis))) {
1773
1774 $query_ans_counter=0;
1775 foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
1776 ?>
1777 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> "> <span class="<?php esc_attr_e( 'pull-right', 'wpbot' ); ?> "> </span>
1778 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1779 <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>
1780
1781 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1782 <p class="<?php esc_attr_e( 'qc-opt-dcs-font', 'wpbot' ); ?> ">
1783 <?php esc_html_e('FAQ query ', 'wpbot'); ?>
1784 </p>
1785 <input type="text" class="<?php esc_attr_e( 'form-control', 'wpbot'); ?>" name="support_query[]"
1786 placeholder="<?php esc_html_e('FAQ query ', 'wpbot'); ?>" value="<?php esc_attr_e( $query, 'wpbot' ); ?> ">
1787 <br>
1788 <p class="<?php esc_attr_e( 'qc-opt-dcs-font', 'wpbot' ); ?> ">
1789 <?php esc_html_e('FAQ answer', 'wpbot'); ?>
1790 </p>
1791 <?php
1792 $anss = is_string( $ans ) ? $ans : '';
1793 $answer = !is_array($ans) ? stripcslashes($ans) : $anss;
1794
1795 wp_editor(html_entity_decode($answer), 'support_ans'.'_'.$query_ans_counter, array('textarea_name' =>
1796 'support_ans[]',
1797 'textarea_rows' => 20,
1798 'editor_height' => 100,
1799 'disabled' => 'disabled',
1800 'media_buttons' => false,
1801 'tinymce' => array(
1802 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1803 ));
1804
1805 ?>
1806 </div>
1807 </div>
1808 </div>
1809 <?php
1810 $query_ans_counter++;
1811 }
1812 //}
1813 } else {
1814 ?>
1815 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> "> <span class="<?php esc_attr_e( 'pull-right', 'wpbot' ); ?> "> </span>
1816 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1817 <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>
1818
1819 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1820 <p class="<?php esc_attr_e( 'qc-opt-dcs-font', 'wpbot' ); ?> ">
1821 <?php esc_html_e('Support query', 'wpbot'); ?>
1822 </p>
1823 <input type="text" class="<?php esc_attr_e( 'form-control', 'wpbot' ); ?>" name="support_query[]"
1824 placeholder="<?php esc_html_e('Support query ', 'wpbot'); ?> ">
1825 <br>
1826 <p class="<?php esc_attr_e( 'qc-opt-dcs-font', 'wpbot' ); ?> "><strong>
1827 <?php esc_html_e('Support answer', 'wpbot'); ?>
1828 </strong></p>
1829 <?php
1830 wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
1831 'support_ans[]',
1832 'textarea_rows' => 20,
1833 'editor_height' => 100,
1834 'disabled' => 'disabled',
1835 'media_buttons' => false,
1836 'tinymce' => array(
1837 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
1838 ));
1839 ?>
1840 </div>
1841 <br>
1842 </div>
1843 </div>
1844 <?php
1845 }
1846 ?>
1847 </div>
1848 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1849 <div class="<?php esc_attr_e( 'col-sm-6 text-left', 'wpbot' ); ?> "></div>
1850 <div class="<?php esc_attr_e( 'col-sm-6 text-right', 'wpbot' ); ?> ">
1851 <button class="<?php esc_attr_e( 'btn btn-success btn-sm', 'wpbot' ); ?>" type="button"
1852 id="<?php esc_attr_e( 'add-more-support-query', 'wpbot' ); ?>"><i
1853 class="<?php esc_attr_e( 'fa fa-plus" aria-hidden="true', 'wpbot' ); ?>"></i>
1854 <?php esc_html_e('Add More Questions and Answers', 'wpbot'); ?>
1855 </button>
1856 </div>
1857 </div>
1858 </div>
1859 </section>
1860
1861
1862 <section id="<?php esc_attr_e( 'section-flip-6', 'wpbot' ); ?> ">
1863 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic', 'wpbot' ); ?>" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1864 <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'); ?>
1865 </div> -->
1866 <?php
1867 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');
1868 ?>
1869 <div class="<?php esc_attr_e( 'top-section', 'wpbot' ); ?> ">
1870 <div class="<?php esc_attr_e( 'notification-block-inner', 'wpbot' ); ?> ">
1871 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1872 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1873
1874 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1875 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1876 <h3><?php echo esc_attr('Predefined Intents'); ?></h3>
1877 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1878 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1879 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1880 <?php esc_html_e('Call Me', 'wpbot'); ?>
1881 </h4>
1882 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1883 <input value="<?php echo esc_attr('1'); ?>" id="<?php esc_attr_e( 'disable_wp_chatbot_call_gen', 'wpbot' ); ?>" type="checkbox"
1884 name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
1885 <label for="<?php esc_attr_e( 'disable_wp_chatbot_call_gen', 'wpbot' ); ?>">
1886 <?php esc_html_e('Disable Call Me feature and button on Start Menu', 'wpbot'); ?>
1887 </label>
1888 </div>
1889 </div>
1890 </div>
1891 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?>" style="margin-bottom:0px">
1892 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1893 <?php esc_html_e('Button Label', 'wpbot'); ?>
1894 </h4>
1895 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1896 name="qlcd_wp_chatbot_support_phone"
1897 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!')); ?> ">
1898 </div>
1899 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1900 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1901 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1902 <?php esc_html_e('Email', 'wpbot'); ?>
1903 </h4>
1904 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?>">
1905 <input value="<?php echo esc_attr('1' ); ?>" id="<?php esc_attr_e( 'disable_wp_chatbot_feedback', 'wpbot' ); ?>" type="checkbox"
1906 name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'wpbot' ); ?>>
1907 <label for="<?php esc_attr_e( 'disable_wp_chatbot_feedback', 'wpbot' ); ?>">
1908 <?php esc_html_e('Disable Email feature and button on Start Menu', 'wpbot'); ?>
1909 </label>
1910 </div>
1911 </div>
1912 </div>
1913 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> " style="margin-bottom:0px">
1914 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1915 <?php esc_html_e('Button Label', 'wpbot'); ?>
1916 </h4>
1917 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1918 name="qlcd_wp_chatbot_support_email"
1919 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email')); ?> ">
1920 </div>
1921 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1922 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1923 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1924 <?php esc_html_e('FAQ', 'wpbot'); ?>
1925 </h4>
1926 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1927 <input value="<?php echo esc_attr('1' ); ?>" id="<?php esc_attr_e( 'disable_wp_chatbot_faq', 'wpbot' ); ?>" type="checkbox"
1928 name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
1929 <label for="<?php esc_attr_e( 'disable_wp_chatbot_faq', 'wpbot' ); ?>">
1930 <?php esc_html_e('Disable FAQ feature and button on Start Menu', 'wpbot'); ?>
1931 </label>
1932 </div>
1933 </div>
1934 </div>
1935 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?>" style="margin-bottom:0px ">
1936 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1937 <?php esc_html_e('Button Label', 'wpbot'); ?>
1938 </h4>
1939 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1940 name="qlcd_wp_chatbot_wildcard_support"
1941 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_wildcard_support') != '' ? get_option('qlcd_wp_chatbot_wildcard_support') : 'FAQ')); ?> ">
1942 </div>
1943 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
1944 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
1945 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1946 <?php esc_html_e('Site Search', 'wpbot'); ?>
1947 </h4>
1948 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1949 <input value="<?php echo esc_attr('1' ); ?>" id="<?php esc_attr_e( 'disable_wp_chatbot_site_search', 'wpbot' ); ?>" type="checkbox"
1950 name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
1951 <label for="<?php esc_attr_e( 'disable_wp_chatbot_site_search', 'wpbot' ); ?>">
1952 <?php esc_html_e('Disable site search feature and button on Start Menu', 'wpbot'); ?>
1953 </label>
1954 </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>
1955 </div>
1956 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
1957 <input value="<?php echo esc_attr('1' ); ?>" id="<?php esc_attr_e( 'enable_wp_chatbot_post_content', 'wpbot' ); ?>" type="checkbox"
1958 name="enable_wp_chatbot_post_content" <?php echo(get_option('enable_wp_chatbot_post_content') == 1 ? esc_attr('checked' ): ''); ?>>
1959 <label for="<?php esc_attr_e( 'enable_wp_chatbot_post_content', 'wpbot' ); ?>">
1960 <?php esc_html_e('Enable Searching Post Contents as well', 'wpbot'); ?>
1961 </label>
1962 </div>
1963 </div>
1964 </div>
1965 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?>" style="margin-bottom:0px ">
1966 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
1967 <?php esc_html_e('Button Label', 'wpbot'); ?>
1968 </h4>
1969 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
1970 name="qlcd_wp_chatbot_wildcard_site_search"
1971 value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search')); ?> ">
1972 </div>
1973 </div>
1974 </div>
1975 <div class="<?php esc_attr_e( 'qc_menu_setup_area', 'wpbot' ); ?> ">
1976 <h3><?php esc_html_e('Menu Sorting & Customization Area', 'wpbot'); ?></h3>
1977 <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>
1978 <p><?php esc_html_e('To adjust the Active Menu ordering just drag it up or down.', 'wpbot'); ?><br>
1979 <?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>
1980 <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>
1981 <div class="<?php esc_attr_e( 'qc_menu_area', 'wpbot' ); ?> ">
1982 <h4><?php esc_html_e( 'Acitve Menu', 'wpbot'); ?></h4>
1983 <div class="<?php esc_attr_e( 'qc_menu_area_container', 'wpbot' ); ?>" id="<?php esc_attr_e( 'qc_menu_area', 'wpbot' ); ?>">
1984 <?php
1985 if(get_option('qc_wpbot_menu_order')!=''):
1986 if( is_string( get_option('qc_wpbot_menu_order') ) ):
1987 echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
1988 else:
1989 endif;
1990 ?>
1991
1992
1993 <?php endif; ?>
1994 </div>
1995 </div>
1996 <div class="<?php esc_attr_e( 'qc_menu_list_area', 'wpbot' ); ?> ">
1997 <h4><?php esc_html_e('Available Menu', 'wpbot'); ?></h4>
1998 <div class="<?php esc_attr_e( 'qc_menu_list_container', 'wpbot' ); ?>">
1999 <p><?php esc_html_e('Predefined Intents', 'wpbot'); ?></p>
2000 <ul>
2001 <li>
2002 <?php if(get_option('disable_wp_chatbot_faq')==''): ?>
2003 <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>
2004 <?php endif; ?>
2005 </li>
2006 <li>
2007 <?php if(get_option('disable_wp_chatbot_site_search')==''): ?>
2008 <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>
2009 <?php endif; ?>
2010 </li>
2011 <li>
2012 <?php if(get_option('enable_wp_chatbot_messenger')=='1'): ?>
2013 <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>
2014 <?php endif; ?>
2015 </li>
2016 <li>
2017 <?php if(get_option('enable_wp_chatbot_whats')=='1'): ?>
2018 <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>
2019 <?php endif; ?>
2020 </li>
2021 <li>
2022 <?php if(get_option('disable_wp_chatbot_feedback')==''): ?>
2023 <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>
2024 <?php endif; ?>
2025 </li>
2026 <li>
2027 <?php if(get_option('disable_wp_chatbot_call_gen')==''): ?>
2028 <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>
2029 <?php endif; ?>
2030 </li>
2031 </ul>
2032 <?php
2033 if(class_exists('Qcformbuilder_Forms_Admin')){
2034
2035 global $wpdb;
2036
2037 //To Do: Need to use prepared statement
2038
2039 $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); //DB Call OK, No Caching OK
2040 if(!empty($results)){
2041 ?>
2042 <p><?php esc_html_e('Conversational Form', 'wpbot'); ?></p>
2043 <ul>
2044 <?php
2045 foreach($results as $result){
2046 $form = maybe_unserialize($result->config);
2047 ?>
2048 <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>
2049 <?php
2050 }
2051 ?>
2052 </ul>
2053 <?php
2054 }
2055 }
2056 ?>
2057 </div>
2058 </div>
2059 </div>
2060 <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'))); ?>' />
2061 </div>
2062 </div>
2063 </div>
2064 </div>
2065 </section>
2066 <section id="<?php esc_attr_e( 'section-flip-7', 'wpbot' ); ?> ">
2067 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic', 'wpbot' ); ?>" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2068 <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'); ?>
2069 </div> -->
2070 <div class="<?php esc_attr_e( 'top-section', 'wpbot' ); ?> ">
2071 <div class="<?php esc_attr_e( 'wp-chatbot-language-center-summmery', 'wpbot' ); ?> ">
2072 <p>
2073 <?php esc_html_e('DialogFlow as Artificial Intelligences Engine for wpwBot', 'wpbot'); ?>
2074 </p>
2075 </div>
2076
2077 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
2078 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
2079 <div class="wrapTexttop-lite">
2080 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> "><?php esc_html_e('Enable DialogFlow as AI Engine to Detect Intent', 'wpbot'); ?> </h4>
2081 <div class="alert alert-warning" role="alert">
2082 <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>
2083 <h5 style="color: #f00;font-weight:900 "><?php esc_html_e(' Enable either DialogFlow or OpenAI', 'wpbot'); ?> </h5>
2084 </div>
2085 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
2086 <input value="<?php esc_html_e('1', 'wpbot'); ?>" id="<?php esc_attr_e( 'enable_wp_chatbot_dailogflow', 'wpbot' ); ?>" type="checkbox"
2087 name="enable_wp_chatbot_dailogflow" <?php echo(get_option('enable_wp_chatbot_dailogflow') == 1 ? esc_attr('checked' ): ''); ?>>
2088 <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>
2089
2090 </div>
2091 </div>
2092 </div>
2093
2094 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?>" id="<?php esc_attr_e( 'wp-chatbot-dialflow-section', 'wpbot' ); ?>">
2095 <p><?php esc_html_e('Log in to DialogFlow Console from', 'wpbot'); ?>
2096 <a class="<?php esc_attr_e( 'wpbot_df_instruction', 'wpbot' ); ?>" href="<?php echo esc_url('https://dialogflow.com/', 'wpbot'); ?>"
2097 target="_blank">
2098 <?php esc_html_e('Here', 'wpbot'); ?></a>
2099 <?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>
2100 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> "><?php esc_html_e('DialogFlow API Version', 'wpbot'); ?></h4>
2101 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
2102 <label class="<?php esc_attr_e( 'radio-inline', 'wpbot' ); ?> ">
2103 <input id="<?php esc_attr_e( 'wp-chatbot-df-api', 'wpbot' ); ?>" type="radio"
2104 name="wp_chatbot_df_api"
2105 value="<?php esc_html_e('v2', 'wpbot'); ?>" checked>
2106 <?php esc_html_e('Dialogflow API V2', 'wpbot'); ?> </label>
2107 </div>
2108 <div id="<?php esc_attr_e( 'wp-chatbot-df-section-v2', 'wpbot' ); ?>" style="display:block">
2109 <!-- Dialogflow V2 Configuration -->
2110
2111 <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')): ?>
2112 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> "> <br>
2113 <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>
2114 <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>
2115 <div class="<?php esc_attr_e( 'qcld-wpbot-gcdownload-area', 'wpbot' ); ?> ">
2116 <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>
2117 <?php
2118 if(!is_writable(QCLD_wpCHATBOT_GC_ROOT)){
2119 echo '<span style="color:red;font-size: 12px; "><b>'.esc_html('wp-content').' </b> '.esc_html('folder is not writable.').'</span>';
2120 }
2121 ?>
2122 <br>
2123 <br>
2124 <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>
2125 <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>
2126 <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>
2127 <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>
2128 <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>
2129 <div class="<?php esc_attr_e( 'qcld_wpbot_download_statuses', 'wpbot' ); ?> "> </div>
2130 </div>
2131 <br>
2132 </div>
2133 <?php else: ?>
2134 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
2135 <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>
2136 </div>
2137 <?php endif; ?>
2138 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
2139 <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>
2140 </div>
2141 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
2142 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> "><?php esc_html_e('DialogFlow Project ID', 'wpbot'); ?></h4>
2143 <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>
2144 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
2145 name="qlcd_wp_chatbot_dialogflow_project_id"
2146 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'); ?> ">
2147 </div>
2148 <?php
2149
2150 $placeholderPrivatekey = '{
2151 "type": "service_account",
2152 "project_id": "PLACEYOUROWNID",
2153 "private_key_id": "31e300128..........c48",
2154 "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",
2155 "client_email": "dialogflow-evysjn@wpbotpro.iam.gserviceaccount.com",
2156 "client_id": "1026.....032997",
2157 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
2158 "token_uri": "https://oauth2.googleapis.com/token",
2159 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
2160 "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dialogflow-evysjn%40wpbotpro.iam.gserviceaccount.com"
2161 }';
2162
2163 ?>
2164 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
2165 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> "><?php esc_html_e('Private Key', 'wpbot'); ?></h4>
2166 <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>
2167 <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>
2168 </div>
2169
2170 <!-- End Dialogflow V2 Configuration -->
2171 </div>
2172 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
2173 <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>
2174 <p style="color:red "><?php esc_html_e('*Save settings before pressing Test Dialogflow Connection', 'wpbot'); ?><br>
2175 <?php esc_html_e('*You must have owner permission for the service account your are using in Dialogflow agent.', 'wpbot'); ?></p>
2176 <div class="<?php esc_attr_e( 'cxsc-settings-blocks', 'wpbot' ); ?> ">
2177 <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>
2178 <div class="<?php esc_attr_e( 'qcwp_df_status', 'wpbot' ); ?> "></div>
2179 </div>
2180 </div>
2181 <br>
2182 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
2183 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> ">
2184 <?php esc_html_e('DialogFlow Default reply', 'wpbot'); ?>
2185 </h4>
2186 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
2187 name="qlcd_wp_chatbot_dialogflow_defualt_reply"
2188 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'); ?> ">
2189 </div>
2190 <div class="<?php esc_attr_e( 'form-group', 'wpbot' ); ?> ">
2191 <h4 class="<?php esc_attr_e( 'qc-opt-title', 'wpbot' ); ?> "><?php esc_html_e('DialogFlow Agent Language (Ex: en)', 'wpbot'); ?></h4>
2192 <input type="text" class="<?php esc_attr_e( 'form-control qc-opt-dcs-font', 'wpbot' ); ?>"
2193 name="qlcd_wp_chatbot_dialogflow_agent_language"
2194 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'); ?>">
2195 </div>
2196 </div>
2197 </div>
2198 </div>
2199 </section>
2200 <section id="<?php esc_attr_e( 'section-flip-7', 'wpbot' ); ?> ">
2201 <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic', 'wpbot' ); ?>" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2202 <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'); ?>
2203 </div> -->
2204 <div class="<?php esc_attr_e( 'top-section', 'wpbot' ); ?> ">
2205 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
2206 <div class="<?php esc_attr_e( 'col-xs-12', 'wpbot' ); ?> ">
2207 <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>
2208 <textarea name="wp_chatbot_custom_css"
2209 class="<?php esc_attr_e( 'form-control wp-chatbot-custom-css', 'wpbot' ); ?>"
2210 cols="10"
2211 rows="16"><?php echo esc_textarea(get_option('wp_chatbot_custom_css')); ?></textarea>
2212 </div>
2213 </div>
2214 <!-- row-->
2215 </div>
2216 </section>
2217
2218 <section id="<?php esc_attr_e( 'section-flip-9', 'wpbot' ); ?> ">
2219
2220 <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>
2221 <?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>
2222
2223 <?php include_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '/qcld-recommendbot-plugin.php'; ?>
2224 </section>
2225 </div>
2226 </div>
2227 <footer class="<?php esc_attr_e( 'wp-chatbot-admin-footer', 'wpbot' ); ?> ">
2228 <div class="<?php esc_attr_e( 'row', 'wpbot' ); ?> ">
2229
2230 <div class="<?php esc_attr_e( 'text-right col-sm-3 col-sm-offset-9', 'wpbot' ); ?> ">
2231 <input type="submit" class="<?php esc_attr_e( 'btn btn-primary submit-button', 'wpbot' ); ?>" name="submit"
2232 id="<?php esc_attr_e( 'submit', 'wpbot' ); ?>" value="<?php esc_html_e('Save Settings', 'wpbot'); ?>"/>
2233 </div>
2234 </div>
2235 <!-- row-->
2236 </footer>
2237 </section>
2238 </div>
2239 <?php wp_nonce_field('wp_chatbot'); ?>
2240 </form>