diff options
| author | spiderr <spider@viovio.com> | 2013-04-19 13:22:56 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-04-19 13:22:56 -0400 |
| commit | b697536351677211fcb7bc5b6644ae39af171e86 (patch) | |
| tree | f5c08d15030587c9a8de4a9a3ab3806f7ec385e3 | |
| parent | 18b3389133c6f6bb5de36fbf5c2ea1f63024ea21 (diff) | |
| download | stats-b697536351677211fcb7bc5b6644ae39af171e86.tar.gz stats-b697536351677211fcb7bc5b6644ae39af171e86.tar.bz2 stats-b697536351677211fcb7bc5b6644ae39af171e86.zip | |
fix menu_*_admin to be multi-purpose as dropdown or visual list like normal user menus
| -rw-r--r-- | templates/menu_stats_admin.tpl | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/templates/menu_stats_admin.tpl b/templates/menu_stats_admin.tpl index 51b47da..6ff436c 100644 --- a/templates/menu_stats_admin.tpl +++ b/templates/menu_stats_admin.tpl @@ -1,15 +1,13 @@ {strip} -<li class="dropdown-submenu"> - <a href="#" onclick="return(false);" tabindex="-1" class="sub-menu-root">{tr}{$smarty.const.STATS_PKG_DIR|capitalize}{/tr}</a> - <ul class="dropdown-menu sub-menu"> - <li><a class="item" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=stats">{tr}Stats Settings{/tr}</a></li> - <li><a class="item" href="{$smarty.const.STATS_PKG_URL}index.php">{tr}Site Stats{/tr}</a></li> +{if $packageMenuTitle}<a href="#"> {tr}{$packageMenuTitle|capitalize}{/tr}</a>{/if} +<ul class="{$packageMenuClass}"> + <li><a class="item" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=stats">{tr}Stats{/tr}</a></li> + <li><a class="item" href="{$smarty.const.STATS_PKG_URL}index.php">{tr}Site Stats{/tr}</a></li> {if $gBitSystem->mDb->mType eq 'postgres'} <li><a class="item" href="{$smarty.const.STATS_PKG_URL}users.php">{tr}User Stats{/tr}</a></li> {/if} {if $gBitSystem->isFeatureActive( 'stats_referers' ) and $gBitUser->hasPermission( 'p_stats_view_referer' )} <li><a class="item" href="{$smarty.const.STATS_PKG_URL}referer_stats.php">{tr}Referer Stats{/tr}</a></li> {/if} - </ul> -</li> +</ul> {/strip} |
