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