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