diff options
author | Manuel Hiebel <leuhmanu@mageia.org> | 2014-05-02 21:16:35 +0000 |
---|---|---|
committer | Manuel Hiebel <leuhmanu@mageia.org> | 2014-05-02 21:16:35 +0000 |
commit | ee958bc534fe7064c9f2191ca2f9a82eed82c93b (patch) | |
tree | 4e74e4aa3f09a3ea306dd96ce8fdb16c9499414a /_nav/css/index.php | |
parent | e4727d9e3b624c4358a488bcc7f28de355edb88d (diff) | |
download | www-ee958bc534fe7064c9f2191ca2f9a82eed82c93b.tar www-ee958bc534fe7064c9f2191ca2f9a82eed82c93b.tar.gz www-ee958bc534fe7064c9f2191ca2f9a82eed82c93b.tar.bz2 www-ee958bc534fe7064c9f2191ca2f9a82eed82c93b.tar.xz www-ee958bc534fe7064c9f2191ca2f9a82eed82c93b.zip |
add center style for nav
Diffstat (limited to '_nav/css/index.php')
-rw-r--r-- | _nav/css/index.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/_nav/css/index.php b/_nav/css/index.php index 66604b202..a7aafd6e2 100644 --- a/_nav/css/index.php +++ b/_nav/css/index.php @@ -19,4 +19,16 @@ header('Content-Type: text/css;charset=utf-8'); header(sprintf('Expires: %s', gmdate('r', strtotime('+1 day')))); -echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('all.css')); + +$style = isset($_GET['s']) ? trim($_GET['s']) : null; + + if ( $style == 'Center' ){ + echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('source.css')); + echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('center.css')); + echo "/*if lang_from missing, add some space*/ #nav li:last-child { padding-right:143px }"; + } + else { + echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('source.css')); + } + + |