mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 07:39:54 +02:00
MDL-52814 questions: Show extra info in the outcomes area not info
Currently the only use is the quiz Redo question button, and that would be much better placed in the feedback area, not least for langages where the button label needs to be longer.
This commit is contained in:
parent
9d5d9c64ff
commit
97e9eb203e
3 changed files with 14 additions and 4 deletions
|
@ -595,9 +595,11 @@ class question_display_options {
|
|||
|
||||
/**
|
||||
* @since 2.9
|
||||
* @var string extra HTML to include in the info box of the question display.
|
||||
* This is normally shown after the information about the question, and before
|
||||
* any controls like the flag or the edit icon.
|
||||
* @var string extra HTML to include at the end of the outcome (feedback) box
|
||||
* of the question display.
|
||||
*
|
||||
* This field is now badly named. The place it included is was changed
|
||||
* (for the better) but the name was left unchanged for backwards compatibility.
|
||||
*/
|
||||
public $extrainfocontent = '';
|
||||
|
||||
|
|
|
@ -144,7 +144,6 @@ class core_question_renderer extends plugin_renderer_base {
|
|||
$output .= $this->number($number);
|
||||
$output .= $this->status($qa, $behaviouroutput, $options);
|
||||
$output .= $this->mark_summary($qa, $behaviouroutput, $options);
|
||||
$output .= $options->extrainfocontent;
|
||||
$output .= $this->question_flag($qa, $options->flags);
|
||||
$output .= $this->edit_question_link($qa, $options);
|
||||
return $output;
|
||||
|
@ -412,6 +411,8 @@ class core_question_renderer extends plugin_renderer_base {
|
|||
$qtoutput->feedback($qa, $options), array('class' => 'feedback'));
|
||||
$output .= html_writer::nonempty_tag('div',
|
||||
$behaviouroutput->feedback($qa, $options), array('class' => 'im-feedback'));
|
||||
$output .= html_writer::nonempty_tag('div',
|
||||
$options->extrainfocontent, array('class' => 'extra-feedback'));
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
This files describes API changes for the core question engine.
|
||||
|
||||
=== 3.1, 3.0.3, 2.9.5 ===
|
||||
|
||||
1) The field question_display_options::$extrainfocontent is now displayed in the
|
||||
outcomes (yellow) div by default. It used to be in the info div. If you have
|
||||
overriden the question renderer, you may need to make a corresponding change.
|
||||
|
||||
|
||||
=== 3.0, 2.9.2, 2.8.8 ===
|
||||
|
||||
1) The extra internal PARAM constant question_attempt::PARAM_MARK should no
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue