2015-07-07 00:22:03 +02:00
|
|
|
<h1 class="subhead">Recent Posts</h1>
|
|
|
|
|
|
|
|
<?php foreach ($posts as $Post): ?>
|
|
|
|
|
|
|
|
<section class="post">
|
2015-07-07 03:05:17 +02:00
|
|
|
|
|
|
|
<!-- Post header -->
|
2015-07-07 00:22:03 +02:00
|
|
|
<header class="post-header">
|
2015-07-07 03:05:17 +02:00
|
|
|
|
|
|
|
<!-- Post title -->
|
2015-07-07 00:22:03 +02:00
|
|
|
<h2 class="post-title">
|
|
|
|
<a href="<?php echo $Post->permalink() ?>"><?php echo $Post->title() ?></a>
|
|
|
|
</h2>
|
|
|
|
|
2015-07-07 03:05:17 +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-07-07 00:22:03 +02:00
|
|
|
</header>
|
|
|
|
|
2015-07-07 03:05:17 +02:00
|
|
|
<!-- Post content -->
|
|
|
|
<div class="post-content">
|
2015-07-07 00:22:03 +02:00
|
|
|
<?php echo $Post->content() ?>
|
|
|
|
</div>
|
2015-07-07 03:05:17 +02:00
|
|
|
|
2015-07-07 00:22:03 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<?php endforeach; ?>
|