diff --git a/documentation/changelog.html b/documentation/changelog.html index d68108060db..122b52327ec 100755 --- a/documentation/changelog.html +++ b/documentation/changelog.html @@ -48,7 +48,7 @@

Chamilo Changelog

-

Chamilo 1.10.2 - Alsted, 21st of December 2015

+

Chamilo 1.10.2 - Alsted, 22nd of December 2015

Release notes - summary

Chamilo 1.10.2 is a minor, bugfix version of the 1.10.x branch, with a few new features and bugfixes on top of 1.10.0. Notably, this version enables the migration from 1.9.x to 1.10.2 (many bugs were reported in the migration from 1.9.x to 1.10.0, which were fixed within the 2 months to this minor version).

Release name

diff --git a/main/document/showinframes.php b/main/document/showinframes.php index dce3f188a8f..76d0f7d3990 100755 --- a/main/document/showinframes.php +++ b/main/document/showinframes.php @@ -104,7 +104,7 @@ } $pathinfo = pathinfo($header_file); -$jplayer_supported_files = array('mp4', 'ogv','flv'); +$jplayer_supported_files = array('mp4', 'ogv', 'flv', 'm4v'); $jplayer_supported = false; if (in_array(strtolower($pathinfo['extension']), $jplayer_supported_files)) { @@ -250,33 +250,40 @@ function init() { } $execute_iframe = true; - if ($jplayer_supported) { $extension = api_strtolower($pathinfo['extension']); + if ($extension == 'mp4') { + $extension = 'm4v'; + } $js_path = api_get_path(WEB_LIBRARY_PATH).'javascript/'; $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; - $jquery = ' $("#jquery_jplayer_1").jPlayer({ - ready: function() { - $(this).jPlayer("setMedia", { - '.$extension.' : "'.$document_data['direct_url'].'" - }); - }, - errorAlerts: false, - warningAlerts: false, - swfPath: "'.$js_path.'jquery-jplayer/jplayer/", - //supplied: "m4a, oga, mp3, ogg, wav", - supplied: "'.$extension.'", - //wmode: "window", - solution: "flash, html", // Do not change this setting - cssSelectorAncestor: "#jp_container_1", - });'; + $jquery = ' + $("#jquery_jplayer_1").jPlayer({ + ready: function() { + $(this).jPlayer("setMedia", { + '.$extension.' : "'.$document_data['direct_url'].'" + }); + }, + cssSelectorAncestor: "#jp_container_1", + swfPath: "'.$js_path.'jquery-jplayer/jplayer/", + supplied: "'.$extension.'", + useStateClassSkin: true, + autoBlur: false, + keyEnabled: false, + remainingDuration: true, + toggleDuration: true, + solution: "html, flash", + errorAlerts: false, + warningAlerts: false + }); + '; $htmlHeadXtra[] = ''; $execute_iframe = false; @@ -356,9 +363,13 @@ function init() { echo ''; if ($jplayer_supported) { - echo '
'; + echo '
'; + echo '
'; echo DocumentManager::generate_video_preview($document_data); echo '
'; + + // media_element blocks jplayer disable it + Display::$global_template->assign('show_media_element', 0); } if ($is_freemind_available) { @@ -442,7 +453,7 @@ function getMap(map){ $content = Security::remove_XSS(file_get_contents($file_url_sys)); echo $content; } else { - echo ''; + echo ''; } } Display::display_footer(); diff --git a/main/inc/lib/display.lib.php b/main/inc/lib/display.lib.php index 7c87088dd9f..077449524cb 100755 --- a/main/inc/lib/display.lib.php +++ b/main/inc/lib/display.lib.php @@ -20,7 +20,7 @@ */ class Display { - /* The main template*/ + /** @var Template */ public static $global_template; public static $preview_style = null; @@ -756,12 +756,12 @@ public static function return_icon( } $icon = api_get_cdn_path($icon); - + if ($return_only_path) { return $icon; - + } - + $img = self::img($icon, $alt_text, $additional_attributes); if (SHOW_TEXT_NEAR_ICONS == true and !empty($alt_text)) { if ($show_text) { diff --git a/main/inc/lib/document.lib.php b/main/inc/lib/document.lib.php index 763616cd4d8..887daf81b14 100755 --- a/main/inc/lib/document.lib.php +++ b/main/inc/lib/document.lib.php @@ -3199,15 +3199,15 @@ static function generate_media_preview($i, $type = 'simple') * @param array $document_data * @return string */ - static function generate_video_preview($document_data = array()) + public static function generate_video_preview($document_data = array()) { + // $html = ' -
+