mirror of
https://github.com/Mibew/tray.git
synced 2025-01-24 02:50:34 +03:00
d09e3dddf4
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@416 c66351dc-e62f-0410-b875-e3a5c0b9693f
21 lines
494 B
PHP
21 lines
494 B
PHP
<?php
|
|
function menuloc($id) {
|
|
global $current_locale;
|
|
if($current_locale == $id) {
|
|
echo " class=\"active\"";
|
|
}
|
|
return "";
|
|
}
|
|
function tpl_menu() { global $page, $webimroot, $errors, $current_locale;
|
|
?>
|
|
<li>
|
|
<h2><b><?php echo getlocal("lang.choose") ?></b></h2>
|
|
<ul class="locales">
|
|
<?php foreach($page['localeLinks'] as $id => $title) { ?>
|
|
<li<?php menuloc($id)?> ><a href='?locale=<?php echo $id ?>'><?php echo $title ?></a></li>
|
|
<?php } ?>
|
|
</ul>
|
|
</li>
|
|
<?php
|
|
}
|
|
?>
|