mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
ENHANCEMENT: Position add comment form either before or after the comments
This commit is contained in:
parent
664f13dcb2
commit
6749e80ace
@ -2,20 +2,7 @@
|
|||||||
<div id="$CommentHolderID" class="comments-holder-container">
|
<div id="$CommentHolderID" class="comments-holder-container">
|
||||||
<h4><% _t('POSTCOM','Post your comment') %></h4>
|
<h4><% _t('POSTCOM','Post your comment') %></h4>
|
||||||
|
|
||||||
<% if AddCommentForm %>
|
<% if $FormPosition == 'before' %><% include AddCommentForm %><% end_if %>
|
||||||
<% if CanPost %>
|
|
||||||
<% 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 %>
|
|
||||||
$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={$Parent.Link}" title="<% _t('LOGINTOPOSTCOMMENT', 'Login to post a comment') %>"><% _t('COMMENTPOSTLOGIN', 'Login Here') %></a>.
|
|
||||||
</p>
|
|
||||||
<% end_if %>
|
|
||||||
<% else %>
|
|
||||||
<p><% _t('COMMENTSDISABLED', 'Posting comments has been disabled') %>.</p>
|
|
||||||
<% end_if %>
|
|
||||||
|
|
||||||
<h4><% _t('COMMENTS','Comments') %></h4>
|
<h4><% _t('COMMENTS','Comments') %></h4>
|
||||||
|
|
||||||
@ -58,6 +45,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<% if $FormPosition == 'after' %><% include AddCommentForm %><% end_if %>
|
||||||
|
|
||||||
|
|
||||||
<% if DeleteAllLink %>
|
<% if DeleteAllLink %>
|
||||||
<p class="delete-comments">
|
<p class="delete-comments">
|
||||||
<a href="$DeleteAllLink"><% _t('PageCommentInterface.DELETEALLCOMMENTS','Delete all comments on this page') %></a>
|
<a href="$DeleteAllLink"><% _t('PageCommentInterface.DELETEALLCOMMENTS','Delete all comments on this page') %></a>
|
||||||
|
Loading…
Reference in New Issue
Block a user