. */ use Models\Plugin; include_once __DIR__.'/core.php'; if (!empty($id_record) && !empty($id_module)) { redirect(base_path().'/editor.php?id_module='.$id_module.'&id_record='.$id_record); } elseif (empty($id_module)) { redirect(base_path().'/index.php'); } include_once App::filepath('include|custom|', 'top.php'); // Inclusione gli elementi fondamentali include_once base_dir().'/actions.php'; // Widget in alto echo '{( "name": "widgets", "id_module": "'.$id_module.'", "position": "top", "place": "controller" )}'; $segmenti = $dbo->FetchArray('SELECT `id` FROM `zz_segments` WHERE `id_module` = '.prepare($id_module)); if ($segmenti) { $segmenti = Modules::getSegments($id_module); if (empty($segmenti)) { echo '