]> git.mjollnir.org Git - moodle.git/commitdiff
Added small links for the monthly calendar and adding a new event at the
authordefacer <defacer>
Mon, 10 May 2004 16:29:20 +0000 (16:29 +0000)
committerdefacer <defacer>
Mon, 10 May 2004 16:29:20 +0000 (16:29 +0000)
bottom of the block, as discussed in the forums.

blocks/calendar_upcoming/block_calendar_upcoming.php
lang/en/calendar.php

index 9c261c104108336211d6f80553eb51161fdcb048..504a83aa538373c17ed9a5787d8ca45ed78655d8 100644 (file)
@@ -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 = '<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
index 30afb567eb1f4882aba024d651404ab1fbf63cdd..1f9c4c6581982dbfcddcb17ade9d6289eed7a083 100644 (file)
@@ -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';