MDL-40996 quiz show user pic should also show name.
This was a regression introduced by MDL-20636 two years ago!
This commit is contained in:
@@ -302,7 +302,11 @@ class mod_quiz_renderer extends plugin_renderer_base {
|
||||
$output = '';
|
||||
$userpicture = $panel->user_picture();
|
||||
if ($userpicture) {
|
||||
$output .= html_writer::tag('div', $this->render($userpicture),
|
||||
$fullname = fullname($userpicture->user);
|
||||
if ($userpicture->size === true) {
|
||||
$fullname = html_writer::div($fullname);
|
||||
}
|
||||
$output .= html_writer::tag('div', $this->render($userpicture) . $fullname,
|
||||
array('id' => 'user-picture', 'class' => 'clearfix'));
|
||||
}
|
||||
$output .= $panel->render_before_button_bits($this);
|
||||
|
||||
+8
-2
@@ -25,8 +25,14 @@ body.jsenabled .questionflagcheckbox {display: none;}
|
||||
#quiznojswarning {font-size: 0.7em;line-height: 1.1;}
|
||||
.jsenabled #quiznojswarning {display: none;}
|
||||
|
||||
.path-mod-quiz #user-picture {margin: 0.5em 0;}
|
||||
.path-mod-quiz #user-picture img {width: auto;height: auto;float: left;}
|
||||
.path-mod-quiz #user-picture {
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
.path-mod-quiz #user-picture img {
|
||||
width: auto;
|
||||
height: auto;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.path-mod-quiz .qnbutton {display: block; position: relative; float: left; width: 1.5em; height: 1.5em; overflow: hidden; margin: 0.3em 0.3em 0.3em 0; padding: 0; border: 1px solid #bbb; background: #ddd; text-align: center; vertical-align: middle;line-height: 1.5em !important; font-weight: bold; text-decoration: none;}
|
||||
.path-mod-quiz.dir-rtl .qnbutton {float: right;}
|
||||
|
||||
Reference in New Issue
Block a user