push notice form and sub-menu into header div

darcs-hash:20080611183634-84dde-97119e7ef1abb01f6ce8723955dc5d6e06e644a8.gz
This commit is contained in:
Evan Prodromou
2008-06-11 14:36:34 -04:00
parent f4ed605998
commit d0f8fd20fb
6 changed files with 38 additions and 17 deletions

View File

@@ -123,7 +123,7 @@ function common_end_xml() {
$xw->flush();
}
function common_show_header($pagetitle, $callable=NULL, $data=NULL, $notice=NULL) {
function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall=NULL) {
global $config, $xw;
header('Content-Type: application/xhtml+xml');
@@ -170,6 +170,13 @@ function common_show_header($pagetitle, $callable=NULL, $data=NULL, $notice=NULL
'alt' => $config['site']['name'],
'id' => 'logo'));
common_element_end('a');
if ($headercall) {
if ($data) {
call_user_func($headercall, $data);
} else {
call_user_func($headercall);
}
}
common_element_end('div');
common_element_start('div', array('id' => 'content'));
}