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 +168 -320 8.6.68.3.8 View file →
@@ -28,9 +28,9 @@
28 28 </h1>
29 29
30 30 <div class="qcld-wp-chatbot-wrap-header">
31 31
32 - <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>
32 + <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>
33 33 <p><strong>Core Version:</strong> v<?php echo esc_attr(QCLD_wpCHATBOT_VERSION); ?></p>
34 34 </div>
35 35 <ul class="qcld-wp-chatbot-wrap-version-wrapper">
36 36 <li>
@@ -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">
@@ -808,13 +736,8 @@
808 736 </div>
809 737 </div>
810 738 </div>
811 739 </div>
812 -
813 -
814 -
815 -
816 -
817 740 <div class="row">
818 741 <div class="col-xs-12">
819 742 <div class="form-group">
820 743 <h4 class="qc-opt-title">
@@ -1570,57 +1493,9 @@
1570 1493 </ul>
1571 1494 <div class="tab-content">
1572 1495 <div id="wp-chatbot-icon-theme-settings" class="tab-pane fade in active">
1573 1496 <div class="top-section">
1574 -
1575 -
1576 -
1577 - <div class="row">
1578 - <div class="col-xs-6">
1579 - <div class="form-group">
1580 - <h4 class="qc-opt-title">
1581 - <?php esc_html_e('ChatBot Window Max Height', 'wpchatbot'); ?>
1582 - </h4>
1583 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1584 - <?php
1585 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1586 - if (!$chatbot_content_max_height) {
1587 - $chatbot_content_max_height = 80;
1588 - } else {
1589 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1590 - }
1591 - ?>
1592 - <input value="<?php echo esc_attr( $chatbot_content_max_height ); ?>" id="chatbot_content_max_height" type="number" min="0" max="100" placeholder="Max height 100" name="chatbot_content_max_height"> vh
1593 - </div>
1594 - </div>
1595 - </div>
1596 - <div class="col-xs-6">
1597 - <div class="form-group">
1598 - <h4 class="qc-opt-title">
1599 - <?php esc_html_e('ChatBot Window Max Height ( Mobile Device )', 'wpchatbot'); ?>
1600 - </h4>
1601 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1602 - <?php
1603 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1604 - if (!$chatbot_content_max_height_responsive) {
1605 - $chatbot_content_max_height_responsive = 100;
1606 - } else {
1607 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1608 - }
1609 - ?>
1610 - <input value="<?php echo esc_attr( $chatbot_content_max_height_responsive ); ?>" id="chatbot_content_max_height_responsive" type="number" min="0" max="100" placeholder="Max height 100" name="chatbot_content_max_height_responsive"> vh
1611 - </div>
1612 - </div>
1613 - </div>
1614 - </div>
1615 -
1616 -
1617 -
1618 -
1619 -
1620 -
1621 -
1622 - <div class="row">
1497 + <div class="row">
1623 1498 <div class="col-xs-12">
1624 1499
1625 1500 <h3 class="qcld-wpbot-main-tabs-title">
1626 1501 <?php esc_html_e('WPBot Icon', 'chatbot'); ?>
@@ -1871,29 +1746,8 @@
1871 1746 </div>
1872 1747 </div>
1873 1748 <div id="top-section">
1874 1749 <div class="form-group">
1875 - <!-- Avatar Location Section -->
1876 - <div class="avatar-location-wrapper">
1877 - <h4 class="qc-opt-title"><?php esc_html_e('Avatar Location', 'chatbot'); ?></h4>
1878 - <?php $avatar_location = get_option('qcld_chatbot_avatar_location'); ?>
1879 - <input type="hidden" id="qcld-avatar-location" name="qcld_chatbot_avatar_location" value="<?php echo esc_attr($avatar_location); ?>">
1880 - <div class="avatar-location-cards">
1881 - <div class="avatar-location-card <?php echo ($avatar_location === 'inside') ? 'active' : ''; ?>" data-location="inside">
1882 - <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>
1883 - <span><?php esc_html_e('Inside', 'chatbot'); ?></span>
1884 - </div>
1885 - <div class="avatar-location-card <?php echo ($avatar_location === 'side') ? 'active' : ''; ?>" data-location="side">
1886 - <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>
1887 - <span><?php esc_html_e('Side', 'chatbot'); ?></span>
1888 - </div>
1889 - <div class="avatar-location-card <?php echo ($avatar_location === 'hidden') ? 'active' : ''; ?>" data-location="hidden">
1890 - <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>
1891 - <span><?php esc_html_e('Hidden', 'chatbot'); ?></span>
1892 - </div>
1893 - </div>
1894 - </div>
1895 - <!-- End Avatar Location Section -->
1896 1750 <div class="row">
1897 1751 <div class="col-sm-12">
1898 1752 <h4 class="qc-opt-title">
1899 1753 <?php esc_html_e('WPBot Themes', 'chatbot'); ?>
@@ -2297,9 +2151,9 @@
2297 2151 <input type="text" class="form-control" name="support_query[]"
2298 2152 placeholder="<?php esc_html_e('FAQ Query ', 'chatbot'); ?> ">
2299 2153 <br>
2300 2154 <p class="qc-opt-dcs-font"><strong>
2301 - <?php esc_html_e('FAQ answer', 'chatbot'); ?>
2155 + <?php esc_html_e('Support answer', 'chatbot'); ?>
2302 2156 </strong></p>
2303 2157 <?php
2304 2158 wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
2305 2159 'support_ans[]',
@@ -2343,10 +2197,8 @@
2343 2197 <div class="top-section">
2344 2198 <div class="notification-block-inner">
2345 2199 <div class="row">
2346 2200 <div class="col-xs-12">
2347 -
2348 -
2349 2201 <div id="qcld-show-more-wrapper-box">
2350 2202 <div class="qcld-show-more-text qcld-show-more-show-more-height">
2351 2203 <div class="row">
2352 2204 <div class="col-xs-12">
@@ -2458,9 +2310,9 @@
2458 2310
2459 2311 </div>
2460 2312 </div>
2461 2313 </div>
2462 - <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>
2463 2315 </div>
2464 2316 <div class="qc_menu_setup_area">
2465 2317 <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'chatbot'); ?></h3>
2466 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>
@@ -2475,18 +2327,14 @@
2475 2327 <?php
2476 2328 if(get_option('qc_wpbot_menu_order')!=''):
2477 2329 if( is_string( get_option('qc_wpbot_menu_order') ) ):
2478 2330 echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
2331 + else:
2479 2332 endif;
2480 - else:
2481 - $site_search_label = get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search';
2482 - $support_email_label = get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email.';
2483 - $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!';
2484 - echo '<span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search">' . esc_attr($site_search_label) . '</span>';
2485 - echo '<span class="qcld-chatbot-suggest-email qc_draggable_item">' . esc_attr($support_email_label) . '</span>';
2486 - echo '<span class="qcld-chatbot-suggest-phone qc_draggable_item">' . esc_attr($support_phone_label) . '</span>';
2487 - endif;
2488 2333 ?>
2334 +
2335 +
2336 + <?php endif; ?>
2489 2337 </div>
2490 2338 </div>
2491 2339 <div class="qc_menu_list_area">
2492 2340 <h4><?php esc_html_e('Available Menu', 'chatbot'); ?></h4>
@@ -2530,9 +2378,9 @@
2530 2378 global $wpdb;
2531 2379
2532 2380 //To Do: Need to use prepared statement
2533 2381
2534 - $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.
2535 2383 if(!empty($results)){
2536 2384 ?>
2537 2385 <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p>
2538 2386 <ul>