drink-it-cold/views/legal.php

67 lines
3.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/** @var string $page */
/** @var array $info */
$isImpressum = $page === 'impressum';
$legalTitle = $isImpressum ? 'Impressum' : 'Datenschutz';
$legalDescription = $isImpressum
? 'Impressum und Anbieterkennzeichnung von ' . $info['business_name'] . '.'
: 'Informationen zur Verarbeitung personenbezogener Daten bei ' . $info['business_name'] . '.';
?>
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#196abc">
<meta name="color-scheme" content="light">
<meta name="description" content="<?= e($legalDescription) ?>">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="<?= e($info['business_name']) ?>">
<meta name="application-name" content="<?= e($info['business_name']) ?>">
<title><?= e($legalTitle) ?> · <?= e($info['business_name']) ?></title>
<link rel="manifest" href="<?= e(url('/manifest.webmanifest')) ?>">
<link rel="icon" type="image/svg+xml" href="<?= e(asset('favicon.svg')) ?>">
<link rel="icon" type="image/png" sizes="32x32" href="<?= e(asset('icons/icon-32.png')) ?>">
<link rel="apple-touch-icon" sizes="180x180" href="<?= e(asset('icons/apple-touch-icon-180.png')) ?>">
<link rel="preload" as="font" type="font/woff2" href="<?= e(asset('fonts/manrope-latin.woff2')) ?>" crossorigin>
<link rel="preload" as="font" type="font/woff2" href="<?= e(asset('fonts/inter-latin.woff2')) ?>" crossorigin>
<link rel="stylesheet" href="<?= e(asset('app.css')) ?>">
</head>
<body class="legal-page">
<a class="skip-link" href="#main">Zum Inhalt springen</a>
<header class="legal-topbar">
<div class="legal-topbar__inner">
<a class="legal-brand" href="<?= e(url('/login')) ?>" aria-label="<?= e($info['business_name']) ?> – zur Anmeldung">
<img src="<?= e(asset('logo-mark.svg')) ?>" alt="" width="44" height="32">
<span>
<strong><?= e($info['business_name']) ?></strong>
<small>Kühlanhänger-Vermietung</small>
</span>
</a>
<nav class="legal-nav" aria-label="Rechtliches">
<a href="<?= e(url('/impressum')) ?>"<?= $isImpressum ? ' aria-current="page"' : '' ?>>Impressum</a>
<a href="<?= e(url('/datenschutz')) ?>"<?= !$isImpressum ? ' aria-current="page"' : '' ?>>Datenschutz</a>
<a class="legal-nav__login" href="<?= e(url('/login')) ?>">Anmelden</a>
</nav>
</div>
</header>
<main class="legal" id="main">
<article class="legal-card">
<?php require DIC_ROOT . '/views/legal_' . $page . '.php'; ?>
</article>
</main>
<footer class="legal-footer">
<span>© <?= date('Y') ?> <?= e($info['business_name']) ?> · <?= e($info['city']) ?></span>
<nav aria-label="Fußzeile">
<a href="<?= e(url('/impressum')) ?>">Impressum</a>
<a href="<?= e(url('/datenschutz')) ?>">Datenschutz</a>
<a href="<?= e(url('/login')) ?>">Zum internen Bereich</a>
</nav>
</footer>
</body>
</html>