diff --git a/views/bootstrap/class.ViewFolder.php b/views/bootstrap/class.ViewFolder.php index 3fbb91fc5..2cdf083ac 100644 --- a/views/bootstrap/class.ViewFolder.php +++ b/views/bootstrap/class.ViewFolder.php @@ -212,15 +212,20 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style { $documents = SeedDMS_Core_DMS::filterAccess($documents, $user, M_READ); if ((count($subFolders) > 0)||(count($documents) > 0)){ - print ""; - print "\n\n"; - print "\n"; - print "\n"; -// print "\n"; - print "\n"; -// print "\n"; - print "\n"; - print "\n\n\n"; + $txt = $this->callHook('folderListHeader', $folder, $orderby); + if(is_string($txt)) + echo $txt; + else { + print "
".getMLText("name")."".getMLText("owner")."".getMLText("status")."".getMLText("version")."".getMLText("action")."
"; + print "\n\n"; + print "\n"; + print "\n"; + // print "\n"; + print "\n"; + // print "\n"; + print "\n"; + print "\n\n\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 "\n
".getMLText("name")."".getMLText("owner")."".getMLText("status")."".getMLText("version")."".getMLText("action")."
\n"; + if ((count($subFolders) > 0)||(count($documents) > 0)) { + $txt = $this->callHook('folderListFooter', $folder); + if(is_string($txt)) + echo $txt; + else + echo "\n\n"; + } echo "\n";