xref: /webtrees/resources/views/modules/interactive-tree/chart.phtml (revision 78606cf427772fbdc5222ff607ee23f43078f94b)
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 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'])) ?>">
19    <div id="tv_tools">
20        <ul>
21            <li id="tvbCompact" class="tv_button" title="<?= I18N::translate('Use compact layout') ?>">
22            </li>
23            <li id="tvbFullscreen" class="tv_button">
24                <a href="#" data-wt-fullscreen=".tv_out">
25                    <span title="<?= I18N::translate('Enter fullscreen') ?>"><?= view('icons/enter-fullscreen') ?></span>
26                    <span title="<?= I18N::translate('Exit fullscreen') ?>"><?= view('icons/exit-fullscreen') ?></span>
27                </a>
28            </li>
29            <li class="tv_button" id="<?= $name ?>_loading">
30                <i class="icon-loading-small"></i>
31            </li>
32        </ul>
33    </div>
34    <div id="<?= $name ?>_in" class="tv_in" dir="ltr">
35        <?= $individual ?>
36    </div>
37</div>
38