mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00:00
MINOR: moved rss feed link to its own function to allow extensions to override
This commit is contained in:
parent
e688e0687e
commit
fea6a12472
@ -248,8 +248,8 @@ class BlogTree_Controller extends Page_Controller {
|
|||||||
function init() {
|
function init() {
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
// This will create a <link> tag point to the RSS feed
|
$this->IncludeBlogRSS();
|
||||||
RSSFeed::linkToFeed($this->Link() . "rss", _t('BlogHolder.RSSFEED',"RSS feed of these blogs"));
|
|
||||||
Requirements::themedCSS("blog");
|
Requirements::themedCSS("blog");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -260,6 +260,11 @@ class BlogTree_Controller extends Page_Controller {
|
|||||||
return $this->Entries("$start,$limit", BlogURL::tag(), BlogURL::date());
|
return $this->Entries("$start,$limit", BlogURL::tag(), BlogURL::date());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function IncludeBlogRSS() {
|
||||||
|
// This will create a <link> tag point to the RSS feed
|
||||||
|
RSSFeed::linkToFeed($this->Link() . "rss", _t('BlogHolder.RSSFEED',"RSS feed of these blogs"));
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @todo: It doesn't look like these are used. Remove if no-one complains - Hamish
|
* @todo: It doesn't look like these are used. Remove if no-one complains - Hamish
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user