rebuild
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user