2014-02-01 11:17:02 +01:00
|
|
|
<?php
|
2014-04-29 21:35:29 +02:00
|
|
|
Assets::addStylesheet('post-list.css');
|
|
|
|
Assets::addScript('post-list.js');
|
2014-02-01 11:17:02 +01:00
|
|
|
?>
|
|
|
|
|
2014-04-27 15:59:29 +02:00
|
|
|
<?php if (isset($this->context->source)
|
|
|
|
and $this->context->source == 'mass-tag'
|
|
|
|
and PrivilegesHelper::confirm(Privilege::MassTag)): ?>
|
|
|
|
|
2014-04-29 21:35:29 +02:00
|
|
|
<?php \Chibi\View::render('tag-mass-tag', $this->context) ?>
|
2014-04-27 15:59:29 +02:00
|
|
|
|
2013-10-29 09:04:42 +01:00
|
|
|
<?php endif ?>
|
|
|
|
|
2014-02-20 19:06:06 +01:00
|
|
|
|
|
|
|
<?php if (!empty($this->context->transport->message)): ?>
|
2014-04-29 21:35:29 +02:00
|
|
|
<?php \Chibi\View::render('message', $this->context) ?>
|
2014-02-20 19:06:06 +01:00
|
|
|
<?php elseif (empty($this->context->transport->posts)): ?>
|
2013-10-09 12:19:42 +02:00
|
|
|
<p class="alert alert-warning">No posts to show.</p>
|
2013-10-07 23:17:33 +02:00
|
|
|
<?php else: ?>
|
2013-10-19 20:05:03 +02:00
|
|
|
<div class="posts-wrapper">
|
|
|
|
<div class="posts paginator-content">
|
|
|
|
<?php foreach ($this->context->transport->posts as $post): ?>
|
|
|
|
<?php $this->context->post = $post ?>
|
2014-04-29 21:35:29 +02:00
|
|
|
<?php \Chibi\View::render('post-small', $this->context) ?>
|
2013-10-19 20:05:03 +02:00
|
|
|
<?php endforeach ?>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
2013-10-09 12:18:22 +02:00
|
|
|
</div>
|
2013-10-13 22:09:52 +02:00
|
|
|
|
2014-04-29 21:35:29 +02:00
|
|
|
<?php \Chibi\View::render('paginator', $this->context) ?>
|
2013-10-13 22:09:52 +02:00
|
|
|
<?php endif ?>
|