Anpassung für Aufruf für proxy
This commit is contained in:
+8
-6
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
$metaTitle = isset($pageTitle) ? $pageTitle . ' | Fotobox Moments' : 'Fotobox Moments';
|
||||
$isAdminArea = str_contains($viewPath, '/admin/');
|
||||
$styleVersion = is_file(dirname(__DIR__) . '/assets/styles.css') ? (string) filemtime(dirname(__DIR__) . '/assets/styles.css') : '1';
|
||||
$scriptVersion = is_file(dirname(__DIR__) . '/assets/app.js') ? (string) filemtime(dirname(__DIR__) . '/assets/app.js') : '1';
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
@@ -9,13 +11,13 @@ $isAdminArea = str_contains($viewPath, '/admin/');
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?= h($metaTitle) ?></title>
|
||||
<meta name="description" content="Fotobox mieten mit einfacher Online-Anfrage, flexibler Lieferung und kompletter Admin-Verwaltung.">
|
||||
<link rel="stylesheet" href="<?= h(asset('assets/styles.css')) ?>">
|
||||
<script defer src="<?= h(asset('assets/app.js')) ?>"></script>
|
||||
<link rel="stylesheet" href="<?= h(asset('assets/styles.css')) ?>?v=<?= h($styleVersion) ?>">
|
||||
<script defer src="<?= h(asset('assets/app.js')) ?>?v=<?= h($scriptVersion) ?>"></script>
|
||||
</head>
|
||||
<body class="<?= $isAdminArea ? 'theme-admin' : 'theme-public' ?>">
|
||||
<div class="page-shell">
|
||||
<header class="site-header">
|
||||
<a class="brand" href="<?= $isAdminArea ? '/admin' : '/' ?>">
|
||||
<a class="brand" href="<?= h($isAdminArea ? url('admin') : url('/')) ?>">
|
||||
<span class="brand-mark">FM</span>
|
||||
<span>
|
||||
<strong>Fotobox Moments</strong>
|
||||
@@ -24,9 +26,9 @@ $isAdminArea = str_contains($viewPath, '/admin/');
|
||||
</a>
|
||||
<nav class="site-nav">
|
||||
<?php if ($isAdminArea): ?>
|
||||
<a href="/admin">Dashboard</a>
|
||||
<a href="/admin/create">Bestellung anlegen</a>
|
||||
<form method="post" action="/admin/logout">
|
||||
<a href="<?= h(url('admin')) ?>">Dashboard</a>
|
||||
<a href="<?= h(url('admin/create')) ?>">Bestellung anlegen</a>
|
||||
<form method="post" action="<?= h(url('admin/logout')) ?>">
|
||||
<button type="submit" class="ghost-button">Logout</button>
|
||||
</form>
|
||||
<?php else: ?>
|
||||
|
||||
Reference in New Issue
Block a user