All checks were successful
Deploy Preprod / Build and Deploy to Preprod (push) Successful in 34s
- Supprime le doublon de séparateur dans le menu - Retire les box-shadow/padding superflus, ajuste les marges - Corrige le name du toggle topPages en kebab-case (top-pages) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
76 lines
No EOL
2 KiB
PHP
76 lines
No EOL
2 KiB
PHP
<?php
|
|
|
|
$menu = [
|
|
"-",
|
|
'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');
|
|
}
|
|
],
|
|
'-',
|
|
'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');
|
|
}
|
|
],
|
|
'-',
|
|
'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');
|
|
}
|
|
],
|
|
'-',
|
|
'analytics' => [
|
|
'label' => 'Analytics',
|
|
'icon' => 'chart',
|
|
'link' => 'pages/analytics',
|
|
'current' => function (string $current): bool {
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
return Str::contains($path, 'pages/analytics');
|
|
}
|
|
],
|
|
'-',
|
|
'users',
|
|
'system'
|
|
];
|
|
|
|
return $menu; |