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

50 lines
1.5 KiB
Scheme
Raw Normal View History

2024-01-22 21:57:08 +01:00
<div id="PageContainer" class="page{$CSSClass} action{$Action}">
<% include Content ExcludeHeader=true %>
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>
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 %>
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>
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>
</div>
2024-01-22 21:57:08 +01:00
<%-- include SilverStripe\\Blog\\BlogSideBar --%>