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 [ return [
'debug' => true, 'debug' => true,
'smartypants' => true,
'locale' => 'fr_FR.utf-8',
'date' => [
'handler' => 'intl'
],
'api' => [ 'api' => [
'basicAuth' => true, 'basicAuth' => true,
// Enable api access without SSL. To disable in production. // Enable api access without SSL. To disable in production.
@ -20,6 +25,7 @@ return [
$links = [ $links = [
'pages/clients', 'pages/clients',
'pages/projects', 'pages/projects',
'pages/inspirations',
'pages/notifications', 'pages/notifications',
'pages/events' 'pages/events'
]; ];
@ -47,6 +53,15 @@ return [
return Str::contains($path, 'pages/projects'); 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' => [ 'notifications' => [
'label' => 'Notifications', 'label' => 'Notifications',