]> git.mjollnir.org Git - moodle.git/commitdiff
Accessibility: function calendar_top_controls, tidy up commented code.
authornfreear <nfreear>
Fri, 17 Mar 2006 10:53:15 +0000 (10:53 +0000)
committernfreear <nfreear>
Fri, 17 Mar 2006 10:53:15 +0000 (10:53 +0000)
calendar/lib.php

index d41e212c1efb9ab820557d997aeb1c369cfce23b..9e4534e43cc9c878c01f6ce2b58489a229acdcf3 100644 (file)
@@ -621,15 +621,6 @@ function calendar_top_controls($type, $data) {
         case 'frontpage':
             list($prevmonth, $prevyear) = calendar_sub_month($data['m'], $data['y']);
             list($nextmonth, $nextyear) = calendar_add_month($data['m'], $data['y']);
-/*TODO (nfreear): delete.
-            $nextlink = calendar_get_link_tag('&gt;&gt;', 'index.php?', 0, $nextmonth, $nextyear);
-            $prevlink = calendar_get_link_tag('&lt;&lt;', 'index.php?', 0, $prevmonth, $prevyear);
-            $content .= '<table class="calendar-controls"><tr>';
-            $content .= '<td class="previous">'.$prevlink."</td>\n";
-            $content .= '<td class="current"><a href="'.calendar_get_link_href(CALENDAR_URL.'view.php?view=month&amp;', 1, $data['m'], $data['y']).'">'.userdate($time, get_string('strftimemonthyear')).'</a></td>';
-            $content .= '<td class="next">'.$nextlink."</td>\n";
-            $content .= '</tr></table>';
-*/
             $nextlink = calendar_get_link_tag($nexttext, 'index.php?', 0, $nextmonth, $nextyear);
             $prevlink = calendar_get_link_tag($prevtext, 'index.php?', 0, $prevmonth, $prevyear);
             $content .= '<div class="calendar-controls">';