add hooks preContent, postContent

This commit is contained in:
Uwe Steinmann 2019-10-18 11:06:42 +02:00
parent c06ec0de2e
commit 937f8a5678

View File

@ -447,6 +447,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
$this->contentStart();
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
echo $this->callHook('preContent');
if ($document->isLocked()) {
$lockingUser = $document->getLockingUser();
$txt = $this->callHook('documentIsLocked', $document, $lockingUser);
@ -1504,6 +1505,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
</div>
</div>
<?php
echo $this->callHook('postContent');
$this->contentEnd();
$this->htmlEndPage();
} /* }}} */