Update to Kirby 5
This commit is contained in:
parent
5d9979fca8
commit
0fefc5e2e1
472 changed files with 30853 additions and 10301 deletions
14
kirby/config/areas/files/buttons.php
Normal file
14
kirby/config/areas/files/buttons.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
use Kirby\Cms\File;
|
||||
use Kirby\Panel\Ui\Buttons\OpenButton;
|
||||
use Kirby\Panel\Ui\Buttons\SettingsButton;
|
||||
|
||||
return [
|
||||
'file.open' => function (File $file) {
|
||||
return new OpenButton(link: $file->previewUrl());
|
||||
},
|
||||
'file.settings' => function (File $file) {
|
||||
return new SettingsButton(model: $file);
|
||||
}
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue