diff options
author | flop25 <flop25@piwigo.org> | 2013-02-06 15:47:00 +0000 |
---|---|---|
committer | flop25 <flop25@piwigo.org> | 2013-02-06 15:47:00 +0000 |
commit | 8f019e2f8de323b491a39c42436d21207459c7be (patch) | |
tree | ad6666230c78f0914b0d8c256df053b6a62148fa /plugins/language_switch/flags.tpl | |
parent | bc60fe50fa506b9ad0314bf89b5abb0bf74f655a (diff) |
bug:2827
adding a sprite for flags. So the flag in language packages is no longuer required, but language_switch.css need to be edited for a language added to Piwigo.
git-svn-id: http://piwigo.org/svn/trunk@20587 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/language_switch/flags.tpl')
-rw-r--r-- | plugins/language_switch/flags.tpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/language_switch/flags.tpl b/plugins/language_switch/flags.tpl index e77e89668..421815a8e 100644 --- a/plugins/language_switch/flags.tpl +++ b/plugins/language_switch/flags.tpl @@ -1,10 +1,12 @@ -<li>{strip}<a id="languageSwitchLink" title="{'Language'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> - <span class="pwg-icon" style="background:url('{$lang_switch.Active.img}') center center no-repeat;"> </span><span class="pwg-button-text">{'Language'|@translate}</span> +<li id="languageSwitch">{strip}<a id="languageSwitchLink" title="{'Language'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> + <span class="pwg-icon flags langflag-{$lang_switch.Active.code}" > </span><span class="pwg-button-text">{'Language'|@translate}</span> </a> <div id="languageSwitchBox" class="switchBox"> <div class="switchBoxTitle">{'Language'|@translate}</div> {foreach from=$lang_switch.flags item=flag name=f} - <a rel="nofollow" href="{$flag.url}"><img class="flags" src="{$flag.img}" alt="{$flag.alt}"> {$flag.title}</a> + <a rel="nofollow" href="{$flag.url}"> + <span class="pwg-icon flags langflag-{$flag.code}">{$flag.alt}</span>{$flag.title} + </a> {if ($smarty.foreach.f.index+1)%3 == 0}<br>{/if} {/foreach} </div> |