Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
794493bf
Commit
794493bf
authored
Jan 11, 2008
by
Clare Lenihan
Committed by
Clare Lenihan
Jan 11, 2008
Browse files
removed main menu help
added check so main menu is only displayed when not empty
parent
aa5613ee
Changes
2
Show whitespace changes
Inline
Side-by-side
htdocs/lib/web.php
View file @
794493bf
...
...
@@ -363,6 +363,8 @@ EOF;
// ---------- sideblock stuff ----------
if
(
get_config
(
'installed'
))
{
$data
=
site_menu
();
if
(
!
empty
(
$data
))
{
$smarty
->
assign
(
'SITEMENU'
,
site_menu
());
$SIDEBLOCKS
[]
=
array
(
'name'
=>
'mainmenu'
,
...
...
@@ -370,6 +372,7 @@ EOF;
'data'
=>
site_menu
(),
);
}
}
if
(
$USER
->
is_logged_in
()
&&
defined
(
'MENUITEM'
)
&&
substr
(
MENUITEM
,
0
,
11
)
==
'myportfolio'
)
{
$SIDEBLOCKS
[]
=
array
(
...
...
htdocs/theme/default/templates/sideblocks/mainmenu.tpl
View file @
794493bf
<h3>
{
str
tag
=
"mainmenu"
}
{
contextualhelp
plugintype
=
'core'
pluginname
=
'mainmenu'
section
=
'mainmenu'
}
</h3>
<h3>
{
str
tag
=
"mainmenu"
}
</h3>
{
if
$data
}
<ul
id=
"sitemenu"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment