add front-comments
This commit is contained in:
parent
c3ea78cab5
commit
c9f4af7e58
53 changed files with 2921 additions and 1 deletions
14
site/plugins/front-comments/test.php
Normal file
14
site/plugins/front-comments/test.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
Kirby::plugin('adrienpayet/front-comments', [
|
||||
'options' => [
|
||||
'cache' => true,
|
||||
],
|
||||
'hooks' => [
|
||||
'page.update:after' => function ($newPage) {
|
||||
kirby()
|
||||
->cache('adrienpayet.front-comments')
|
||||
->set('foo', 'bar');
|
||||
}
|
||||
]
|
||||
]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue