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