File size: 2.38Kb
{if $tinf.userid}
<div class="comment"><b><a href="{$selfurl}?ac=prf&id={$tinf.userid}&sid={$sid}">{$tinf.username}</a>
{if $tinf.shrid}</b> via <b><a href="{$selfurl}?ac=prf&id={$tinf.suserid}&sid={$sid}">{$tinf.suser}</a>{/if}
{if $tinf.grid}</b> » <b><a href="{$selfurl}?ac=gop&id={$tinf.grid}&sid={$sid}">{$tinf.grname}</a>{/if}</b><br/>
{$tinf.message}<br/>
{if $tinf.shrid}
<span style="color: #FF8040;">
{$tinf.smessage}
</span>
{/if}
</div>
<div class="shader">
<span style="color: #8f8f8f;">{$tinf.dtm} ago</span>
<a href="{$selfurl}?ac=lke&wid={$stid}&sid={$sid}">{if $tinf.ulike > 0}{lng p="unlike"}{else}{lng p="like"}{/if}</a>
{if $tinf.userid != $userlog.id}<a href="{$selfurl}?ac=sae&stid={$stid}&sid={$sid}">Share</a> {/if}
<a href="{$selfurl}?ac=lke&cid={$comID}&sid={$sid}">Report</a> </div>
{if $lk}
<div class="shade">
{foreach from=$like item=lke key=lkeID}
{if $userlog.id == $lke.userid}You{else}<a href="{$selfurl}?ac=prf&id={$lke.userid}&sid={$sid}">{$lke.name}</a>{/if}
{if $lke.amount == 1} {lng p="and"} {/if}{if $lke.amount == 2}, {/if}
{if $lke.amount > 2} {lng p="and"} <a href="">{$lke.amoun} {lng p="others"}</a>{/if}
{/foreach} {lng p="like_this"}.
</div>
{/if}
{if $newer}
<div class="shader">
<a href="{$selfurl}?ac=cmt&stid={$stid}&pg={$newer}&sid={$sid}">{lng p="view"} {lng p="previous"} {lng p="comments"}</a>
</div>
{/if}
{foreach from=$comment item=co key=comID}
<div class="blank">
<a href="{$selfurl}?ac=prf&id={$co.userid}&sid={$sid}">{$co.username}</a>
{$co.message}<br/>
<span style="color: #8f8f8f;">{$co.dtm} ago</span> <a href="{$selfurl}?ac=lke&stid={$stid}&cid={$comID}&sid={$sid}">{if $co.ulike > 0}{lng p="unlike"}{else}{lng p="like"}{/if}</a>
</div>
<hr/>
{/foreach}
{if $older}
<div class="shader">
<a href="{$selfurl}?ac=cmt&stid={$stid}&pg={$older}&sid={$sid}">{lng p="view"} {lng p="next"} {lng p="comments"}</a>
</div>
{/if}
<form action="{$selfurl}?ac=cmt&stid={$stid}&sid={$sid}" method="post">
<div class="shade">
{lng p="write_comment"}...<br/>
<textarea name="comment" cols="30" rows="2"></textarea>
<input type="submit" class="login" style="vertical-align: top;" value="{lng p="comment"}"/>
</div>
</form>
{else}
<div class="error">
Post doesn't exist
</div>
{/if}