37 lines
908 B
PHP
37 lines
908 B
PHP
<?php
|
|
|
|
return [
|
|
// Kirby configuration settings
|
|
'home' => 'gallery',
|
|
'panel' => [
|
|
'language' => 'fr',
|
|
'css' => 'assets/build/panel.css'
|
|
],
|
|
// Sitemapper plugin options
|
|
'kirbyzone.sitemapper' => [
|
|
'intro' => false,
|
|
'byLine' => 'Sitemap generated with <a href="https://github.com/kirbyzone/sitemapper" target="_blank">Sitemapper by Kirbyzone</a>.'
|
|
],
|
|
// 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()
|
|
]);
|
|
}
|
|
}
|
|
],
|
|
// Thumbnails and srcsets presets
|
|
'thumbs' => [
|
|
'srcsets' => [
|
|
'default' => [
|
|
'640w' => ['width' => 640, 'quality' => 80],
|
|
'1280w' => ['width' => 1280, 'quality' => 80],
|
|
'1920w' => ['width' => 1920, 'quality' => 80],
|
|
'2560w' => ['width' => 2560, 'quality' => 80]
|
|
]
|
|
]
|
|
]
|
|
];
|