dirroot.'/mod/forum/lib.php'); // Bounds for block widths define('BLOCK_L_MIN_WIDTH', 100); define('BLOCK_L_MAX_WIDTH', 210); define('BLOCK_R_MIN_WIDTH', 100); define('BLOCK_R_MAX_WIDTH', 210); $preferred_width_left = bounded_number(BLOCK_L_MIN_WIDTH, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]), BLOCK_L_MAX_WIDTH); $preferred_width_right = bounded_number(BLOCK_R_MIN_WIDTH, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]), BLOCK_R_MAX_WIDTH); $strgroups = get_string('groups'); $strgroupmy = get_string('groupmy'); $editing = $PAGE->user_is_editing(); echo ''; echo ''; if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) { echo ''; } echo ''; // The right column if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing) { echo ''; } echo ''; echo '
'; blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT); echo ''; if ($forum = forum_get_course_forum($course->id, 'social')) { print_heading_block(get_string('socialheadline')); if (forum_is_forcesubscribed($forum->id)) { echo ''; } else if (forum_is_subscribed($USER->id, $forum->id)) { echo ''; } else { echo ''; } forum_print_latest_discussions($course, $forum, 10, 'plain', '', false); } else { notify('Could not find or create a social forum here'); } echo ''; blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT); echo '
'; ?>