2018-01-28 20:06:07 +01:00
|
|
|
<!-- Welcome message -->
|
|
|
|
<header class="welcome bg-light">
|
2018-01-25 23:58:42 +01:00
|
|
|
<div class="container text-center">
|
|
|
|
<!-- Site title -->
|
|
|
|
<h1><?php echo $site->slogan() ?></h1>
|
|
|
|
|
|
|
|
<!-- Site description -->
|
|
|
|
<?php if ($site->description()): ?>
|
|
|
|
<p class="lead"><?php echo $site->description() ?></p>
|
|
|
|
<?php endif ?>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<!-- Print all the content -->
|
|
|
|
<?php foreach ($content as $page): ?>
|
2018-01-28 20:06:07 +01:00
|
|
|
<section class="home-page">
|
2018-01-25 23:58:42 +01:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 mx-auto">
|
2018-01-28 23:33:50 +01:00
|
|
|
<!-- Load Bludit Plugins: Page Begin -->
|
|
|
|
<?php Theme::plugins('pageBegin'); ?>
|
|
|
|
|
2018-01-25 23:58:42 +01:00
|
|
|
<!-- Page title -->
|
2018-01-28 20:06:07 +01:00
|
|
|
<a class="text-dark" href="<?php echo $page->permalink() ?>">
|
|
|
|
<h2><?php echo $page->title() ?></h2>
|
2018-01-27 20:34:26 +01:00
|
|
|
</a>
|
2018-01-25 23:58:42 +01:00
|
|
|
|
2018-01-28 20:06:07 +01:00
|
|
|
<!-- Page content until the pagebreak -->
|
|
|
|
<div>
|
2018-01-25 23:58:42 +01:00
|
|
|
<?php echo $page->contentBreak() ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Shows "read more" button if necessary -->
|
|
|
|
<?php if ($page->readMore()): ?>
|
|
|
|
<a class="btn btn-primary btn-sm" href="<?php echo $page->permalink() ?>" role="button">Read more</a>
|
|
|
|
<?php endif ?>
|
2018-01-28 23:33:50 +01:00
|
|
|
|
|
|
|
<!-- Load Bludit Plugins: Page End -->
|
|
|
|
<?php Theme::plugins('pageEnd'); ?>
|
2018-01-25 23:58:42 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<?php endforeach ?>
|
|
|
|
|
|
|
|
<!-- Pagination -->
|
2018-01-27 20:34:26 +01:00
|
|
|
<?php if (Paginator::amountOfPages()>1): ?>
|
|
|
|
<nav class="my-4" aria-label="Page navigation">
|
2018-01-25 23:58:42 +01:00
|
|
|
<ul class="pagination justify-content-center">
|
2018-01-27 20:34:26 +01:00
|
|
|
|
|
|
|
<!-- Previuos button -->
|
|
|
|
<li class="page-item <?php if (Paginator::showNext()) echo 'disabled' ?>">
|
|
|
|
<a class="page-link" href="<?php echo Paginator::prevPageUrl() ?>" tabindex="-1">Previous</a>
|
2018-01-25 23:58:42 +01:00
|
|
|
</li>
|
2018-01-27 20:34:26 +01:00
|
|
|
|
|
|
|
<!-- List of pages -->
|
|
|
|
<?php for ($i = 1; $i <= Paginator::amountOfPages(); $i++): ?>
|
|
|
|
<li class="page-item <?php if ($i==Paginator::currentPage()) echo 'active' ?>">
|
|
|
|
<a class="page-link" href="<?php echo Paginator::numberUrl($i) ?>"><?php echo $i ?></a>
|
2018-01-25 23:58:42 +01:00
|
|
|
</li>
|
2018-01-27 20:34:26 +01:00
|
|
|
<?php endfor ?>
|
|
|
|
|
|
|
|
<!-- Next button -->
|
|
|
|
<li class="page-item <?php if (Paginator::showPrev()) echo 'disabled' ?>">
|
|
|
|
<a class="page-link" href="<?php echo Paginator::nextPageUrl() ?>">Next</a>
|
|
|
|
</li>
|
|
|
|
|
2018-01-25 23:58:42 +01:00
|
|
|
</ul>
|
2018-01-27 20:34:26 +01:00
|
|
|
</nav>
|
|
|
|
<?php endif ?>
|