xref: /webtrees/resources/views/modules/block-template.phtml (revision 43f2f523bcb6d4090564d23802872c0679ede6bc)
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) ?>">
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="visually-hidden"><?= 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