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 $oTopics as $oTopic}
|
2013-07-31 09:33:59 +03:00
|
|
|
{$oUser = $oTopic->getUser()}
|
2013-07-10 11:36:21 +03:00
|
|
|
{$oBlog = $oTopic->getBlog()}
|
2013-07-31 09:33:59 +03:00
|
|
|
|
2013-05-04 17:10:22 +03:00
|
|
|
<li class="js-title-topic" title="{$oTopic->getText()|strip_tags|trim|truncate:150:'...'|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> →
|
|
|
|
<a href="{$oTopic->getUrl()}">{$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=$oTopic->getDate() format='c'}">
|
|
|
|
{date_format date=$oTopic->getDateAdd() 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>
|
2013-07-31 09:33:59 +03:00
|
|
|
</li>
|
|
|
|
{/foreach}
|
2013-05-04 17:10:22 +03:00
|
|
|
</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'}new/">RSS</a>
|
2013-05-04 17:10:22 +03:00
|
|
|
</footer>
|