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