From 15e0e56bb18a1296ef5cd8b5ee785f5e664b3069 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 10 Mar 2017 11:33:13 +0100 Subject: [PATCH] add method documentListItem() --- views/bootstrap/class.Bootstrap.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 1fc771a46..702253bc6 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -129,7 +129,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);; if(!$nofooter) { $this->footNote(); if($this->params['showmissingtranslations']) { - $this->missingḺanguageKeys(); + $this->missingLanguageKeys(); } } echo ''."\n"; @@ -172,7 +172,22 @@ background-image: linear-gradient(to bottom, #882222, #111111);; } } /* }}} */ - function missingḺanguageKeys() { /* {{{ */ + function documentListItem() { /* {{{ */ + $dms = $this->params['dms']; + $user = $this->params['user']; + $previewwidth = $this->params['previewWidthList']; + $cachedir = $this->params['cachedir']; + $document = $dms->getDocument($_GET['id']); + if($document) { + if ($document->getAccessMode($user) >= M_READ) { + $previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth); + $content = $this->documentListRow($document, $previewer, true); + echo $content; + } + } + } /* }}} */ + + function missingLanguageKeys() { /* {{{ */ global $MISSING_LANG, $LANG; if($MISSING_LANG) { echo '
'."\n";