| Línea 103... |
Línea 103... |
| 103 |
$extraclasses[] = 'drawer-open-right';
|
103 |
$extraclasses[] = 'drawer-open-right';
|
| 104 |
}
|
104 |
}
|
| Línea 105... |
Línea 105... |
| 105 |
|
105 |
|
| 106 |
if ($PAGE->course->enablecompletion == '1') {
|
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 |
}
|
| 107 |
$extraclasses[] = 'rui-course--enablecompletion';
|
117 |
}
|
| Línea 108... |
Línea 118... |
| 108 |
}
|
118 |
}
|
| 109 |
|
119 |
|
| 110 |
if ($PAGE->course->showactivitydates == '1') {
|
120 |
if ($PAGE->course->showactivitydates == '1') {
|
| Línea 135... |
Línea 145... |
| 135 |
$primarymenu = $primary->export_for_template($renderer);
|
145 |
$primarymenu = $primary->export_for_template($renderer);
|
| 136 |
$buildregionmainsettings = !$PAGE->include_region_main_settings_in_header_actions() && !$PAGE->has_secondary_navigation();
|
146 |
$buildregionmainsettings = !$PAGE->include_region_main_settings_in_header_actions() && !$PAGE->has_secondary_navigation();
|
| 137 |
// If the settings menu will be included in the header then don't add it here.
|
147 |
// If the settings menu will be included in the header then don't add it here.
|
| 138 |
$regionmainsettingsmenu = $buildregionmainsettings ? $OUTPUT->region_main_settings_menu() : false;
|
148 |
$regionmainsettingsmenu = $buildregionmainsettings ? $OUTPUT->region_main_settings_menu() : false;
|
| Línea 139... |
Línea -... |
| 139 |
|
- |
|
| 140 |
$header = $PAGE->activityheader;
|
- |
|
| 141 |
$headercontent = $header->export_for_template($renderer);
|
- |
|
| 142 |
|
149 |
|
| 143 |
// RUI.
|
150 |
// RUI.
|
| Línea 144... |
Línea 151... |
| 144 |
$iscoursepage = true;
|
151 |
$iscoursepage = true;
|
| 145 |
|
152 |
|
| Línea 189... |
Línea 196... |
| 189 |
'hasregionmainsettingsmenu' => !empty($regionmainsettingsmenu),
|
196 |
'hasregionmainsettingsmenu' => !empty($regionmainsettingsmenu),
|
| 190 |
'overflow' => $overflow,
|
197 |
'overflow' => $overflow,
|
| 191 |
'headercontent' => $headercontent,
|
198 |
'headercontent' => $headercontent,
|
| 192 |
'addblockbutton' => $addblockbutton,
|
199 |
'addblockbutton' => $addblockbutton,
|
| 193 |
'hidecourseindexnav' => $hidecourseindexnav,
|
200 |
'hidecourseindexnav' => $hidecourseindexnav,
|
| - |
|
201 |
'completed' => $completed
|
| 194 |
];
|
202 |
];
|
| Línea 195... |
Línea 203... |
| 195 |
|
203 |
|
| 196 |
// Get and use the course page information banners HTML code, if any course page hints are configured.
|
204 |
// Get and use the course page information banners HTML code, if any course page hints are configured.
|
| 197 |
$coursepageinformationbannershtml = theme_universe_get_course_information_banners();
|
205 |
$coursepageinformationbannershtml = theme_universe_get_course_information_banners();
|