createOption('CreateTitle', _CLT_TITLE, 'yesno', 'yes'); $this->createOption('Split', _NOTE_SPLT, 'yesno', 'no'); } function getEventList() { $events = array ( 'PreItem', 'PreSkinParse' ); return $events; } function init() { $language = ereg_replace( '[\\|/]', '', getLanguageName()); if (file_exists($this->getDirectory() . $language . '.php')) { include_once($this->getDirectory() . $language . '.php'); }else { include_once($this->getDirectory() . 'english.php'); } } function event_PreSkinParse($data) { $this->skinType = $data['type']; } function event_PreItem($data) { $skinType = $this->skinType; $this->nodeId = 0; $this->noteList = array(); $this->itemId = $data['item']->itemid; $cData = array( &$this, 'footnote' ); $iBody =& $data['item']->body; $iMore =& $data['item']->more; $iBody = preg_replace_callback("/\(\((.*)\)\)/Us", $cData, $iBody); $nsplit = $this->getOption('Split'); if ($nsplit == 'yes' && $skinType != 'item') { if ($footNote = implode('', $this->noteList)) { $iBody .= '