call hook documentListItem if available

This commit is contained in:
Uwe Steinmann 2013-07-31 17:29:55 +02:00
parent c53c81880b
commit ee318b643a

View File

@ -280,7 +280,10 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
$previewer = new SeedDMS_Preview_Previewer($cachedir, 40);
foreach($documents as $document) {
$txt = $this->callHook('documentListItem', $document, $previewer);
if(is_string($txt))
echo $txt;
else {
$owner = $document->getOwner();
$comment = $document->getComment();
if (strlen($comment) > 150) $comment = substr($comment, 0, 147) . "...";
@ -369,6 +372,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
print "</tr>\n";
}
}
}
if ((count($subFolders) > 0)||(count($documents) > 0)) echo "</tbody>\n</table>\n";