diff options
author | Romain d'Alverny <rda@mageia.org> | 2011-06-10 16:17:37 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2011-06-10 16:17:37 +0000 |
commit | 2b77116f34472bf02a2ca4a5584350b38f47ab64 (patch) | |
tree | 40ef61ee8b2438b3ae4155cbdb823f8356b98b4f /release_counter.php | |
parent | 6e04cfcb93decaad8bff29248688ed0273649b0e (diff) | |
download | www-2b77116f34472bf02a2ca4a5584350b38f47ab64.tar www-2b77116f34472bf02a2ca4a5584350b38f47ab64.tar.gz www-2b77116f34472bf02a2ca4a5584350b38f47ab64.tar.bz2 www-2b77116f34472bf02a2ca4a5584350b38f47ab64.tar.xz www-2b77116f34472bf02a2ca4a5584350b38f47ab64.zip |
moving current pt/ into pt-br/
Diffstat (limited to 'release_counter.php')
-rw-r--r-- | release_counter.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/release_counter.php b/release_counter.php index f5e3874dc..5e182db60 100644 --- a/release_counter.php +++ b/release_counter.php @@ -5,7 +5,7 @@ if (isset($_GET['l'])) { $locale = $_GET['l']; } -else { +elseif (!isset($locale)) { $path = explode('/', $_SERVER['REQUEST_URI']); $locale = $path[1]; if (strlen($locale) > 5) @@ -30,9 +30,11 @@ $release_ts = strtotime('2011/06/01 23:30:00'); $now_ts = time(); $diff = $release_ts - $now_ts; $s = ''; +$diff = 0; -if ($diff < 0) { +if ($diff <= 0) { // todo (rda) + $s = '<h2><a href="/en/1/">Mageia 1 is here</a></h2>'; } else { $diff = floor($diff / 3600 / 24); @@ -58,6 +60,8 @@ div#mgacount { } #mgacount h2 { padding: 0.6em; font-size: 220%; color: #fff; font-weight: normal; margin-bottom: 0; } #mgacount h2 span { font-size: 45%; vertical-align: 30%; margin: 0 1em; } +#mgacount h2 a, +#mgacount h2 a:visited { color: #fff; } </style> <div id="mgacount">{$s}</div> S; |