From b15f06224bda1fc7bc6ab69b2fdfcf43b1b4eee9 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 19 Jul 2007 05:19:24 +0000 Subject: [PATCH] FIixes to show MP3 player properly MDL-9739 --- mod/resource/type/file/resource.class.php | 39 ++++++++++++----------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php index 5617afff20..f5429d79df 100644 --- a/mod/resource/type/file/resource.class.php +++ b/mod/resource/type/file/resource.class.php @@ -428,31 +428,34 @@ function display() { } $c .= '&volText='.get_string('vol', 'resource').'&panText='.get_string('pan','resource'); $c = htmlentities($c); + $id = 'filter_mp3_'.time(); //we need something unique because it might be stored in text cache + $cleanurl = addslashes_js($fullurl); + + + // If we have Javascript, use UFO to embed the MP3 player, otherwise depend on plugins + echo '
'; - echo '
'; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; + + echo ''. + ''."\n"; + + echo ''; + + echo ''; echo '
'; - echo '
'; } else if ($resourcetype == "mediaplayer") { echo '
'; -- 2.39.5