index-main/site/config/menu.php
isUnknown afc3bab531
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s
panel : improve menu
2026-02-27 17:36:45 +01:00

117 lines
No EOL
3.3 KiB
PHP

<?php
return [
'home' => [
'label' => 'Accueil',
'icon' => 'home',
'link' => 'pages/home',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return $path === '' || 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');
}
],
'impacts' => [
'label' => 'Impacts',
'icon' => 'globe',
'link' => 'pages/impacts',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/impacts');
}
],
'news' => [
'label' => 'Brèves',
'icon' => 'bell',
'link' => 'pages/news',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/news');
}
],
'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' => 'edit-line',
'link' => 'pages/mentions-legales',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/mentions-legales');
}
],
'newsletter' => [
'label' => 'Newsletter',
'icon' => 'email',
'link' => 'pages/newsletter',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/newsletter');
}
],
'privacy-policy' => [
'label' => 'Politique de confidentialité',
'icon' => 'lock',
'link' => 'pages/politique-de-confidentialite',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/politique-de-confidentialite');
}
],
'-',
'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');
}
],
'-',
'users'
];