aboutsummaryrefslogtreecommitdiffstats
path: root/en/5_preview/nav.php
blob: 37199fe1fa987ea01e7ec1902f4a738d37aaef6d (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
27
28
29
<?php

$releasenotes = _r('https://wiki.mageia.org/en/Mageia_5_Release_Notes');
$errata = _r('https://wiki.mageia.org/en/Mageia_5_Errata');
$upgradeguide = _r('https://wiki.mageia.org/en/Mageia_5_Release_Notes#Upgrading_from_Mageia_4');

$nav = array( 
    "./"  => 'Mageia&nbsp;5',
//     "/{$locale}/downloads/" => _r('Download'),
    "./download_index.php" => _r('Download'),
    $releasenotes => _r('Release notes'),
    $errata => _r('Errata'),
//     "//bugs.mageia.org/" => _r('Bugs Reports'),
);

$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
<ul>{$pnav}</ul>
S;