fibable/views/nav-by-latest.phtml

7 lines
250 B
PHTML

<nav class="latest">
<?php foreach ($latest as $prev): ?>
<a href="?view=single&date=<?=$prev->date?>&ref=<?=$prev->ref?>"><?=$prev->title?></a>
<?php endforeach ?>
<a href="?view=archives">Archives</a>
</nav>