Tweaking the formatting of the footers a bit

This commit is contained in:
moodler
2004-05-10 18:12:32 +00:00
parent fce0e06d81
commit 26bba779ff
2 changed files with 7 additions and 5 deletions
+6 -4
View 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>";
}
+1 -1
View 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>";
}
}