Skip to content

Commit

Permalink
bug:2827
Browse files Browse the repository at this point in the history
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
  • Loading branch information
flop25 committed Feb 6, 2013
1 parent bc60fe5 commit 8f019e2
Show file tree
Hide file tree
Showing 4 changed files with 287 additions and 6 deletions.
Binary file added plugins/language_switch/flag_sprite.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions 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;">&nbsp;</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}" >&nbsp;</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>
Expand Down

0 comments on commit 8f019e2

Please sign in to comment.