}
case 32:
return new showLinkLink($id, $init, $compiler);
+ case 33:
+ return new zoomhdLink($id, $init, $compiler);
default:
return null;
}
}
}
+class zoomhdLink extends normalLink
+{
+ public function getURL()
+ {
+ $this->copyExternalFile($this->to);
+ return '#/zoomhd/' . md5($this->to);
+ }
+
+ public function getAdditionnalContent()
+ {
+ $res = parent::getAdditionnalContent();
+ $res .= ' data-image="' . $this->to . '" ';
+ return $res;
+ }
+
+ public function getDefaultTooltip()
+ {
+ return 'zoom in';
+ }
+}
class htmlMultimediaPopupImage extends normalLink
{
set_exception_handler('exception_handle');
-function exception_handle(Exception $e)
+function exception_handle($e)
{
error_log(get_class($e) . ' : ' . $e->getMessage() . ' : ' . $e->getFile() . ' at line ' . $e->getLine());
}