moodle/theme/standardlogo/header.html

60 lines
2.5 KiB
HTML
Raw Normal View History

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">
<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"); ?>
</head>
2005-04-02 15:29:47 +00:00
<body<?php
echo " $bodytags";
if ($focus) {
echo " onload=\"setfocus()\"";
}
?>>
2005-04-02 15:29:47 +00:00
<div id="page">
<?php if ($home) { // This is what gets printed on the home page only
if (file_exists($CFG->dirroot.'/logo.jpg')) {
$standardlogo = $CFG->httpswwwroot.'/logo.jpg';
} else if (file_exists($CFG->dirroot.'/logo.gif')) {
$standardlogo = $CFG->httpswwwroot.'/logo.gif';
} else if (file_exists($CFG->dataroot.'/1/logo.jpg')) {
require_once($CFG->libdir.'/filelib.php');
$standardlogo = get_file_url('1/logo.jpg', null, 'httpscoursefile');
} else if (file_exists($CFG->dataroot.'/1/logo.gif')) {
require_once($CFG->libdir.'/filelib.php');
$standardlogo = get_file_url('1/logo.gif', null, 'httpscoursefile');
} else {
2006-10-09 10:12:41 +00:00
$standardlogo = $CFG->httpsthemewww .'/'. current_theme().'/logo.gif';
}
//Accessibility: warning: ALT text will need editing if logo changes. 'headermain' is now H1.
?>
<?php print_container_start(true, '', 'header-home'); ?>
<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>
<?php print_container_end(); ?>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading
2005-04-02 15:29:47 +00:00
?>
<?php print_container_start(true, '', 'header'); ?>
<h1 class="headermain"><?php echo $heading ?></h1>
2005-04-02 15:29:47 +00:00
<div class="headermenu"><?php echo $menu ?></div>
<?php print_container_end(); ?>
<?php } ?>
<?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>
</div>
<?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 />
<?php } ?>
2005-04-02 15:29:47 +00:00
<!-- END OF HEADER -->
<?php print_container_start(false, '', 'content'); ?>