aboutsummaryrefslogtreecommitdiffstats
path: root/en/4/nav.php
blob: 42d0bef810b1b7cba10ce66aee39101b4d9b5d24 (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
<?php

$nav = array( 
    "https://wiki.mageia.org/en/Mageia_4_Development#Development_Planning" => _t('Development roadmap'),
    "https://wiki.mageia.org/en/FeatureMageia4_Review" => _t('Features review'),
    "https://wiki.mageia.org/en/Mageia_4_$release" => _t('Release notes'),
    _t('https://wiki.mageia.org/en/Mageia_4_Errata') => _t('Errata'),
    "//bugs.mageia.org/" => _t('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
<div id="mgnavsub"><ul id="mgnavsubl">{$pnav}</ul></div>
S;