xref: /webtrees/resources/views/calendar-list.phtml (revision 00b1984e374faddab4698e73088f0c964e529b65)
1<?php
2
3use Fisharebest\Webtrees\Family;
4use Fisharebest\Webtrees\I18N;
5use Fisharebest\Webtrees\Individual;
6
7?>
8
9<table class="w-100" role="presentation">
10    <tr>
11        <td class="wt-page-options-label text-center w-50">
12            <?= view('icons/individual') ?>
13            <?= I18N::plural('%s individual', '%s individuals', count($individuals), I18N::number(count($individuals))) ?>
14        </td>
15
16        <td class="wt-page-options-label text-center w-50">
17            <?= view('icons/family') ?>
18            <?= I18N::plural('%s family', '%s families', count($families), I18N::number(count($families))) ?>
19        </td>
20    </tr>
21
22    <tr>
23        <td class="wt-page-options-value align-top">
24            <ul class="list-unstyled">
25                <?php foreach ($individuals as $xref => $facts) : ?>
26                    <li>
27                        <a href="<?= e(Individual::getInstance((string) $xref, $tree)->url()) ?>">
28                            <?= Individual::getInstance($xref, $tree)->fullName() ?>
29                        </a>
30
31                        <div class="indent"><?= $facts ?></div>
32                    </li>
33                <?php endforeach ?>
34            </ul>
35        </td>
36        <td class="wt-page-options-value align-top">
37            <ul class="list-unstyled">
38                <?php foreach ($families as $xref => $facts) : ?>
39                    <li>
40                        <a href="<?= e(Family::getInstance((string) $xref, $tree)->url()) ?>">
41                            <?= Family::getInstance($xref, $tree)->fullName() ?>
42                        </a>
43
44                        <div class="indent"><?= $facts ?></div>
45                    </li>
46                <?php endforeach ?>
47            </ul>
48        </td>
49    </tr>
50</table>
51