]> git.mjollnir.org Git - moodle.git/commitdiff
added a wrapper div to be able to handle content shorter than the side columns
authorurs_hunkler <urs_hunkler>
Wed, 18 Jul 2007 15:41:26 +0000 (15:41 +0000)
committerurs_hunkler <urs_hunkler>
Wed, 18 Jul 2007 15:41:26 +0000 (15:41 +0000)
lib/custom_corners_lib.php
lib/weblib.php

index 382e096a2195c54f52cfbfe0d710610cda4e466a..373f6571695ea60e59239ebd1886ad80f08ac46e 100755 (executable)
@@ -16,7 +16,7 @@
  * @param boolean $return, return as string or just print it
  */
 function print_custom_corners_start($clearfix=false, $return=false) {
-    $output = '<div class="bt"><div></div></div>';
+    $output = '<div class="wrap"><div class="bt"><div></div></div>';
     $output .= "\n";
     $output .= '<div class="i1"><div class="i2">';
     $output .= (!empty($clearfix)) ? '<div class="i3 clearfix">' : '<div class="i3">';
@@ -37,7 +37,7 @@ function print_custom_corners_start($clearfix=false, $return=false) {
 function print_custom_corners_end($return=false) {
     $output = '</div></div></div>';
     $output .= "\n";
-    $output .= '<div class="bb"><div></div></div>';
+    $output .= '<div class="bb"><div></div></div></div>';
     
     if ($return) {
         return $output;
index d6dcf06e0b622cf0bc2c2509d4472aad0e1ab1e7..38d05cfe9d1e9d874d21322f1295b44422585cf7 100644 (file)
@@ -5830,12 +5830,12 @@ function print_side_block_start($heading='', $attributes = array()) {
         if (!empty($THEME->customcorners)) print_custom_corners_start();
         echo $heading;
         if (!empty($THEME->customcorners)) {
-            echo '</div></div></div>';
+            echo '</div></div></div></div>';
         }
         echo '</div>';
     } else {
         if (!empty($THEME->customcorners)) {
-            echo '<div class="bt"><div></div></div>';
+            echo '<div class="wrap"><div class="bt"><div></div></div>';
         }
     }