All checks were successful
Deploy / Deploy to Production (push) Successful in 12s
Menu changes: - Add "Enquêtes" menu item with pen icon - Change "Impacts" icon from book to globe - Add "Laboratoire" menu item - Add navigation section with Contact, À propos, Mentions légales - Clean up duplicate separators Site blueprint: - Rename "Site" to "Dashboard" for clarity Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
99 lines
No EOL
2.7 KiB
PHP
99 lines
No EOL
2.7 KiB
PHP
<?php
|
|
|
|
return [
|
|
'dashboard' => [
|
|
'label' => 'Dashboard',
|
|
'icon' => 'bolt',
|
|
'link' => '/',
|
|
'current' => function (string $current): bool {
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
return Str::contains($path, '/site');
|
|
}
|
|
],
|
|
'-',
|
|
'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');
|
|
}
|
|
],
|
|
'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');
|
|
}
|
|
],
|
|
'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');
|
|
}
|
|
],
|
|
'-',
|
|
'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'
|
|
]; |