Add template and styles for breadcrumbs

This commit is contained in:
Ruben 2026-05-20 22:56:56 +02:00
parent ae93a3116b
commit e166704dee
2 changed files with 44 additions and 0 deletions

View file

@ -1,3 +1,15 @@
<?php if (!empty($ctx->breadcrumbs) && empty($ctx->get('hide_breadcrumb'))): ?>
<nav class="breadcrumb" aria-label="Breadcrumb">
<ol>
<?php foreach ($ctx->breadcrumbs as $crumb): ?>
<li>
<a href="<?= htmlspecialchars($crumb['url']) ?>"><?= htmlspecialchars($crumb['title']) ?></a>
</li>
<?php endforeach; ?>
</ol>
</nav>
<?php endif; ?>
<article>
<?= $content ?>