2025-11-04 09:05:55 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
return [
|
2026-02-11 12:02:12 +01:00
|
|
|
'dashboard' => [
|
2026-02-09 14:26:46 +01:00
|
|
|
'label' => 'Dashboard',
|
|
|
|
|
'icon' => 'bolt',
|
|
|
|
|
'link' => '/',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, '/site');
|
|
|
|
|
}
|
2025-11-04 09:05:55 +01:00
|
|
|
],
|
2026-02-11 12:02:12 +01:00
|
|
|
'-',
|
|
|
|
|
'home' => [
|
|
|
|
|
'label' => 'Accueil',
|
|
|
|
|
'icon' => 'home',
|
|
|
|
|
'link' => 'pages/home',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, 'pages/home');
|
|
|
|
|
}
|
|
|
|
|
],
|
2026-02-11 15:28:48 +01:00
|
|
|
'enquetes' => [
|
|
|
|
|
'label' => 'Enquêtes',
|
|
|
|
|
'icon' => 'pen',
|
|
|
|
|
'link' => 'pages/enquetes',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, 'pages/enquetes');
|
|
|
|
|
}
|
|
|
|
|
],
|
2026-02-11 15:10:21 +01:00
|
|
|
'impacts' => [
|
|
|
|
|
'label' => 'Impacts',
|
2026-02-11 15:28:48 +01:00
|
|
|
'icon' => 'globe',
|
2026-02-11 15:10:21 +01:00
|
|
|
'link' => 'pages/impacts',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, 'pages/impacts');
|
|
|
|
|
}
|
|
|
|
|
],
|
2026-02-11 12:40:18 +01:00
|
|
|
'dossiers' => [
|
|
|
|
|
'label' => 'Dossiers',
|
|
|
|
|
'icon' => 'folder',
|
|
|
|
|
'link' => 'pages/dossiers',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, 'pages/dossiers');
|
|
|
|
|
}
|
|
|
|
|
],
|
2026-02-11 15:28:48 +01:00
|
|
|
'laboratoire' => [
|
|
|
|
|
'label' => 'Laboratoire',
|
|
|
|
|
'icon' => 'attachment',
|
|
|
|
|
'link' => 'pages/laboratoire',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, 'pages/laboratoire');
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
'-',
|
|
|
|
|
'contact' => [
|
|
|
|
|
'label' => 'Contact',
|
|
|
|
|
'icon' => 'email',
|
|
|
|
|
'link' => 'pages/contact',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, 'pages/contact');
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
'a-propos' => [
|
|
|
|
|
'label' => 'À propos',
|
|
|
|
|
'icon' => 'question',
|
|
|
|
|
'link' => 'pages/a-propos',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, 'pages/a-propos');
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
'legal-notices' => [
|
|
|
|
|
'label' => 'Mentions légales',
|
|
|
|
|
'icon' => 'email',
|
|
|
|
|
'link' => 'pages/mentions-legales',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, 'pages/mentions-legales');
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
'-',
|
2026-02-10 16:13:01 +01:00
|
|
|
'database' => [
|
|
|
|
|
'label' => 'Bases de données',
|
|
|
|
|
'icon' => 'table',
|
|
|
|
|
'link' => 'pages/database',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, 'pages/database');
|
|
|
|
|
}
|
|
|
|
|
],
|
2025-11-04 10:07:50 +01:00
|
|
|
'-',
|
|
|
|
|
'users'
|
2025-11-04 09:05:55 +01:00
|
|
|
];
|