move language selector to a module

This commit is contained in:
friendica 2014-03-05 03:19:20 -08:00
parent cdcbc5816e
commit 61f47cd5ed
6 changed files with 10 additions and 11 deletions

View File

@ -59,7 +59,6 @@ EOT;
$a->page['header'] .= replace_macros(get_markup_template('hdr.tpl'), array(
'$baseurl' => $a->get_baseurl(),
'$sitelocation' => $sitelocation,
'$langselector' => ((get_config('system','select_language')) ? lang_selector() : ''),
'$banner' => $banner
));

6
mod/lang.php Normal file
View File

@ -0,0 +1,6 @@
<?php
function lang_content(&$a) {
return lang_selector();
}

View File

@ -1 +1 @@
2014-03-04.606
2014-03-05.607

View File

@ -1107,12 +1107,6 @@ footer {
margin-bottom: 15px;
}
#language-selector {
position: absolute;
top: 0px;
left: 16px;
}
#group-members {
margin-top: 20px;
padding: 10px;

View File

@ -4,5 +4,4 @@
<li class="{5}"><a href="{0}" title="{2} {3}"><img src="{1}"><span class='contactname'>{2}</span>{3}<br><span class="notif-when">{4}</span></a></li>
</ul>
{{if $langselector}}<div id="langselector" >{{$langselector}}</div>{{/if}}
<div id="panel" style="display: none;"></div>

View File

@ -1,5 +1,6 @@
<div id="lang-select-icon" title="{{$title}}" onclick="openClose('language-selector');" ><i class="icon-flag"></i></div>
<div id="language-selector" style="display: none;" >
<h1>{{$title}}</h1>
<br />
<div id="language-selector" >
<form action="#" method="post" >
<select name="system_language" onchange="this.form.submit();" >
{{foreach $langs.0 as $v=>$l}}