View file template/m/comment.tpl

File size: 2.38Kb
{if $tinf.userid}
<div class="comment"><b><a href="{$selfurl}?ac=prf&amp;id={$tinf.userid}&amp;sid={$sid}">{$tinf.username}</a>
{if $tinf.shrid}</b> via <b><a href="{$selfurl}?ac=prf&amp;id={$tinf.suserid}&amp;sid={$sid}">{$tinf.suser}</a>{/if}
{if $tinf.grid}</b> &#187; <b><a href="{$selfurl}?ac=gop&amp;id={$tinf.grid}&amp;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> &nbsp; 
<a href="{$selfurl}?ac=lke&amp;wid={$stid}&amp;sid={$sid}">{if $tinf.ulike > 0}{lng p="unlike"}{else}{lng p="like"}{/if}</a>   &nbsp; 
{if $tinf.userid != $userlog.id}<a href="{$selfurl}?ac=sae&amp;stid={$stid}&amp;sid={$sid}">Share</a> &nbsp; {/if}
<a href="{$selfurl}?ac=lke&amp;cid={$comID}&amp;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&amp;id={$lke.userid}&amp;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&amp;stid={$stid}&amp;pg={$newer}&amp;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&amp;id={$co.userid}&amp;sid={$sid}">{$co.username}</a> 
{$co.message}<br/>
<span style="color: #8f8f8f;">{$co.dtm} ago</span> &nbsp; <a href="{$selfurl}?ac=lke&amp;stid={$stid}&amp;cid={$comID}&amp;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&amp;stid={$stid}&amp;pg={$older}&amp;sid={$sid}">{lng p="view"} {lng p="next"} {lng p="comments"}</a>
</div>
{/if}
<form action="{$selfurl}?ac=cmt&amp;stid={$stid}&amp;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}