Update deprecated image manipulation calls

This commit is contained in:
Robbie Averill 2016-12-19 11:50:42 +13:00
parent 71890778db
commit f376b1c2f1
4 changed files with 26 additions and 24 deletions

View File

@ -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()) {

View File

@ -3,7 +3,7 @@
<div>
<% if $CurrentProfile.BlogProfileImage %>
<div class="profile-image">
$CurrentProfile.BlogProfileImage.setWidth(180)
$CurrentProfile.BlogProfileImage.ScaleWidth(180)
</div>
<% end_if %>
<div class="profile-summary">

View File

@ -8,7 +8,7 @@
<p class="post-image">
<a href="$Link" title="<%t Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>">
$FeaturedImage.setWidth(795)
$FeaturedImage.ScaleWidth(795)
</a>
</p>

View File

@ -5,7 +5,7 @@
<h1>$Title</h1>
<% if $FeaturedImage %>
<p class="post-image">$FeaturedImage.setWidth(795)</p>
<p class="post-image">$FeaturedImage.ScaleWidth(795)</p>
<% end_if %>
<div class="content">$Content</div>