mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
FIX: avoid ID usage in pagination as multiple comment form instances can exist
This commit is contained in:
parent
95667fdf41
commit
8e0f83a0a9
@ -28,24 +28,24 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<% if Comments.MoreThanOnePage %>
|
<% if Comments.MoreThanOnePage %>
|
||||||
<div id="PageCommentsPagination">
|
<div class="comments-pagination">
|
||||||
<p>
|
<p>
|
||||||
<% if Comments.PrevLink %>
|
<% if Comments.PrevLink %>
|
||||||
<a href="$Comments.PrevLink">« <% _t('PREV','previous') %></a>
|
<a href="$Comments.PrevLink" class="previous">« <% _t('PREV','previous') %></a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% if Comments.Pages %>
|
<% if Comments.Pages %>
|
||||||
<% control Comments.Pages %>
|
<% loop Comments.Pages %>
|
||||||
<% if CurrentBool %>
|
<% if CurrentBool %>
|
||||||
<strong>$PageNum</strong>
|
<strong>$PageNum</strong>
|
||||||
<% else %>
|
<% else %>
|
||||||
<a href="$Link">$PageNum</a>
|
<a href="$Link">$PageNum</a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% if Comments.NextLink %>
|
<% if Comments.NextLink %>
|
||||||
<a href="$Comments.NextLink"><% _t('NEXT','next') %> »</a>
|
<a href="$Comments.NextLink" class="next"><% _t('NEXT','next') %> »</a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -61,9 +61,9 @@
|
|||||||
</p>
|
</p>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<p id="CommentsRSSFeed">
|
<p class="commenting-rss-feed">
|
||||||
<a class="commentrss" href="$CommentRssLink"><% _t('RSSFEEDCOMMENTS', 'RSS feed for comments on this page') %></a> |
|
<a href="$RssLinkPage"><% _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>
|
<a href="$RssLink"><% _t('RSSFEEDALLCOMMENTS', 'RSS feed for all comments') %></a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
Loading…
Reference in New Issue
Block a user