/** * Displays the subject that is currently being browsed to. * * @return string A string containing the HTML with the subject line */ private function displayHead() { if ($this->subject->getDataItem()->getNamespace() === SMW_NS_PROPERTY) { $caption = ''; $dv = DataValueFactory::getInstance()->newDataValueByItem(DIProperty::newFromUserLabel($this->subject->getDataItem()->getDBKey())); $this->subject->setCaption($dv->getFormattedLabel(DataValueFormatter::WIKI_LONG)); } $html = "<table class=\"smwb-factbox\" cellpadding=\"0\" cellspacing=\"0\">\n" . "<tr class=\"smwb-title\"><td colspan=\"2\">\n" . $this->subject->getLongHTMLText(smwfGetLinker()) . "\n" . "</td></tr>\n</table>\n"; return $html; }