2018-02-01 00:34:16 +01:00
|
|
|
<?php foreach ($content as $page): ?>
|
|
|
|
|
|
|
|
<!-- Post -->
|
2018-02-01 22:43:46 +01:00
|
|
|
<div class="card my-5 border-0">
|
2018-02-01 00:34:16 +01:00
|
|
|
|
2018-03-10 17:03:40 +01:00
|
|
|
<!-- Load Bludit Plugins: Page Begin -->
|
|
|
|
<?php Theme::plugins('pageBegin'); ?>
|
|
|
|
|
2018-02-01 00:34:16 +01:00
|
|
|
<!-- Cover image -->
|
|
|
|
<?php if ($page->coverImage()): ?>
|
2018-02-01 22:43:46 +01:00
|
|
|
<img class="card-img-top mb-3 rounded-0" alt="Cover Image" src="<?php echo $page->coverImage(); ?>"/>
|
2018-02-01 00:34:16 +01:00
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<div class="card-body p-0">
|
|
|
|
<!-- Title -->
|
2018-02-01 22:43:46 +01:00
|
|
|
<a class="text-dark" href="<?php echo $page->permalink(); ?>">
|
2018-02-24 22:39:39 +01:00
|
|
|
<h2 class="title"><?php echo $page->title(); ?></h2>
|
2018-02-01 00:34:16 +01:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- Creation date -->
|
2018-02-24 22:39:39 +01:00
|
|
|
<h6 class="card-subtitle mb-3 text-muted"><?php echo $page->date(); ?> - <?php echo $Language->get('Reading time') . ': ' . $page->readingTime(); ?></h6>
|
2018-02-01 00:34:16 +01:00
|
|
|
|
|
|
|
<!-- Breaked content -->
|
2018-02-01 22:43:46 +01:00
|
|
|
<?php echo $page->contentBreak(); ?>
|
2018-02-01 00:34:16 +01:00
|
|
|
|
|
|
|
<!-- "Read more" button -->
|
|
|
|
<?php if ($page->readMore()): ?>
|
2018-03-19 21:55:20 +01:00
|
|
|
<a href="<?php echo $page->permalink(); ?>"><?php echo $Language->get('Read more'); ?></a>
|
2018-02-01 00:34:16 +01:00
|
|
|
<?php endif ?>
|
2018-03-10 17:03:40 +01:00
|
|
|
|
2018-02-01 00:34:16 +01:00
|
|
|
</div>
|
|
|
|
|
2018-03-10 17:03:40 +01:00
|
|
|
<!-- Load Bludit Plugins: Page End -->
|
|
|
|
<?php Theme::plugins('pageEnd'); ?>
|
|
|
|
|
2018-02-01 00:34:16 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<?php endforeach ?>
|
|
|
|
|
|
|
|
<!-- Pagination -->
|
|
|
|
<?php if (Paginator::amountOfPages()>1): ?>
|
2018-07-20 18:36:47 +02:00
|
|
|
<nav class="paginator">
|
2018-03-08 19:13:28 +01:00
|
|
|
<ul class="pagination flex-wrap">
|
2018-02-01 00:34:16 +01:00
|
|
|
|
2018-03-08 19:13:28 +01:00
|
|
|
<!-- Previous button -->
|
2018-07-20 18:36:47 +02:00
|
|
|
<li class="page-item mr-2 <?php if (!Paginator::showPrev()) echo 'disabled' ?>">
|
|
|
|
<a class="page-link" href="<?php echo Paginator::previousPageUrl() ?>" tabindex="-1">◀ <?php echo $Language->get('Previous'); ?></a>
|
2018-02-01 00:34:16 +01:00
|
|
|
</li>
|
|
|
|
|
2018-07-20 18:36:47 +02:00
|
|
|
<!-- Home button -->
|
|
|
|
<li class="page-item <?php if (Paginator::currentPage()==1) echo 'disabled' ?>">
|
|
|
|
<a class="page-link" href="<?php echo $site->url() ?>">Home</a>
|
2018-02-01 00:34:16 +01:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- Next button -->
|
2018-07-20 18:36:47 +02:00
|
|
|
<li class="page-item ml-2 <?php if (!Paginator::showNext()) echo 'disabled' ?>">
|
|
|
|
<a class="page-link" href="<?php echo Paginator::nextPageUrl() ?>"><?php echo $Language->get('Next'); ?> ►</a>
|
2018-02-01 00:34:16 +01:00
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2018-03-08 19:13:28 +01:00
|
|
|
<?php endif ?>
|