Update to Kirby 5

This commit is contained in:
Paul Nicoué 2025-07-11 14:41:34 +02:00
parent 5d9979fca8
commit 0fefc5e2e1
472 changed files with 30853 additions and 10301 deletions

View file

@ -40,19 +40,36 @@ return function (array $props) {
if ($drafts !== false) {
$sections['drafts'] = $section(I18n::translate('pages.status.draft'), 'drafts', $drafts);
$sections['drafts'] = $section(
I18n::translate('pages.status.draft'),
'drafts',
$drafts
);
}
if ($unlisted !== false) {
$sections['unlisted'] = $section(I18n::translate('pages.status.unlisted'), 'unlisted', $unlisted);
$sections['unlisted'] = $section(
I18n::translate('pages.status.unlisted'),
'unlisted',
$unlisted
);
}
if ($listed !== false) {
$sections['listed'] = $section(I18n::translate('pages.status.listed'), 'listed', $listed);
$sections['listed'] = $section(
I18n::translate('pages.status.listed'),
'listed',
$listed
);
}
// cleaning up
unset($props['drafts'], $props['unlisted'], $props['listed'], $props['templates']);
unset(
$props['drafts'],
$props['unlisted'],
$props['listed'],
$props['templates']
);
return array_merge($props, ['sections' => $sections]);
return [...$props, 'sections' => $sections];
};