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-11-25 12:35:14 +01:00
|
|
|
<iframe width="<?php echo $post->image_width ?>" height="<?php echo $post->image_height ?>" 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): ?>
|
|
|
|
|
|
|
|
<iframe width="800" height="600" src="//www.youtube.com/embed/<?php echo $post->orig_name ?>" frameborder="0" allowfullscreen></iframe>
|
|
|
|
|
|
|
|
<?php endif ?>
|