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

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