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/read.phtml
2014-12-28 18:44:00 +01:00

16 lines
No EOL
643 B
PHTML

<?php
$hl = new Fiktiv_Highlighter();
$hl->setHighlighter('geshi');
?>
<?php if (isset($this->post)): ?>
<a href="<?=$this->url(array('action' => 'latest', 'permlink' => ''), 'blog-default') ?>">« <?=$this->translate('u:back') ?></a>
<div class="blogpost">
<h1><?=$this->post->title ?></h1>
<p class="publish"><?=$this->post->getPubDate()->toString('yyyy-MM-dd').' '.$this->translate('TIME_AT').' '.$this->post->getPubDate()->toString('HH:mm').' '.$this->translate('by').' '.$this->post->getAuthor()->firstName ?></p>
<div class="content"><?= $hl->replaceCodeblock($this->post->content) ?></div>
</div>
<?php endif; ?>