]> git.mjollnir.org Git - moodle.git/commitdiff
Added skip links to all course formats to main content MDL-7878
authormoodler <moodler>
Wed, 3 Jan 2007 15:37:07 +0000 (15:37 +0000)
committermoodler <moodler>
Wed, 3 Jan 2007 15:37:07 +0000 (15:37 +0000)
course/format/lams/format.php
course/format/scorm/format.php
course/format/social/format.php
course/format/topics/format.php
course/format/weeks/format.php
course/format/weekscss/format.php
lang/en_utf8/moodle.php
lib/pagelib.php

index 89a875bbc7dcb203411bc7d769d270cc22238f29..c312c9dac8620165c60b558360240cae00602035 100644 (file)
@@ -71,7 +71,7 @@ if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) {
 }
 
 /// Start main column
-echo '<td id="middle-column">';
+echo '<td id="middle-column"><a name="startofcontent"></a>';
 
 print_heading_block(get_string('lamsoutline','lams'), 'outline');
 
index 18b30ef9f501ac09e6c50fe01c4e28bfba6760ac..2ca446d5648b220541ba54a77c9a8ab9593b28ed 100644 (file)
@@ -30,7 +30,7 @@
         echo '</td>';
     }
 
-    echo '<td id="middle-column">';
+    echo '<td id="middle-column"><a name="startofcontent"></a>';
     $moduleformat = $module.'_course_format_display';
     if (function_exists($moduleformat)) {
         $moduleformat($USER,$course);
index f37887287201f01ac2d1cc1df72f5d233acf2e3e..f97c50347ef1f779808a2ede1f540148d50e81b0 100644 (file)
@@ -28,7 +28,7 @@
         echo '</td>';
     }
 
-    echo '<td id="middle-column">';
+    echo '<td id="middle-column"><a name="startofcontent"></a>';
     if ($forum = forum_get_course_forum($course->id, 'social')) {
         if (forum_is_forcesubscribed($forum->id)) {
             $subtext = '<div class="link">'.get_string('everyoneissubscribed', 'forum').'</div>';
index d0befec1b825037d76882b5577279f8a0faf5488..6862b009745110d5fa2bfe783829ce62faa2692b 100644 (file)
@@ -76,7 +76,7 @@
     }
 
 /// Start main column
-    echo '<td id="middle-column">';
+    echo '<td id="middle-column"><a name="startofcontent"></a>';
 
     print_heading_block(get_string('topicoutline'), 'outline');
 
 
     echo '</tr></table>';
     
-?>
\ No newline at end of file
+?>
index beab3a5469dc813b3e07e2c32e1686fd9f305452..b6b3657c059b93fcf08eb45fc147744289dac19e 100644 (file)
@@ -62,7 +62,7 @@
     }
 
 /// Start main column
-    echo '<td id="middle-column">';
+    echo '<td id="middle-column"><a name="startofcontent"></a>';
 
     print_heading_block(get_string('weeklyoutline'), 'outline');
 
 
     echo '</tr></table>';
 
-?>
\ No newline at end of file
+?>
index 3168314045df7aac78e8750a5d8cf7ea2b4ff6dd..d4fe8548a9570b151618aacfafde862e805cd48c 100644 (file)
@@ -91,7 +91,7 @@
     }
 
 /// Start main column
-    echo '<div id="middle-column">';
+    echo '<div id="middle-column"><a name="startofcontent"></a>';
 
     print_heading_block(get_string('weeklyoutline'), 'outline');
 
     echo '</div>';
     echo '<div class="clearer"></div>';
 
-?>
\ No newline at end of file
+?>
index af211a4e29b9b27ae25406cfeb565a7c45868cf5..223465f02c4533fa5ae8ebfedf9b64b40532fbb2 100644 (file)
@@ -1246,6 +1246,7 @@ $string['sizegb'] = 'GB';
 $string['sizekb'] = 'KB';
 $string['sizemb'] = 'MB';
 $string['skipped'] = 'Skipped';
+$string['skiptomaincontent'] = 'Skip forward to main content';
 $string['skypeid'] = 'Skype ID';
 $string['socialheadline'] = 'Social forum - latest topics';
 $string['someallowguest'] = 'Some courses may allow guest access';
index c98efc46e063e6420774573a90913cc1e2a75c2e..7924d199e5fe3f8bd9aa1dfbd2e47bafbd79027a 100644 (file)
@@ -407,6 +407,8 @@ class page_course extends page_base {
 
         print_header($title, $this->courserecord->fullname, $crumbtext,
                      '', $meta, true, $buttons, user_login_string($this->courserecord, $USER), false, $bodytags);
+
+        echo '<div class="accesshide"><a href="#startofcontent">'.get_string('skiptomaincontent').'</a></div>';
     }
 
     // SELF-REPORTING SECTION