mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Modified weekly course format with "People" section and sorted activity modules
This commit is contained in:
parent
ef25340cb4
commit
13c7e2719a
@ -47,6 +47,7 @@
|
||||
$mods[$mod->id] = $mod;
|
||||
$modtype[$mod->modname] = $mod->modfullname;
|
||||
}
|
||||
ksort($modtype);
|
||||
}
|
||||
|
||||
switch ($course->format) {
|
||||
|
@ -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[]="<A HREF=\"../user/index.php?id=$course->id\">Participants</A>";
|
||||
$modicon[]="<IMG SRC=\"../user/users.gif\" HEIGHT=16 WIDTH=16 ALT=\"List of everyone\">";
|
||||
$moddata[]="<A HREF=\"../user/view.php?id=$USER->id&course=$course->id\">Edit my profile</A>";
|
||||
$modicon[]="<IMG SRC=\"../user/user.gif\" HEIGHT=16 WIDTH=16 ALT=\"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[] = "<A HREF=\"../mod/$modname/index.php?id=$course->id\">".$modfullname."s</A>";
|
||||
$modicon[] = "<IMG SRC=\"../mod/$modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$modfullname\">";
|
||||
}
|
||||
}
|
||||
|
||||
$moddata[]="<A HREF=\"../user/index.php?id=$course->id\">Participants</A>";
|
||||
$modicon[]="<IMG SRC=\"../user/users.gif\" HEIGHT=16 WIDTH=16 ALT=\"Participants\">";
|
||||
$moddata[]="<A HREF=\"../user/view.php?id=$USER->id&course=$course->id\">Edit my info</A>";
|
||||
$modicon[]="<IMG SRC=\"../user/user.gif\" HEIGHT=16 WIDTH=16 ALT=\"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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user