Proyectos de Subversion Moodle

Rev

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

Rev 872 Rev 876
Línea 131... Línea 131...
131
$primarymenu = $primary->export_for_template($renderer);
131
$primarymenu = $primary->export_for_template($renderer);
132
$buildregionmainsettings = !$PAGE->include_region_main_settings_in_header_actions() && !$PAGE->has_secondary_navigation();
132
$buildregionmainsettings = !$PAGE->include_region_main_settings_in_header_actions() && !$PAGE->has_secondary_navigation();
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 -... Línea 135...
-
 
135
 
-
 
136
$header = $PAGE->activityheader;
-
 
137
$headercontent = $header->export_for_template($renderer);
135
 
138
 
136
if ($PAGE->course->enablecompletion == '1') {
139
if ($PAGE->course->enablecompletion == '1') {
137
    $extraclasses[] = 'rui-course--enablecompletion';
-
 
138
    $header = $PAGE->activityheader;
-
 
139
    $headercontent = $header->export_for_template($renderer);
140
    $extraclasses[] = 'rui-course--enablecompletion';
140
    $completed = false;
141
    $completed = true;
141
} else {
142
} else {
142
    if ($currentmod->completionview != 1 && $currentmod->completion != 2) {
143
    if ($currentmod->completionview != 1 && $currentmod->completion != 2) {
143
        if ($completiondata->completionstate == COMPLETION_COMPLETE || $completiondata->completionstate == COMPLETION_COMPLETE_PASS) {
144
        if ($completiondata->completionstate == COMPLETION_COMPLETE || $completiondata->completionstate == COMPLETION_COMPLETE_PASS) {
144
            $completed = true;
145
            $completed = false;
145
        }
146
        }
146
    }
147
    }
147
    $completed = true;
148
    $completed = false;
Línea 148... Línea 149...
148
}
149
}
149
 
150