xref: /webtrees/resources/views/icons/record.phtml (revision 600daa5d4fa729dbec2d21fb3adffed0ae6efda9)
1<?php
2
3use Fisharebest\Webtrees\Family;
4use Fisharebest\Webtrees\GedcomRecord;
5use Fisharebest\Webtrees\Individual;
6use Fisharebest\Webtrees\Media;
7use Fisharebest\Webtrees\Note;
8use Fisharebest\Webtrees\Repository;
9use Fisharebest\Webtrees\Source;
10use Fisharebest\Webtrees\Submitter;
11
12/**
13 * @var GedcomRecord $record
14 */
15?>
16<?php if ($record::RECORD_TYPE === Individual::RECORD_TYPE) : ?>
17    <?= view('icons/individual') ?>
18<?php elseif ($record::RECORD_TYPE === Family::RECORD_TYPE) : ?>
19    <?= view('icons/family') ?>
20<?php elseif ($record::RECORD_TYPE === Source::RECORD_TYPE) : ?>
21    <?= view('icons/source') ?>
22<?php elseif ($record::RECORD_TYPE === Repository::RECORD_TYPE) : ?>
23    <?= view('icons/repository') ?>
24<?php elseif ($record::RECORD_TYPE === Note::RECORD_TYPE) : ?>
25    <?= view('icons/note') ?>
26<?php elseif ($record::RECORD_TYPE === Media::RECORD_TYPE) : ?>
27    <?= view('icons/media') ?>
28<?php elseif ($record::RECORD_TYPE === Submitter::RECORD_TYPE) : ?>
29    <?= view('icons/submitter') ?>
30<?php endif;
31