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

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