2019-09-07 03:39:49 +02:00
|
|
|
<div id="PageContainer" class="page{$CSSClass} action{$Action}">
|
2018-07-02 03:54:18 +02:00
|
|
|
<% include Content %>
|
|
|
|
|
|
|
|
<div class="page-content">
|
|
|
|
<div class="element">
|
2020-04-20 12:01:08 +02:00
|
|
|
<div class="$DefaultContainer">
|
2018-07-02 03:54:18 +02:00
|
|
|
<% if $ArchiveYear %>
|
2020-04-20 12:01:08 +02:00
|
|
|
<%t SilverStripe\\Blog\\Model\\Blog.Archive 'Archive' %>:
|
2018-07-02 03:54:18 +02:00
|
|
|
<% if $ArchiveDay %>
|
2020-04-20 12:01:08 +02:00
|
|
|
<h2 class="subcategory">$ArchiveDate.Nice</h2>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% else_if $ArchiveMonth %>
|
2020-04-20 12:01:08 +02:00
|
|
|
<h2 class="subcategory">$ArchiveDate.format('F, Y')</h2>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% else %>
|
2020-04-20 12:01:08 +02:00
|
|
|
<h2 class="subcategory">$ArchiveDate.format('Y')</h2>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% end_if %>
|
|
|
|
<% else_if $CurrentTag %>
|
2020-04-20 12:01:08 +02:00
|
|
|
<h2 class="subcategory"><%t SilverStripe\\Blog\\Model\\Blog.Tag 'Tag' %>: $CurrentTag.Title</h2>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% else_if $CurrentCategory %>
|
2020-04-20 12:01:08 +02:00
|
|
|
<h2 class="subcategory"><%t SilverStripe\\Blog\\Model\\Blog.Category 'Category' %>: $CurrentCategory.Title</h2>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% end_if %>
|
2020-04-20 12:01:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-02 03:54:18 +02:00
|
|
|
|
2020-04-20 12:01:08 +02:00
|
|
|
<% if $PaginatedList.Exists %>
|
|
|
|
<% loop $PaginatedList %>
|
|
|
|
<div class="element">
|
|
|
|
<div class="$Top.DefaultContainer">
|
|
|
|
<% include BlogPostInfo %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end_loop %>
|
|
|
|
<% else %>
|
|
|
|
<div class="element">
|
|
|
|
<div class="$DefaultContainer">
|
|
|
|
<p><%t SilverStripe\\Blog\\Model\\Blog.NoPosts 'There are no posts' %></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end_if %>
|
2018-07-02 03:54:18 +02:00
|
|
|
|
2020-04-20 12:01:08 +02:00
|
|
|
<div class="element">
|
|
|
|
<div class="$DefaultContainer">
|
|
|
|
<% with $PaginatedList %>
|
|
|
|
<% include Objects\Pagination %>
|
|
|
|
<% end_with %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-02 03:54:18 +02:00
|
|
|
|
2020-04-20 12:01:08 +02:00
|
|
|
<% if $CommentsForm %>
|
|
|
|
<div class="element">
|
|
|
|
<div class="$DefaultContainer">
|
2018-07-02 03:54:18 +02:00
|
|
|
$CommentsForm
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-20 12:01:08 +02:00
|
|
|
<% end_if %>
|
|
|
|
</div>
|
2018-07-02 03:54:18 +02:00
|
|
|
</div>
|
|
|
|
|
2019-09-07 03:39:49 +02:00
|
|
|
<%-- include SilverStripe\\Blog\\BlogSideBar --%>
|