panel : improve menu
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s
This commit is contained in:
parent
8c8d25d0b2
commit
afc3bab531
2 changed files with 6 additions and 14 deletions
|
|
@ -1,25 +1,16 @@
|
|||
<?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');
|
||||
return $path === '' || Str::contains($path, 'pages/home');
|
||||
}
|
||||
],
|
||||
'-',
|
||||
'enquetes' => [
|
||||
'label' => 'Enquêtes',
|
||||
'icon' => 'pen',
|
||||
|
|
@ -40,7 +31,7 @@ return [
|
|||
],
|
||||
'news' => [
|
||||
'label' => 'Brèves',
|
||||
'icon' => 'newspaper',
|
||||
'icon' => 'bell',
|
||||
'link' => 'pages/news',
|
||||
'current' => function (string $current): bool {
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
|
|
@ -86,7 +77,7 @@ return [
|
|||
],
|
||||
'legal-notices' => [
|
||||
'label' => 'Mentions légales',
|
||||
'icon' => 'email',
|
||||
'icon' => 'edit-line',
|
||||
'link' => 'pages/mentions-legales',
|
||||
'current' => function (string $current): bool {
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue