This commit is contained in:
2025-12-25 00:08:59 +01:00
parent af585543a1
commit e4e267aea9
3 changed files with 20 additions and 3 deletions

View File

@@ -39,8 +39,25 @@ if ($uriPath === '' || $uriPath === 'index' || $uriPath === 'index.php') {
$target = __DIR__ . '/page/404.php'; $target = __DIR__ . '/page/404.php';
} }
} }
// ------------------------------------
// Layout-Regel
// ------------------------------------
$skipLayout = false;
// Zentrale Ausgabe // Beispiel: alles unter /page/raw/* ohne Layout
if (str_starts_with(realpath($target), realpath(__DIR__ . '/page/retool'))) {
$skipLayout = true;
}
// ------------------------------------
// Ausgabe
// ------------------------------------
if (!$skipLayout) {
tpl('layout_start', 'structure'); tpl('layout_start', 'structure');
}
require $target; require $target;
if (!$skipLayout) {
tpl('layout_end', 'structure'); tpl('layout_end', 'structure');
}