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

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