| Línea 240... |
Línea 240... |
| 240 |
echo $lessonoutput->header($lesson, $cm, $currenttab, $extraeditbuttons, $lessonpageid, $extrapagetitle);
|
240 |
echo $lessonoutput->header($lesson, $cm, $currenttab, $extraeditbuttons, $lessonpageid, $extrapagetitle);
|
| 241 |
$editbuttons->set_currentpage($lessonpageid);
|
241 |
$editbuttons->set_currentpage($lessonpageid);
|
| 242 |
echo $lessonoutput->render($editbuttons);
|
242 |
echo $lessonoutput->render($editbuttons);
|
| Línea 243... |
Línea 243... |
| 243 |
|
243 |
|
| - |
|
244 |
if ($attemptflag) {
|
| 244 |
if ($attemptflag) {
|
245 |
// Get correct heading level for the attempts heading.
|
| 245 |
// We are using level 3 header because attempt heading is a sub-heading of lesson title (MDL-30911).
|
246 |
$headinglevel = $PAGE->activityheader->get_heading_level();
|
| 246 |
echo $OUTPUT->heading(get_string('attempt', 'lesson', $retries), 3);
|
247 |
echo $OUTPUT->heading(get_string('attempt', 'lesson', $retries), $headinglevel);
|
| 247 |
}
|
248 |
}
|
| 248 |
// This calculates and prints the ongoing score.
|
249 |
// This calculates and prints the ongoing score.
|
| 249 |
if ($lesson->ongoing && !empty($pageid) && !$reviewmode) {
|
250 |
if ($lesson->ongoing && !empty($pageid) && !$reviewmode) {
|
| 250 |
echo $lessonoutput->ongoing_score($lesson);
|
251 |
echo $lessonoutput->ongoing_score($lesson);
|