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'); ...@@ -31,6 +31,7 @@ require('init.php');
$smarty = smarty(); $smarty = smarty();
$smarty->assign('page_content', get_site_page_content('about')); $smarty->assign('page_content', get_site_page_content('about'));
$smarty->assign('site_menu', site_menu());
$smarty->display('sitepage.tpl'); $smarty->display('sitepage.tpl');
?> ?>
...@@ -28,8 +28,6 @@ define('INTERNAL', 1); ...@@ -28,8 +28,6 @@ define('INTERNAL', 1);
define('ADMIN', 1); define('ADMIN', 1);
require(dirname(dirname(__FILE__)) . '/init.php'); require(dirname(dirname(__FILE__)) . '/init.php');
error_log('updatemenu.json.php');
function send_fail_message() { function send_fail_message() {
$result = array(); $result = array();
$result['error'] = 'local'; $result['error'] = 'local';
...@@ -38,13 +36,11 @@ function send_fail_message() { ...@@ -38,13 +36,11 @@ function send_fail_message() {
exit; exit;
} }
$type = param_alpha('type'); // external list or admin file $type = param_variable('type'); // external list or admin file
$name = param_variable('name'); $name = param_variable('name');
$linkedto = param_variable('linkedto'); $linkedto = param_variable('linkedto');
$itemid = param_variable('itemid'); $itemid = param_variable('itemid');
$menu = param_alpha('menu'); $menu = param_variable('menu');
error_log('updatemenu.json.php '.$type .' '. $name .' '. $linkedto .' '. $itemid);
$data = new StdClass; $data = new StdClass;
if ($type == 'adminfile') { if ($type == 'adminfile') {
......
...@@ -31,6 +31,7 @@ require('init.php'); ...@@ -31,6 +31,7 @@ require('init.php');
$smarty = smarty(); $smarty = smarty();
$smarty->assign('page_content', get_site_page_content('privacy')); $smarty->assign('page_content', get_site_page_content('privacy'));
$smarty->assign('site_menu', site_menu());
$smarty->display('sitepage.tpl'); $smarty->display('sitepage.tpl');
?> ?>
...@@ -31,6 +31,7 @@ require('init.php'); ...@@ -31,6 +31,7 @@ require('init.php');
$smarty = smarty(); $smarty = smarty();
$smarty->assign('page_content', get_site_page_content('termsandconditions')); $smarty->assign('page_content', get_site_page_content('termsandconditions'));
$smarty->assign('site_menu', site_menu());
$smarty->display('sitepage.tpl'); $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