]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-5400 "Accessibility modifications..." - fixing the 4 themes that don't use <h1>.
authornfreear <nfreear>
Mon, 20 Aug 2007 10:52:57 +0000 (10:52 +0000)
committernfreear <nfreear>
Mon, 20 Aug 2007 10:52:57 +0000 (10:52 +0000)
theme/cornflower/header.html
theme/metal/header.html
theme/orangewhite/header.html
theme/orangewhitepda/header.html

index a2202be921a283f0459c2e1da77b2d1e195753ea..a147503a4e17fdda18bba3ccb99f0cde37ae6cd1 100644 (file)
 <div class="cornflowersurround">
 <div id="page">
 
-<?php if ($home) {  // home page ?>
+<?php //Accessibility: warning: ALT text will need editing when logo changes. 'headermain' is now H1.
+
+      if ($home) {  // home page ?>
     <div id="header-home">
-        <div class="headermain"><img alt="" src="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/images/logo.jpg" width="457" height="64" /></div>
+        <h1 class="headermain"><img alt="[ REPLACE ME ]" src="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/images/logo.jpg" width="457" height="64" /></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     </div>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading 
 ?>
     <div id="header-home">
-        <div class="headermain"><img alt="" src="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/images/logo.jpg" width="457" height="64" /></div>
+        <h1 class="headermain"><img alt="[ REPLACE ME ]" src="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/images/logo.jpg" width="457" height="64" /></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     </div>
     <div class="clearer"></div>
index d68c012a2a05ccc058ccfd424b93f1b53cfa614e..9ecc61ca3b1f9f27d4b5e2eb02af348fc817c9c8 100644 (file)
 <?php if ($home) {  // This is what gets printed on the home page only  
 ?>
     <div id="header-home">
-        <div class="headermain"><?php echo $heading ?></div>
+        <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     </div>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading 
 ?>
     <div id="header">
-        <div class="headermain"><?php echo $heading ?></div>
+        <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     </div>
 <?php } ?>
index ac8b1fb701f16843955bb41891be176393e2c2b3..7f703301e6f5d4794e31f410b7128a1386e11f68 100644 (file)
@@ -20,7 +20,7 @@
 <?php if ($home) {  // This is what gets printed on the home page only  
 ?>
     <div id="header-home">
-        <div class="headermain"><?php echo $heading ?></div>
+        <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     </div>
     <div class="navbar">
@@ -28,7 +28,7 @@
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading 
 ?>
     <div id="header">
-        <div class="headermain"><?php echo $heading ?></div>
+        <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
         <!-- <div class="headermenu"><div id="new-menu"><?php echo $navmenulist ?></div></div> -->
     </div>
index ac8b1fb701f16843955bb41891be176393e2c2b3..7f703301e6f5d4794e31f410b7128a1386e11f68 100644 (file)
@@ -20,7 +20,7 @@
 <?php if ($home) {  // This is what gets printed on the home page only  
 ?>
     <div id="header-home">
-        <div class="headermain"><?php echo $heading ?></div>
+        <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     </div>
     <div class="navbar">
@@ -28,7 +28,7 @@
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading 
 ?>
     <div id="header">
-        <div class="headermain"><?php echo $heading ?></div>
+        <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
         <!-- <div class="headermenu"><div id="new-menu"><?php echo $navmenulist ?></div></div> -->
     </div>