mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 16:04:24 +03:00
33 lines
1.6 KiB
Smarty
33 lines
1.6 KiB
Smarty
{**
|
|
* Прямой эфир
|
|
* Топики отсортированные по времени последнего комментария
|
|
*
|
|
* @styles css/blocks.css
|
|
*}
|
|
|
|
<div class="block-content">
|
|
<ul class="item-list">
|
|
{foreach from=$aComments item=oComment name="cmt"}
|
|
{assign var="oUser" value=$oComment->getUser()}
|
|
{assign var="oTopic" value=$oComment->getTarget()}
|
|
{assign var="oBlog" value=$oTopic->getBlog()}
|
|
|
|
<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>
|
|
|
|
<a href="{$oUser->getUserWebPath()}" class="author">{$oUser->getLogin()}</a> →
|
|
<a href="{$oBlog->getUrlFull()}" class="blog-name">{$oBlog->getTitle()|escape:'html'}</a> →
|
|
<a href="{if $oConfig->GetValue('module.comment.nested_per_page')}{router page='comments'}{else}{$oTopic->getUrl()}#comment{/if}{$oComment->getId()}">{$oTopic->getTitle()|escape:'html'}</a>
|
|
|
|
<p>
|
|
<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> |
|
|
{$oTopic->getCountComment()} {$oTopic->getCountComment()|declension:$aLang.comment_declension:'russian'}
|
|
</p>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
|
|
<footer class="block-footer">
|
|
<a href="{router page='comments'}">{$aLang.block_stream_comments_all}</a> | <a href="{router page='rss'}allcomments/">RSS</a>
|
|
</footer> |