[vhffs-dev] [2185] display only enabled lang flags in panel logged part |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 2185
Author: gradator
Date: 2012-05-11 01:08:56 +0200 (Fri, 11 May 2012)
Log Message:
-----------
display only enabled lang flags in panel logged part
Modified Paths:
--------------
branches/vhffs-4.4/vhffs-panel/templates/misc/header.tt
trunk/vhffs-panel/templates/misc/header.tt
Modified: branches/vhffs-4.4/vhffs-panel/templates/misc/header.tt
===================================================================
--- branches/vhffs-4.4/vhffs-panel/templates/misc/header.tt 2012-05-10 19:51:01 UTC (rev 2184)
+++ branches/vhffs-4.4/vhffs-panel/templates/misc/header.tt 2012-05-10 23:08:56 UTC (rev 2185)
@@ -4,9 +4,9 @@
</div>
<!-- Flag navigations -->
<div class="navflag">
- <a href="?[% query_string %];lang=en_US"><img src="/themes/[% theme %]/img/en_US.png" alt="en_US"/></a>
- <a href="?[% query_string %];lang=fr_FR"><img src="/themes/[% theme %]/img/fr_FR.png" alt="fr_FR"/></a>
- <a href="?[% query_string %];lang=es_ES"><img src="/themes/[% theme %]/img/es_ES.png" alt="es_ES"/></a>
+[% FOREACH l IN languages %]
+ <a href="?[% query_string %];lang=[% l | html %]"><img src="/themes/[% theme %]/img/[% l | html %].png" alt="[% l %]"/></a>
+[% END %]
</div>
<!-- Navigation Level 1 -->
Modified: trunk/vhffs-panel/templates/misc/header.tt
===================================================================
--- trunk/vhffs-panel/templates/misc/header.tt 2012-05-10 19:51:01 UTC (rev 2184)
+++ trunk/vhffs-panel/templates/misc/header.tt 2012-05-10 23:08:56 UTC (rev 2185)
@@ -4,9 +4,9 @@
</div>
<!-- Flag navigations -->
<div class="navflag">
- <a href="?[% query_string %];lang=en_US"><img src="/themes/[% theme %]/img/en_US.png" alt="en_US"/></a>
- <a href="?[% query_string %];lang=fr_FR"><img src="/themes/[% theme %]/img/fr_FR.png" alt="fr_FR"/></a>
- <a href="?[% query_string %];lang=es_ES"><img src="/themes/[% theme %]/img/es_ES.png" alt="es_ES"/></a>
+[% FOREACH l IN languages %]
+ <a href="?[% query_string %];lang=[% l | html %]"><img src="/themes/[% theme %]/img/[% l | html %].png" alt="[% l %]"/></a>
+[% END %]
</div>
<!-- Navigation Level 1 -->