mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-06-28 07:29:35 +02:00
BUGFIX: fix blog widgets so their methods are accessible from templates
This commit is contained in:
parent
55895d9515
commit
795f1a6a21
|
@ -58,7 +58,7 @@ class RSSWidget extends Widget {
|
||||||
return ($this->RSSTitle) ? $this->RSSTitle : 'RSS Feed';
|
return ($this->RSSTitle) ? $this->RSSTitle : 'RSS Feed';
|
||||||
}
|
}
|
||||||
|
|
||||||
function FeedItems() {
|
function getFeedItems() {
|
||||||
$output = new DataObjectSet();
|
$output = new DataObjectSet();
|
||||||
|
|
||||||
// Protection against infinite loops when an RSS widget pointing to this page is added to this page
|
// Protection against infinite loops when an RSS widget pointing to this page is added to this page
|
||||||
|
|
|
@ -21,7 +21,7 @@ class SubscribeRSSWidget extends Widget {
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function RSSLink() {
|
function getRSSLink() {
|
||||||
Requirements::themedCSS('subscribersswidget');
|
Requirements::themedCSS('subscribersswidget');
|
||||||
$container = BlogTree::current();
|
$container = BlogTree::current();
|
||||||
if ($container) return $container->Link() . 'rss';
|
if ($container) return $container->Link() . 'rss';
|
||||||
|
|
|
@ -47,7 +47,7 @@ class TagCloudWidget extends Widget {
|
||||||
return $this->Title ? $this->Title : 'Tag Cloud';
|
return $this->Title ? $this->Title : 'Tag Cloud';
|
||||||
}
|
}
|
||||||
|
|
||||||
function TagsCollection() {
|
function getTagsCollection() {
|
||||||
Requirements::themedCSS("tagcloud");
|
Requirements::themedCSS("tagcloud");
|
||||||
|
|
||||||
$allTags = array();
|
$allTags = array();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user