2025-10-02 22:29:21 +02:00
|
|
|
<?php if (!empty($pageContent)): ?>
|
|
|
|
|
<article class="list-intro">
|
|
|
|
|
<?= $pageContent ?>
|
|
|
|
|
</article>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
2026-01-17 13:03:23 +01:00
|
|
|
<section>
|
2025-10-02 17:01:55 +02:00
|
|
|
<?php foreach ($items as $item): ?>
|
|
|
|
|
<article>
|
|
|
|
|
<?php if ($item['cover']): ?>
|
2025-10-02 22:29:21 +02:00
|
|
|
<a href="<?= htmlspecialchars($item['url']) ?>">
|
|
|
|
|
<img src="<?= htmlspecialchars($item['cover']) ?>" alt="<?= htmlspecialchars($item['title']) ?>">
|
|
|
|
|
</a>
|
2025-10-02 17:01:55 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
|
<h1>
|
|
|
|
|
<a href="<?= htmlspecialchars($item['url']) ?>">
|
|
|
|
|
<?= htmlspecialchars($item['title']) ?>
|
|
|
|
|
</a>
|
|
|
|
|
</h1>
|
2025-10-02 22:29:21 +02:00
|
|
|
<?php if (($metadata['show_date'] ?? true) && !empty($item['date'])): ?>
|
|
|
|
|
<p><?= htmlspecialchars($item['date']) ?></p>
|
|
|
|
|
<?php endif; ?>
|
2025-10-02 17:01:55 +02:00
|
|
|
<?php if ($item['summary']): ?>
|
|
|
|
|
<p><?= htmlspecialchars($item['summary']) ?></p>
|
|
|
|
|
<?php endif; ?>
|
2025-10-15 20:51:38 +02:00
|
|
|
<a href="<?= htmlspecialchars($item['url']) ?>" class="button">Les mer</a>
|
2025-10-02 17:01:55 +02:00
|
|
|
</article>
|
|
|
|
|
<?php endforeach; ?>
|
2026-01-17 13:03:23 +01:00
|
|
|
</section>
|
2025-10-02 22:29:21 +02:00
|
|
|
|
|
|
|
|
<style>
|
2026-01-17 13:03:23 +01:00
|
|
|
main > section {
|
2025-10-02 22:29:21 +02:00
|
|
|
> article {
|
|
|
|
|
background-color: white;
|
|
|
|
|
padding: 0;
|
|
|
|
|
padding-bottom: 1.3rem;
|
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
> :not(img, a) {
|
|
|
|
|
padding-left: 1rem;
|
|
|
|
|
padding-right: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
}
|
2025-10-15 20:51:38 +02:00
|
|
|
|
|
|
|
|
> .button {
|
|
|
|
|
margin-left: 1rem;
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
}
|
2025-10-02 22:29:21 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|