2014-01-18 13:35:29 +00:00
|
|
|
{if marked_spammed($comment)}
|
|
|
|
{assign var='comment_attr' value='style="display:none"'}
|
|
|
|
{assign var='spam_attr' value='style="display:block"'}
|
|
|
|
{else}
|
|
|
|
{assign var='comment_attr' value=''}
|
|
|
|
{assign var='spam_attr' value='style="display:none"'}
|
|
|
|
{/if}
|
2014-03-26 14:03:50 +00:00
|
|
|
<!--<li>
|
2014-02-05 12:26:01 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-11">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-2">
|
|
|
|
{$user_link='#'}
|
|
|
|
{if $comment.username}{$user_link=$userquery->profile_link($comment)}{/if}
|
|
|
|
<a href="{$user_link}">
|
|
|
|
<img class="img-thumbnail" src="http://lorempixel.com/output/people-q-c-40-40-7.jpg" alt="">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-10">
|
|
|
|
<a class="commentorName" href="{$user_link}">{name($comment)}</a>
|
|
|
|
<p>{$comment.comment|comment}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-26 14:03:50 +00:00
|
|
|
|
|
|
|
</li>-->
|
|
|
|
<div class="itemdiv dialogdiv">
|
|
|
|
{*$comment|print_r*}
|
|
|
|
<div class="user">
|
|
|
|
{$user_link='#'}
|
|
|
|
{if $comment.username}{$user_link=$userquery->profile_link($comment)}{/if}
|
|
|
|
<a href="{$user_link}">
|
2014-03-27 14:10:45 +00:00
|
|
|
<img src="{$userquery->avatar($video)}" class="img-circle" />
|
2014-03-26 14:03:50 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="body">
|
|
|
|
<div class="time">
|
|
|
|
<i class="glyphicon glyphicon-time"></i>
|
|
|
|
<span class="small">{$comment.date_added|niceTime}</span>
|
|
|
|
</div>
|
|
|
|
<div class="name">
|
|
|
|
<a class="commentorName" href="{$user_link}">{name($comment)}</a>
|
|
|
|
</div>
|
|
|
|
<div class="text">{$comment.comment|comment}</div>
|
|
|
|
<div class="tools blue">
|
|
|
|
<a class="btn btn-minier btn-info" href="#">
|
|
|
|
<i class="glyphicon glyphicon-share-alt"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-05 12:26:01 +00:00
|
|
|
{*
|
2014-01-18 13:35:29 +00:00
|
|
|
|
|
|
|
<div id="comment_{$comment.comment_id}" class="cb-item-comment" {$comment_attr}>
|
|
|
|
<img src="{$userquery->getuserthumb($comment)}" class="img-circle cb-comment-author-img" />
|
|
|
|
<div class="cb-comment-author">
|
|
|
|
{$user_link=''}
|
|
|
|
{if $comment.username}{$user_link=$userquery->profile_link($comment)}{/if}
|
|
|
|
|
|
|
|
<a href="{$user_link}">{name($comment)}</a> <span class="cb-comment-date"> – {nicetime($comment.date_added)}</span>
|
|
|
|
|
|
|
|
|
|
|
|
{if $type=='video' && $comments_voting=='yes' && $Cbucket->configs.comment_rating}
|
|
|
|
<div class="cb-comment-rating-cont">
|
|
|
|
<span class="comment-rating" id="comment_rating_{$comment.comment_id}" >{$comment.vote|comment_rating}</span>
|
|
|
|
<span class="comment-like" onclick="rate_comment('{$comment.comment_id}','up','{$type}','{$type_id}')">{lang('Like')}</span>
|
|
|
|
<span class="comment-dislike" onclick="rate_comment('{$comment.comment_id}','down','{$type}','{$type_id}')">{lang('Unlike')}</span>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="cb-comment-text">
|
|
|
|
|
|
|
|
{if $comment.parent_id}
|
|
|
|
{assign var=parentid value=$comment.parent_id}
|
|
|
|
{assign var=thisParent value=$parents.$parentid}
|
|
|
|
|
|
|
|
{if $thisParent}
|
|
|
|
<blockquote>
|
|
|
|
{$thisParent.comment|comment}
|
|
|
|
{if $thisParent.username}<small>{name($thisParent)}</small>{/if}
|
|
|
|
</blockquote>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{$comment.comment|comment}
|
|
|
|
</div>
|
|
|
|
<div class="cb-comment-actions">
|
|
|
|
{if has_access('admin_del_access') || $comment.userid==userid() || $comment.type_owner_id==userid()}
|
|
|
|
<a href="javascript:void(0)" onclick="delete_comment('{$comment.comment_id}','{$type}','{$type_id}')">{lang('Delete')}</a>
|
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
<a href="javascript:void(0)" onclick="to_reply('{$comment.comment_id}')">{lang code='reply'}</a> | <a href="javascript:void(0)" onclick="spam_comment('{$comment.comment_id}','{$type}','{$type_id}')">{lang code='spam'}</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="spam_comment_{$comment.comment_id}" class="spam mtm mbm" {$spam_attr} >
|
|
|
|
{$marked_as_spam_comment_by_user=lang('marked_as_spam_comment_by_user')}
|
|
|
|
|
|
|
|
{if $comment.username}
|
|
|
|
{$marked_as_spam_comment_by_user|sprintf:$comment.username}
|
|
|
|
{else}
|
|
|
|
{$marked_as_spam_comment_by_user|sprintf:$comment.anonym_name}
|
|
|
|
{/if}
|
|
|
|
{if has_access('admin_del_access') || $comment.userid==userid() || $comment.type_owner_id==userid()}
|
|
|
|
| <a href="javascript:void(0)" onclick="delete_comment('{$comment.comment_id}')">{lang code='delete'}</a>
|
|
|
|
{/if}
|
2014-02-05 12:26:01 +00:00
|
|
|
</div>
|
|
|
|
*}
|