2007-01-03 16:04:08 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2003-05-15 13:55:22 +00:00
|
|
|
<html<?php echo $direction ?>>
|
|
|
|
<head>
|
2005-04-02 15:29:47 +00:00
|
|
|
<?php echo $meta ?>
|
|
|
|
<meta name="keywords" content="moodle, <?php echo $title ?> " />
|
|
|
|
<title><?php echo $title ?></title>
|
2006-10-09 10:12:41 +00:00
|
|
|
<link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
|
2005-04-02 15:29:47 +00:00
|
|
|
<?php include("$CFG->javascript"); ?>
|
2003-05-15 13:55:22 +00:00
|
|
|
</head>
|
|
|
|
|
2005-04-02 15:29:47 +00:00
|
|
|
<body<?php
|
|
|
|
echo " $bodytags";
|
|
|
|
if ($focus) {
|
|
|
|
echo " onload=\"setfocus()\"";
|
|
|
|
}
|
|
|
|
?>>
|
2007-08-24 04:22:30 +00:00
|
|
|
|
2005-04-02 15:29:47 +00:00
|
|
|
<div id="page">
|
|
|
|
|
2007-08-24 04:22:30 +00:00
|
|
|
<?php if ($home) { // This is what gets printed on the home page only
|
2005-05-13 13:48:12 +00:00
|
|
|
if (file_exists($CFG->dirroot.'/logo.jpg')) {
|
2006-07-06 15:53:46 +00:00
|
|
|
$standardlogo = $CFG->httpswwwroot.'/logo.jpg';
|
2005-05-13 13:48:12 +00:00
|
|
|
} else if (file_exists($CFG->dirroot.'/logo.gif')) {
|
2006-07-06 15:53:46 +00:00
|
|
|
$standardlogo = $CFG->httpswwwroot.'/logo.gif';
|
2005-05-13 13:48:12 +00:00
|
|
|
} else if (file_exists($CFG->dataroot.'/1/logo.jpg')) {
|
2008-07-10 09:55:11 +00:00
|
|
|
require_once($CFG->libdir.'/filelib.php');
|
|
|
|
$standardlogo = get_file_url('1/logo.jpg', null, 'httpscoursefile');
|
2005-05-13 13:48:12 +00:00
|
|
|
} else if (file_exists($CFG->dataroot.'/1/logo.gif')) {
|
2008-07-10 09:55:11 +00:00
|
|
|
require_once($CFG->libdir.'/filelib.php');
|
|
|
|
$standardlogo = get_file_url('1/logo.gif', null, 'httpscoursefile');
|
2004-05-22 08:53:22 +00:00
|
|
|
} else {
|
2006-10-09 10:12:41 +00:00
|
|
|
$standardlogo = $CFG->httpsthemewww .'/'. current_theme().'/logo.gif';
|
2004-05-22 08:53:22 +00:00
|
|
|
}
|
2007-08-24 04:22:30 +00:00
|
|
|
|
2006-05-22 10:00:18 +00:00
|
|
|
//Accessibility: warning: ALT text will need editing if logo changes. 'headermain' is now H1.
|
2004-05-22 08:53:22 +00:00
|
|
|
?>
|
2007-11-23 16:49:51 +00:00
|
|
|
<?php print_container_start(true, '', 'header-home'); ?>
|
2006-05-19 13:30:25 +00:00
|
|
|
<h1 class="headermain"><img alt="Moodle" src="<?php echo $standardlogo ?>" /></h1>
|
2005-04-02 15:29:47 +00:00
|
|
|
<div class="headermenu"><?php echo $menu ?></div>
|
2007-11-23 16:49:51 +00:00
|
|
|
<?php print_container_end(); ?>
|
2007-08-24 04:22:30 +00:00
|
|
|
<?php } else if ($heading) { // This is what gets printed on any other page with a heading
|
2005-04-02 15:29:47 +00:00
|
|
|
?>
|
2007-11-23 16:49:51 +00:00
|
|
|
<?php print_container_start(true, '', 'header'); ?>
|
2006-05-19 13:30:25 +00:00
|
|
|
<h1 class="headermain"><?php echo $heading ?></h1>
|
2005-04-02 15:29:47 +00:00
|
|
|
<div class="headermenu"><?php echo $menu ?></div>
|
2007-11-23 16:49:51 +00:00
|
|
|
<?php print_container_end(); ?>
|
2003-05-15 13:55:22 +00:00
|
|
|
<?php } ?>
|
2006-05-22 10:00:18 +00:00
|
|
|
<?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
|
|
|
|
if ($navigation) { // This is the navigation table with breadcrumbs ?>
|
|
|
|
<div class="navbar clearfix">
|
2007-08-24 12:45:16 +00:00
|
|
|
<div class="breadcrumb"><?php print_navigation($navigation); ?></div>
|
2005-04-02 15:29:47 +00:00
|
|
|
<div class="navbutton"><?php echo $button; ?></div>
|
2006-05-22 10:00:18 +00:00
|
|
|
</div>
|
2007-08-24 04:22:30 +00:00
|
|
|
<?php } else if ($heading) { // If no navigation, but a heading, then print a line
|
2005-04-02 15:29:47 +00:00
|
|
|
?>
|
2007-01-04 04:44:54 +00:00
|
|
|
<hr />
|
2003-05-15 13:55:22 +00:00
|
|
|
<?php } ?>
|
2005-04-02 15:29:47 +00:00
|
|
|
<!-- END OF HEADER -->
|
2007-11-23 16:49:51 +00:00
|
|
|
<?php print_container_start(false, '', 'content'); ?>
|