public function getCSS()
{
$attributes = $this->getZoomAttributes();
- zoomLink::generateImage($attributes, $this->compiler, 'layerlink', 'layer');
+ if (!$this->rightClone) {
+ 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 getURL()
{
$attributes = $this->getZoomAttributes();
- zoomLink::generateImage($attributes, $this->compiler, 'downloadportion', 'downloadportion');
+ if (!$this->rightClone) {
+ zoomLink::generateImage($attributes, $this->compiler, 'downloadportion', 'downloadportion');
+ }
return 'data/links/downloadportion_' . $attributes['id'] . '.jpg';
}
$res .= ' data-' . $key . '="' . htmlspecialchars($val, ENT_QUOTES) . '"';
}
- self::generateImage($this->getZoomAttributes(), $this->compiler, 'zoomarea', 'zoom');
+ if(!$this->rightClone) {
+ self::generateImage($this->getZoomAttributes(), $this->compiler, 'zoomarea', 'zoom');
+ }
return $res;
}