xref: /webtrees/resources/views/icons/record.phtml (revision c43c166ecb395e5c9f57dc8e20d9f6f7a27bf410)
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->tag() === Individual::RECORD_TYPE) : ?>
17    <?= view('icons/individual') ?>
18<?php elseif ($record->tag() === Family::RECORD_TYPE) : ?>
19    <?= view('icons/family') ?>
20<?php elseif ($record->tag() === Source::RECORD_TYPE) : ?>
21    <?= view('icons/source') ?>
22<?php elseif ($record->tag() === Repository::RECORD_TYPE) : ?>
23    <?= view('icons/repository') ?>
24<?php elseif ($record->tag() === Note::RECORD_TYPE) : ?>
25    <?= view('icons/note') ?>
26<?php elseif ($record->tag() === Media::RECORD_TYPE) : ?>
27    <?= view('icons/media') ?>
28<?php elseif ($record->tag() === Submitter::RECORD_TYPE) : ?>
29    <?= view('icons/submitter') ?>
30<?php endif;
31