diff options
Diffstat (limited to 'plugins/language_switch/flags.tpl')
-rw-r--r-- | plugins/language_switch/flags.tpl | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/plugins/language_switch/flags.tpl b/plugins/language_switch/flags.tpl index 54063fd03..089e39604 100644 --- a/plugins/language_switch/flags.tpl +++ b/plugins/language_switch/flags.tpl @@ -1,11 +1,11 @@ <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> + <span class="pwg-icon 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}"> - {if $lang_info.direction=="ltr"}<span class="pwg-icon flags langflag-{$flag.code}">{$flag.alt}</span>{$flag.title}{else}{$flag.title}<span class="pwg-icon flags langflag-{$flag.code}">{$flag.alt}</span>{/if} + {if $lang_info.direction=="ltr"}<span class="pwg-icon langflag-{$flag.code}">{$flag.alt}</span>{$flag.title}{else}{$flag.title}<span class="pwg-icon langflag-{$flag.code}">{$flag.alt}</span>{/if} </a> {if ($smarty.foreach.f.index+1)%3 == 0}<br>{/if} {/foreach} @@ -24,13 +24,8 @@ jQuery("#languageSwitchBox").on("mouseleave", function() { }); {/literal}{/footer_script} -{* <!-- switchBox structure for theme which don't include default style --> *} -{if $themeconf.parent != 'default' or (isset($themeconf.load_parent_local_head) and $themeconf.load_parent_local_head == false) } -{combine_css path=$LANGUAGE_SWITCH_PATH|@cat:"default.css"} -{/if} - -{* <!-- stylish for non core themes (should be removed when all themes are updated) --> *} -{if $themeconf.name != 'clear' and $themeconf.name != 'dark' and $themeconf.name != 'elegant' and $themeconf.name != 'Sylvia'} +{* <!-- stylish for themes missing .switchBox styles --> *} +{if $LANGUAGE_SWITCH_LOAD_STYLE} {combine_css path=$LANGUAGE_SWITCH_PATH|@cat:"style.css"} {/if} |