From e7da6db9ca9cc46a3e19e7d8a34f85e3cf059178 Mon Sep 17 00:00:00 2001 From: Brian Barnes Date: Wed, 10 Sep 2014 14:08:50 +1200 Subject: [PATCH] MDL-47186 calendar: Changed month name to h2 from h1 --- calendar/lib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/calendar/lib.php b/calendar/lib.php index dcedc54e66f..8bb2a63ffb4 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -795,7 +795,7 @@ function calendar_get_events_by_id($eventids) { * @return string $content return available control for the calender in html */ function calendar_top_controls($type, $data) { - global $PAGE; + global $PAGE, $OUTPUT; // Get the calendar type we are using. $calendartype = \core_calendar\type_factory::get_calendar_instance(); @@ -923,7 +923,8 @@ function calendar_top_controls($type, $data) { } $content .= html_writer::start_tag('div', array('class'=>'calendar-controls')); - $content .= $left . ' |

'.userdate($time, get_string('strftimemonthyear'))."

"; + $content .= $left . ' | '; + $content .= $OUTPUT->heading(userdate($time, get_string('strftimemonthyear')), 2, 'current'); $content .= ' | ' . $right; $content .= ''; $content .= html_writer::end_tag('div')."\n";