24 lines
No EOL
753 B
PHTML
24 lines
No EOL
753 B
PHTML
<h1><?=$this->translate('u:blog') ?></h1>
|
|
|
|
<p><?=$this->translate('BLOG_LATEST_INTRO') ?></p>
|
|
|
|
|
|
<?php
|
|
$postCount = count($this->posts);
|
|
for ($i = 0; $i < $postCount; $i++):
|
|
|
|
$post = $this->posts[$i];
|
|
?>
|
|
|
|
<div class="blogpost">
|
|
<h3><a href="<?=$this->url(array('action' => 'read','id' => $post->getId()),'blog-default') ?>"><?=$post->getTitle() ?></a></h3>
|
|
<div class="publish"><?=$post->getPubDate()->toString('yyyy-MM-dd').' at '.$post->getPubDate()->toString('HH:mm').' '.$post->getAuthor()->getFirstName() ?></div>
|
|
<div class="content"><?=$post->getContent() ?></div>
|
|
<div class="tags"><?=join(', ',$post->getTags()) ?></div>
|
|
</div>
|
|
|
|
<?php if ($i+1 != $postCount): ?>
|
|
<div class="line"></div>
|
|
<?php endif; ?>
|
|
|
|
<?php endfor; ?> |