Permalink
Browse files

'round corners: 4 additional divs for column corner and border graphi…

…cs - MDL-8142'
  • Loading branch information...
urs_hunkler
urs_hunkler committed Jan 11, 2007
1 parent 86df6cc commit 262cb5e0985662f5d0257a69ebad3d23ede16beb
Showing with 39 additions and 2 deletions.
  1. +39 −2 course/format/topics/format.php
@@ -77,7 +77,18 @@
if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) {
echo '<td style="width:'.$preferred_width_left.'px" id="left-column">';
+// uh-changes start
+ if (!empty($THEME->roundcorners)) {
+ echo '<div class="bl clearfix">';
+ echo '<div class="br clearfix">';
+ echo '<div class="tl clearfix">';
+ echo '<div class="tr clearfix">';
+ }
+// uh-changes end
+ blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
+// uh-changes end
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
+// uh-changes start
echo '</td>';
}
@@ -86,7 +97,16 @@
case 'middle':
// uh-changes end
/// Start main column
- echo '<td id="middle-column"><a name="startofcontent"></a>';
+ echo '<td id="middle-column">';
+// uh-changes start
+ if (!empty($THEME->roundcorners)) {
+ echo '<div class="bl clearfix">';
+ echo '<div class="br clearfix">';
+ echo '<div class="tl clearfix">';
+ echo '<div class="tr clearfix">';
+ }
+ // uh-changes end
+ echo '<a name="startofcontent"></a>';
print_heading_block(get_string('topicoutline'), 'outline');
@@ -267,7 +287,11 @@
echo '</div>';
}
-
+// uh-changes start
+ if (!empty($THEME->roundcorners)) {
+ echo '</div></div></div></div>';
+ }
+// uh-changes end
echo '</td>';
// uh-changes start
@@ -277,7 +301,20 @@
// The right column
if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing) {
echo '<td style="width:'.$preferred_width_right.'px" id="right-column">';
+// uh-changes start
+ if (!empty($THEME->roundcorners)) {
+ echo '<div class="bl clearfix">';
+ echo '<div class="br clearfix">';
+ echo '<div class="tl clearfix">';
+ echo '<div class="tr clearfix">';
+ }
+// uh-changes end
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
+// uh-changes start
+ if (!empty($THEME->roundcorners)) {
+ echo '</div></div></div></div>';
+ }
+// uh-changes end
echo '</td>';
}

0 comments on commit 262cb5e

Please sign in to comment.