2017-05-24 23:15:23 +02:00
|
|
|
<!-- First page -->
|
|
|
|
<?php $firstPage = array_shift($pages) ?>
|
|
|
|
|
|
|
|
<section id="banner">
|
|
|
|
<div class="content">
|
|
|
|
<header>
|
|
|
|
<h1><?php echo $firstPage->title() ?></h1>
|
2017-11-05 14:22:29 +01:00
|
|
|
<p><?php echo $firstPage->description() ?></p>
|
|
|
|
</header>
|
2017-11-04 14:07:15 +01:00
|
|
|
|
2017-11-05 14:22:29 +01:00
|
|
|
<p><?php echo $page->content(false) ?></p>
|
2017-11-04 14:07:15 +01:00
|
|
|
|
2017-11-05 14:22:29 +01:00
|
|
|
<!-- Read more button -->
|
|
|
|
<?php if($page->readMore()) { ?>
|
|
|
|
<ul class="actions">
|
|
|
|
<li><a href="<?php echo $page->permalink() ?>" class="button"><?php $Language->p('More') ?></a></li>
|
|
|
|
</ul>
|
|
|
|
<?php } ?>
|
2017-11-04 14:07:15 +01:00
|
|
|
|
2017-05-24 23:15:23 +02:00
|
|
|
</div>
|
|
|
|
<span class="image object">
|
|
|
|
<img src="<?php echo $firstPage->coverImage() ?>" alt="" />
|
|
|
|
</span>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Section -->
|
|
|
|
<section>
|
|
|
|
<div class="posts">
|
|
|
|
<?php foreach ($pages as $page): ?>
|
|
|
|
<article>
|
2017-08-02 01:11:57 +02:00
|
|
|
<a href="<?php echo $page->permalink() ?>" class="image"><img src="<?php echo $page->coverImage() ?>" alt="" /></a>
|
2017-05-24 23:15:23 +02:00
|
|
|
<h3><?php echo $page->title() ?></h3>
|
2017-11-04 14:07:15 +01:00
|
|
|
|
2017-11-05 14:22:29 +01:00
|
|
|
<p><?php echo $page->content(false) ?></p>
|
2017-11-04 14:07:15 +01:00
|
|
|
|
2017-11-05 14:22:29 +01:00
|
|
|
<!-- Read more button -->
|
|
|
|
<?php if($page->readMore()) { ?>
|
|
|
|
<ul class="actions">
|
|
|
|
<li><a href="<?php echo $page->permalink() ?>" class="button"><?php $Language->p('More') ?></a></li>
|
|
|
|
</ul>
|
|
|
|
<?php } ?>
|
2017-11-04 14:07:15 +01:00
|
|
|
|
2017-05-24 23:15:23 +02:00
|
|
|
</article>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</div>
|
|
|
|
</section>
|