Update config: add smartypants, locale, intl date handler and inspirations panel.menu

This commit is contained in:
Timothée Goguely 2024-09-04 11:42:45 +02:00
parent 1183905251
commit ba1715f4eb

View file

@ -2,6 +2,11 @@
return [
'debug' => true,
'smartypants' => true,
'locale' => 'fr_FR.utf-8',
'date' => [
'handler' => 'intl'
],
'api' => [
'basicAuth' => true,
// Enable api access without SSL. To disable in production.
@ -20,6 +25,7 @@ return [
$links = [
'pages/clients',
'pages/projects',
'pages/inspirations',
'pages/notifications',
'pages/events'
];
@ -47,6 +53,15 @@ return [
return Str::contains($path, 'pages/projects');
}
],
'inspirations' => [
'label' => 'Inspirations',
'icon' => 'images',
'link' => 'pages/inspirations',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/inspirations');
}
],
'-',
'notifications' => [
'label' => 'Notifications',