/[web]/nav/css/index.php
ViewVC logotype

Diff of /nav/css/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3274 by leuhmanu, Thu Mar 27 15:45:30 2014 UTC revision 3275 by leuhmanu, Sun Jun 8 15:17:54 2014 UTC
# Line 19  Line 19 
19    
20  header('Content-Type: text/css;charset=utf-8');  header('Content-Type: text/css;charset=utf-8');
21  header(sprintf('Expires: %s', gmdate('r', strtotime('+1 day'))));  header(sprintf('Expires: %s', gmdate('r', strtotime('+1 day'))));
22  echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('all.css'));  
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    

Legend:
Removed from v.3274  
changed lines
  Added in v.3275

  ViewVC Help
Powered by ViewVC 1.1.26