2013-05-04 17:10:22 +03:00
|
|
|
{**
|
|
|
|
* Прямой эфир
|
|
|
|
* Топики отсортированные по времени последнего комментария
|
|
|
|
*
|
|
|
|
* @styles css/blocks.css
|
|
|
|
*}
|
2011-04-01 10:49:36 +03:00
|
|
|
|
2013-05-04 17:10:22 +03:00
|
|
|
<div class="block-content">
|
|
|
|
<ul class="item-list">
|
2013-07-10 11:36:21 +03:00
|
|
|
{foreach $aComments as $oComment}
|
|
|
|
{$oUser = $oComment->getUser()}
|
|
|
|
{$oTopic = $oComment->getTarget()}
|
|
|
|
{$oBlog = $oTopic->getBlog()}
|
2013-07-31 09:33:59 +03:00
|
|
|
|
2013-05-04 17:10:22 +03:00
|
|
|
<li class="js-title-comment" title="{$oComment->getText()|strip_tags|trim|truncate:100:'...'|escape:'html'}">
|
|
|
|
<a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(48)}" alt="avatar" class="avatar" /></a>
|
2013-07-31 09:33:59 +03:00
|
|
|
|
2013-10-23 10:02:40 +03:00
|
|
|
<a href="{$oUser->getUserWebPath()}" class="author">{$oUser->getDisplayName()}</a> →
|
2013-05-04 17:10:22 +03:00
|
|
|
<a href="{$oBlog->getUrlFull()}" class="blog-name">{$oBlog->getTitle()|escape:'html'}</a> →
|
2014-05-19 09:53:43 +03:00
|
|
|
<a href="{if Config::Get('module.comment.nested_per_page')}{router page='comments'}{else}{$oTopic->getUrl()}#comment{/if}{$oComment->getId()}">{$oTopic->getTitle()|escape:'html'}</a>
|
2013-07-31 09:33:59 +03:00
|
|
|
|
2013-05-04 17:10:22 +03:00
|
|
|
<p>
|
2014-06-11 11:58:32 +03:00
|
|
|
<time datetime="{date_format date=$oComment->getDate() format='c'}">
|
|
|
|
{date_format date=$oComment->getDate() hours_back="12" minutes_back="60" now="60" day="day H:i" format="j F Y, H:i"}
|
|
|
|
</time> |
|
|
|
|
|
|
|
|
{lang name='comments.comments_declension' count=$oTopic->getCountComment() plural=true}
|
2013-05-04 17:10:22 +03:00
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2011-04-01 10:49:36 +03:00
|
|
|
|
2013-05-04 17:10:22 +03:00
|
|
|
<footer class="block-footer">
|
2014-06-11 11:58:32 +03:00
|
|
|
<a href="{router page='rss'}allcomments/">RSS</a>
|
2012-03-07 18:48:14 +02:00
|
|
|
</footer>
|