quiz editing: MDL-18173 tidy up wording and add cursor: help.

This commit is contained in:
tjhunt 2009-02-25 07:27:02 +00:00
parent 63265f262f
commit 8e84d9788c
3 changed files with 7 additions and 9 deletions

View File

@ -552,8 +552,7 @@ $string['quiztimer'] = 'Quiz Timer';
$string['quizwillopen'] = 'This quiz will open $a';
$string['random'] = 'Random Question';
$string['randomcreate'] = 'Create Random Questions';
$string['randomfromcategory'] = 'Random question from all of category:';
$string['randomfromcategoryonly'] = 'Random question from just category:';
$string['randomfromcategory'] = 'Random question from category:';
$string['randomnosubcat'] = 'Questions from this category only, not its subcategories.';
$string['randomsamatch'] = 'Random Short-Answer Matching';
$string['randomsamatchcreate'] = 'Create Random Short-Answer Matching questions';

View File

@ -677,12 +677,7 @@ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool
echo '<div class="randomquestionfromcategory">';
print_question_icon($question);
print_random_option_icon($question);
if (!empty($question->questiontext)) {
$string = 'randomfromcategory';
} else {
$string = 'randomfromcategoryonly';
}
echo ' ' . get_string($string, 'quiz') . '</div>';
echo ' ' . get_string('randomfromcategory', 'quiz') . '</div>';
$a = new stdClass;
$a->arrow = $THEME->rarrow;
@ -834,7 +829,7 @@ function print_random_option_icon($question) {
$tooltip = get_string('randomnosubcat', 'quiz');
}
echo '<img src="' . $CFG->pixpath . '/i/' . $icon . '.png" alt="' .
$tooltip . '" title="' . $tooltip . '" />';
$tooltip . '" title="' . $tooltip . '" class="uihint" />';
}

View File

@ -129,6 +129,10 @@ img.grouppicture {
border: 0;
}
img.uihint {
cursor: help;
}
#grouppicture {
text-align: center;
}