2017-05-21 22:01:44 +02:00
|
|
|
<!-- First page -->
|
|
|
|
<?php $firstPage = array_shift($pages) ?>
|
|
|
|
|
|
|
|
<article class="post featured">
|
|
|
|
<header class="major">
|
|
|
|
<span class="date"><?php echo $firstPage->date() ?></span>
|
2017-05-24 00:48:29 +02:00
|
|
|
<h2><a href="<?php echo $firstPage->permalink() ?>#main"><?php echo $firstPage->title() ?></a></h2>
|
2017-05-21 22:01:44 +02:00
|
|
|
<p><?php echo $firstPage->description() ?></p>
|
|
|
|
</header>
|
2017-05-24 00:48:29 +02:00
|
|
|
<a href="<?php echo $firstPage->permalink() ?>#main" class="image main"><img src="<?php echo $firstPage->coverImage() ?>" alt="" /></a>
|
2017-05-21 22:01:44 +02:00
|
|
|
<ul class="actions">
|
2017-05-24 00:48:29 +02:00
|
|
|
<li><a href="<?php echo $firstPage->permalink() ?>#main" class="button big">Full Story</a></li>
|
2017-05-21 22:01:44 +02:00
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
<!-- For each page left -->
|
|
|
|
<section class="posts">
|
|
|
|
<?php foreach ($pages as $page): ?>
|
|
|
|
|
|
|
|
<article>
|
|
|
|
<header>
|
|
|
|
<span class="date"><?php echo $page->date() ?></span>
|
|
|
|
<h2><a href="<?php echo $page->permalink() ?>"><?php echo $page->title() ?></a></h2>
|
|
|
|
</header>
|
2017-05-24 00:48:29 +02:00
|
|
|
<a href="<?php echo $page->permalink() ?>#main" class="image fit"><img src="<?php echo $page->coverImage() ?>" alt="" /></a>
|
2017-05-21 22:01:44 +02:00
|
|
|
<p><?php echo $page->description() ?></p>
|
|
|
|
<ul class="actions">
|
2017-05-24 00:48:29 +02:00
|
|
|
<li><a href="<?php echo $page->permalink() ?>#main" class="button">Full Story</a></li>
|
2017-05-21 22:01:44 +02:00
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Paginator -->
|
|
|
|
<footer>
|
|
|
|
<div class="pagination">
|
2017-05-24 00:48:29 +02:00
|
|
|
<?php
|
|
|
|
// Show previus page link
|
|
|
|
if(Paginator::showPrev()) {
|
|
|
|
echo '<a href="'.Paginator::prevPageUrl().'" class="previous">Prev</a>';
|
|
|
|
}
|
|
|
|
|
|
|
|
for($i=1; $i<=Paginator::amountOfPages(); $i++) {
|
2017-07-30 14:25:16 +02:00
|
|
|
echo '<a href='.Paginator::numberUrl($i).' class="page">'.$i.'</a>';
|
2017-05-24 00:48:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Show next page link
|
|
|
|
if(Paginator::showNext()) {
|
|
|
|
echo '<a href="'.Paginator::nextPageUrl().'" class="next">Next</a>';
|
|
|
|
}
|
|
|
|
?>
|
2017-05-21 22:01:44 +02:00
|
|
|
</div>
|
|
|
|
</footer>
|