From: vincent@cubedesigners.com Date: Fri, 30 Oct 2020 12:07:17 +0000 (+0000) Subject: wip #4012 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=167cfe9d9f0f769987182159bcbadcede337abe1;p=cubeextranet.git wip #4012 @0:20 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index 48a814e96..39cd80169 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1433,6 +1433,17 @@ class wsHTML5Compiler wsLinks::getLinksAndRulersFromFile($this->book_id, $links, $rulers); + if ($this->book->parametres->basketManager === 'Puma') { + foreach ($links as $k => $init) { + if ($init['type'] == 12 && isset($this->config->product_zoom_references[$init['to']]) && count($this->config->product_zoom_references[$init['to']]) > 0 && implode('', $this->config->product_zoom_references[$init['to']]) != '') { + $init['infobulle'] = 'Digital information'; + $init['animation'] = 'reflet-anim.html'; + $links[$k] = $init; + } + } + + } + // Custom landing page content if ($this->book->parametres->landingPage != '') { $d = $this->unzipFile($this->book->parametres->landingPage, false, 'data/landing-page/'); 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 2264b7afa..03730256a 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -113,9 +113,6 @@ class wsHTML5Link return new actionLink($id, $init, $compiler); case 12: if ($compiler->book->parametres->basketManager === 'Puma') { - if (isset($compiler->config->product_zoom_references[$init['to']]) && count($compiler->config->product_zoom_references[$init['to']]) > 0 && implode('', $compiler->config->product_zoom_references[$init['to']]) != '') { - $init['infobulle'] = 'Digital information'; - } return new zoomProductLink($id, $init, $compiler); } if ($compiler->book->parametres->product_zoom_references !== '') {