Commit 0f796e46 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add site menu to main pages

parent 5a6b150f
......@@ -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');
?>
......@@ -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') {
......
......@@ -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');
?>
......@@ -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');
?>
Supports Markdown
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