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

59 lines
1.6 KiB
Scheme
Raw Normal View History

<div id="PageContainer" class="page{$CSSClass} action{$Action}">
<% include Content %>
<div class="page-content">
<div class="element">
2020-04-20 12:01:08 +02:00
<div class="$DefaultContainer">
<% if $ArchiveYear %>
2020-04-20 12:01:08 +02:00
<%t SilverStripe\\Blog\\Model\\Blog.Archive 'Archive' %>:
<% if $ArchiveDay %>
2020-04-20 12:01:08 +02:00
<h2 class="subcategory">$ArchiveDate.Nice</h2>
<% else_if $ArchiveMonth %>
2020-04-20 12:01:08 +02:00
<h2 class="subcategory">$ArchiveDate.format('F, Y')</h2>
<% else %>
2020-04-20 12:01:08 +02:00
<h2 class="subcategory">$ArchiveDate.format('Y')</h2>
<% 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>
<% else_if $CurrentCategory %>
2020-04-20 12:01:08 +02:00
<h2 class="subcategory"><%t SilverStripe\\Blog\\Model\\Blog.Category 'Category' %>: $CurrentCategory.Title</h2>
<% end_if %>
2020-04-20 12:01:08 +02:00
</div>
</div>
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 %>
2020-04-20 12:01:08 +02:00
<div class="element">
<div class="$DefaultContainer">
<% with $PaginatedList %>
<% include Objects\Pagination %>
<% end_with %>
</div>
</div>
2020-04-20 12:01:08 +02:00
<% if $CommentsForm %>
<div class="element">
<div class="$DefaultContainer">
$CommentsForm
</div>
</div>
2020-04-20 12:01:08 +02:00
<% end_if %>
</div>
</div>
<%-- include SilverStripe\\Blog\\BlogSideBar --%>