All checks were successful
Deploy Preprod / Build and Deploy to Preprod (push) Successful in 34s
- Multiselect Kirby pour filtrer par utilisateur(s) - Données de test alignées sur les vrais comptes - Suppression bloc utilisateurs les plus actifs - Route get-data supporte le filtre emails - Améliorations UI filtres (layout dates + users) - Autres modifs : menu, router, dialog, deploy workflow Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
77 lines
No EOL
2 KiB
PHP
77 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; |