bludit/bl-themes/kernel-panic/php/home.php

41 lines
1.7 KiB
PHP
Raw Normal View History

2017-12-13 19:34:40 +01:00
<!-- Section -->
<section class="content">
<?php foreach ($pages as $page): ?>
<article class="page">
<?php Theme::plugins('pageBegin') ?>
<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>
<?php echo $page->contentBreak() ?>
<footer>
<?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 } ?>
</footer>
<?php Theme::plugins('pageEnd') ?>
</article>
<?php endforeach ?>
</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>