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">
|
2019-11-07 19:26:33 +01:00
|
|
|
<div class="container blog-post-list">
|
2018-07-02 03:54:18 +02:00
|
|
|
|
|
|
|
<% if $ArchiveYear %>
|
2019-11-07 19:26:33 +01:00
|
|
|
<span class="action-title"><%t SilverStripe\\Blog\\Model\\Blog.Archive 'Archive' %>:</span>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% if $ArchiveDay %>
|
2019-11-07 19:26:33 +01:00
|
|
|
<h2 class="content-element__title subcategory">$ArchiveDate.Nice</h2>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% else_if $ArchiveMonth %>
|
2019-11-07 19:26:33 +01:00
|
|
|
<h2 class="content-element__title subcategory">$ArchiveDate.format('F, Y')</h2>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% else %>
|
2019-11-07 19:26:33 +01:00
|
|
|
<h2 class="content-element__title subcategory">$ArchiveDate.format('Y')</h2>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% end_if %>
|
|
|
|
<% else_if $CurrentTag %>
|
2019-11-07 19:26:33 +01:00
|
|
|
<h2 class="content-element__title subcategory">
|
|
|
|
<span class="action-title"><%t SilverStripe\\Blog\\Model\\Blog.Tag 'Tag' %>:</span>
|
|
|
|
$CurrentTag.Title
|
|
|
|
</h2>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% else_if $CurrentCategory %>
|
2019-11-07 19:26:33 +01:00
|
|
|
<h2 class="content-element__title subcategory">
|
|
|
|
<span class="action-title"><%t SilverStripe\\Blog\\Model\\Blog.Category 'Category' %>:</span>
|
|
|
|
$CurrentCategory.Title
|
|
|
|
</h2>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% end_if %>
|
|
|
|
|
|
|
|
<% if $PaginatedList.Exists %>
|
|
|
|
<div class="row">
|
|
|
|
<% loop $PaginatedList %>
|
2019-09-07 03:39:49 +02:00
|
|
|
<div class="col-sm-3 col-md-3">
|
2018-07-02 03:54:18 +02:00
|
|
|
<% include BlogPostInfo %>
|
|
|
|
</div>
|
|
|
|
<% end_loop %>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
2019-11-07 19:26:33 +01:00
|
|
|
<p class="alert alert-info">
|
|
|
|
<%t SilverStripe\\Blog\\Model\\Blog.NoPosts 'There are no posts' %>
|
|
|
|
</p>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% end_if %>
|
|
|
|
|
|
|
|
<% with $PaginatedList %>
|
2018-08-06 13:46:54 +02:00
|
|
|
<% include Objects\Pagination %>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% end_with %>
|
|
|
|
|
|
|
|
$CommentsForm
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-09-07 03:39:49 +02:00
|
|
|
<%-- include SilverStripe\\Blog\\BlogSideBar --%>
|