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