mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Use non-deprecated comment form method
Use correct indentation
This commit is contained in:
parent
d58b376bf1
commit
8b5be8a3e8
@ -2,41 +2,41 @@
|
|||||||
|
|
||||||
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
|
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
<h1>
|
<h1>
|
||||||
<% if $ArchiveYear %>
|
<% if $ArchiveYear %>
|
||||||
<%t Blog.Archive "Archive" %>:
|
<%t Blog.Archive "Archive" %>:
|
||||||
<% if $ArchiveDay %>
|
<% if $ArchiveDay %>
|
||||||
$ArchiveDate.Nice
|
$ArchiveDate.Nice
|
||||||
<% else_if $ArchiveMonth %>
|
<% else_if $ArchiveMonth %>
|
||||||
$ArchiveDate.format("F, Y")
|
$ArchiveDate.format("F, Y")
|
||||||
<% else %>
|
<% else %>
|
||||||
$ArchiveDate.format("Y")
|
$ArchiveDate.format("Y")
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% else_if $CurrentTag %>
|
<% else_if $CurrentTag %>
|
||||||
<%t Blog.Tag "Tag" %>: $CurrentTag.Title
|
<%t Blog.Tag "Tag" %>: $CurrentTag.Title
|
||||||
<% else_if $CurrentCategory %>
|
<% else_if $CurrentCategory %>
|
||||||
<%t Blog.Category "Category" %>: $CurrentCategory.Title
|
<%t Blog.Category "Category" %>: $CurrentCategory.Title
|
||||||
<% else %>
|
<% else %>
|
||||||
$Title
|
$Title
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="content">$Content</div>
|
<div class="content">$Content</div>
|
||||||
|
|
||||||
<% if $PaginatedList.Exists %>
|
<% if $PaginatedList.Exists %>
|
||||||
<% loop $PaginatedList %>
|
<% loop $PaginatedList %>
|
||||||
<% include PostSummary %>
|
<% include PostSummary %>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p><%t Blog.NoPosts "There are no posts" %></p>
|
<p><%t Blog.NoPosts "There are no posts" %></p>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
$Form
|
$Form
|
||||||
$PageComments
|
$CommentsForm
|
||||||
|
|
||||||
<% with $PaginatedList %>
|
<% with $PaginatedList %>
|
||||||
<% include Pagination %>
|
<% include Pagination %>
|
||||||
<% end_with %>
|
<% end_with %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,18 +3,18 @@
|
|||||||
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
|
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
|
||||||
<article>
|
<article>
|
||||||
<h1>$Title</h1>
|
<h1>$Title</h1>
|
||||||
|
|
||||||
<% if $FeaturedImage %>
|
<% if $FeaturedImage %>
|
||||||
<p class="post-image">$FeaturedImage.setWidth(795)</p>
|
<p class="post-image">$FeaturedImage.setWidth(795)</p>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<div class="content">$Content</div>
|
<div class="content">$Content</div>
|
||||||
|
|
||||||
<% include EntryMeta %>
|
<% include EntryMeta %>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
$Form
|
$Form
|
||||||
$PageComments
|
$CommentsForm
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% include BlogSideBar %>
|
<% include BlogSideBar %>
|
||||||
|
@ -2,21 +2,21 @@
|
|||||||
|
|
||||||
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
|
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
|
||||||
|
|
||||||
<% include MemberDetails %>
|
<% include MemberDetails %>
|
||||||
|
|
||||||
<% if $PaginatedList.Exists %>
|
<% if $PaginatedList.Exists %>
|
||||||
<h2>Posts by $CurrentProfile.FirstName $CurrentProfile.Surname for $Title:</h2>
|
<h2>Posts by $CurrentProfile.FirstName $CurrentProfile.Surname for $Title:</h2>
|
||||||
<% loop $PaginatedList %>
|
<% loop $PaginatedList %>
|
||||||
<% include PostSummary %>
|
<% include PostSummary %>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
$Form
|
|
||||||
$PageComments
|
|
||||||
|
|
||||||
<% with $PaginatedList %>
|
$Form
|
||||||
<% include Pagination %>
|
$CommentsForm
|
||||||
<% end_with %>
|
|
||||||
|
<% with $PaginatedList %>
|
||||||
|
<% include Pagination %>
|
||||||
|
<% end_with %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user