Update article structure and fix translation keys
Fix translation keys in FAQ template Add article wrapper to page template
This commit is contained in:
parent
6682e94798
commit
22717168ae
3 changed files with 5 additions and 5 deletions
|
|
@ -14,9 +14,9 @@
|
|||
</summary>
|
||||
<div class="faq-content">
|
||||
<?php if ($item['summary']): ?>
|
||||
<p><strong><?= htmlspecialchars($translations['faq_summary_label'] ?? 'Kort oppsumert:') ?></strong> <?= htmlspecialchars($item['summary']) ?></p>
|
||||
<p><strong><?= htmlspecialchars($translations['faq.summary_label'] ?? 'Kort oppsumert:') ?></strong> <?= htmlspecialchars($item['summary']) ?></p>
|
||||
<?php endif; ?>
|
||||
<a href="<?= htmlspecialchars($item['url']) ?>" class="button"><?= htmlspecialchars($translations['faq_read_full_answer'] ?? 'Les hele svaret') ?></a>
|
||||
<a href="<?= htmlspecialchars($item['url']) ?>" class="button"><?= htmlspecialchars($translations['faq.read_full_answer'] ?? 'Les hele svaret') ?></a>
|
||||
</div>
|
||||
</details>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<article>
|
||||
<?= $content ?>
|
||||
|
||||
<?php if ($pageMetadata && (isset($pageMetadata['tags']) || isset($pageMetadata['categories']))): ?>
|
||||
|
|
@ -23,3 +24,4 @@
|
|||
<?php endif; ?>
|
||||
</aside>
|
||||
<?php endif; ?>
|
||||
</article>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue