]> _ Git - cubeextranet.git/commitdiff
wip #2231 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 3 Oct 2018 09:00:02 +0000 (09:00 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 3 Oct 2018 09:00:02 +0000 (09:00 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index 1a3d942291326361933c01c8a226ad10978fb4fb..e5a9eb11744e95b78785487602b775659c13c601 100644 (file)
@@ -1036,6 +1036,7 @@ class wsHTML5Compiler
                $pages = array();
                $cpages = array();
                $css = array();
+               $linkPages = [];
 
                usort($links, array($this, '_sortLinks'));
 
@@ -1058,6 +1059,10 @@ class wsHTML5Compiler
                                $this->config->afterSearchTooltip = $link->infobulle;
                        }
 
+                       if (strpos($link->page, 'link_') === 0) {
+                               $linkPages[$link->page] = true;
+                       }
+
 
                        $c = $link->getHTMLContainer();
                        $css[] = $link->getCSSContainer();
@@ -1083,6 +1088,9 @@ class wsHTML5Compiler
                }
                $allpages[] = 'background';
                $allpages[] = 'archives';
+               foreach ($linkPages as $linkPage => $true) {
+                       $allpages[] = $linkPage;
+               }
 
                foreach ($allpages as $i) {