mirror of
https://github.com/moodle/moodle.git
synced 2025-03-17 22:20:00 +01:00
MDL-36673 mod_lesson: slideshow mode not working
This commit is contained in:
parent
2d84748c26
commit
4627726954
@ -560,14 +560,17 @@ class mod_lesson_renderer extends plugin_renderer_base {
|
|||||||
public function slideshow_start(lesson $lesson) {
|
public function slideshow_start(lesson $lesson) {
|
||||||
$attributes = array();
|
$attributes = array();
|
||||||
$attributes['class'] = 'slideshow';
|
$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);
|
$output = html_writer::start_tag('div', $attributes);
|
||||||
|
return $output;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Returns HTML to show the end of a slideshow
|
* Returns HTML to show the end of a slideshow
|
||||||
*/
|
*/
|
||||||
public function slideshow_end() {
|
public function slideshow_end() {
|
||||||
$output = html_writer::end_tag('div');
|
$output = html_writer::end_tag('div');
|
||||||
|
return $output;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Returns a P tag containing contents
|
* Returns a P tag containing contents
|
||||||
|
@ -410,7 +410,6 @@ if ($pageid != LESSON_EOL) {
|
|||||||
echo '<a name="maincontent" id="maincontent" title="' . get_string('anchortitle', 'lesson') . '"></a>';
|
echo '<a name="maincontent" id="maincontent" title="' . get_string('anchortitle', 'lesson') . '"></a>';
|
||||||
}
|
}
|
||||||
echo $lessoncontent;
|
echo $lessoncontent;
|
||||||
echo $lessonoutput->slideshow_end();
|
|
||||||
echo $lessonoutput->progress_bar($lesson);
|
echo $lessonoutput->progress_bar($lesson);
|
||||||
echo $lessonoutput->footer();
|
echo $lessonoutput->footer();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user