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