xref: /webtrees/resources/views/modules/interactive-tree/chart.phtml (revision 1270d2767576ed4a83917769b0ee3613e3b010bf)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Individual;
7use Fisharebest\Webtrees\Tree;
8
9/**
10 * @var Individual $individual
11 * @var string     $module
12 * @var string     $name
13 * @var Tree       $tree
14 */
15
16?>
17
18<div class="wt-chart wt-chart-interactive">
19    <div id="<?= $name ?>_out" class="tv_out" data-url-details="<?= e(route('module', ['module' => $module, 'action' => 'Details', 'tree' => $tree->name(), 'dummy' => 'dummy'])) ?>" data-url-individuals="<?= e(route('module', ['module' => $module, 'action' => 'Individuals', 'tree' => $tree->name(), 'dummy' => 'dummy'])) ?>">
20        <div id="tv_tools">
21            <ul>
22                <li id="tvbCompact" class="tv_button" title="<?= I18N::translate('Use compact layout') ?>">
23                </li>
24                <li id="tvbFullscreen" class="tv_button">
25                    <a href="#" data-wt-fullscreen=".wt-chart-interactive">
26                        <span title="<?= I18N::translate('Enter fullscreen') ?>"><?= view('icons/enter-fullscreen') ?></span>
27                        <span title="<?= I18N::translate('Exit fullscreen') ?>"><?= view('icons/exit-fullscreen') ?></span>
28                    </a>
29                </li>
30                <li class="tv_button" id="<?= $name ?>_loading">
31                    <i class="icon-loading-small"></i>
32                </li>
33            </ul>
34        </div>
35        <div id="<?= $name ?>_in" class="tv_in" dir="ltr">
36            <?= $individual ?>
37        </div>
38    </div>
39</div>
40