blob: 1c45206347772ecce38ed04a58bdac35fb9527b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{if $gBitUser->hasPermission('p_liberty_post_comments') || $gBitUser->hasPermission('p_liberty_read_comments')}
{strip}
<div class="display comment">
{if $comments}
<div class="header">
<h2>{tr}Comments{/tr}</h2>
</div>
{/if}
<div class="body"{if !( $post_comment_request || $post_comment_preview )} id="editcomments"{/if}>
<div id="edit_comments" {if $gBitSystem->isFeatureActive('comments_ajax')}style="display:none"{/if}>
{include file="bitpackage:liberty/comments_post_inc.tpl" post_title="Post Comment"}
</div>
{include file="bitpackage:liberty/comments_display_option_bar.tpl"}
{if $gBitSystem->isFeatureActive('comments_ajax') && $gBitUser->hasPermission( 'p_liberty_post_comments' )}
<div class="form-group">
<button type="button" class="btn btn-link" name="post_comment_request" onclick="LibertyComment.attachForm('comment_{$gContent->mContentId}', '{$gContent->mContentId}', {if $gContent->mContentId}{$gContent->mContentId}{elseif $commentsParentId}{$commentsParentId}{else}null{/if})">{biticon ipackage="icons" iname="insert-text" iexplain="Add Comment"}</button>
</div>
{/if}
<div id="comment_{$gContent->mContentId}"></div>
{foreach name=comments_loop key=key item=item from=$comments}
{displaycomment comment=$item}
{/foreach}
<div id="comment_{$gContent->mContentId}_footer"></div>
{pagination ihash=$commentsPgnHash}
</div><!-- end .body -->
</div><!-- end .comment -->
{/strip}
{/if}
|