Commit 8edbd642 authored by Eloy Lafuente's avatar Eloy Lafuente
Browse files

Merge branch 'MDL-60654' of https://github.com/joaociocca/moodle

parents 9d51d8e8 6bc8a2e1
...@@ -123,21 +123,10 @@ echo $renderer->start_layout(); ...@@ -123,21 +123,10 @@ echo $renderer->start_layout();
echo html_writer::start_tag('div', array('class'=>'heightcontainer')); echo html_writer::start_tag('div', array('class'=>'heightcontainer'));
echo $OUTPUT->heading(get_string('calendar', 'calendar')); echo $OUTPUT->heading(get_string('calendar', 'calendar'));
if ($view == 'day' || $view == 'upcoming') {
switch($view) { list($data, $template) = calendar_get_view($calendar, $view);
case 'day': echo $renderer->render_from_template($template, $data);
list($data, $template) = calendar_get_view($calendar, $view);
echo $renderer->render_from_template($template, $data);
break;
case 'upcoming':
list($data, $template) = calendar_get_view($calendar, $view);
echo $renderer->render_from_template($template, $data);
break;
}
} else if ($view == 'month') {
list($data, $template) = calendar_get_view($calendar, $view);
echo $renderer->render_from_template($template, $data);
}
echo html_writer::end_tag('div'); echo html_writer::end_tag('div');
list($data, $template) = calendar_get_footer_options($calendar); list($data, $template) = calendar_get_footer_options($calendar);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment