2021-10-29 18:05:46 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
2021-11-18 17:44:47 +01:00
|
|
|
// Kirby configuration settings
|
|
|
|
'home' => 'accueil',
|
2021-10-29 18:05:46 +02:00
|
|
|
'panel' => [
|
2022-04-26 18:04:10 +02:00
|
|
|
'language' => 'fr',
|
|
|
|
'css' => 'assets/css/panel.min.css'
|
2021-11-18 17:44:47 +01:00
|
|
|
],
|
|
|
|
// Sitemapper plugin options
|
|
|
|
'kirbyzone.sitemapper' => [
|
|
|
|
'intro' => false,
|
2022-05-30 16:07:25 +02:00
|
|
|
'byLine' => 'Sitemap generated with Sitemapper by <a href="https://github.com/kirbyzone" target="_blank">Kirbyzone</a>.'
|
2021-11-18 17:44:47 +01:00
|
|
|
],
|
|
|
|
// Hooks
|
|
|
|
'hooks' => [
|
|
|
|
'file.create:after' => function($file) {
|
|
|
|
// Populate file_type field with $file->type() method after file creation
|
|
|
|
if ($file->type()) {
|
|
|
|
$file->update([
|
|
|
|
'file_type' => $file->type()
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
},
|
2022-04-26 18:04:10 +02:00
|
|
|
'kirbytext:after' => function (string $text) {
|
|
|
|
// Replace any HTML <h1> or <h2> tag by <h3> tag after Markdown parsing
|
|
|
|
return preg_replace(['/<h1>|<h2>/', '/<\/h1>|<\/h2>/'], ['<h3>', '</h3>'], $text);
|
2021-11-18 17:44:47 +01:00
|
|
|
}
|
2022-04-08 16:37:47 +02:00
|
|
|
],
|
2022-04-15 16:45:38 +02:00
|
|
|
// Thumbnails and srcsets presets
|
2022-04-08 16:37:47 +02:00
|
|
|
'thumbs' => [
|
|
|
|
'srcsets' => [
|
|
|
|
'default' => [500, 1000, 1500]
|
|
|
|
]
|
2021-10-29 18:05:46 +02:00
|
|
|
]
|
|
|
|
];
|