forked from livestreet/lstemplate-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
block.stream_topic.tpl
20 lines (17 loc) · 986 Bytes
/
block.stream_topic.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<ul class="list">
{foreach from=$oTopics item=oTopic name="cmt"}
{assign var="oUser" value=$oTopic->getUser()}
{assign var="oBlog" value=$oTopic->getBlog()}
<li {if $smarty.foreach.cmt.iteration == 1}style="border-top:0px"{/if}>
<a href="{$oUser->getUserWebPath()}" title="{$oUser->getLogin()}"><img src="{$oUser->getProfileAvatarPath(48)}" class="avatar" alt="avatar" /></a>
<div class="information">
<a href="{$oTopic->getUrl()}#comment" class="stream-comment-icon">{$oTopic->getCountComment()}</a>
<a href="{$oUser->getUserWebPath()}" class="user">{$oUser->getLogin()}</a><span class="date">{date_format date=$oTopic->getDate() format="d.m.Y"}</span><br />
<a href="{$oTopic->getUrl()}" class="topic-title">{$oTopic->getTitle()|escape:'html'}</a>
</div>
</li>
{/foreach}
</ul>
<div class="bottom">
<a href="{router page='new'}">{$aLang.block_stream_topics_all}</a>
</div>