Files
CodePress/admin/templates/pages/guide.php
T
E.Noorlander 596b745bad Inhoudsopgave toegevoegd aan handleidingen met HeadingPermalinkExtension
- Nederlandse en Engelse handleiding hebben nu een inhoudsopgave
  met anchors naar alle hoofdstukken op dezelfde pagina
- HeadingPermalinkExtension toegevoegd aan CommonMark configuratie
  voor zowel frontend als admin markdown parsers
- Heading IDs gegenereerd voor elk kopje (## en lager)
2026-07-28 14:13:03 +02:00

29 lines
1.4 KiB
PHP

<h2 class="mb-4"><i class="bi bi-book"></i> Handleiding</h2>
<div class="mb-3">
<div class="btn-group" role="group">
<a href="/admin/guide?lang=nl" class="btn btn-sm <?= $lang === 'nl' ? 'btn-primary' : 'btn-outline-primary' ?>">Nederlands</a>
<a href="/admin/guide?lang=en" class="btn btn-sm <?= $lang === 'en' ? 'btn-primary' : 'btn-outline-primary' ?>">English</a>
</div>
</div>
<div class="card shadow-sm">
<div class="card-body guide-content">
<?= $content ?>
</div>
</div>
<style>
.guide-content h2 { margin-top: 1.5rem; }
.guide-content h3 { margin-top: 1.25rem; }
.guide-content pre { background: #f4f4f4; padding: 1rem; border-radius: 4px; overflow-x: auto; }
.guide-content code { background: #f0f0f0; padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.9em; }
.guide-content table { width: 100%; margin-bottom: 1rem; }
.guide-content table th, .guide-content table td { padding: 0.5rem; border: 1px solid #dee2e6; }
.guide-content blockquote { border-left: 3px solid #ccc; padding-left: 1rem; color: #666; margin-left: 0; }
.guide-content .heading-permalink { display: none; }
.guide-content ul:first-of-type { list-style: none; padding-left: 0; }
.guide-content ul:first-of-type li { padding: 0.15rem 0; }
.guide-content ul:first-of-type li a { text-decoration: none; color: #0d6efd; }
.guide-content ul:first-of-type li a:hover { text-decoration: underline; }
</style>