chiro-canto/public/articles/archive.php
2021-04-15 12:29:53 +02:00

18 lines
500 B
PHP
Executable File

<h2>Articles Archive</h2>
<ul id="headlines" class="arcive">
<?php
foreach ($results['articles'] as $article) {
?>
<li>
<h2><span class="pub-date"><?=date('j F Y', $article->publication_date)?></span>
<a href="?action=view&article=<?=$article->id?>"><?=htmlspecialchars($article->title)?></a>
</h2>
<p class="summary"><?php echo htmlspecialchars($article->summary)?></p>
</li>
<?php
}
?>
</ul>
<p><a href="?action=archive">Article Archive</a></p>