]> _ Git - cubeextranet.git/commitdiff
wip #3801 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 21 Jul 2020 12:24:13 +0000 (12:24 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 21 Jul 2020 12:24:13 +0000 (12:24 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php
inc/ws/Util/html5/master/class.ws.html5.links.php

index ce7cdb3ebbf5dcab7c4e4649aa580331d58c8f06..88007c7f3ca554b3fa3ef0c3831580467362e962 100644 (file)
@@ -344,6 +344,7 @@ class wsHTML5Compiler
         $this->config->bookmarkDisablePages = cubeArray::parseRange($this->config->bookmarkDisablePages);
         $this->config->rasterizePages = cubeArray::parseRange($this->config->rasterizePages);
         $this->config->vectorPages = array_diff(cubeArray::parseRange($this->config->vectorPages), $this->config->rasterizePages);
+        $this->config->triggersLinks = [];
     }
 
     protected function populateConfig()
@@ -1523,6 +1524,11 @@ class wsHTML5Compiler
         $this->config->bookmarkGroups[] = array('page' => ($link['page']), 'nb' => $link['to'], 'name' => $link['extra']);
     }
 
+    public function addTriggersLink($page, $link)
+    {
+        $this->config->triggersLinks[] = ['page' => $page, 'link' => $link];
+    }
+
     public function addAudiodescription($link)
     {
         $this->config->audiodescription[$link['page']] = $link['to'];
index 7a9289733d47dca11c5d8b2dd73bc17666ee7b83..53fb1622af8433405b4d2a589db0c7348e98b950 100644 (file)
@@ -196,6 +196,8 @@ class wsHTML5Link
                 break;
             case 37:
                 return new downloadPortionLink($id, $init, $compiler);
+            case 38:
+                $compiler->addTriggersLink($init['page'], $init['to']);
             default:
                 return null;
         }