aboutsummaryrefslogtreecommitdiffstats
path: root/en/4/nav.php
blob: 8ea54b83e05f3c39275edcd0dd90c47ed7eb49c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
$releasenotes = _d('https://wiki.mageia.org/en/Mageia_4_Release_Notes');
$errata = _d('https://wiki.mageia.org/en/Mageia_4_Errata');
$upgradeguide = _d('https://wiki.mageia.org/en/Mageia_4_Release_Notes#Upgrading_from_Mageia_3');

$nav = array( 
    "/{$locale}/4/"  => _t('Mageia&nbsp;4'),
    "/{$locale}/downloads/" => _t('Download'),
    $releasenotes => _t('Release notes'),
    $errata => _t('Errata'),
);

$sru = trim($_SERVER['REQUEST_URI']);

$pnav = array();
foreach ($nav as $k => $v) {
    $pnav[] = sprintf('<li><a href="%s"%s>%s</a></li>',
        $k,
        $k == $sru ? ' class="sel"' : null,
        $v);
}
$pnav = implode($pnav);

echo <<<S
<div id="mgnavsub"><ul id="mgnavsubl">{$pnav}</ul></div>
S;