use combine_css for languageSwitch plugin

git-svn-id: http://piwigo.org/svn/trunk@9905 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall 2011-03-28 12:41:09 +00:00
commit 18878f8bb0
2 changed files with 41 additions and 42 deletions

View file

@ -1,48 +1,49 @@
</ul>
<ul class="categoryActions">
<li class="menuf">
<div>
<ul>
<li>
<a rel="nofollow" href="#">
<img class="flags" src="{$lang_switch.Active.img}" alt="{$lang_switch.Active.alt}" title="{$lang_switch.Active.alt}"/>
</a>
<!--[if lte IE 6]>
<a rel="nofollow" href="#">
<img class="flags" src="{$lang_switch.Active.img}" alt="{$lang_switch.Active.alt}" title="{$lang_switch.Active.alt}"/>
<table>
<tr>
<td>
<![endif]-->
<ul class="flag-pan">
{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}"/>
</a>
</li>
{/foreach}
</ul>
<!--[if lte IE 6]>
</td>
</tr>
</table>
</a>
<![endif]-->
</li>
</ul>
</div>
</li>
{html_head}
{if $themeconf.name == 'Sylvia'}
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}{$LANGUAGE_SWITCH_PATH|@cat:'language_switch.css'}">
{else}
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}{$LANGUAGE_SWITCH_PATH|@cat:'language_switch-default.css'}">
{/if}
{if Componant_exists($LANGUAGE_SWITCH_PATH, 'language_switch-local.css')}
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}{$LANGUAGE_SWITCH_PATH|@cat:'language_switch-local.css'}">
{/if}
<div>
<ul>
<li>
<a rel="nofollow" href="#">
<img class="flags" src="{$lang_switch.Active.img}" alt="{$lang_switch.Active.alt}" title="{$lang_switch.Active.alt}"/>
</a>
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}{$LANGUAGE_SWITCH_PATH|@cat:'language_switch-ie6.css'}">
<a rel="nofollow" href="#">
<img class="flags" src="{$lang_switch.Active.img}" alt="{$lang_switch.Active.alt}" title="{$lang_switch.Active.alt}"/>
<table>
<tr>
<td>
<![endif]-->
<ul class="flag-pan">
{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}"/>
</a>
</li>
{/foreach}
</ul>
<!--[if lte IE 6]>
</td>
</tr>
</table>
</a>
<![endif]-->
</li>
</ul>
</div>
</li>
{combine_css path="plugins/language_switch/language_switch-default.css"}
{if $themeconf.name eq 'Sylvia'}
{combine_css path="plugins/language_switch/language_switch-Sylvia.css"}
{/if}
{html_head}
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}plugins/language_switch/language_switch-ie6.css">
<![endif]-->
{/html_head}

View file

@ -1,5 +1,3 @@
@import "language_switch-default.css";
.flag-pan { border:1px solid; background-color: #111; }
.menuf .flags {border-color: #000 !important; }