item()) { $url = rss::item_feed($theme->item()); } else if ($theme->tag()) { $url = rss::tag_feed($theme->tag()); } if (!empty($url)) { return ""; } } static function sidebar_blocks($theme) { // @todo this needs to be data driven if (!$theme->item()) { return; } $block = new Block(); $block->css_id = "gRss"; $block->title = t("Available RSS Feeds"); $block->content = new View("rss_block.html"); $block->content->feeds = rss::get_feeds($theme->item()); return $block; } }