| @@ -32,15 +32,15 @@ | ||
| 32 | 32 | if(isset($_GET['query']) && wp_unslash($_GET['query'])!=''){ |
| 33 | 33 | $hasEdit = true; |
| 34 | 34 | $id = sanitize_text_field(wp_unslash($_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 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> | |
| 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 QCLD_wpCHATBOT_VERSION; ?></p> | |
| 43 | 43 | </div> |
| 44 | 44 | <ul class="qcld-wp-chatbot-wrap-version-wrapper"> |
| 45 | 45 | <li> |
| 46 | 46 | <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a> |
| @@ -124,10 +124,10 @@ | ||
| 124 | 124 | <?php else: ?> |
| 125 | 125 | |
| 126 | 126 | <div class="qcld-wp-chatbot-wrap-header"> |
| 127 | 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> | |
| 128 | + <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 QCLD_wpCHATBOT_VERSION; ?></p> | |
| 130 | 130 | <ul class="qcld-wp-chatbot-wrap-version-wrapper"> |
| 131 | 131 | <li> |
| 132 | 132 | <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a> |
| 133 | 133 | |
| @@ -137,9 +137,9 @@ | ||
| 137 | 137 | |
| 138 | 138 | <div class="qcld-wp-chatbot-wrap-header_inn"> |
| 139 | 139 | <div class="qcld-wp-chatbot-wrap-header_inn_heading"> |
| 140 | 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> | |
| 141 | + <a 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 | 142 | </div> |
| 143 | 143 | <?php if(class_exists('Qcld_str_pro')): ?> |
| 144 | 144 | |
| 145 | 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> |
| @@ -226,9 +226,9 @@ | ||
| 226 | 226 | |
| 227 | 227 | |
| 228 | 228 | |
| 229 | 229 | </div> |
| 230 | - <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div> | |
| 230 | + <div class="qcld-show-more-show-more"><i class="dashicons dashicons-plus-alt" aria-hidden="true"></i></div> | |
| 231 | 231 | </div> |
| 232 | 232 | |
| 233 | 233 | <div id="poststuff"> |
| 234 | 234 | <div id="post-body" class="metabox-holder"> |
| @@ -252,26 +252,10 @@ | ||
| 252 | 252 | |
| 253 | 253 | |
| 254 | 254 | |
| 255 | 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 | 256 | body { |
| 273 | - background-color: var(--woobot-page-bg); | |
| 257 | + background-color: #F5F7FD; | |
| 274 | 258 | font-family: "DM Sans", sans-serif !important; |
| 275 | 259 | font-optical-sizing: auto; |
| 276 | 260 | font-size: 16px; |
| 277 | 261 | font-weight: normal; |
| @@ -298,10 +282,10 @@ | ||
| 298 | 282 | } |
| 299 | 283 | .qcld-wp-chatbot-wrap-header a.wpchatbot-Upgrade { |
| 300 | 284 | padding: 12px 25px; |
| 301 | 285 | background: #ffffff; |
| 302 | - color: var(--woobot-primary); | |
| 303 | - border: 2px solid var(--woobot-primary); | |
| 286 | + color: #5B4E96; | |
| 287 | + border: 2px solid #5B4E96; | |
| 304 | 288 | border-radius: 6px; |
| 305 | 289 | font-weight: bold; |
| 306 | 290 | } |
| 307 | 291 | |
| @@ -306,11 +290,11 @@ | ||
| 306 | 290 | } |
| 307 | 291 | |
| 308 | 292 | .qcld-wp-chatbot-wrap-header a.wpchatbot-Upgrade:hover { |
| 309 | 293 | padding: 12px 25px; |
| 310 | - background: var(--woobot-primary); | |
| 294 | + background: #5B4E96; | |
| 311 | 295 | color: #fff; |
| 312 | - border: 2px solid var(--woobot-primary); | |
| 296 | + border: 2px solid #5B4E96; | |
| 313 | 297 | border-radius: 6px; |
| 314 | 298 | font-weight: bold; |
| 315 | 299 | text-decoration: none; |
| 316 | 300 | } |
| @@ -404,15 +388,15 @@ | ||
| 404 | 388 | padding: 12px 20px; |
| 405 | 389 | width: 100%; |
| 406 | 390 | font-size: 16px; |
| 407 | 391 | font-weight: 500; |
| 408 | - color: var(--woobot-nav-muted); | |
| 392 | + color: #988FBD; | |
| 409 | 393 | border-radius: 8px; |
| 410 | 394 | position: relative; |
| 411 | 395 | display: flex; |
| 412 | 396 | align-items: center; |
| 413 | 397 | gap: 15px; |
| 414 | - background: var(--woobot-primary); | |
| 398 | + background: #5B4E96; | |
| 415 | 399 | color: #ffffff; |
| 416 | 400 | text-decoration: none; |
| 417 | 401 | border: none; |
| 418 | 402 | max-width: 220px; |
| @@ -421,10 +405,10 @@ | ||
| 421 | 405 | } |
| 422 | 406 | .qcld-wp-chatbot-wrap-header_inn a.button.page-title-action { |
| 423 | 407 | padding: 3px 25px; |
| 424 | 408 | background: #ffffff; |
| 425 | - color: var(--woobot-primary); | |
| 426 | - border: 2px solid var(--woobot-primary); | |
| 409 | + color: #5B4E96; | |
| 410 | + border: 2px solid #5B4E96; | |
| 427 | 411 | border-radius: 6px; |
| 428 | 412 | font-weight: bold; |
| 429 | 413 | } |
| 430 | 414 | |
| @@ -429,11 +413,11 @@ | ||
| 429 | 413 | } |
| 430 | 414 | |
| 431 | 415 | .qcld-wp-chatbot-wrap-header_inn a.button.page-title-action:hover { |
| 432 | 416 | padding: 0px 15px; |
| 433 | - background: var(--woobot-primary); | |
| 417 | + background: #5B4E96; | |
| 434 | 418 | color: #fff; |
| 435 | - border: 2px solid var(--woobot-primary); | |
| 419 | + border: 2px solid #5B4E96; | |
| 436 | 420 | border-radius: 6px; |
| 437 | 421 | font-weight: bold; |
| 438 | 422 | position: absolute; |
| 439 | 423 | top: 36px; |
| @@ -441,10 +425,10 @@ | ||
| 441 | 425 | } |
| 442 | 426 | .qcld-wp-chatbot-wrap-header_inn a.button.page-title-action { |
| 443 | 427 | padding: 0px 15px; |
| 444 | 428 | background: #ffffff; |
| 445 | - color: var(--woobot-primary); | |
| 446 | - border: 2px solid var(--woobot-primary); | |
| 429 | + color: #5B4E96; | |
| 430 | + border: 2px solid #5B4E96; | |
| 447 | 431 | border-radius: 6px; |
| 448 | 432 | font-weight: bold; |
| 449 | 433 | position: absolute; |
| 450 | 434 | top: 36px; |
| @@ -454,9 +438,9 @@ | ||
| 454 | 438 | .qcld-wp-chatbot-wrap-header_inn { |
| 455 | 439 | position: relative; |
| 456 | 440 | } |
| 457 | 441 | .notice.is-dismissible.qcbot-str-top-notic { |
| 458 | - width: 95%; | |
| 442 | + width: 96%; | |
| 459 | 443 | } |
| 460 | 444 | |
| 461 | 445 | .TextResponsesouter i { |
| 462 | 446 | position: relative; |
| @@ -474,10 +458,10 @@ | ||
| 474 | 458 | |
| 475 | 459 | .TextResponsesouter input#submit { |
| 476 | 460 | padding: 0px 15px; |
| 477 | 461 | background: #ffffff; |
| 478 | - color: var(--woobot-primary); | |
| 479 | - border: 2px solid var(--woobot-primary); | |
| 462 | + color: #5B4E96; | |
| 463 | + border: 2px solid #5B4E96; | |
| 480 | 464 | border-radius: 6px; |
| 481 | 465 | font-weight: bold; |
| 482 | 466 | } |
| 483 | 467 | .TextResponsesouter input#re-index { |
| @@ -482,10 +466,10 @@ | ||
| 482 | 466 | } |
| 483 | 467 | .TextResponsesouter input#re-index { |
| 484 | 468 | padding: 0px 15px; |
| 485 | 469 | background: #ffffff; |
| 486 | - color: var(--woobot-primary); | |
| 487 | - border: 2px solid var(--woobot-primary); | |
| 470 | + color: #5B4E96; | |
| 471 | + border: 2px solid #5B4E96; | |
| 488 | 472 | border-radius: 6px; |
| 489 | 473 | font-weight: bold; |
| 490 | 474 | } |
| 491 | 475 | |
| @@ -524,9 +508,9 @@ | ||
| 524 | 508 | |
| 525 | 509 | #qcld-show-more-wrapper-box .qcld-show-more-show-more i { |
| 526 | 510 | display: block; |
| 527 | 511 | padding: 0 0 0 0; |
| 528 | - background: var(--woobot-primary); | |
| 512 | + background: #5b4e96; | |
| 529 | 513 | width: 30px; |
| 530 | 514 | height: 30px; |
| 531 | 515 | line-height: 30px; |
| 532 | 516 | border-radius: 50%; |
| @@ -534,17 +518,17 @@ | ||
| 534 | 518 | font-size: 18px !important; |
| 535 | 519 | color: #fff; |
| 536 | 520 | } |
| 537 | 521 | .TextResponsesouter input#submit:hover { |
| 538 | - background: var(--woobot-primary); | |
| 522 | + background: #5B4E96; | |
| 539 | 523 | color: #fff; |
| 540 | - border: 2px solid var(--woobot-primary); | |
| 524 | + border: 2px solid #5B4E96; | |
| 541 | 525 | } |
| 542 | 526 | |
| 543 | 527 | .TextResponsesouter input#re-index:hover { |
| 544 | - background: var(--woobot-primary); | |
| 528 | + background: #5B4E96; | |
| 545 | 529 | color: #fff; |
| 546 | - border: 2px solid var(--woobot-primary); | |
| 530 | + border: 2px solid #5B4E96; | |
| 547 | 531 | } |
| 548 | 532 | .TextResponsesouter table.widefat { |
| 549 | 533 | border: 1px solid #ebebeb; |
| 550 | 534 | } |
| @@ -549,87 +533,27 @@ | ||
| 549 | 533 | border: 1px solid #ebebeb; |
| 550 | 534 | } |
| 551 | 535 | .TextResponsesouter .tablenav { |
| 552 | 536 | padding: 8px; |
| 553 | - background: var(--woobot-primary); | |
| 537 | + background: #5B4E96; | |
| 554 | 538 | } |
| 555 | 539 | .TextResponsesouter span.displaying-num { |
| 556 | 540 | color: #fff; |
| 557 | 541 | } |
| 558 | 542 | |
| 559 | -.TextResponsesouter .tablenav #doaction, .TextResponsesouter .tablenav #doaction2 { | |
| 560 | - border: 1px solid #ffffff !important; | |
| 561 | - color: #ffffff !important; | |
| 562 | -} | |
| 563 | - | |
| 564 | - | |
| 565 | - | |
| 566 | 543 | .qcld-wp-chatbot-wrap-header-logo { |
| 567 | 544 | display: flex; |
| 568 | 545 | align-items: center; |
| 569 | 546 | 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 | 547 | } |
| 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 | 548 | </style> |
| 625 | 549 | |
| 626 | 550 | <script type="text/javascript"> |
| 627 | 551 | jQuery(".qcld-show-more-show-more").click(function () { |
| 628 | 552 | if(jQuery(".qcld-show-more-text").hasClass("qcld-show-more-show-more-height")) { |
| 629 | - jQuery(this).html('<div class="Collapsemore">Collapse Options</div>'); | |
| 553 | + jQuery(this).html('<i class="dashicons dashicons-remove" aria-hidden="true"></i>'); | |
| 630 | 554 | } else { |
| 631 | - jQuery(this).html('<div class="Expandmore">Expand for More Options<span>+</span></div>'); | |
| 555 | + jQuery(this).html('<i class="dashicons dashicons-plus-alt" aria-hidden="true"></i>'); | |
| 632 | 556 | } |
| 633 | 557 | |
| 634 | 558 | jQuery(".qcld-show-more-text").toggleClass("qcld-show-more-show-more-height"); |
| 635 | 559 | }); |