href = $href; $this->label = $label; $this->loc = $loc; if(preg_match('#.*(.).*#',$label,$matches)) { $this->accessKey = strtolower($matches[1]); } if ($loc && $loc == $GLOBALS['rss']->header->active) { $this->isActive=true; } } function render() { $GLOBALS['rss'] -> currentNavItem = &$this; rss_require(RSS::getTemplateFile("navitem.php"), false); } } class Navigation { var $items = array(); var $postRender = ""; function Navigation() { $this->appendNavItem(getPath(),__('Home'),LOCATION_HOME); if (!getConfig("rss.config.restrictrefresh")) { $this->appendNavItem(getPath().'update.php',__('Refresh'),LOCATION_UPDATE); } $this->appendNavItem(getPath().'search.php',__('Search'),LOCATION_SEARCH); $this->appendNavItem(getPath().'admin/',__('Admin'),LOCATION_ADMIN); if (($an = rss_plugin_hook('rss.plugins.afternav', null)) != null) { $this -> postRender .= $an; } $GLOBALS['rss']->nav = $this; rss_plugin_hook('rss.plugins.navelements', null); } function appendNavItem($url,$label,$loc = null) { $this->items[] = new NavItem($url,$label,$loc); } function addNavItem($url,$label,$loc = null) { $item = array_pop($this->items); $this->appendNavItem($url,$label,$loc); $this->items[] = $item; } function render() { rss_require(RSS::getTemplateFile("nav.php")); } } ?>