mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
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:
parent
a656e0de48
commit
06e2b0de2a
1 changed files with 3 additions and 0 deletions
|
@ -227,6 +227,8 @@ class embedded_cloze_qtype extends default_questiontype {
|
||||||
echo "<img src=\"$CFG->wwwroot/question/type/$question->qtype/icon.gif\" ".
|
echo "<img src=\"$CFG->wwwroot/question/type/$question->qtype/icon.gif\" ".
|
||||||
"class=\"icon\" alt=\"".get_string('clozeaid','qtype_multichoice')."\" /> ";
|
"class=\"icon\" alt=\"".get_string('clozeaid','qtype_multichoice')."\" /> ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo '<div class="ablock clearfix">';
|
||||||
// For this question type, we better print the image on top:
|
// For this question type, we better print the image on top:
|
||||||
if ($image = get_question_image($question)) {
|
if ($image = get_question_image($question)) {
|
||||||
echo('<img class="qimage" src="' . $image . '" alt="" /><br />');
|
echo('<img class="qimage" src="' . $image . '" alt="" /><br />');
|
||||||
|
@ -357,6 +359,7 @@ class embedded_cloze_qtype extends default_questiontype {
|
||||||
// Print the final piece of question text:
|
// Print the final piece of question text:
|
||||||
echo $qtextremaining;
|
echo $qtextremaining;
|
||||||
$this->print_question_submit_buttons($question, $state, $cmoptions, $options);
|
$this->print_question_submit_buttons($question, $state, $cmoptions, $options);
|
||||||
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
function grade_responses(&$question, &$state, $cmoptions) {
|
function grade_responses(&$question, &$state, $cmoptions) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue