| Línea 133... |
Línea 133... |
| 133 |
// If the settings menu will be included in the header then don't add it here.
|
133 |
// If the settings menu will be included in the header then don't add it here.
|
| 134 |
$regionmainsettingsmenu = $buildregionmainsettings ? $OUTPUT->region_main_settings_menu() : false;
|
134 |
$regionmainsettingsmenu = $buildregionmainsettings ? $OUTPUT->region_main_settings_menu() : false;
|
| Línea 135... |
Línea 135... |
| 135 |
|
135 |
|
| 136 |
$header = $PAGE->activityheader;
|
136 |
$header = $PAGE->activityheader;
|
| 137 |
$headercontent = $header->export_for_template($renderer);
|
137 |
$headercontent = $header->export_for_template($renderer);
|
| Línea 138... |
Línea 138... |
| 138 |
$completed = true;
|
138 |
$completed = false;
|
| 139 |
|
139 |
|
| 140 |
if ($PAGE->course->enablecompletion == '1') {
|
140 |
if ($PAGE->course->enablecompletion == '1') {
|
| 141 |
$extraclasses[] = 'rui-course--enablecompletion';
|
141 |
$extraclasses[] = 'rui-course--enablecompletion';
|
| 142 |
if ($currentmod->completionview != 1 && $currentmod->completion != 2) {
|
142 |
if ($currentmod->completionview != 1 && $currentmod->completion != 2) {
|
| 143 |
if ($completiondata->completionstate == COMPLETION_COMPLETE || $completiondata->completionstate == COMPLETION_COMPLETE_PASS) {
|
143 |
if ($completiondata->completionstate == COMPLETION_COMPLETE || $completiondata->completionstate == COMPLETION_COMPLETE_PASS) {
|
| 144 |
$completed = false;
|
144 |
$completed = true;
|
| - |
|
145 |
}
|
| 145 |
}
|
146 |
}
|
| Línea 146... |
Línea 147... |
| 146 |
}
|
147 |
$completed = true;
|
| 147 |
}
|
148 |
}
|