adding title when fancybox is displayed
This commit is contained in:
parent
c932f93a40
commit
9c1cc15c8d
|
@ -95,7 +95,7 @@ class TileSingle extends TileBase {
|
||||||
public function get($extra = '') {
|
public function get($extra = '') {
|
||||||
// !HACK! file path needs to be encoded twice because files app decode twice url, so any special chars like + or & in filename
|
// !HACK! file path needs to be encoded twice because files app decode twice url, so any special chars like + or & in filename
|
||||||
// !HACK! will result in failing of opening them
|
// !HACK! will result in failing of opening them
|
||||||
return '<a rel="images" href="'.\OCP\Util::linkTo('files', 'download.php').'?file='.urlencode(urlencode($this->getPath())).'"><img rel="images" src="'.\OCP\Util::linkTo('gallery', 'ajax/thumbnail.php').'&filepath='.urlencode($this->getPath()).'" '.$extra.'></a>';
|
return '<a rel="images" title="'.basename($this->getPath()).'" href="'.\OCP\Util::linkTo('files', 'download.php').'?file='.urlencode(urlencode($this->getPath())).'"><img rel="images" src="'.\OCP\Util::linkTo('gallery', 'ajax/thumbnail.php').'&filepath='.urlencode($this->getPath()).'" '.$extra.'></a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMiniatureSrc() {
|
public function getMiniatureSrc() {
|
||||||
|
|
Loading…
Reference in New Issue