xref: /webtrees/resources/views/calendar-list.phtml (revision 6039542ea81ca28b4939aad50a8c5e66fd7027be)
140296c5fSGreg Roach<?php
240296c5fSGreg Roach
310e06497SGreg Roachdeclare(strict_types=1);
410e06497SGreg Roach
59b9349c6SGreg Roachuse Fisharebest\Webtrees\Fact;
640296c5fSGreg Roachuse Fisharebest\Webtrees\I18N;
79b9349c6SGreg Roach
89b9349c6SGreg Roach/**
9*6039542eSGreg Roach * @var iterable<int,Fact> $family_anniversaries
10*6039542eSGreg Roach * @var iterable<int,Fact> $individual_anniversaries
11*6039542eSGreg Roach * @var int                $family_count
12*6039542eSGreg Roach * @var int                $individual_count
139b9349c6SGreg Roach */
1440296c5fSGreg Roach
1540296c5fSGreg Roach?>
1640296c5fSGreg Roach
1740296c5fSGreg Roach<table class="w-100" role="presentation">
1840296c5fSGreg Roach    <tr>
1940296c5fSGreg Roach        <td class="wt-page-options-label text-center w-50">
2040296c5fSGreg Roach            <?= view('icons/individual') ?>
21*6039542eSGreg Roach            <?= I18N::plural('%s individual', '%s individuals', $individual_count, I18N::number($individual_count)) ?>
2240296c5fSGreg Roach        </td>
2340296c5fSGreg Roach
2440296c5fSGreg Roach        <td class="wt-page-options-label text-center w-50">
2540296c5fSGreg Roach            <?= view('icons/family') ?>
26*6039542eSGreg Roach            <?= I18N::plural('%s family', '%s families', $family_count, I18N::number($family_count)) ?>
2740296c5fSGreg Roach        </td>
2840296c5fSGreg Roach    </tr>
2940296c5fSGreg Roach
3040296c5fSGreg Roach    <tr>
31220c38bcSGreg Roach        <td class="wt-page-options-value align-top">
3240296c5fSGreg Roach            <ul class="list-unstyled">
339b9349c6SGreg Roach                <?php foreach ($individual_anniversaries as $fact) : ?>
3440296c5fSGreg Roach                    <li>
359b9349c6SGreg Roach                        <a href="<?= e($fact->record()->url()) ?>">
369b9349c6SGreg Roach                            <?= $fact->record()->fullName() ?>
3740296c5fSGreg Roach                        </a>
3840296c5fSGreg Roach
399b9349c6SGreg Roach                        <div class="indent">
408c253f3eSGreg Roach                            <?= $fact->label() ?><?= $fact->date()->display($fact->record()->tree()) ?>
419b9349c6SGreg Roach                            <?php if ($fact->attribute('PLAC') !== '') : ?>
429b9349c6SGreg Roach<?=  $fact->attribute('PLAC') ?>
439b9349c6SGreg Roach                            <?php endif ?>
449b9349c6SGreg Roach                        </div>
4540296c5fSGreg Roach                    </li>
4640296c5fSGreg Roach                <?php endforeach ?>
4740296c5fSGreg Roach            </ul>
4840296c5fSGreg Roach        </td>
49220c38bcSGreg Roach        <td class="wt-page-options-value align-top">
5040296c5fSGreg Roach            <ul class="list-unstyled">
519b9349c6SGreg Roach                <?php foreach ($family_anniversaries as $fact) : ?>
5240296c5fSGreg Roach                    <li>
539b9349c6SGreg Roach                        <a href="<?= e($fact->record()->url()) ?>">
549b9349c6SGreg Roach                            <?= $fact->record()->fullName() ?>
5540296c5fSGreg Roach                        </a>
5640296c5fSGreg Roach
579b9349c6SGreg Roach                        <div class="indent">
588c253f3eSGreg Roach                            <?= $fact->label() ?><?= $fact->date()->display($fact->record()->tree()) ?>
599b9349c6SGreg Roach                            <?php if ($fact->attribute('PLAC') !== '') : ?>
609b9349c6SGreg Roach<?=  $fact->attribute('PLAC') ?>
619b9349c6SGreg Roach                            <?php endif ?>
629b9349c6SGreg Roach                        </div>
6340296c5fSGreg Roach                    </li>
6440296c5fSGreg Roach                <?php endforeach ?>
6540296c5fSGreg Roach            </ul>
6640296c5fSGreg Roach        </td>
6740296c5fSGreg Roach    </tr>
6840296c5fSGreg Roach</table>
69