1 |
rda |
1096 |
<?php |
2 |
rda |
2051 |
/** |
3 |
|
|
* mageia.org global nav bar. |
4 |
|
|
* |
5 |
|
|
* PHP version 5.4 |
6 |
|
|
* |
7 |
|
|
* @category Mageia |
8 |
|
|
* @package Mageia\Web\nav |
9 |
|
|
* @author rda <rda@mageia.org> |
10 |
|
|
* @link http://nav.mageia.org/ |
11 |
|
|
* |
12 |
|
|
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL v2+ |
13 |
|
|
* |
14 |
|
|
* This program is free software; you can redistribute it and/or modify it |
15 |
|
|
* under the terms of the GNU General Public License aspublished by the |
16 |
|
|
* Free Software Foundation; either version 2 of the License, or (at your |
17 |
|
|
* option) any later version. |
18 |
|
|
*/ |
19 |
|
|
|
20 |
rda |
1096 |
header('Content-Type: text/css;charset=utf-8'); |
21 |
|
|
header(sprintf('Expires: %s', gmdate('r', strtotime('+1 day')))); |
22 |
leuhmanu |
3275 |
|
23 |
|
|
$style = isset($_GET['s']) ? trim($_GET['s']) : null; |
24 |
|
|
|
25 |
|
|
if ( $style == 'Center' ){ |
26 |
|
|
echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('source.css')); |
27 |
|
|
echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('center.css')); |
28 |
|
|
echo "/*if lang_from missing, add some space*/ #nav li:last-child { padding-right:143px }"; |
29 |
|
|
} |
30 |
|
|
else { |
31 |
|
|
echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('source.css')); |
32 |
|
|
} |
33 |
|
|
|
34 |
|
|
|