_tpl_vars['theme']['params']['sidebarBlocks']; foreach ($blocks as $block) { if ($block[0] == 'rss.RssBlock') { $params = $block[1]; break; } } if (empty($params['number'])) { /* still empty, probably because the user never changed the default */ $params['number'] = '5'; } } /* since we get called twice (once for the block, once for the head), cache the feeds */ if (!isset($feeds)) { list($ret, $feeds) = RssMapHelper::fetchFeedNames((int) $params['number']); if ($ret) { return $ret->wrap(__FILE__, __LINE__); } } $block =& $smarty->_tpl_vars['block']; $block['rss']['feeds'] = $feeds; $block['rss']['showMore'] = !empty($feeds); return null; } return GalleryCoreApi::error(ERROR_BAD_PARAMETER, __FILE__, __LINE__); } } ?>