PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.3.8
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.3.8
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
← All changes | admin_ui.php +193 -313 8.6.08.3.8 View file →
@@ -523,18 +523,16 @@
523 523 <p class="d-ib"><i class="dashicons dashicons-yes" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Getting Started section for how to create interactions.', 'chatbot'); ?></p>
524 524 <p class="d-ib"><i class="dashicons dashicons-yes" aria-hidden="true"></i> <?php esc_html_e('You can change ALL the texts used by the ChatBot to YOUR language here to make it speak French, German, Spanish etc. -> Change Language', 'chatbot'); ?></p>
525 525 <p class="d-ib"><i class="dashicons dashicons-yes" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Help and Debugging section to troubleshoot common issues.', 'chatbot'); ?></p>
526 526 </div>
527 - </div>
528 - </div>
527 +
528 + <b>
529 + <!-- <p>Please see the plugin's Help and Debugging section to troubleshoot common issues.</p> -->
530 + </b>
531 +
529 532
530 -
531 -
532 -
533 - <div class="row">
534 - <div class="col-xs-6">
535 - <div class="cxsc-settings-blocks">
536 - <div class="form-group" style=" min-height: 150px;">
533 + <div class="cxsc-settings-blocks">
534 + <div class="form-group">
537 535 <?php
538 536 $qcld_wpbot_url = get_site_url();
539 537 $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
540 538 $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
@@ -543,15 +541,13 @@
543 541 <h4 class="qc-opt-title"><?php esc_html_e('Emails Will be Sent to', 'chatbot'); ?></h4>
544 542 <input type="text" class="form-control qc-opt-dcs-font"
545 543 name="qlcd_wp_chatbot_admin_email"
546 544 value="<?php echo (get_option('qlcd_wp_chatbot_admin_email') != '' ? esc_attr(get_option('qlcd_wp_chatbot_admin_email')) : esc_attr(sanitize_email($qcld_wpbot_admin_email)) ); ?>">
547 - <label class="qcld_label_width_full qcld_label_width_half" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'chatbot'); ?> </label>
545 + <label class="qcld_label_width_full" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'chatbot'); ?> </label>
548 546 </div>
549 547 </div>
550 - </div>
551 - <div class="col-xs-6">
552 - <div class="cxsc-settings-blocks">
553 - <div class="form-group">
548 + <div class="cxsc-settings-blocks">
549 + <div class="form-group">
554 550 <?php
555 551 $qcld_wpbot_url = get_site_url();
556 552 $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
557 553 $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
@@ -560,237 +556,169 @@
560 556 <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
561 557 <input type="text" class="form-control qc-opt-dcs-font"
562 558 name="qlcd_wp_chatbot_from_email"
563 559 value="<?php echo (get_option('qlcd_wp_chatbot_from_email') != '' ? esc_attr( get_option('qlcd_wp_chatbot_from_email')) : esc_attr(sanitize_email($qcld_wpbot_from_email))); ?> ">
564 - <label class="qcld_label_width_full qcld_label_width_half" for="qlcd_wp_chatbot_from_email"><?php esc_html_e('All emails will be sent from this email address. If you change the From Email Address then please make sure the domain remains the same as where WordPress is installed. Otherwise, the emails may not be received.', 'chatbot'); ?> </label>
560 + <label class="qcld_label_width_full" for="qlcd_wp_chatbot_from_email"><?php esc_html_e('All emails will be sent from this email address. If you change the From Email Address then please make sure the domain remains the same as where WordPress is installed. Otherwise, the emails may not be received.', 'chatbot'); ?> </label>
561 + </div>
562 + </div>
563 + </div>
564 + </div>
565 + <div class="row">
566 + <div class="col-xs-12">
567 + <div class="form-group">
568 + <h4 class="qc-opt-title">
569 + <?php esc_html_e('Disable Floating Button', 'chatbot'); ?>
570 + </h4>
571 + <div class="cxsc-settings-blocks">
572 + <input value="1" id="disable_floating_button" type="checkbox"
573 + name="disable_floating_button" <?php echo (get_option('disable_floating_button') == 1 ? esc_attr('checked' ): ''); ?>>
574 + <label for="disable_floating_button">
575 + <?php esc_html_e('Disable Floating Button', 'chatbot'); ?>
576 + </label>
577 + </div>
578 + </div>
579 + </div>
580 + </div>
581 + <div class="row">
582 + <div class="col-xs-12">
583 + <div class="form-group">
584 + <h4 class="qc-opt-title">
585 + <?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?>
586 + </h4>
587 + <div class="cxsc-settings-blocks">
588 + <input value="1" id="wpbot_enable_on_search" type="checkbox"
589 + name="wpbot_enable_on_search" <?php echo (get_option('wpbot_enable_on_search') == 1 ? esc_attr('checked') : ''); ?>>
590 + <label for="wpbot_enable_on_search">
591 + <?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?>
592 + </label>
593 + </div>
594 + </div>
595 + </div>
596 + </div>
597 + <div class="row">
598 + <div class="col-xs-12">
599 + <div class="cxsc-settings-blocks">
600 + <div class="form-group">
601 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </h4>
602 + <div class="cxsc-settings-blocks">
603 + <input value="1" id="skip_wp_greetings" type="checkbox"
604 + name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
605 + <label for="skip_wp_greetings"><?php echo esc_html__("Skip Greetings (Asking for Name) and Show Start Menu", 'chatbot'); ?> </label>
606 + </div>
565 607 </div>
566 608 </div>
567 - </div>
568 609 </div>
569 - <style>
570 - .wpbot-cards-grid {
571 - display: grid;
572 - grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
573 - gap: 20px;
574 - margin-bottom: 20px;
575 - margin-top: 20px;
576 - }
577 - .wpbot-checkbox-card {
578 - cursor: pointer;
579 - display: block;
580 - position: relative;
581 - margin: 0;
582 - }
583 - .wpbot-checkbox-card input[type="checkbox"] {
584 - position: absolute;
585 - opacity: 0;
586 - width: 0;
587 - height: 0;
588 - }
589 - .wpbot-checkbox-card .card-body {
590 - border: 1px solid #e2e8f0;
591 - border-radius: 12px;
592 - padding: 20px;
593 - background: #f8fafc;
594 - transition: all 0.2s ease;
595 - height: 100%;
596 - box-sizing: border-box;
597 - display: flex;
598 - flex-direction: column;
599 - position: relative;
600 - }
601 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body {
602 - border-color: #5b4e96;
603 - background: #eff6ff;
604 - box-shadow: 0 0 0 1px #5b4e96, 0 8px 24px rgba(37, 99, 235, 0.15);
605 - }
606 - .wpbot-checkbox-card .check-icon {
607 - position: absolute;
608 - top: 30px;
609 - right: 16px;
610 - width: 24px;
611 - height: 24px;
612 - border-radius: 50%;
613 - background: #f8fafc;
614 - border: 2px solid #e2e8f0;
615 - display: flex;
616 - align-items: center;
617 - justify-content: center;
618 - transition: all 0.2s ease;
619 - z-index: 2;
620 - }
621 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon {
622 - background: #5b4e96;
623 - border-color: #5b4e96;
624 - }
625 - .wpbot-checkbox-card .check-icon svg {
626 - width: 14px;
627 - height: 14px;
628 - stroke: #e2e8f0;
629 - stroke-width: 3;
630 - stroke-linecap: round;
631 - stroke-linejoin: round;
632 - fill: none;
633 - transition: stroke 0.2s ease;
634 - }
635 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon svg {
636 - stroke: white;
637 - }
638 - .wpbot-checkbox-card .icon-wrapper {
639 - width: 48px;
640 - height: 48px;
641 - border-radius: 12px;
642 - background: #ffffff;
643 - border: 1px solid #e2e8f0;
644 - display: flex;
645 - align-items: center;
646 - justify-content: center;
647 - margin-bottom: 16px;
648 - color: #64748b;
649 - }
650 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .icon-wrapper {
651 - border-color: #e0e7ff;
652 - background: #f0fdf4;
653 - color: #5b4e96;
654 - }
655 - .wpbot-checkbox-card h4 {
656 - margin: 0 0 8px 0 !important;
657 - font-size: 16px !important;
658 - font-weight: 600 !important;
659 - color: #1e293b !important;
660 - line-height: 1.4 !important;
661 - }
662 - .wpbot-checkbox-card p {
663 - margin: 0 !important;
664 - font-size: 14px !important;
665 - color: #64748b !important;
666 - line-height: 1.5 !important;
667 - }
668 - .wpbot-cards-grid-divider {
669 - height: 1px;
670 - width: 100%;
671 - background: #eee;
672 - }
673 - </style>
610 + </div>
674 611
675 612 <div class="row">
676 613 <div class="col-xs-12">
677 -
678 - <div class="wpbot-cards-grid-divider"></div>
679 -
680 - <div class="wpbot-cards-grid">
681 - <label class="wpbot-checkbox-card">
682 - <input value="1" id="enable_asking_for_email" type="checkbox" name="enable_asking_for_email" <?php echo (get_option('enable_asking_for_email') == 1 ? esc_attr('checked' ): ''); ?>>
683 - <div class="card-body">
684 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
685 - <div class="icon-wrapper"><i class="dashicons dashicons-email" style="font-size:24px;width:24px;height:24px;"></i></div>
686 - <h4><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></h4>
687 - <p><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></p>
688 - </div>
689 - </label>
614 + <div class="cxsc-settings-blocks">
615 + <div class="form-group">
616 + <h4 class="qc-opt-title"> <?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </h4>
617 + <div class="cxsc-settings-blocks">
618 + <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox"
619 + name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
620 + <label for="skip_wp_greetings_donot_show_menu"><?php echo esc_html__("Skip Greetings (Asking for Name) and Disable Start Menu", 'chatbot'); ?> </label>
621 + </div>
690 622 </div>
691 - <div class="wpbot-cards-grid-divider"></div>
692 - <div class="wpbot-cards-grid">
693 - <label class="wpbot-checkbox-card">
694 - <input value="1" id="skip_wp_greetings" type="checkbox" name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
695 - <div class="card-body">
696 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
697 - <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div>
698 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Show Start Menu", 'chatbot'); ?></h4>
699 - <p><?php echo esc_html__("Skip asking for name, Email and directly show the Start Menu.", 'chatbot'); ?></p>
700 - </div>
701 - </label>
702 - <label class="wpbot-checkbox-card">
703 - <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox" name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>>
704 - <div class="card-body">
705 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
706 - <div class="icon-wrapper"><i class="dashicons dashicons-hidden" style="font-size:24px;width:24px;height:24px;"></i></div>
707 - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Disable Start Menu", 'chatbot'); ?></h4>
708 - <p><?php echo esc_html__("Skip asking for name, Email and disable the Start Menu.", 'chatbot'); ?></p>
709 - </div>
710 - </label>
711 - <label class="wpbot-checkbox-card">
712 - <input value="1" id="show_menu_after_greetings" type="checkbox" name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
713 - <div class="card-body">
714 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
715 - <div class="icon-wrapper"><i class="dashicons dashicons-menu-alt" style="font-size:24px;width:24px;height:24px;"></i></div>
716 - <h4><?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?></h4>
717 - <p><?php esc_html_e('Show Start Menu immediately after greetings.', 'chatbot'); ?></p>
718 - </div>
719 - </label>
623 + </div>
624 + </div>
625 + </div>
626 + <div class="row">
627 + <div class="col-xs-12">
628 + <div class="form-group">
629 + <h4 class="qc-opt-title">
630 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
631 + </h4>
632 + <div class="cxsc-settings-blocks">
633 + <input value="1" id="show_menu_after_greetings" type="checkbox"
634 + name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>>
635 + <label for="show_menu_after_greetings">
636 + <?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?>
637 + </label>
720 638 </div>
721 - <div class="wpbot-cards-grid-divider"></div>
722 - <div class="wpbot-cards-grid">
723 - <label class="wpbot-checkbox-card">
724 - <input value="1" id="disable_back_to_start_menu" type="checkbox" name="disable_back_to_start_menu" <?php echo (get_option('disable_back_to_start_menu') == 1 ? esc_attr('checked' ): ''); ?>>
725 - <div class="card-body">
726 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
727 - <div class="icon-wrapper"><i class="dashicons dashicons-undo" style="font-size:24px;width:24px;height:24px;"></i></div>
728 - <h4><?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?></h4>
729 - <p><?php esc_html_e('Remove the option to go back to the Start Menu.', 'chatbot'); ?></p>
730 - </div>
731 - </label>
639 + </div>
732 640 </div>
733 - <div class="wpbot-cards-grid-divider"></div>
734 - <div class="wpbot-cards-grid">
735 -
736 -
737 - <label class="wpbot-checkbox-card">
738 - <input value="1" id="enable_wp_chatbot_rtl" type="checkbox" name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
739 - <div class="card-body">
740 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
741 - <div class="icon-wrapper"><i class="dashicons dashicons-editor-rtl" style="font-size:24px;width:24px;height:24px;"></i></div>
742 - <h4><?php esc_html_e('Enable RTL', 'chatbot'); ?></h4>
743 - <p><?php esc_html_e('Enable Right to Left language support for Chat.', 'chatbot'); ?></p>
744 - </div>
745 - </label>
746 -
747 -
748 - <label class="wpbot-checkbox-card">
749 - <input value="1" id="wpbot_enable_on_search" type="checkbox" name="wpbot_enable_on_search" <?php echo (get_option('wpbot_enable_on_search') == 1 ? esc_attr('checked') : ''); ?>>
750 - <div class="card-body">
751 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
752 - <div class="icon-wrapper"><i class="dashicons dashicons-search" style="font-size:24px;width:24px;height:24px;"></i></div>
753 - <h4><?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?></h4>
754 - <p><?php esc_html_e('Enable Chatbot on WordPress search pages.', 'chatbot'); ?></p>
755 - </div>
756 - </label>
757 -
758 - <label class="wpbot-checkbox-card">
759 - <input value="1" id="open_links_new_window" type="checkbox" name="open_links_new_window" <?php echo (get_option('open_links_new_window') == 1 ? esc_attr('checked'): ''); ?>>
760 - <div class="card-body">
761 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
762 - <div class="icon-wrapper"><i class="dashicons dashicons-external" style="font-size:24px;width:24px;height:24px;"></i></div>
763 - <h4><?php esc_html_e('Links in New Window', 'chatbot'); ?></h4>
764 - <p><?php esc_html_e('Open all Chatbot links in a new browser window.', 'chatbot'); ?></p>
765 - </div>
766 - </label>
767 - </div>
768 - <div class="wpbot-cards-grid-divider"></div>
769 - <div class="wpbot-cards-grid">
770 - <label class="wpbot-checkbox-card">
771 - <input value="1" id="disable_floating_button" type="checkbox" name="disable_floating_button" <?php echo (get_option('disable_floating_button') == 1 ? esc_attr('checked' ): ''); ?>>
772 - <div class="card-body">
773 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
774 - <div class="icon-wrapper"><i class="dashicons dashicons-dismiss" style="font-size:24px;width:24px;height:24px;"></i></div>
775 - <h4><?php esc_html_e('Disable Floating Button', 'chatbot'); ?></h4>
776 - <p><?php esc_html_e('Hide the chatbot floating icon from your website.', 'chatbot'); ?></p>
777 - </div>
778 - </label>
779 - <label class="wpbot-checkbox-card">
780 - <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox" name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
781 - <div class="card-body">
782 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
783 - <div class="icon-wrapper"><i class="dashicons dashicons-smartphone" style="font-size:24px;width:24px;height:24px;"></i></div>
784 - <h4><?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?></h4>
785 - <p><?php esc_html_e('Disable WPBot from loading on mobile devices.', 'chatbot'); ?></p>
786 - </div>
787 - </label>
641 + </div>
642 + <div class="row">
643 + <div class="col-xs-12">
644 + <div class="form-group">
645 + <h4 class="qc-opt-title">
646 + <?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?>
647 + </h4>
648 + <div class="cxsc-settings-blocks">
649 + <input value="1" id="disable_back_to_start_menu" type="checkbox"
650 + name="disable_back_to_start_menu" <?php echo (get_option('disable_back_to_start_menu') == 1 ? esc_attr('checked' ): ''); ?>>
651 + <label for="disable_back_to_start_menu">
652 + <?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?>
653 + </label>
788 654 </div>
789 -
790 -
655 + </div>
791 656 </div>
792 657 </div>
658 + <div class="row">
659 + <div class="col-xs-12">
660 + <div class="form-group">
661 + <h4 class="qc-opt-title">
662 + <?php esc_html_e('Disable WPBot', 'chatbot'); ?>
663 + </h4>
664 + <div class="cxsc-settings-blocks">
665 + <input value="1" id="disable_wp_chatbot" type="checkbox"
666 + name="disable_wp_chatbot" <?php echo (get_option('disable_wp_chatbot') == 1 ? esc_attr('checked'): ''); ?>>
667 + <label for="disable_wp_chatbot">
668 + <?php esc_html_e('Disable WPBot to Load', 'chatbot'); ?>
669 + </label>
670 + </div>
671 + </div>
672 + </div>
673 + </div>
674 + <div class="row">
675 + <div class="col-xs-12">
676 + <div class="form-group">
677 + <h4 class="qc-opt-title">
678 + <?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?>
679 + </h4>
680 + <div class="cxsc-settings-blocks">
681 + <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox"
682 + name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
683 + <label for="disable_wp_chatbot_on_mobile">
684 + <?php esc_html_e('Disable WpBot to Load on Mobile Device', 'chatbot'); ?>
685 + </label>
686 + </div>
687 + </div>
688 + </div>
689 + </div>
690 + <div class="row">
691 + <div class="col-xs-12">
692 + <div class="form-group">
693 + <h4 class="qc-opt-title">
694 + <?php esc_html_e('Enable RTL', 'chatbot'); ?>
695 + </h4>
696 + <div class="cxsc-settings-blocks">
697 + <input value="1" id="enable_wp_chatbot_rtl" type="checkbox"
698 + name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
699 + <label for="enable_wp_chatbot_rtl">
700 + <?php esc_html_e('Enable RTL (Right to Left language) Support for Chat', 'chatbot'); ?>
701 + </label>
702 + </div>
703 + </div>
704 + </div>
705 +</div>
706 + <div class="row">
707 + <div class="col-xs-12">
708 + <div class="form-group">
709 + <h4 class="qc-opt-title">
710 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
711 + </h4>
712 + <div class="cxsc-settings-blocks">
713 + <input value="1" id="open_links_new_window" type="checkbox" name="open_links_new_window" <?php echo (get_option('open_links_new_window') == 1 ? esc_attr('checked'): ''); ?>>
714 + <label for="open_links_new_window">
715 + <?php esc_html_e('Open All Links in a New Window', 'chatbot'); ?>
716 + </label>
717 + </div>
718 + </div>
719 + </div>
720 +</div>
793 721
794 722 <div class="row">
795 723 <div class="col-xs-12">
796 724 <div class="form-group">
@@ -1818,29 +1746,8 @@
1818 1746 </div>
1819 1747 </div>
1820 1748 <div id="top-section">
1821 1749 <div class="form-group">
1822 - <!-- Avatar Location Section -->
1823 - <div class="avatar-location-wrapper">
1824 - <h4 class="qc-opt-title"><?php esc_html_e('Avatar Location', 'chatbot'); ?></h4>
1825 - <?php $avatar_location = get_option('qcld_chatbot_avatar_location'); ?>
1826 - <input type="hidden" id="qcld-avatar-location" name="qcld_chatbot_avatar_location" value="<?php echo esc_attr($avatar_location); ?>">
1827 - <div class="avatar-location-cards">
1828 - <div class="avatar-location-card <?php echo ($avatar_location === 'inside') ? 'active' : ''; ?>" data-location="inside">
1829 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
1830 - <span><?php esc_html_e('Inside', 'chatbot'); ?></span>
1831 - </div>
1832 - <div class="avatar-location-card <?php echo ($avatar_location === 'side') ? 'active' : ''; ?>" data-location="side">
1833 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><line x1="9" y1="3" x2="9" y2="21"/></svg>
1834 - <span><?php esc_html_e('Side', 'chatbot'); ?></span>
1835 - </div>
1836 - <div class="avatar-location-card <?php echo ($avatar_location === 'hidden') ? 'active' : ''; ?>" data-location="hidden">
1837 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/></svg>
1838 - <span><?php esc_html_e('Hidden', 'chatbot'); ?></span>
1839 - </div>
1840 - </div>
1841 - </div>
1842 - <!-- End Avatar Location Section -->
1843 1750 <div class="row">
1844 1751 <div class="col-sm-12">
1845 1752 <h4 class="qc-opt-title">
1846 1753 <?php esc_html_e('WPBot Themes', 'chatbot'); ?>
@@ -2298,34 +2205,26 @@
2298 2205 <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_attr('Predefined Intents'); ?></h3>
2299 2206 <div class="row">
2300 2207 <div class="col-xs-12">
2301 2208 <div class="form-group">
2302 - <h4 class="qc-opt-title" style="margin-bottom: 20px;">
2209 + <h4 class="qc-opt-title">
2303 2210 <?php esc_html_e('Site Search', 'chatbot'); ?>
2304 2211 </h4>
2305 - <div class="wpbot-cards-grid" style="margin-top: 0;">
2306 - <label class="wpbot-checkbox-card">
2307 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox"
2308 - name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
2309 - <div class="card-body">
2310 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2311 - <div class="icon-wrapper"><i class="dashicons dashicons-search" style="font-size:24px;width:24px;height:24px;"></i></div>
2312 - <h4><?php esc_html_e('Disable site search feature and button on Start Menu', 'chatbot'); ?></h4>
2313 - <p><?php esc_html_e('Disable site search feature and button on Start Menu.', 'chatbot'); ?></p>
2314 - </div>
2212 + <div class="cxsc-settings-blocks">
2213 + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox"
2214 + name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
2215 + <label for="disable_wp_chatbot_site_search">
2216 + <?php esc_html_e('Disable site search feature and button on Start Menu', 'chatbot'); ?>
2315 2217 </label>
2316 - <label class="wpbot-checkbox-card">
2317 - <input value="<?php echo esc_attr('1' ); ?>" id="enable_wp_chatbot_post_content" type="checkbox"
2318 - name="enable_wp_chatbot_post_content" <?php echo(get_option('enable_wp_chatbot_post_content') == 1 ? esc_attr('checked' ): ''); ?>>
2319 - <div class="card-body">
2320 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2321 - <div class="icon-wrapper"><i class="dashicons dashicons-media-text" style="font-size:24px;width:24px;height:24px;"></i></div>
2322 - <h4><?php esc_html_e('Enable Searching Post Contents as well', 'chatbot'); ?></h4>
2323 - <p><?php esc_html_e('Enable searching within post contents as well.', 'chatbot'); ?></p>
2324 - </div>
2218 + </br><small><?php echo esc_html( '(You can disable searching post contents option below so it searches only the post Titles for most relevancy)'); ?></small></br>
2219 + </div>
2220 + <div class="cxsc-settings-blocks">
2221 + <input value="<?php echo esc_attr('1' ); ?>" id="enable_wp_chatbot_post_content" type="checkbox"
2222 + name="enable_wp_chatbot_post_content" <?php echo(get_option('enable_wp_chatbot_post_content') == 1 ? esc_attr('checked' ): ''); ?>>
2223 + <label for="enable_wp_chatbot_post_content">
2224 + <?php esc_html_e('Enable Searching Post Contents as well', 'chatbot'); ?>
2325 2225 </label>
2326 2226 </div>
2327 - <small style="display:block; margin-bottom: 15px; color: #64748b;"><?php echo esc_html( '(You can disable searching post contents option so it searches only the post Titles for most relevancy)'); ?></small>
2328 2227 </div>
2329 2228 </div>
2330 2229 </div>
2331 2230 <div class="form-group">
@@ -2341,18 +2240,13 @@
2341 2240 <div class="form-group">
2342 2241 <h4 class="qc-opt-title">
2343 2242 <?php esc_html_e('Call Me', 'chatbot'); ?>
2344 2243 </h4>
2345 - <div class="wpbot-cards-grid" style="margin-top: 15px;">
2346 - <label class="wpbot-checkbox-card">
2347 - <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox"
2348 - name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
2349 - <div class="card-body">
2350 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2351 - <div class="icon-wrapper"><i class="dashicons dashicons-phone" style="font-size:24px;width:24px;height:24px;"></i></div>
2352 - <h4><?php esc_html_e('Disable Call Me feature and button on Start Menu', 'chatbot'); ?></h4>
2353 - <p><?php esc_html_e('Disable Call Me feature and button on Start Menu.', 'chatbot'); ?></p>
2354 - </div>
2244 + <div class="cxsc-settings-blocks">
2245 + <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox"
2246 + name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
2247 + <label for="disable_wp_chatbot_call_gen">
2248 + <?php esc_html_e('Disable Call Me feature and button on Start Menu', 'chatbot'); ?>
2355 2249 </label>
2356 2250 </div>
2357 2251 </div>
2358 2252 </div>
@@ -2370,18 +2264,13 @@
2370 2264 <div class="form-group">
2371 2265 <h4 class="qc-opt-title">
2372 2266 <?php esc_html_e('Email', 'chatbot'); ?>
2373 2267 </h4>
2374 - <div class="wpbot-cards-grid" style="margin-top: 15px;">
2375 - <label class="wpbot-checkbox-card">
2376 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox"
2377 - name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>>
2378 - <div class="card-body">
2379 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2380 - <div class="icon-wrapper"><i class="dashicons dashicons-email" style="font-size:24px;width:24px;height:24px;"></i></div>
2381 - <h4><?php esc_html_e('Disable Email feature and button on Start Menu', 'chatbot'); ?></h4>
2382 - <p><?php esc_html_e('Disable Email feature and button on Start Menu.', 'chatbot'); ?></p>
2383 - </div>
2268 + <div class="cxsc-settings-blocks">
2269 + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox"
2270 + name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>>
2271 + <label for="disable_wp_chatbot_feedback">
2272 + <?php esc_html_e('Disable Email feature and button on Start Menu', 'chatbot'); ?>
2384 2273 </label>
2385 2274 </div>
2386 2275 </div>
2387 2276 </div>
@@ -2399,18 +2288,13 @@
2399 2288 <div class="form-group">
2400 2289 <h4 class="qc-opt-title">
2401 2290 <?php esc_html_e('FAQ', 'chatbot'); ?>
2402 2291 </h4>
2403 - <div class="wpbot-cards-grid" style="margin-top: 15px;">
2404 - <label class="wpbot-checkbox-card">
2405 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox"
2406 - name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
2407 - <div class="card-body">
2408 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
2409 - <div class="icon-wrapper"><i class="dashicons dashicons-editor-help" style="font-size:24px;width:24px;height:24px;"></i></div>
2410 - <h4><?php esc_html_e('Disable FAQ feature and button on Start Menu', 'chatbot'); ?></h4>
2411 - <p><?php esc_html_e('Disable FAQ feature and button on Start Menu.', 'chatbot'); ?></p>
2412 - </div>
2292 + <div class="cxsc-settings-blocks">
2293 + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox"
2294 + name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
2295 + <label for="disable_wp_chatbot_faq">
2296 + <?php esc_html_e('Disable FAQ feature and button on Start Menu', 'chatbot'); ?>
2413 2297 </label>
2414 2298 </div>
2415 2299 </div>
2416 2300 </div>
@@ -2426,9 +2310,9 @@
2426 2310
2427 2311 </div>
2428 2312 </div>
2429 2313 </div>
2430 - <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div>
2314 + <div class="qcld-show-more-show-more"><i class="dashicons dashicons-plus-alt" aria-hidden="true"></i></div>
2431 2315 </div>
2432 2316 <div class="qc_menu_setup_area">
2433 2317 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'chatbot'); ?></h3>
2434 2318 <p style="color:red"><?php esc_html_e('Always open a new Incognito window (Ctrl+Shit+N in chrome) to test after making any change.', 'chatbot'); ?></p>
@@ -2443,18 +2327,14 @@
2443 2327 <?php
2444 2328 if(get_option('qc_wpbot_menu_order')!=''):
2445 2329 if( is_string( get_option('qc_wpbot_menu_order') ) ):
2446 2330 echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
2331 + else:
2447 2332 endif;
2448 - else:
2449 - $site_search_label = get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search';
2450 - $support_email_label = get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email.';
2451 - $support_phone_label = get_option('qlcd_wp_chatbot_support_phone') != '' ? get_option('qlcd_wp_chatbot_support_phone') : 'Leave your number. We will call you back!';
2452 - echo '<span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search">' . esc_attr($site_search_label) . '</span>';
2453 - echo '<span class="qcld-chatbot-suggest-email qc_draggable_item">' . esc_attr($support_email_label) . '</span>';
2454 - echo '<span class="qcld-chatbot-suggest-phone qc_draggable_item">' . esc_attr($support_phone_label) . '</span>';
2455 - endif;
2456 2333 ?>
2334 +
2335 +
2336 + <?php endif; ?>
2457 2337 </div>
2458 2338 </div>
2459 2339 <div class="qc_menu_list_area">
2460 2340 <h4><?php esc_html_e('Available Menu', 'chatbot'); ?></h4>
@@ -2498,9 +2378,9 @@
2498 2378 global $wpdb;
2499 2379
2500 2380 //To Do: Need to use prepared statement
2501 2381
2502 - $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, PluginCheck.Security.DirectDB.UnescapedDBParameter
2382 + $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); //DB Call OK, No Caching OK.
2503 2383 if(!empty($results)){
2504 2384 ?>
2505 2385 <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p>
2506 2386 <ul>