2017-07-09 22:04:00 +02:00
|
|
|
<!-- Section -->
|
|
|
|
<section class="content">
|
|
|
|
<?php foreach ($pages as $page): ?>
|
|
|
|
<article class="page">
|
2017-07-29 00:08:19 +02:00
|
|
|
<?php Theme::plugins('pageBegin') ?>
|
2017-07-09 22:04:00 +02:00
|
|
|
<header>
|
|
|
|
<a href="<?php echo $page->permalink() ?>">
|
|
|
|
<h2><?php echo $page->title() ?></h2>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<?php if( $page->coverImage() ) { ?>
|
|
|
|
<img src="<?php echo $page->coverImage() ?>" alt="<?php echo $page->slug() ?>">
|
|
|
|
<?php } ?>
|
|
|
|
</header>
|
2017-07-15 21:28:54 +02:00
|
|
|
<?php echo $page->contentBreak() ?>
|
2017-07-09 22:04:00 +02:00
|
|
|
<footer>
|
2017-07-15 21:28:54 +02:00
|
|
|
<?php if ($page->readMore() ) { ?>
|
|
|
|
<div class="readmore">
|
|
|
|
<a href="<?php echo $page->permalink() ?>">
|
|
|
|
<i class="icon-arrow-down"></i> <?php echo $Language->get('Read more') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2017-07-09 22:04:00 +02:00
|
|
|
</footer>
|
2017-07-29 00:08:19 +02:00
|
|
|
<?php Theme::plugins('pageEnd') ?>
|
2017-07-09 22:04:00 +02:00
|
|
|
</article>
|
|
|
|
<?php endforeach ?>
|
2017-10-24 12:03:43 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Pagination -->
|
|
|
|
<ul class="pagination">
|
|
|
|
<?php
|
|
|
|
if (Paginator::showPrev()) {
|
|
|
|
echo '<li><a href="'.Paginator::prevPageUrl().'">'.$L->get('Previous page').'</a></li>';
|
|
|
|
}
|
|
|
|
if (Paginator::showNext()) {
|
|
|
|
echo '<li><a href="'.Paginator::nextPageUrl().'" class="float-right">'.$L->get('Next page').'</a></li>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|