xref: /webtrees/resources/views/modules/block-template.phtml (revision 3d2c98d1066d5e178a3d1ceb3bdc58b7ba8ee926)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5/**
6 * @var string $block
7 * @var string $content
8 * @var string $config_url
9 * @var int $id
10 * @var string $title
11 */
12
13?>
14
15<div class="card mb-4 wt-block wt-block-<?= e($block) ?>" id="block-<?= e($id) ?>">
16    <div class="card-header wt-block-header wt-block-header-<?= e($block) ?>" dir="auto">
17        <?php if ($config_url !== '') : ?>
18            <a class="btn btn-link" href="<?= e($config_url) ?>" title="<?= I18N::translate('Preferences') ?>">
19                <?= view('icons/preferences') ?>
20                <span class="sr-only"><?= I18N::translate('Preferences') ?></span>
21            </a>
22        <?php endif ?>
23        <?= $title ?>
24    </div>
25    <div class="card-body wt-block-content wt-block-content-<?= e($block) ?>">
26        <?= $content ?>
27    </div>
28</div>
29