Browse Source

Fixing width for the audio player

Julio Montoya 11 years ago
parent
commit
a3832e61f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/display.lib.php

+ 1 - 1
main/inc/lib/display.lib.php

@@ -1564,7 +1564,7 @@ class Display {
                 }
                 $width = isset($params['width']) ? 'width="'.$params['width'].'"' : null;
                 $html = '<audio id="'.$fileInfo['basename'].'" controls '.$autoplay.' '.$width.' src="'.$file.'" >';
-                $html .=  '<object width="120" height="50" type="application/x-shockwave-flash" data="'.api_get_path(WEB_LIBRARY_PATH).'javascript/mediaelement/flashmediaelement.swf">
+                $html .=  '<object width="'.$params['width'].'" height="50" type="application/x-shockwave-flash" data="'.api_get_path(WEB_LIBRARY_PATH).'javascript/mediaelement/flashmediaelement.swf">
                                 <param name="movie" value="'.api_get_path(WEB_LIBRARY_PATH).'javascript/mediaelement/flashmediaelement.swf" />
                                 <param name="flashvars" value="controls=true&file='.$fileInfo['basename'].'" />
                             </object>';