fibable/views/archives.phtml

13 lines
444 B
PHTML
Raw Permalink Normal View History

2023-09-04 21:13:29 +02:00
<ul class="archives">
<?php foreach ($dates as $date): ?>
<li class="date">
<h3><?=$date->str?></h3>
<ul class="articles">
<?php foreach ($date->articles as $article): ?>
<li class="article"><a href="?view=single&date=<?=$article->date?>"><?=$article->title?></a></li>
<?php endforeach ?>
</ul>
</li>
<?php endforeach ?>
</ul>