From e9ebf2e69858f70c6e1eb93188f83f7aa6150535 Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 26 Feb 2002 06:33:48 +0000 Subject: [PATCH] This social format replaces the old noweeks format --- course/social.php | 80 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 course/social.php diff --git a/course/social.php b/course/social.php new file mode 100644 index 00000000000..cc07b2276f9 --- /dev/null +++ b/course/social.php @@ -0,0 +1,80 @@ + + + + + + + + +
+ cellheading"); + + //print_side_block("id\">What's New!", + // "", "...since your last login"); + //if ($news = get_course_news_forum($course->id)) { + //forum_latest_topics($news->id, 5, "minimal", "DESC", false); + //} + + //echo "

"; + print_simple_box("People", $align="CENTER", $width="100%", $color="$THEME->cellheading"); + $moddata[]="id\">Participants"; + $modicon[]="\"List"; + $moddata[]="id&course=$course->id\">Edit my own info"; + $modicon[]="\"Me\""; + print_side_block("", $moddata, "", $modicon); + + + // Then, print all the available readings + + print_simple_box("Readings", $align="CENTER", $width="100%", $color="$THEME->cellheading"); + + if ($readings = list_all_readings($course->id, "timemodified ASC", 0, true)) { + foreach ($readings as $reading) { + $readingdata[] = $reading; + $readingicon[] = "\"Reading\""; + } + } + print_side_block("", $readingdata, "", $readingicon); + + if (isteacher($USER->id)) { + print_simple_box("Admin", $align="CENTER", $width="100%", $color="$THEME->cellheading"); + echo ""; + echo "
  • "; + print_editing_switch($course->id); + echo ""; + } + ?> + +
  • + id)) { + error("Could not find or create a social forum here"); + } + + $SESSION->fromdiscuss = "$CFG->wwwdir/course/view.php?id=$course->id"; + if (is_subscribed($USER->id, $social->id)) { + $subtext = "Unsubscribe"; + } else { + $subtext = "Subscribe me by mail"; + } + $headertext = "
    Discussionid\">$subtext
    "; + print_simple_box("$headertext", $align="CENTER", $width="100%", $color="$THEME->cellheading"); ?> +
    + + id)) { + forum_latest_topics($social->id, 5, "plain", "DESC", false); + } else { + error("Could not find or create a social forum here"); + } + ?> + +
    +