<?php
    $hl = new Fiktiv_Highlighter();
    $hl->setHighlighter('geshi');
?>

<?php if (isset($this->post)): ?>

<a href="<?=$this->url(array('action' => 'latest', 'id' => ''), '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; ?>