aboutsummaryrefslogtreecommitdiffstats
path: root/langs.php
diff options
context:
space:
mode:
Diffstat (limited to 'langs.php')
-rw-r--r--langs.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/langs.php b/langs.php
index 1d7f5e846..9bca1e54b 100644
--- a/langs.php
+++ b/langs.php
@@ -11,11 +11,15 @@ $locale = array_shift($sel);
$page = count($sel) > 0 ? implode('/', $sel) : null;
$list_langs = array();
+$options = array();
+
foreach ($langs as $k => $v)
+{
$list_langs[] = sprintf('<a href="/%s"%s>%s</a>',
$page != null ? implode('/', array($k, $page)) : $k,
$k == $locale ? ' class="sel"' : '',
$v);
+}
// global nav
$nav_list = array(
@@ -32,10 +36,12 @@ $nav_list = array(
$list_menu = array();
foreach ($nav_list as $k => $v)
+{
$list_menu[] = sprintf('<a href="%s"%s>%s</a>',
$k,
$k == $sru ? ' class="sel"' : '',
$v);
+}
echo sprintf('<div class="nav"><p class="loc">%s</p></div>', implode(' | ', $list_menu));