From: vincent@cubedesigners.com Date: Wed, 10 Oct 2018 15:20:20 +0000 (+0000) Subject: wip #2286 @3 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=afdbd662969a52770b4198e554d32661644f73c1;p=cubeextranet.git wip #2286 @3 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index 2321406a0..53dc96f50 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -167,6 +167,8 @@ class wsHTML5Link } case 32: return new showLinkLink($id, $init, $compiler); + case 33: + return new zoomhdLink($id, $init, $compiler); default: return null; } @@ -506,6 +508,26 @@ class htmlMultimediaPopupLink extends htmlMultimediaPopupImage } } +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 { diff --git a/index.php b/index.php index ee000b004..89185cb0b 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ 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()); }