From fa94f5f24e2a1224fbefc70aebdc1f13f83859c8 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 23 Sep 2019 16:07:05 +0000 Subject: [PATCH] wip #3054 @2 --- .../Util/html5/master/class.ws.html5.links.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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 49870a922..958a49a5b 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -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] -- 2.39.5