finish author system

This commit is contained in:
isUnknown 2024-10-16 08:53:53 +02:00
parent db8669d30d
commit fe6e01acdf
38 changed files with 614 additions and 73 deletions

View file

@ -11,12 +11,21 @@ return [
'texts' => [
'icon' => 'pen',
'label' => 'Textes',
'link' => 'pages/texts',
'link' => 'pages/textes',
'current' => function ($current) {
$path = Kirby::instance()->request()->path()->toString();
return Str::contains($path, 'pages/texts');
return Str::contains($path, 'pages/textes');
}
],
'authors' => [
'icon' => 'users',
'label' => 'Auteurs',
'link' => 'pages/auteurs',
'current' => function ($current) {
$path = Kirby::instance()->request()->path()->toString();
return Str::contains($path, 'pages/auteurs');
}
],
'-',
'-',
'infos' => [
@ -30,11 +39,11 @@ return [
],
'newsletter' => [
'icon' => 'email',
'label' => 'Infolettre',
'link' => 'pages/lettre',
'label' => 'Liste de diffusion',
'link' => 'pages/liste-de-diffusion',
'current' => function ($current) {
$path = Kirby::instance()->request()->path()->toString();
return Str::contains($path, 'pages/lettre');
return Str::contains($path, 'pages/liste-de-diffusion');
}
],
'-',