$linkPages = [];
$allLinksData = [];
- $depths = [10 => 'ctpages', 20 => 'ctpages', 30 => 'cpages', 40 => 'cpages', 50 => 'pages', 60 => 'pages', 70 => 'pages', 80 => 'pages',];
usort($links, array($this, '_sortLinks'));
$ctpages[$lta->page] = '';
}
+ $d = $lta->getDepth();
+ if ($d < 30) {
+ $v = 'ctpages';
+ } else if ($d < 50) {
+ $v = 'cpages';
+ } else {
+ $v = 'pages';
+ }
- $v = $depths[$lta->getDepth()];
$$v[$lta->page] .= $c;
}
// Make old "aftersearch" link compatible with new "extra" menu option by extracting link URL
if ($normalizeKey) {
$k = mb_strtolower($k);
}
- if ($k === 'z-index' || $k==='zindex') {
- continue;
- }
$res[$k] = $v;
}
if ($this->zindex == -1 || null === $this->zindex || !$this->zindex) {
return $this->defaultZIndex;
}
+ if ($this->zindex < 10) {
+ return $this->zindex + $this->defaultZIndex;
+ }
return $this->zindex;
}