This commit is contained in:
Fahad Abbas 2014-07-04 03:51:12 +00:00
parent 3b23753f68
commit ec46264de9
2 changed files with 36 additions and 6 deletions

View file

@ -1,6 +1,9 @@
{if $userquery->login_check('',true) || $Cbucket->configs.anonym_comments == 'yes'}
<div class="add_comment_box" id="add_comment"> </div>
<div class="">
<div id="comment-add-err"></div>
<form class="" id="comment_form" >
<input type="hidden" name="reply_to" id="reply_to" value="0">
@ -55,7 +58,9 @@
{lang code='Your comment'}
</label>
{/if}
<textarea name="comment" id="comment_text" class="form-control clearfix comment_text_new"></textarea>
</div>
<div class="form-group clearfix">
<button data-loading-text="Loading..." type="button" class="hidden-xs hidden-sm btn btn-primary pull-right" id="addCommentButton">{lang('Comment')}</button>
@ -116,6 +121,8 @@ btn.button('loading');
</div>
</form>
<div id="add_comment_result" class="add_comment_result mtm mbm" style="display:none"></div>
{else}

View file

@ -26,6 +26,8 @@
</li> *}
{if $comment}
<div class="itemdiv dialogdiv">
{*$comment|print_r*}
@ -33,7 +35,8 @@
{$user_link='#'}
{if $comment.username}{$user_link=$userquery->profile_link($comment)}{/if}
<a href="{$user_link}">
<img src="{$userquery->avatar($video)}" class="img-circle" />
<img src="{$userquery->getuserthumb($comment)}" class="img-circle" />
</a>
</div>
<div class="body">
@ -44,17 +47,37 @@
<div class="name">
<a class="commentorName" href="{$user_link}">{name($comment)}</a>
</div>
<div class="text">{$comment.comment|comment}</div>
<div class="text">
{if $comment.parent_id}
{assign var=parentid value=$comment.parent_id}
{assign var=thisParent value=$parents.$parentid}
{if $thisParent}
<div style="padding:3px; margin:5px; background-color:#E4E4E4">
{if $thisParent.username}@{$thisParent.username} :
{/if}{$thisParent.comment|comment}
</div>
{/if}
{/if}
{$comment.comment|comment}
</div>
<div class="tools blue">
<a class="btn btn-minier btn-info" href="#">
<i class="glyphicon glyphicon-share-alt"></i>
</a>
<a href="javascript:void(0)" onclick="to_reply('{$comment.comment_id}')"><i class="glyphicon glyphicon-share-alt"></i></a>
</div>
</div>
</div>
{/if}
{*
<div id="comment_{$comment.comment_id}" class="cb-item-comment" {$comment_attr}>