Browse files

"FILTER/MDL-17703, use classname instead of inline style"

  • Loading branch information...
1 parent 000bfd6 commit 8a76863c7eae371fd08409d07d3cc40a2e876712 dongsheng committed Jan 19, 2009
Showing with 5 additions and 5 deletions.
  1. +3 −3 filter/mediaplugin/filter.php
  2. +2 −2 theme/standard/styles_layout.css
View
6 filter/mediaplugin/filter.php
@@ -122,7 +122,7 @@ function mediaplugin_filter_mp3_callback($link) {
return $link[0].
'<span class="mediaplugin mediaplugin_mp3" id="'.$id.'">('.get_string('mp3audio', 'mediaplugin').')</span>
-<div id="'.$div_id.'" style="display:inline"></div>
+<div id="'.$div_id.'" class="mediaplugin_mp3"></div>
<script type="text/javascript">
//<![CDATA[
var FO = { movie:"'.$CFG->wwwroot.'/filter/mediaplugin/mp3player.swf?src='.$url.'",
@@ -144,7 +144,7 @@ function mediaplugin_filter_swf_callback($link) {
return $link[0].
'<span class="mediaplugin mediaplugin_swf" id="'.$id.'">('.get_string('flashanimation', 'mediaplugin').')</span>
-<div id="'.$div_id.'" style="display:inline"></div>
+<div id="'.$div_id.'" class="mediaplugin_swf"></div>
<script type="text/javascript">
//<![CDATA[
var FO = { movie:"'.$url.'", width:"'.$width.'", height:"'.$height.'", majorversion:"6", build:"40",
@@ -168,7 +168,7 @@ function mediaplugin_filter_flv_callback($link) {
return $link[0].
'<span class="mediaplugin mediaplugin_flv" id="'.$id.'">('.get_string('flashvideo', 'mediaplugin').')</span>
-<div id="'.$div_id.'" style="display:inline"></div>
+<div id="'.$div_id.'" class="mediaplugin_flv"></div>
<script type="text/javascript">
//<![CDATA[
var FO = { movie:"'.$CFG->wwwroot.'/filter/mediaplugin/flvplayer.swf?file='.$url.'",
View
4 theme/standard/styles_layout.css
@@ -822,14 +822,14 @@ table.navbar {
/***
*** Filters
***/
-span.mediaplugin {
+.mediaplugin {
display:block;
clear:both;
margin-top:5px;
margin-bottom:5px;
}
-span.mediaplugin_mp3 {
+.mediaplugin_mp3, .mediaplugin_swf, .mediaplugin_flv {
display:inline;
clear:none;
margin:0px;

0 comments on commit 8a76863

Please sign in to comment.