55 lines
No EOL
1.3 KiB
PHP
55 lines
No EOL
1.3 KiB
PHP
<?php
|
|
|
|
return [
|
|
'dashboard' => [
|
|
'label' => 'Dashboard',
|
|
'icon' => 'bolt',
|
|
'link' => '/',
|
|
'current' => function (string $current): bool {
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
return Str::contains($path, '/site');
|
|
}
|
|
],
|
|
'-',
|
|
'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');
|
|
}
|
|
],
|
|
'-'
|
|
,
|
|
'impacts' => [
|
|
'label' => 'Impacts',
|
|
'icon' => 'book',
|
|
'link' => 'pages/impacts',
|
|
'current' => function (string $current): bool {
|
|
$path = Kirby\Cms\App::instance()->path();
|
|
return Str::contains($path, 'pages/impacts');
|
|
}
|
|
],
|
|
'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');
|
|
}
|
|
],
|
|
'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');
|
|
}
|
|
],
|
|
'-',
|
|
'-',
|
|
'users'
|
|
]; |