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