xref: /webtrees/resources/views/admin/custom-module-info.phtml (revision 78606cf427772fbdc5222ff607ee23f43078f94b)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Module\ModuleCustomInterface;
7
8/** @var ModuleCustomInterface $module */
9
10?>
11
12<div class="wt-custom-module-info">
13    <?= view('icons/warning') ?>
14    <?= I18N::translate('Custom module') ?>
15    <?php if ($module->customModuleVersion() !== '') : ?>
16        <br>
17        <?= view('icons/module') ?>
18        <?= $module->customModuleVersion() ?>
19    <?php endif ?>
20    <?php if ($module->customModuleAuthorName() !== '') : ?>
21        <br>
22        <?= view('icons/individual') ?>
23        <?= $module->customModuleAuthorName() ?>
24    <?php endif ?>
25    <?php if ($module->customModuleSupportUrl() !== '') : ?>
26        <br>
27        <?= view('icons/help') ?>
28        <a href="<?= e($module->customModuleSupportUrl()) ?>">
29            <?= e($module->customModuleSupportUrl()) ?>
30        </a>
31    <?php endif ?>
32</div>
33