xref: /webtrees/resources/views/components/breadcrumbs.phtml (revision f7cf8a155e2743f3d124eef3d30a558ab062fa4b)
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