api = $api; } public function getConfig(): array { return [ 'title' => 'Statistics', 'viewable' => false, 'type' => 'system', ]; } public function getAdminMenu(): array { return [ [ 'plugin' => 'Statistics', 'route' => 'statistics', 'label' => 'Statistieken', 'icon' => 'bi-bar-chart', 'section' => 'general', ], ]; } public function handleAdminRoute(string $action): ?string { $analytics = $this->getAnalytics(); if ($analytics === null) { return '
Geen data
| Land | Views |
|---|---|
| = GeoIP::getCountryFlagEmoji($country) ?> = htmlspecialchars(GeoIP::getCountryName($country)) ?> | = number_format($count, 0, ',', '.') ?> |
Geen data
| Pagina | Views |
|---|---|
| = htmlspecialchars($page) ?> | = number_format($count, 0, ',', '.') ?> |