function getCategoryLink() { if (!isset($this->_category)) { global $smartsection_category_handler; $this->_category = $smartsection_category_handler->get($this->getVar('categoryid')); } return $this->_category->getCategoryLink(); }