From 821b5ac5810b808d3d85a59c2206fcc9c5e9aa07 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Thu, 20 Nov 2025 22:41:57 +0100 Subject: [PATCH] los --- partials/structure/header.php | 1 + public/index.php | 2 +- src/functions.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/partials/structure/header.php b/partials/structure/header.php index 97fb724..202bd95 100644 --- a/partials/structure/header.php +++ b/partials/structure/header.php @@ -98,3 +98,4 @@ if (!isset($navAnchors) || !is_array($navAnchors)) { + \ No newline at end of file diff --git a/public/index.php b/public/index.php index f0bfdf6..b30ab6a 100644 --- a/public/index.php +++ b/public/index.php @@ -24,7 +24,7 @@ $navAnchors = [ tpl('layout_start'); // structure/header.php -tpl('hero', 'landing', 'main'); +echo tpl('hero', 'landing', 'main'); tpl('how', 'landing', 'main'); tpl('problem', 'landing', 'main'); echo "ende"; tpl('features', 'landing', 'main'); diff --git a/src/functions.php b/src/functions.php index 5ff5008..7749eaa 100644 --- a/src/functions.php +++ b/src/functions.php @@ -37,7 +37,7 @@ function tpl(string $file, string $type = 'structure', string $site = 'main'): v // Datei laden if (file_exists($path)) { - echo include $path; + include $path; } else { echo "";