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

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