]> git.parisson.com Git - teleforma-moodle-course.git/commitdiff
add teleforma media objects to course section view
authorguillaume pellerin <parisson@campusicp.fr>
Mon, 16 Sep 2013 15:45:17 +0000 (17:45 +0200)
committerguillaume pellerin <parisson@campusicp.fr>
Mon, 16 Sep 2013 15:45:17 +0000 (17:45 +0200)
format/renderer.php

index ceb3045c542a3bb50a9399ccc0ea03d73b3500a3..d45b1a6342aea2762c8ef8e6d011238d1da6c018 100644 (file)
@@ -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