finish author system
This commit is contained in:
parent
db8669d30d
commit
fe6e01acdf
38 changed files with 614 additions and 73 deletions
|
|
@ -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');
|
||||
}
|
||||
],
|
||||
'-',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue