2026-01-14 23:15:58 +01:00
|
|
|
<article>
|
2025-10-02 20:19:03 +02:00
|
|
|
<?= $content ?>
|
|
|
|
|
|
2026-05-10 22:02:48 +02:00
|
|
|
<?php if (!empty($metadata) && (isset($metadata['tags']) || isset($metadata['categories']))): ?>
|
2025-10-02 20:19:03 +02:00
|
|
|
<aside class="metadata">
|
2026-05-10 22:02:48 +02:00
|
|
|
<?php if (!empty($metadata['categories'])): ?>
|
2025-10-02 20:19:03 +02:00
|
|
|
<div class="categories">
|
2026-05-10 22:02:48 +02:00
|
|
|
<strong><?= htmlspecialchars($translations['categories'] ?? 'Categories') ?>:</strong>
|
|
|
|
|
<?php
|
|
|
|
|
$categories = array_map('trim', explode(',', $metadata['categories']));
|
2025-10-02 20:19:03 +02:00
|
|
|
echo implode(', ', array_map('htmlspecialchars', $categories));
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif; ?>
|
2026-05-10 22:02:48 +02:00
|
|
|
|
|
|
|
|
<?php if (!empty($metadata['tags'])): ?>
|
2025-10-02 20:19:03 +02:00
|
|
|
<div class="tags">
|
2026-05-10 22:02:48 +02:00
|
|
|
<strong><?= htmlspecialchars($translations['tags'] ?? 'Tags') ?>:</strong>
|
|
|
|
|
<?php
|
|
|
|
|
$tags = array_map('trim', explode(',', $metadata['tags']));
|
2025-10-02 20:19:03 +02:00
|
|
|
echo implode(', ', array_map('htmlspecialchars', $tags));
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</aside>
|
|
|
|
|
<?php endif; ?>
|
2026-01-14 23:15:58 +01:00
|
|
|
</article>
|