diff --git a/public/index.php b/public/index.php index 3f114ea..a851cb5 100644 --- a/public/index.php +++ b/public/index.php @@ -39,8 +39,25 @@ if ($uriPath === '' || $uriPath === 'index' || $uriPath === 'index.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; -tpl('layout_end', 'structure'); + +if (!$skipLayout) { + tpl('layout_end', 'structure'); +} \ No newline at end of file diff --git a/public/page/test/emailtemplate_bridge.php b/public/page/retool/emailtemplate_bridge.php similarity index 100% rename from public/page/test/emailtemplate_bridge.php rename to public/page/retool/emailtemplate_bridge.php diff --git a/public/page/test/emailtemplate_sender.php b/public/page/retool/emailtemplate_sender.php similarity index 100% rename from public/page/test/emailtemplate_sender.php rename to public/page/retool/emailtemplate_sender.php