oDocument; // get document id if(!isset($oDocument)){ return 'RSS'; } $iFId = $oDocument->getID(); // return link...there MIGHT be a nicer way of doing this? return "RSS ".KTrss::getImageLink($iFId, 'document'); } function do_main() { //get document object $oDocument = $this->oDocument; // get document id $iDId = $oDocument->getID(); $oTemplating =& KTTemplating::getSingleton(); $oTemplate = $oTemplating->loadTemplate('RSSPlugin/rssdocumentaction'); $aTemplateData = array( 'context' => $this, 'link' => KTrss::getRssLink($iDId, 'document'), 'linkIcon' => KTrss::getImageLink($iDId, 'document'), ); return $oTemplate->render($aTemplateData); } } ?>