tdefinition = $parser->transform($entry->tdefinition); $link = $this->interface->sefRelToAbs("index.php?option=com_glossary&letter=$entry->tletter&id=$entry->id"); // rowcounter used to discriminate between odd and even rows $entryclass = (++$rowcounter % 2) ? 'row1' : 'row0'; $listhtml .= $this->showOneTerm ($entryclass, $link, $entry, $id); } return $this->applyContentPlugins($this->showTermsList($letter, $listhtml)); } protected function showDefinition ($entry, $id) { if ($this->gconfig->termsonly AND !$id) return ' '; else return << {$this->showHTML($entry->tdefinition)} {$this->showInDiv($entry->tcomment)} {$this->showAliases($entry->taliases)} {$this->showRelated($entry->trelated)} DEFINITION; } protected function showOneTerm ($entryclass, $link, $entry, $id) { return << {$this->showHTML($entry->tterm)} {$this->showDefinition($entry, $id)} LIST_ENTRY; } protected function showAliases ($aliases) { if ($aliases) return $this->showHTML($this->showHTMLInDiv(''._GLOSSARY_ALIASES.': '.$aliases)); } protected function showRelated ($related) { } protected function showTermsList ($letter, $listhtml) { return << {$this->show(_GLOSSARY_TERM_HEAD)} {$this->show(_GLOSSARY_DEFINITION_HEAD)} $listhtml GLOSS_LIST; } protected function applyContentPlugins ($text) { if ($this->gconfig->triggerplugins) { $row = new stdClass(); $row->text = $text; $params = array(); $this->interface->triggerMambots('content', 'onPrepareContent', array($row, $params, 0), true); return $row->text; } else return $text; } }