Proyectos de Subversion Moodle

Rev

Rev 885 | Rev 887 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 885 Rev 886
Línea 97... Línea 97...
97
}
97
}
Línea 98... Línea 98...
98
 
98
 
99
$sidecourseblocks = $OUTPUT->blocks('sidecourseblocks');
99
$sidecourseblocks = $OUTPUT->blocks('sidecourseblocks');
Línea -... Línea 100...
-
 
100
$hassidecourseblocks = strpos($sidecourseblocks, 'data-block=') !== false;
-
 
101
 
-
 
102
if ($PAGE->course->enablecompletion == '1') {
-
 
103
    $extraclasses[] = 'rui-course--enablecompletion';
100
$hassidecourseblocks = strpos($sidecourseblocks, 'data-block=') !== false;
104
}
101
 
105
 
102
if ($draweropenright && $hasblocks) {
106
if ($draweropenright && $hasblocks) {
Línea 103... Línea 107...
103
    $extraclasses[] = 'drawer-open-right';
107
    $extraclasses[] = 'drawer-open-right';
Línea 135... Línea 139...
135
 
139
 
136
$header = $PAGE->activityheader;
140
$header = $PAGE->activityheader;
137
$headercontent = $header->export_for_template($renderer);
141
$headercontent = $header->export_for_template($renderer);
Línea 138... Línea -...
138
$completed = false;
-
 
139
 
-
 
140
if ($PAGE->course->enablecompletion == '1') {
142
$completed = false;
141
    $extraclasses[] = 'rui-course--enablecompletion';
143
 
142
    if ($currentmod->completionview != 1 && $currentmod->completion != 2) {
144
if ($currentmod->completionview != 1 && $currentmod->completion != 2) {
143
        if ($completiondata->completionstate == COMPLETION_COMPLETE || $completiondata->completionstate == COMPLETION_COMPLETE_PASS) {
-
 
144
            $completed = true;
145
    if ($completiondata->completionstate == COMPLETION_COMPLETE || $completiondata->completionstate == COMPLETION_COMPLETE_PASS) {
145
        }
-
 
146
    }
146
        $completed = true;
Línea 147... Línea 147...
147
    $completed = true;
147
    }
148
}
148
}