The numberslist.php script shows a list of number published with Easy Magazine ordered from
the newer to the older.
It is useful for the user when he wont to read an old number. Clicking on the number title the
user will be redirect to a page (number.php) that lists
all articles related to the number chosen.
Accessible data:
An example of code:
<h1><?= $this->number->getTitle() ?></h1>
<? foreach($this->number->articlesPublished() as $article) { ?>
<h2>
<? echo '<a href="'.URIMaker::article($article).'"> '.$article->getTitle()." </a>"; ?>
</h2>
<div class="date"><small><?= $article->getCreatedFormatted() ?></small> by
<?
foreach ($article->users() as $user) {
echo $user->getName().' ';
}
?>
</div>
<div class="entry">
<?= $article->getSummary() ?>
</div>
<p class="date">
<? echo '<a href="'.URIMaker::comment($article).'"> comments ('.count($article->commentsPublished()).') </a>'; ?>
</p>
<? } ?>