| 1 |
<div class="wrap"> |
| 2 |
<h1 style="display:none"><?php _e('WPBot', 'wpchatbot'); ?> </h1> |
| 3 |
</div> |
| 4 |
<div class="wp-chatbot-wrap"> |
| 5 |
<div class="icon32"><br></div> |
| 6 |
<form action="<?php echo esc_attr($action); ?>" method="POST" id="wp-chatbot-admin-form" |
| 7 |
enctype="multipart/form-data"> |
| 8 |
<div class="container form-container"> |
| 9 |
<header class="wp-chatbot-admin-header"> |
| 10 |
<div class="row"> |
| 11 |
<div class="col-sm-6"> |
| 12 |
<h2><?php echo __('WPBot Control Panel', 'wpchatbot'); ?><?php echo get_option('wp_chatbot_index_meta'); ?></h2> |
| 13 |
</div> |
| 14 |
<div class="col-sm-6 text-right wp-chatbot-version"> |
| 15 |
<h3><?php _e('The Lite Version', 'wpchatbot'); ?></h3> |
| 16 |
<p><a target="_blank" href="https://www.quantumcloud.com/"><?php _e('WPBot is a project by Web Design Company QuantumCloud', 'wpchatbot'); ?></a></p> |
| 17 |
<p><a style="color: #b2ff20;" href="https://www.quantumcloud.com/products/chatbot-for-wordpress/" target="_blank">Upgrade To Pro</a></p> |
| 18 |
</div> |
| 19 |
</div> |
| 20 |
</header> |
| 21 |
<section class="wp-chatbot-tab-container-inner"> |
| 22 |
<div class="wp-chatbot-tabs wp-chatbot-tabs-style-flip"> |
| 23 |
<nav> |
| 24 |
<ul> |
| 25 |
<li tab-data="general"><a href="<?php echo esc_attr($action); ?>&tab=general"> |
| 26 |
<span class="wpwbot-admin-tab-icon"> |
| 27 |
<i class="fa fa-toggle-on"> </i> |
| 28 |
</span> |
| 29 |
<span class="wpwbot-admin-tab-name"> <?php _e('GENERAL SETTINGS', 'wpchatbot'); ?></span> |
| 30 |
</a></li> |
| 31 |
<li tab-data="themes"><a href="<?php echo esc_attr($action); ?>&tab=themes"> |
| 32 |
<span class="wpwbot-admin-tab-icon"> |
| 33 |
<i class="fa fa-gear faa-spin"></i> |
| 34 |
</span> |
| 35 |
<span class="wpwbot-admin-tab-name"> <?php _e('ICONS & THEMES', 'wpchatbot'); ?></span> |
| 36 |
</a></li> |
| 37 |
<li tab-data="support"><a href="<?php echo esc_attr($action); ?>&tab=support"> |
| 38 |
<span class="wpwbot-admin-tab-icon"> |
| 39 |
<i class="fa fa-life-ring"></i> |
| 40 |
</span> |
| 41 |
<span class="wpwbot-admin-tab-name"> <?php _e('FAQ Builder', 'wpchatbot'); ?></span> |
| 42 |
</a></li> |
| 43 |
<!--<li tab-data="notification"><a href="<?php echo esc_attr($action); ?>&tab=notification"> |
| 44 |
<span class="wpwbot-admin-tab-icon"> |
| 45 |
<i class="fa fa-bell-o"></i> |
| 46 |
</span> |
| 47 |
<span class="wpwbot-admin-tab-name"><?php _e('Notification Builder', 'wpchatbot'); ?></span> |
| 48 |
</a></li>--> |
| 49 |
<li tab-data="language"><a href="<?php echo esc_attr($action); ?>&tab=language"> |
| 50 |
<span class="wpwbot-admin-tab-icon"> |
| 51 |
<i class="fa fa-language"></i> |
| 52 |
</span> |
| 53 |
<span class="wpwbot-admin-tab-name"><?php _e('LANGUAGE CENTER', 'wpchatbot'); ?></span> |
| 54 |
</a></li> |
| 55 |
|
| 56 |
|
| 57 |
<!--<li tab-data="hours"><a href="<?php echo esc_attr($action); ?>&tab=hours"> |
| 58 |
<span class="wpwbot-admin-tab-icon"> |
| 59 |
<i class="fa fa-calendar"></i> |
| 60 |
</span> |
| 61 |
<span class="wpwbot-admin-tab-name"><?php _e('Bot Activity Hour', 'wpchatbot'); ?></span> |
| 62 |
</a></li>--> |
| 63 |
<li tab-data="ai"><a href="<?php echo esc_attr($action); ?>&tab=ai"> |
| 64 |
<span class="wpwbot-admin-tab-icon"> |
| 65 |
<i class="fa fa-500px"></i> |
| 66 |
</span> |
| 67 |
<span class="wpwbot-admin-tab-name"><?php _e('Artificial intelligence', 'wpchatbot'); ?></span> |
| 68 |
</a></li> |
| 69 |
<!--<li tab-data="app"><a href="<?php echo esc_attr($action); ?>&tab=app"> |
| 70 |
<span class="wpwbot-admin-tab-icon"> |
| 71 |
<i class="fa fa-mobile"></i> |
| 72 |
</span> |
| 73 |
<span class="wpwbot-admin-tab-name"><?php _e('MOBILE APP', 'wpchatbot'); ?></span> |
| 74 |
</a></li> |
| 75 |
<li tab-data="custom"><a href="<?php echo esc_attr($action); ?>&tab=custom"> |
| 76 |
<span class="wpwbot-admin-tab-icon"> |
| 77 |
<i class="fa fa-code"></i> |
| 78 |
</span> |
| 79 |
<span class="wpwbot-admin-tab-name"><?php _e('Custom CSS', 'wpchatbot'); ?> </span> |
| 80 |
</a></li>--> |
| 81 |
</ul> |
| 82 |
</nav> |
| 83 |
<div class="content-wrap"> |
| 84 |
<section id="section-flip-1"> |
| 85 |
<div class="top-section"> |
| 86 |
<!-- row--> |
| 87 |
<!--<div class="row"> |
| 88 |
<div class="col-xs-12"> |
| 89 |
<div class="cxsc-settings-blocks"> |
| 90 |
<div class="form-group"> |
| 91 |
<?php |
| 92 |
$url = get_site_url(); |
| 93 |
$url = parse_url($url); |
| 94 |
$domain = $url['host']; |
| 95 |
//$admin_email = "admin@" . $domain; |
| 96 |
$admin_email = get_option('admin_email'); |
| 97 |
?> |
| 98 |
<h4 class="qc-opt-title"><?php _e('Emails Will be Sent to', 'wpchatbot'); ?></h4> |
| 99 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 100 |
name="qlcd_wp_chatbot_admin_email" |
| 101 |
value="<?php echo(get_option('qlcd_wp_chatbot_admin_email') != '' ? get_option('qlcd_wp_chatbot_admin_email') : $admin_email); ?>"> |
| 102 |
</div> |
| 103 |
</div> |
| 104 |
|
| 105 |
<div class="cxsc-settings-blocks"> |
| 106 |
<h4 class="qc-opt-title"><?php _e('wpwBot Products Search Options', 'wpchatbot'); ?> </h4> |
| 107 |
<select class="form-control" id="wp-chatbot-search-option" |
| 108 |
name="qlcd_wp_chatbot_search_option"> |
| 109 |
<option |
| 110 |
value="standard" <?php if (get_option('qlcd_wp_chatbot_search_option') == 'standard') { |
| 111 |
echo 'selected'; |
| 112 |
} ?>><?php _e('Standard Search', 'wpchatbot'); ?> |
| 113 |
</option> |
| 114 |
<option |
| 115 |
value="advanced" <?php if (get_option('qlcd_wp_chatbot_search_option') == 'advanced') { |
| 116 |
echo 'selected'; |
| 117 |
} ?>><?php _e('Advanced Search', 'wpchatbot'); ?> |
| 118 |
</option> |
| 119 |
</select> |
| 120 |
<div id="wp-chatbot-standard-search"> |
| 121 |
<p class="qc-opt-title-font"> <?php _e('Use wpcommerce standard products search criteria.', 'wpchatbot'); ?> </p> |
| 122 |
</div> |
| 123 |
<div id="wp-chatbot-advanced-search"> |
| 124 |
<p class="qc-opt-title-font"> <?php _e('To Enable Title, Content, Excerpt,Categories,Tag and SKU Search', 'wpchatbot'); ?> <strong><?php _e(' Re-Index Products', 'wpchatbot'); ?></strong> <strong><?php _e('is required', 'wpchatbot'); ?> . |
| 125 |
</p> |
| 126 |
<div class="cxsc-settings-blocks"> |
| 127 |
<button type="button" class="btn btn-primary" |
| 128 |
id="qlcd_wp_chatbot_index"> <?php _e('Re-Index Products', 'wpchatbot'); ?> |
| 129 |
</button> |
| 130 |
<p><span id="qlcd_wp_chatbot_index_loader"></span> <span |
| 131 |
id="qlcd_wp_chatbot_index_process"></span> <span |
| 132 |
id="qlcd_wp_chatbot_index_progress"></span></p> |
| 133 |
</div> |
| 134 |
<p><strong style="color:red"> <?php _e('Note', 'wpchatbot'); ?> </strong> : <?php _e(' For large number of products,it may take time to complete indexing.', 'wpchatbot'); ?> </p> |
| 135 |
</div> |
| 136 |
</div> |
| 137 |
|
| 138 |
</div> |
| 139 |
</div>--> |
| 140 |
<div class="row"> |
| 141 |
<div class="col-xs-12"> |
| 142 |
<h4 class="qc-opt-title"> <?php _e('Disable WPBot', 'wpchatbot'); ?> </h4> |
| 143 |
<div class="cxsc-settings-blocks"> |
| 144 |
<input value="1" id="disable_wp_chatbot" type="checkbox" |
| 145 |
name="disable_wp_chatbot" <?php echo(get_option('disable_wp_chatbot') == 1 ? 'checked' : ''); ?>> |
| 146 |
<label for="disable_wp_chatbot"><?php _e('Disable WPBot to Load', 'wpchatbot'); ?> </label> |
| 147 |
</div> |
| 148 |
</div> |
| 149 |
</div> |
| 150 |
<!--<div class="row"> |
| 151 |
<div class="col-xs-12"> |
| 152 |
<h4 class="qc-opt-title"> <?php _e('Disable WPbot on Mobile Device', 'wpchatbot'); ?> </h4> |
| 153 |
<div class="cxsc-settings-blocks"> |
| 154 |
<input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox" |
| 155 |
name="disable_wp_chatbot_on_mobile" <?php echo(get_option('disable_wp_chatbot_on_mobile') == 1 ? 'checked' : ''); ?>> |
| 156 |
<label for="disable_wp_chatbot_on_mobile"><?php _e('Disable WpBot to Load on Mobile Device', 'wpchatbot'); ?> </label> |
| 157 |
</div> |
| 158 |
</div> |
| 159 |
</div>--> |
| 160 |
<!--<div class="row"> |
| 161 |
<div class="col-xs-12"> |
| 162 |
<h4 class="qc-opt-title"> <?php _e('Sound on Page Load', 'wpchatbot'); ?> </h4> |
| 163 |
<div class="form-group"> |
| 164 |
<input value="1" id="enable_wp_chatbot_sound_initial" type="checkbox" |
| 165 |
name="enable_wp_chatbot_sound_initial" <?php echo(get_option('enable_wp_chatbot_sound_initial') == 1 ? 'checked' : ''); ?>> |
| 166 |
<label for="enable_wp_chatbot_sound_initial"><?php _e('Enable to play sound on initial page load', 'wpchatbot'); ?> </label> |
| 167 |
</div> |
| 168 |
</div> |
| 169 |
</div>--> |
| 170 |
|
| 171 |
<!-- row--> |
| 172 |
<!--<div class="row"> |
| 173 |
<div class="col-xs-12"> |
| 174 |
<h4 class="qc-opt-title"> <?php _e('Disable WpBot Icon Animation', 'wpchatbot'); ?> </h4> |
| 175 |
<div class="cxsc-settings-blocks"> |
| 176 |
<input value="1" id="disable_wp_chatbot_icon_animation" type="checkbox" |
| 177 |
name="disable_wp_chatbot_icon_animation" <?php echo(get_option('disable_wp_chatbot_icon_animation') == 1 ? 'checked' : ''); ?>> |
| 178 |
<label for="disable_wp_chatbot_icon_animation"><?php _e('Disable WpBot icon border animation', 'wpchatbot'); ?> </label> |
| 179 |
</div> |
| 180 |
</div> |
| 181 |
</div>--> |
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
<!--<div class="row"> |
| 186 |
<div class="col-xs-12"> |
| 187 |
<h4 class="qc-opt-title"><?php _e('Disable WpBot Opening Notification', 'wpchatbot'); ?> </h4> |
| 188 |
<div class="cxsc-settings-blocks"> |
| 189 |
<input value="1" id="disable_wp_chatbot_notification" type="checkbox" |
| 190 |
name="disable_wp_chatbot_notification" <?php echo(get_option('disable_wp_chatbot_notification') == 1 ? 'checked' : ''); ?>> |
| 191 |
<label for="disable_wp_chatbot_notification"><?php _e('Disable WpBot Opening notification messages', 'wpchatbot'); ?> </label> |
| 192 |
</div> |
| 193 |
</div> |
| 194 |
</div>--> |
| 195 |
<div class="row"> |
| 196 |
<div class="col-xs-12"> |
| 197 |
<h4 class="qc-opt-title"><?php _e('Enable RTL Support for Chat', 'wpchatbot'); ?> </h4> |
| 198 |
<div class="cxsc-settings-blocks"> |
| 199 |
<input value="1" id="enable_wp_chatbot_rtl" type="checkbox" |
| 200 |
name="enable_wp_chatbot_rtl" <?php echo(get_option('enable_wp_chatbot_rtl') == 1 ? 'checked' : ''); ?>> |
| 201 |
<label for="enable_wp_chatbot_rtl"><?php _e('Enable RTL for Chat Window', 'wpchatbot'); ?> </label> |
| 202 |
</div> |
| 203 |
</div> |
| 204 |
</div> |
| 205 |
<!--<div class="row"> |
| 206 |
<div class="col-xs-12"> |
| 207 |
<h4 class="qc-opt-title"><?php _e('Disable Call Me', 'wpchatbot'); ?> </h4> |
| 208 |
<div class="cxsc-settings-blocks"> |
| 209 |
<input value="1" id="disable_wp_chatbot_call_sup" type="checkbox" |
| 210 |
name="disable_wp_chatbot_call_sup" <?php echo(get_option('disable_wp_chatbot_call_sup') == 1 ? 'checked' : ''); ?>> |
| 211 |
<label for="disable_wp_chatbot_call_sup"><?php _e('Disable Call Me button', 'wpchatbot'); ?> </label> |
| 212 |
</div> |
| 213 |
</div> |
| 214 |
</div> |
| 215 |
<div class="row"> |
| 216 |
<div class="col-xs-12"> |
| 217 |
<h4 class="qc-opt-title"><?php _e('WpBot Open Full Screen in Mobile', 'wpchatbot'); ?> </h4> |
| 218 |
<div class="cxsc-settings-blocks"> |
| 219 |
<input value="1" id="enable_wp_chatbot_mobile_full_screen" type="checkbox" |
| 220 |
name="enable_wp_chatbot_mobile_full_screen" <?php echo(get_option('enable_wp_chatbot_mobile_full_screen') == 1 ? 'checked' : ''); ?>> |
| 221 |
<label for="enable_wp_chatbot_mobile_full_screen"><?php _e('Enable WpBot Open Full Screen in Mobile', 'wpchatbot'); ?> </label> |
| 222 |
</div> |
| 223 |
</div> |
| 224 |
</div>--> |
| 225 |
<!-- row--> |
| 226 |
<div class="row"> |
| 227 |
<div class="col-xs-12"> |
| 228 |
<h4 class="qc-opt-title"><?php _e('Override WPBot Icon\'s Position', 'wpchatbot'); ?> </h4> |
| 229 |
<div class="cxsc-settings-blocks"> |
| 230 |
<?php |
| 231 |
$qcld_wb_chatbot_position_x = get_option('wp_chatbot_position_x'); |
| 232 |
if ((!isset($qcld_wb_chatbot_position_x)) || ($qcld_wb_chatbot_position_x == "")) { |
| 233 |
$qcld_wb_chatbot_position_x = __("120", "wp_chatbot"); |
| 234 |
} |
| 235 |
$qcld_wb_chatbot_position_y = get_option('wp_chatbot_position_y'); |
| 236 |
if ((!isset($qcld_wb_chatbot_position_y)) || ($qcld_wb_chatbot_position_y == "")) { |
| 237 |
$qcld_wb_chatbot_position_y = __("120", "wp_chatbot"); |
| 238 |
} ?> |
| 239 |
<input type="number" class="qc-opt-dcs-font" |
| 240 |
name="wp_chatbot_position_x" |
| 241 |
id="" |
| 242 |
value="<?php echo($qcld_wb_chatbot_position_x); ?>" |
| 243 |
placeholder="<?php _e('From Right In px', 'wpchatbot'); ?>"> <span class="qc-opt-dcs-font"><?php _e('From Right In px', 'wpchatbot'); ?></span> |
| 244 |
<input type="number" class="qc-opt-dcs-font" |
| 245 |
name="wp_chatbot_position_y" |
| 246 |
id="" |
| 247 |
value="<?php echo($qcld_wb_chatbot_position_y); ?>" |
| 248 |
placeholder="<?php _e('From Bottom In Px', 'wpchatbot'); ?>"> <span class="qc-opt-dcs-font"><?php _e('From Bottom In px', 'wpchatbot'); ?></span> |
| 249 |
</div> |
| 250 |
</div> |
| 251 |
<!--.col-sm-12--> |
| 252 |
</div> |
| 253 |
<!-- row--> |
| 254 |
|
| 255 |
<div class="row"> |
| 256 |
<div class="col-xs-12"> |
| 257 |
<h4 class="qc-opt-title"><strong> <?php _e('WPBot', 'wpchatbot'); ?></strong> <?php _e('Loading Control Options', 'wpchatbot'); ?> </h4> |
| 258 |
<div class="cxsc-settings-blocks"> |
| 259 |
<div class="row"> |
| 260 |
<div class="col-sm-4 text-right"> |
| 261 |
<span class="qc-opt-title-font"><?php _e('Show on Home Page', 'wpchatbot'); ?></span> |
| 262 |
</div> |
| 263 |
<div class="col-sm-8"> |
| 264 |
<label class="radio-inline"> |
| 265 |
<input id="wp-chatbot-show-home-page" type="radio" |
| 266 |
name="wp_chatbot_show_home_page" |
| 267 |
value="on" <?php echo(get_option('wp_chatbot_show_home_page') == 'on' ? 'checked' : ''); ?>> |
| 268 |
<?php _e('YES', 'wpchatbot'); ?> |
| 269 |
</label> |
| 270 |
<label class="radio-inline"> |
| 271 |
<input id="wp-chatbot-show-home-page" type="radio" |
| 272 |
name="wp_chatbot_show_home_page" |
| 273 |
value="off" <?php echo(get_option('wp_chatbot_show_home_page') == 'off' ? 'checked' : ''); ?>> |
| 274 |
<?php _e('NO', 'wpchatbot'); ?> |
| 275 |
</label> |
| 276 |
</div> |
| 277 |
</div> |
| 278 |
<!-- row--> |
| 279 |
<div class="row"> |
| 280 |
<div class="col-sm-4 text-right"> |
| 281 |
<span class="qc-opt-title-font"><?php _e('Show on blog posts', 'wpchatbot'); ?></span> |
| 282 |
</div> |
| 283 |
<div class="col-sm-8"> |
| 284 |
<label class="radio-inline"> |
| 285 |
<input class="wp-chatbot-show-posts" type="radio" |
| 286 |
name="wp_chatbot_show_posts" |
| 287 |
value="on" <?php echo(get_option('wp_chatbot_show_posts') == 'on' ? 'checked' : ''); ?>> |
| 288 |
<?php _e('YES', 'wpchatbot'); ?> |
| 289 |
</label> |
| 290 |
<label class="radio-inline"> |
| 291 |
<input class="wp-chatbot-show-posts" type="radio" |
| 292 |
name="wp_chatbot_show_posts" |
| 293 |
value="off" <?php echo(get_option('wp_chatbot_show_posts') == 'off' ? 'checked' : ''); ?>> |
| 294 |
<?php _e('NO', 'wpchatbot'); ?> |
| 295 |
</label> |
| 296 |
</div> |
| 297 |
</div> |
| 298 |
<!-- row--> |
| 299 |
<div class="row"> |
| 300 |
<div class="col-md-4 text-right"> |
| 301 |
<span class="qc-opt-title-font"><?php _e('Show on pages', 'wpchatbot'); ?></span> |
| 302 |
</div> |
| 303 |
<div class="col-md-8"> |
| 304 |
<label class="radio-inline"> |
| 305 |
<input class="wp-chatbot-show-pages" type="radio" |
| 306 |
name="wp_chatbot_show_pages" |
| 307 |
value="on" <?php echo(get_option('wp_chatbot_show_pages') == 'on' ? 'checked' : ''); ?>> |
| 308 |
<?php _e('All Pages', 'wpchatbot'); ?> |
| 309 |
</label> |
| 310 |
<label class="radio-inline"> |
| 311 |
<input class="wp-chatbot-show-pages" type="radio" |
| 312 |
name="wp_chatbot_show_pages" |
| 313 |
value="off" <?php echo(get_option('wp_chatbot_show_pages') == 'off' ? 'checked' : ''); ?>> |
| 314 |
<?php _e('Selected Pages Only ', 'wpchatbot'); ?></label> |
| 315 |
<div id="wp-chatbot-show-pages-list"> |
| 316 |
<ul class="checkbox-list"> |
| 317 |
<?php |
| 318 |
$wp_chatbot_pages = get_pages(); |
| 319 |
$wp_chatbot_select_pages = unserialize(get_option('wp_chatbot_show_pages_list')); |
| 320 |
foreach ($wp_chatbot_pages as $wp_chatbot_page) { |
| 321 |
?> |
| 322 |
<li> |
| 323 |
<input |
| 324 |
id="wp_chatbot_show_page_<?php echo $wp_chatbot_page->ID; ?>" |
| 325 |
type="checkbox" |
| 326 |
name="wp_chatbot_show_pages_list[]" |
| 327 |
value="<?php echo $wp_chatbot_page->ID; ?>" <?php if (!empty($wp_chatbot_select_pages) && in_array($wp_chatbot_page->ID, $wp_chatbot_select_pages) == true) { |
| 328 |
echo 'checked'; |
| 329 |
} ?> > |
| 330 |
<label |
| 331 |
for="wp_chatbot_show_page_<?php echo $wp_chatbot_page->ID; ?>"> <?php echo $wp_chatbot_page->post_title; ?></label> |
| 332 |
</li> |
| 333 |
<?php } ?> |
| 334 |
</ul> |
| 335 |
</div> |
| 336 |
</div> |
| 337 |
</div> |
| 338 |
|
| 339 |
</div> |
| 340 |
<!-- cxsc-settings-blocks--> |
| 341 |
</div> |
| 342 |
<!-- col-xs-12--> |
| 343 |
</div> |
| 344 |
<!-- row--> |
| 345 |
<div class="row"> |
| 346 |
<div class="col-xs-12"> |
| 347 |
<h2>Predefined Intents</h2> |
| 348 |
|
| 349 |
|
| 350 |
<div class="row"> |
| 351 |
<div class="col-xs-12"> |
| 352 |
<h4 class="qc-opt-title"><?php _e('Disable Call Me', 'wpchatbot'); ?> </h4> |
| 353 |
<div class="cxsc-settings-blocks"> |
| 354 |
<input value="1" id="disable_wp_chatbot_call_gen" type="checkbox" |
| 355 |
name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? 'checked' : ''); ?>> |
| 356 |
<label for="disable_wp_chatbot_call_gen"><?php _e('Disable Call Me button on start', 'wpchatbot'); ?> </label> |
| 357 |
</div> |
| 358 |
</div> |
| 359 |
</div> |
| 360 |
<div class="row"> |
| 361 |
<div class="col-xs-12"> |
| 362 |
<h4 class="qc-opt-title"><?php _e('Disable Email', 'wpchatbot'); ?> </h4> |
| 363 |
<div class="cxsc-settings-blocks"> |
| 364 |
<input value="1" id="disable_wp_chatbot_feedback" type="checkbox" |
| 365 |
name="disable_wp_chatbot_feedback" <?php echo(get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''); ?>> |
| 366 |
<label for="disable_wp_chatbot_feedback"><?php _e('Disable Email button on start', 'wpchatbot'); ?> </label> |
| 367 |
</div> |
| 368 |
</div> |
| 369 |
</div> |
| 370 |
<div class="row"> |
| 371 |
<div class="col-xs-12"> |
| 372 |
<h4 class="qc-opt-title"><?php _e('Disable FAQ', 'wpchatbot'); ?> </h4> |
| 373 |
<div class="cxsc-settings-blocks"> |
| 374 |
<input value="1" id="disable_wp_chatbot_faq" type="checkbox" |
| 375 |
name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? 'checked' : ''); ?>> |
| 376 |
<label for="disable_wp_chatbot_faq"><?php _e('Disable FAQ button on start', 'wpchatbot'); ?> </label> |
| 377 |
</div> |
| 378 |
</div> |
| 379 |
</div> |
| 380 |
<div class="row"> |
| 381 |
<div class="col-xs-12"> |
| 382 |
<h4 class="qc-opt-title"><?php _e('Custom Intents', 'wpchatbot'); ?> </h4> |
| 383 |
<div class="cxsc-settings-blocks"> |
| 384 |
|
| 385 |
<label for="disable_wp_chatbot_faq"><?php _e('Coming Soon', 'wpchatbot'); ?> </label> |
| 386 |
</div> |
| 387 |
</div> |
| 388 |
</div> |
| 389 |
|
| 390 |
</div> |
| 391 |
</div> |
| 392 |
</div> |
| 393 |
<!-- top-section--> |
| 394 |
</section> |
| 395 |
<section id="section-flip-2"> |
| 396 |
<div class="top-section"> |
| 397 |
|
| 398 |
<div class="row"> |
| 399 |
<div class="col-xs-12"> |
| 400 |
|
| 401 |
<div class="row"> |
| 402 |
<div class="col-xs-12"> |
| 403 |
<p class="wpqcld_chk_seft"> |
| 404 |
<a target="_blank" href="https://www.quantumcloud.com/products/themes/chatbot-theme/"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL ?>/chatbot-theme.jpg" alt="" /></a> |
| 405 |
</p> |
| 406 |
</div> |
| 407 |
</div> |
| 408 |
|
| 409 |
<h4 class="qc-opt-title"><?php _e('WPBot Icon', 'wpchatbot'); ?></h4> |
| 410 |
<div class="cxsc-settings-blocks"> |
| 411 |
<ul class="radio-list"> |
| 412 |
<!--<li><label for="wp_chatbot_icon_0" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-0.png" |
| 413 |
alt=""> <input id="wp_chatbot_icon_0" type="radio" |
| 414 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-0.png' ? 'checked' : ''); ?> |
| 415 |
value="icon-0.png"> |
| 416 |
<?php _e('Icon - 0', 'wpchatbot'); ?></label> |
| 417 |
</li> |
| 418 |
<li><label for="wp_chatbot_icon_1" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-1.png" |
| 419 |
alt=""> <input id="wp_chatbot_icon_1" type="radio" |
| 420 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-1.png' ? 'checked' : ''); ?> |
| 421 |
value="icon-1.png"> |
| 422 |
<?php _e('Icon - 1', 'wpchatbot'); ?></label> |
| 423 |
</li>--> |
| 424 |
<li><label for="wp_chatbot_icon_2" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-2.png" |
| 425 |
alt=""> <input id="wp_chatbot_icon_2" type="radio" |
| 426 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-2.png' ? 'checked' : ''); ?> |
| 427 |
value="icon-2.png"> |
| 428 |
<?php _e('Icon - 2', 'wpchatbot'); ?></label> |
| 429 |
</li> |
| 430 |
<li><label for="wp_chatbot_icon_3" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-3.png" |
| 431 |
alt=""> <input id="wp_chatbot_icon_3" type="radio" |
| 432 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-3.png' ? 'checked' : ''); ?> |
| 433 |
value="icon-3.png"> |
| 434 |
<?php _e('Icon - 3', 'wpchatbot'); ?></label> |
| 435 |
</li> |
| 436 |
<li><label for="wp_chatbot_icon_4" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-4.png" |
| 437 |
alt=""> <input id="wp_chatbot_icon_4" type="radio" |
| 438 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-4.png' ? 'checked' : ''); ?> |
| 439 |
value="icon-4.png"> |
| 440 |
<?php _e('Icon - 4', 'wpchatbot'); ?></label> |
| 441 |
</li> |
| 442 |
<li><label for="wp_chatbot_icon_5" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-5.png" |
| 443 |
alt=""> <input id="wp_chatbot_icon_5" type="radio" |
| 444 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-5.png' ? 'checked' : ''); ?> |
| 445 |
value="icon-5.png"> |
| 446 |
<?php _e('Icon - 5', 'wpchatbot'); ?></label> |
| 447 |
</li> |
| 448 |
<li><label for="wp_chatbot_icon_6" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-6.png" |
| 449 |
alt=""> <input id="wp_chatbot_icon_6" type="radio" |
| 450 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-6.png' ? 'checked' : ''); ?> |
| 451 |
value="icon-6.png"> |
| 452 |
<?php _e('Icon - 6', 'wpchatbot'); ?></label> |
| 453 |
</li> |
| 454 |
<li><label for="wp_chatbot_icon_7" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-7.png" |
| 455 |
alt=""> <input id="wp_chatbot_icon_7" type="radio" |
| 456 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-7.png' ? 'checked' : ''); ?> |
| 457 |
value="icon-7.png"> |
| 458 |
<?php _e('Icon - 7', 'wpchatbot'); ?></label> |
| 459 |
</li> |
| 460 |
<li><label for="wp_chatbot_icon_8" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-8.png" |
| 461 |
alt=""> <input id="wp_chatbot_icon_8" type="radio" |
| 462 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-8.png' ? 'checked' : ''); ?> |
| 463 |
value="icon-8.png"> |
| 464 |
<?php _e('Icon - 8', 'wpchatbot'); ?></label> |
| 465 |
</li> |
| 466 |
<li><label for="wp_chatbot_icon_9" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-9.png" |
| 467 |
alt=""> <input id="wp_chatbot_icon_9" type="radio" |
| 468 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-9.png' ? 'checked' : ''); ?> |
| 469 |
value="icon-9.png"> |
| 470 |
<?php _e('Icon - 9', 'wpchatbot'); ?></label> |
| 471 |
</li> |
| 472 |
<li><label for="wp_chatbot_icon_10" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-10.png" |
| 473 |
alt=""> <input id="wp_chatbot_icon_10" type="radio" |
| 474 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-10.png' ? 'checked' : ''); ?> |
| 475 |
value="icon-10.png"> |
| 476 |
<?php _e('Icon - 10', 'wpchatbot'); ?></label> |
| 477 |
</li> |
| 478 |
<li><label for="wp_chatbot_icon_11" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-11.png" |
| 479 |
alt=""> <input id="wp_chatbot_icon_11" type="radio" |
| 480 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-11.png' ? 'checked' : ''); ?> |
| 481 |
value="icon-11.png"> |
| 482 |
<?php _e('Icon - 11', 'wpchatbot'); ?></label> |
| 483 |
</li> |
| 484 |
<li><label for="wp_chatbot_icon_12" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-12.png" |
| 485 |
alt=""> <input id="wp_chatbot_icon_12" type="radio" |
| 486 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-12.png' ? 'checked' : ''); ?> |
| 487 |
value="icon-12.png"> |
| 488 |
<?php _e('Icon - 12', 'wpchatbot'); ?></label> |
| 489 |
</li> |
| 490 |
<li><label for="wp_chatbot_icon_13" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-13.png" |
| 491 |
alt=""> <input id="wp_chatbot_icon_13" type="radio" |
| 492 |
name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-13.png' ? 'checked' : ''); ?> |
| 493 |
value="icon-13.png"> |
| 494 |
<?php _e('Icon - 13', 'wpchatbot'); ?></label> |
| 495 |
</li> |
| 496 |
|
| 497 |
<li> |
| 498 |
<?php |
| 499 |
if (get_option('wp_chatbot_custom_icon_path') != "") { |
| 500 |
$wp_chatbot_custom_icon_path = get_option('wp_chatbot_custom_icon_path'); |
| 501 |
} else { |
| 502 |
$wp_chatbot_custom_icon_path = QCLD_wpCHATBOT_IMG_URL . 'custom.png'; |
| 503 |
} |
| 504 |
?> |
| 505 |
<label for="wp_chatbot_custom_icon_input" class="qc-opt-dcs-font"> |
| 506 |
<img id="wp_chatbot_custom_icon_src" |
| 507 |
src="<?php echo $wp_chatbot_custom_icon_path; ?>" alt=""> |
| 508 |
<input id="wp_chatbot_custom_icon_input" type="radio" |
| 509 |
name="wp_chatbot_icon" |
| 510 |
value="custom.png" <?php echo(get_option('wp_chatbot_icon') == 'custom.png' ? 'checked' : ''); ?>> |
| 511 |
<?php _e('Custom Icon', 'wpchatbot'); ?></label> |
| 512 |
</li> |
| 513 |
|
| 514 |
</ul> |
| 515 |
</div> |
| 516 |
<!-- cxsc-settings-blocks--> |
| 517 |
</div> |
| 518 |
</div> |
| 519 |
<div class="row"> |
| 520 |
<div class="col-xs-12"> |
| 521 |
<h4 class="qc-opt-title"><?php _e(' Upload custom Icon ', 'wpchatbot'); ?></h4> |
| 522 |
<div class="cxsc-settings-blocks"> |
| 523 |
<input type="hidden" name="wp_chatbot_custom_icon_path" |
| 524 |
id="wp_chatbot_custom_icon_path" |
| 525 |
value="<?php echo $wp_chatbot_custom_icon_path; ?>"/> |
| 526 |
<button type="button" class="wp_chatbot_custom_icon_button button"><?php _e('Upload Icon', 'wpchatbot'); ?> </button> |
| 527 |
</div> |
| 528 |
|
| 529 |
</div> |
| 530 |
</div> |
| 531 |
</div> |
| 532 |
|
| 533 |
<div class="top-section"> |
| 534 |
<div class="row"> |
| 535 |
<div class="col-xs-12"> |
| 536 |
<h4 class="qc-opt-title"><?php _e(' WPBot Agent Image', 'wpchatbot'); ?></h4> |
| 537 |
<div class="cxsc-settings-blocks"> |
| 538 |
<ul class="radio-list"> |
| 539 |
<li> |
| 540 |
<label for="wp_chatbot_agent_image_def" class="qc-opt-dcs-font"> |
| 541 |
<img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>icon-0.png" |
| 542 |
alt=""> <input id="wp_chatbot_agent_image_def" type="radio" |
| 543 |
name="wp_chatbot_agent_image" <?php echo(get_option('wp_chatbot_agent_image') == 'agent-0.png' ? 'checked' : ''); ?> |
| 544 |
value="agent-0.png"> |
| 545 |
|
| 546 |
<?php _e('Default Agent', 'wpchatbot'); ?></label> |
| 547 |
</li> |
| 548 |
|
| 549 |
</ul> |
| 550 |
</div> |
| 551 |
<!-- cxsc-settings-blocks--> |
| 552 |
</div> |
| 553 |
</div> |
| 554 |
<!--<div class="row"> |
| 555 |
<div class="col-xs-12"> |
| 556 |
<h4 class="qc-opt-title"> <?php _e('Custom Agent Icon', 'wpchatbot'); ?> </h4> |
| 557 |
<div class="cxsc-settings-blocks"> |
| 558 |
<input type="hidden" name="wp_chatbot_custom_agent_path" |
| 559 |
id="wp_chatbot_custom_agent_path" |
| 560 |
value="<?php echo $wp_chatbot_custom_agent_path; ?>"/> |
| 561 |
<button type="button" class="wp_chatbot_custom_agent_button button"><?php _e('Upload Agent Icon', 'wpchatbot'); ?></button> |
| 562 |
</div> |
| 563 |
</div> |
| 564 |
</div>--> |
| 565 |
</div> |
| 566 |
<div id="top-section"> |
| 567 |
<div class="row"> |
| 568 |
<div class="col-sm-12"> |
| 569 |
<h4 class="qc-opt-title"> <?php _e('WPBot Themes', 'wpchatbot'); ?></h4> |
| 570 |
</div> |
| 571 |
</div> |
| 572 |
<div class="row"> |
| 573 |
<div class="col-sm-3"> |
| 574 |
<label for="qcld_wb_chatbot_theme_0"> |
| 575 |
<img class="thumbnail theme_prev" |
| 576 |
src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>templates/template-00.JPG" |
| 577 |
alt="Theme Basic"> |
| 578 |
<input id="qcld_wb_chatbot_theme_0" type="radio" |
| 579 |
name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-00' ? 'checked' : ''); ?> |
| 580 |
value="template-00"> |
| 581 |
<?php _e('Theme Basic', 'wpchatbot'); ?></label> |
| 582 |
</div> |
| 583 |
|
| 584 |
</div> |
| 585 |
</div> |
| 586 |
<!--<hr> |
| 587 |
<div id="top-section"> |
| 588 |
<div class="row"> |
| 589 |
<div class="col-sm-12"> |
| 590 |
<h4 class="qc-opt-title"> <?php _e('Custom Backgroud', 'wpchatbot'); ?></h4> |
| 591 |
<div class="cxsc-settings-blocks"> |
| 592 |
<input value="1" id="qcld_wb_chatbot_change_bg" type="checkbox" |
| 593 |
name="qcld_wb_chatbot_change_bg" <?php echo(get_option('qcld_wb_chatbot_change_bg') == 1 ? 'checked' : ''); ?>> |
| 594 |
<label for="qcld_wb_chatbot_change_bg"><?php _e('Change the wpwBot message board background for Theme 2 and Theme 3.', 'wpchatbot'); ?> </label> |
| 595 |
</div> |
| 596 |
</div> |
| 597 |
</div> |
| 598 |
<div class="row qcld-wp-chatbot-board-bg-container" <?php if (get_option('qcld_wb_chatbot_change_bg') != 1) { |
| 599 |
echo 'style="display:none"'; |
| 600 |
} ?>> |
| 601 |
<div class="col-xs-6"> |
| 602 |
<p class="wp-chatbot-settings-instruction"> <?php _e('Upload wpwBot message board background (Ideal image size 376px X 688px).', 'wpchatbot'); ?> </p> |
| 603 |
<div class="cxsc-settings-blocks"> |
| 604 |
<?php |
| 605 |
if (get_option('qcld_wb_chatbot_board_bg_path') != "") { |
| 606 |
$qcld_wb_chatbot_board_bg_path = get_option('qcld_wb_chatbot_board_bg_path'); |
| 607 |
} else { |
| 608 |
$qcld_wb_chatbot_board_bg_path = QCLD_wpCHATBOT_IMG_URL . 'background/background.png'; |
| 609 |
} |
| 610 |
?> |
| 611 |
<input type="hidden" name="qcld_wb_chatbot_board_bg_path" |
| 612 |
id="qcld_wb_chatbot_board_bg_path" |
| 613 |
value="<?php echo $qcld_wb_chatbot_board_bg_path; ?>"/> |
| 614 |
<button type="button" class="qcld_wb_chatbot_board_bg_button button"><?php _e('Upload WpBot background.', 'wpchatbot'); ?></button> |
| 615 |
</div> |
| 616 |
</div> |
| 617 |
|
| 618 |
<div class="col-xs-6"> |
| 619 |
<p class="wp-chatbot-settings-instruction"> <?php _e('Custom message board background', 'wpchatbot'); ?> </p> |
| 620 |
<img id="qcld_wb_chatbot_board_bg_image" style="height:100%;width:100%" |
| 621 |
src="<?php echo $qcld_wb_chatbot_board_bg_path; ?>" |
| 622 |
alt="Custom Background"> |
| 623 |
</div> |
| 624 |
</div> |
| 625 |
</div>--> |
| 626 |
</section> |
| 627 |
<section id="section-flip-3"> |
| 628 |
<div class="row"> |
| 629 |
<div class="col-xs-12"> |
| 630 |
|
| 631 |
|
| 632 |
|
| 633 |
</div> |
| 634 |
</div> |
| 635 |
<div class="top-section"> |
| 636 |
<h4 class="qc-opt-title"><?php _e('Build FAQ Query and Answers', 'wpchatbot'); ?></h4> |
| 637 |
<div class="block-inner ui-sortable" id="wp-chatbot-support-builder"> |
| 638 |
<?php |
| 639 |
$support_quereis=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_query'))); |
| 640 |
$support_ans=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_ans'))); |
| 641 |
if (count($support_ans) >= 1) { |
| 642 |
//foreach (get_option('support_ans') as $support_ans){ |
| 643 |
$query_ans_counter=0; |
| 644 |
foreach (array_combine($support_quereis, $support_ans) as $query => $ans) { |
| 645 |
?> |
| 646 |
<div class="row"> |
| 647 |
<span class="pull-right"> </span> |
| 648 |
<div class="col-xs-12"> |
| 649 |
<button type="button" |
| 650 |
class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> |
| 651 |
<i class="fa fa-times" aria-hidden="true"></i> |
| 652 |
</button> |
| 653 |
<span class="wp-chatbot-support-cross pull-right" > |
| 654 |
<i class="fa fa-crosshairs" aria-hidden="true"></i> |
| 655 |
</span> |
| 656 |
<div class="cxsc-settings-blocks"> |
| 657 |
<p class="qc-opt-dcs-font"><?php _e('FAQ query ', 'wpchatbot'); ?></p> |
| 658 |
<input type="text" class="form-control" name="support_query[]" |
| 659 |
placeholder="<?php _e('FAQ query ', 'wpchatbot'); ?>" value="<?php echo $query ?>"> |
| 660 |
<br> |
| 661 |
<p class="qc-opt-dcs-font"><?php _e('FAQ answer', 'wpchatbot'); ?></p> |
| 662 |
<?php wp_editor(html_entity_decode(stripcslashes($ans)), 'support_ans'.'_'.$query_ans_counter, array('textarea_name' => |
| 663 |
'support_ans[]', |
| 664 |
'textarea_rows' => 20, |
| 665 |
'editor_height' => 100, |
| 666 |
'disabled' => 'disabled', |
| 667 |
'media_buttons' => false, |
| 668 |
'tinymce' => array( |
| 669 |
'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',) |
| 670 |
)); ?> |
| 671 |
</div> |
| 672 |
</div> |
| 673 |
</div> |
| 674 |
<?php |
| 675 |
$query_ans_counter++; |
| 676 |
} |
| 677 |
//} |
| 678 |
} else { |
| 679 |
?> |
| 680 |
<div class="row"> |
| 681 |
<div class="col-xs-12"> |
| 682 |
<button type="button" |
| 683 |
class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> |
| 684 |
<i class="fa fa-times" aria-hidden="true"></i> |
| 685 |
</button> |
| 686 |
<span class="wp-chatbot-support-cross pull-right" > |
| 687 |
<i class="fa fa-crosshairs" aria-hidden="true"></i> |
| 688 |
</span> |
| 689 |
<div class="cxsc-settings-blocks"> |
| 690 |
<p class="qc-opt-dcs-font"><?php _e('Support query', 'wpchatbot'); ?> </p> |
| 691 |
<input type="text" class="form-control" name="support_query[]" |
| 692 |
placeholder="<?php _e('Support query ', 'wpchatbot'); ?>"> |
| 693 |
<br> |
| 694 |
<p class="qc-opt-dcs-font"><strong><?php _e('Support answer', 'wpchatbot'); ?></strong></p> |
| 695 |
<?php wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' => |
| 696 |
'support_ans[]', |
| 697 |
'textarea_rows' => 20, |
| 698 |
'editor_height' => 100, |
| 699 |
'disabled' => 'disabled', |
| 700 |
'media_buttons' => false, |
| 701 |
'tinymce' => array( |
| 702 |
'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',) |
| 703 |
)); ?> |
| 704 |
</div> |
| 705 |
<br> |
| 706 |
</div> |
| 707 |
</div> |
| 708 |
<?php |
| 709 |
} |
| 710 |
?> |
| 711 |
</div> |
| 712 |
<div class="row"> |
| 713 |
<div class="col-sm-6 text-left"></div> |
| 714 |
<div class="col-sm-6 text-right"> |
| 715 |
<button class="btn btn-success btn-sm" type="button" |
| 716 |
id="add-more-support-query"><i |
| 717 |
class="fa fa-plus" aria-hidden="true"></i> <?php _e('Add More Questions and Answers', 'wpchatbot'); ?> |
| 718 |
</button> |
| 719 |
</div> |
| 720 |
</div> |
| 721 |
</div> |
| 722 |
</section> |
| 723 |
<!--<section id="section-flip-4"> |
| 724 |
<div class="top-section"> |
| 725 |
<div class="notification-block-inner"> |
| 726 |
<div class="row"> |
| 727 |
<div class="col-xs-12"> |
| 728 |
<div class="cxsc-settings-blocks"> |
| 729 |
<?php $notification_interval = get_option('qlcd_wp_chatbot_notification_interval') != "" ? get_option('qlcd_wp_chatbot_notification_interval') : 5 ?> |
| 730 |
<h4 class="qc-opt-title"><?php _e('Interval between notifications (in Seconds).', 'wpchatbot'); ?></h4> |
| 731 |
<input type="text" class="form-control" |
| 732 |
name="qlcd_wp_chatbot_notification_interval" |
| 733 |
value="<?php echo $notification_interval ?>"> |
| 734 |
</div> |
| 735 |
</div> |
| 736 |
</div> |
| 737 |
|
| 738 |
<?php |
| 739 |
$notifications = $this->qcld_wb_chatbot_str_replace(unserialize(get_option('qlcd_wp_chatbot_notifications'))); |
| 740 |
if (!empty($notifications)) { |
| 741 |
$chatbot_notif_counter=0; |
| 742 |
foreach ($notifications as $notification) { |
| 743 |
?> |
| 744 |
<div class="row"> |
| 745 |
<div class="col-xs-12"> |
| 746 |
<button type="button" |
| 747 |
class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right"> |
| 748 |
<i class="fa fa-times" aria-hidden="true"></i> |
| 749 |
</button> |
| 750 |
<div class="cxsc-settings-blocks"> |
| 751 |
<?php wp_editor(html_entity_decode(stripcslashes($notification)), 'qlcd_wp_chatbot_notifications_'.$chatbot_notif_counter, array('textarea_name' => |
| 752 |
'qlcd_wp_chatbot_notifications[]', |
| 753 |
'textarea_rows' => 20, |
| 754 |
'editor_height' => 100, |
| 755 |
'disabled' => 'disabled', |
| 756 |
'media_buttons' => false, |
| 757 |
'tinymce' => array( |
| 758 |
'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',) |
| 759 |
)); ?> |
| 760 |
</div> |
| 761 |
</div> |
| 762 |
|
| 763 |
</div> |
| 764 |
|
| 765 |
<?php |
| 766 |
$chatbot_notif_counter++; |
| 767 |
} |
| 768 |
//} |
| 769 |
} else { |
| 770 |
?> |
| 771 |
<div class="row"> |
| 772 |
<div class="col-xs-12"> |
| 773 |
<button type="button" |
| 774 |
class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right"> |
| 775 |
<i class="fa fa-times" aria-hidden="true"></i> |
| 776 |
</button> |
| 777 |
<div class="cxsc-settings-blocks"> |
| 778 |
<?php wp_editor(html_entity_decode(stripcslashes('')), 'qlcd_wp_chatbot_notifications_0', array('textarea_name' => |
| 779 |
'qlcd_wp_chatbot_notifications[]', |
| 780 |
'textarea_rows' => 20, |
| 781 |
'editor_height' => 100, |
| 782 |
'disabled' => 'disabled', |
| 783 |
'media_buttons' => false, |
| 784 |
'tinymce' => array( |
| 785 |
'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',) |
| 786 |
)); ?> |
| 787 |
</div> |
| 788 |
</div> |
| 789 |
</div> |
| 790 |
<?php |
| 791 |
} |
| 792 |
?> |
| 793 |
</div> |
| 794 |
<div class="row"> |
| 795 |
<div class="col-sm-6 text-left"></div> |
| 796 |
<div class="col-sm-6 text-right"> |
| 797 |
<button class="btn btn-success btn-sm" type="button" |
| 798 |
id="add-more-notification-message"> |
| 799 |
<i class="fa fa-plus" aria-hidden="true"></i> <?php _e('Add', 'wpchatbot'); ?> |
| 800 |
</button> |
| 801 |
</div> |
| 802 |
</div> |
| 803 |
|
| 804 |
</div> |
| 805 |
|
| 806 |
</section>--> |
| 807 |
<section id="section-flip-5"> |
| 808 |
<div class="wp-chatbot-language-center-summmery"> |
| 809 |
|
| 810 |
</div> |
| 811 |
<ul class="nav nav-tabs"> |
| 812 |
<li class="active"><a data-toggle="tab" href="#wp-chatbot-lng-general"><?php _e('General', 'wpchatbot'); ?></a></li> |
| 813 |
|
| 814 |
<li><a data-toggle="tab" href="#wp-chatbot-lng-support"><?php _e('FAQ', 'wpchatbot'); ?></a></li> |
| 815 |
|
| 816 |
<li><a data-toggle="tab" href="#wp-chatbot-lng-system-keyword"><?php _e('System Keywords', 'wpchatbot'); ?></a></li> |
| 817 |
</ul> |
| 818 |
<div class="tab-content"> |
| 819 |
<div id="wp-chatbot-lng-general" class="tab-pane fade in active"> |
| 820 |
<div class="top-section"> |
| 821 |
<div class="row"> |
| 822 |
<div class="col-xs-12" id="wp-chatbot-language-section"> |
| 823 |
<div class="form-group"> |
| 824 |
<h4 class="qc-opt-title"><?php _e('Your Company or Website Name', 'wpchatbot'); ?></h4> |
| 825 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 826 |
name="qlcd_wp_chatbot_host" |
| 827 |
value="<?php echo(get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store'); ?>"> |
| 828 |
</div> |
| 829 |
<div class="form-group"> |
| 830 |
<h4 class="qc-opt-title"><?php _e('Agent name', 'wpchatbot'); ?></h4> |
| 831 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 832 |
name="qlcd_wp_chatbot_agent" |
| 833 |
value="<?php echo(get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie'); ?>"> |
| 834 |
</div> |
| 835 |
<div class="form-group"> |
| 836 |
<h4 class="qc-opt-title"><?php _e('User demo name', 'wpchatbot'); ?></h4> |
| 837 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 838 |
name="qlcd_wp_chatbot_shopper_demo_name" |
| 839 |
value="<?php echo(get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo'); ?>"> |
| 840 |
</div> |
| 841 |
<div class="form-group"> |
| 842 |
<h4 class="qc-opt-title"><?php _e('YES', 'wpchatbot'); ?></h4> |
| 843 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 844 |
name="qlcd_wp_chatbot_yes" |
| 845 |
value="<?php echo(get_option('qlcd_wp_chatbot_yes') != '' ? get_option('qlcd_wp_chatbot_yes') : 'YES'); ?>"> |
| 846 |
</div> |
| 847 |
<div class="form-group"> |
| 848 |
<h4 class="qc-opt-title"><?php _e('NO', 'wpchatbot'); ?></h4> |
| 849 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 850 |
name="qlcd_wp_chatbot_no" |
| 851 |
value="<?php echo(get_option('qlcd_wp_chatbot_no') != '' ? get_option('qlcd_wp_chatbot_no') : 'NO'); ?>"> |
| 852 |
</div> |
| 853 |
<div class="form-group"> |
| 854 |
<h4 class="qc-opt-title"><?php _e('OR', 'wpchatbot'); ?></h4> |
| 855 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 856 |
name="qlcd_wp_chatbot_or" |
| 857 |
value="<?php echo(get_option('qlcd_wp_chatbot_or') != '' ? get_option('qlcd_wp_chatbot_or') : 'OR'); ?>"> |
| 858 |
</div> |
| 859 |
<div class="form-group"> |
| 860 |
<h4 class="qc-opt-title"><?php _e('Sorry', 'wpchatbot'); ?></h4> |
| 861 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 862 |
name="qlcd_wp_chatbot_sorry" |
| 863 |
value="<?php echo(get_option('qlcd_wp_chatbot_sorry') != '' ? get_option('qlcd_wp_chatbot_sorry') : 'Sorry'); ?>"> |
| 864 |
</div> |
| 865 |
<div class="form-group"> |
| 866 |
<?php |
| 867 |
$agent_join_options = unserialize(get_option('qlcd_wp_chatbot_agent_join')); |
| 868 |
$agent_join_option = 'qlcd_wp_chatbot_agent_join'; |
| 869 |
$agent_join_text = __('has joined the conversation', 'wpchatbot'); |
| 870 |
$this->qcld_wb_chatbot_dynamic_multi_option($agent_join_options, $agent_join_option, $agent_join_text); |
| 871 |
?> |
| 872 |
</div> |
| 873 |
</div> |
| 874 |
<!--col-xs-12--> |
| 875 |
<div class="col-xs-12" id="wp-chatbot-language-section"> |
| 876 |
<h4 class="text-success"><?php _e(' Message setting for Greetings: ', 'wpchatbot'); ?></h4> |
| 877 |
<div class="form-group"> |
| 878 |
<?php |
| 879 |
$welcome_to_options = unserialize(get_option('qlcd_wp_chatbot_welcome')); |
| 880 |
$welcome_to_option = 'qlcd_wp_chatbot_welcome'; |
| 881 |
$welcome_to_text =__('Welcome to', 'wpchatbot'); |
| 882 |
$this->qcld_wb_chatbot_dynamic_multi_option($welcome_to_options, $welcome_to_option, $welcome_to_text); |
| 883 |
?> |
| 884 |
</div> |
| 885 |
<div class="form-group"> |
| 886 |
<?php |
| 887 |
$welcome_back_options = unserialize(get_option('qlcd_wp_chatbot_welcome_back')); |
| 888 |
$welcome_back_option = 'qlcd_wp_chatbot_welcome_back'; |
| 889 |
$welcome_back_text = __('Welcome back', 'wpchatbot'); |
| 890 |
$this->qcld_wb_chatbot_dynamic_multi_option($welcome_back_options, $welcome_back_option, $welcome_back_text); |
| 891 |
?> |
| 892 |
</div> |
| 893 |
<div class="form-group"> |
| 894 |
<?php |
| 895 |
$back_to_start_options = unserialize(get_option('qlcd_wp_chatbot_back_to_start')); |
| 896 |
$back_to_start_option = 'qlcd_wp_chatbot_back_to_start'; |
| 897 |
$back_to_start_text = __('Back to Start', 'wpchatbot'); |
| 898 |
$this->qcld_wb_chatbot_dynamic_multi_option($back_to_start_options, $back_to_start_option, $back_to_start_text); |
| 899 |
?> |
| 900 |
</div> |
| 901 |
<div class="form-group"> |
| 902 |
<?php |
| 903 |
$hi_there_options = unserialize(get_option('qlcd_wp_chatbot_hi_there')); |
| 904 |
$hi_there_option = 'qlcd_wp_chatbot_hi_there'; |
| 905 |
$hi_there_text = __('Hi There!', 'wpchatbot'); |
| 906 |
$this->qcld_wb_chatbot_dynamic_multi_option($hi_there_options, $hi_there_option, $hi_there_text); |
| 907 |
?> |
| 908 |
</div> |
| 909 |
<div class="form-group"> |
| 910 |
<?php |
| 911 |
$asking_name_options = unserialize(get_option('qlcd_wp_chatbot_asking_name')); |
| 912 |
$asking_name_option = 'qlcd_wp_chatbot_asking_name'; |
| 913 |
$asking_name_text = __('May I know your name?', 'wpchatbot'); |
| 914 |
$this->qcld_wb_chatbot_dynamic_multi_option($asking_name_options, $asking_name_option, $asking_name_text); |
| 915 |
?> |
| 916 |
</div> |
| 917 |
<div class="form-group"> |
| 918 |
<?php |
| 919 |
$i_am_options = unserialize(get_option('qlcd_wp_chatbot_i_am')); |
| 920 |
$i_am_option = 'qlcd_wp_chatbot_i_am'; |
| 921 |
$i_am_text = __('I am', 'wpchatbot'); |
| 922 |
$this->qcld_wb_chatbot_dynamic_multi_option($i_am_options, $i_am_option, $i_am_text); |
| 923 |
?> |
| 924 |
</div> |
| 925 |
<div class="form-group"> |
| 926 |
<?php |
| 927 |
$name_greeting_options = unserialize(get_option('qlcd_wp_chatbot_name_greeting')); |
| 928 |
$name_greeting_option = 'qlcd_wp_chatbot_name_greeting'; |
| 929 |
$name_greeting_text = __('Nice to meet you', 'wpchatbot'); |
| 930 |
$this->qcld_wb_chatbot_dynamic_multi_option($name_greeting_options, $name_greeting_option, $name_greeting_text); |
| 931 |
?> |
| 932 |
</div> |
| 933 |
<div class="form-group"> |
| 934 |
<?php |
| 935 |
$wildcard_msg_options = unserialize(get_option('qlcd_wp_chatbot_wildcard_msg')); |
| 936 |
$wildcard_msg_option = 'qlcd_wp_chatbot_wildcard_msg'; |
| 937 |
$wildcard_msg_text = __('I am here to find what you need. What are you looking for?', 'wpchatbot'); |
| 938 |
$this->qcld_wb_chatbot_dynamic_multi_option($wildcard_msg_options, $wildcard_msg_option, $wildcard_msg_text); |
| 939 |
?> |
| 940 |
</div> |
| 941 |
<div class="form-group"> |
| 942 |
<?php |
| 943 |
$empty_filter_msgs = unserialize(get_option('qlcd_wp_chatbot_empty_filter_msg')); |
| 944 |
$empty_filter_msg = 'qlcd_wp_chatbot_empty_filter_msg'; |
| 945 |
$empty_filter_msg_text = __('Sorry, I did not understand that', 'wpchatbot'); |
| 946 |
$this->qcld_wb_chatbot_dynamic_multi_option($empty_filter_msgs, $empty_filter_msg, $empty_filter_msg_text); |
| 947 |
?> |
| 948 |
</div> |
| 949 |
|
| 950 |
<h4 class="text-success"> <?php _e('Message setting for Editor Box ', 'wpchatbot'); ?></h4> |
| 951 |
<div class="form-group"> |
| 952 |
<?php |
| 953 |
$is_typing_options = unserialize(get_option('qlcd_wp_chatbot_is_typing')); |
| 954 |
$is_typing_option = 'qlcd_wp_chatbot_is_typing'; |
| 955 |
$is_typing_text = __('is typing...', 'wpchatbot'); |
| 956 |
$this->qcld_wb_chatbot_dynamic_multi_option($is_typing_options, $is_typing_option, $is_typing_text); |
| 957 |
?> |
| 958 |
</div> |
| 959 |
<div class="form-group"> |
| 960 |
<?php |
| 961 |
$send_a_msg_options = unserialize(get_option('qlcd_wp_chatbot_send_a_msg')); |
| 962 |
$send_a_msg_option = 'qlcd_wp_chatbot_send_a_msg'; |
| 963 |
$send_a_msg_text =__('Send a message', 'wpchatbot'); |
| 964 |
$this->qcld_wb_chatbot_dynamic_multi_option($send_a_msg_options, $send_a_msg_option, $send_a_msg_text); |
| 965 |
?> |
| 966 |
</div> |
| 967 |
<div class="form-group"> |
| 968 |
<?php |
| 969 |
$choose_option_options = unserialize(get_option('qlcd_wp_chatbot_choose_option')); |
| 970 |
$choose_option_option = 'qlcd_wp_chatbot_choose_option'; |
| 971 |
$choose_option_text = __('Choose an option', 'wpchatbot'); |
| 972 |
$this->qcld_wb_chatbot_dynamic_multi_option($choose_option_options, $choose_option_option, $choose_option_text); |
| 973 |
?> |
| 974 |
</div> |
| 975 |
|
| 976 |
|
| 977 |
|
| 978 |
<div class="form-group"> |
| 979 |
<?php |
| 980 |
$asking_email_options = unserialize(get_option('qlcd_wp_chatbot_asking_email')); |
| 981 |
$asking_email_option = 'qlcd_wp_chatbot_asking_email'; |
| 982 |
$asking_email_text = __('Please provide your email address', 'wpchatbot'); |
| 983 |
$this->qcld_wb_chatbot_dynamic_multi_option($asking_email_options, $asking_email_option, $asking_email_text); |
| 984 |
?> |
| 985 |
</div> |
| 986 |
<div class="form-group"> |
| 987 |
<?php |
| 988 |
$invalid_email_options = unserialize(get_option('qlcd_wp_chatbot_invalid_email')); |
| 989 |
$invalid_email_option = 'qlcd_wp_chatbot_invalid_email'; |
| 990 |
$invalid_email_text = __('Sorry, Email address is not valid! Please provide a valid email.', 'wpchatbot'); |
| 991 |
$this->qcld_wb_chatbot_dynamic_multi_option($invalid_email_options, $invalid_email_option, $invalid_email_text); |
| 992 |
?> |
| 993 |
</div> |
| 994 |
<div class="form-group"> |
| 995 |
<?php |
| 996 |
$asking_msg_options = unserialize(get_option('qlcd_wp_chatbot_asking_msg')); |
| 997 |
$asking_msg_option = 'qlcd_wp_chatbot_asking_msg'; |
| 998 |
$asking_msg_text = __('Thank you for email address. Please write your message now.', 'wpchatbot'); |
| 999 |
$this->qcld_wb_chatbot_dynamic_multi_option($asking_msg_options, $asking_msg_option, $asking_msg_text); |
| 1000 |
?> |
| 1001 |
</div> |
| 1002 |
|
| 1003 |
|
| 1004 |
|
| 1005 |
<div class="form-group"> |
| 1006 |
<h4 class="qc-opt-title"><?php _e('WPBot Support Mail Subject', 'wpchatbot'); ?></h4> |
| 1007 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 1008 |
name="qlcd_wp_chatbot_email_sub" |
| 1009 |
value="<?php echo(get_option('qlcd_wp_chatbot_email_sub') != '' ? get_option('qlcd_wp_chatbot_email_sub') : 'Support Email Subject'); ?>"> |
| 1010 |
</div> |
| 1011 |
|
| 1012 |
<div class="form-group"> |
| 1013 |
<?php |
| 1014 |
$support_option_again_options = unserialize(get_option('qlcd_wp_chatbot_support_option_again')); |
| 1015 |
$support_option_again_option = 'qlcd_wp_chatbot_support_option_again'; |
| 1016 |
$support_option_again_text = __('You may choose option from below.', 'wpchatbot'); |
| 1017 |
$this->qcld_wb_chatbot_dynamic_multi_option($support_option_again_options, $support_option_again_option, $support_option_again_text); |
| 1018 |
?> |
| 1019 |
</div> |
| 1020 |
|
| 1021 |
<div class="form-group"> |
| 1022 |
<h4 class="qc-opt-title"><?php _e('Your email was sent successfully.Thanks!', 'wpchatbot'); ?></h4> |
| 1023 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 1024 |
name="qlcd_wp_chatbot_email_sent" |
| 1025 |
value="<?php echo(get_option('qlcd_wp_chatbot_email_sent') != '' ? get_option('qlcd_wp_chatbot_email_sent') : 'Your email was sent successfully.Thanks!'); ?>"> |
| 1026 |
</div> |
| 1027 |
<div class="form-group"> |
| 1028 |
<h4 class="qc-opt-title"><?php _e('Sorry! I could not send your mail! Please contact the webmaster.', 'wpchatbot'); ?></h4> |
| 1029 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 1030 |
name="qlcd_wp_chatbot_email_fail" |
| 1031 |
value="<?php echo(get_option('qlcd_wp_chatbot_email_fail') != '' ? get_option('qlcd_wp_chatbot_email_fail') : 'Sorry! fail to send email'); ?>"> |
| 1032 |
</div> |
| 1033 |
|
| 1034 |
|
| 1035 |
|
| 1036 |
<div class="form-group"> |
| 1037 |
<?php |
| 1038 |
$support_phone_options = unserialize(get_option('qlcd_wp_chatbot_support_phone')); |
| 1039 |
$support_phone_option = 'qlcd_wp_chatbot_support_phone'; |
| 1040 |
$support_phone_text = __('Leave your number. We will call you back!', 'wpchatbot'); |
| 1041 |
$this->qcld_wb_chatbot_dynamic_multi_option($support_phone_options, $support_phone_option, $support_phone_text); |
| 1042 |
?> |
| 1043 |
</div> |
| 1044 |
<div class="form-group"> |
| 1045 |
<?php |
| 1046 |
$asking_phone_options = unserialize(get_option('qlcd_wp_chatbot_asking_phone')); |
| 1047 |
$asking_phone_option = 'qlcd_wp_chatbot_asking_phone'; |
| 1048 |
$asking_phone_text = __('Please provide your Phone number', 'wpchatbot'); |
| 1049 |
$this->qcld_wb_chatbot_dynamic_multi_option($asking_phone_options, $asking_phone_option, $asking_phone_text); |
| 1050 |
?> |
| 1051 |
</div> |
| 1052 |
<div class="form-group"> |
| 1053 |
<?php |
| 1054 |
$thanks_phone_options = unserialize(get_option('qlcd_wp_chatbot_thank_for_phone')); |
| 1055 |
$thanks_phone_option = 'qlcd_wp_chatbot_thank_for_phone'; |
| 1056 |
$thanks_phone_text = __('Thank you for Phone number', 'wpchatbot'); |
| 1057 |
$this->qcld_wb_chatbot_dynamic_multi_option($thanks_phone_options, $thanks_phone_option, $thanks_phone_text); |
| 1058 |
?> |
| 1059 |
</div> |
| 1060 |
|
| 1061 |
<div class="form-group"> |
| 1062 |
<h4 class="qc-opt-title"><?php _e('Thanks for your phone number. We will call you ASAP!', 'wpchatbot'); ?></h4> |
| 1063 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 1064 |
name="qlcd_wp_chatbot_phone_sent" |
| 1065 |
value="<?php echo(get_option('qlcd_wp_chatbot_phone_sent') != '' ? get_option('qlcd_wp_chatbot_phone_sent') : 'Thanks for your phone number. We will call you ASAP!'); ?>"> |
| 1066 |
</div> |
| 1067 |
<div class="form-group"> |
| 1068 |
<h4 class="qc-opt-title"><?php _e('Sorry! I could not collect phone number! Please contact the webmaster.', 'wpchatbot'); ?></h4> |
| 1069 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 1070 |
name="qlcd_wp_chatbot_phone_fail" |
| 1071 |
value="<?php echo(get_option('qlcd_wp_chatbot_phone_fail') != '' ? get_option('qlcd_wp_chatbot_phone_fail') : 'Sorry! I could not collect phone number!'); ?>"> |
| 1072 |
</div> |
| 1073 |
|
| 1074 |
|
| 1075 |
|
| 1076 |
|
| 1077 |
|
| 1078 |
|
| 1079 |
</div> |
| 1080 |
</div> |
| 1081 |
</div> |
| 1082 |
</div> |
| 1083 |
|
| 1084 |
<div id="wp-chatbot-lng-support" class="tab-pane fade"> |
| 1085 |
<div class="top-section"> |
| 1086 |
<div class="row"> |
| 1087 |
<div class="col-xs-12" id="wp-chatbot-language-section"> |
| 1088 |
<div class="form-group"> |
| 1089 |
<?php |
| 1090 |
$wildcard_support_options = unserialize(get_option('qlcd_wp_chatbot_wildcard_support')); |
| 1091 |
$wildcard_support_option = 'qlcd_wp_chatbot_wildcard_support'; |
| 1092 |
$wildcard_support_text = __('FAQ', 'wpchatbot'); |
| 1093 |
$this->qcld_wb_chatbot_dynamic_multi_option($wildcard_support_options, $wildcard_support_option, $wildcard_support_text); |
| 1094 |
?> |
| 1095 |
</div> |
| 1096 |
<div class="form-group"> |
| 1097 |
<?php |
| 1098 |
$support_welcome_options = unserialize(get_option('qlcd_wp_chatbot_support_welcome')); |
| 1099 |
$support_welcome_option = 'qlcd_wp_chatbot_support_welcome'; |
| 1100 |
$support_welcome_text = __('Welcome to FAQ Section', 'wpchatbot'); |
| 1101 |
$this->qcld_wb_chatbot_dynamic_multi_option($support_welcome_options, $support_welcome_option, $support_welcome_text); |
| 1102 |
?> |
| 1103 |
</div> |
| 1104 |
<!--<div class="form-group"> |
| 1105 |
<?php |
| 1106 |
$support_email_options = unserialize(get_option('qlcd_wp_chatbot_support_email')); |
| 1107 |
$support_email_option = 'qlcd_wp_chatbot_support_email'; |
| 1108 |
$support_email_text = __('Click me if you want to send us a email.', 'wpchatbot'); |
| 1109 |
$this->qcld_wb_chatbot_dynamic_multi_option($support_email_options, $support_email_option, $support_email_text); |
| 1110 |
?> |
| 1111 |
</div>--> |
| 1112 |
|
| 1113 |
|
| 1114 |
<!--<div class="form-group"> |
| 1115 |
<?php |
| 1116 |
$feedback_label_options = unserialize(get_option('qlcd_wp_chatbot_feedback_label')); |
| 1117 |
$feedback_label_option = 'qlcd_wp_chatbot_feedback_label'; |
| 1118 |
$feedback_label_text = __('Send Feedback!', 'wpchatbot'); |
| 1119 |
$this->qcld_wb_chatbot_dynamic_multi_option($feedback_label_options, $feedback_label_option, $feedback_label_text); |
| 1120 |
?> |
| 1121 |
</div>--> |
| 1122 |
|
| 1123 |
|
| 1124 |
</div> |
| 1125 |
</div> |
| 1126 |
</div> |
| 1127 |
</div> |
| 1128 |
|
| 1129 |
<div id="wp-chatbot-lng-system-keyword" class="tab-pane fade"> |
| 1130 |
<div class="top-section"> |
| 1131 |
<div class="row"> |
| 1132 |
<div class="col-xs-12" id="wp-chatbot-language-section"> |
| 1133 |
<div class="form-group"> |
| 1134 |
<h4 class="qc-opt-title"><?php _e('Start Keyword', 'wpchatbot'); ?></h4> |
| 1135 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 1136 |
name="qlcd_wp_chatbot_sys_key_help" |
| 1137 |
value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_help') != '' ? get_option('qlcd_wp_chatbot_sys_key_help') : 'start'); ?>"> |
| 1138 |
</div> |
| 1139 |
|
| 1140 |
|
| 1141 |
|
| 1142 |
<div class="form-group"> |
| 1143 |
<h4 class="qc-opt-title"><strong><?php _e('FAQ', 'wpchatbot'); ?></strong> <?php _e('Keyword', 'wpchatbot'); ?></h4> |
| 1144 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 1145 |
name="qlcd_wp_chatbot_sys_key_support" |
| 1146 |
value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_support') != '' ? get_option('qlcd_wp_chatbot_sys_key_support') : 'faq'); ?>"> |
| 1147 |
</div> |
| 1148 |
<div class="form-group"> |
| 1149 |
<h4 class="qc-opt-title"><strong><?php _e('Converstion History Clear', 'wpchatbot'); ?></strong> <?php _e('Keyword', 'wpchatbot'); ?></h4> |
| 1150 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 1151 |
name="qlcd_wp_chatbot_sys_key_reset" |
| 1152 |
value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_reset') != '' ? get_option('qlcd_wp_chatbot_sys_key_reset') : 'reset'); ?>"> |
| 1153 |
</div> |
| 1154 |
<div class="form-group"> |
| 1155 |
<?php |
| 1156 |
$help_welcome_options = unserialize(get_option('qlcd_wp_chatbot_help_welcome')); |
| 1157 |
$help_welcome_option = 'qlcd_wp_chatbot_help_welcome'; |
| 1158 |
$help_welcome_text = 'Welcome to Help Section'; |
| 1159 |
$this->qcld_wb_chatbot_dynamic_multi_option($help_welcome_options, $help_welcome_option, $help_welcome_text); |
| 1160 |
?> |
| 1161 |
</div> |
| 1162 |
<div class="form-group"> |
| 1163 |
<?php |
| 1164 |
$help_msg_options = unserialize(get_option('qlcd_wp_chatbot_help_msg')); |
| 1165 |
$help_msg_option = 'qlcd_wp_chatbot_help_msg'; |
| 1166 |
$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.'; |
| 1167 |
$this->qcld_wb_chatbot_dynamic_multi_option($help_msg_options, $help_msg_option, $help_msg_text); |
| 1168 |
?> |
| 1169 |
</div> |
| 1170 |
<div class="form-group"> |
| 1171 |
<?php |
| 1172 |
$reset_options = unserialize(get_option('qlcd_wp_chatbot_reset')); |
| 1173 |
$reset_option = 'qlcd_wp_chatbot_reset'; |
| 1174 |
$reset_text = 'Do you want to clear our chat history and start over?'; |
| 1175 |
$this->qcld_wb_chatbot_dynamic_multi_option($reset_options, $reset_option, $reset_text); |
| 1176 |
?> |
| 1177 |
</div> |
| 1178 |
</div> |
| 1179 |
<!-- col-xs-12--> |
| 1180 |
</div> |
| 1181 |
<!-- row--> |
| 1182 |
</div> |
| 1183 |
<!-- top-section--> |
| 1184 |
</div> |
| 1185 |
<!-- wp-chatbot-lng-system-keyword--> |
| 1186 |
</div> |
| 1187 |
<!-- tab-content--> |
| 1188 |
</section> |
| 1189 |
|
| 1190 |
|
| 1191 |
<!--<section id="section-flip-8"> |
| 1192 |
<div class="top-section"> |
| 1193 |
<div class="wp-chatbot-language-center-summmery"> |
| 1194 |
<p><?php _e('WPBot will be opened based on the following settings', 'wpchatbot'); ?> </p> |
| 1195 |
</div> |
| 1196 |
<div class="row"> |
| 1197 |
<div class="col-xs-12"> |
| 1198 |
<h4 class="qc-opt-title"><?php _e('Enable Bot Activity Hour', 'wpchatbot'); ?> </h4> |
| 1199 |
<div class="cxsc-settings-blocks" style="padding:0 20px;"> |
| 1200 |
<input value="1" id="enable_wp_chatbot_opening_hour" type="checkbox" |
| 1201 |
name="enable_wp_chatbot_opening_hour" <?php echo(get_option('enable_wp_chatbot_opening_hour') == 1 ? 'checked' : ''); ?>> |
| 1202 |
<label for="enable_wp_chatbot_opening_hour"><?php _e('If enabled WPBot will show only during the time schedule you set below. The timezone you set from WordPress general settings will be used.', 'wpchatbot'); ?> </label> |
| 1203 |
</div> |
| 1204 |
</div> |
| 1205 |
</div> |
| 1206 |
<style> |
| 1207 |
.wp-chatbot-hours-container{ |
| 1208 |
padding:0px 0 15px 0; |
| 1209 |
display: flex; |
| 1210 |
justify-content: space-between; |
| 1211 |
} |
| 1212 |
.wp-chatbot-hours{ |
| 1213 |
/*width:75%;*/ |
| 1214 |
display: inline-block; |
| 1215 |
} |
| 1216 |
.wp-chatbot-hours input{ |
| 1217 |
display: inline-block; |
| 1218 |
width: 40%; |
| 1219 |
padding-right: 10px; |
| 1220 |
text-align: center; |
| 1221 |
} |
| 1222 |
.wp-chatbot-hours-remove{ |
| 1223 |
display: inline-block; |
| 1224 |
/*width:20%;*/ |
| 1225 |
} |
| 1226 |
</style> |
| 1227 |
<div class="row" id="wp-chatbot-hours-wrapper"> |
| 1228 |
<div class="col-xs-12"> |
| 1229 |
<h4 class="qc-opt-title"><?php _e('WPBot Bot Activity Hours', 'wpchatbot'); ?> </h4> |
| 1230 |
<?php |
| 1231 |
|
| 1232 |
if(get_option('wpwbot_hours')){ |
| 1233 |
$wpwbot_times=unserialize(get_option('wpwbot_hours')); |
| 1234 |
}else{ |
| 1235 |
$wpwbot_times=array(); |
| 1236 |
} |
| 1237 |
?> |
| 1238 |
<div class="row"> |
| 1239 |
<div class="col-xs-3">Monday</div> |
| 1240 |
<div class="col-xs-4 wp-chatbot-day"> |
| 1241 |
<?php |
| 1242 |
$this->wp_chatbot_opening_hours('monday',$wpwbot_times); |
| 1243 |
?> |
| 1244 |
</div> |
| 1245 |
<div class="col-xs-3"> |
| 1246 |
<button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="monday"> |
| 1247 |
<i class="fa fa-plus" aria-hidden="true"></i> Add |
| 1248 |
</button> |
| 1249 |
</div> |
| 1250 |
</div> |
| 1251 |
<div class="row"> |
| 1252 |
<div class="col-xs-3">Tuesday</div> |
| 1253 |
<div class="col-xs-4 wp-chatbot-day"> |
| 1254 |
<?php |
| 1255 |
$this->wp_chatbot_opening_hours('tuesday',$wpwbot_times); |
| 1256 |
?> |
| 1257 |
</div> |
| 1258 |
<div class="col-xs-3"> |
| 1259 |
<button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="tuesday"> |
| 1260 |
<i class="fa fa-plus" aria-hidden="true"></i> Add |
| 1261 |
</button> |
| 1262 |
</div> |
| 1263 |
</div> |
| 1264 |
<div class="row"> |
| 1265 |
<div class="col-xs-3">Wednesday</div> |
| 1266 |
<div class="col-xs-4 wp-chatbot-day"> |
| 1267 |
<?php |
| 1268 |
$this->wp_chatbot_opening_hours('wednesday',$wpwbot_times); |
| 1269 |
?> |
| 1270 |
</div> |
| 1271 |
<div class="col-xs-3"> |
| 1272 |
<button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="wednesday"> |
| 1273 |
<i class="fa fa-plus" aria-hidden="true"></i> Add |
| 1274 |
</button> |
| 1275 |
</div> |
| 1276 |
</div> |
| 1277 |
<div class="row"> |
| 1278 |
<div class="col-xs-3">Thursday</div> |
| 1279 |
<div class="col-xs-4 wp-chatbot-day"> |
| 1280 |
<?php |
| 1281 |
$this->wp_chatbot_opening_hours('thursday',$wpwbot_times); |
| 1282 |
?> |
| 1283 |
</div> |
| 1284 |
<div class="col-xs-3"> |
| 1285 |
<button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="thursday"> |
| 1286 |
<i class="fa fa-plus" aria-hidden="true"></i> Add |
| 1287 |
</button> |
| 1288 |
</div> |
| 1289 |
</div> |
| 1290 |
<div class="row"> |
| 1291 |
<div class="col-xs-3">Friday</div> |
| 1292 |
<div class="col-xs-4 wp-chatbot-day"> |
| 1293 |
<?php |
| 1294 |
$this->wp_chatbot_opening_hours('friday',$wpwbot_times); |
| 1295 |
?> |
| 1296 |
</div> |
| 1297 |
<div class="col-xs-3"> |
| 1298 |
<button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="friday"> |
| 1299 |
<i class="fa fa-plus" aria-hidden="true"></i> Add |
| 1300 |
</button> |
| 1301 |
</div> |
| 1302 |
</div> |
| 1303 |
<div class="row"> |
| 1304 |
<div class="col-xs-3">Saturday</div> |
| 1305 |
<div class="col-xs-4 wp-chatbot-day"> |
| 1306 |
<?php |
| 1307 |
$this->wp_chatbot_opening_hours('saturday',$wpwbot_times); |
| 1308 |
?> |
| 1309 |
</div> |
| 1310 |
<div class="col-xs-3"> |
| 1311 |
<button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="saturday"> |
| 1312 |
<i class="fa fa-plus" aria-hidden="true"></i> Add |
| 1313 |
</button> |
| 1314 |
</div> |
| 1315 |
</div> |
| 1316 |
<div class="row"> |
| 1317 |
<div class="col-xs-3">Sunday</div> |
| 1318 |
<div class="col-xs-4 wp-chatbot-day"> |
| 1319 |
<?php |
| 1320 |
$this->wp_chatbot_opening_hours('sunday',$wpwbot_times); |
| 1321 |
?> |
| 1322 |
</div> |
| 1323 |
<div class="col-xs-3"> |
| 1324 |
<button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="sunday"> |
| 1325 |
<i class="fa fa-plus" aria-hidden="true"></i> Add |
| 1326 |
</button> |
| 1327 |
</div> |
| 1328 |
</div> |
| 1329 |
</div> |
| 1330 |
</div> |
| 1331 |
</div> |
| 1332 |
|
| 1333 |
</section>--> |
| 1334 |
<section id="section-flip-9"> |
| 1335 |
<div class="top-section"> |
| 1336 |
<div class="wp-chatbot-language-center-summmery"> |
| 1337 |
<p><?php _e('DialogFlow as Artificial Intelligences Engine for wpwBot', 'wpchatbot'); ?> </p> |
| 1338 |
</div> |
| 1339 |
<div class="row"> |
| 1340 |
<div class="col-xs-12"> |
| 1341 |
<p class="wpqcld_chk_seft"> |
| 1342 |
<a target="_blank" href="https://www.quantumcloud.com/custom-chatbot-services/"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL ?>/chatbot-custom-service.jpg" alt="" /></a> |
| 1343 |
</p> |
| 1344 |
</div> |
| 1345 |
</div> |
| 1346 |
<div class="row"> |
| 1347 |
<div class="col-xs-12"> |
| 1348 |
<h4 class="qc-opt-title"><?php _e('Enable DialogFlow as AI Engine to Detect Intent', 'wpchatbot'); ?> </h4> |
| 1349 |
<div class="cxsc-settings-blocks"> |
| 1350 |
<input value="1" id="enable_wp_chatbot_dailogflow" type="checkbox" |
| 1351 |
name="enable_wp_chatbot_dailogflow" <?php echo(get_option('enable_wp_chatbot_dailogflow') == 1 ? 'checked' : ''); ?>> |
| 1352 |
<label for="enable_wp_chatbot_dailogflow"><?php _e('Enable DialogFlow AI Engine to process Natural Language commands from users.', 'wpchatbot'); ?> </label> |
| 1353 |
</div> |
| 1354 |
</div> |
| 1355 |
<div class="col-xs-12"> |
| 1356 |
<br> |
| 1357 |
<p><?php _e('You will need an Access Token from DialogFlow. Log in to DialogFlow Console from', 'wpchatbot'); ?> |
| 1358 |
<a style="text-decoration:underline;color:blue" href="https://dialogflow.com/" target="_blank"><?php _e('Here', 'wpchatbot'); ?></a> <?php _e('with your gmail account. Create a new agent and copy the Client Access Token from Settings.', 'wpchatbot'); ?> </p> |
| 1359 |
|
| 1360 |
<p><a style="text-decoration:underline;color:blue" href="<?php echo QCLD_wpCHATBOT_PLUGIN_URL; ?>download/wpwBot.zip" download ><?php _e('Download', 'wpchatbot'); ?></a> <?php _e('the agent training data and import from DialogFlow->Settings->Export and Import tab. You can add or modify Training phrases under the Intents. But .', 'wpchatbot'); ?><b><?php _e('do NOT modify or delete the Intents we have created.', 'wpchatbot'); ?></b> </p> |
| 1361 |
</div> |
| 1362 |
|
| 1363 |
<div class="col-xs-12" id="wp-chatbot-dialflow-section"> |
| 1364 |
<div class="form-group"> |
| 1365 |
<h4 class="qc-opt-title"><?php _e('DialogFlow client Access Token', 'wpchatbot'); ?></h4> |
| 1366 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 1367 |
name="qlcd_wp_chatbot_dialogflow_client_token" |
| 1368 |
value="<?php echo(get_option('qlcd_wp_chatbot_dialogflow_client_token') != '' ? get_option('qlcd_wp_chatbot_dialogflow_client_token') : ''); ?>" placeholder="<?php _e('DialogFlow Client Access Token', 'wpchatbot'); ?>"> |
| 1369 |
</div> |
| 1370 |
<div class="form-group"> |
| 1371 |
<h4 class="qc-opt-title"><?php _e('DialofFlow Defualt reply', 'wpchatbot'); ?></h4> |
| 1372 |
<input type="text" class="form-control qc-opt-dcs-font" |
| 1373 |
name="qlcd_wp_chatbot_dialogflow_defualt_reply" |
| 1374 |
value="<?php echo(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 _e('DialogFlow defualt reply', 'wpchatbot'); ?>"> |
| 1375 |
</div> |
| 1376 |
</div> |
| 1377 |
</div> |
| 1378 |
</div> |
| 1379 |
|
| 1380 |
</section> |
| 1381 |
<!--<section id="section-flip-10"> |
| 1382 |
<div class="wp-chatbot-language-center-summmery"> |
| 1383 |
<p><?php _e('Enable the Mobile App feature ONLY if you bought ', 'wpchatbot'); ?> <a target="_blank" href="https://www.quantumcloud.com/products/wpcommerce-chatbot-wpwbot/#app"><?php _e(' the Mobile App Addon.', 'wpchatbot'); ?></a> |
| 1384 |
</div> |
| 1385 |
<div class="top-section"> |
| 1386 |
<div class="row"> |
| 1387 |
<div class="col-xs-12"> |
| 1388 |
<h4 class="qc-opt-title"><?php _e('Mobile App Pages', 'wpchatbot'); ?> </h4> |
| 1389 |
<div class="cxsc-settings-blocks"> |
| 1390 |
<input value="1" id="wp_chatbot_app_pages" type="checkbox" |
| 1391 |
name="wp_chatbot_app_pages" <?php echo(get_option('wp_chatbot_app_pages') == 1 ? 'checked' : ''); ?>> |
| 1392 |
<label for="wp_chatbot_app_pages"><?php _e('Create pages for WpBot Mobile App', 'wpchatbot'); ?> </label> |
| 1393 |
</div> |
| 1394 |
<br> |
| 1395 |
<p class="qc-opt-title-font"><?php _e('Following pages will be created to use in', 'wpchatbot'); ?> <strong> <?php _e('WpBot', 'wpchatbot'); ?> </strong> <?php _e(' Android or IOS Mobile App', 'wpchatbot'); ?>.</p> |
| 1396 |
<ol> |
| 1397 |
<li><?php _e('WpBot Mobile App', 'wpchatbot'); ?></li> |
| 1398 |
<li><?php _e('WpBot App Checkout', 'wpchatbot'); ?></li> |
| 1399 |
<li><?php _e('WpBot App Order Thank You', 'wpchatbot'); ?></li> |
| 1400 |
</ol> |
| 1401 |
<p class="qc-opt-title-font"><?php _e('Follow the', 'wpchatbot'); ?> <strong> <?php _e('Documentation', 'wpchatbot'); ?> </strong> <?php _e('to build & publish a Mobile Application (Android or IOS ) for your store using any of', 'wpchatbot'); ?> </p> |
| 1402 |
<ol> |
| 1403 |
<li><?php _e('WpBot Ionic FrameWork package', 'wpchatbot'); ?></li> |
| 1404 |
<li><?php _e('WpBot PhoneGap package', 'wpchatbot'); ?></li> |
| 1405 |
</ol> |
| 1406 |
</div> |
| 1407 |
</div> |
| 1408 |
</div> |
| 1409 |
|
| 1410 |
</section>--> |
| 1411 |
<section id="section-flip-11"> |
| 1412 |
<div class="top-section"> |
| 1413 |
<div class="row"> |
| 1414 |
<div class="col-xs-12"> |
| 1415 |
<h4 class="qc-opt-dcs"><?php _e('You can paste or write your custom css here.', 'wpchatbot'); ?></h4> |
| 1416 |
<textarea name="wp_chatbot_custom_css" |
| 1417 |
class="form-control wp-chatbot-custom-css" |
| 1418 |
cols="10" |
| 1419 |
rows="16"><?php echo get_option('wp_chatbot_custom_css'); ?></textarea> |
| 1420 |
</div> |
| 1421 |
</div> |
| 1422 |
<!-- row--> |
| 1423 |
</div> |
| 1424 |
</section> |
| 1425 |
</div><!-- /content --> |
| 1426 |
</div><!-- /wp-chatbot-tabs --> |
| 1427 |
<footer class="wp-chatbot-admin-footer"> |
| 1428 |
<div class="row"> |
| 1429 |
<div class="text-left col-sm-3 col-sm-offset-3"> |
| 1430 |
<input type="button" class="btn btn-warning submit-button" |
| 1431 |
id="qcld-wp-chatbot-reset-option" |
| 1432 |
value="<?php _e('Reset all options to Default', 'wpchatbot'); ?>"/> |
| 1433 |
</div> |
| 1434 |
<div class="text-right col-sm-6"> |
| 1435 |
<input type="submit" class="btn btn-primary submit-button" name="submit" |
| 1436 |
id="submit" value="<?php _e('Save Settings', 'wpchatbot'); ?>"/> |
| 1437 |
</div> |
| 1438 |
</div> |
| 1439 |
<!-- row--> |
| 1440 |
</footer> |
| 1441 |
</section> |
| 1442 |
</div> |
| 1443 |
<?php wp_nonce_field('wp_chatbot'); ?> |
| 1444 |
</form> |