diff --git a/src/Model/BlogPost.php b/src/Model/BlogPost.php index 69e8c36..72b5be8 100644 --- a/src/Model/BlogPost.php +++ b/src/Model/BlogPost.php @@ -251,9 +251,11 @@ class BlogPost extends Page _t('BlogPost.AdditionalCredits', 'Additional Credits'), null, 1024 - )->setDescription(_t( + )->setDescription( + _t( 'BlogPost.AdditionalCredits_Description', - 'If some authors of this post don\'t have CMS access, enter their name(s) here. You can separate multiple names with a comma.') + 'If some authors of this post don\'t have CMS access, enter their name(s) here. You can separate multiple names with a comma.' + ) ); if (!$this->canEditAuthors()) { diff --git a/templates/Includes/MemberDetails.ss b/templates/Includes/MemberDetails.ss index b968786..d423c48 100644 --- a/templates/Includes/MemberDetails.ss +++ b/templates/Includes/MemberDetails.ss @@ -3,7 +3,7 @@
<% if $CurrentProfile.BlogProfileImage %>
- $CurrentProfile.BlogProfileImage.setWidth(180) + $CurrentProfile.BlogProfileImage.ScaleWidth(180)
<% end_if %>
diff --git a/templates/Includes/PostSummary.ss b/templates/Includes/PostSummary.ss index 91a699a..b06d1f1 100644 --- a/templates/Includes/PostSummary.ss +++ b/templates/Includes/PostSummary.ss @@ -8,7 +8,7 @@

"> - $FeaturedImage.setWidth(795) + $FeaturedImage.ScaleWidth(795)

diff --git a/templates/SilverStripe/Blog/Model/Layout/BlogPost.ss b/templates/SilverStripe/Blog/Model/Layout/BlogPost.ss index f3839dc..df0b7db 100644 --- a/templates/SilverStripe/Blog/Model/Layout/BlogPost.ss +++ b/templates/SilverStripe/Blog/Model/Layout/BlogPost.ss @@ -1,20 +1,20 @@ -<% require themedCSS('blog', 'blog') %> - -
-
-

$Title

- - <% if $FeaturedImage %> -

$FeaturedImage.setWidth(795)

- <% end_if %> - -
$Content
- - <% include EntryMeta %> -
- - $Form - $CommentsForm -
- -<% include BlogSideBar %> +<% require themedCSS('blog', 'blog') %> + +
+
+

$Title

+ + <% if $FeaturedImage %> +

$FeaturedImage.ScaleWidth(795)

+ <% end_if %> + +
$Content
+ + <% include EntryMeta %> +
+ + $Form + $CommentsForm +
+ +<% include BlogSideBar %>