<?php $this->print_question_grading_details($question, $state, $cmoptions, $options); ?>
</div>
<?php if ($comment) { ?>
- <div class="comment">
- <?php
+ <div class="comment">
+ <?php
echo get_string('comment', 'quiz').': ';
echo $comment;
?>
<?php }
echo $commentlink;
if ($history) { ?>
- <div class="history">
- <?php
+ <div class="history">
+ <?php
print_string('history', 'quiz');
echo $history;
?>
- </div>
+ </div>
<?php } ?>
</div>
</div>
<?php if ($correctanswer) { ?>
- <div class="correctness correct">
+ <div class="correctness correct">
<?php echo get_string('correctanswer', 'quiz').': '. $correctanswer; ?>
</div>
<?php } ?>
<?php echo $radiofalse ?>
</span>
</div>
- <?php if ($feedback) { ?>
- <div class="feedback">
- <?php echo $feedback ?>
- </div>
- <?php } ?>
- <?php $this->print_question_submit_buttons($question, $state, $cmoptions, $options); ?>
+ <?php if ($feedback) { ?>
+ <div class="feedback">
+ <?php echo $feedback ?>
+ </div>
+ <?php } ?>
+ <?php $this->print_question_submit_buttons($question, $state, $cmoptions, $options); ?>
</div>
\ No newline at end of file
}
function get_correct_responses(&$question, &$state) {
- // The correct answer is the one which gives full marks
+ // The correct answer is the one which gives full marks
foreach ($question->options->answers as $answer) {
if (((int) $answer->fraction) === 1) {
return array('' => $answer->id);