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; }