mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-06 21:29:27 +00:00
add hook folderListHeader
This commit is contained in:
parent
9ab1160cea
commit
92a11af19f
|
@ -212,6 +212,10 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
$documents = SeedDMS_Core_DMS::filterAccess($documents, $user, M_READ);
|
||||
|
||||
if ((count($subFolders) > 0)||(count($documents) > 0)){
|
||||
$txt = $this->callHook('folderListHeader', $folder, $orderby);
|
||||
if(is_string($txt))
|
||||
echo $txt;
|
||||
else {
|
||||
print "<table class=\"table\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th></th>\n";
|
||||
|
@ -222,6 +226,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
print "<th>".getMLText("action")."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
}
|
||||
}
|
||||
else printMLText("empty_folder_list");
|
||||
|
||||
|
||||
|
@ -394,7 +399,13 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
}
|
||||
|
||||
if ((count($subFolders) > 0)||(count($documents) > 0)) echo "</tbody>\n</table>\n";
|
||||
if ((count($subFolders) > 0)||(count($documents) > 0)) {
|
||||
$txt = $this->callHook('folderListFooter', $folder);
|
||||
if(is_string($txt))
|
||||
echo $txt;
|
||||
else
|
||||
echo "</tbody>\n</table>\n";
|
||||
}
|
||||
|
||||
|
||||
echo "</div>\n";
|
||||
|
|
Loading…
Reference in New Issue
Block a user