add front-comments
This commit is contained in:
parent
8a457885b2
commit
ed81ac26d2
11 changed files with 377 additions and 50 deletions
|
|
@ -7,17 +7,17 @@ return [
|
|||
'site' => [
|
||||
'label' => 'Accueil',
|
||||
'current' => function ($current) {
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'site');
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'site');
|
||||
}
|
||||
],
|
||||
'articles' => [
|
||||
'texts' => [
|
||||
'icon' => 'pen',
|
||||
'label' => 'Articles',
|
||||
'link' => 'pages/articles',
|
||||
'label' => 'texts',
|
||||
'link' => 'pages/texts',
|
||||
'current' => function ($current) {
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'pages/articles');
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'pages/texts');
|
||||
}
|
||||
],
|
||||
'-',
|
||||
|
|
@ -26,8 +26,8 @@ return [
|
|||
'label' => 'À propos',
|
||||
'link' => 'pages/a-propos',
|
||||
'current' => function ($current) {
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'pages/a-propos');
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'pages/a-propos');
|
||||
}
|
||||
],
|
||||
'newsletter' => [
|
||||
|
|
@ -35,13 +35,14 @@ return [
|
|||
'label' => 'Lettre',
|
||||
'link' => 'pages/lettre',
|
||||
'current' => function ($current) {
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'pages/lettre');
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'pages/lettre');
|
||||
}
|
||||
],
|
||||
'-',
|
||||
'users',
|
||||
'comments',
|
||||
'system'
|
||||
]
|
||||
]
|
||||
];
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue