moodle/theme/lines/header.html

41 lines
1.5 KiB
HTML
Executable File

<!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>
<?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?>
<?php include('js/yui.php'); ?>
</head>
<body<?php echo " $bodytags"; ?>>
<div id="page">
<?php if ($home) { // This is what gets printed on the home page only
?>
<?php echo $OUTPUT->container_start('clearfix header-home'); ?>
<h1 class="headermain"><?php echo $heading ?></h1>
<div class="headermenu"><?php echo $menu ?></div>
<?php echo $OUTPUT->container_end(); ?>
<div class="navbar clearfix">
&nbsp;
</div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading
?>
<?php echo $OUTPUT->container_start('clearfix header'); ?>
<h1 class="headermain"><?php echo $heading ?></h1>
<div class="headermenu"><?php echo $menu ?></div>
<?php echo $OUTPUT->container_end(); ?>
<div class="navbar clearfix">
<?php if ($navigation) { // This is the navigation table with breadcrumbs
?>
<div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div>
<?php } ?>
</div>
<?php } ?>
<!-- END OF HEADER -->
<?php echo $OUTPUT->container_start('content'); ?>