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