This commit is contained in:
2026-03-04 23:54:36 +01:00
parent 7d73c570c9
commit c600458959
16 changed files with 26 additions and 62 deletions

View File

@@ -198,7 +198,7 @@ function module_fn(string $module, string $name, mixed ...$args): mixed
* @param string $folder Unterordner in /partials/
* @param array $data Daten, die im Template verfügbar sein sollen
*/
function tpl(string $name, string $folder = 'landing', array $data = []): void
function tpl(string $name, string $folder = 'landingpages', array $data = []): void
{
$base = __DIR__ . '/../../partials/';
@@ -210,9 +210,8 @@ function tpl(string $name, string $folder = 'landing', array $data = []): void
}
$paths = [];
if ($folder === 'landing') {
$paths[] = $base . 'landing/' . $name . '.php';
$paths[] = $base . 'landing/main/' . $name . '.php';
if ($folder === 'landingpages') {
$paths[] = $base . 'landingpages/' . $name . '.php';
} else {
$paths[] = $base . 'structure/' . $name . '.php';
}