ajout d'une fonction pour faire dans l'autre sens : avoir toute les date (parent et linked) + implémentation de la fonction

This commit is contained in:
antonin gallon 2026-02-09 22:24:17 +01:00
parent 7501e2cbb7
commit 9789b645ff
7 changed files with 43 additions and 12 deletions

View file

@ -29,9 +29,12 @@
<span class="light">publié le </span><?php echo $article->published()->toDate('d/m/Y') ?><br>
<span class="light">dans</span> <a
href="<?= $article->parent()->url() ?>"><?= $article->parent()->title() ?></a>
/ <a
<span class="light">dans</span>
<?php foreach(allYears($article) as $year):?>
<a href="<?= $year->url() ?>"><?= $year->title()?></a>/
<?php endforeach ?>
<a
href="/categories/<?= Str::slug($article->category()) ?>"><?= $article->category() ?></a>
</p>
</div>