xref: /webtrees/resources/views/place-hierarchy.phtml (revision afa67798854828b1edc33dd077960ec2b18e6140)
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 list_label mr-1">
16            <?= I18N::translate('Place hierarchy') ?>
17        </span>
18    </div>
19    <div class="row">
20        <?php foreach ($columns as $column) : ?>
21            <ul class="col list_value_wrap mr-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