return new downloadPortionLink($id, $init, $compiler);
case 38:
$compiler->addTriggersLink($init['page'], $init['to']);
+ break;
+ case 39:
+ return new layerLink($id, $init, $compiler);
default:
return null;
}
}
+class layerLink extends imageLink
+{
+ protected $maxzoom_default = 4;
+
+ 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;';
+ }
+
+ public function getZoomAttributes()
+ {
+ return [
+ 'id' => $this->id,
+ 'page' => $this->page,
+ 'maxzoom' => $this->maxzoom_default,
+ 'width' => round($this->width),
+ 'height' => round($this->height),
+ 'x' => round($this->left),
+ 'y' => round($this->top),
+ ];
+ }
+}
+
class colorLink extends contentLink
{
public function getCSS()
<!-- Executed before build -->\r
<preBuildCommand />\r
<!-- Executed after build -->\r
- <postBuildCommand alwaysRun="False">"C:\ProgramData\chocolatey\lib\kitty\tools\kscp.exe" -agent -batch "$(OutputDir)\$(OutputName)" extranet@alien.cubedesigners.com:/home/extranet/www/swf</postBuildCommand>\r
+ <postBuildCommand alwaysRun="False">"scp.exe" "/cygdrive/H/Works/cubeExtranet/swf/$(OutputName)" extranet@alien.cubedesigners.com:/home/extranet/www/swf</postBuildCommand>\r
<!-- Other project options -->\r
<options>\r
<option showHiddenPaths="False" />\r