get_recent_logs($Almaweb_per_page, $Almaweb_offset, $Almaweb_filters); $Almaweb_total_logs = $Almaweb_Database->get_total_logs($Almaweb_filters); $Almaweb_total_pages = ceil($Almaweb_total_logs / $Almaweb_per_page); // Récupérer les familles distinctes pour le filtre $Almaweb_families = $Almaweb_Database->get_distinct_families(); // Enqueue inline script pour toggle details $almaweb_logs_script = 'jQuery(document).ready(function($) { $(".toggle-details").on("click", function() { var logId = $(this).data("log-id"); var detailsRow = $("#details-" + logId); detailsRow.fadeToggle(200); $(this).text(function(i, text) { return text === "' . esc_js(__('View', 'almaweb-ai-visitor-analytics')) . '" ? "' . esc_js(__('Hide', 'almaweb-ai-visitor-analytics')) . '" : "' . esc_js(__('View', 'almaweb-ai-visitor-analytics')) . '"; }); }); });'; wp_add_inline_script('almaweb-ai-visitor-analytics-admin', $almaweb_logs_script); ?>

'🟢 Humains', 'search' => '🔵 Recherche', 'training' => '🟡 Entraînement', 'scraping' => '🔴 Scrapers' ]; $Almaweb_active_filters[] = $Almaweb_intention_labels[$Almaweb_filters['bot_intention']]; } if (!empty($Almaweb_filters['bot_family'])) { $Almaweb_active_filters[] = 'Famille: ' . $Almaweb_filters['bot_family']; } if (!empty($Almaweb_active_filters)) { echo '' . esc_html__('Active filters:', 'almaweb-ai-visitor-analytics') . ' '; echo '' . esc_html(implode(' • ', $Almaweb_active_filters)) . ' '; } printf( /* translators: 1: Number of logs on the current page, 2: Total number of logs. */ esc_html__('Showing %1$d results out of %2$d total', 'almaweb-ai-visitor-analytics'), (int) count($Almaweb_logs), (int) $Almaweb_total_logs ); ?>

['icon' => '🟢', 'label' => 'Inference', 'class' => 'intention-inference'], 'search' => ['icon' => '🔵', 'label' => 'Search', 'class' => 'intention-search'], 'training' => ['icon' => '🟡', 'label' => 'Training', 'class' => 'intention-training'], 'scraping' => ['icon' => '🔴', 'label' => 'Scraping', 'class' => 'intention-scraping'] ]; $Almaweb_config = $Almaweb_intention_config[$Almaweb_log['bot_intention']] ?? ['icon' => '⚪', 'label' => $Almaweb_log['bot_intention'], 'class' => 'intention-unknown']; ?> — 🥷 🚫 '👁️ Visite', 'api_access' => '🔌 API', 'admin_attempt' => '⚠️ Admin', 'login_attempt' => '🔐 Login', 'resource_access' => '📁 Fichier', 'form_submission' => '📝 Form' ]; $Almaweb_action_label = $Almaweb_action_labels[$Almaweb_log['action_type'] ?? ''] ?? ($Almaweb_log['action_type'] ?? ''); echo esc_html($Almaweb_action_label); ?>
1): ?>
'%#%']); $Almaweb_page_links = paginate_links(array( 'base' => add_query_arg($Almaweb_base_query_args, ''), 'format' => '', 'prev_text' => __('« Previous', 'almaweb-ai-visitor-analytics'), 'next_text' => __('Next »', 'almaweb-ai-visitor-analytics'), 'total' => $Almaweb_total_pages, 'current' => $Almaweb_current_page, 'type' => 'plain' )); if ($Almaweb_page_links) { echo ''; printf( /* translators: 1: Current page number, 2: Total number of pages. */ esc_html__('Page %1$d of %2$d', 'almaweb-ai-visitor-analytics'), (int) $Almaweb_current_page, (int) $Almaweb_total_pages ); echo ''; echo wp_kses_post($Almaweb_page_links); } ?>