From: moodler Date: Mon, 29 Mar 2004 15:33:26 +0000 (+0000) Subject: Adding calendars by default --- later we need a course option to control X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0d250ac10e4bc6c82d72875dd606c2b9b9d66ca1;p=moodle.git Adding calendars by default --- later we need a course option to control visibility --- diff --git a/course/format/social/format.php b/course/format/social/format.php index fbb5cffef8..787144e962 100644 --- a/course/format/social/format.php +++ b/course/format/social/format.php @@ -46,6 +46,9 @@ $searchform = "
$searchform
"; print_side_block(get_string("search","forum"), $searchform, "", "", "", $leftwidth); +/// Print the calendar + calendar_print_side_blocks(); + /// Then, print all the available resources (Section 0) print_section_block(get_string("activities"), $course, $sections[0], diff --git a/course/format/topics/format.php b/course/format/topics/format.php index e27d08cb0b..634674a55d 100644 --- a/course/format/topics/format.php +++ b/course/format/topics/format.php @@ -94,6 +94,9 @@ } print_side_block($stractivities, "", $moddata, $modicon); +/// Print the calendar + calendar_print_side_blocks(); + /// Print a form to search forums $searchform = forum_print_search_form($course, "", true); $searchform = "
$searchform
"; diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php index fca6ac4c18..d243ec50d6 100644 --- a/course/format/weeks/format.php +++ b/course/format/weeks/format.php @@ -82,11 +82,13 @@ } print_side_block($stractivities, "", $moddata, $modicon); +/// Print the calendar + calendar_print_side_blocks(); + /// Print a form to search forums $searchform = forum_print_search_form($course, "", true); $searchform = "
$searchform
"; print_side_block(get_string("search","forum"), $searchform); - /// Admin links and controls print_course_admin_links($course); diff --git a/course/view.php b/course/view.php index 134fe3fbfd..bc4b858c73 100644 --- a/course/view.php +++ b/course/view.php @@ -4,6 +4,7 @@ require_once("../config.php"); require_once("lib.php"); + require_once('../calendar/lib.php'); optional_variable($id); optional_variable($name);