mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
/
header.html
60 lines (47 loc) · 1.92 KB
/
header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<html<?php echo $direction ?>>
<head>
<?php echo $meta ?>
<title><?php echo $title ?></title>
<meta name="keywords" content="moodle, <?php echo $title ?> " />
<link rel="stylesheet" type="text/css" href="<?php echo $styles ?>" />
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?>
</head>
<body<?php
echo " $bodytags";
if ($focus) {
echo " onload=setfocus()";
}
echo " bgcolor=\"$THEME->body\">";
?>
<?php if ($home) { // This is what gets printed on the home page only ?>
<table width="100%" cellpadding="10" cellspacing="0" border="0" class="headerhome">
<tr>
<td valign="top" class="headerhomemain"><?php echo $heading?></td>
<td align="right" valign="top" class="headerhomemenu"><?php echo $menu ?></td>
</tr>
</table>
<?php } 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="header">
<tr>
<td valign="top" class="headermain"><?php echo $heading?></td>
<td align="right" valign="top" class="headermenu"><?php echo $menu ?></td>
</tr>
</table>
<?php } ?>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td bgcolor="<?php echo $THEME->cellheading?>" class="navbar">
<font size="2"><b><?php print_navigation("$navigation"); ?></b></font>
</td>
<td bgcolor="<?php echo $THEME->cellheading?>" class="navbar" align="right" width="20" valign="top"><?php
echo $button;
?></td>
</tr>
</table>
<img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height="5" width="1" /><br />
<?php } else if ($heading) { // If no navigation, but a heading, then print a line ?>
<hr size="1" noshade="noshade" />
<?php } ?>
<!-- END OF HEADER -->