$this->content = New object;
$this->content->text = '';
- $this->content->footer = '<hr /><div style="text-align: center;"><a href="'.$CFG->wwwroot.'/calendar/view.php?view=month">'.get_string('gotocalendar', 'calendar').'...</a>';
- $this->content->footer .= '<br /><a href="'.$CFG->wwwroot.'/calendar/event.php?action=new">'.get_string('newevent', 'calendar').'...</a></div>';
+ $this->content->footer = '<br /><a href="'.$CFG->wwwroot.'/calendar/view.php?view=month">'.get_string('gotocalendar', 'calendar').'</a>...';
+ $this->content->footer .= '<br /><a href="'.$CFG->wwwroot.'/calendar/event.php?action=new">'.get_string('newevent', 'calendar').'</a>...';
if($this->course === NULL) {
// Overrides: use no course at all
} else {
$content .= $events[$i]->name;
}
- $content .= '</div><div class="cal_event_date">'.$events[$i]->time.'</div>';
+ $content .= '</div><div class="cal_event_date" style="text-align:right;">'.$events[$i]->time.'</div>';
if ($i < $lines - 1) $content .= '<hr />';
}
if ($content) {
echo "$content";
- echo "<font size=\"-1\">$footer</font>";
+ if ($footer) {
+ echo "<div style=\"font-size: x-small; text-align:right;\">$footer</div>";
+ }
} else {
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">";
if ($list) {
if ($icons) {
echo "<td class=\"sideblocklinks\" valign=\"top\" width=\"16\"> </td>";
}
- echo "<td class=\"sideblocklinks\"><font size=\"-1\">$footer</font></td>";
+ echo "<td class=\"sideblocklinks\"><div style=\"font-size: x-small; text-align:right;\">$footer</div></td>";
echo "</tr>";
}
echo "</table>";