28 lines
685 B
PHP
28 lines
685 B
PHP
<h1 class="content-subhead">Recent Posts</h1>
|
|
|
|
<?php foreach ($posts as $Post): ?>
|
|
|
|
<section class="post">
|
|
<header class="post-header">
|
|
<h2 class="post-title">
|
|
<a class="ptitle" href="<?php echo $Post->permalink() ?>"><?php echo $Post->title() ?></a>
|
|
</h2>
|
|
|
|
<p class="post-meta">
|
|
<span><?php
|
|
|
|
if( Text::isNotEmpty($Post->author()) ) {
|
|
echo $Post->author();
|
|
}
|
|
|
|
?></span>
|
|
<span>Date: <?php echo $Post->dateCreated() ?></span>
|
|
</p>
|
|
</header>
|
|
|
|
<div class="post-description">
|
|
<?php echo $Post->content() ?>
|
|
</div>
|
|
</section>
|
|
|
|
<?php endforeach; ?>
|