Proyectos de Subversion Moodle

Rev

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

Rev 863 Rev 864
Línea 101... Línea 101...
101
 
101
 
102
if ($draweropenright && $hasblocks) {
102
if ($draweropenright && $hasblocks) {
103
    $extraclasses[] = 'drawer-open-right';
103
    $extraclasses[] = 'drawer-open-right';
Línea 104... Línea -...
104
}
-
 
105
 
-
 
106
if ($PAGE->course->enablecompletion == '1') {
-
 
107
    $extraclasses[] = 'rui-course--enablecompletion';
-
 
108
    $header = $PAGE->activityheader;
-
 
109
    $headercontent = $header->export_for_template($renderer);
-
 
110
} elseif ($PAGE->course->enablecompletion == '0') {
-
 
111
    if ($currentmod->completionview != 1 && $currentmod->completion != 2) {
-
 
112
        // var_dump($currentmod->completionview);
-
 
113
 
-
 
114
        if ($completiondata->completionstate == COMPLETION_COMPLETE || $completiondata->completionstate == COMPLETION_COMPLETE_PASS) {
-
 
115
            $completed = true;
-
 
116
        }
-
 
117
    }
-
 
118
}
104
}
119
 
105
 
120
if ($PAGE->course->showactivitydates == '1') {
106
if ($PAGE->course->showactivitydates == '1') {
Línea 121... Línea 107...
121
    $extraclasses[] = 'rui-course--showactivitydates';
107
    $extraclasses[] = 'rui-course--showactivitydates';
Línea 145... Línea 131...
145
$primarymenu = $primary->export_for_template($renderer);
131
$primarymenu = $primary->export_for_template($renderer);
146
$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();
147
// 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.
148
$regionmainsettingsmenu = $buildregionmainsettings ? $OUTPUT->region_main_settings_menu() : false;
134
$regionmainsettingsmenu = $buildregionmainsettings ? $OUTPUT->region_main_settings_menu() : false;
Línea -... Línea 135...
-
 
135
 
-
 
136
if ($PAGE->course->enablecompletion == '1') {
-
 
137
    $extraclasses[] = 'rui-course--enablecompletion';
-
 
138
    $header = $PAGE->activityheader;
-
 
139
    $headercontent = $header->export_for_template($renderer);
-
 
140
} elseif ($PAGE->course->enablecompletion == '0') {
-
 
141
    if ($currentmod->completionview != 1 && $currentmod->completion != 2) {
-
 
142
        // var_dump($currentmod->completionview);
-
 
143
 
-
 
144
        if ($completiondata->completionstate == COMPLETION_COMPLETE || $completiondata->completionstate == COMPLETION_COMPLETE_PASS) {
-
 
145
            $completed = true;
-
 
146
        }
-
 
147
    }
-
 
148
}
149
 
149
 
150
// RUI.
150
// RUI.
Línea 151... Línea 151...
151
$iscoursepage = true;
151
$iscoursepage = true;
152
 
152