$Title
- - <% if $FeaturedImage %> -$FeaturedImage.setWidth(795)
- <% end_if %> - -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 @@
"> - $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') %> - -$FeaturedImage.setWidth(795)
- <% end_if %> - -$FeaturedImage.ScaleWidth(795)
+ <% end_if %> + +