actuel-inactuel/site/config/config.php

49 lines
1.3 KiB
PHP
Raw Normal View History

2024-01-26 07:45:41 +01:00
<?php
return [
2024-01-26 13:42:00 +01:00
'debug' => true,
'panel' => [
'menu' => [
'site' => [
'label' => 'Accueil',
'current' => function ($current) {
2024-03-09 15:09:31 +01:00
$path = Kirby::instance()->request()->path()->toString();
return Str::contains($path, 'site');
2024-01-26 13:42:00 +01:00
}
],
2024-03-09 15:09:31 +01:00
'texts' => [
2024-03-09 11:27:10 +01:00
'icon' => 'pen',
2024-03-09 15:12:09 +01:00
'label' => 'Textes',
2024-03-09 15:09:31 +01:00
'link' => 'pages/texts',
2024-01-26 13:42:00 +01:00
'current' => function ($current) {
2024-03-09 15:09:31 +01:00
$path = Kirby::instance()->request()->path()->toString();
return Str::contains($path, 'pages/texts');
2024-01-26 13:42:00 +01:00
}
],
'-',
2024-03-09 11:27:10 +01:00
'infos' => [
'icon' => 'question',
'label' => 'À propos',
'link' => 'pages/a-propos',
'current' => function ($current) {
2024-03-09 15:09:31 +01:00
$path = Kirby::instance()->request()->path()->toString();
return Str::contains($path, 'pages/a-propos');
2024-03-09 11:27:10 +01:00
}
],
'newsletter' => [
'icon' => 'email',
'label' => 'Lettre',
'link' => 'pages/lettre',
'current' => function ($current) {
2024-03-09 15:09:31 +01:00
$path = Kirby::instance()->request()->path()->toString();
return Str::contains($path, 'pages/lettre');
2024-03-09 11:27:10 +01:00
}
],
'-',
2024-01-26 13:42:00 +01:00
'users',
2024-03-09 15:09:31 +01:00
'comments',
2024-01-26 13:42:00 +01:00
'system'
]
]
2024-03-09 15:09:31 +01:00
];