]> _ Git - cubeextranet.git/commitdiff
wip #2286 @3
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 10 Oct 2018 15:20:20 +0000 (15:20 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 10 Oct 2018 15:20:20 +0000 (15:20 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php
index.php

index 2321406a08f73ae52a78719a7eaa4473d76d6c1c..53dc96f50a0bb164d4f50760508d7074e32eb7de 100644 (file)
@@ -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
 {
index ee000b00456fa9a6f1d1030a766c1cf2d470e264..89185cb0b118a143a6e517806ee78a14f717c171 100644 (file)
--- 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());
 }