2010-11-30 10:49:21 +01:00
<% if CommentsEnabled %>
2010-12-07 02:09:52 +01:00
<div id= "$CommentHolderID" class= "comments-holder-container" >
2010-11-30 10:49:21 +01:00
<h4><% _t ( 'POSTCOM ', 'Post your comment ' ) %></h4>
<% if AddCommentForm %>
2010-12-06 11:09:04 +01:00
<% if CanPost %>
2012-08-08 02:51:14 +02:00
<% if ModeratedSubmitted %>
<p id= "$CommentHolderID_PostCommentForm_error" class= "message good" ><% _t ( 'AWAITINGMODERATION ', 'Your comment has been submitted and is now awaiting moderation . ' ) %></p>
<% end_if %>
2010-11-30 10:49:21 +01:00
$AddCommentForm
<% else %>
<p><% _t ( 'COMMENTLOGINERROR ', 'You cannot post comments until you have logged in ' ) %><% if PostingRequiresPermission %>,<% _t ( 'COMMENTPERMISSIONERROR ', 'and that you have an appropriate permission level ' ) %><% end_if %> .
2013-03-05 15:17:13 +01:00
<a href= "Security/login?BackURL={$Parent.Link}" title= "<% _t('LOGINTOPOSTCOMMENT', 'Login to post a comment') %>" ><% _t ( 'COMMENTPOSTLOGIN ', 'Login Here ' ) %></a> .
2010-11-30 10:49:21 +01:00
</p>
<% end_if %>
2010-11-29 23:24:17 +01:00
<% else %>
2010-11-30 10:49:21 +01:00
<p><% _t ( 'COMMENTSDISABLED ', 'Posting comments has been disabled ' ) %> . </p>
2010-11-29 23:24:17 +01:00
<% end_if %>
2010-11-30 10:49:21 +01:00
<h4><% _t ( 'COMMENTS ', 'Comments ' ) %></h4>
2010-11-29 23:24:17 +01:00
2010-12-06 11:09:04 +01:00
<div class= "comments-holder" >
2010-11-30 10:49:21 +01:00
<% if Comments %>
2010-12-06 11:09:04 +01:00
<ul class= "comments-list" >
2012-07-22 03:44:30 +02:00
<% loop Comments %>
2010-12-07 02:09:52 +01:00
<li class= "comment $EvenOdd<% if FirstLast %> $FirstLast <% end_if %> $SpamClass" >
2010-11-30 10:49:21 +01:00
<% include CommentsInterface_singlecomment %>
</li>
2012-07-22 03:44:30 +02:00
<% end_loop %>
2010-11-30 10:49:21 +01:00
</ul>
2010-11-29 23:24:17 +01:00
2010-11-30 10:49:21 +01:00
<% if Comments . MoreThanOnePage %>
2012-07-22 03:31:13 +02:00
<div class= "comments-pagination" >
2010-11-30 10:49:21 +01:00
<p>
<% if Comments . PrevLink %>
2012-07-22 03:31:13 +02:00
<a href= "$Comments.PrevLink" class= "previous" >« ; <% _t('PREV','previous') %></a>
2010-11-30 10:49:21 +01:00
<% end_if %>
2010-11-29 23:24:17 +01:00
2010-11-30 10:49:21 +01:00
<% if Comments . Pages %>
2012-07-22 03:31:13 +02:00
<% loop Comments . Pages %>
2010-11-30 10:49:21 +01:00
<% if CurrentBool %>
<strong>$PageNum</strong>
<% else %>
<a href= "$Link" >$PageNum</a>
<% end_if %>
2012-07-22 03:31:13 +02:00
<% end_loop %>
2010-11-29 23:24:17 +01:00
<% end_if %>
2010-11-30 10:49:21 +01:00
<% if Comments . NextLink %>
2012-07-22 03:31:13 +02:00
<a href= "$Comments.NextLink" class= "next" ><% _t ( 'NEXT ', 'next ' ) %> » ;</a>
2010-11-30 10:49:21 +01:00
<% end_if %>
</p>
</div>
<% end_if %>
2010-11-29 23:24:17 +01:00
<% end_if %>
2013-02-19 08:17:19 +01:00
<p class= "no-comments-yet" <% if $Comments . Count %> style= 'display: none ' <% end_if %> ><% _t ( 'NOCOMMENTSYET ', 'No one has commented on this page yet . ' ) %></p>
2010-11-30 10:49:21 +01:00
</div>
<% if DeleteAllLink %>
2010-12-07 02:09:52 +01:00
<p class= "delete-comments" >
2010-11-30 10:49:21 +01:00
<a href= "$DeleteAllLink" ><% _t ( 'PageCommentInterface . DELETEALLCOMMENTS ', 'Delete all comments on this page ' ) %></a>
</p>
2010-11-29 23:24:17 +01:00
<% end_if %>
2010-11-30 10:49:21 +01:00
2012-07-22 03:31:13 +02:00
<p class= "commenting-rss-feed" >
<a href= "$RssLinkPage" ><% _t ( 'RSSFEEDCOMMENTS ', 'RSS feed for comments on this page ' ) %></a> |
<a href= "$RssLink" ><% _t ( 'RSSFEEDALLCOMMENTS ', 'RSS feed for all comments ' ) %></a>
2010-11-30 10:49:21 +01:00
</p>
2010-11-29 23:24:17 +01:00
</div>
2010-11-30 10:49:21 +01:00
<% end_if %>
2010-11-29 23:24:17 +01:00