From 8662a73ed322328ee90f69fe5903dccabde5f7ef Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 5 Aug 2010 09:56:34 +0000 Subject: [PATCH] Added css parameter in page() --- includes/page/header.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/page/header.inc b/includes/page/header.inc index 10cc8b10..fc850b95 100644 --- a/includes/page/header.inc +++ b/includes/page/header.inc @@ -47,7 +47,7 @@ function help_url($context=null) function send_scripts() { - global $js_lib, $js_static, $js_path, $js_userlib, $path_to_root, $go_debug; + global $js_static, $js_path, $js_userlib, $path_to_root, $go_debug; $js =''; foreach($js_static as $jsfile) @@ -69,7 +69,7 @@ function send_scripts() echo $js; } -function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="") +function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="", $css='') { // titles and screen header global $path_to_root, $def_app, $use_popup_windows, $help_base_url; @@ -126,7 +126,10 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="" echo "$title"; echo ""; echo " \n"; - send_scripts($js); + if ($css) + echo ''; + + send_scripts(); echo " \n"; if ($onload == "") -- 2.30.2