From: defacer Date: Mon, 10 May 2004 16:29:20 +0000 (+0000) Subject: Added small links for the monthly calendar and adding a new event at the X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=acc61dc4498d993a442477b125e1cd0894685964;p=moodle.git Added small links for the monthly calendar and adding a new event at the bottom of the block, as discussed in the forums. --- diff --git a/blocks/calendar_upcoming/block_calendar_upcoming.php b/blocks/calendar_upcoming/block_calendar_upcoming.php index 9c261c1041..504a83aa53 100644 --- a/blocks/calendar_upcoming/block_calendar_upcoming.php +++ b/blocks/calendar_upcoming/block_calendar_upcoming.php @@ -5,7 +5,7 @@ class CourseBlock_calendar_upcoming extends MoodleBlock { $this->title = get_string('upcomingevents', 'calendar'); $this->content_type = BLOCK_TYPE_TEXT; $this->course = $course; - $this->version = 2004041000; + $this->version = 2004051000; } function get_content() { @@ -21,7 +21,8 @@ class CourseBlock_calendar_upcoming extends MoodleBlock { $this->content = New object; $this->content->text = ''; - $this->content->footer = ''; + $this->content->footer = '
'.get_string('gotocalendar', 'calendar').'...'; + $this->content->footer .= '
'.get_string('newevent', 'calendar').'...
'; if($this->course === NULL) { // Overrides: use no course at all diff --git a/lang/en/calendar.php b/lang/en/calendar.php index 30afb567eb..1f9c4c6581 100644 --- a/lang/en/calendar.php +++ b/lang/en/calendar.php @@ -39,6 +39,7 @@ $string['explain_maxevents'] = 'This sets the maximum number of upcoming events $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';