Add template and styles for breadcrumbs
This commit is contained in:
parent
ae93a3116b
commit
e166704dee
2 changed files with 44 additions and 0 deletions
|
|
@ -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 ?>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue