From: <var...@us...> - 2008-10-24 15:26:46
|
Revision: 6337 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6337&view=rev Author: vargenau Date: 2008-10-24 15:26:32 +0000 (Fri, 24 Oct 2008) Log Message: ----------- Valid XHTML code Modified Paths: -------------- trunk/lib/plugin/YouTube.php Modified: trunk/lib/plugin/YouTube.php =================================================================== --- trunk/lib/plugin/YouTube.php 2008-10-24 14:58:50 UTC (rev 6336) +++ trunk/lib/plugin/YouTube.php 2008-10-24 15:26:32 UTC (rev 6337) @@ -150,20 +150,17 @@ 'width' => $width, 'height' => $height, )); - $attrs = array('src' => $url, + $attrs = array('data' => $url, 'type' => 'application/x-shockwave-flash', - 'wmode' => 'transparent', 'width' => $width, 'height' => $height); if (isBrowserSafari()) { - return HTML::embed($attrs); + return HTML::object($attrs); } $object->pushContent(HTML::param(array('name' => 'movie', 'value' => $url))); $object->pushContent(HTML::param(array('name' => 'wmode', 'value' => 'transparent'))); - $object->pushContent(HTML::embed($attrs)); + $object->pushContent(HTML::object($attrs)); return $object; - - //<object width="$w" height="$h"><param name="movie" value="http://www.youtube.com/v/$v"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$v" type="application/x-shockwave-flash" wmode="transparent" width="$w" height="$h"></embed></object> } function Daily_pick() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |