From: moodler Date: Wed, 3 Jan 2007 15:37:07 +0000 (+0000) Subject: Added skip links to all course formats to main content MDL-7878 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2ef9d19a519c02e61943e66abf1784dc719e2548;p=moodle.git Added skip links to all course formats to main content MDL-7878 --- diff --git a/course/format/lams/format.php b/course/format/lams/format.php index 89a875bbc7..c312c9dac8 100644 --- a/course/format/lams/format.php +++ b/course/format/lams/format.php @@ -71,7 +71,7 @@ if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) { } /// Start main column -echo ''; +echo ''; print_heading_block(get_string('lamsoutline','lams'), 'outline'); diff --git a/course/format/scorm/format.php b/course/format/scorm/format.php index 18b30ef9f5..2ca446d564 100644 --- a/course/format/scorm/format.php +++ b/course/format/scorm/format.php @@ -30,7 +30,7 @@ echo ''; } - echo ''; + echo ''; $moduleformat = $module.'_course_format_display'; if (function_exists($moduleformat)) { $moduleformat($USER,$course); diff --git a/course/format/social/format.php b/course/format/social/format.php index f378872872..f97c50347e 100644 --- a/course/format/social/format.php +++ b/course/format/social/format.php @@ -28,7 +28,7 @@ echo ''; } - echo ''; + echo ''; if ($forum = forum_get_course_forum($course->id, 'social')) { if (forum_is_forcesubscribed($forum->id)) { $subtext = ''; diff --git a/course/format/topics/format.php b/course/format/topics/format.php index d0befec1b8..6862b00974 100644 --- a/course/format/topics/format.php +++ b/course/format/topics/format.php @@ -76,7 +76,7 @@ } /// Start main column - echo ''; + echo ''; print_heading_block(get_string('topicoutline'), 'outline'); @@ -270,4 +270,4 @@ echo ''; -?> \ No newline at end of file +?> diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php index beab3a5469..b6b3657c05 100644 --- a/course/format/weeks/format.php +++ b/course/format/weeks/format.php @@ -62,7 +62,7 @@ } /// Start main column - echo ''; + echo ''; print_heading_block(get_string('weeklyoutline'), 'outline'); @@ -267,4 +267,4 @@ echo ''; -?> \ No newline at end of file +?> diff --git a/course/format/weekscss/format.php b/course/format/weekscss/format.php index 3168314045..d4fe8548a9 100644 --- a/course/format/weekscss/format.php +++ b/course/format/weekscss/format.php @@ -91,7 +91,7 @@ } /// Start main column - echo '
'; + echo '
'; print_heading_block(get_string('weeklyoutline'), 'outline'); @@ -277,4 +277,4 @@ echo '
'; echo '
'; -?> \ No newline at end of file +?> diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index af211a4e29..223465f02c 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -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'; diff --git a/lib/pagelib.php b/lib/pagelib.php index c98efc46e0..7924d199e5 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -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 ''; } // SELF-REPORTING SECTION