1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00
ifhub.club/templates/skin/new/comment_list.tpl

43 lines
2.3 KiB
Smarty
Raw Normal View History

2009-01-18 17:57:48 +02:00
{foreach from=$aComments item=oComment}
2009-06-23 20:06:19 +03:00
{assign var="oUser" value=$oComment->getUser()}
{assign var="oTopic" value=$oComment->getTarget()}
{assign var="oBlog" value=$oTopic->getBlog()}
2009-03-11 04:26:59 +02:00
<div class="comments padding-none">
<div class="comment">
2009-06-23 20:06:19 +03:00
<div class="comment-topic"><a href="{$oTopic->getUrl()}">{$oTopic->getTitle()|escape:'html'}</a> / <a href="{$oBlog->getUrlFull()}" class="comment-blog">{$oBlog->getTitle()|escape:'html'}</a> <a href="{$oTopic->getUrl()}#comments" class="comment-total">{$oTopic->getCountComment()}</a></div>
2009-01-18 17:57:48 +02:00
<div class="voting {if $oComment->getRating()>0}positive{elseif $oComment->getRating()<0}negative{/if}">
<div class="total">{if $oComment->getRating()>0}+{/if}{$oComment->getRating()}</div>
</div>
2009-01-18 17:57:48 +02:00
<div class="content">
<div class="tb"><div class="tl"><div class="tr"></div></div></div>
<div class="text">
{if $oComment->isBad()}
<div style="display: none;" id="comment_text_{$oComment->getId()}">
{$oComment->getText()}
</div>
2009-04-05 16:56:18 +03:00
<a href="#" onclick="$('comment_text_{$oComment->getId()}').setStyle('display','block');$(this).setStyle('display','none');return false;">{$aLang.comment_bad_open}</a>
2009-01-18 17:57:48 +02:00
{else}
{$oComment->getText()}
{/if}
</div>
<div class="bl"><div class="bb"><div class="br"></div></div></div>
</div>
<div class="info">
2009-06-27 18:05:17 +03:00
<a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(24)}" alt="avatar" class="avatar" /></a>
<p><a href="{$oUser->getUserWebPath()}" class="author">{$oUser->getLogin()}</a></p>
2009-01-18 17:57:48 +02:00
<ul>
<li class="date">{date_format date=$oComment->getDate()}</li>
<li><a href="{if $oConfig->GetValue('module.comment.nested_per_page')}{router page='comments'}{else}{$oTopic->getUrl()}#comment{/if}{$oComment->getId()}" class="imglink link"></a></li>
{if $oUserCurrent}
<li class="favorite {if $oComment->getIsFavourite()}active{/if}"><a href="#" onclick="lsFavourite.toggle({$oComment->getId()},this,'comment'); return false;"></a></li>
{/if}
2009-01-18 17:57:48 +02:00
</ul>
2009-01-18 17:57:48 +02:00
</div>
</div>
</div>
{/foreach}
{include file='paging.tpl' aPaging=$aPaging}