fin du tuto, les vrais galere commence
This commit is contained in:
parent
d365abfdb9
commit
7d3d20d006
5 changed files with 66 additions and 8 deletions
|
|
@ -1,7 +1,20 @@
|
|||
<?php
|
||||
|
||||
Kirby::plugin('getkirby/pluginkit', [
|
||||
'sections' => [
|
||||
'demo' => []
|
||||
'fields' => [
|
||||
'demo' => [
|
||||
'props' => [
|
||||
'value' => function ($value = null) {
|
||||
$margins = Yaml::decode($value);
|
||||
return [
|
||||
'top' => 0,
|
||||
'right' => 0,
|
||||
'bottom' => 0,
|
||||
'left' => 0,
|
||||
...$margins
|
||||
];
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue