From: vincent@cubedesigners.com Date: Tue, 27 Apr 2021 07:46:31 +0000 (+0000) Subject: wip #4424 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2bfa8119e744e0c2907b42071dbcfacdd1b3e31f;p=cubeextranet.git wip #4424 @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 e54d0859e..fe98025ea 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -770,7 +770,7 @@ class wsHTML5Compiler return $virtual; } if (!in_array($virtual, $this->numerotation)) { - return 1; + return $virtual; } $p = array_search($virtual, $this->numerotation); return $p + 1; 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 348f088ac..7637b0964 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -188,8 +188,8 @@ class wsHTML5Link $compiler->addAudiodescription($init); break; case 26: - $compiler->addPageLabel($init['page'], $init['to']); - break; + case 40: + return new anchorLink($id, $init, $compiler); case 27: return new eventOverlayLink($id, $init, $compiler); case 29: @@ -224,8 +224,6 @@ class wsHTML5Link break; case 39: return new layerLink($id, $init, $compiler); - case 40: - return new anchorLink($id, $init, $compiler); default: return null; } @@ -680,6 +678,7 @@ class anchorLink extends wsHTML5Link public function getHTMLContainer() { + $this->compiler->addPageLabel($this->page, $this->to); return '
getAdditionnalContent() . '>' . $this->getHTMLContent() . '
'; } @@ -1045,15 +1044,14 @@ class internalLink extends normalLink if (count($e) > 1) { $anchor = trim($e[1], '# '); } - - if ($this->numerotation === 'physical') { + if ($anchor) { + $res = $anchor; + } else if ($this->numerotation === 'physical') { $res = $p; } else { $res = $this->compiler->virtualToPhysical($p); } - if ($anchor) { - $res .= '/' . $anchor; - } + return $res; }