forked from science-ation/science-ation
Update send_header() for a third parameter of the icon to use
This commit is contained in:
parent
e2b8bf21a5
commit
eb2128da25
@ -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 "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td>";
|
||||
echo "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr>";
|
||||
|
||||
if($icon) {
|
||||
echo "<td width=\"40\">";
|
||||
echo theme_icon($icon);
|
||||
echo "</td><td>";
|
||||
}
|
||||
else
|
||||
echo "<td>";
|
||||
|
||||
if($title)
|
||||
echo "<h2>".i18n($title)."</h2>";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user