diff options
author | Romain d'Alverny <rda@mageia.org> | 2011-06-10 17:38:41 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2011-06-10 17:38:41 +0000 |
commit | bb35053d47fc59e90bc48770aa2ac8a3e974e3fe (patch) | |
tree | 6dc1a402856b743e8aedb63b39be479e4eb5c195 | |
parent | 0818f6f3e5b479637839abda3607c37176df6aba (diff) | |
download | www-bb35053d47fc59e90bc48770aa2ac8a3e974e3fe.tar www-bb35053d47fc59e90bc48770aa2ac8a3e974e3fe.tar.gz www-bb35053d47fc59e90bc48770aa2ac8a3e974e3fe.tar.bz2 www-bb35053d47fc59e90bc48770aa2ac8a3e974e3fe.tar.xz www-bb35053d47fc59e90bc48770aa2ac8a3e974e3fe.zip |
do not show global nav in some context
-rw-r--r-- | langs.php | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -64,7 +64,7 @@ function locale_path($path) $blog_link = 'http://blog.mageia.org/'; if (in_array($locale, array('de', 'el', 'en', 'es', 'fr', 'it', 'nl', 'pl', 'pt', 'ro', 'ru', 'tr'))) - $blog_link .= $locale . '/'; + $blog_link .= $locale . '/'; $forums_link = 'http://forums.mageia.org/'; // TODO pt, zh-tw, el @@ -213,10 +213,10 @@ foreach ($nav_list as $k => $v) $title); } -echo sprintf('<div class="nav"><!--googleoff: all--><div class="nav2"><p class="loc">%s</p>', implode(' | ', $list_menu)); +$hsnav = sprintf('<div class="nav"><!--googleoff: all--><div class="nav2"><p class="loc">%s</p>', implode(' | ', $list_menu)); $options = implode($options); -echo <<<H +$hsnav .= <<<H <form id="lang_form" dir="ltr" method="get" action="/"> <!--<label for="flang">Autres langues :</label>--> <input type="hidden" name="furl" value="{$_SERVER['REQUEST_URI']}" /> @@ -227,6 +227,10 @@ echo <<<H </form> </div><!--googleon: all--></div> H; + +if (!defined('HLANG')) + echo $hsnav; + /* echo sprintf('<p class="loc">%s</p>', implode(' | ', $list_langs)); */ |