julienmonnerie/site/config/config.php

54 lines
2 KiB
PHP
Raw Permalink Normal View History

2022-06-17 17:51:59 +02:00
<?php
return [
2022-09-09 15:26:04 +02:00
// Kirby configuration settings
'panel' => [
2025-02-17 19:31:58 +01:00
'css' => 'build/panel.css',
2025-05-30 17:15:12 +02:00
'install' => false,
2025-05-04 18:29:19 +02:00
'language' => 'fr',
'menu' => [
'site' => [
'current' => function (string $current): bool { // Override default menu entry highlighting
$links = [ // Links of all custom menu entries
'pages/media-library',
];
$path = Kirby\Cms\App::instance()->path();
return $current === 'site' && A::every($links, fn ($link) => Str::contains($path, $link) === false);
},
],
'-',
'media-library' => [
'icon' => 'images',
'label' => [
'en' => 'Media library',
'fr' => 'Médiathèque',
],
'link' => 'pages/media-library',
'current' => function (string $current): bool { // Override default menu entry highlighting
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/media-library'); // Link of current menu entry
2025-05-04 18:29:19 +02:00
},
],
'users',
'system',
]
2022-09-09 15:26:04 +02:00
],
// Sitemapper plugin options
'kirbyzone.sitemapper' => [
'intro' => false,
'byLine' => 'Sitemap generated with <a href="https://github.com/kirbyzone/sitemapper" target="_blank">Sitemapper by Kirbyzone</a>.'
],
// Thumbnails and srcsets presets
'thumbs' => [
'srcsets' => [
'default' => [
'640w' => ['width' => 640, 'quality' => 80],
'1280w' => ['width' => 1280, 'quality' => 80],
'1920w' => ['width' => 1920, 'quality' => 80],
2022-12-21 15:38:16 +01:00
'2560w' => ['width' => 2560, 'quality' => 80],
'3840w' => ['width' => 3840, 'quality' => 80]
2022-09-09 15:26:04 +02:00
]
]
]
2022-06-17 17:51:59 +02:00
];