]> git.mjollnir.org Git - moodle.git/commitdiff
'round corners: 4 additional divs for column corner and border graphics'
authorurs_hunkler <urs_hunkler>
Thu, 11 Jan 2007 07:21:28 +0000 (07:21 +0000)
committerurs_hunkler <urs_hunkler>
Thu, 11 Jan 2007 07:21:28 +0000 (07:21 +0000)
index.php

index 4fa2e0191a17cab917e78ca67e0aa70f7c4d4a44..399e1266cc4b83951429a6b9090ad530de3b80de 100644 (file)
--- a/index.php
+++ b/index.php
   <tr>
   <?php
 // uh-changes start
-    // $CFG->LayoutTable = array('left', 'middle', 'right');
-    // $CFG->LayoutTable = array('left', 'right', 'middle');
-    // $CFG->LayoutTable = array('middle', 'left', 'right');
     $lt = (empty($THEME->layouttable)) ? array('left', 'middle', 'right') : $THEME->layouttable;
     foreach ($lt as $column) {
         switch ($column) {
 // uh-changes end
     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 start
+        if (!empty($THEME->roundcorners)) {
+            echo '</div></div></div></div>';
+        }
+// uh-changes end
         echo '</td>';
     }
 // uh-changes start
 // uh-changes end
     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
 
 /// Print Section
     if ($SITE->numsections > 0) {
         echo '<br />';
     }
 
+// uh-changes start
+    if (!empty($THEME->roundcorners)) {
+        echo '</div></div></div></div>';
+    }
+// uh-changes end
+
     echo '</td>';
 // uh-changes start
             break;
     // The right column
     if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing || has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
         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
         if (has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
             echo '<div style="text-align:center">'.update_course_icon($SITE->id).'</div>';
             echo '<br />';
         }
         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>';
     }
 // uh-changes start