Upgrade to 3.7.0

This commit is contained in:
Bastian Allgeier
2022-06-27 10:02:22 +02:00
parent 0751a6510d
commit 1c22148d7b
674 changed files with 5052 additions and 3082 deletions

6
kirby/config/presets/page.php Normal file → Executable file
View File

@@ -1,5 +1,7 @@
<?php
use Kirby\Toolkit\I18n;
return function ($props) {
$section = function ($defaults, $props) {
if ($props === true) {
@@ -25,7 +27,7 @@ return function ($props) {
if ($pages !== false) {
$sidebar['pages'] = $section([
'headline' => t('pages'),
'headline' => I18n::translate('pages'),
'type' => 'pages',
'status' => 'all',
'layout' => 'list',
@@ -34,7 +36,7 @@ return function ($props) {
if ($files !== false) {
$sidebar['files'] = $section([
'headline' => t('files'),
'headline' => I18n::translate('files'),
'type' => 'files',
'layout' => 'list'
], $files);