blob: e5d695b61eb0f2c0da900a1300fa60c608d52da5 (
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
33
34
35
|
<?php
/**
* mageia.org global nav bar.
*
* PHP version 5.4
*
* @category Mageia
* @package Mageia\Web\nav
* @author rda <rda@mageia.org>
* @link http://nav.mageia.org/
*
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL v2+
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License aspublished by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*/
header('Content-Type: text/css;charset=utf-8');
header(sprintf('Expires: %s', gmdate('r', strtotime('+1 day'))));
$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('bootstrap_nav.css'));
echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('bootstrap_nav_theme.css'));
}
|