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'),
|
||||
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()) {
|
||||
|
@ -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">
|
||||
|
@ -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>
|
||||
|
||||
|
@ -1,20 +1,20 @@
|
||||
<% require themedCSS('blog', 'blog') %>
|
||||
|
||||
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
|
||||
<article>
|
||||
<h1>$Title</h1>
|
||||
|
||||
<% if $FeaturedImage %>
|
||||
<p class="post-image">$FeaturedImage.setWidth(795)</p>
|
||||
<% end_if %>
|
||||
|
||||
<div class="content">$Content</div>
|
||||
|
||||
<% include EntryMeta %>
|
||||
</article>
|
||||
|
||||
$Form
|
||||
$CommentsForm
|
||||
</div>
|
||||
|
||||
<% include BlogSideBar %>
|
||||
<% require themedCSS('blog', 'blog') %>
|
||||
|
||||
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
|
||||
<article>
|
||||
<h1>$Title</h1>
|
||||
|
||||
<% if $FeaturedImage %>
|
||||
<p class="post-image">$FeaturedImage.ScaleWidth(795)</p>
|
||||
<% end_if %>
|
||||
|
||||
<div class="content">$Content</div>
|
||||
|
||||
<% include EntryMeta %>
|
||||
</article>
|
||||
|
||||
$Form
|
||||
$CommentsForm
|
||||
</div>
|
||||
|
||||
<% include BlogSideBar %>
|
||||
|
Loading…
Reference in New Issue
Block a user