diff --git a/admin/settings.php b/admin/settings.php
index 201a42b83dc..b77ea2cae7e 100644
--- a/admin/settings.php
+++ b/admin/settings.php
@@ -5,6 +5,10 @@ require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/blocklib.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/pagelib.php');
+if (!empty($THEME->customcorners)) {
+ require_once($CFG->dirroot.'/lib/custom_corners_lib.php');
+}
+
if ($site = get_site()) {
require_login();
}
@@ -128,23 +132,14 @@ if (!empty($SITE->fullname)) {
switch ($column) {
case 'left':
echo '
';
- if (!empty($THEME->roundcorners)) {
- echo '';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
- if (!empty($THEME->roundcorners)) {
- echo ' ';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ' | ';
break;
case 'middle':
echo '';
- if (!empty($THEME->roundcorners)) {
- echo '';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
echo ' ';
if ($statusmsg != '') {
@@ -167,24 +162,15 @@ if (!empty($SITE->fullname)) {
echo ' ';
echo '';
- if (!empty($THEME->roundcorners)) {
- echo ' ';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ' | ';
break;
case 'right':
if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT)) {
echo '';
- if (!empty($THEME->roundcorners)) {
- echo '';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
- if (!empty($THEME->roundcorners)) {
- echo ' ';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ' | ';
}
break;
diff --git a/admin/stickyblocks.php b/admin/stickyblocks.php
index 21d5ea1dfda..6ce5f055bff 100644
--- a/admin/stickyblocks.php
+++ b/admin/stickyblocks.php
@@ -4,7 +4,11 @@
require_once($CFG->dirroot.'/my/pagelib.php');
require_once($CFG->dirroot.'/lib/pagelib.php');
require_once($CFG->dirroot.'/lib/blocklib.php');
-
+
+ if (!empty($THEME->customcorners)) {
+ require_once($CFG->dirroot.'/lib/custom_corners_lib.php');
+ }
+
$pt = optional_param('pt', null, PARAM_SAFEDIR); //alhanumeric and -
$pagetypes = array(PAGE_MY_MOODLE => array('id' => PAGE_MY_MOODLE,
@@ -50,11 +54,13 @@
echo '';
echo '';
-
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $blocks, BLOCK_POS_LEFT);
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ' | ';
echo '';
-
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
+
} else {
require_once($CFG->libdir.'/adminlib.php');
admin_externalpage_setup('stickyblocks');
@@ -70,9 +76,12 @@
if (!empty($pt)) {
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ' | ';
echo '';
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $blocks, BLOCK_POS_RIGHT);
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ' | ';
echo '
';
print_footer();
diff --git a/blog/footer.php b/blog/footer.php
index 046e32a697e..7eca8a2cb51 100644
--- a/blog/footer.php
+++ b/blog/footer.php
@@ -1,6 +1,7 @@
+ customcorners)) print_custom_corners_end(); ?>
'."\n";
@@ -9,8 +10,10 @@ print ''."\n";
if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing) {
echo '';
echo ''."\n";
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
print_spacer(1, 120, true);
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ''."\n";
echo ' | ';
}
diff --git a/blog/header.php b/blog/header.php
index 717618a4eb9..d891f961de3 100755
--- a/blog/header.php
+++ b/blog/header.php
@@ -8,6 +8,10 @@ require_once($CFG->dirroot .'/blog/blogpage.php');
require_once($CFG->libdir .'/blocklib.php');
require_once($CFG->dirroot .'/course/lib.php');
+if (!empty($THEME->customcorners)) {
+ require_once($CFG->dirroot.'/lib/custom_corners_lib.php');
+}
+
$blockaction = optional_param('blockaction','', PARAM_ALPHA);
$instanceid = optional_param('instanceid', 0, PARAM_INT);
$blockid = optional_param('blockid', 0, PARAM_INT);
@@ -215,7 +219,9 @@ print '' . "\n";
if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) {
print '' . "\n";
print '' . "\n";
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
print '' . "\n";
print ' | ' . "\n";
}
@@ -223,6 +229,7 @@ if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) {
/// Start main column
print '' . "\n";
print '';
+if (!empty($THEME->customcorners)) print_custom_corners_start();
?>
diff --git a/index.php b/index.php
index 1053234f3f1..01b9ef64438 100644
--- a/index.php
+++ b/index.php
@@ -33,7 +33,11 @@
require_once('config.php');
require_once($CFG->dirroot .'/course/lib.php');
require_once($CFG->dirroot .'/lib/blocklib.php');
-
+
+ if (!empty($THEME->customcorners)) {
+ require_once($CFG->dirroot.'/lib/custom_corners_lib.php');
+ }
+
if (empty($SITE)) {
redirect($CFG->wwwroot .'/'. $CFG->admin .'/index.php');
}
@@ -118,25 +122,16 @@
case 'left':
if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) {
echo '';
- if (!empty($THEME->roundcorners)) {
- echo '';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
- if (!empty($THEME->roundcorners)) {
- echo ' ';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ' | ';
}
break;
case 'middle':
echo '';
- if (!empty($THEME->roundcorners)) {
- echo '';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
/// Print Section
if ($SITE->numsections > 0) {
@@ -253,10 +248,7 @@
echo ' ';
}
- if (!empty($THEME->roundcorners)) {
- echo ' ';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ' | ';
break;
@@ -264,19 +256,13 @@
// The right column
if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing || has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, SITEID))) {
echo '';
- if (!empty($THEME->roundcorners)) {
- echo '';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_start();
if (has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, SITEID))) {
echo ' '.update_course_icon($SITE->id).' ';
echo ' ';
}
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
- if (!empty($THEME->roundcorners)) {
- echo ' ';
- echo '';
- }
+ if (!empty($THEME->customcorners)) print_custom_corners_end();
echo ' | ';
}
break;
|