From 13c7e2719acec60a4343bb58a47c3419d6f846a4 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 1 Jun 2002 09:44:06 +0000 Subject: [PATCH] Modified weekly course format with "People" section and sorted activity modules --- course/view.php | 1 + course/weeks.php | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/course/view.php b/course/view.php index c36ebecc4c..a91c9616bd 100644 --- a/course/view.php +++ b/course/view.php @@ -47,6 +47,7 @@ $mods[$mod->id] = $mod; $modtype[$mod->modname] = $mod->modfullname; } + ksort($modtype); } switch ($course->format) { diff --git a/course/weeks.php b/course/weeks.php index c780522ff4..aaad5b05b9 100644 --- a/course/weeks.php +++ b/course/weeks.php @@ -33,28 +33,31 @@ // Layout the left column - // Print all the course links on the side + + // Links to people + + print_simple_box("People", $align="CENTER", $width="100%", $color="$THEME->cellheading"); + $moddata[]="id\">Participants"; + $modicon[]="\"List"; + $moddata[]="id&course=$course->id\">Edit my profile"; + $modicon[]="\"Me\""; + print_side_block("", $moddata, "", $modicon); + // Then all the links to module types $moddata = array(); $modicon = array(); - if ($modtype) { foreach ($modtype as $modname => $modfullname) { $moddata[] = "id\">".$modfullname."s"; $modicon[] = "\"$modfullname\""; } } - - $moddata[]="id\">Participants"; - $modicon[]="\"Participants\""; - $moddata[]="id&course=$course->id\">Edit my info"; - $modicon[]="\"Me\""; - print_simple_box("Activities", $align="CENTER", $width="100%", $color="$THEME->cellheading"); print_side_block("", $moddata, "", $modicon); + // Admin links and controls if (isteacher($course->id)) { -- 2.39.5