xref: /webtrees/resources/views/lists/given-names-list.phtml (revision 090a06287954f43677f06ea778b3f67c029de8fe)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5/**
6 * @var array<string,int> $given_names
7 * @var bool              $show_totals
8 */
9
10?>
11
12<ul>
13    <?php foreach ($given_names as $given_name => $count) : ?>
14        <li>
15            <span dir="auto"><?= e($given_name) ?></span>
16            <?php if ($show_totals) : ?>
17             (<?= I18N::number($count) ?>)
18            <?php endif ?>
19        </li>
20    <?php endforeach ?>
21</ul>
22