update kirby to v5 and add refresh cache panel view button
This commit is contained in:
commit
9a86d41254
466 changed files with 19960 additions and 10497 deletions
24
public/site/plugins/refresh-cache-button/index.php
Executable file
24
public/site/plugins/refresh-cache-button/index.php
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
Kirby::plugin('adrienpayet/refresh-cache-button', [
|
||||
'areas' => [
|
||||
'site' => function () {
|
||||
return [
|
||||
'buttons'=> [
|
||||
'refresh-cache' => function($page) {
|
||||
return [
|
||||
'component' => 'refresh-cache-button',
|
||||
'props' => [
|
||||
'pageUri' => $page->uri(),
|
||||
'pageStatus' => $page->status()
|
||||
]
|
||||
];
|
||||
}
|
||||
]
|
||||
];
|
||||
}
|
||||
],
|
||||
'routes' => [
|
||||
require_once(__DIR__ . '/src/routes/refresh-cache.php')
|
||||
]
|
||||
]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue