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