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

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