silverstripe-webpack/app/templates/SilverStripe/Blog/Model/Layout/Blog.ss

71 lines
2.1 KiB
Scheme
Raw Normal View History

<div id="PageContainer" class="page{$CSSClass} action{$Action}">
2020-06-18 01:25:50 +02:00
<% include Content ExcludeHeader=true %>
<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">
<% if $ArchiveYear %>
2020-04-20 12:01:08 +02:00
<%t SilverStripe\\Blog\\Model\\Blog.Archive 'Archive' %>:
<% if $ArchiveDay %>
2020-06-18 01:25:50 +02:00
<h1 class="page-header subcategory">$ArchiveDate.Nice</h1>
<% else_if $ArchiveMonth %>
2020-06-18 01:25:50 +02:00
<h1 class="page-header subcategory">$ArchiveDate.format('F, Y')</h1>
<% else %>
2020-06-18 01:25:50 +02:00
<h1 class="page-header subcategory">$ArchiveDate.format('Y')</h1>
<% 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>
<% 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>
<% end_if %>
2020-04-20 12:01:08 +02:00
</div>
</div>
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 %>
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>
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">
$CommentsForm
</div>
</div>
2020-04-20 12:01:08 +02:00
<% end_if %>
</div>
</div>
<%-- include SilverStripe\\Blog\\BlogSideBar --%>