xref: /webtrees/resources/views/modules/faq/show.phtml (revision 9ed80f829cfb208ae92f7928345696619569bf4e)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<h2 class="wt-page-title"><?= $title ?></h2>
4
5<table class="faq">
6    <?php foreach ($faqs as $id => $faq) : ?>
7    <tr>
8        <td style="padding: 5px;">
9            <a href="#faq<?= e($id) ?>"><?= e($faq->header) ?></a>
10        </td>
11    </tr>
12    <?php endforeach ?>
13</table>
14
15<?php foreach ($faqs as $id => $faq) : ?>
16    <hr>
17    <div class="faq_title" id="faq<?= $id ?>">
18        <?= e($faq->header) ?>
19        <div class="faq_top faq_italic">
20            <a href="#content"><?= I18N::translate('back to top') ?></a>
21        </div>
22    </div>
23    <div class="faq_body">
24        <?= substr($faq->faqbody, 0, 1) === '<' ? $faq->faqbody : nl2br(e($faq->faqbody), false) ?>
25    </div>
26<?php endforeach ?>
27