move language selector to a module
This commit is contained in:
parent
cdcbc5816e
commit
61f47cd5ed
@ -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
6
mod/lang.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
function lang_content(&$a) {
|
||||
return lang_selector();
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
2014-03-04.606
|
||||
2014-03-05.607
|
||||
|
@ -1107,12 +1107,6 @@ footer {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
#language-selector {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 16px;
|
||||
}
|
||||
|
||||
#group-members {
|
||||
margin-top: 20px;
|
||||
padding: 10px;
|
||||
|
@ -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>
|
||||
|
@ -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}}
|
||||
|
Reference in New Issue
Block a user