designtopack/public/site/config/menu.php
2025-01-15 16:41:02 +01:00

81 lines
No EOL
2.3 KiB
PHP

<?php
return [
// 'site' => [
// 'label' => 'Dashboard',
// 'icon' => 'dashboard',
// 'current' => function (string $current): bool {
// // the links of all your custom menu entries
// $links = [
// 'pages/clients',
// 'pages/projects',
// 'pages/inspirations',
// 'pages/notifications',
// 'pages/reunions'
// ];
// $path = Kirby\Cms\App::instance()->path();
// return
// $current === 'site' &&
// A::every($links, fn ($link) => Str::contains($path, $link) === false);
// }
// ],
'projects' => [
'label' => 'Projets',
'icon' => 'folder',
'link' => 'pages/projects',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/projects');
}
],
'clients' => [
'label' => 'Clients',
'icon' => 'account',
'link' => 'pages/clients',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/clients');
}
],
'-',
'inspirations' => [
'label' => 'Inspirations',
'icon' => 'images',
'link' => 'pages/inspirations',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/inspirations');
}
],
'materials' => [
'label' => 'Matériauthèque',
'icon' => 'images',
'link' => 'pages/materials',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/materials');
}
],
'creations' => [
'label' => 'Réalisations',
'icon' => 'images',
'link' => 'pages/creations',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/creations');
}
],
'-',
// 'reunions' => [
// 'label' => 'Réunions',
// 'icon' => 'calendar',
// 'link' => 'pages/reunions',
// 'current' => function (string $current): bool {
// $path = Kirby\Cms\App::instance()->path();
// return Str::contains($path, 'pages/reunions');
// }
// ],
'-',
'users',
'system'
];