xref: /webtrees/resources/views/lists/given-names-list.phtml (revision 56d475424b46df195a76f2a149ee5a07327497e8)
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