xref: /webtrees/resources/views/icons/sex.phtml (revision 52288ec72a577b9a3a455ccc0f26d11b0df31667)
1<?php
2
3declare(strict_types=1);
4
5/**
6 * @var string $sex
7 */
8
9if ($sex === 'F') : ?>
10<span class="wt-icon-sex wt-icon-sex-f"><i class="fa-solid fa-venus fa-fw" aria-hidden="true"></i></span>
11<?php elseif ($sex === 'M') : ?>
12<span class="wt-icon-sex wt-icon-sex-m"><i class="fa-solid fa-mars fa-fw" aria-hidden="true"></i></span>
13<?php elseif ($sex === 'X') : ?>
14<span class="wt-icon-sex wt-icon-sex-x"><i class="fa-solid fa-transgender fa-fw" aria-hidden="true"></i></span>
15<?php elseif ($sex === 'U') : ?>
16<span class="wt-icon-sex wt-icon-sex-u"><i class="fa-solid fa-genderless fa-fw" aria-hidden="true"></i></span>
17<?php endif ?>
18