@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $image->setRightTitle("Displayed to the right of the content in the main article, where it can be clicked to enlarge. <br />A thumbnail also appears next to the article summary on the main News page."); |
| 55 | 55 | $fields->addFieldToTab('Root.Main', $image, "Content"); |
| 56 | 56 | |
| 57 | - }); |
|
| 57 | + }); |
|
| 58 | 58 | |
| 59 | 59 | $fields = parent::getCMSFields(); |
| 60 | 60 | |
@@ -98,13 +98,13 @@ discard block |
||
| 98 | 98 | parent::init(); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - // Provides a resized image with the max width provided |
|
| 102 | - public function ArticleImageSized($maxwidth = 250) |
|
| 103 | - { |
|
| 104 | - if ($this->AttachedImage()->getWidth() < $maxwidth) { |
|
| 105 | - return $this->AttachedImage(); |
|
| 106 | - } else { |
|
| 107 | - return $this->AttachedImage()->setWidth($maxwidth); |
|
| 108 | - } |
|
| 109 | - } |
|
| 101 | + // Provides a resized image with the max width provided |
|
| 102 | + public function ArticleImageSized($maxwidth = 250) |
|
| 103 | + { |
|
| 104 | + if ($this->AttachedImage()->getWidth() < $maxwidth) { |
|
| 105 | + return $this->AttachedImage(); |
|
| 106 | + } else { |
|
| 107 | + return $this->AttachedImage()->setWidth($maxwidth); |
|
| 108 | + } |
|
| 109 | + } |
|
| 110 | 110 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | $this->beforeUpdateCMSFields(function ($fields) { |
| 11 | 11 | $fields->renameField("Content", "Intro Content"); |
| 12 | - $fields->insertBefore(new Tab($this->getLumberjackTitle()), 'Main'); |
|
| 12 | + $fields->insertBefore(new Tab($this->getLumberjackTitle()), 'Main'); |
|
| 13 | 13 | }); |
| 14 | 14 | |
| 15 | 15 | $fields = parent::getCMSFields(); |