mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 06:27:15 +00:00
put documentListItem from Bootstrap base class in ViewDocument
This commit is contained in:
parent
141a55621b
commit
ae33edbcdc
|
@ -121,6 +121,25 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
<?php
|
||||
} /* }}} */
|
||||
|
||||
function documentListItem() { /* {{{ */
|
||||
$dms = $this->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'];
|
||||
|
|
Loading…
Reference in New Issue
Block a user