Upgrade to 3.6.0
This commit is contained in:
@@ -14,7 +14,7 @@ return [
|
||||
'computed' => [
|
||||
'empty' => function () {
|
||||
if ($this->empty) {
|
||||
return $this->model()->toString($this->empty);
|
||||
return $this->model()->toSafeString($this->empty);
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@@ -14,7 +14,7 @@ return [
|
||||
'computed' => [
|
||||
'help' => function () {
|
||||
if ($this->help) {
|
||||
$help = $this->model()->toString($this->help);
|
||||
$help = $this->model()->toSafeString($this->help);
|
||||
$help = $this->kirby()->kirbytext($help);
|
||||
return $help;
|
||||
}
|
||||
|
@@ -3,10 +3,12 @@
|
||||
return [
|
||||
'props' => [
|
||||
/**
|
||||
* Section layout. Available layout methods: `list`, `cards`.
|
||||
* Section layout.
|
||||
* Available layout methods: `list`, `cardlets`, `cards`.
|
||||
*/
|
||||
'layout' => function (string $layout = 'list') {
|
||||
return $layout === 'cards' ? 'cards' : 'list';
|
||||
$layouts = ['list', 'cardlets', 'cards'];
|
||||
return in_array($layout, $layouts) ? $layout : 'list';
|
||||
}
|
||||
]
|
||||
];
|
||||
|
Reference in New Issue
Block a user