PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, AI Services / 5.6.6
WPBot – AI ChatBot for Live Support, Lead Generation, AI Services v5.6.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 8.5.2 8.5.0 8.4.9 All 531 releases
chatbot / admin_ui.php

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

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