PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.7.7
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.7.7
8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 8.5.2 All 533 releases
chatbot / includes / simple_text_response.php

simple_text_response.php in WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services 8.7.7, at includes/simple_text_response.php

638 lines 19.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5 global $wpdb;
6 ?>
7
8 <?php
9 if(isset($_GET['opt']) && $_GET['opt']=='add'):
10
11 do_action('qcld_str_add_category');
12
13 elseif(isset($_GET['opt']) && $_GET['opt']=='edit'):
14
15 do_action('qcld_str_edit_category');
16
17 elseif(isset($_GET['page']) && $_GET['page']=='simple-text-response' && isset($_GET['action']) && $_GET['action']=='import'):
18
19 do_action('qcld_str_import');
20
21 elseif(isset($_GET['action']) && wp_unslash($_GET['action'])=='manage-categories'):
22
23 include_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH.'/includes/templates/manage-categories.php');
24
25 elseif(isset($_GET['action']) && wp_unslash($_GET['action'])=='edit'):
26
27 if(class_exists('Qcld_str_pro')):
28 do_action('qcld_str_pro_stredit');
29 else:
30
31 $hasEdit = false;
32 if(isset($_GET['query']) && wp_unslash($_GET['query'])!=''){
33 $hasEdit = true;
34 $id = sanitize_text_field(wp_unslash($_GET['query']));
35 $table = $wpdb->prefix.'wpbot_response';
36 $data = $wpdb->get_row($wpdb->prepare("select * from {$table} where id = %d", $id)); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, PluginCheck.Security.DirectDB.UnescapedDBParameter
37 }
38 ?>
39 <div class="qcld-wp-chatbot-wrap-header">
40
41 <div class="qcld-wp-chatbot-wrap-header-logo"><a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a>
42 <p><strong>Core Version:</strong> v<?php echo esc_html( QCLD_wpCHATBOT_VERSION ); ?></p>
43 </div>
44 <ul class="qcld-wp-chatbot-wrap-version-wrapper">
45 <li>
46 <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a>
47
48 </li>
49 </ul>
50 </div>
51 <div class="TextResponsesoutside">
52 <div class="qcwrap TextResponses">
53 <div class="wp-chatbot-wrap">
54 <div class="wpbot_dashboard_header "><h1><?php echo ($hasEdit?'Edit':'Add') ?> Response</h1></div>
55 <form method="post" action="">
56 <div class="wpbot_addons_section ">
57 <div class="wpbot_single_addon_wrapper2">
58 <p><b><?php esc_html_e('Please note the following ', 'chatbot'); ?></b></p>
59 <ul>
60 <li> <?php esc_html_e('1. The Query, Response and Keywords fields will be searched. Add Keywords for best matches', 'chatbot'); ?></li>
61 <li> <?php esc_html_e('2. Please clear browser Cache and Cookies both before testing new responses', 'chatbot'); ?></li>
62 </ul>
63 <table class="form-table-str form-table">
64 <tbody>
65 <tr valign="top">
66 <th scope="row"><?php esc_html_e('Query', 'chatbot'); ?></th>
67 <td>
68 <input name="str_nonce" type="hidden" value="<?php echo sanitize_key( wp_create_nonce('str-nonce') ); ?>" />
69 <input type="text" name="qc_bot_str_query" value="<?php echo esc_attr($hasEdit?$data->query:''); ?>" style="width: 100%;" required />
70 <br><i><?php esc_html_e('*Required. Add the query here. ', 'chatbot'); ?></i>
71 </td>
72 </tr>
73
74 <tr valign="top">
75 <th scope="row"> <?php esc_html_e('Response', 'chatbot'); ?></th>
76 <td>
77 <?php
78
79 $content = ($hasEdit?$data->response:'');
80 $editor_id = 'qc_bot_str_response';
81 $settings = array( );
82
83 wp_editor( $content, $editor_id, $settings );
84
85 ?>
86 <br><i><?php esc_html_e('*Required. Add the response here. ', 'chatbot'); ?></i>
87 </td>
88 </tr>
89 <tr valign="top">
90 <th scope="row">Keyword</th>
91 <td>
92 <input type="text" name="qc_bot_str_keyword" value="<?php echo esc_attr($hasEdit?$data->keyword:''); ?>" style="width: 100%;" />
93 <br><i> <?php esc_html_e('Optional. Add multiple keyword or phrases as comma(,) seperated value. It will help to find the best match result.', 'chatbot'); ?></i>
94 </td>
95 </tr>
96
97
98 <?php if($hasEdit): ?>
99
100 <input type="hidden" name="qc_bot_str_id" value="<?php echo esc_attr($data->id); ?>" />
101
102 <?php endif; ?>
103 </tbody>
104 </table>
105 </div>
106 <footer class="wp-chatbot-admin-footer">
107 <div class="row">
108 <div class="text-left col-sm-3 col-sm-offset-3">
109
110 </div>
111 <div class="text-right col-sm-6">
112 <input type="submit" class="button button-primary" name="submit" id="submit" value="Save Settings">
113 </div>
114 </div>
115 <!-- row-->
116 </footer>
117 </div></form>
118 </div>
119 </div>
120 </div>
121 <?php endif; ?>
122
123
124 <?php else: ?>
125
126 <div class="qcld-wp-chatbot-wrap-header">
127
128 <a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a>
129 <p><strong>Core Version:</strong> v<?php echo esc_html( QCLD_wpCHATBOT_VERSION ); ?></p>
130 <ul class="qcld-wp-chatbot-wrap-version-wrapper">
131 <li>
132 <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a>
133
134 </li>
135 </ul>
136 </div>
137
138 <div class="qcld-wp-chatbot-wrap-header_inn">
139 <div class="qcld-wp-chatbot-wrap-header_inn_heading">
140 <h1 class="wp-heading-inline"><?php esc_html_e('Simple Text Responses', 'chatbot'); ?></h1>
141 <a style="visibility: hidden;" href="<?php echo esc_url( add_query_arg( 'action', 'edit', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action"><?php esc_html_e('Add New', 'chatbot'); ?></a>
142 </div>
143 <?php if(class_exists('Qcld_str_pro')): ?>
144
145 <a href="<?php echo esc_url( add_query_arg( 'action', 'manage-categories', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action"><?php esc_html_e('Manage Categories', 'chatbot'); ?></a>
146 <a href="<?php echo esc_url( admin_url( 'admin-post.php?action=qc_str_export' ) ); ?>" class="button page-title-action"><?php esc_html_e('Export', 'chatbot'); ?></a>
147 <a href="<?php echo esc_url( add_query_arg( 'action', 'import', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action"><?php esc_html_e('Import', 'chatbot'); ?></a>
148 </div>
149 <?php endif; ?>
150 <div class="TextResponsesouter">
151 <div class="wrap TextResponses">
152
153 <div id="qcld-show-more-wrapper-box">
154 <div class="qcld-show-more-text qcld-show-more-show-more-height">
155
156 <div class="wrapTexttop">
157 <p><?php esc_html_e('Create simple text responses and the ChatBot will use advanced search algorithm to answer user questions. This is a simpler alternative to OpenAI or DialogFlow.', 'chatbot'); ?><br>
158 <b><?php esc_html_e('NB: Simple Text Responses require mySQL Client version 5.6+', 'chatbot'); ?></b></p>
159 </div>
160 <form method="post" action="">
161 <table class="form-table-str form-table">
162 <tbody>
163 <tr valign="top">
164 <th scope="row"><?php esc_html_e('Phrase matching accuracy', 'chatbot'); ?></th>
165 <td>
166 <input name="str_nonce" type="hidden" value="<?php echo sanitize_key( wp_create_nonce('str-nonce') ); ?>" />
167 <input type="text" name="qc_bot_str_weight" value="<?php echo esc_attr( !empty(get_option('qc_bot_str_weight')) ? get_option('qc_bot_str_weight') : '0.4' ); ?>" style="width: 100%;" required />
168 <br><i><?php esc_html_e('Please enter a value between 0 to 1. Higher value means more exact matching of phrases.', 'chatbot'); ?></i>
169 </td>
170 </tr>
171 <tr valign="top">
172 <th scope="row"><?php esc_html_e('Search Fields', 'chatbot'); ?></th>
173 <td>
174 <?php
175 $fields = get_option('qc_bot_str_fields');
176 ?>
177
178 <label for="qc_bot_str_field_title"><?php esc_html_e('Title', 'chatbot'); ?></label>
179 <input id="qc_bot_str_field_title" type="checkbox" name="qc_bot_str_fields[]" value="query" <?php echo (!$fields?'checked="checked"':''); ?> <?php echo ($fields && in_array('query', $fields)?'checked="checked"':''); ?> />
180
181 <label for="qc_bot_str_field_keyword"><?php esc_html_e('Keyword', 'chatbot'); ?></label>
182 <input id="qc_bot_str_field_keyword" type="checkbox" name="qc_bot_str_fields[]" value="keyword" <?php echo (!$fields?'checked="checked"':''); ?> <?php echo ($fields && in_array('keyword', $fields)?'checked="checked"':''); ?> />
183
184 <label for="qc_bot_str_field_response"><?php esc_html_e('Response', 'chatbot'); ?></label>
185 <input id="qc_bot_str_field_response" type="checkbox" name="qc_bot_str_fields[]" value="response" <?php echo (!$fields?'checked="checked"':''); ?> <?php echo ($fields && in_array('response', $fields)?'checked="checked"':''); ?> />
186 <br><i><?php esc_html_e('Please check/uncheck to allow/disallow searching in that fields', 'chatbot'); ?></i>
187 </td>
188 </tr>
189 <?php
190 $current_user = wp_get_current_user();
191 if ( in_array( 'administrator', $current_user->roles )) {
192 ?>
193 <tr valign="top">
194 <th scope="row"><?php echo esc_html( 'Allow Author & Editor to edit STR' ); ?></th>
195 <td>
196 <input id="qc_bot_str_allow_author_editor" type="checkbox" name="qc_bot_str_allow_author_editor" value="1" <?php echo ( get_option( 'qc_bot_str_allow_author_editor' ) && get_option( 'qc_bot_str_allow_author_editor' ) == 1 ? 'checked="checked"' : '' ); ?> />
197 <label for="qc_bot_str_allow_author_editor"><?php echo esc_html( 'Allow Author & Editor to edit STR' ); ?></label>
198 <br><i><?php echo esc_html( 'Please enable to allow Author & Editor to edit STR.' ); ?></i>
199 </td>
200 </tr>
201 <?php } ?>
202 <tr valign="top">
203 <th scope="row"></th>
204 <td>
205 <input type="submit" class="button button-primary" name="submit" id="submit" value="Save Settings">
206 </td>
207 </tr>
208 </tbody>
209 </table>
210 </form>
211 <form method="post" action="">
212 <table class="form-table-str form-table">
213 <tbody>
214 <tr valign="top">
215 <th scope="row"><?php esc_html_e('Re-Index STR', 'chatbot'); ?></th>
216 <td>
217 <input name="str_nonce" type="hidden" value="<?php echo sanitize_key( wp_create_nonce('str-nonce') ); ?>" />
218 <input type="submit" class="button button-primary" name="qc-re-index" id="re-index" value="Re Index">
219
220 <i><?php esc_html_e('Re-Index if results are not as expected.', 'chatbot'); ?></i>
221 </td>
222 </tr>
223 </tbody>
224 </table>
225 </form>
226
227
228
229 </div>
230 <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div>
231 </div>
232
233 <div id="poststuff">
234 <div id="post-body" class="metabox-holder">
235 <div id="post-body-content-edit" class="str-form">
236 <div class="meta-box-sortables ui-sortable">
237 <form method="post">
238
239 <a href="<?php echo esc_url( add_query_arg( 'action', 'edit', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action str-addnew"><?php esc_html_e('Add New', 'chatbot'); ?></a>
240 <?php
241 $this->response_list->prepare_items();
242 $this->response_list->display(); ?>
243 </form>
244 </div>
245 </div>
246 </div>
247
248 </div>
249 </div>
250 </div>
251 <?php endif; ?>
252
253
254
255 <style>
256 /* WPBot design tokens — change colors here to theme the whole admin UI */
257 :root {
258 --woobot-primary: #5B4E96;
259 --woobot-primary-color: #5B4E96;
260 --woobot-primary-dark: #463a7a;
261 --woobot-primary-soft: #f3f1fa;
262 --woobot-primary-border: #e4e0f2;
263 --woobot-surface: #ffffff;
264 --woobot-page-bg: #F5F7FD;
265 --woobot-text: #2d2a3a;
266 --woobot-muted: #6b6680;
267 --woobot-danger: #e25563;
268 --woobot-nav-muted: #988FBD;
269 --woobot-primary-rgb: 91, 78, 150;
270 }
271
272 body {
273 background-color: var(--woobot-page-bg);
274 font-family: "DM Sans", sans-serif !important;
275 font-optical-sizing: auto;
276 font-size: 16px;
277 font-weight: normal;
278 }
279 .qcld-wp-chatbot-wrap-header {
280 display: flex;
281 column-gap: 15px;
282 row-gap: 10px;
283 background: #fff;
284 padding: 15px 15px;
285 margin: 20px 20px 20px 0;
286 border-radius: 16px;
287 align-items: center;
288 justify-content: space-between;
289 width: 97%;
290 }
291
292 .qcld-wp-chatbot-wrap-header img{
293 max-width: 50px;
294 }
295
296 .qcld-wp-chatbot-wrap-header ul, .qcld-wp-chatbot-wrap-header p, .qcld-wp-chatbot-wrap-header li{
297 margin: 0;
298 }
299 .qcld-wp-chatbot-wrap-header a.wpchatbot-Upgrade {
300 padding: 12px 25px;
301 background: #ffffff;
302 color: var(--woobot-primary);
303 border: 2px solid var(--woobot-primary);
304 border-radius: 6px;
305 font-weight: bold;
306 }
307
308 .qcld-wp-chatbot-wrap-header a.wpchatbot-Upgrade:hover {
309 padding: 12px 25px;
310 background: var(--woobot-primary);
311 color: #fff;
312 border: 2px solid var(--woobot-primary);
313 border-radius: 6px;
314 font-weight: bold;
315 text-decoration: none;
316 }
317 a.qcld-wp-chatbot-wrap-site__logo {
318 font-size: 22px;
319 color: #000;
320 font-weight: bold;
321 display: flex;
322 align-items: center;
323 gap: 12px;
324 text-decoration: none;
325 margin: 0;
326 padding: 0;
327 }
328
329 a{
330 text-decoration: none;
331 }
332 .qcld-wp-chatbot-wrap-header_inn {
333 background: #fff;
334 border-radius: 16px;
335 margin: 0 20px 0 0;
336 padding: 20px;
337 }
338 .TextResponsesoutside {
339 background: #fff;
340 border-radius: 16px;
341 margin: 0 20px 0 0;
342 padding: 20px;
343 }
344
345
346 .qcld-wp-chatbot-wrap-header_inn h1.wp-heading-inline {
347 border-bottom: 1px solid #eee;
348 padding: 0 0 15px 0;
349 margin: 20px 0 12px 0;
350 font-weight: bold;
351 font-size: 22px !important;
352 }
353
354 .TextResponsesoutside h1 {
355 border-bottom: 1px solid #eee;
356 padding: 0 0 8px 0;
357 margin: 20px 0 12px 0;
358 font-weight: bold;
359 font-size: 22px !important;
360 }
361 .TextResponsesoutside ul li {
362 font-size: 14px;
363 }
364 .wpbot_single_addon_wrapper2 p {
365 font-size: 16px;
366 }
367 .TextResponsesouter i {
368 font-weight: normal;
369 font-size: 12px;
370 color: red;
371 }
372 .TextResponsesoutside i {
373 font-weight: normal;
374 font-size: 12px;
375 color: red;
376 }
377
378 table.form-table-str.form-table tr {
379 background: #fff;
380 padding: 2px 10px !important;
381 border-radius: 6px;
382 margin: 0 0 8px 0;
383 border: 5px solid #fff;
384 vertical-align: middle;
385 border: 1px solid #eee;
386 }
387 table.form-table-str.form-table {
388 border: 1px solid #eee;
389 }
390 table.form-table-str.form-table tr {
391 border: none;
392 }
393 table.form-table-str.form-table th {
394 vertical-align: top;
395 text-align: center;
396 padding: 20px 10px 20px 0;
397 width: 200px;
398 line-height: 1.3;
399 font-weight: 600;
400 vertical-align: middle;
401 }
402
403 .TextResponsesoutside footer.wp-chatbot-admin-footer input#submit {
404 padding: 12px 20px;
405 width: 100%;
406 font-size: 16px;
407 font-weight: 500;
408 color: var(--woobot-nav-muted);
409 border-radius: 8px;
410 position: relative;
411 display: flex;
412 align-items: center;
413 gap: 15px;
414 background: var(--woobot-primary);
415 color: #ffffff;
416 text-decoration: none;
417 border: none;
418 max-width: 220px;
419 margin: 12px 0 0 0;
420 line-height: 24px;
421 }
422 .qcld-wp-chatbot-wrap-header_inn a.button.page-title-action {
423 padding: 3px 25px;
424 background: #ffffff;
425 color: var(--woobot-primary);
426 border: 2px solid var(--woobot-primary);
427 border-radius: 6px;
428 font-weight: bold;
429 }
430
431 .qcld-wp-chatbot-wrap-header_inn a.button.page-title-action:hover {
432 padding: 0px 15px;
433 background: var(--woobot-primary);
434 color: #fff;
435 border: 2px solid var(--woobot-primary);
436 border-radius: 6px;
437 font-weight: bold;
438 position: absolute;
439 top: 36px;
440 left: 280px;
441 }
442 .qcld-wp-chatbot-wrap-header_inn a.button.page-title-action {
443 padding: 0px 15px;
444 background: #ffffff;
445 color: var(--woobot-primary);
446 border: 2px solid var(--woobot-primary);
447 border-radius: 6px;
448 font-weight: bold;
449 position: absolute;
450 top: 36px;
451 left: 280px;
452 }
453
454 .qcld-wp-chatbot-wrap-header_inn {
455 position: relative;
456 }
457 .notice.is-dismissible.qcbot-str-top-notic {
458 width: 95%;
459 }
460
461 .TextResponsesouter i {
462 position: relative;
463 top: 6px;
464 }
465
466 table.form-table-str.form-table th {
467 text-align: left !important;
468 padding: 20px 10px 20px 20px !important;
469 }
470
471 .qc-review-text img {
472 width: 100%;
473 }
474
475 .TextResponsesouter input#submit {
476 padding: 0px 15px;
477 background: #ffffff;
478 color: var(--woobot-primary);
479 border: 2px solid var(--woobot-primary);
480 border-radius: 6px;
481 font-weight: bold;
482 }
483 .TextResponsesouter input#re-index {
484 padding: 0px 15px;
485 background: #ffffff;
486 color: var(--woobot-primary);
487 border: 2px solid var(--woobot-primary);
488 border-radius: 6px;
489 font-weight: bold;
490 }
491
492
493 #qcld-show-more-wrapper-box {
494 margin-top: 0;
495 position:relative;
496 }
497 #qcld-show-more-wrapper-box .qcld-show-more-text {
498 /* width: 660px; */
499 margin-bottom: 5px;
500 padding: 0 0;
501 position:relative;
502 display: block;
503 }
504 #qcld-show-more-wrapper-box .qcld-show-more-show-more {
505 color: #ffffff;
506 position: relative;
507 padding: 40px 0 0 0;
508 height: 40px;
509 text-align: center;
510 background: #f1f1f1;
511 cursor: pointer;
512 background: linear-gradient(to bottom, rgb(255 255 255 / 53%) 0%, rgb(188 174 255) 100%);
513 margin: -18px 0 0 0;
514 border-radius: 0 0 15px 15px;
515 z-index: 99999;
516 font-weight: bold;
517
518 }
519
520 #qcld-show-more-wrapper-box .qcld-show-more-show-more-height {
521 height: 112px;
522 overflow:hidden;
523 }
524
525 #qcld-show-more-wrapper-box .qcld-show-more-show-more i {
526 display: block;
527 padding: 0 0 0 0;
528 background: var(--woobot-primary);
529 width: 30px;
530 height: 30px;
531 line-height: 30px;
532 border-radius: 50%;
533 margin: -15px auto 0 auto;
534 font-size: 18px !important;
535 color: #fff;
536 }
537 .TextResponsesouter input#submit:hover {
538 background: var(--woobot-primary);
539 color: #fff;
540 border: 2px solid var(--woobot-primary);
541 }
542
543 .TextResponsesouter input#re-index:hover {
544 background: var(--woobot-primary);
545 color: #fff;
546 border: 2px solid var(--woobot-primary);
547 }
548 .TextResponsesouter table.widefat {
549 border: 1px solid #ebebeb;
550 }
551 .TextResponsesouter .tablenav {
552 padding: 8px;
553 background: var(--woobot-primary);
554 }
555 .TextResponsesouter span.displaying-num {
556 color: #fff;
557 }
558
559 .TextResponsesouter .tablenav #doaction, .TextResponsesouter .tablenav #doaction2 {
560 border: 1px solid #ffffff !important;
561 color: #ffffff !important;
562 }
563
564
565
566 .qcld-wp-chatbot-wrap-header-logo {
567 display: flex;
568 align-items: center;
569 gap: 10px;
570 }
571
572 .qcld-wp-chatbot-wrap-header_inn a.button.page-title-action {
573 padding: 8px 15px;
574 background: #ffffff;
575 color: var(--woobot-primary);
576 border: 2px solid var(--woobot-primary);
577 border-radius: 6px;
578 font-weight: bold;
579 position: absolute;
580 top: 30px;
581 left: 280px;
582 line-height: normal;
583 min-height: unset;
584 }
585 .qcld-wp-chatbot-wrap-header_inn a.button.page-title-action:hover {
586 padding: 8px 15px;
587 background: var(--woobot-primary);
588 color: #fff;
589 border: 2px solid var(--woobot-primary);
590 border-radius: 6px;
591 font-weight: bold;
592 position: absolute;
593 top: 30px;
594 left: 280px;
595 }
596
597 .Expandmore {
598 background: #23ab10;
599 display: inline-block;
600 padding: 4px 10px;
601 font-size: 14px;
602 border-radius: 6px;
603 position: relative;
604 top: 0;
605 }
606
607 .Collapsemore {
608 background: #ff0000;
609 display: inline-block;
610 padding: 4px 10px;
611 font-size: 14px;
612 border-radius: 6px;
613 position: relative;
614 top: 0;
615
616 }
617
618 .Expandmore span {
619 color: #fff;
620 margin: 0 0 0 8px;
621 padding: 0 5px;
622 font-size: 18px;
623 }
624 </style>
625
626 <script type="text/javascript">
627 jQuery(".qcld-show-more-show-more").click(function () {
628 if(jQuery(".qcld-show-more-text").hasClass("qcld-show-more-show-more-height")) {
629 jQuery(this).html('<div class="Collapsemore">Collapse Options</div>');
630 } else {
631 jQuery(this).html('<div class="Expandmore">Expand for More Options<span>+</span></div>');
632 }
633
634 jQuery(".qcld-show-more-text").toggleClass("qcld-show-more-show-more-height");
635 });
636
637
638 </script>