PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 6.6.2
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v6.6.2
8.7.8 8.7.7 8.7.6 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 All 534 releases
chatbot / admin_ui.php

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

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