mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-18 23:51:20 +00:00
add new hooks folderInfo and folderListItem
This commit is contained in:
parent
c5a7ff83f0
commit
35063313a9
|
@ -131,6 +131,10 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
echo "</div>\n";
|
||||
echo "<div class=\"span".$RightColumnSpan."\">\n";
|
||||
|
||||
$txt = $this->callHook('folderInfo', $folder);
|
||||
if(is_string($txt))
|
||||
echo $txt;
|
||||
else {
|
||||
$this->contentHeading(getMLText("folder_infos"));
|
||||
|
||||
$owner = $folder->getOwner();
|
||||
|
@ -187,6 +191,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
echo "</table>\n";
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
|
||||
$this->contentHeading(getMLText("folder_contents"));
|
||||
|
||||
|
@ -210,7 +215,10 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
|
||||
foreach($subFolders as $subFolder) {
|
||||
|
||||
$txt = $this->callHook('folderListItem', $subFolder);
|
||||
if(is_string($txt))
|
||||
echo $txt;
|
||||
else {
|
||||
$owner = $subFolder->getOwner();
|
||||
$comment = $subFolder->getComment();
|
||||
if (strlen($comment) > 150) $comment = substr($comment, 0, 147) . "...";
|
||||
|
@ -277,6 +285,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
print "</td>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
}
|
||||
|
||||
$previewer = new SeedDMS_Preview_Previewer($cachedir, 40);
|
||||
foreach($documents as $document) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user