2015-07-20 05:14:12 +02:00
|
|
|
<h1 class="subhead"><?php echo $Language->get('Recent posts') ?></h1>
|
2015-03-08 18:02:59 +01:00
|
|
|
|
|
|
|
<?php foreach ($posts as $Post): ?>
|
|
|
|
|
|
|
|
<section class="post">
|
2015-07-07 06:24:51 +02:00
|
|
|
|
|
|
|
<!-- Post header -->
|
2015-03-08 18:02:59 +01:00
|
|
|
<header class="post-header">
|
2015-07-07 06:24:51 +02:00
|
|
|
|
|
|
|
<!-- Post title -->
|
2015-03-08 18:02:59 +01:00
|
|
|
<h2 class="post-title">
|
2015-07-07 06:24:51 +02:00
|
|
|
<a href="<?php echo $Post->permalink() ?>"><?php echo $Post->title() ?></a>
|
2015-03-08 18:02:59 +01:00
|
|
|
</h2>
|
|
|
|
|
2015-07-07 06:24:51 +02:00
|
|
|
<!-- Post date and author -->
|
|
|
|
<div class="post-meta">
|
|
|
|
<span class="date"><?php echo $Post->dateCreated() ?></span>
|
|
|
|
<span class="author">
|
|
|
|
<?php
|
|
|
|
echo $Language->get('Posted By').' ';
|
|
|
|
|
|
|
|
if( Text::isNotEmpty($Post->authorFirstName()) && Text::isNotEmpty($Post->authorLastName()) ) {
|
|
|
|
echo $Post->authorFirstName().', '.$Post->authorLastName();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo $Post->username();
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2015-03-08 18:02:59 +01:00
|
|
|
</header>
|
|
|
|
|
2015-07-07 06:24:51 +02:00
|
|
|
<!-- Post content -->
|
|
|
|
<div class="post-content">
|
2015-07-14 04:16:28 +02:00
|
|
|
<?php echo $Post->content(false) // FALSE to get the first part of the post ?>
|
2015-03-08 18:02:59 +01:00
|
|
|
</div>
|
2015-07-07 06:24:51 +02:00
|
|
|
|
2015-07-24 05:28:25 +02:00
|
|
|
<a class="read-more" href="<?php echo $Post->permalink() ?>"><?php $Language->printMe('Read more') ?></a>
|
|
|
|
|
2015-03-08 18:02:59 +01:00
|
|
|
</section>
|
|
|
|
|
2015-07-20 05:14:12 +02:00
|
|
|
<?php endforeach; ?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
echo Paginator::html();
|
|
|
|
?>
|