Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fiktivkod/application/modules/blog/views/scripts/index/latest.phtml
2010-10-03 01:38:49 +02:00

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; ?>