public function getCSS()
{
- zoomLink::generateImage($this->getZoomAttributes(), $this->compiler, 'layerlink', 'layer');
- return 'background-image:url(../links/layer_' . $this->id . '.jpg);background-size:100% 100%;background-repeat:no-repeat;';
+ $attributes = $this->getZoomAttributes();
+ zoomLink::generateImage($attributes, $this->compiler, 'layerlink', 'layer');
+ return 'background-image:url(../links/layer_' . $attributes['id'] . '.jpg);background-size:100% 100%;background-repeat:no-repeat;';
}
public function getZoomAttributes()
{
return [
- 'id' => $this->id,
+ 'id' => $this->uid,
'page' => $this->page,
'maxzoom' => $this->maxzoom_default,
'width' => round($this->width),
{
public function getURL()
{
- zoomLink::generateImage($this->getZoomAttributes(), $this->compiler, 'downloadportion', 'downloadportion');
- return 'data/links/downloadportion_' . $this->id . '.jpg';
+ $attributes = $this->getZoomAttributes();
+ zoomLink::generateImage($attributes, $this->compiler, 'downloadportion', 'downloadportion');
+ return 'data/links/downloadportion_' . $attributes['id'] . '.jpg';
}
public function getZoomAttributes()
public function getZoomAttributes()
{
return [
- 'id' => $this->id,
+ 'id' => $this->uid,
'page' => $this->page,
'maxzoom' => empty($this->to) ? $this->maxzoom_default : $this->to,
'group' => implode(',', $this->getGroups()),