2015-04-01 06:12:47 +02:00
<% if $CommentsEnabled %>
2010-12-07 02:09:52 +01:00
<div id= "$CommentHolderID" class= "comments-holder-container" >
2013-07-08 12:08:02 +02:00
<h4><% _t ( 'CommentsInterface_ss . POSTCOM ', 'Post your comment ' ) %></h4>
2010-11-30 10:49:21 +01:00
2015-04-01 06:12:47 +02:00
<% if $AddCommentForm %>
2015-04-07 05:56:00 +02:00
<% if $canPostComment %>
2015-04-01 06:12:47 +02:00
<% if $ModeratedSubmitted %>
<p id= "{$CommentHolderID}_PostCommentForm_error" class= "message good" ><% _t ( 'CommentsInterface_ss . AWAITINGMODERATION ', 'Your comment has been submitted and is now awaiting moderation . ' ) %></p>
2012-08-08 02:51:14 +02:00
<% end_if %>
2010-11-30 10:49:21 +01:00
$AddCommentForm
<% else %>
2015-04-07 05:56:00 +02:00
<p><% _t ( 'CommentsInterface_ss . COMMENTLOGINERROR ', 'You cannot post comments until you have logged in ' ) %><% if $PostingRequiredPermission %>,<% _t ( 'CommentsInterface_ss . COMMENTPERMISSIONERROR ', 'and that you have an appropriate permission level ' ) %><% end_if %> .
2013-07-08 12:08:02 +02:00
<a href= "Security/login?BackURL={$Parent.Link}" title= "<% _t('CommentsInterface_ss.LOGINTOPOSTCOMMENT', 'Login to post a comment') %>" ><% _t ( 'CommentsInterface_ss . COMMENTPOSTLOGIN ', 'Login Here ' ) %></a> .
2010-11-30 10:49:21 +01:00
</p>
<% end_if %>
2010-11-29 23:24:17 +01:00
<% else %>
2013-07-08 12:08:02 +02:00
<p><% _t ( 'CommentsInterface_ss . COMMENTSDISABLED ', 'Posting comments has been disabled ' ) %> . </p>
2010-11-29 23:24:17 +01:00
<% end_if %>
2013-07-08 12:08:02 +02:00
<h4><% _t ( 'CommentsInterface_ss . COMMENTS ', 'Comments ' ) %></h4>
2010-11-29 23:24:17 +01:00
2010-12-06 11:09:04 +01:00
<div class= "comments-holder" >
2015-04-13 05:41:18 +02:00
<% if $PagedComments %>
2010-12-06 11:09:04 +01:00
<ul class= "comments-list" >
2015-04-13 05:41:18 +02:00
<% loop $PagedComments %>
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>
2015-04-13 05:41:18 +02:00
<% with $PagedComments %>
2015-04-07 05:56:00 +02:00
<% include CommentPagination %>
<% end_with %>
2010-11-29 23:24:17 +01:00
<% end_if %>
2013-02-19 08:17:19 +01:00
2015-04-13 05:41:18 +02:00
<p class= "no-comments-yet" <% if $PagedComments . Count %> style= 'display: none ' <% end_if %> ><% _t ( 'CommentsInterface_ss . NOCOMMENTSYET ', 'No one has commented on this page yet . ' ) %></p>
2013-02-19 08:17:19 +01:00
2010-11-30 10:49:21 +01:00
</div>
2015-04-01 06:12:47 +02:00
<% if $DeleteAllLink %>
2010-12-07 02:09:52 +01:00
<p class= "delete-comments" >
2013-07-08 12:08:02 +02:00
<a href= "$DeleteAllLink" ><% _t ( 'CommentsInterface_ss . PageCommentInterface . DELETEALLCOMMENTS ', 'Delete all comments on this page ' ) %></a>
2010-11-30 10:49:21 +01:00
</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" >
2015-04-07 05:56:00 +02:00
<a href= "$CommentRSSLinkPage" ><% _t ( 'CommentsInterface_ss . RSSFEEDCOMMENTS ', 'RSS feed for comments on this page ' ) %></a> |
<a href= "$CommentRSSLink" ><% _t ( 'CommentsInterface_ss . 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 %>