$this->title = get_string('upcomingevents', 'calendar');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
- $this->version = 2004041000;
+ $this->version = 2004051000;
}
function get_content() {
$this->content = New object;
$this->content->text = '';
- $this->content->footer = '';
+ $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>';
if($this->course === NULL) {
// Overrides: use no course at all
$string['explain_startwday'] = 'Calendar weeks will be shown as starting on the day that you select here.';
$string['explain_timeformat'] = 'You can choose to see times in either 12 or 24 hour format. If you choose \"default\", then the format will be automatically chosen according to the language you use in the site.';
$string['globalevents'] = 'Global events';
+$string['gotocalendar'] = 'Go to calendar';
$string['groupevents'] = 'Group events';
$string['hidden'] = 'hidden';
$string['manyevents'] = '$a events';