mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
pass previewer to printClipboard()
This commit is contained in:
parent
3dcda5e4ca
commit
71ed09ec0c
|
@ -102,6 +102,8 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
||||||
$this->pageNavigation($this->getFolderPathHTML($folder), "view_folder", $folder);
|
$this->pageNavigation($this->getFolderPathHTML($folder), "view_folder", $folder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth);
|
||||||
|
|
||||||
echo $this->callHook('preContent');
|
echo $this->callHook('preContent');
|
||||||
|
|
||||||
echo "<div class=\"row-fluid\">\n";
|
echo "<div class=\"row-fluid\">\n";
|
||||||
|
@ -140,7 +142,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
echo $this->callHook('leftContent');
|
echo $this->callHook('leftContent');
|
||||||
|
|
||||||
if ($enableClipboard) $this->printClipboard($this->params['session']->getClipboard());
|
if ($enableClipboard) $this->printClipboard($this->params['session']->getClipboard(), $previewer);
|
||||||
|
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
}
|
}
|
||||||
|
@ -248,7 +250,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
||||||
if(is_string($txt))
|
if(is_string($txt))
|
||||||
echo $txt;
|
echo $txt;
|
||||||
else {
|
else {
|
||||||
print "<table id=\"viewfolder-table\" class=\"table\">";
|
print "<table id=\"viewfolder-table\" class=\"table table-condensed\">";
|
||||||
print "<thead>\n<tr>\n";
|
print "<thead>\n<tr>\n";
|
||||||
print "<th></th>\n";
|
print "<th></th>\n";
|
||||||
print "<th><a href=\"../out/out.ViewFolder.php?folderid=". $folderid .($orderby=="n"?"&orderby=s":"&orderby=n")."\">".getMLText("name")."</a></th>\n";
|
print "<th><a href=\"../out/out.ViewFolder.php?folderid=". $folderid .($orderby=="n"?"&orderby=s":"&orderby=n")."\">".getMLText("name")."</a></th>\n";
|
||||||
|
@ -271,8 +273,6 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth);
|
|
||||||
foreach($documents as $document) {
|
foreach($documents as $document) {
|
||||||
$txt = $this->callHook('documentListItem', $document, $previewer);
|
$txt = $this->callHook('documentListItem', $document, $previewer);
|
||||||
if(is_string($txt))
|
if(is_string($txt))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user