aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-03 18:48:01 -0700
committerfriendica <info@friendica.com>2013-09-03 18:48:01 -0700
commitc6df954fc00e4fdc7e2888e7dc3fe3a7c8f930e4 (patch)
tree7c4db0180b6b5e6b6d2de9678dbb467e8c30fb9e
parent879ac359523623d779f3097e5aa02937d6518950 (diff)
downloadvolse-hubzilla-c6df954fc00e4fdc7e2888e7dc3fe3a7c8f930e4.tar.gz
volse-hubzilla-c6df954fc00e4fdc7e2888e7dc3fe3a7c8f930e4.tar.bz2
volse-hubzilla-c6df954fc00e4fdc7e2888e7dc3fe3a7c8f930e4.zip
make displaying the language selector configurable
-rw-r--r--include/nav.php2
-rwxr-xr-xview/tpl/nav.tpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php
index 626caf981..dd11f10d5 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -200,7 +200,7 @@ EOT;
$a->page['nav'] .= replace_macros($tpl, array(
'$baseurl' => $a->get_baseurl(),
- '$langselector' => lang_selector(),
+ '$langselector' => ((get_config('system','select_language')) ? lang_selector() : ''),
'$sitelocation' => $sitelocation,
'$nav' => $nav,
'$banner' => $banner,
diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl
index 7c26609c3..713280808 100755
--- a/view/tpl/nav.tpl
+++ b/view/tpl/nav.tpl
@@ -148,5 +148,5 @@
<li class="{4}"><a href="{0}"><img src="{1}">{2} <span class="notif-when">{3}</span></a></li>
</ul>
-<div id="langselector" >{{$langselector}}</div>
+{{if $langselector}}<div id="langselector" >{{$langselector}}</div>{{/if}}
<div id="panel" style="display: none;"></div>