cccc
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
// 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');
|
||||||
|
}
|
||||||
|
|
||||||
// Zentrale Ausgabe
|
|
||||||
tpl('layout_start', 'structure');
|
|
||||||
require $target;
|
require $target;
|
||||||
tpl('layout_end', 'structure');
|
|
||||||
|
if (!$skipLayout) {
|
||||||
|
tpl('layout_end', 'structure');
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user