mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
quiz editing: MDL-17398 Added "show category contents" as a tooltip for the link with the category name as its contents
This commit is contained in:
parent
3814fb96fc
commit
8333ad82ae
@ -805,11 +805,15 @@ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool
|
||||
print_string('random','quiz');
|
||||
echo " ".get_string("fromcategory",'quiz').":</div>";
|
||||
|
||||
$a = new stdClass;
|
||||
$a->arrow = $THEME->rarrow;
|
||||
$strshowcategorycontents=get_string('showcategorycontents','quiz', $a);
|
||||
|
||||
echo '<div class="randomquestioncategory">';
|
||||
echo '<a href="'.
|
||||
$pageurl->out(false,array("qbanktool"=>1,
|
||||
"cat"=>$category->id.','.$category->contextid)).
|
||||
'">'.$category->name.'</a>';
|
||||
'" title="'.$strshowcategorycontents.'">'.$category->name.'</a>';
|
||||
echo '<span class="questionpreview">'.
|
||||
quiz_question_preview_button($quiz, $question).
|
||||
'</span>';
|
||||
@ -831,9 +835,6 @@ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool
|
||||
echo '<br />';
|
||||
|
||||
//create link to open question bank
|
||||
$a = new stdClass;
|
||||
$a->arrow = $THEME->rarrow;
|
||||
$strshowcategorycontents=get_string('showcategorycontents','quiz', $a);
|
||||
$linkcategorycontents=' <a href="'.
|
||||
$pageurl->out(false,array("qbanktool"=>1,
|
||||
"cat"=>$category->id.','.$category->contextid)).
|
||||
|
Loading…
x
Reference in New Issue
Block a user