e1acb8bd99
- Entity of user currently logged in is kept serialized in session - Post is retrieved only if necessary in thumbnail generator
9 lines
641 B
PHTML
9 lines
641 B
PHTML
<div class="post post-type-<?php echo TextHelper::camelCaseToHumanCase(PostType::toString($this->context->post->type)) ?>">
|
|
<a href="<?php echo \Chibi\UrlHelper::route('post', 'view', ['id' => $this->context->post->id]) ?>">
|
|
<img class="thumb" src="<?php echo \Chibi\UrlHelper::route('post', 'thumb', ['name' => $this->context->post->name]) ?>" alt="@<?php echo $this->context->post->id ?>"/>
|
|
</a>
|
|
<div class="info-bar">
|
|
<i class="icon-comments"></i> <span><?php echo $this->context->post->countOwn('comment') ?></span>
|
|
<i class="icon-favs"></i> <span><?php echo $this->context->post->countOwn('favoritee') ?></span>
|
|
</div>
|
|
</div>
|