xref: /webtrees/resources/views/components/breadcrumbs.phtml (revision dae8440ab1203b4eb5e333de33e187c1dfc5b759)
1<nav class="wt-breadcrumbs" aria-label="breadcrumb" role="navigation">
2    <ol class="breadcrumb small py-2">
3        <?php foreach ($links as $url => $label) : ?>
4            <?php if (is_int($url)) : ?>
5                <li class="breadcrumb-item active">
6                    <?= $label ?>
7                </li>
8            <?php else : ?>
9                <li class="breadcrumb-item">
10                    <a href="<?= e($url) ?>">
11                        <?= $label ?>
12                    </a>
13                </li>
14            <?php endif ?>
15        <?php endforeach ?>
16    </ol>
17</nav>
18