2009-03-12 04:07:35 +03:00
|
|
|
<?php
|
|
|
|
function menuloc($id) {
|
|
|
|
global $current_locale;
|
|
|
|
if($current_locale == $id) {
|
2009-03-13 03:52:37 +03:00
|
|
|
echo " class=\"active\"";
|
2009-03-12 04:07:35 +03:00
|
|
|
}
|
|
|
|
return "";
|
|
|
|
}
|
2009-03-13 03:52:37 +03:00
|
|
|
function tpl_menu() { global $page, $webimroot, $errors, $current_locale;
|
|
|
|
?>
|
|
|
|
<li>
|
2009-03-14 02:46:25 +03:00
|
|
|
<h2><b><?php echo getlocal("lang.choose") ?></b></h2>
|
2009-03-13 03:52:37 +03:00
|
|
|
<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
|
2009-03-12 04:07:35 +03:00
|
|
|
}
|
|
|
|
?>
|