Changeset 15923 for trunk/plugins/language_switch/flags.tpl
- Timestamp:
- Jun 21, 2012, 12:23:12 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/language_switch/flags.tpl
r12342 r15923 1 </ul> 2 <ul class="categoryActions"> 3 <li class="menuf"> 4 <div> 5 <ul> 6 <li> 7 <a rel="nofollow" href="#" class="activeFlag"> 8 <img class="flags" src="{$lang_switch.Active.img}" alt="{$lang_switch.Active.alt}" title="{$lang_switch.Active.alt}"/> 9 </a> 10 <!--[if lte IE 6]> 11 <a rel="nofollow" href="#"> 12 <img class="flags" src="{$lang_switch.Active.img}" alt="{$lang_switch.Active.alt}" title="{$lang_switch.Active.alt}"/> 13 <table> 14 <tr> 15 <td> 16 <![endif]--> 17 <ul class="flag-pan"> 18 <li class="languageSwitchBoxTitle">{'Language'|@translate}</li> 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;"> </span><span class="pwg-button-text">{'Language'|@translate}</span> 3 </a> 4 <div id="languageSwitchBox" class="switchBox"> 5 <div class="switchBoxTitle">{'Language'|@translate}</div> 6 {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> 8 {if ($smarty.foreach.f.index+1)%3 == 0}<br>{/if} 9 {/foreach} 10 </div> 11 {/strip}</li> 19 12 20 {foreach from=$lang_switch.flags key=code item=flag name=f} 21 <li> 22 <a rel="nofollow" href="{$flag.url}"> 23 <img class="flags" src="{$flag.img}" alt="{$flag.alt}" title="{$flag.alt}"/> {$flag.title} 24 </a> 25 </li> 26 {/foreach} 13 {footer_script require='jquery'}{literal} 14 jQuery("#languageSwitchLink").click(function() { 15 var elt = jQuery("#languageSwitchBox"); 16 elt.css("left", Math.min(jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5)) 17 .css("top", jQuery(this).offset().top + jQuery(this).outerHeight(true)) 18 .toggle(); 19 }); 20 jQuery("#languageSwitchBox").on("mouseleave", function() { 21 jQuery(this).hide(); 22 }); 23 {/literal}{/footer_script} 27 24 28 </ul> 29 <!--[if lte IE 6]> 30 </td> 31 </tr> 32 </table> 33 </a> 34 <![endif]--> 35 </li> 36 </ul> 37 </div> 38 </li> 39 40 {combine_css path="plugins/language_switch/language_switch-default.css"} 41 42 {if $themeconf.name eq 'Sylvia'} 43 {combine_css path="plugins/language_switch/language_switch-Sylvia.css"} 25 {* <!-- switchBox structure for theme which don't include default style --> *} 26 {if $themeconf.parent != 'default' or (isset($themeconf.load_parent_local_head) and $themeconf.load_parent_local_head == false) } 27 {combine_css path=$LANGUAGE_SWITCH_PATH|@cat:"default.css"} 44 28 {/if} 45 29 46 {html_head} 47 <!--[if lte IE 6]> 48 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}plugins/language_switch/language_switch-ie6.css"> 49 <![endif]--> 50 {/html_head} 30 {* <!-- stylish for non core themes (should be removed when all themes are updated) --> *} 31 {if $themeconf.name != 'clear' and $themeconf.name != 'dark' and $themeconf.name != 'elegant' and $themeconf.name != 'Sylvia'} 32 {combine_css path=$LANGUAGE_SWITCH_PATH|@cat:"style.css"} 33 {/if} 34 35 {* <!-- common style specific for LanguageSwitch --> *} 36 {combine_css path=$LANGUAGE_SWITCH_PATH|@cat:"language_switch.css"}
Note: See TracChangeset
for help on using the changeset viewer.