]> git.mjollnir.org Git - moodle.git/commitdiff
Tweaking the formatting of the footers a bit
authormoodler <moodler>
Mon, 10 May 2004 18:12:32 +0000 (18:12 +0000)
committermoodler <moodler>
Mon, 10 May 2004 18:12:32 +0000 (18:12 +0000)
course/lib.php
mod/forum/lib.php

index 21f62a0b6dfcdee9efc14e03cc51f63cb0c41ff6..8f57443a0212070481ec131fd1ab9d70ef6f2a25 100644 (file)
@@ -1033,7 +1033,7 @@ function print_side_block($heading="", $content="", $list=NULL, $icons=NULL, $fo
     if ($content) {
         echo "$content";
         if ($footer) {
-            echo "<div style=\"font-size: x-small; text-align:right;\">$footer</div>";
+            echo "<div style=\"font-size: x-small; text-align:center;\">$footer</div>";
         }
     } else {
         echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">";
@@ -1049,11 +1049,13 @@ function print_side_block($heading="", $content="", $list=NULL, $icons=NULL, $fo
         }
         if ($footer) {
             echo "<tr bgcolor=\"$THEME->cellcontent2\">";
+            echo "<td class=\"sideblocklinks\" ";
             if ($icons) {
-                echo "<td class=\"sideblocklinks\" valign=\"top\" width=\"16\">&nbsp;</td>";
+                echo ' colspan="2" ';
             }
-            echo "<td class=\"sideblocklinks\"><div style=\"font-size: x-small; text-align:right;\">$footer</div></td>";
-            echo "</tr>";
+            echo '>';
+            echo "<div style=\"font-size: x-small; text-align:center;\">$footer</div>";
+            echo "</td></tr>";
         }
         echo "</table>";
     }
index f4e0b065dae32e9238c2d21f75cfd60135cc0d07..3b6f017dba31534b489d724b5defcd441052e13d 100644 (file)
@@ -2155,7 +2155,7 @@ function forum_print_latest_discussions($forum_id=0, $forum_numdiscussions=5,
     }
 
     if ($olddiscussionlink) {
-        echo "<p align=right><a href=\"$CFG->wwwroot/mod/forum/view.php?f=$forum->id&showall=1\">";
+        echo "<p align=center><a href=\"$CFG->wwwroot/mod/forum/view.php?f=$forum->id&showall=1\">";
         echo get_string("olderdiscussions", "forum")."</a> ...</p>";
     }
 }