popnoire/site/OFF_plugins/sortable/sortable.php
2026-02-12 15:22:46 +01:00

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');
}