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