aboutsummaryrefslogtreecommitdiffstats
path: root/en/7/nav.php
blob: bac0e9366008af038855a6da7b5443562df6b6cf (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
30
31
32
<?php

$releasenotes = '';
$errata       = '';
$upgradeguide = '';

$releasenotes = _r('https://wiki.mageia.org/en/Mageia_7_Release_Notes');
$errata       = _r('https://wiki.mageia.org/en/Mageia_7_Errata');
$upgradeguide = _r('https://wiki.mageia.org/en/Mageia_7_Release_Notes#Upgrading_from_Mageia_6');

$nav = array( 
//    _r("https://wiki.mageia.org/en/Mageia_8_Development") => _r('Development roadmap'),
//    _r("https://wiki.mageia.org/en/FeatureMageia8_Review") => _r('Features review'),
   $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 class="flex-sm-fill text-sm-center nav-item"><a href="%s"%s>%s</a></li>',
        $k,
        $k == $sru ? ' class="nav-link active"' : ' class="nav-link"',
        $v);
}
$pnav = implode($pnav);

echo <<<S
<div id="mgnavsub"><ul id="mgnavsubl" class="nav nav-pills flex-column flex-sm-row justify-content-center">{$pnav}</ul></div>
S;