2025-11-01 16:11:20 +01:00
|
|
|
<?php if (!empty($pageContent)): ?>
|
|
|
|
|
<article class="list-intro">
|
|
|
|
|
<?= $pageContent ?>
|
|
|
|
|
</article>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
2025-10-02 16:54:47 +02:00
|
|
|
<article>
|
|
|
|
|
<?php foreach ($items as $item): ?>
|
|
|
|
|
<article>
|
|
|
|
|
<?php if ($item['cover']): ?>
|
2025-11-01 16:11:20 +01:00
|
|
|
<a href="<?= htmlspecialchars($item['url']) ?>">
|
|
|
|
|
<img src="<?= htmlspecialchars($item['cover']) ?>" alt="<?= htmlspecialchars($item['title']) ?>">
|
|
|
|
|
</a>
|
2025-10-02 16:54:47 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
|
<h1>
|
|
|
|
|
<a href="<?= htmlspecialchars($item['url']) ?>">
|
|
|
|
|
<?= htmlspecialchars($item['title']) ?>
|
|
|
|
|
</a>
|
|
|
|
|
</h1>
|
2025-11-01 16:11:20 +01:00
|
|
|
<?php if (($metadata['show_date'] ?? true) && !empty($item['date'])): ?>
|
|
|
|
|
<p><?= htmlspecialchars($item['date']) ?></p>
|
|
|
|
|
<?php endif; ?>
|
2025-10-02 16:54:47 +02:00
|
|
|
<?php if ($item['summary']): ?>
|
|
|
|
|
<p><?= htmlspecialchars($item['summary']) ?></p>
|
|
|
|
|
<?php endif; ?>
|
2025-11-01 16:11:20 +01:00
|
|
|
<a href="<?= htmlspecialchars($item['url']) ?>" class="button"><?= htmlspecialchars($translations['read_more'] ?? 'Read more') ?></a>
|
2025-10-02 16:54:47 +02:00
|
|
|
</article>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</article>
|
2025-11-01 16:11:20 +01:00
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
main > article {
|
|
|
|
|
> 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> .button {
|
|
|
|
|
margin-left: 1rem;
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|