first version

This commit is contained in:
Bastian Allgeier
2019-01-13 23:17:34 +01:00
commit 01277f79f2
595 changed files with 82913 additions and 0 deletions

23
kirby/config/fields/info.php Executable file
View File

@@ -0,0 +1,23 @@
<?php
use Kirby\Toolkit\I18n;
return [
'props' => [
'text' => function ($value = null) {
return I18n::translate($value, $value);
},
],
'computed' => [
'text' => function () {
$text = $this->text;
if ($model = $this->model()) {
$text = $this->model()->toString($text);
}
return kirbytext($text);
}
],
'save' => false,
];