diff --git a/mod/lesson/view.php b/mod/lesson/view.php index 347b73852f8..5f43117b560 100644 --- a/mod/lesson/view.php +++ b/mod/lesson/view.php @@ -510,6 +510,16 @@ /// Print the page header, heading and tabs $PAGE->print_header(); + + if ($attemptflag) { + print_heading(get_string('attempt', 'lesson', $retries + 1)); + } + + /// This calculates and prints the ongoing score + if ($lesson->ongoing and !empty($pageid)) { + lesson_print_ongoing_score($lesson); + } + require($CFG->dirroot.'/mod/lesson/viewstart.html'); // now starting to print the page's contents diff --git a/mod/lesson/viewstart.html b/mod/lesson/viewstart.html index 15f17dbe944..d9286e96aec 100644 --- a/mod/lesson/viewstart.html +++ b/mod/lesson/viewstart.html @@ -26,27 +26,16 @@ - + displayleft) { ?> - + - + -slideshow && $page->qtype == LESSON_BRANCHTABLE) { // Starts the slideshow div ?> - +slideshow && $page->qtype == LESSON_BRANCHTABLE) { // Starts the slideshow div ?> +
- + - -ongoing and !empty($pageid)) { - lesson_print_ongoing_score($lesson); - } -?> \ No newline at end of file