From: <var...@us...> - 2008-10-24 14:59:03
|
Revision: 6336 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6336&view=rev Author: vargenau Date: 2008-10-24 14:58:50 +0000 (Fri, 24 Oct 2008) Log Message: ----------- Add missing alt argument Modified Paths: -------------- trunk/lib/plugin/YouTube.php Modified: trunk/lib/plugin/YouTube.php =================================================================== --- trunk/lib/plugin/YouTube.php 2008-10-24 14:25:18 UTC (rev 6335) +++ trunk/lib/plugin/YouTube.php 2008-10-24 14:58:50 UTC (rev 6336) @@ -2,6 +2,7 @@ rcs_id('$Id$'); /* Copyright 2007 Reini Urban + Copyright 2008 Marc-Etienne Vargenau, Alcatel-Lucent */ /** @@ -141,7 +142,8 @@ HTML::img(array('src' => "http://img.youtube.com/vi/". $v."/".(($size == 'large')?"0":"2").".jpg", 'width' => $width, - 'height' => $height))); + 'height' => $height, + 'alt' => "YouTube video $v"))); return $link; } $object = HTML::object(array('class' => 'inlineobject', @@ -173,12 +175,6 @@ } }; -// $Log: not supported by cvs2svn $ -// Revision 1.1 2007/05/24 18:40:30 rurban -// new plugin -// -// - // For emacs users // Local Variables: // mode: php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
From: <var...@us...> - 2021-09-20 09:24:13
|
Revision: 10579 http://sourceforge.net/p/phpwiki/code/10579 Author: vargenau Date: 2021-09-20 09:24:11 +0000 (Mon, 20 Sep 2021) Log Message: ----------- Remove useless local variable Modified Paths: -------------- trunk/lib/plugin/YouTube.php Modified: trunk/lib/plugin/YouTube.php =================================================================== --- trunk/lib/plugin/YouTube.php 2021-09-20 09:22:59 UTC (rev 10578) +++ trunk/lib/plugin/YouTube.php 2021-09-20 09:24:11 UTC (rev 10579) @@ -177,13 +177,12 @@ $height = 60; } // img: http://img.youtube.com/vi/KKTDRqQtPO8/2.jpg or 0.jpg - $link = HTML::a(array('href' => $url), + return HTML::a(array('href' => $url), HTML::img(array('src' => "http://img.youtube.com/vi/" . $v . "/" . (($size == 'large') ? "0" : "2") . ".jpg", 'width' => $width, 'height' => $height, 'alt' => "YouTube video $v"))); - return $link; } $object = HTML::object(array('class' => 'inlineobject', 'width' => $width, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |