From 1b796a2700f148747e11b31d8ca6948164a4ab7b Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 17 Oct 2011 12:06:44 +0100 Subject: [PATCH] MDL-28491 diplay the quiz navigation on the summary page. This makes the UI more consistent as you work through the quiz. The improvement is more noticable in some themes than others. --- mod/quiz/summary.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mod/quiz/summary.php b/mod/quiz/summary.php index 1cada4656bac0..f507c2856b203 100644 --- a/mod/quiz/summary.php +++ b/mod/quiz/summary.php @@ -72,11 +72,15 @@ 'summary.php?attempt=' . $attemptobj->get_attemptid(), $attemptobj->get_quizid(), $attemptobj->get_cmid()); -// Print the page header +// Arrange for the navigation to be displayed. if (empty($attemptobj->get_quiz()->showblocks)) { $PAGE->blocks->show_only_fake_blocks(); } +$navbc = $attemptobj->get_navigation_panel($output, 'quiz_attempt_nav_panel', $page); +$firstregion = reset($PAGE->blocks->get_regions()); +$PAGE->blocks->add_fake_block($navbc, $firstregion); + if ($accessmanager->securewindow_required($attemptobj->is_preview_user())) { $accessmanager->setup_secure_page($attemptobj->get_course()->shortname . ': ' . format_string($attemptobj->get_quiz_name()), ''); @@ -91,7 +95,6 @@ $PAGE->set_heading($attemptobj->get_course()->fullname); } -// Print heading. - +// Display the page. $accessmanager->show_attempt_timer_if_needed($attemptobj->get_attempt(), time()); echo $output->summary_page($attemptobj, $displayoptions);