mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 08:11:26 +01:00
f82c2d428a
- rename the main_frame variable to framename, because it - might have caused some confusion - none of the global variables have underscores - put the config in the config table, with a default of _top
54 lines
1.8 KiB
Plaintext
54 lines
1.8 KiB
Plaintext
<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/oceanblue/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>
|
|
<TR>
|
|
<TD VALIGN=TOP><A HREF="<?=$CFG->wwwroot?>" TARGET="<?=$CFG->framename?>"><IMG SRC="<?=$CFG->wwwroot?>/theme/oceanblue/logo.jpg" ALT="Moodle" BORDER="0"></A></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>
|
|
<TR>
|
|
<TD VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
|
|
<TD ALIGN=RIGHT VALIGN=TOP><?=$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?>" CLASS="navbar">
|
|
<FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
|
|
</TD>
|
|
<TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar" ALIGN=RIGHT WIDTH=20 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>
|
|
|
|
<? } ?>
|
|
|
|
<!-- END OF HEADER -->
|