Ignore:
Timestamp:
02/06/13 16:47:00 (7 years ago)
Author:
flop25
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/language_switch/flags.tpl

    r15923 r20587  
    1 <li>{strip}<a id="languageSwitchLink" title="{'Language'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
    2   <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> 
     1<li id="languageSwitch">{strip}<a id="languageSwitchLink" title="{'Language'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
     2  <span class="pwg-icon flags langflag-{$lang_switch.Active.code}" >&nbsp;</span><span class="pwg-button-text">{'Language'|@translate}</span> 
    33</a> 
    44<div id="languageSwitchBox" class="switchBox"> 
    55  <div class="switchBoxTitle">{'Language'|@translate}</div>  
    66  {foreach from=$lang_switch.flags item=flag name=f} 
    7   <a rel="nofollow" href="{$flag.url}"><img class="flags" src="{$flag.img}" alt="{$flag.alt}"> {$flag.title}</a> 
     7  <a rel="nofollow" href="{$flag.url}"> 
     8    <span class="pwg-icon flags langflag-{$flag.code}">{$flag.alt}</span>{$flag.title} 
     9  </a> 
    810  {if ($smarty.foreach.f.index+1)%3 == 0}<br>{/if} 
    911  {/foreach} 
Note: See TracChangeset for help on using the changeset viewer.