Skip to content

Commit

Permalink
New 'Accessible back to main course link' - #66.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jun 17, 2021
1 parent e9e0e1e commit c55e151
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Version 3.9.1.5 - TBR
6. Fix 'Column orientation combo box strings'.
7. Improve activity meta from information gained on #101.
8. No longer need 'config.php' because of #100.
9. New 'Accessible back to main course link' - #66.

Version 3.9.1.4 - 07/03/2021
----------------------------
Expand Down
5 changes: 5 additions & 0 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,11 @@ public function print_single_section_page($course, $sections, $mods, $modnames,
format_string($course->fullname));
}

echo html_writer::start_tag('a', array('href' => new moodle_url('/course/view.php', array('id' => $course->id))));
$maincoursepage = get_string('maincoursepage', 'format_topcoll');
echo $this->output->pix_icon('t/less', $maincoursepage).$maincoursepage;
echo html_writer::end_tag('a');

// Copy activity clipboard.
echo $this->course_activity_clipboard($course, $displaysection);
$thissection = $modinfo->get_section_info(0);
Expand Down

0 comments on commit c55e151

Please sign in to comment.