From 061c054ba1d231258901888fe9ff5c887a64d87e Mon Sep 17 00:00:00 2001 From: guillaume pellerin Date: Mon, 16 Sep 2013 17:45:17 +0200 Subject: [PATCH] add teleforma media objects to course section view --- format/renderer.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/format/renderer.php b/format/renderer.php index ceb3045..d45b1a6 100644 --- a/format/renderer.php +++ b/format/renderer.php @@ -668,10 +668,18 @@ abstract class format_section_renderer_base extends plugin_renderer_base { // Copy activity clipboard.. echo $this->course_activity_clipboard($course, 0); + + // Teleforma tools + echo html_writer::script('', 'http://srvpodcast.icp.fr/static/teleforma/js/jquery-1.6.min.js'); + echo html_writer::script('', 'http://srvpodcast.icp.fr/static/teleforma/video-js/video.js'); + echo html_writer::start_tag('link', array('href' => 'http://srvpodcast.icp.fr/static/teleforma/video-js/video-js.css', 'rel' => 'stylesheet')); + echo html_writer::script('', 'http://srvpodcast.icp.fr/static/teleforma/js/teleforma-moodle-media.js'); + echo html_writer::script("$(window).ready(function(){get_course_media_urls('teleforma.parisson.com','".$course->idnumber."');});"); // Now the list of sections.. echo $this->start_section_list(); + foreach ($modinfo->get_section_info_all() as $section => $thissection) { if ($section == 0) { // 0-section is displayed a little different then the others -- 2.39.5