mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Update deprecated image manipulation calls
This commit is contained in:
parent
71890778db
commit
f376b1c2f1
@ -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()) {
|
||||||
|
@ -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">
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user