2024-01-22 21:57:08 +01:00
|
|
|
<div id="PageContainer" class="page{$CSSClass} action{$Action}">
|
|
|
|
<% include Content ExcludeHeader=true %>
|
2018-07-02 03:54:18 +02:00
|
|
|
|
2024-01-22 21:57:08 +01:00
|
|
|
<div class="page-content">
|
|
|
|
<div class="element page-header-element d-block">
|
|
|
|
<div class="element-container $DefaultContainer">
|
|
|
|
<%t SilverStripe\\Blog\\Model\\Blog.PostsByUser 'Posts by {firstname} {surname} for {title}' firstname=$CurrentProfile.FirstName surname=$CurrentProfile.Surname title=$Title %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-02 03:54:18 +02:00
|
|
|
|
2024-01-22 21:57:08 +01:00
|
|
|
<% if $PaginatedList.Exists %>
|
|
|
|
<div class="list_blogpost">
|
|
|
|
<% loop $PaginatedList %>
|
|
|
|
<div class="element element__blogpost element__blogpost__short">
|
|
|
|
<div class="element-container $Top.DefaultContainer">
|
|
|
|
<% include SilverStripe\Blog\Includes\BlogPostInfo %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end_loop %>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<div class="element element__no_blogposts">
|
|
|
|
<div class="element-container $DefaultContainer">
|
|
|
|
<p class="blog__no-posts alert alert-info alert-block">
|
|
|
|
<%t SilverStripe\\Blog\\Model\\Blog.NoPosts 'There are no posts' %>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end_if %>
|
2018-07-02 03:54:18 +02:00
|
|
|
|
2024-01-22 21:57:08 +01:00
|
|
|
<div class="element element__pagination">
|
|
|
|
<div class="element-container $DefaultContainer">
|
|
|
|
<% with $PaginatedList %>
|
|
|
|
<% include Objects\Pagination %>
|
|
|
|
<% end_with %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-02 03:54:18 +02:00
|
|
|
|
2024-01-22 21:57:08 +01:00
|
|
|
<% if $CommentsForm %>
|
|
|
|
<div class="element element__comments blog__comments">
|
|
|
|
<div class="element-container $DefaultContainer">
|
|
|
|
$CommentsForm
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end_if %>
|
|
|
|
</div>
|
2018-07-02 03:54:18 +02:00
|
|
|
</div>
|
|
|
|
|
2024-01-22 21:57:08 +01:00
|
|
|
<%-- include SilverStripe\\Blog\\BlogSideBar --%>
|