2014-02-01 11:17:02 +01:00
|
|
|
<?php LayoutHelper::setPageThumb(\Chibi\UrlHelper::route('post', 'thumb', ['name' => $this->context->transport->post->name])) ?>
|
2013-11-23 00:11:06 +01:00
|
|
|
<?php $post = $this->context->transport->post ?>
|
|
|
|
|
|
|
|
<?php if ($post->type == PostType::Image): ?>
|
|
|
|
|
|
|
|
<?php if (!empty($this->context->imageLink)): ?>
|
|
|
|
<a href="<?php echo $this->context->imageLink ?>">
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<img src="<?php echo \Chibi\UrlHelper::route('post', 'retrieve', ['name' => $post->name]) ?>" alt="<?php echo $post->name ?>"/>
|
|
|
|
|
|
|
|
<?php if (!empty($this->context->imageLink)): ?>
|
|
|
|
</a>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php elseif ($post->type == PostType::Flash): ?>
|
|
|
|
|
2013-12-18 15:10:53 +01:00
|
|
|
<iframe width="<?php echo $post->imageWidth ?>" height="<?php echo $post->imageHeight ?>" src="<?php echo \Chibi\UrlHelper::route('post', 'retrieve', ['name' => $post->name]) ?>"> </iframe>
|
2013-11-23 00:11:06 +01:00
|
|
|
|
|
|
|
<?php elseif ($post->type == PostType::Youtube): ?>
|
|
|
|
|
2013-12-18 15:10:53 +01:00
|
|
|
<iframe style="width: 800px; height: 600px; border: 0;" src="//www.youtube.com/embed/<?php echo $post->origName ?>" allowfullscreen></iframe>
|
2013-11-23 00:11:06 +01:00
|
|
|
|
|
|
|
<?php endif ?>
|