| @@ -17,13 +17,13 @@ | ||
| 17 | 17 | elseif(isset($_GET['page']) && $_GET['page']=='simple-text-response' && isset($_GET['action']) && $_GET['action']=='import'): |
| 18 | 18 | |
| 19 | 19 | do_action('qcld_str_import'); |
| 20 | 20 | |
| 21 | - elseif(isset($_GET['action']) && wp_unslash($_GET['action'])=='manage-categories'): | |
| 21 | + elseif(isset($_GET['action']) && $_GET['action']=='manage-categories'): | |
| 22 | 22 | |
| 23 | 23 | include_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH.'/includes/templates/manage-categories.php'); |
| 24 | 24 | |
| 25 | - elseif(isset($_GET['action']) && wp_unslash($_GET['action'])=='edit'): | |
| 25 | + elseif(isset($_GET['action']) && $_GET['action']=='edit'): | |
| 26 | 26 | |
| 27 | 27 | if(class_exists('Qcld_str_pro')): |
| 28 | 28 | do_action('qcld_str_pro_stredit'); |
| 29 | 29 | else: |
| @@ -28,20 +28,19 @@ | ||
| 28 | 28 | do_action('qcld_str_pro_stredit'); |
| 29 | 29 | else: |
| 30 | 30 | |
| 31 | 31 | $hasEdit = false; |
| 32 | - if(isset($_GET['query']) && wp_unslash($_GET['query'])!=''){ | |
| 32 | + if(isset($_GET['query']) && $_GET['query']!=''){ | |
| 33 | 33 | $hasEdit = true; |
| 34 | - $id = sanitize_text_field(wp_unslash($_GET['query'])); | |
| 34 | + $id = sanitize_text_field($_GET['query']); | |
| 35 | 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 | |
| 36 | + $data = $wpdb->get_row($wpdb->prepare("select * from $table where id = %d", $id)); //DB Call OK, No Caching OK | |
| 37 | 37 | } |
| 38 | 38 | ?> |
| 39 | 39 | <div class="qcld-wp-chatbot-wrap-header"> |
| 40 | 40 | |
| 41 | - <div class="qcld-wp-chatbot-wrap-header-logo"><a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img style="width:100%" 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> | |
| 41 | + <a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img style="width:100%" 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 QCLD_wpCHATBOT_VERSION; ?></p> | |
| 44 | 43 | <ul class="qcld-wp-chatbot-wrap-version-wrapper"> |
| 45 | 44 | <li> |
| 46 | 45 | <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a> |
| 47 | 46 | |
| @@ -125,9 +124,9 @@ | ||
| 125 | 124 | |
| 126 | 125 | <div class="qcld-wp-chatbot-wrap-header"> |
| 127 | 126 | |
| 128 | 127 | <a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img style="width:100%" 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> | |
| 128 | + <p><strong>Core Version:</strong> v<?php echo QCLD_wpCHATBOT_VERSION; ?></p> | |
| 130 | 129 | <ul class="qcld-wp-chatbot-wrap-version-wrapper"> |
| 131 | 130 | <li> |
| 132 | 131 | <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a> |
| 133 | 132 | |
| @@ -226,9 +225,9 @@ | ||
| 226 | 225 | |
| 227 | 226 | |
| 228 | 227 | |
| 229 | 228 | </div> |
| 230 | - <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div> | |
| 229 | + <div class="qcld-show-more-show-more"><i class="dashicons dashicons-plus-alt" aria-hidden="true"></i></div> | |
| 231 | 230 | </div> |
| 232 | 231 | |
| 233 | 232 | <div id="poststuff"> |
| 234 | 233 | <div id="post-body" class="metabox-holder"> |
| @@ -538,82 +537,16 @@ | ||
| 538 | 537 | } |
| 539 | 538 | .TextResponsesouter span.displaying-num { |
| 540 | 539 | color: #fff; |
| 541 | 540 | } |
| 542 | - | |
| 543 | -.TextResponsesouter .tablenav #doaction, .TextResponsesouter .tablenav #doaction2 { | |
| 544 | - border: 1px solid #ffffff !important; | |
| 545 | - color: #ffffff !important; | |
| 546 | -} | |
| 547 | - | |
| 548 | - | |
| 549 | - | |
| 550 | -.qcld-wp-chatbot-wrap-header-logo { | |
| 551 | - display: flex; | |
| 552 | - align-items: center; | |
| 553 | - gap: 10px; | |
| 554 | -} | |
| 555 | - | |
| 556 | -.qcld-wp-chatbot-wrap-header_inn a.button.page-title-action { | |
| 557 | - padding: 8px 15px; | |
| 558 | - background: #ffffff; | |
| 559 | - color: #5B4E96; | |
| 560 | - border: 2px solid #5B4E96; | |
| 561 | - border-radius: 6px; | |
| 562 | - font-weight: bold; | |
| 563 | - position: absolute; | |
| 564 | - top: 30px; | |
| 565 | - left: 280px; | |
| 566 | - line-height: normal; | |
| 567 | - min-height: unset; | |
| 568 | -} | |
| 569 | -.qcld-wp-chatbot-wrap-header_inn a.button.page-title-action:hover { | |
| 570 | - padding: 8px 15px; | |
| 571 | - background: #5B4E96; | |
| 572 | - color: #fff; | |
| 573 | - border: 2px solid #5B4E96; | |
| 574 | - border-radius: 6px; | |
| 575 | - font-weight: bold; | |
| 576 | - position: absolute; | |
| 577 | - top: 30px; | |
| 578 | - left: 280px; | |
| 579 | -} | |
| 580 | - | |
| 581 | -.Expandmore { | |
| 582 | - background: #23ab10; | |
| 583 | - display: inline-block; | |
| 584 | - padding: 4px 10px; | |
| 585 | - font-size: 14px; | |
| 586 | - border-radius: 6px; | |
| 587 | - position: relative; | |
| 588 | - top: 0; | |
| 589 | -} | |
| 590 | - | |
| 591 | -.Collapsemore { | |
| 592 | - background: #ff0000; | |
| 593 | - display: inline-block; | |
| 594 | - padding: 4px 10px; | |
| 595 | - font-size: 14px; | |
| 596 | - border-radius: 6px; | |
| 597 | - position: relative; | |
| 598 | - top: 0; | |
| 599 | - | |
| 600 | -} | |
| 601 | - | |
| 602 | -.Expandmore span { | |
| 603 | - color: #fff; | |
| 604 | - margin: 0 0 0 8px; | |
| 605 | - padding: 0 5px; | |
| 606 | - font-size: 18px; | |
| 607 | -} | |
| 608 | 541 | </style> |
| 609 | 542 | |
| 610 | 543 | <script type="text/javascript"> |
| 611 | 544 | jQuery(".qcld-show-more-show-more").click(function () { |
| 612 | 545 | if(jQuery(".qcld-show-more-text").hasClass("qcld-show-more-show-more-height")) { |
| 613 | - jQuery(this).html('<div class="Collapsemore">Collapse Options</div>'); | |
| 546 | + jQuery(this).html('<i class="dashicons dashicons-remove" aria-hidden="true"></i>'); | |
| 614 | 547 | } else { |
| 615 | - jQuery(this).html('<div class="Expandmore">Expand for More Options<span>+</span></div>'); | |
| 548 | + jQuery(this).html('<i class="dashicons dashicons-plus-alt" aria-hidden="true"></i>'); | |
| 616 | 549 | } |
| 617 | 550 | |
| 618 | 551 | jQuery(".qcld-show-more-text").toggleClass("qcld-show-more-show-more-height"); |
| 619 | 552 | }); |