diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-05-11 12:08:19 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-05-11 12:08:19 +0000 |
commit | f2e1bbe1ba5ce97ef788ec7055014cfd94811dc4 (patch) | |
tree | 3c3371f891f85c67a17d532f80c0f6e2ea8cdec5 /langs.php | |
parent | bc894a2a5095b92037a665d1b14015a487d0d175 (diff) | |
download | www-f2e1bbe1ba5ce97ef788ec7055014cfd94811dc4.tar www-f2e1bbe1ba5ce97ef788ec7055014cfd94811dc4.tar.gz www-f2e1bbe1ba5ce97ef788ec7055014cfd94811dc4.tar.bz2 www-f2e1bbe1ba5ce97ef788ec7055014cfd94811dc4.tar.xz www-f2e1bbe1ba5ce97ef788ec7055014cfd94811dc4.zip |
new nav bar test code
Diffstat (limited to 'langs.php')
-rw-r--r-- | langs.php | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -135,12 +135,6 @@ $nav_list = array( 'ro' => 'Suport', 'tr' => 'Destek' ), - /* - '/community/' => array( - 'en' => 'Community', - 'fr' => 'Communauté' - ), - */ $forums_link => array( 'el' => 'Φόρουμ', 'en' => 'Forum', @@ -244,7 +238,7 @@ foreach ($nav_list as $k => $v) $hsnav = sprintf('<div class="nav"><!--googleoff: all--><div class="nav2"><p class="loc">%s</p>', implode(' | ', $list_menu)); $options = implode($options); -$hsnav .= <<<H +$langsForm = <<<H <form id="lang_form" dir="ltr" method="get" action="/"> <input type="hidden" name="furl" value="{$_SERVER['REQUEST_URI']}" /> <select id="flang" name="flang" dir="ltr" onchange="this.form.submit()"> @@ -254,13 +248,18 @@ $hsnav .= <<<H </form> </div><!--googleon: all--></div> H; +$hsnav .= $langsForm; +if (isset($_GET['testnav'])) { + $_SESSION['testnav'] = $_GET['testnav']; +} +//$_SESSION['testnav'] = 1; -//$hsnav .= sprintf('<div class="nav"><!--googleoff: all--><div class="nav2"><p class="loc">%s</p></div></div>', implode(' | ', $list_menu)); +if ($_SESSION['testnav'] > 0) { + include ('_nav/lib.php'); + $hsnav = _mgnav_style() . _mgnav_html(true, $locale, $langsForm); + $hsfoot = ''; +} if (!defined('HLANG')) echo $hsnav; - -/* -echo sprintf('<p class="loc">%s</p>', implode(' | ', $list_langs)); -*/ |