diff options
Diffstat (limited to 'en/5/nav.php')
-rw-r--r-- | en/5/nav.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/en/5/nav.php b/en/5/nav.php new file mode 100644 index 000000000..92d757009 --- /dev/null +++ b/en/5/nav.php @@ -0,0 +1,30 @@ +<?php + +$releasenotes = "https://wiki.mageia.org/en/Mageia_5_$release"; //_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( + "https://wiki.mageia.org/en/Mageia_5_Development#Development_Planning" => _r('Development roadmap'), + "https://wiki.mageia.org/en/FeatureMageia5_Review" => _r('Features review'), + /*"/{$locale}/5/" => 'Mageia 5', + "/{$locale}/downloads/" => _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; |