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