1*48f08416SGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 2*48f08416SGreg Roach<?php use Fisharebest\Webtrees\Individual; ?> 3*48f08416SGreg Roach<?php use Fisharebest\Webtrees\View; ?> 4*48f08416SGreg Roach 5*48f08416SGreg Roach<table class="table table-sm datatable wt-table-events" data-info="false" data-paging="false" data-searching="false" data-sorting="<?= e('[[1, "asc" ]]') ?>"> 6*48f08416SGreg Roach <thead> 7*48f08416SGreg Roach <tr> 8*48f08416SGreg Roach <th> 9*48f08416SGreg Roach <?= I18N::translate('Record') ?> 10*48f08416SGreg Roach </th> 11*48f08416SGreg Roach <th> 12*48f08416SGreg Roach <?= I18N::translate('Date') ?> 13*48f08416SGreg Roach </th> 14*48f08416SGreg Roach <th> 15*48f08416SGreg Roach <?= view('icons/anniversary') ?> 16*48f08416SGreg Roach <span class="sr-only"><?= I18N::translate('Anniversary') ?></span> 17*48f08416SGreg Roach </th> 18*48f08416SGreg Roach <th> 19*48f08416SGreg Roach <?= I18N::translate('Event') ?> 20*48f08416SGreg Roach </th> 21*48f08416SGreg Roach </tr> 22*48f08416SGreg Roach </thead> 23*48f08416SGreg Roach <tbody> 24*48f08416SGreg Roach <?php foreach ($facts as $fact) : ?> 25*48f08416SGreg Roach <?php $record = $fact->record(); ?> 26*48f08416SGreg Roach <tr> 27*48f08416SGreg Roach <td data-sort="<?= e($record->sortName()) ?>"> 28*48f08416SGreg Roach <a href="<?= e($record->url()) ?>"> 29*48f08416SGreg Roach <?= $record->fullName() ?> 30*48f08416SGreg Roach </a> 31*48f08416SGreg Roach <?php if ($record instanceof Individual) : ?> 32*48f08416SGreg Roach <?= $record->getSexImage() ?> 33*48f08416SGreg Roach <?php endif ?> 34*48f08416SGreg Roach </td> 35*48f08416SGreg Roach <td data-sort="<?= $fact->date()->julianDay() ?>"> 36*48f08416SGreg Roach <?= $fact->date()->display(true); ?> 37*48f08416SGreg Roach </td> 38*48f08416SGreg Roach <td data-sort="<?= $fact->anniv ?>"> 39*48f08416SGreg Roach <?= $fact->anniv ?> 40*48f08416SGreg Roach </td> 41*48f08416SGreg Roach <td data-sort="<?= $fact->label() ?>"> 42*48f08416SGreg Roach <?= $fact->label() ?> 43*48f08416SGreg Roach </td> 44*48f08416SGreg Roach </tr> 45*48f08416SGreg Roach <?php endforeach ?> 46*48f08416SGreg Roach </tbody> 47*48f08416SGreg Roach</table> 48*48f08416SGreg Roach 49*48f08416SGreg Roach<?php View::push('javascript') ?> 50*48f08416SGreg Roach<script> 51*48f08416SGreg Roach $(".wt-table-events").dataTable(); 52*48f08416SGreg Roach</script> 53*48f08416SGreg Roach<?php View::endpush() ?> 54