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