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
0f796e46
Commit
0f796e46
authored
Nov 13, 2006
by
Richard Mansfield
Browse files
Add site menu to main pages
parent
5a6b150f
Changes
4
Hide whitespace changes
Inline
Side-by-side
htdocs/about.php
View file @
0f796e46
...
...
@@ -31,6 +31,7 @@ require('init.php');
$smarty
=
smarty
();
$smarty
->
assign
(
'page_content'
,
get_site_page_content
(
'about'
));
$smarty
->
assign
(
'site_menu'
,
site_menu
());
$smarty
->
display
(
'sitepage.tpl'
);
?>
htdocs/admin/updatemenu.json.php
View file @
0f796e46
...
...
@@ -28,8 +28,6 @@ define('INTERNAL', 1);
define
(
'ADMIN'
,
1
);
require
(
dirname
(
dirname
(
__FILE__
))
.
'/init.php'
);
error_log
(
'updatemenu.json.php'
);
function
send_fail_message
()
{
$result
=
array
();
$result
[
'error'
]
=
'local'
;
...
...
@@ -38,13 +36,11 @@ function send_fail_message() {
exit
;
}
$type
=
param_
alpha
(
'type'
);
// external list or admin file
$type
=
param_
variable
(
'type'
);
// external list or admin file
$name
=
param_variable
(
'name'
);
$linkedto
=
param_variable
(
'linkedto'
);
$itemid
=
param_variable
(
'itemid'
);
$menu
=
param_alpha
(
'menu'
);
error_log
(
'updatemenu.json.php '
.
$type
.
' '
.
$name
.
' '
.
$linkedto
.
' '
.
$itemid
);
$menu
=
param_variable
(
'menu'
);
$data
=
new
StdClass
;
if
(
$type
==
'adminfile'
)
{
...
...
htdocs/privacy.php
View file @
0f796e46
...
...
@@ -31,6 +31,7 @@ require('init.php');
$smarty
=
smarty
();
$smarty
->
assign
(
'page_content'
,
get_site_page_content
(
'privacy'
));
$smarty
->
assign
(
'site_menu'
,
site_menu
());
$smarty
->
display
(
'sitepage.tpl'
);
?>
htdocs/terms.php
View file @
0f796e46
...
...
@@ -31,6 +31,7 @@ require('init.php');
$smarty
=
smarty
();
$smarty
->
assign
(
'page_content'
,
get_site_page_content
(
'termsandconditions'
));
$smarty
->
assign
(
'site_menu'
,
site_menu
());
$smarty
->
display
(
'sitepage.tpl'
);
?>
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