add hook folderListHeader

This commit is contained in:
Uwe Steinmann 2013-10-08 21:10:08 +02:00
parent 9ab1160cea
commit 92a11af19f

View File

@ -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";