MDL-12771 - change multianswer quetsion type HTML to more closely match that of other question types, in order to fix a layout glitch in Moodle 1.9.

This commit is contained in:
tjhunt
2008-01-08 18:37:43 +00:00
parent 5ae009ad6d
commit 5e17bdd0eb
@@ -208,6 +208,8 @@ class embedded_cloze_qtype extends default_questiontype {
echo "<img src=\"$CFG->wwwroot/question/type/$question->qtype/icon.gif\" ".
"class=\"icon\" alt=\"".get_string('clozeaid','qtype_multichoice')."\" /> ";
}
echo '<div class="ablock clearfix">';
// For this question type, we better print the image on top:
if ($image = get_question_image($question)) {
echo('<img class="qimage" src="' . $image . '" alt="" /><br />');
@@ -338,6 +340,7 @@ class embedded_cloze_qtype extends default_questiontype {
// Print the final piece of question text:
echo $qtextremaining;
$this->print_question_submit_buttons($question, $state, $cmoptions, $options);
echo '</div>';
}
function grade_responses(&$question, &$state, $cmoptions) {