Hi!!
I've got a problem with my moodle site themes.
The question is that i've got a theme applied in the FrontEnd, and i've got a different one for the course, but the problem is that the header.html and the footer.html comes from the frontend theme.
Is it possible to see header and footer of the theme that i'm using in my course? I tryed the print_header function from weblib.php file... but i can't understand why this sentence say
include ($CFG->themedir.current_theme().'/header.html');
And then the function current_theme doesn't return the course theme properly.
function current_theme() {
global $CFG, $USER, $SESSION, $course;
if (!empty($CFG->pagetheme)) { // Page theme is for special page-only themes set by code
return $CFG->pagetheme;
} else if (!empty($CFG->coursetheme) and !empty($CFG->allowcoursethemes)) { // Course themes override others
return $CFG->coursetheme;
} else if (!empty($SESSION->theme)) { // Session theme can override other settings
return $SESSION->theme;
} else if (!empty($USER->theme) and !empty($CFG->allowuserthemes)) { // User theme can override site theme
return $USER->theme;
} else {
return $CFG->theme;
}
}
thx for everything.
Urko.
Urko.
Themes
course theme header.html and footer.html problems
This discussion has been locked so you can no longer reply to it.