blob: 31f5e44beaf7db300e086e34ad465a3ac615b08d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{strip}
<div id="bittopbar">
<ul id="nav" class="menu hor">
<li class="m-home">
<a class="head" accesskey="h" href="{$smarty.const.BIT_ROOT_URL}">{$gBitSystem->getConfig('site_menu_title')|default:$gBitSystem->getConfig('site_title')}</a>
{include file="bitpackage:kernel/menu_global.tpl"}
</li>
{if $gBitUser->isAdmin()}
<li class="m-admin{if $smarty.const.ACTIVE_PACKAGE eq 'kernel'} current{/if}">
<a accesskey="A" class="{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}head{else}item{/if}{if $smarty.const.ACTIVE_PACKAGE eq 'kernel'} selected{/if}" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php">
<strong>{tr}Administration{/tr}</strong>
</a>
{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}
<ul>
{foreach key=key item=menu from=$adminMenu}
{if $key eq 'kernel' or $key eq 'liberty' or $key eq 'languages' or $key eq 'users' or $key eq 'themes'}
<li>
<a class="head" style="cursor:default" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php">
<strong>{tr}{$key|capitalize}{/tr}</strong>
</a>
{include file=`$menu.tpl`}
</li>
{/if}
{/foreach}
{foreach key=key item=menu from=$adminMenu}
{if $key neq 'kernel' and $key neq 'liberty' and $key neq 'languages' and $key neq 'users' and $key neq 'themes'}
<li>
<a class="head" style="cursor:default" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php">
{tr}{$key|capitalize}{/tr}
</a>
{include file=`$menu.tpl`}
</li>
{/if}
{/foreach}
</ul>
{/if}
</li>
{/if}
{foreach key=key item=menu from=$gBitSystem->mAppMenu}
{if $menu.menu_title && $menu.index_url && $menu.menu_template && !$menu.is_disabled}
<li class="m-{$key}{if $smarty.const.ACTIVE_PACKAGE eq $menu.package_name} current{/if}">
<a accesskey="{$key|truncate:1:""}" class="{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}head{else}item{/if}{if $smarty.const.ACTIVE_PACKAGE eq $menu.package_name} selected{/if}" href="{$menu.index_url}">{tr}{$menu.menu_title}{/tr}</a>
{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}
{include file="`$menu.menu_template`"}
{/if}
</li>
{/if}
{/foreach}
</ul>
<div class="clear"></div>
</div>
{if $gBitSystem->isFeatureActive('site_top_bar_js') && $gBitSystem->isFeatureActive('site_top_bar_dropdown')}
<script type="text/javascript"> /*<![CDATA[*/
var listMenu = new FSMenu('listMenu', true, 'left', 'auto', '-999');
{if $gBitSystem->isFeatureActive( 'site_top_bar_js_fade' )}
listMenu.animations[listMenu.animations.length] = FSMenu.animFade;
{/if}
{if $gBitSystem->isFeatureActive( 'site_top_bar_js_swipe' )}
listMenu.animations[listMenu.animations.length] = FSMenu.animSwipeDown;
{/if}
{if $gBitSystem->isFeatureActive( 'site_top_bar_js_clip' )}
listMenu.animations[listMenu.animations.length] = FSMenu.animClipDown;
{/if}
addEvent(window, 'load', new Function('listMenu.activateMenu("nav")'));
/*]]>*/ </script>
{/if}
{/strip}
|