Files
lichterei-web/kirby/config/sections/mixins/headline.php
Bastian Allgeier 01277f79f2 first version
2019-01-13 23:17:34 +01:00

20 lines
470 B
PHP
Executable File

<?php
use Kirby\Toolkit\I18n;
return [
'props' => [
/**
* The headline for the section. This can be a simple string or a template with additional info from the parent page.
*/
'headline' => function ($headline = null) {
return I18n::translate($headline, $headline);
}
],
'computed' => [
'headline' => function () {
return $this->headline ?? ucfirst($this->name);
}
]
];