Customisable section 0 on social forum
This commit is contained in:
+8
-13
@@ -23,21 +23,16 @@
|
||||
print_side_block("", $moddata, "", $modicon);
|
||||
|
||||
|
||||
// Then, print all the available readings
|
||||
|
||||
// Then, print all the available resources (Section 0)
|
||||
print_simple_box("Resources", $align="CENTER", $width="100%", $color="$THEME->cellheading");
|
||||
print_section($site->id, $sections[0], $mods, $modnamesused, true);
|
||||
|
||||
if ($readings = reading_list_all_readings($course->id, "timemodified DESC", 0, true)) {
|
||||
foreach ($readings as $reading) {
|
||||
$readingdata[] = $reading;
|
||||
$readingicon[] = "<IMG SRC=\"../mod/reading/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"Reading\">";
|
||||
}
|
||||
}
|
||||
if (isediting($course->id)) {
|
||||
$readingdata[] = "<A HREF=\"mod.php?id=$course->id§ion=0&add=reading\">Add reading...</A>";
|
||||
$readingicon[] = " ";
|
||||
}
|
||||
print_side_block("", $readingdata, "", $readingicon);
|
||||
if (isediting($site->id)) {
|
||||
echo "<DIV ALIGN=right>";
|
||||
popup_form("$CFG->wwwroot/course/mod.php?id=$course->id§ion=0&add=",
|
||||
$modnames, "section0", "", "Add...");
|
||||
echo "</DIV>";
|
||||
}
|
||||
|
||||
// Print all the recent activity
|
||||
print_simple_box("Recent Activity", $align="CENTER", $width="100%", $color="$THEME->cellheading");
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
update_course_icon($course->id));
|
||||
|
||||
get_all_mods($course->id, $mods, $modnames, $modnamesplural, $modnamesused, $modsectioncounts);
|
||||
$sections = get_all_sections($course->id);
|
||||
|
||||
switch ($course->format) {
|
||||
case "weeks":
|
||||
|
||||
Reference in New Issue
Block a user