2013-10-07 20:45:09 +02:00
|
|
|
<?php if (!empty($this->context->transport->errorMessage)): ?>
|
|
|
|
<p class="alert alert-error"><?php echo $this->context->transport->errorMessage ?></p>
|
|
|
|
<?php else: ?>
|
2013-10-09 21:58:57 +02:00
|
|
|
<div class="post-wrapper">
|
|
|
|
<?php if ($this->context->transport->post->type == PostType::Image): ?>
|
|
|
|
<img src="<?php echo \Chibi\UrlHelper::route('post', 'retrieve', ['name' => $this->context->transport->post->name]) ?>" alt="<?php echo $this->context->transport->post->name ?>"/>
|
|
|
|
<?php elseif ($this->context->transport->post->type == PostType::Flash): ?>
|
|
|
|
<embed type="application/x-shockwave-flash" src="<?php echo \Chibi\UrlHelper::route('post', 'retrieve', ['name' => $this->context->transport->post->name]) ?>"/>
|
|
|
|
<?php endif ?>
|
|
|
|
</div>
|
2013-10-07 20:45:09 +02:00
|
|
|
<?php endif ?>
|