diff --git a/course/format/social/format.php b/course/format/social/format.php
index 4a3566b3a67..1662888d431 100644
--- a/course/format/social/format.php
+++ b/course/format/social/format.php
@@ -2,6 +2,10 @@
// format.php - course format featuring social forum
// included from view.php
+ if (!empty($THEME->customcorners)) {
+ require_once($CFG->dirroot.'/lib/custom_corners_lib.php');
+ }
+
// Bounds for block widths
// more flexible for theme designers taken from theme config.php
$lmin = (empty($THEME->block_l_min_width)) ? 100 : $THEME->block_l_min_width;
@@ -28,11 +32,15 @@
if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) {
echo '
';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '
';
}
- echo '
';
+ echo '
';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
+ echo '';
if ($forum = forum_get_course_forum($course->id, 'social')) {
print_heading_block(get_string('socialheadline'));
if (forum_is_forcesubscribed($forum->id)) {
@@ -48,12 +56,15 @@
} else {
notify('Could not find or create a social forum here');
}
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '
';
// The right column
if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing) {
echo '
';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '
';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '
';
}
echo '
';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
if ($chat->studentlogs or has_capability('mod/chat:readlog',$context)) {
echo '
';
@@ -175,6 +182,7 @@
/// Finish the page
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '
';
print_footer($course);
diff --git a/mod/data/view.php b/mod/data/view.php
index bae0ca5ba32..03d134952e9 100755
--- a/mod/data/view.php
+++ b/mod/data/view.php
@@ -29,6 +29,10 @@
require_once('pagelib.php');
+ if (!empty($THEME->customcorners)) {
+ require_once($CFG->dirroot.'/lib/custom_corners_lib.php');
+ }
+
/// One of these is necessary!
$id = optional_param('id', 0, PARAM_INT); // course module id
@@ -245,10 +249,13 @@
echo '
';
if ((blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing())) {
echo '
';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '
';
}
echo '
';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
}
print_heading(format_string($data->name));
@@ -555,10 +562,13 @@
/// If we have blocks, then print the left side here
if (!empty($CFG->showblocksonmodpages)) {
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '
';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '
';
}
echo '
';
diff --git a/mod/quiz/view.php b/mod/quiz/view.php
index 0405da83ea1..a59f9f2531b 100644
--- a/mod/quiz/view.php
+++ b/mod/quiz/view.php
@@ -6,6 +6,10 @@
require_once("locallib.php");
require_once($CFG->libdir.'/blocklib.php');
require_once('pagelib.php');
+
+ if (!empty($THEME->customcorners)) {
+ require_once($CFG->dirroot.'/lib/custom_corners_lib.php');
+ }
$id = optional_param('id', 0, PARAM_INT); // Course Module ID, or
$q = optional_param('q', 0, PARAM_INT); // quiz ID
@@ -39,7 +43,7 @@
// if no questions have been set up yet redirect to edit.php
if (!$quiz->questions and has_capability('mod/quiz:manage', $context)) {
- redirect('edit.php?quizid='.$quiz->id);
+ redirect('edit.php?cmid='.$cm->id);
}
add_to_log($course->id, "quiz", "view", "view.php?id=$cm->id", $quiz->id, $cm->id);
@@ -63,11 +67,14 @@
if(!empty($CFG->showblocksonmodpages) && (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing())) {
echo '
';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '
';
}
echo '
';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
// Print the main part of the page
@@ -404,6 +411,7 @@ document.write('';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '
';
}
echo '
';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
echo '