| @@ -1,26 +1,10 @@ | ||
| 1 | +<?php | |
| 1 | 2 | |
| 2 | -<?php | |
| 3 | 3 | // Exit if accessed directly |
| 4 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | 5 | exit; |
| 6 | 6 | } |
| 7 | -// Ensure WordPress escaping and translation functions are available | |
| 8 | -if ( ! function_exists( 'esc_html' ) ) { | |
| 9 | - require_once( ABSPATH . 'wp-includes/formatting.php' ); | |
| 10 | -} | |
| 11 | -if ( ! function_exists( 'esc_html__' ) ) { | |
| 12 | - require_once( ABSPATH . 'wp-includes/l10n.php' ); | |
| 13 | -} | |
| 14 | -if ( ! function_exists( 'esc_html_e' ) ) { | |
| 15 | - require_once( ABSPATH . 'wp-includes/l10n.php' ); | |
| 16 | -} | |
| 17 | -if ( ! function_exists( 'esc_attr' ) ) { | |
| 18 | - require_once( ABSPATH . 'wp-includes/formatting.php' ); | |
| 19 | -} | |
| 20 | -if ( ! function_exists( 'esc_url' ) ) { | |
| 21 | - require_once( ABSPATH . 'wp-includes/formatting.php' ); | |
| 22 | -} | |
| 23 | 7 | ?> |
| 24 | 8 | |
| 25 | 9 | <div class="wrap qcld-main-wrapper"> |
| 26 | 10 | <h1 style="display:none"> |
| @@ -29,9 +13,9 @@ | ||
| 29 | 13 | |
| 30 | 14 | <div class="qcld-wp-chatbot-wrap-header"> |
| 31 | 15 | |
| 32 | 16 | <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 | - <p><strong>Core Version:</strong> v<?php echo esc_attr(QCLD_wpCHATBOT_VERSION); ?></p> | |
| 17 | + <p><strong>Core Version:</strong> v<?php echo QCLD_wpCHATBOT_VERSION; ?></p> | |
| 34 | 18 | </div> |
| 35 | 19 | <ul class="qcld-wp-chatbot-wrap-version-wrapper"> |
| 36 | 20 | <li> |
| 37 | 21 | <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a> |
| @@ -63,9 +47,9 @@ | ||
| 63 | 47 | |
| 64 | 48 | <div class="wp-chatbot-wrap"> |
| 65 | 49 | <div class="icon32"><br> |
| 66 | 50 | </div> |
| 67 | -<form action="<?php echo esc_url($action); ?>" method="POST" id="wp-chatbot-admin-form" | |
| 51 | +<form action="<?php echo esc_url($action, 'chatbot'); ?>" method="POST" id="wp-chatbot-admin-form" | |
| 68 | 52 | enctype="multipart/form-data"> |
| 69 | 53 | <div class="form-container"> |
| 70 | 54 | |
| 71 | 55 | <section class="wp-chatbot-tab-container-inner"> |
| @@ -99,9 +83,9 @@ | ||
| 99 | 83 | </span> </a></li> |
| 100 | 84 | <li tab-data="startmenu"><a href="<?php echo esc_url($action).'&tab=startmenu' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-menu"></span> </span> <span class="wpwbot-admin-tab-name"><?php esc_html_e('Start Menu', 'chatbot'); ?></span> </a></li> |
| 101 | 85 | |
| 102 | 86 | |
| 103 | - <li tab-data="ai"><a href="<?php echo esc_url($action).'&tab=ai' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-format-chat"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 87 | + <li tab-data="ai"><a href="<?php echo esc_url($action).'&tab=ai' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-format-chat"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 104 | 88 | <?php esc_html_e('Dialogflow', 'chatbot'); ?> |
| 105 | 89 | </span> </a></li> |
| 106 | 90 | |
| 107 | 91 | |
| @@ -106,9 +90,9 @@ | ||
| 106 | 90 | |
| 107 | 91 | |
| 108 | 92 | <li tab-data="<?php echo esc_url('rpl'); ?>" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>"> |
| 109 | 93 | <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-feedback"></span> |
| 110 | - </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?> | |
| 94 | + </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?> | |
| 111 | 95 | </span> |
| 112 | 96 | </a> |
| 113 | 97 | </li> |
| 114 | 98 | |
| @@ -114,9 +98,9 @@ | ||
| 114 | 98 | |
| 115 | 99 | |
| 116 | 100 | |
| 117 | 101 | |
| 118 | - <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=custom_css'?>"> | |
| 102 | + <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=ai'?>"> | |
| 119 | 103 | <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-editor-code"></span> |
| 120 | 104 | </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Custom CSS', 'chatbot'); ?></span> |
| 121 | 105 | </a> |
| 122 | 106 | </li> |
| @@ -142,9 +126,9 @@ | ||
| 142 | 126 | |
| 143 | 127 | <div class="text-center mt-5 qcld-Resetall"> |
| 144 | 128 | <input type="button" class="btn btn-warning submit-button" |
| 145 | 129 | id="qcld-wp-chatbot-reset-option" |
| 146 | - value="<?php echo esc_attr__('Reset all options to Default', 'chatbot') ; ?>"/> | |
| 130 | + value="<?php echo esc_html('Reset all options to Default') ; ?>"/> | |
| 147 | 131 | </div> |
| 148 | 132 | </nav> |
| 149 | 133 | |
| 150 | 134 | |
| @@ -156,10 +140,10 @@ | ||
| 156 | 140 | |
| 157 | 141 | <div class="wrap qcld-swpm-admin-menu-wrap"> |
| 158 | 142 | <div class="wrap qcld-swpm-admin-menu-wrap"> |
| 159 | 143 | <h3 class="nav-tab-wrapper sld_nav_container wppt_nav_container"> |
| 160 | - <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html__('Getting Started', 'chatbot'); ?></a> | |
| 161 | - <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html__('WPBot – In a Nutshell', 'chatbot'); ?></a> | |
| 144 | + <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html('Getting Started'); ?></a> | |
| 145 | + <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html('WPBot – In a Nutshell'); ?></a> | |
| 162 | 146 | </h3> |
| 163 | 147 | <div class="wppt-settings-section" id="general_int"> |
| 164 | 148 | <div class="content form-container qcbot_help_secion" style=""> |
| 165 | 149 | <!-- new Section --> |
| @@ -532,33 +516,34 @@ | ||
| 532 | 516 | |
| 533 | 517 | <div class="cxsc-settings-blocks"> |
| 534 | 518 | <div class="form-group"> |
| 535 | 519 | <?php |
| 536 | - $qcld_wpbot_url = get_site_url(); | |
| 537 | - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url); | |
| 538 | - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host']; | |
| 539 | - $qcld_wpbot_admin_email = get_option('admin_email'); | |
| 520 | + $url = get_site_url(); | |
| 521 | + $url = wp_parse_url($url); | |
| 522 | + $domain = $url['host']; | |
| 523 | + | |
| 524 | + $admin_email = get_option('admin_email'); | |
| 540 | 525 | ?> |
| 541 | 526 | <h4 class="qc-opt-title"><?php esc_html_e('Emails Will be Sent to', 'chatbot'); ?></h4> |
| 542 | 527 | <input type="text" class="form-control qc-opt-dcs-font" |
| 543 | - name="qlcd_wp_chatbot_admin_email" | |
| 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)) ); ?>"> | |
| 528 | + name="qlcd_wp_chatbot_admin_email" | |
| 529 | + value="<?php echo (get_option('qlcd_wp_chatbot_admin_email') != '' ? esc_attr(get_option('qlcd_wp_chatbot_admin_email')) : sanitize_email($admin_email) ) ?>"> | |
| 545 | 530 | <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> |
| 546 | 531 | </div> |
| 547 | 532 | </div> |
| 548 | 533 | <div class="cxsc-settings-blocks"> |
| 549 | 534 | <div class="form-group"> |
| 550 | - <?php | |
| 551 | - $qcld_wpbot_url = get_site_url(); | |
| 552 | - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url); | |
| 553 | - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host']; | |
| 554 | - $qcld_wpbot_from_email = "wordpress@" . $qcld_wpbot_domain; | |
| 555 | - ?> | |
| 556 | - <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4> | |
| 557 | - <input type="text" class="form-control qc-opt-dcs-font" | |
| 558 | - name="qlcd_wp_chatbot_from_email" | |
| 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))); ?> "> | |
| 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> | |
| 535 | + <?php | |
| 536 | + $url = get_site_url(); | |
| 537 | + $url = wp_parse_url($url); | |
| 538 | + $domain = $url['host']; | |
| 539 | + $fromEmail = "wordpress@" . $domain; | |
| 540 | + ?> | |
| 541 | + <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4> | |
| 542 | + <input type="text" class="form-control qc-opt-dcs-font" | |
| 543 | + name="qlcd_wp_chatbot_from_email" | |
| 544 | + value="<?php echo (get_option('qlcd_wp_chatbot_from_email') != '' ? esc_attr( get_option('qlcd_wp_chatbot_from_email')) : sanitize_email($fromEmail)); ?> "> | |
| 545 | + <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 | 546 | </div> |
| 562 | 547 | </div> |
| 563 | 548 | </div> |
| 564 | 549 | </div> |
| @@ -585,9 +570,9 @@ | ||
| 585 | 570 | <?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?> |
| 586 | 571 | </h4> |
| 587 | 572 | <div class="cxsc-settings-blocks"> |
| 588 | 573 | <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') : ''); ?>> | |
| 574 | + name="wpbot_enable_on_search" <?php // echo (get_option('wpbot_enable_on_search') == 1 ? esc_attr('checked' ): ''); ?>> | |
| 590 | 575 | <label for="wpbot_enable_on_search"> |
| 591 | 576 | <?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?> |
| 592 | 577 | </label> |
| 593 | 578 | </div> |
| @@ -622,9 +607,8 @@ | ||
| 622 | 607 | </div> |
| 623 | 608 | </div> |
| 624 | 609 | </div> |
| 625 | 610 | </div> |
| 626 | - | |
| 627 | 611 | <div class="row"> |
| 628 | 612 | <div class="col-xs-12"> |
| 629 | 613 | <div class="form-group"> |
| 630 | 614 | <h4 class="qc-opt-title"> |
| @@ -641,20 +625,8 @@ | ||
| 641 | 625 | </div> |
| 642 | 626 | </div> |
| 643 | 627 | <div class="row"> |
| 644 | 628 | <div class="col-xs-12"> |
| 645 | - <div class="form-group"> | |
| 646 | - <h4 class="qc-opt-title"> <?php echo esc_html__('Enable Asking for Email', 'wpchatbot'); ?> </h4> | |
| 647 | - <div class="cxsc-settings-blocks"> | |
| 648 | - <input value="1" id="ask_email_wp_greetings" type="checkbox" | |
| 649 | - name="ask_email_wp_greetings" <?php echo (get_option('ask_email_wp_greetings') == 1 ? 'checked' : ''); ?>> | |
| 650 | - <label for="ask_email_wp_greetings"><?php echo esc_html__('Enable Asking for Email', 'wpchatbot'); ?> </label> | |
| 651 | - </div> | |
| 652 | - </div> | |
| 653 | - </div> | |
| 654 | - </div> | |
| 655 | - <div class="row"> | |
| 656 | - <div class="col-xs-12"> | |
| 657 | 629 | <div class="form-group"> |
| 658 | 630 | <h4 class="qc-opt-title"> |
| 659 | 631 | <?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?> |
| 660 | 632 | </h4> |
| @@ -768,17 +740,17 @@ | ||
| 768 | 740 | } |
| 769 | 741 | ?> |
| 770 | 742 | <input type="number" class="qc-opt-dcs-font" |
| 771 | 743 | name="wp_chatbot_position_x" |
| 772 | - value="<?php echo esc_attr($qcld_wb_chatbot_position_x);?>" | |
| 773 | - placeholder="<?php esc_attr_e('From Right In ', 'chatbot'); ?>"> | |
| 744 | + value="<?php echo esc_html($qcld_wb_chatbot_position_x);?>" | |
| 745 | + placeholder="<?php esc_html_e('From Right In ', 'chatbot'); ?>"> | |
| 774 | 746 | <span class="qc-opt-dcs-font"> |
| 775 | 747 | <?php esc_html_e('From Right In px', 'chatbot'); ?> |
| 776 | 748 | </span> |
| 777 | 749 | <input type="number" class="qc-opt-dcs-font" |
| 778 | 750 | name="wp_chatbot_position_y" |
| 779 | - value="<?php echo esc_attr($qcld_wb_chatbot_position_y); ?>" | |
| 780 | - placeholder="<?php esc_attr_e('From Bottom In Px', 'chatbot'); ?> "> | |
| 751 | + value="<?php echo esc_html($qcld_wb_chatbot_position_y); ?>" | |
| 752 | + placeholder="<?php esc_html_e('From Bottom In Px', 'chatbot'); ?> "> | |
| 781 | 753 | <span class="qc-opt-dcs-font"> |
| 782 | 754 | <?php esc_html_e('From Bottom In px', 'chatbot'); ?> |
| 783 | 755 | </span> </div> |
| 784 | 756 | </div> |
| @@ -864,14 +836,14 @@ | ||
| 864 | 836 | foreach ($wp_chatbot_pages as $wp_chatbot_page) { |
| 865 | 837 | ?> |
| 866 | 838 | <li> |
| 867 | 839 | <input id="<?php echo esc_attr('wp_chatbot_show_page_'. $wp_chatbot_page->ID ); ?>" |
| 868 | - type="checkbox" | |
| 869 | - name="wp_chatbot_show_pages_list[]" | |
| 870 | - value="<?php echo esc_attr($wp_chatbot_page->ID); ?>" <?php if (!empty($wp_chatbot_select_pages) && in_array($wp_chatbot_page->ID, $wp_chatbot_select_pages) == true) { | |
| 871 | - echo esc_attr('checked'); | |
| 872 | - } ?> > | |
| 873 | - <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label> | |
| 840 | + type="checkbox" | |
| 841 | + name="wp_chatbot_show_pages_list[]" | |
| 842 | + value="<?php echo esc_attr($wp_chatbot_page->ID); ?>" <?php if (!empty($wp_chatbot_select_pages) && in_array($wp_chatbot_page->ID, $wp_chatbot_select_pages) == true) { | |
| 843 | + echo esc_attr('checked'); | |
| 844 | + } ?> > | |
| 845 | + <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label> | |
| 874 | 846 | </li> |
| 875 | 847 | <?php } ?> |
| 876 | 848 | </ul> |
| 877 | 849 | </div> |
| @@ -929,57 +901,57 @@ | ||
| 929 | 901 | <section id="section-flip-5"> |
| 930 | 902 | <div class="wp-chatbot-language-center-summmery"> </div> |
| 931 | 903 | <div class="row"> |
| 932 | 904 | <div class="col-md-12"> |
| 933 | - <h4 class="qc-opt-title"><b><?php echo esc_html__( 'Change Language', 'chatbot'); ?></b></h4> | |
| 905 | + <h4 class="qc-opt-title"><b><?php echo esc_html__( 'Change Language', 'wpchatbot' ); ?></b></h4> | |
| 934 | 906 | <!-- Language Selection Dropdown --> |
| 935 | 907 | <div class="cxsc-settings-blocks mb-6"> |
| 936 | 908 | <div class="form-group"> |
| 937 | 909 | <label for="qcld_language_center_select" class="block text-sm font-medium text-gray-700 mb-2 qc-opt-language-title"> |
| 938 | - <?php echo esc_html__( 'Select a Language:', 'chatbot'); ?> | |
| 910 | + <?php echo esc_html__( 'Select a Language:', 'wpchatbot' ); ?> | |
| 939 | 911 | </label> |
| 940 | 912 | <select id="qcld_language_center_select" class="form-select" onchange="qcld_wpbot_languageChange_from_center(this.value)"> |
| 941 | - <option value=""> <?php echo esc_html__( '-- Choose a language --', 'chatbot'); ?></option> | |
| 942 | - <option value="arabic" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'arabic' ? 'selected' : '' ?>><?php echo esc_html__( 'Arabic (ar)', 'chatbot'); ?></option> | |
| 943 | - <option value="bulgarian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'bulgarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Bulgarian (bg)', 'chatbot'); ?></option> | |
| 944 | - <option value="chinese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese (zh)', 'chatbot'); ?></option> | |
| 945 | - <option value="chinese_mandarin" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese_mandarin' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese Mandarin (cmn)', 'chatbot'); ?></option> | |
| 946 | - <option value="danish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'danish' ? 'selected' : '' ?>><?php echo esc_html__( 'Danish (da)', 'chatbot'); ?></option> | |
| 947 | - <option value="dutch" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'dutch' ? 'selected' : '' ?>><?php echo esc_html__( 'Dutch (nl)', 'chatbot'); ?></option> | |
| 948 | - <option value="english" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'english' ? 'selected' : '' ?>><?php echo esc_html__( 'English (en)', 'chatbot'); ?></option> | |
| 949 | - <option value="estonian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'estonian' ? 'selected' : '' ?>><?php echo esc_html__( 'Estonian (et)', 'chatbot'); ?></option> | |
| 950 | - <option value="filipino" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'filipino' ? 'selected' : '' ?>><?php echo esc_html__( 'Filipino (fil)', 'chatbot'); ?></option> | |
| 951 | - <option value="french" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'french' ? 'selected' : '' ?>><?php echo esc_html__( 'French (fr)', 'chatbot'); ?></option> | |
| 952 | - <option value="german" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'german' ? 'selected' : '' ?>><?php echo esc_html__( 'German (de)', 'chatbot'); ?></option> | |
| 953 | - <option value="greek" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'greek' ? 'selected' : '' ?>><?php echo esc_html__( 'Greek (el)', 'chatbot'); ?></option> | |
| 954 | - <option value="hebrew" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hebrew' ? 'selected' : '' ?>><?php echo esc_html__( 'Hebrew (he)', 'chatbot'); ?></option> | |
| 955 | - <option value="hindi" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hindi' ? 'selected' : '' ?>><?php echo esc_html__( 'Hindi (hi)', 'chatbot'); ?></option> | |
| 956 | - <option value='hungarian' <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hungarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Hungarian (hu)', 'chatbot'); ?></option> | |
| 957 | - <option value="indonesian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'indonesian' ? 'selected' : '' ?>><?php echo esc_html__( 'Indonesian (id)', 'chatbot'); ?></option> | |
| 958 | - <option value="italian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'italian' ? 'selected' : '' ?>><?php echo esc_html__( 'Italian (it)', 'chatbot'); ?></option> | |
| 959 | - <option value="japanese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'japanese' ? 'selected' : '' ?>><?php echo esc_html__( 'Japanese (ja)', 'chatbot'); ?></option> | |
| 960 | - <option value="korean" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'korean' ? 'selected' : '' ?>><?php echo esc_html__( 'Korean (ko)', 'chatbot'); ?></option> | |
| 961 | - <option value="lithuanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'lithuanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Lithuanian (lt)', 'chatbot'); ?></option> | |
| 962 | - <option value="malay" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'malay' ? 'selected' : '' ?>><?php echo esc_html__( 'Malay (ms)', 'chatbot'); ?></option> | |
| 963 | - <option value="norwegian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'norwegian' ? 'selected' : '' ?>><?php echo esc_html__( 'Norwegian (no)', 'chatbot'); ?></option> | |
| 964 | - <option value="persian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'persian' ? 'selected' : '' ?>><?php echo esc_html__( 'Persian (fa)', 'chatbot'); ?></option> | |
| 965 | - <option value="polish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'polish' ? 'selected' : '' ?>><?php echo esc_html__( 'Polish (pl)', 'chatbot'); ?></option> | |
| 966 | - <option value="portuguese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'portuguese' ? 'selected' : '' ?>><?php echo esc_html__( 'Portuguese (pt)', 'chatbot'); ?></option> | |
| 967 | - <option value="romanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'romanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Romanian (ro)', 'chatbot'); ?></option> | |
| 968 | - <option value="russian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'russian' ? 'selected' : '' ?>><?php echo esc_html__( 'Russian (ru)', 'chatbot'); ?></option> | |
| 969 | - <option value="sinhala" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'sinhala' ? 'selected' : '' ?>><?php echo esc_html__( 'Sinhala (si)', 'chatbot'); ?></option> | |
| 970 | - <option value="spanish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'spanish' ? 'selected' : '' ?>><?php echo esc_html__( 'Spanish (es)', 'chatbot'); ?></option> | |
| 971 | - <option value="swedish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'swedish' ? 'selected' : '' ?>><?php echo esc_html__( 'Swedish (sv)', 'chatbot'); ?></option> | |
| 972 | - <option value="thai" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'thai' ? 'selected' : '' ?>><?php echo esc_html__( 'Thai (th)', 'chatbot'); ?></option> | |
| 973 | - <option value="turkish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'turkish' ? 'selected' : '' ?>><?php echo esc_html__( 'Turkish (tr)', 'chatbot'); ?></option> | |
| 974 | - <option value="ukrainian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'ukrainian' ? 'selected' : '' ?>><?php echo esc_html__( 'Ukrainian (uk)', 'chatbot'); ?></option> | |
| 975 | - <option value="vietnamese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'vietnamese' ? 'selected' : '' ?>><?php echo esc_html__( 'Vietnamese (vi)', 'chatbot'); ?></option> | |
| 976 | - <option value="not_mine" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'not_mine' ? 'selected' : '' ?>><?php echo esc_html__( 'My language is not here', 'chatbot'); ?></option> | |
| 913 | + <option value=""> <?php echo esc_html__( '-- Choose a language --', 'wpchatbot' ); ?></option> | |
| 914 | + <option value="arabic" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'arabic' ? 'selected' : '' ?>><?php echo esc_html__( 'Arabic (ar)', 'wpchatbot' ); ?></option> | |
| 915 | + <option value="bulgarian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'bulgarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Bulgarian (bg)', 'wpchatbot' ); ?></option> | |
| 916 | + <option value="chinese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese (zh)', 'wpchatbot' ); ?></option> | |
| 917 | + <option value="chinese_mandarin" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese_mandarin' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese Mandarin (cmn)', 'wpchatbot' ); ?></option> | |
| 918 | + <option value="danish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'danish' ? 'selected' : '' ?>><?php echo esc_html__( 'Danish (da)', 'wpchatbot' ); ?></option> | |
| 919 | + <option value="dutch" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'dutch' ? 'selected' : '' ?>><?php echo esc_html__( 'Dutch (nl)', 'wpchatbot' ); ?></option> | |
| 920 | + <option value="english" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'english' ? 'selected' : '' ?>><?php echo esc_html__( 'English (en)', 'wpchatbot' ); ?></option> | |
| 921 | + <option value="estonian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'estonian' ? 'selected' : '' ?>><?php echo esc_html__( 'Estonian (et)', 'wpchatbot' ); ?></option> | |
| 922 | + <option value="filipino" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'filipino' ? 'selected' : '' ?>><?php echo esc_html__( 'Filipino (fil)', 'wpchatbot' ); ?></option> | |
| 923 | + <option value="french" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'french' ? 'selected' : '' ?>><?php echo esc_html__( 'French (fr)', 'wpchatbot' ); ?></option> | |
| 924 | + <option value="german" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'german' ? 'selected' : '' ?>><?php echo esc_html__( 'German (de)', 'wpchatbot' ); ?></option> | |
| 925 | + <option value="greek" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'greek' ? 'selected' : '' ?>><?php echo esc_html__( 'Greek (el)', 'wpchatbot' ); ?></option> | |
| 926 | + <option value="hebrew" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hebrew' ? 'selected' : '' ?>><?php echo esc_html__( 'Hebrew (he)', 'wpchatbot' ); ?></option> | |
| 927 | + <option value="hindi" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hindi' ? 'selected' : '' ?>><?php echo esc_html__( 'Hindi (hi)', 'wpchatbot' ); ?></option> | |
| 928 | + <option value='hungarian' <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hungarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Hungarian (hu)', 'wpchatbot' ); ?></option> | |
| 929 | + <option value="indonesian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'indonesian' ? 'selected' : '' ?>><?php echo esc_html__( 'Indonesian (id)', 'wpchatbot' ); ?></option> | |
| 930 | + <option value="italian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'italian' ? 'selected' : '' ?>><?php echo esc_html__( 'Italian (it)', 'wpchatbot' ); ?></option> | |
| 931 | + <option value="japanese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'japanese' ? 'selected' : '' ?>><?php echo esc_html__( 'Japanese (ja)', 'wpchatbot' ); ?></option> | |
| 932 | + <option value="korean" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'korean' ? 'selected' : '' ?>><?php echo esc_html__( 'Korean (ko)', 'wpchatbot' ); ?></option> | |
| 933 | + <option value="lithuanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'lithuanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Lithuanian (lt)', 'wpchatbot' ); ?></option> | |
| 934 | + <option value="malay" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'malay' ? 'selected' : '' ?>><?php echo esc_html__( 'Malay (ms)', 'wpchatbot' ); ?></option> | |
| 935 | + <option value="norwegian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'norwegian' ? 'selected' : '' ?>><?php echo esc_html__( 'Norwegian (no)', 'wpchatbot' ); ?></option> | |
| 936 | + <option value="persian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'persian' ? 'selected' : '' ?>><?php echo esc_html__( 'Persian (fa)', 'wpchatbot' ); ?></option> | |
| 937 | + <option value="polish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'polish' ? 'selected' : '' ?>><?php echo esc_html__( 'Polish (pl)', 'wpchatbot' ); ?></option> | |
| 938 | + <option value="portuguese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'portuguese' ? 'selected' : '' ?>><?php echo esc_html__( 'Portuguese (pt)', 'wpchatbot' ); ?></option> | |
| 939 | + <option value="romanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'romanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Romanian (ro)', 'wpchatbot' ); ?></option> | |
| 940 | + <option value="russian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'russian' ? 'selected' : '' ?>><?php echo esc_html__( 'Russian (ru)', 'wpchatbot' ); ?></option> | |
| 941 | + <option value="sinhala" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'sinhala' ? 'selected' : '' ?>><?php echo esc_html__( 'Sinhala (si)', 'wpchatbot' ); ?></option> | |
| 942 | + <option value="spanish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'spanish' ? 'selected' : '' ?>><?php echo esc_html__( 'Spanish (es)', 'wpchatbot' ); ?></option> | |
| 943 | + <option value="swedish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'swedish' ? 'selected' : '' ?>><?php echo esc_html__( 'Swedish (sv)', 'wpchatbot' ); ?></option> | |
| 944 | + <option value="thai" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'thai' ? 'selected' : '' ?>><?php echo esc_html__( 'Thai (th)', 'wpchatbot' ); ?></option> | |
| 945 | + <option value="turkish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'turkish' ? 'selected' : '' ?>><?php echo esc_html__( 'Turkish (tr)', 'wpchatbot' ); ?></option> | |
| 946 | + <option value="ukrainian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'ukrainian' ? 'selected' : '' ?>><?php echo esc_html__( 'Ukrainian (uk)', 'wpchatbot' ); ?></option> | |
| 947 | + <option value="vietnamese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'vietnamese' ? 'selected' : '' ?>><?php echo esc_html__( 'Vietnamese (vi)', 'wpchatbot' ); ?></option> | |
| 948 | + <option value="not_mine" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'not_mine' ? 'selected' : '' ?>><?php echo esc_html__( 'My language is not here', 'wpchatbot' ); ?></option> | |
| 977 | 949 | </select> |
| 978 | 950 | <!-- Results Display Area --> |
| 979 | 951 | <div id="results-container" class="mt-8 p-4 flex items-center justify-center text-gray-600"> |
| 980 | 952 | <p id="initial-message"> |
| 981 | - <?php echo esc_html__( 'Select your language to auto translate the texts used by the ChatBot. You can fine tune and update them manually from below.', 'chatbot'); ?> <b><?php echo esc_html__( 'Remember to Save the Settings.', 'chatbot'); ?></b> | |
| 953 | + <?php echo esc_html__( 'Select your language to auto translate the texts used by the ChatBot. You can fine tune and update them manually from below.', 'wpchatbot' ); ?> <b><?php echo esc_html__( 'Remember to Save the Settings.', 'wpchatbot' ); ?></b> | |
| 982 | 954 | </p> |
| 983 | 955 | <p id="waring-message"></p> |
| 984 | 956 | </div> |
| 985 | 957 | </div> |
| @@ -1011,9 +983,9 @@ | ||
| 1011 | 983 | <?php esc_html_e('Your Company or Website Name', 'chatbot'); ?> |
| 1012 | 984 | </h4> |
| 1013 | 985 | <input type="text" class="form-control qc-opt-dcs-font" |
| 1014 | 986 | name="qlcd_wp_chatbot_host" |
| 1015 | - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?>"> | |
| 987 | + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?> "> | |
| 1016 | 988 | </div> |
| 1017 | 989 | <div class="form-group"> |
| 1018 | 990 | <h4 class="qc-opt-title"> |
| 1019 | 991 | <?php esc_html_e('Agent name', 'chatbot'); ?> |
| @@ -1019,9 +991,9 @@ | ||
| 1019 | 991 | <?php esc_html_e('Agent name', 'chatbot'); ?> |
| 1020 | 992 | </h4> |
| 1021 | 993 | <input type="text" class="form-control qc-opt-dcs-font" |
| 1022 | 994 | name="qlcd_wp_chatbot_agent" |
| 1023 | - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie')); ?>"> | |
| 995 | + value="<?php echo (get_option('qlcd_wp_chatbot_agent') != '' ? esc_attr(get_option('qlcd_wp_chatbot_agent')) : 'Carrie'); ?>"> | |
| 1024 | 996 | </div> |
| 1025 | 997 | <div class="form-group"> |
| 1026 | 998 | <h4 class="qc-opt-title"> |
| 1027 | 999 | <?php esc_html_e('User demo name', 'chatbot'); ?> |
| @@ -1027,9 +999,9 @@ | ||
| 1027 | 999 | <?php esc_html_e('User demo name', 'chatbot'); ?> |
| 1028 | 1000 | </h4> |
| 1029 | 1001 | <input type="text" class="form-control qc-opt-dcs-font" |
| 1030 | 1002 | name="qlcd_wp_chatbot_shopper_demo_name" |
| 1031 | - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?>"> | |
| 1003 | + value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?> "> | |
| 1032 | 1004 | </div> |
| 1033 | 1005 | <div class="form-group"> |
| 1034 | 1006 | <h4 class="qc-opt-title"> |
| 1035 | 1007 | <?php esc_html_e('YES', 'chatbot'); ?> |
| @@ -1453,13 +1425,13 @@ | ||
| 1453 | 1425 | value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dislike_text') != '' ? get_option('qlcd_wp_chatbot_dislike_text') : 'Dislike')); ?>"> |
| 1454 | 1426 | </div> |
| 1455 | 1427 | |
| 1456 | 1428 | <div class="form-group"> |
| 1457 | - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </h4> | |
| 1429 | + <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Reporting Message', 'wpchatbot' ); ?> </h4> | |
| 1458 | 1430 | <div class="cxsc-settings-blocks"> |
| 1459 | 1431 | <input value="1" id="enable_chat_report_menu" type="checkbox" |
| 1460 | 1432 | name="enable_chat_report_menu" <?php echo( get_option( 'enable_chat_report_menu', 1 ) == 1 ? 'checked' : '' ); ?>> |
| 1461 | - <label for="enable_chat_report_menu"><?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </label> | |
| 1433 | + <label for="enable_chat_report_menu"><?php echo esc_html__( 'Enable Reporting Message', 'wpchatbot' ); ?> </label> | |
| 1462 | 1434 | </div> |
| 1463 | 1435 | </div> |
| 1464 | 1436 | <div class="form-group"> |
| 1465 | 1437 | <h4 class="qc-opt-title"> |
| @@ -1469,13 +1441,13 @@ | ||
| 1469 | 1441 | name="qlcd_wp_chatbot_report_text" |
| 1470 | 1442 | value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_report_text') != '' ? get_option('qlcd_wp_chatbot_report_text') : 'Report')); ?>"> |
| 1471 | 1443 | </div> |
| 1472 | 1444 | <div class="form-group"> |
| 1473 | - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </h4> | |
| 1445 | + <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Share', 'wpchatbot' ); ?> </h4> | |
| 1474 | 1446 | <div class="cxsc-settings-blocks"> |
| 1475 | 1447 | <input value="1" id="enable_chat_share_menu" type="checkbox" |
| 1476 | 1448 | name="enable_chat_share_menu" <?php echo( get_option( 'enable_chat_share_menu', 1 ) == 1 ? 'checked' : '' ); ?>> |
| 1477 | - <label for="enable_chat_share_menu"><?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </label> | |
| 1449 | + <label for="enable_chat_share_menu"><?php echo esc_html__( 'Enable Chat Share', 'wpchatbot' ); ?> </label> | |
| 1478 | 1450 | </div> |
| 1479 | 1451 | </div> |
| 1480 | 1452 | <div class="form-group"> |
| 1481 | 1453 | <h4 class="qc-opt-title"> |
| @@ -1759,29 +1731,8 @@ | ||
| 1759 | 1731 | </div> |
| 1760 | 1732 | </div> |
| 1761 | 1733 | <div id="top-section"> |
| 1762 | 1734 | <div class="form-group"> |
| 1763 | - <!-- Avatar Location Section --> | |
| 1764 | - <div class="avatar-location-wrapper"> | |
| 1765 | - <h4 class="qc-opt-title"><?php esc_html_e('Avatar Location', 'chatbot'); ?></h4> | |
| 1766 | - <?php $avatar_location = get_option('qcld_chatbot_avatar_location'); ?> | |
| 1767 | - <input type="hidden" id="qcld-avatar-location" name="qcld_chatbot_avatar_location" value="<?php echo esc_attr($avatar_location); ?>"> | |
| 1768 | - <div class="avatar-location-cards"> | |
| 1769 | - <div class="avatar-location-card <?php echo ($avatar_location === 'inside') ? 'active' : ''; ?>" data-location="inside"> | |
| 1770 | - <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> | |
| 1771 | - <span><?php esc_html_e('Inside', 'chatbot'); ?></span> | |
| 1772 | - </div> | |
| 1773 | - <div class="avatar-location-card <?php echo ($avatar_location === 'side') ? 'active' : ''; ?>" data-location="side"> | |
| 1774 | - <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> | |
| 1775 | - <span><?php esc_html_e('Side', 'chatbot'); ?></span> | |
| 1776 | - </div> | |
| 1777 | - <div class="avatar-location-card <?php echo ($avatar_location === 'hidden') ? 'active' : ''; ?>" data-location="hidden"> | |
| 1778 | - <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> | |
| 1779 | - <span><?php esc_html_e('Hidden', 'chatbot'); ?></span> | |
| 1780 | - </div> | |
| 1781 | - </div> | |
| 1782 | - </div> | |
| 1783 | - <!-- End Avatar Location Section --> | |
| 1784 | 1735 | <div class="row"> |
| 1785 | 1736 | <div class="col-sm-12"> |
| 1786 | 1737 | <h4 class="qc-opt-title"> |
| 1787 | 1738 | <?php esc_html_e('WPBot Themes', 'chatbot'); ?> |
| @@ -1838,9 +1789,9 @@ | ||
| 1838 | 1789 | <div class="cxsc-settings-blocks"> |
| 1839 | 1790 | <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox" |
| 1840 | 1791 | name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>> |
| 1841 | 1792 | <label for="enable_wp_chatbot_custom_color"> |
| 1842 | - <?php esc_html_e('Enable Custom Styles ', 'chatbot'); ?> | |
| 1793 | + <?php esc_html_e('Enable Custom Styles ', 'wpbot'); ?> | |
| 1843 | 1794 | </label> |
| 1844 | 1795 | </div> |
| 1845 | 1796 | </div> |
| 1846 | 1797 | </div> |
| @@ -2225,9 +2176,9 @@ | ||
| 2225 | 2176 | <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>"> |
| 2226 | 2177 | <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?> |
| 2227 | 2178 | </div> --> |
| 2228 | 2179 | <?php |
| 2229 | - wp_enqueue_style('qcld-wp-chatbot-common-style', plugins_url(basename(plugin_dir_path(__FILE__)) . '/css/common-style.css', basename(__FILE__)), '', esc_attr(QCLD_wpCHATBOT_VERSION), 'screen'); | |
| 2180 | + wp_enqueue_style('qcld-wp-chatbot-common-style', plugins_url(basename(plugin_dir_path(__FILE__)) . '/css/common-style.css', basename(__FILE__)), '', QCLD_wpCHATBOT_VERSION, 'screen'); | |
| 2230 | 2181 | ?> |
| 2231 | 2182 | <div class="top-section"> |
| 2232 | 2183 | <div class="notification-block-inner"> |
| 2233 | 2184 | <div class="row"> |
| @@ -2344,9 +2295,9 @@ | ||
| 2344 | 2295 | |
| 2345 | 2296 | </div> |
| 2346 | 2297 | </div> |
| 2347 | 2298 | </div> |
| 2348 | - <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div> | |
| 2299 | + <div class="qcld-show-more-show-more"><i class="dashicons dashicons-plus-alt" aria-hidden="true"></i></div> | |
| 2349 | 2300 | </div> |
| 2350 | 2301 | <div class="qc_menu_setup_area"> |
| 2351 | 2302 | <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'chatbot'); ?></h3> |
| 2352 | 2303 | <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> |
| @@ -2361,18 +2312,14 @@ | ||
| 2361 | 2312 | <?php |
| 2362 | 2313 | if(get_option('qc_wpbot_menu_order')!=''): |
| 2363 | 2314 | if( is_string( get_option('qc_wpbot_menu_order') ) ): |
| 2364 | 2315 | echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order'))); |
| 2316 | + else: | |
| 2365 | 2317 | endif; |
| 2366 | - else: | |
| 2367 | - $site_search_label = get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search'; | |
| 2368 | - $support_email_label = get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email.'; | |
| 2369 | - $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!'; | |
| 2370 | - echo '<span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search">' . esc_attr($site_search_label) . '</span>'; | |
| 2371 | - echo '<span class="qcld-chatbot-suggest-email qc_draggable_item">' . esc_attr($support_email_label) . '</span>'; | |
| 2372 | - echo '<span class="qcld-chatbot-suggest-phone qc_draggable_item">' . esc_attr($support_phone_label) . '</span>'; | |
| 2373 | - endif; | |
| 2374 | 2318 | ?> |
| 2319 | + | |
| 2320 | + | |
| 2321 | + <?php endif; ?> | |
| 2375 | 2322 | </div> |
| 2376 | 2323 | </div> |
| 2377 | 2324 | <div class="qc_menu_list_area"> |
| 2378 | 2325 | <h4><?php esc_html_e('Available Menu', 'chatbot'); ?></h4> |
| @@ -2416,9 +2363,9 @@ | ||
| 2416 | 2363 | global $wpdb; |
| 2417 | 2364 | |
| 2418 | 2365 | //To Do: Need to use prepared statement |
| 2419 | 2366 | |
| 2420 | - $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 | |
| 2367 | + $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); //DB Call OK, No Caching OK. | |
| 2421 | 2368 | if(!empty($results)){ |
| 2422 | 2369 | ?> |
| 2423 | 2370 | <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p> |
| 2424 | 2371 | <ul> |