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