to capture include() of themed footer HTML.
* @param ? $usercourse ?
* @todo Finish documenting this function
*/
-function print_footer($course=NULL, $usercourse=NULL) {
+function print_footer($course=NULL, $usercourse=NULL, $return=false) {
global $USER, $CFG, $THEME;
/// Course links
/// Include the actual footer file
+ ob_start();
include ($CFG->themedir.current_theme().'/footer.html');
+ $output = ob_get_contents();
+ ob_end_clean();
+ if ($return) {
+ return $output;
+ } else {
+ echo $output;
+ }
}
/**