From: moodler Date: Mon, 9 Dec 2002 14:07:52 +0000 (+0000) Subject: More fixes for course formats X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e545445874e78ab179b663d554ef699d98ce790c;p=moodle.git More fixes for course formats --- diff --git a/course/social.php b/course/social.php index 40e8a59183..b7cb0ebdae 100644 --- a/course/social.php +++ b/course/social.php @@ -4,11 +4,13 @@ include_once("$CFG->dirroot/mod/forum/lib.php"); include_once("$CFG->dirroot/mod/resource/lib.php"); + + $leftwidth = 210; ?> - "; - echo "
+ id\">".get_string("participants").""; $modicon[]="\"\""; @@ -20,7 +22,7 @@ $moddata[]= $editmyprofile." *"; } $modicon[]="\"\""; - print_side_block(get_string("people"), "", $moddata, $modicon); + print_side_block(get_string("people"), "", $moddata, $modicon, "", $leftwidth); @@ -30,28 +32,27 @@ /// Print all the recent activity + // Print all the recent activity if ($course->showrecent) { - print_heading_block(get_string("recentactivity")); - print_simple_box_start("CENTER", "100%", $THEME->body, 3, 0); + print_side_block_start(get_string("recentactivity"), $leftwidth, "sideblockrecentactivity"); print_recent_activity($course); - print_simple_box_end(); - echo "
"; + print_side_block_end(); } /// Print a form to search forums $searchform = forum_print_search_form($course, "", true); $searchform = "
$searchform
"; - print_side_block(get_string("search","forum"), $searchform); + print_side_block(get_string("search","forum"), $searchform, "", "", "", $leftwidth); /// Admin links and controls if (isteacher($course->id)) { - print_course_admin_links($course, "100%"); + print_course_admin_links($course, "100%", $leftwidth); } echo "
"; + echo ""; if ($social = forum_get_course_forum($course->id, "social")) { if (forum_is_subscribed($USER->id, $social->id)) { $subtext = get_string("unsubscribe", "forum"); diff --git a/course/weeks.php b/course/weeks.php index a451a6494f..7d66314120 100644 --- a/course/weeks.php +++ b/course/weeks.php @@ -77,6 +77,7 @@ /// Start main column echo ""; print_heading_block(get_string("weeklyoutline"), "100%", "outlineheadingblock"); + print_spacer(8, 1, true); echo "";