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