mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-16 14:01:34 +00:00
call hook documentListItem if available
This commit is contained in:
parent
c53c81880b
commit
ee318b643a
|
@ -280,7 +280,10 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
$previewer = new SeedDMS_Preview_Previewer($cachedir, 40);
|
$previewer = new SeedDMS_Preview_Previewer($cachedir, 40);
|
||||||
foreach($documents as $document) {
|
foreach($documents as $document) {
|
||||||
|
$txt = $this->callHook('documentListItem', $document, $previewer);
|
||||||
|
if(is_string($txt))
|
||||||
|
echo $txt;
|
||||||
|
else {
|
||||||
$owner = $document->getOwner();
|
$owner = $document->getOwner();
|
||||||
$comment = $document->getComment();
|
$comment = $document->getComment();
|
||||||
if (strlen($comment) > 150) $comment = substr($comment, 0, 147) . "...";
|
if (strlen($comment) > 150) $comment = substr($comment, 0, 147) . "...";
|
||||||
|
@ -369,6 +372,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((count($subFolders) > 0)||(count($documents) > 0)) echo "</tbody>\n</table>\n";
|
if ((count($subFolders) > 0)||(count($documents) > 0)) echo "</tbody>\n</table>\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user