]> git.mjollnir.org Git - moodle.git/commitdiff
'round corners: 4 additional divs for column corner and border graphics - MDL-8142'
authorurs_hunkler <urs_hunkler>
Thu, 11 Jan 2007 07:29:03 +0000 (07:29 +0000)
committerurs_hunkler <urs_hunkler>
Thu, 11 Jan 2007 07:29:03 +0000 (07:29 +0000)
course/format/topics/format.php

index 0ce43b3d6bae76db279f7fa3508ee246f970284f..15977dae623e5993dc9d13e70f235967f522ec60 100644 (file)
 
     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>';
     }
 
             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');
 
         echo '</div>';
     }
 
-
+// uh-changes start
+    if (!empty($THEME->roundcorners)) {
+        echo '</div></div></div></div>';
+    }
+// uh-changes end
     echo '</td>';
 
 // uh-changes start
     // 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>';
     }