]> _ Git - cubeextranet.git/commitdiff
wip #4012 @0:20
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 30 Oct 2020 12:07:17 +0000 (12:07 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 30 Oct 2020 12:07:17 +0000 (12:07 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php
inc/ws/Util/html5/master/class.ws.html5.links.php

index 48a814e96f6ed2fb5fff18b3a4b5092692df21ff..39cd801697687e41cecc569e3256e171ec5ab724 100644 (file)
@@ -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/');
index 2264b7afabdb2c21ffd8512d121f7833e3345825..03730256a8fa6f05c21b5479a869abca1a831e2a 100644 (file)
@@ -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 !== '') {