xref: /webtrees/resources/views/modules/compact-chart/arrow-left.phtml (revision 1ff45046fabc22237b5d0d8e489c96f031fc598d)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Individual;
6use Fisharebest\Webtrees\Module\CompactTreeChartModule;
7
8/**
9 * @var Individual|null        $individual
10 * @var CompactTreeChartModule $module
11 */
12
13?>
14<?php if ($individual instanceof Individual) : ?>
15    <a href="<?= e($module->chartUrl($individual)) ?>" title="<?= strip_tags($module->chartTitle($individual)) ?>">
16        <?= view('icons/arrow-left') ?>
17    </a>
18<?php else : ?>
19    <?= view('icons/arrow-left') ?>
20<?php endif;
21