MDL-36673 mod_lesson: slideshow mode not working

This commit is contained in:
Joseph Rezeau 2014-12-05 17:36:41 +01:00 committed by Jean-Michel Vedrine
parent 2d84748c26
commit 4627726954
2 changed files with 4 additions and 2 deletions

View File

@ -560,14 +560,17 @@ class mod_lesson_renderer extends plugin_renderer_base {
public function slideshow_start(lesson $lesson) {
$attributes = array();
$attributes['class'] = 'slideshow';
$attributes['style'] = 'background-color:'.$lesson->bgcolor.';height:'.$lesson->height.'px;width:'.$lesson->width.'px;';
$attributes['style'] = 'background-color:'.$lesson->properties()->bgcolor.';height:'.
$lesson->properties()->height.'px;width:'.$lesson->properties()->width.'px;';
$output = html_writer::start_tag('div', $attributes);
return $output;
}
/**
* Returns HTML to show the end of a slideshow
*/
public function slideshow_end() {
$output = html_writer::end_tag('div');
return $output;
}
/**
* Returns a P tag containing contents

View File

@ -410,7 +410,6 @@ if ($pageid != LESSON_EOL) {
echo '<a name="maincontent" id="maincontent" title="' . get_string('anchortitle', 'lesson') . '"></a>';
}
echo $lessoncontent;
echo $lessonoutput->slideshow_end();
echo $lessonoutput->progress_bar($lesson);
echo $lessonoutput->footer();