]> _ Git - cubeextranet.git/commitdiff
wip #3054 @2
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 23 Sep 2019 16:07:05 +0000 (16:07 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 23 Sep 2019 16:07:05 +0000 (16:07 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 49870a9229b4d549daca11dce58d91c380db45ec..958a49a5b403ee021567153c76e98067edb615a1 100644 (file)
@@ -110,13 +110,10 @@ class wsHTML5Link
                 switch ($compiler->book->parametres->basketManager) {
                     case 'Remarkable':
                         return new remarkableCartLink($id, $init, $compiler);
-                        break;
                     case 'ZoomProductLink':
                         return new zoomProductLink($id, $init, $compiler);
-                        break;
                     default :
                         return new cartLink($id, $init, $compiler);
-                        break;
                 }
             case 13: // zoom area
                 return new zoomLink($id, $init, $compiler);
@@ -1745,11 +1742,6 @@ class zoomLink extends normalLink
         return 'zoom in';
     }
 
-    public function __construct($id, $init, $compiler)
-    {
-        parent::__construct($id, $init, $compiler);
-    }
-
     public function getAdditionnalContent()
     {
         $res = parent::getAdditionnalContent();
@@ -1863,9 +1855,16 @@ class zoomLink extends normalLink
 
 class zoomProductLink extends zoomLink
 {
+    public function __construct($id, $init, &$compiler)
+    {
+        $init['group'] = $init['to'];
+        parent::__construct($id, $init, $compiler);
+    }
+
     public function getZoomAttributes()
     {
-        $cart =$this->compiler->getCartData();
+        // $cart = $this->compiler->getCartData();
+        $url = '';
 
         return array_merge(parent::getZoomAttributes(),
             ['maxzoom' => $this->maxzoom_default, 'ref' => $this->to, 'shareurl' => $url, 'producturl' => $url]