2025-11-04 09:05:55 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
return [
|
2026-02-11 12:02:12 +01:00
|
|
|
'dashboard' => [
|
2026-02-09 14:26:46 +01:00
|
|
|
'label' => 'Dashboard',
|
|
|
|
|
'icon' => 'bolt',
|
|
|
|
|
'link' => '/',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, '/site');
|
|
|
|
|
}
|
2025-11-04 09:05:55 +01:00
|
|
|
],
|
2026-02-11 12:02:12 +01:00
|
|
|
'-',
|
|
|
|
|
'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');
|
|
|
|
|
}
|
|
|
|
|
],
|
2026-02-10 16:13:01 +01:00
|
|
|
'-'
|
|
|
|
|
,
|
2026-02-11 12:40:18 +01:00
|
|
|
'dossiers' => [
|
|
|
|
|
'label' => 'Dossiers',
|
|
|
|
|
'icon' => 'folder',
|
|
|
|
|
'link' => 'pages/dossiers',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, 'pages/dossiers');
|
|
|
|
|
}
|
|
|
|
|
],
|
2026-02-10 16:13:01 +01:00
|
|
|
'database' => [
|
|
|
|
|
'label' => 'Bases de données',
|
|
|
|
|
'icon' => 'table',
|
|
|
|
|
'link' => 'pages/database',
|
|
|
|
|
'current' => function (string $current): bool {
|
|
|
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
|
|
|
return Str::contains($path, 'pages/database');
|
|
|
|
|
}
|
|
|
|
|
],
|
2025-11-04 10:07:50 +01:00
|
|
|
'-',
|
2026-02-11 12:02:12 +01:00
|
|
|
'-',
|
2025-11-04 10:07:50 +01:00
|
|
|
'users'
|
2025-11-04 09:05:55 +01:00
|
|
|
];
|