Steuerkram/src/Views/layout/base.php
2026-03-25 00:19:33 +01:00

41 lines
1.2 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.

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= \Steuerkram\View::h($pageTitle ?? 'Steuerkram') ?> – Steuerkram</title>
<link rel="stylesheet" href="/static/css/app.css">
</head>
<body>
<div class="app-layout">
<?php include __DIR__ . '/nav.php'; ?>
<div class="main-content">
<div class="topbar">
<div class="topbar-title"><?= \Steuerkram\View::h($pageTitle ?? '') ?></div>
<div style="display:flex;gap:.5rem;align-items:center;">
<?php if (!empty($topbarActions)) echo $topbarActions; ?>
</div>
</div>
<div class="page-body">
<?php if (!empty($flash)): ?>
<div class="flash-list">
<?php foreach ($flash as $f): ?>
<div class="flash flash-<?= \Steuerkram\View::h($f['type']) ?>">
<?= \Steuerkram\View::h($f['message']) ?>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?= $content ?? '' ?>
</div>
</div>
</div>
<script src="/static/js/app.js"></script>
</body>
</html>