Skip to content

Commit

Permalink
course/info MDL-14632 Added header, links and nav. No longer a poopup…
Browse files Browse the repository at this point in the history
… window.
  • Loading branch information
moodler committed Sep 11, 2009
1 parent 46be736 commit aebd86d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions course/info.php
Expand Up @@ -33,9 +33,15 @@
print_error('coursehidden', '', $CFG->wwwroot .'/');
}

$PAGE->set_url('course/info.php', array('id' => $course->id));
$PAGE->set_title(get_string("summaryof", "", $course->fullname));
$PAGE->set_heading('Course info');
$PAGE->set_course($course);
$PAGE->navbar->add(get_string('summary'));
$PAGE->set_headingmenu(user_login_string());

echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($course->fullname) . '<br />(' . format_string($course->shortname) . ')');
echo $OUTPUT->heading('<a href="view.php?id='.$course->id.'">'.format_string($course->fullname) . '</a><br />(' . format_string($course->shortname) . ')');

if ($course->guest || $course->password) {
echo $OUTPUT->box_start('generalbox icons');
Expand Down Expand Up @@ -85,8 +91,6 @@

echo "<br />";

echo $OUTPUT->close_window_button();

echo $OUTPUT->footer();

?>

0 comments on commit aebd86d

Please sign in to comment.