|
@ -37,9 +37,13 @@ if ($navdraweropen) { |
|
|
$extraclasses[] = 'drawer-open-left'; |
|
|
$extraclasses[] = 'drawer-open-left'; |
|
|
} |
|
|
} |
|
|
$bodyattributes = $OUTPUT->body_attributes($extraclasses); |
|
|
$bodyattributes = $OUTPUT->body_attributes($extraclasses); |
|
|
|
|
|
|
|
|
$blockshtml = $OUTPUT->blocks('side-pre'); |
|
|
$blockshtml = $OUTPUT->blocks('side-pre'); |
|
|
$hasblocks = strpos($blockshtml, 'data-block=') !== false; |
|
|
$hasblocks = strpos($blockshtml, 'data-block=') !== false; |
|
|
$regionmainsettingsmenu = $OUTPUT->region_main_settings_menu(); |
|
|
$regionmainsettingsmenu = $OUTPUT->region_main_settings_menu(); |
|
|
|
|
|
|
|
|
|
|
|
$courseimg = 'http://localhost/saberes/pluginfile.php/1562711/course/overviewfiles/Cerimonial%20no%20Ambiente%20Legislativo.png'; |
|
|
|
|
|
|
|
|
$templatecontext = [ |
|
|
$templatecontext = [ |
|
|
'sitename' => format_string($SITE->shortname, true, ['context' => context_course::instance(SITEID), "escape" => false]), |
|
|
'sitename' => format_string($SITE->shortname, true, ['context' => context_course::instance(SITEID), "escape" => false]), |
|
|
'output' => $OUTPUT, |
|
|
'output' => $OUTPUT, |
|
@ -48,7 +52,8 @@ $templatecontext = [ |
|
|
'bodyattributes' => $bodyattributes, |
|
|
'bodyattributes' => $bodyattributes, |
|
|
'navdraweropen' => $navdraweropen, |
|
|
'navdraweropen' => $navdraweropen, |
|
|
'regionmainsettingsmenu' => $regionmainsettingsmenu, |
|
|
'regionmainsettingsmenu' => $regionmainsettingsmenu, |
|
|
'hasregionmainsettingsmenu' => !empty($regionmainsettingsmenu) |
|
|
'hasregionmainsettingsmenu' => !empty($regionmainsettingsmenu), |
|
|
|
|
|
'courseimg' => $courseimg |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
$templatecontext['flatnavigation'] = $PAGE->flatnav; |
|
|
$templatecontext['flatnavigation'] = $PAGE->flatnav; |
|
|