Skip to content
Snippets Groups Projects
Commit 4512fb7c authored by John Hoopes's avatar John Hoopes
Browse files

back porting html_writer::div to html_writer::tag('div' so it works in 2.4

parent ffef026e
No related branches found
No related tags found
No related merge requests found
...@@ -291,10 +291,10 @@ class block_course_overview_uwmoodle_renderer extends plugin_renderer_base { ...@@ -291,10 +291,10 @@ class block_course_overview_uwmoodle_renderer extends plugin_renderer_base {
$output .= $this->output->box('', 'flush'); $output .= $this->output->box('', 'flush');
$output .= $this->output->box_end(); $output .= $this->output->box_end();
$output .= html_writer::start_div('legend'); $output .= html_writer::start_tag('div', array('class'=>'legend'));
$output .= html_writer::div(get_string('moodle_legend', 'block_my_course_links'), 'Moodle-icon'); $output .= html_writer::tag('div', get_string('moodle_legend', 'block_my_course_links'), array('class'=>'Moodle-icon'));
$output .= html_writer::div(get_string('d2l_legend', 'block_my_course_links'), 'D2L-icon'); $output .= html_writer::tag('div', get_string('d2l_legend', 'block_my_course_links'), array('class'=>'D2L-icon'));
$output .= html_writer::end_div(); $output .= html_writer::end_tag('div');
return $output; return $output;
} }
...@@ -326,12 +326,12 @@ class block_course_overview_uwmoodle_renderer extends plugin_renderer_base { ...@@ -326,12 +326,12 @@ class block_course_overview_uwmoodle_renderer extends plugin_renderer_base {
$html .= html_writer::start_tag('div', array('class' => 'courselistcontainer', 'id' => 'uwmm_terms_content')); $html .= html_writer::start_tag('div', array('class' => 'courselistcontainer', 'id' => 'uwmm_terms_content'));
// add in loading courses and no javascript divs for display on the block when using ajax // add in loading courses and no javascript divs for display on the block when using ajax
$html .= html_writer::div('', 'loadingcourses'); $html .= html_writer::tag('div', '', array('class'=>'loadingcourses'));
$html .= html_writer::start_div('nojavascript'); $html .= html_writer::start_tag('div', array('class'=>'nojavascript'));
$usephpurl = clone($PAGE->url); $usephpurl = clone($PAGE->url);
$usephpurl->param('usephp', 'true'); $usephpurl->param('usephp', 'true');
$html .= html_writer::link($usephpurl, get_string('nojavascript', 'block_course_overview_uwmoodle')); $html .= html_writer::link($usephpurl, get_string('nojavascript', 'block_course_overview_uwmoodle'));
$html .= html_writer::end_div(); $html .= html_writer::end_tag('div');
$html .= html_writer::end_tag('div'); $html .= html_writer::end_tag('div');
...@@ -348,7 +348,7 @@ class block_course_overview_uwmoodle_renderer extends plugin_renderer_base { ...@@ -348,7 +348,7 @@ class block_course_overview_uwmoodle_renderer extends plugin_renderer_base {
public function ajax_other_course_block(){ public function ajax_other_course_block(){
$html = ''; $html = '';
$html .= $this->begin_course_block(get_string('ongoingcourses', 'block_course_overview_uwmoodle'), 'uwmm_othercourses_block', 'ongoingcourses', 'hidden'); $html .= $this->begin_course_block(get_string('ongoingcourses', 'block_course_overview_uwmoodle'), 'uwmm_othercourses_block', 'ongoingcourses', 'hidden');
$html .= html_writer::div('', '', array('id'=>'ongoing_courses')); $html .= html_writer::tag('div', '', array('id'=>'ongoing_courses'));
$html .= $this->end_course_block(); $html .= $this->end_course_block();
return $html; return $html;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment