2019-09-07 03:39:49 +02:00
|
|
|
<div id="PageContainer" class="page{$CSSClass} action{$Action}">
|
2020-06-18 01:25:50 +02:00
|
|
|
<% include Content ExcludeHeader=true %>
|
2018-07-02 03:54:18 +02:00
|
|
|
|
|
|
|
<div class="page-content">
|
2020-06-18 01:25:50 +02:00
|
|
|
<div class="element page-header-element d-block">
|
|
|
|
<div class="element-container $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-06-18 01:25:50 +02:00
|
|
|
<h1 class="page-header subcategory">$ArchiveDate.Nice</h1>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% else_if $ArchiveMonth %>
|
2020-06-18 01:25:50 +02:00
|
|
|
<h1 class="page-header subcategory">$ArchiveDate.format('F, Y')</h1>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% else %>
|
2020-06-18 01:25:50 +02:00
|
|
|
<h1 class="page-header subcategory">$ArchiveDate.format('Y')</h1>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% end_if %>
|
|
|
|
<% else_if $CurrentTag %>
|
2020-06-18 01:25:50 +02:00
|
|
|
<h1 class="page-header subcategory">
|
|
|
|
<%t SilverStripe\\Blog\\Model\\Blog.Tag 'Tag' %>: $CurrentTag.Title
|
|
|
|
</h1>
|
2018-07-02 03:54:18 +02:00
|
|
|
<% else_if $CurrentCategory %>
|
2020-06-18 01:25:50 +02:00
|
|
|
<h1 class="page-header subcategory">
|
|
|
|
<%t SilverStripe\\Blog\\Model\\Blog.Category 'Category' %>: $CurrentCategory.Title
|
|
|
|
</h1>
|
|
|
|
<% else %>
|
|
|
|
<h1 class="page-header">
|
|
|
|
$Title
|
|
|
|
</h1>
|
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 %>
|
2020-06-18 01:25:50 +02:00
|
|
|
<div class="list_blogpost">
|
2020-04-20 12:01:08 +02:00
|
|
|
<% loop $PaginatedList %>
|
2020-06-18 01:25:50 +02:00
|
|
|
<div class="element element__blogpost element__blogpost__short">
|
|
|
|
<div class="element-container $Top.DefaultContainer">
|
|
|
|
<% include SilverStripe\Blog\Includes\BlogPostInfo %>
|
2020-04-20 12:01:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end_loop %>
|
2020-06-18 01:25:50 +02:00
|
|
|
</div>
|
2020-04-20 12:01:08 +02:00
|
|
|
<% else %>
|
2020-06-18 01:25:50 +02:00
|
|
|
<div class="element element__no_blogposts">
|
|
|
|
<div class="element-container $DefaultContainer">
|
|
|
|
<p class="alert alert-info alert-block">
|
|
|
|
<%t SilverStripe\\Blog\\Model\\Blog.NoPosts 'There are no posts' %>
|
|
|
|
</p>
|
2020-04-20 12:01:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end_if %>
|
2018-07-02 03:54:18 +02:00
|
|
|
|
2020-06-18 01:25:50 +02:00
|
|
|
<div class="element element__pagination">
|
|
|
|
<div class="element-container $DefaultContainer">
|
2020-04-20 12:01:08 +02:00
|
|
|
<% 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 %>
|
2020-06-18 01:25:50 +02:00
|
|
|
<div class="element element__comments">
|
|
|
|
<div class="element-container $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 --%>
|