xref: /webtrees/resources/views/components/breadcrumbs.phtml (revision 0d047a8c74753c7558a60f4789c838996d6fae8b)
1<?php
2
3/**
4 * @var array<string|int,string> $links
5 */
6
7?>
8<nav class="wt-breadcrumbs" aria-label="breadcrumb" role="navigation">
9    <ol class="breadcrumb small py-2">
10        <?php foreach ($links as $url => $label) : ?>
11            <?php if (is_int($url)) : ?>
12                <li class="breadcrumb-item active">
13                    <?= $label ?>
14                </li>
15            <?php else : ?>
16                <li class="breadcrumb-item">
17                    <a href="<?= e($url) ?>">
18                        <?= $label ?>
19                    </a>
20                </li>
21            <?php endif ?>
22        <?php endforeach ?>
23    </ol>
24</nav>
25