impressum.php 646 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Impressum (legal notice). Content is edited under admin → Settings and
  4. * stored as basic Markdown in data/site.json.
  5. */
  6. require __DIR__ . '/app/bootstrap.php';
  7. $site = site_get();
  8. $body = trim((string)($site['impressum'] ?? ''));
  9. public_header('Impressum · ' . ($site['intro_title'] ?: config('site.name', '')));
  10. ?>
  11. <main class="page">
  12. <h1 class="page-title">Impressum</h1>
  13. <div class="prose">
  14. <?php if ($body !== ''): ?>
  15. <?= markdown_basic($body) ?>
  16. <?php else: ?>
  17. <p class="prose-empty">No content yet.</p>
  18. <?php endif; ?>
  19. </div>
  20. </main>
  21. <?php public_footer(); ?>