Commit 794493bf authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

removed main menu help

added check so main menu is only displayed when not empty
parent aa5613ee
......@@ -363,12 +363,15 @@ EOF;
// ---------- sideblock stuff ----------
if (get_config('installed')) {
$smarty->assign('SITEMENU', site_menu());
$SIDEBLOCKS[] = array(
'name' => 'mainmenu',
'weight' => 10,
'data' => site_menu(),
);
$data = site_menu();
if (!empty($data)) {
$smarty->assign('SITEMENU', site_menu());
$SIDEBLOCKS[] = array(
'name' => 'mainmenu',
'weight' => 10,
'data' => site_menu(),
);
}
}
if ($USER->is_logged_in() && defined('MENUITEM') && substr(MENUITEM, 0, 11) == 'myportfolio') {
......
<h3>{str tag="mainmenu"}{contextualhelp plugintype='core' pluginname='mainmenu' section='mainmenu'}</h3>
<h3>{str tag="mainmenu"}</h3>
{if $data}
<ul id="sitemenu">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment