From eb2128da25261776dfd0d570ba85d7cedf94a533 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 22 Aug 2008 20:35:08 +0000 Subject: [PATCH] Update send_header() for a third parameter of the icon to use --- common.inc.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/common.inc.php b/common.inc.php index 36fb2a9..e5f1a4c 100644 --- a/common.inc.php +++ b/common.inc.php @@ -358,7 +358,7 @@ function happy($str,$type="normal") } $HEADER_SENT=false; -function send_header($title="", $nav=null) +function send_header($title="", $nav=null, $icon=null) { global $HEADER_SENT; global $config; @@ -603,7 +603,16 @@ if(committee_auth_has_access("config")) if(committee_auth_has_access("admin")) admin_warnings(); -echo "
"; +echo ""; + +if($icon) { + echo "
"; + echo theme_icon($icon); + echo ""; +} +else + echo ""; + if($title) echo "

".i18n($title)."

";