mirror of
https://github.com/moodle/moodle.git
synced 2025-01-20 15:08:32 +01:00
839f2456bb
- fixed (hopefully) all <img> tags - global replace on <br> to <br /> - & in URLs - got the forum module XHTML compliant Julian Sedding
148 lines
9.2 KiB
HTML
148 lines
9.2 KiB
HTML
<?php
|
|
/*
|
|
Filename: header.html
|
|
Purpose of file: Printing out the Moodle theme header
|
|
|
|
Author of file: Bjarne Varoystrand aka Black Skorpio
|
|
E-mail: webmaster@postnuke-sweden.com
|
|
Web: www.postnuke-sweden.com
|
|
ICQ: 1194177
|
|
|
|
---------------------------------------------------------------------
|
|
LICENSE
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License (GPL)
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
|
*/
|
|
?>
|
|
<html<?php echo $direction?>>
|
|
<head>
|
|
<?php echo $meta ?>
|
|
<title><?php echo $title ?></title>
|
|
<meta name="keywords" content="Moodle, <?php echo $title ?> " />
|
|
<meta name="ROBOTS" content="INDEX,FOLLOW" />
|
|
<meta name="resource-type" content="document" />
|
|
<meta http-equiv="expires" content="0" />
|
|
<meta name="author" content="<?php echo $title ?>" />
|
|
<meta name="copyright" content="Copyright (c) 2003 by <?php echo $title ?>" />
|
|
<meta name="revisit-after" content="1 days" />
|
|
<meta name="distribution" content="Global" />
|
|
<meta name="generator" content="Moodle - http://moodle.com" />
|
|
<meta name="rating" content="General" />
|
|
|
|
<link rel="stylesheet" href="<?php echo $styles ?>" />
|
|
<link rel="SHORTCUT ICON" href="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/favicon.ico" />
|
|
</script>
|
|
<?php include("$CFG->javascript"); ?>
|
|
</head>
|
|
|
|
<body <?php echo " $bodytags"; if ($focus) { echo "onload=\"setfocus()\""; } echo " bgcolor=\"$THEME->body\" topmargin=\"$THEME->topmargin\" leftmargin=\"$THEME->leftmargin\" marginheight=\"$THEME->marginheight\" marginwidth=\"$THEME->marginwidth\" />"; ?>
|
|
|
|
|
|
<?php if ($home) { // This is what gets printed on the home page only ?>
|
|
<div align="center">
|
|
<table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
|
|
<tr>
|
|
<td width="6" ><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" alt="" /></td>
|
|
<td valign="bottom" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg" width="1" height="9" alt="" /></td>
|
|
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_corner_top.jpg" width="6" height="9" alt="" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="6" bgcolor="<?php echo $THEME->body?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" alt="" /></td>
|
|
<td align="left" valign="top"><a target="<?php echo $CFG->framename?>" href="<?php echo $CFG->wwwroot?>"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/$THEME->frontlogo" ?>" border="0" alt="" /></a></td>
|
|
<td width="6" bgcolor="<?php echo $THEME->body?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_sidebar.jpg" width="6" height="100%" alt="" /></td>
|
|
</tr>
|
|
</table><table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
|
|
<tr>
|
|
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" alt="" /></td>
|
|
<td align="center" valign="middle" width="100%">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td align="left" valign="middle"> <font size="4"><b><?php echo $heading?></b></font></td>
|
|
<td align="right" valign="middle"><?php echo $menu ?> </td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_right.gif" width="2" height="100%" alt="" /></td>
|
|
</tr>
|
|
</table><table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
|
|
<tr>
|
|
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" alt="" /></td>
|
|
<td align="center" valign="top">
|
|
<table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
|
|
<tr>
|
|
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" alt="" /></td>
|
|
<td valign="bottom" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg" width="1" height="9" alt="" /></td>
|
|
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_corner_top.jpg" width="6" height="9" alt="" /></td>
|
|
</tr><tr>
|
|
<td width="6" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_sidebar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_sidebar.jpg" width="6" height="100" alt="" /></td>
|
|
<td align="left" valign="top">
|
|
|
|
|
|
<?php } else if ($heading) { // This is what gets printed on any other page with a heading ?>
|
|
<div align="center">
|
|
<table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
|
|
<tr>
|
|
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" alt="" /></td>
|
|
<td valign="bottom" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg" width="1" height="9" alt="" /></td>
|
|
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_corner_top.jpg" width="6" height="9" alt="" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="6" bgcolor="<?php echo $THEME->body?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" alt="" /></td>
|
|
<td align="left" valign="top"><a target="<?php echo $CFG->framename?>" href="<?php echo $CFG->wwwroot ?>"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/$THEME->smalllogo" ?>" border="0" alt="" /></a></td>
|
|
<td width="6" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_sidebar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_sidebar.jpg" width="6" height="100%" alt="" /></td>
|
|
</tr>
|
|
</table><table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
|
|
<tr>
|
|
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" alt="" /></td>
|
|
<td align="center" valign="middle">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td align="left" valign="middle"> <font size="4"><b><?php echo $heading?></b></font></td>
|
|
<td align="right" valign="middle"><?php echo $menu ?> </td>
|
|
</tr>
|
|
</table>
|
|
|
|
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td bgcolor="<?php echo $THEME->cellheading?>" class="navbar" valign="middle"> <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>
|
|
<?php } ?>
|
|
|
|
</td>
|
|
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_right.gif" width="2" height="100%" alt="" /></td>
|
|
</tr>
|
|
</table><table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
|
|
<tr>
|
|
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" alt="" /></td>
|
|
<td align="center" valign="top">
|
|
<table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
|
|
<tr>
|
|
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" alt="" /></td>
|
|
<td valign="bottom" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg" width="1" height="9" alt="" /></td>
|
|
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_corner_top.jpg" width="6" height="9" alt="" /></td>
|
|
</tr><tr>
|
|
<td width="6" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_sidebar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_sidebar.jpg" width="6" height="100" alt="" /></td>
|
|
<td align="left" valign="top">
|
|
|
|
|
|
<?php } else { // This is what gets printed on any other page (no heading, not home page) ?>
|
|
<blockquote>
|
|
|
|
<?php } ?>
|
|
|
|
<!-- End of header -->
|