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