|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function lcLiip($path, $thumb = 'tile', $default = 'default.jpg') |
|
|
public function lcLiip($path, $thumb = 'tile', $default = 'default.jpg') |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
if (substr($path, 0, 1) === '/') $path = substr($path, 1); |
|
|
if (substr($path, 0, 1) === '/') $path = substr($path, 1); |
|
|
|
|
|
|
|
|
if (strpos($path, $this->getFileManagerFolder()) === false) { |
|
|
|
|
|
$path = $this->getFileManagerFolder() . '/' . $path; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($path) { |
|
|
if ($path) { |
|
|
|
|
|
if (strpos($path, $this->getFileManagerFolder()) === false) { |
|
|
|
|
|
$path = $this->getFileManagerFolder() . '/' . $path; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return $this->liipCacheHelper->getBrowserPath($path, $thumb); |
|
|
return $this->liipCacheHelper->getBrowserPath($path, $thumb); |
|
|
} else { |
|
|
} else { |