diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-13 10:44:25 +0300 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-13 10:44:25 +0300 |
commit | fa1d3d588d3c58c9067b49c45693ef3797be0755 (patch) | |
tree | 9860feac1bf608880f5fb9056b9a200a80077f0a /plugins | |
parent | 56462d19d73e8f1f450d88a5473aa4be0d832d2d (diff) |
Allow plugin to disable CoreHome menus
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreHome/templates/index.tpl | 2 | ||||
-rw-r--r-- | plugins/CoreHome/templates/loading.tpl | 2 | ||||
-rw-r--r-- | plugins/CoreHome/templates/menu.js | 10 |
3 files changed, 8 insertions, 6 deletions
diff --git a/plugins/CoreHome/templates/index.tpl b/plugins/CoreHome/templates/index.tpl index dbef1c65a6..530f3c14d2 100644 --- a/plugins/CoreHome/templates/index.tpl +++ b/plugins/CoreHome/templates/index.tpl @@ -15,7 +15,7 @@ {assign var=showSitesSelection value=true} {include file="CoreHome/templates/top_bar.tpl"} {include file="CoreHome/templates/header.tpl"} -{include file="CoreHome/templates/menu.tpl"} +{if isset($menu) && $menu}{include file="CoreHome/templates/menu.tpl"}{/if} <div style='clear:both'></div> {include file="CoreHome/templates/loading.tpl"} diff --git a/plugins/CoreHome/templates/loading.tpl b/plugins/CoreHome/templates/loading.tpl index 5dc8755980..4e67871565 100644 --- a/plugins/CoreHome/templates/loading.tpl +++ b/plugins/CoreHome/templates/loading.tpl @@ -1,4 +1,4 @@ -<div id="loadingPiwik" {if isset($basicHtmlView) && $basicHtmlView}style="display:none"{/if}> +<div id="loadingPiwik" {if isset($basicHtmlView) && $basicHtmlView}style="display:none;"{/if}> <img src="themes/default/images/loading-blue.gif" alt="" /> {'General_LoadingData'|translate} </div> <div id="loadingError">{'General_ErrorRequest'|translate}</div> diff --git a/plugins/CoreHome/templates/menu.js b/plugins/CoreHome/templates/menu.js index 51139ed6b7..38187fd857 100644 --- a/plugins/CoreHome/templates/menu.js +++ b/plugins/CoreHome/templates/menu.js @@ -130,8 +130,10 @@ menu.prototype = }; $(document).ready( function(){ - piwikMenu = new menu(); - piwikMenu.init(); - piwikMenu.loadFirstSection(); - broadcast.init(); + if($('.nav').size()) { + piwikMenu = new menu(); + piwikMenu.init(); + piwikMenu.loadFirstSection(); + broadcast.init(); + } }); |