This commit is contained in:
Jun Pataleta 2023-04-19 15:45:55 +08:00
commit 07243a3ae3
5 changed files with 13 additions and 5 deletions

View file

@ -386,14 +386,16 @@ class renderer extends plugin_renderer_base {
$qnostring = 'questionnonavinfo';
}
$tooltip = get_string('questionx', 'question', s($button->number)) . ' - ' . $button->statestring;
$a = new stdClass();
$a->number = $button->number;
$a->number = s($button->number);
$a->attributes = implode(' ', $extrainfo);
$tagcontents = html_writer::tag('span', '', ['class' => 'thispageholder']) .
html_writer::tag('span', '', ['class' => 'trafficlight']) .
get_string($qnostring, 'quiz', $a);
$tagattributes = ['class' => implode(' ', $classes), 'id' => $button->id,
'title' => $button->statestring, 'data-quiz-page' => $button->page];
'title' => $tooltip, 'data-quiz-page' => $button->page];
if ($button->url) {
return html_writer::link($button->url, $tagcontents, $tagattributes);