@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | { |
8 | 8 | $intro = null; |
9 | 9 | |
10 | - $this->beforeUpdateCMSFields(function ($fields) { |
|
10 | + $this->beforeUpdateCMSFields(function($fields) { |
|
11 | 11 | $fields->renameField("Content", "Intro Content"); |
12 | 12 | $fields->insertBefore(new Tab($this->getLumberjackTitle()), 'Main'); |
13 | 13 | }); |
@@ -61,9 +61,9 @@ discard block |
||
61 | 61 | |
62 | 62 | public function init() |
63 | 63 | { |
64 | - RSSFeed::linkToFeed($this->Link() . "rss"); |
|
65 | - if (Director::fileExists(project() . "/css/news.css")) { |
|
66 | - Requirements::css(project() . "/css/news.css"); |
|
64 | + RSSFeed::linkToFeed($this->Link()."rss"); |
|
65 | + if (Director::fileExists(project()."/css/news.css")) { |
|
66 | + Requirements::css(project()."/css/news.css"); |
|
67 | 67 | } else { |
68 | 68 | Requirements::css("basic-news/css/news.css"); |
69 | 69 | } |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | $rss = new RSSFeed( |
79 | 79 | $list = NewsArticle::get(), // an SS_List containing your feed items |
80 | 80 | $link = $this->Link("rss"), // a HTTP link to this feed |
81 | - $title = $config->Title . " News", // title for this feed, displayed in RSS readers |
|
82 | - $description = "All the latest news from ". $config->Title . "." // description |
|
81 | + $title = $config->Title." News", // title for this feed, displayed in RSS readers |
|
82 | + $description = "All the latest news from ".$config->Title."." // description |
|
83 | 83 | ); |
84 | 84 | // Outputs the RSS feed to the user. |
85 | 85 | return $rss->outputToBrowser(); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | public function updateCMSFields(FieldList $fields) { |
11 | 11 | $excluded = $this->owner->getExcludedSiteTreeClassNames(); |
12 | - if(!empty($excluded)) { |
|
12 | + if (!empty($excluded)) { |
|
13 | 13 | $pages = $this->getLumberjackPagesForGridfield($excluded); |
14 | 14 | $gridField = new GridField( |
15 | 15 | "ChildPages", |