From 38090f14c1108075c589b7f2609797886c441b6c Mon Sep 17 00:00:00 2001 From: Tony Air Date: Mon, 22 Jan 2024 22:57:08 +0200 Subject: [PATCH] FIX: Blog profile template --- .../Blog/Model/Layout/Blog_profile.ss | 60 +++++++++++++------ 1 file changed, 43 insertions(+), 17 deletions(-) diff --git a/app/templates/SilverStripe/Blog/Model/Layout/Blog_profile.ss b/app/templates/SilverStripe/Blog/Model/Layout/Blog_profile.ss index 5bbca51..785ce8d 100644 --- a/app/templates/SilverStripe/Blog/Model/Layout/Blog_profile.ss +++ b/app/templates/SilverStripe/Blog/Model/Layout/Blog_profile.ss @@ -1,23 +1,49 @@ -<% require css('silverstripe/blog: client/dist/styles/main.css') %> +
+ <% include Content ExcludeHeader=true %> -
+
+
+
+ <%t SilverStripe\\Blog\\Model\\Blog.PostsByUser 'Posts by {firstname} {surname} for {title}' firstname=$CurrentProfile.FirstName surname=$CurrentProfile.Surname title=$Title %> +
+
- <% include SilverStripe\\Blog\\MemberDetails %> + <% if $PaginatedList.Exists %> +
+ <% loop $PaginatedList %> +
+
+ <% include SilverStripe\Blog\Includes\BlogPostInfo %> +
+
+ <% end_loop %> +
+ <% else %> +
+
+

+ <%t SilverStripe\\Blog\\Model\\Blog.NoPosts 'There are no posts' %> +

+
+
+ <% end_if %> - <% if $PaginatedList.Exists %> -

<%t SilverStripe\\Blog\\Model\\Blog.PostsByUser 'Posts by {firstname} {surname} for {title}' firstname=$CurrentProfile.FirstName surname=$CurrentProfile.Surname title=$Title %>

- <% loop $PaginatedList %> - <% include SilverStripe\\Blog\\PostSummary %> - <% end_loop %> - <% end_if %> - - $Form - $CommentsForm - - <% with $PaginatedList %> - <% include SilverStripe\\Blog\\Pagination %> - <% end_with %> +
+
+ <% with $PaginatedList %> + <% include Objects\Pagination %> + <% end_with %> +
+
+ <% if $CommentsForm %> +
+
+ $CommentsForm +
+
+ <% end_if %> +
-<% include SilverStripe\\Blog\\BlogSideBar %> +<%-- include SilverStripe\\Blog\\BlogSideBar --%>