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'), _t('BlogPost.AdditionalCredits', 'Additional Credits'),
null, null,
1024 1024
)->setDescription(_t( )->setDescription(
_t(
'BlogPost.AdditionalCredits_Description', '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()) { if (!$this->canEditAuthors()) {

View File

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

View File

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

View File

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