Language Switch:

* display language name next to flag (and enlarge the flag box to ~400px)

* force the links color inside the language box because the background color is
forced : on a theme like "grum dark II", the result is really awful, impossible
to read.

* the current language is not removed from the list, this ways the list is not
reorganized depending on the current language



git-svn-id: http://piwigo.org/svn/trunk@9906 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2011-03-28 13:51:43 +00:00
parent 18878f8bb0
commit e405136d47
4 changed files with 25 additions and 14 deletions
+3 -2
View File
@@ -4,7 +4,7 @@
<div>
<ul>
<li>
<a rel="nofollow" href="#">
<a rel="nofollow" href="#" class="activeFlag">
<img class="flags" src="{$lang_switch.Active.img}" alt="{$lang_switch.Active.alt}" title="{$lang_switch.Active.alt}"/>
</a>
<!--[if lte IE 6]>
@@ -15,11 +15,12 @@
<td>
<![endif]-->
<ul class="flag-pan">
<li class="languageSwitchBoxTitle">{'Language'|@translate}</li>
{foreach from=$lang_switch.flags key=code item=flag name=f}
<li>
<a rel="nofollow" href="{$SCRIPT_NAME}{$flag.url}">
<img class="flags" src="{$flag.img}" alt="{$flag.alt}" title="{$flag.alt}"/>
<img class="flags" src="{$flag.img}" alt="{$flag.alt}" title="{$flag.alt}"/> {$flag.title}
</a>
</li>
{/foreach}