2024-04-06 10:08:45 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
'site' => [
|
2025-02-04 17:35:09 +01:00
|
|
|
'label' => 'Accueil',
|
2024-04-06 10:08:45 +02:00
|
|
|
'current' => function ($current) {
|
|
|
|
|
$path = Kirby::instance()->request()->path()->toString();
|
|
|
|
|
return Str::contains($path, 'site');
|
2025-02-04 17:35:09 +01:00
|
|
|
},
|
2024-04-06 10:08:45 +02:00
|
|
|
],
|
|
|
|
|
'texts' => [
|
2025-02-04 17:35:09 +01:00
|
|
|
'icon' => 'pen',
|
|
|
|
|
'label' => 'Textes',
|
|
|
|
|
'link' => 'pages/textes',
|
2024-04-06 10:08:45 +02:00
|
|
|
'current' => function ($current) {
|
|
|
|
|
$path = Kirby::instance()->request()->path()->toString();
|
2024-10-16 08:53:53 +02:00
|
|
|
return Str::contains($path, 'pages/textes');
|
2025-02-04 17:35:09 +01:00
|
|
|
},
|
2024-04-06 10:08:45 +02:00
|
|
|
],
|
2024-10-16 08:53:53 +02:00
|
|
|
'authors' => [
|
2025-02-04 17:35:09 +01:00
|
|
|
'icon' => 'users',
|
|
|
|
|
'label' => 'Auteurs',
|
|
|
|
|
'link' => 'pages/auteurs',
|
2024-10-16 08:53:53 +02:00
|
|
|
'current' => function ($current) {
|
2025-02-04 17:35:09 +01:00
|
|
|
$path = Kirby::instance()->request()->path()->toString();
|
|
|
|
|
return Str::contains($path, 'pages/auteurs');
|
|
|
|
|
},
|
2024-10-16 08:53:53 +02:00
|
|
|
],
|
2024-04-06 10:08:45 +02:00
|
|
|
'-',
|
|
|
|
|
'-',
|
|
|
|
|
'infos' => [
|
2025-02-04 17:35:09 +01:00
|
|
|
'icon' => 'question',
|
|
|
|
|
'label' => 'À propos',
|
|
|
|
|
'link' => 'pages/a-propos',
|
2024-04-06 10:08:45 +02:00
|
|
|
'current' => function ($current) {
|
|
|
|
|
$path = Kirby::instance()->request()->path()->toString();
|
|
|
|
|
return Str::contains($path, 'pages/a-propos');
|
2025-02-04 17:35:09 +01:00
|
|
|
},
|
2024-04-06 10:08:45 +02:00
|
|
|
],
|
2024-12-01 12:55:24 +01:00
|
|
|
'subscription' => [
|
2025-02-04 17:35:09 +01:00
|
|
|
'icon' => 'email',
|
|
|
|
|
'label' => 'Liste de diffusion',
|
|
|
|
|
'link' => 'pages/lettre',
|
2024-04-06 10:08:45 +02:00
|
|
|
'current' => function ($current) {
|
|
|
|
|
$path = Kirby::instance()->request()->path()->toString();
|
2024-10-16 08:53:53 +02:00
|
|
|
return Str::contains($path, 'pages/liste-de-diffusion');
|
2025-02-04 17:35:09 +01:00
|
|
|
},
|
2024-04-06 10:08:45 +02:00
|
|
|
],
|
|
|
|
|
'-',
|
|
|
|
|
'-',
|
|
|
|
|
'users',
|
|
|
|
|
'comments',
|
|
|
|
|
'admin' => [
|
2025-02-04 17:35:09 +01:00
|
|
|
'icon' => 'folder',
|
|
|
|
|
'label' => 'Administration',
|
|
|
|
|
'link' => 'pages/admin',
|
2024-04-06 10:08:45 +02:00
|
|
|
'current' => function ($current) {
|
|
|
|
|
$path = Kirby::instance()->request()->path()->toString();
|
|
|
|
|
return Str::contains($path, 'pages/admin');
|
2025-02-04 17:35:09 +01:00
|
|
|
},
|
2024-04-06 10:08:45 +02:00
|
|
|
],
|
|
|
|
|
'-',
|
|
|
|
|
'-',
|
|
|
|
|
'system',
|
|
|
|
|
];
|