if ($chameleon_isadmin or ($chameleon_isteacher and !empty($CFG->allowcoursethemes) and !empty($THEME->chameleonteachereditenabled))) {
// either we're an admin or we're a teacher and this is being used as the course theme
// if we're on a page using a course theme edit that, otherwise edit the main chameleon theme
- $chameleon_theme = current_theme();
+ $chameleon_theme = $PAGE->theme->name;
?>
<style type="text/css"> @import '<?php echo "$CFG->themewww/$chameleon_theme" ?>/ui/chameleon_ui.css'; </style>
</div>
<?php } ?>
-<?php if ($navigation) { // This is the navigation bar with breadcrumbs ?>
+<?php if ($OUTPUT->has_navbar()) { // This is the navigation bar with breadcrumbs ?>
<div class="navbar clearfix">
- <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
+ <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
<div class="navbutton"><?php echo $PAGE->button; ?></div>
</div>
<?php } else if ($PAGE->heading) { // If no navigation, but a heading, then print a line ?>
</div>
<?php } ?>
-<?php if ($navigation) { // This is the navigation bar with breadcrumbs ?>
+<?php if ($OUTPUT->has_navbar()) { // This is the navigation bar with breadcrumbs ?>
<div class="navbar clearfix">
- <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
+ <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
<div class="navbutton"><?php echo $PAGE->button; ?></div>
</div>
<?php } else if ($PAGE->heading) { // If no navigation, but a heading, then print a line ?>