index-main/site/config/menu.php

99 lines
2.7 KiB
PHP
Raw Normal View History

2025-11-04 09:05:55 +01:00
<?php
return [
2026-02-11 12:02:12 +01:00
'dashboard' => [
'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');
}
],
'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',
'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');
}
],
'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');
}
],
'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
];