source: extensions/theme_switch/trunk/thumb.tpl @ 20639

Last change on this file since 20639 was 16241, checked in by mistic100, 12 years ago

choose between selectbox or thumbnails grid with a local config option, thumbnail grid use 2.4 drop-downs menus, only an icon appears on toolbar

File size: 1.8 KB
Line 
1<li>{strip}<a id="themeSwitchLink" title="{'Interface theme'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
2  <span class="pwg-icon" style="background:url('{$THEME_SWITCH_PATH}icon.png') center center no-repeat;">&nbsp;</span><span class="pwg-button-text">{'Interface theme'|@translate}</span>
3</a>
4<div id="themeSwitchBox" class="switchBox">
5  <div class="switchBoxTitle">{'Interface theme'|@translate}</div>
6  {foreach from=$theme_switch item=theme name=t}
7  <a rel="nofollow" href="{$theme.url}" title="{$theme.name}"><img src="{$theme.img}" alt="{$theme.name}" class="theme-thumb"></a>
8  {if ($smarty.foreach.t.index+1)%5 == 0}<br>{/if}
9  {/foreach}
10</div>
11{/strip}</li>
12
13{footer_script require='jquery'}{literal}
14jQuery("#themeSwitchLink").click(function() {
15        var elt = jQuery("#themeSwitchBox");
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});
20jQuery("#themeSwitchBox").on("mouseleave", function() {
21        jQuery(this).hide();
22});
23{/literal}{/footer_script}
24
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=$THEME_SWITCH_PATH|@cat:"default.css"}
28{/if}
29
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=$THEME_SWITCH_PATH|@cat:"style.css"}
33{/if}
34
35{* <!-- common style specific for LanguageSwitch --> *}
36{combine_css path=$THEME_SWITCH_PATH|@cat:"theme_switch.css"}
Note: See TracBrowser for help on using the repository browser.