From: vincent@cubedesigners.com Date: Tue, 21 Jul 2020 12:24:13 +0000 (+0000) Subject: wip #3801 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6a848dee70b0a9bb9a32576a5f6c08d51e086d82;p=cubeextranet.git wip #3801 @0.5 --- 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 ce7cdb3eb..88007c7f3 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -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']; 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 7a9289733..53fb1622a 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -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; }