Initial commit
This commit is contained in:
commit
65e0da7e11
1397 changed files with 596542 additions and 0 deletions
12
site/OFF_plugins/autopublish.php
Normal file
12
site/OFF_plugins/autopublish.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
kirby()->hook('panel.page.create', function($page) {
|
||||
$templates = c::get('autopublish.templates');
|
||||
if (!$templates || in_array($page->template(), $templates)) {
|
||||
try {
|
||||
$page->sort('last');
|
||||
} catch(Exception $e) {
|
||||
return response::error($e->getMessage());
|
||||
}
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue