mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
minor xhtml fix
This commit is contained in:
parent
195cc7072d
commit
f2de62da39
1 changed files with 4 additions and 4 deletions
|
@ -635,7 +635,7 @@ function calendar_top_controls($type, $data) {
|
||||||
$content .= '<span class="previous" title="'.get_string('monthprev','access').'">'.$prevlink."</span>\n";
|
$content .= '<span class="previous" title="'.get_string('monthprev','access').'">'.$prevlink."</span>\n";
|
||||||
$content .= '<span class="hide"> | </span><span class="current"><a href="'.calendar_get_link_href(CALENDAR_URL.'view.php?view=month&', 1, $data['m'], $data['y']).'">'.userdate($time, get_string('strftimemonthyear')).'</a></span>';
|
$content .= '<span class="hide"> | </span><span class="current"><a href="'.calendar_get_link_href(CALENDAR_URL.'view.php?view=month&', 1, $data['m'], $data['y']).'">'.userdate($time, get_string('strftimemonthyear')).'</a></span>';
|
||||||
$content .= '<span class="hide"> | </span><span class="next" title="'.get_string('monthnext','access').'">'.$nextlink."</span>\n";
|
$content .= '<span class="hide"> | </span><span class="next" title="'.get_string('monthnext','access').'">'.$nextlink."</span>\n";
|
||||||
$content .= "<span class=\"clearer\"></span></div>\n";
|
$content .= "<span class=\"clearer\"><!-- --></span></div>\n";
|
||||||
break;
|
break;
|
||||||
case 'course':
|
case 'course':
|
||||||
list($prevmonth, $prevyear) = calendar_sub_month($data['m'], $data['y']);
|
list($prevmonth, $prevyear) = calendar_sub_month($data['m'], $data['y']);
|
||||||
|
@ -646,7 +646,7 @@ function calendar_top_controls($type, $data) {
|
||||||
$content .= '<span class="previous" title="'.get_string('monthprev','access').'">'.$prevlink."</span>\n";
|
$content .= '<span class="previous" title="'.get_string('monthprev','access').'">'.$prevlink."</span>\n";
|
||||||
$content .= '<span class="hide"> | </span><span class="current"><a href="'.calendar_get_link_href(CALENDAR_URL.'view.php?view=month&course='.$data['id'].'&', 1, $data['m'], $data['y']).'">'.userdate($time, get_string('strftimemonthyear')).'</a></span>';
|
$content .= '<span class="hide"> | </span><span class="current"><a href="'.calendar_get_link_href(CALENDAR_URL.'view.php?view=month&course='.$data['id'].'&', 1, $data['m'], $data['y']).'">'.userdate($time, get_string('strftimemonthyear')).'</a></span>';
|
||||||
$content .= '<span class="hide"> | </span><span class="next" title="'.get_string('monthnext','access').'">'.$nextlink."</span>\n";
|
$content .= '<span class="hide"> | </span><span class="next" title="'.get_string('monthnext','access').'">'.$nextlink."</span>\n";
|
||||||
$content .= "<span class=\"clearer\"></span></div>\n";
|
$content .= "<span class=\"clearer\"><!-- --></span></div>\n";
|
||||||
break;
|
break;
|
||||||
case 'upcoming':
|
case 'upcoming':
|
||||||
$content .= '<div style="text-align: center;"><a href="'.CALENDAR_URL.'view.php?view=upcoming">'.userdate($time, get_string('strftimemonthyear'))."</a></div>\n";
|
$content .= '<div style="text-align: center;"><a href="'.CALENDAR_URL.'view.php?view=upcoming">'.userdate($time, get_string('strftimemonthyear'))."</a></div>\n";
|
||||||
|
@ -663,7 +663,7 @@ function calendar_top_controls($type, $data) {
|
||||||
$content .= '<span class="previous"><a href="'.calendar_get_link_href('view.php?view=month&', 1, $prevmonth, $prevyear)."\"> $THEME->larrow ".userdate($prevdate, get_string('strftimemonthyear')).'</a></span>';
|
$content .= '<span class="previous"><a href="'.calendar_get_link_href('view.php?view=month&', 1, $prevmonth, $prevyear)."\"> $THEME->larrow ".userdate($prevdate, get_string('strftimemonthyear')).'</a></span>';
|
||||||
$content .= '<span class="hide"> | </span><span class="current">'.userdate($time, get_string('strftimemonthyear'))."</span>\n";
|
$content .= '<span class="hide"> | </span><span class="current">'.userdate($time, get_string('strftimemonthyear'))."</span>\n";
|
||||||
$content .= '<span class="hide"> | </span><span class="next"><a href="'.calendar_get_link_href('view.php?view=month&', 1, $nextmonth, $nextyear).'">'.userdate($nextdate, get_string('strftimemonthyear'))." $THEME->rarrow</a></span>\n";
|
$content .= '<span class="hide"> | </span><span class="next"><a href="'.calendar_get_link_href('view.php?view=month&', 1, $nextmonth, $nextyear).'">'.userdate($nextdate, get_string('strftimemonthyear'))." $THEME->rarrow</a></span>\n";
|
||||||
$content .= "<span class=\"clearer\"></span></div>\n";
|
$content .= "<span class=\"clearer\"><!-- --></span></div>\n";
|
||||||
break;
|
break;
|
||||||
case 'day':
|
case 'day':
|
||||||
$data['d'] = $date['mday']; // Just for convenience
|
$data['d'] = $date['mday']; // Just for convenience
|
||||||
|
@ -687,7 +687,7 @@ function calendar_top_controls($type, $data) {
|
||||||
$content .= '<span class="hide"> | </span><span class="current">'.$text.'</span>';
|
$content .= '<span class="hide"> | </span><span class="current">'.$text.'</span>';
|
||||||
|
|
||||||
$content .= '<span class="hide"> | </span><span class="next"><a href="'.calendar_get_link_href('view.php?view=day&', $nextdate['mday'], $nextdate['mon'], $nextdate['year']).'">'.$nextname." $THEME->rarrow</a></span>\n";
|
$content .= '<span class="hide"> | </span><span class="next"><a href="'.calendar_get_link_href('view.php?view=day&', $nextdate['mday'], $nextdate['mon'], $nextdate['year']).'">'.$nextname." $THEME->rarrow</a></span>\n";
|
||||||
$content .= "<span class=\"clearer\"></span></div>\n";
|
$content .= "<span class=\"clearer\"><!-- --></span></div>\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return $content;
|
return $content;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue