diff --git a/site/blueprints/site.yml b/site/blueprints/site.yml index c5ae531..18aabdf 100644 --- a/site/blueprints/site.yml +++ b/site/blueprints/site.yml @@ -1,4 +1,4 @@ -title: Site +title: Dashboard tabs: contentTab: diff --git a/site/config/menu.php b/site/config/menu.php index 8884722..d557ec6 100644 --- a/site/config/menu.php +++ b/site/config/menu.php @@ -20,11 +20,18 @@ return [ 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' => 'book', + 'icon' => 'globe', 'link' => 'pages/impacts', 'current' => function (string $current): bool { $path = Kirby\Cms\App::instance()->path(); @@ -40,6 +47,44 @@ return [ 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', @@ -50,6 +95,5 @@ return [ } ], '-', - '-', 'users' ]; \ No newline at end of file