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-29 23:24:17 +01:00
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 %>
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 %> .
<a href= "Security/login?BackURL={$Page.Link}" title= "<% _t('LOGINTOPOSTCOMMENT', 'Login to post a comment') %>" ><% _t ( 'COMMENTPOSTLOGIN ', 'Login Here ' ) %></a> .
</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" >
2010-11-30 10:49:21 +01:00
<% control 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>
<% end_control %>
</ul>
2010-11-29 23:24:17 +01:00
2010-11-30 10:49:21 +01:00
<% if Comments . MoreThanOnePage %>
<div id= "PageCommentsPagination" >
<p>
<% if Comments . PrevLink %>
<a href= "$Comments.PrevLink" >« ; <% _t('PREV','previous') %></a>
<% end_if %>
2010-11-29 23:24:17 +01:00
2010-11-30 10:49:21 +01:00
<% if Comments . Pages %>
<% control Comments . Pages %>
<% if CurrentBool %>
<strong>$PageNum</strong>
<% else %>
<a href= "$Link" >$PageNum</a>
<% end_if %>
<% end_control %>
2010-11-29 23:24:17 +01:00
<% end_if %>
2010-11-30 10:49:21 +01:00
<% if Comments . NextLink %>
<a href= "$Comments.NextLink" ><% _t ( 'NEXT ', 'next ' ) %> » ;</a>
<% end_if %>
</p>
</div>
<% end_if %>
<% else %>
2010-12-07 02:09:52 +01:00
<p class= "no-comments-yet" ><% _t ( 'NOCOMMENTSYET ', 'No one has commented on this page yet . ' ) %></p>
2010-11-29 23:24:17 +01:00
<% end_if %>
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
<p id= "CommentsRSSFeed" >
<a class= "commentrss" href= "$CommentRssLink" ><% _t ( 'RSSFEEDCOMMENTS ', 'RSS feed for comments on this page ' ) %></a> |
<a href= "PageComment/rss" class= "commentrss" title= "<% _t('RSSVIEWALLCOMMENTS', 'View all Comments') %>" ><% _t ( 'RSSFEEDALLCOMMENTS ', 'RSS feed for all comments ' ) %></a>
</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