moodle/theme/garden/header.html
2003-01-06 07:39:19 +00:00

54 lines
1.7 KiB
HTML
Executable File

<HTML<?=$direction?>>
<HEAD>
<TITLE><?=$title ?></TITLE>
<META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
<?=$meta ?>
<LINK REL="stylesheet" TYPE="text/css" HREF="<?=$styles ?>">
<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/green/favicon.ico">
<? include("$CFG->javascript"); ?>
</HEAD>
<BODY <? if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\">"; ?>
<? if ($home) { // This is what gets printed on the home page only ?>
<TABLE WIDTH=100% CELLPADDING=10 CELLSPACING=0 BORDER=0 class="top">
<TR>
<TD VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
<TD ALIGN=RIGHT VALIGN=TOP><?=$menu ?></TD>
</TR>
</TABLE>
<? } else if ($heading) { // This is what gets printed on any other page with a heading ?>
<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0 class="top">
<TR>
<TD VALIGN=TOP style="padding-left: 10px"><br /><FONT SIZE=4><B><?=$heading?></B></FONT><br /><br /></TD>
<TD ALIGN=RIGHT VALIGN=TOP style="padding-right: 10px"><br /><?=$menu ?></TD>
</TR>
</TABLE>
<? } ?>
<? if ($navigation) { // This is the navigation table with breadcrumbs ?>
<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
<TR>
<TD BGCOLOR="<?=$THEME->cellheading?>">
<FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
</TD>
<TD BGCOLOR="<?=$THEME->cellheading?>" ALIGN=RIGHT VALIGN=TOP><?=$button ?></TD>
</TR>
</TABLE>
<IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
<? } else if ($heading) { // If no navigation, but a heading, then print a line ?>
<HR SIZE=1 noshade="noshade">
<? } ?>
<!-- END OF HEADER -->