xref: /webtrees/resources/views/place-hierarchy.phtml (revision 3d9e70a53ebdea3db408ada1769711840cc7d14c)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4use Fisharebest\Webtrees\Place;
5
6/**
7 * @var string              $col_class
8 * @var array<array<Place>> $columns
9 */
10
11?>
12
13<div class="<?= $col_class ?> list_table">
14    <div class="row">
15        <span class="col wt-page-options-label me-1">
16            <?= I18N::translate('Place hierarchy') ?>
17        </span>
18    </div>
19    <div class="row">
20        <?php foreach ($columns as $column) : ?>
21            <ul class="col wt-page-options-value me-1 list-unstyled">
22                <?php foreach ($column as $item) : ?>
23                    <li>
24                        <a href="<?= e($item->url()) ?>"><?= $item->placeName() ?></a>
25                    </li>
26                <?php endforeach ?>
27            </ul>
28        <?php endforeach ?>
29    </div>
30</div>
31