← All changes
|
includes/chat-sessions/reports/view/partials/view-single-chat.php
+5
-5
8.7.4
→
8.8.2
View file →
| @@ -8,9 +8,9 @@ | ||
| 8 | 8 | $table_user_sql = '`' . esc_sql( $tableuser ) . '`'; |
| 9 | 9 | $table_conv_sql = '`' . esc_sql( $tableconversation ) . '`'; |
| 10 | 10 | $userid = isset( $_GET['userid'] ) ? absint( wp_unslash( $_GET['userid'] ) ) : 0; // phpcs:ignore WordPress.Security.NonceVerification.Recommended |
| 11 | 11 | |
| 12 | - $userinfo = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$table_user_sql} WHERE id = %d", $userid ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared | |
| 12 | + $userinfo = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$table_user_sql} WHERE id = %d", $userid ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, PluginCheck.Security.DirectDB.UnescapedDBParameter | |
| 13 | 13 | |
| 14 | 14 | $delurl = wp_nonce_url( admin_url( 'admin.php?page=wbcs-botsessions-page&userid=' . $userinfo->id . '&act=delete' ), 'wpcs_delete_session_' . $userinfo->id ); |
| 15 | 15 | |
| 16 | 16 | $export = wp_nonce_url( admin_url( 'admin-post.php?action=wpbot_conversations.csv&user_id=' . $userid ), 'wpbot_conversations_csv' ); |
| @@ -24,12 +24,12 @@ | ||
| 24 | 24 | <div class="wpbot-session-meta-card__header"> |
| 25 | 25 | <h2><?php echo esc_html__( 'Session Details', 'chatbot' ); ?></h2> |
| 26 | 26 | <div class="wpbot-session-meta-card__actions"> |
| 27 | 27 | <a href="<?php echo esc_url( $delurl ); ?>" class="btn btn-danger" onclick="return confirm('Are you sure?')"> |
| 28 | - <i class="bi bi-trash me-1"></i> <?php echo esc_html__( 'Delete', 'chatbot' ); ?> | |
| 28 | + <?php echo esc_html__( 'Delete', 'chatbot' ); ?> | |
| 29 | 29 | </a> |
| 30 | 30 | <a href="<?php echo esc_url( $export ); ?>" class="btn btn-primary"> |
| 31 | - <i class="bi bi-filetype-csv me-1"></i> <?php echo esc_html__( 'Export', 'chatbot' ); ?> | |
| 31 | + <?php echo esc_html__( 'Export', 'chatbot' ); ?> | |
| 32 | 32 | </a> |
| 33 | 33 | </div> |
| 34 | 34 | </div> |
| 35 | 35 | |
| @@ -78,9 +78,9 @@ | ||
| 78 | 78 | <div class="single-chat-container-wrapper wpbot-session-chat-card"> |
| 79 | 79 | <div class="wpbot-session-chat-card__header"> |
| 80 | 80 | <h3><?php echo esc_html__( 'Chat Messages', 'chatbot' ); ?></h3> |
| 81 | 81 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=wbcs-botsessions-page' ) ); ?>" class="btn btn-primary wpbot-session-back-btn"> |
| 82 | - <i class="bi bi-arrow-left me-1"></i> <?php echo esc_html__( 'Conversation List', 'chatbot' ); ?> | |
| 82 | + <?php echo esc_html__( 'Conversation List', 'chatbot' ); ?> | |
| 83 | 83 | </a> |
| 84 | 84 | </div> |
| 85 | 85 | <div class="wp-chatbot-messages-wrapper"> |
| 86 | 86 | <?php |
| @@ -114,9 +114,9 @@ | ||
| 114 | 114 | </div> |
| 115 | 115 | </div> |
| 116 | 116 | |
| 117 | 117 | <button type="button" class="wpbot-reply-fab" id="wpbot_reply_fab" aria-expanded="false" aria-controls="wpbot_reply_panel"> |
| 118 | - <i class="bi bi-envelope" aria-hidden="true"></i> | |
| 118 | + | |
| 119 | 119 | <span><?php echo esc_html__( 'Reply via Email', 'chatbot' ); ?></span> |
| 120 | 120 | </button> |
| 121 | 121 | |
| 122 | 122 | <div class="wpbot-reply-panel" id="wpbot_reply_panel" hidden> |