adding some strings
[moodle-linuxchix.git] / theme / standardlogo / header.html
blob2c2bb03c7de4c40f3276327a70ee87b4e9f5e419
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html<?php echo $direction ?>>
3 <head>
4 <?php echo $meta ?>
5 <meta name="keywords" content="moodle, <?php echo $title ?> " />
6 <title><?php echo $title ?></title>
7 <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
8 <?php include("$CFG->javascript"); ?>
9 </head>
11 <body<?php
12 echo " $bodytags";
13 if ($focus) {
14 echo " onload=\"setfocus()\"";
16 ?>>
18 <div id="page">
20 <?php if ($home) { // This is what gets printed on the home page only
21 if (file_exists($CFG->dirroot.'/logo.jpg')) {
22 $standardlogo = $CFG->httpswwwroot.'/logo.jpg';
23 } else if (file_exists($CFG->dirroot.'/logo.gif')) {
24 $standardlogo = $CFG->httpswwwroot.'/logo.gif';
25 } else if (file_exists($CFG->dataroot.'/1/logo.jpg')) {
26 if (empty($CFG->slasharguments)) {
27 $standardlogo = $CFG->httpswwwroot.'/file.php?file=/1/logo.jpg';
28 } else {
29 $standardlogo = $CFG->httpswwwroot.'/file.php/1/logo.jpg';
31 } else if (file_exists($CFG->dataroot.'/1/logo.gif')) {
32 if (empty($CFG->slasharguments)) {
33 $standardlogo = $CFG->httpswwwroot.'/file.php?file=/1/logo.gif';
34 } else {
35 $standardlogo = $CFG->httpswwwroot.'/file.php/1/logo.gif';
37 } else {
38 $standardlogo = $CFG->httpsthemewww .'/'. current_theme().'/logo.gif';
41 //Accessibility: warning: ALT text will need editing if logo changes. 'headermain' is now H1.
43 <div id="header-home" class="clearfix">
44 <h1 class="headermain"><img alt="Moodle" src="<?php echo $standardlogo ?>" /></h1>
45 <div class="headermenu"><?php echo $menu ?></div>
46 </div>
47 <?php } else if ($heading) { // This is what gets printed on any other page with a heading
49 <div id="header" class="clearfix">
50 <h1 class="headermain"><?php echo $heading ?></h1>
51 <div class="headermenu"><?php echo $menu ?></div>
52 </div>
53 <?php } ?>
54 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
55 if ($navigation) { // This is the navigation table with breadcrumbs ?>
56 <div class="navbar clearfix">
57 <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
58 <div class="navbutton"><?php echo $button; ?></div>
59 </div>
60 <?php } else if ($heading) { // If no navigation, but a heading, then print a line
62 <hr />
63 <?php } ?>
64 <!-- END OF HEADER -->
65 <div id="content">