From ae33edbcdceb5412af7897a6f332ce8f1d766c2b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 10 Mar 2017 20:08:01 +0100 Subject: [PATCH] put documentListItem from Bootstrap base class in ViewDocument --- views/bootstrap/class.ViewDocument.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 281180ab3..365303b54 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -121,6 +121,25 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { params['dms']; + $user = $this->params['user']; + $previewwidth = $this->params['previewWidthList']; + $cachedir = $this->params['cachedir']; + $document = $this->params['document']; + if($document) { + if ($document->getAccessMode($user) >= M_READ) { + $previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth); + $txt = $this->callHook('documentListItem', $document, $previewer, false, ''); + if(is_string($txt)) + $content = $txt; + else + $content = $this->documentListRow($document, $previewer, true); + echo $content; + } + } + } /* }}} */ + function timelinedata() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user'];