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 -->
|
2018-03-05 23:46:52 +01:00
|
|
|
<h1><?php echo $site->slogan(); ?></h1>
|
2018-01-25 23:58:42 +01:00
|
|
|
|
|
|
|
<!-- Site description -->
|
|
|
|
<?php if ($site->description()): ?>
|
2018-03-05 23:46:52 +01:00
|
|
|
<p class="lead"><?php echo $site->description(); ?></p>
|
2018-01-25 23:58:42 +01:00
|
|
|
<?php endif ?>
|
2018-10-03 00:19:19 +02:00
|
|
|
|
|
|
|
<!-- Custom search form if the plugin "search" is enabled -->
|
|
|
|
<?php if (pluginActivated('pluginSearch')): ?>
|
|
|
|
<div class="form-inline d-block">
|
2019-06-02 20:37:45 +02:00
|
|
|
<input id="search-input" class="form-control mr-sm-2" type="search" placeholder="<?php $language->p('Search') ?>" aria-label="Search">
|
|
|
|
<button class="btn btn-outline-primary my-2 my-sm-0" type="button" onClick="searchNow()"><?php $language->p('Search') ?></button>
|
2018-10-03 00:19:19 +02:00
|
|
|
<script>
|
|
|
|
function searchNow() {
|
|
|
|
var searchURL = "<?php echo Theme::siteUrl(); ?>search/";
|
|
|
|
window.open(searchURL + document.getElementById("search-input").value, "_self");
|
|
|
|
}
|
2019-06-02 20:37:45 +02:00
|
|
|
document.getElementById("search-input").onkeypress = function(e) {
|
|
|
|
if (!e) e = window.event;
|
|
|
|
var keyCode = e.keyCode || e.which;
|
|
|
|
if (keyCode == '13') {
|
|
|
|
searchNow();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
2018-10-03 00:19:19 +02:00
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
2018-01-25 23:58:42 +01:00
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
2018-11-23 20:09:21 +01:00
|
|
|
<?php if (empty($content)): ?>
|
|
|
|
<div class="text-center p-4">
|
|
|
|
<?php $language->p('No pages found') ?>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2018-01-25 23:58:42 +01:00
|
|
|
<!-- 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-03-05 23:46:52 +01:00
|
|
|
<a class="text-dark" href="<?php echo $page->permalink(); ?>">
|
|
|
|
<h2 class="title"><?php echo $page->title(); ?></h2>
|
2018-01-27 20:34:26 +01:00
|
|
|
</a>
|
2018-01-25 23:58:42 +01:00
|
|
|
|
2019-06-02 20:10:55 +02:00
|
|
|
<!-- Page description -->
|
|
|
|
<?php if ($page->description()): ?>
|
|
|
|
<p class="page-description"><?php echo $page->description(); ?></p>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2018-01-28 20:06:07 +01:00
|
|
|
<!-- Page content until the pagebreak -->
|
|
|
|
<div>
|
2018-03-05 23:46:52 +01:00
|
|
|
<?php echo $page->contentBreak(); ?>
|
2018-01-25 23:58:42 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Shows "read more" button if necessary -->
|
|
|
|
<?php if ($page->readMore()): ?>
|
2018-08-01 22:04:28 +02:00
|
|
|
<div class="text-right pt-3">
|
2018-08-05 17:54:20 +02:00
|
|
|
<a class="btn btn-primary btn-sm" href="<?php echo $page->permalink(); ?>" role="button"><?php echo $L->get('Read more'); ?></a>
|
2018-08-01 22:04:28 +02:00
|
|
|
</div>
|
2018-01-25 23:58:42 +01:00
|
|
|
<?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-08-06 21:46:58 +02:00
|
|
|
<?php if (Paginator::numberOfPages()>1): ?>
|
2018-07-18 23:16:30 +02:00
|
|
|
<nav class="paginator">
|
2018-03-08 19:13:28 +01:00
|
|
|
<ul class="pagination flex-wrap justify-content-center">
|
2018-01-27 20:34:26 +01:00
|
|
|
|
2018-03-08 19:13:28 +01:00
|
|
|
<!-- Previous button -->
|
2019-06-21 10:24:37 +02:00
|
|
|
<?php if (Paginator::showPrev()): ?>
|
|
|
|
<li class="page-item mr-2">
|
2018-08-05 17:54:20 +02:00
|
|
|
<a class="page-link" href="<?php echo Paginator::previousPageUrl() ?>" tabindex="-1">◀ <?php echo $L->get('Previous'); ?></a>
|
2018-03-08 19:13:28 +01:00
|
|
|
</li>
|
2019-06-21 10:24:37 +02:00
|
|
|
<?php endif; ?>
|
2018-01-27 20:34:26 +01:00
|
|
|
|
2018-07-20 18:36:47 +02:00
|
|
|
<!-- Home button -->
|
2019-06-21 10:24:37 +02:00
|
|
|
<li class="page-item <?php if (Paginator::currentPage()==1) echo 'disabled' ?>">
|
|
|
|
<a class="page-link" href="<?php echo Theme::siteUrl() ?>"><?php echo $L->get('Home'); ?></a>
|
2018-03-08 19:13:28 +01:00
|
|
|
</li>
|
2018-01-27 20:34:26 +01:00
|
|
|
|
2018-03-08 19:13:28 +01:00
|
|
|
<!-- Next button -->
|
2019-06-21 10:24:37 +02:00
|
|
|
<?php if (Paginator::showNext()): ?>
|
|
|
|
<li class="page-item ml-2">
|
2018-08-05 17:54:20 +02:00
|
|
|
<a class="page-link" href="<?php echo Paginator::nextPageUrl() ?>"><?php echo $L->get('Next'); ?> ►</a>
|
2018-03-08 19:13:28 +01:00
|
|
|
</li>
|
2019-06-21 10:24:37 +02:00
|
|
|
<?php endif; ?>
|
2018-03-08 19:13:28 +01:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2018-02-24 22:39:39 +01:00
|
|
|
<?php endif ?>
|