19 lines
571 B
PHP
19 lines
571 B
PHP
<?php
|
|
|
|
if(!function_exists('panel')) return;
|
|
|
|
// load the sortable bootstrapper
|
|
require(__DIR__ . DS . 'sortable' . DS . 'bootstrap.php');
|
|
|
|
sortable()->register();
|
|
|
|
$kirby->set('field', 'sortable', __DIR__ . DS . 'fields' . DS . 'sortable');
|
|
$kirby->set('field', 'options' , __DIR__ . DS . 'fields' . DS . 'options');
|
|
|
|
if(c::get('sortable.field.redirect', true)) {
|
|
$kirby->set('field', 'redirect', __DIR__ . DS . 'fields' . DS . 'redirect');
|
|
}
|
|
|
|
if(c::get('sortable.field.modules', true)) {
|
|
$kirby->set('field', 'modules', __DIR__ . DS . 'fields' . DS . 'modules');
|
|
}
|