designtopack/public/site/config/menu.php

67 lines
1.7 KiB
PHP
Raw Normal View History

2024-09-11 07:32:34 +02:00
<?php
$menu = [
"-",
'projects' => [
'label' => 'Projets',
'icon' => 'folder',
'link' => 'pages/projects',
2024-09-11 07:32:34 +02:00
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/projects');
2024-09-11 07:32:34 +02:00
}
],
'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');
}
],
2024-10-08 17:30:56 +02:00
'-',
'design-to-light' => [
'label' => 'Design to Light',
'icon' => 'leaf',
'link' => 'pages/design-to-light',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/design-to-light');
}
],
'-',
2024-09-11 07:32:34 +02:00
'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');
}
],
2024-10-08 17:30:56 +02:00
'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');
}
],
2024-09-11 07:32:34 +02:00
'-',
'-',
'users',
'system'
];
return $menu;