mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
quiz: MDL-19891 fix that quiz navigation block that was broken by the blocks changes.
Sadly it now requries JavaScript again, at least for best operation.
This commit is contained in:
parent
75003899ae
commit
d18675a8d7
9 changed files with 331 additions and 133 deletions
|
@ -72,12 +72,11 @@
|
|||
}
|
||||
|
||||
/// Arrange for the navigation to be displayed.
|
||||
$navbc = $attemptobj->get_navigation_panel('quiz_review_nav_panel', $page);
|
||||
$navbc = $attemptobj->get_navigation_panel('quiz_review_nav_panel', $page, $showall);
|
||||
$firstregion = reset($PAGE->blocks->get_regions());
|
||||
$PAGE->blocks->add_pretend_block($navbc, $firstregion);
|
||||
|
||||
/// Print the page header
|
||||
$PAGE->requires->js('mod/quiz/quiz.js');
|
||||
$headtags = $attemptobj->get_html_head_contributions($page);
|
||||
if ($accessmanager->securewindow_required($attemptobj->is_preview_user())) {
|
||||
$accessmanager->setup_secure_page($attemptobj->get_course()->shortname.': '.format_string($attemptobj->get_quiz_name()), $headtags);
|
||||
|
@ -236,7 +235,7 @@
|
|||
if ($lastpage) {
|
||||
$accessmanager->print_finish_review_link($attemptobj->is_preview_user());
|
||||
} else {
|
||||
link_arrow_right(get_string('next'), s($attemptobj->review_url(0, $page + 1)));
|
||||
echo link_arrow_right(get_string('next'), s($attemptobj->review_url(0, $page + 1)));
|
||||
}
|
||||
echo "</div>";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue