$out = '<div>'._LEND;
static private function youTube_replacer(&$matches ) { $videoid = $matches[1]; $out = '<div>'._LEND; $out .= '<object style="width:425px; height:350px;" data="http://www.youtube.com/v/'.$videoid.'&hl=en&fs=1&rel=0">'._LEND; $out .= '<param name="movie" value="http://www.youtube.com/v/'.$videoid.'&hl=en&fs=1&rel=0" />'._LEND; $out .= '<param name="wmode" value="transparent"></param>'._LEND; $out .= '<embed src=\"http://www.youtube.com/v/".$videoid."\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed>._LEND; $out .= '</object>'._LEND; $out .= '</div>'._LEND; return $out;
<?php /********************/ /* YOUTUBE REPLACER */ /********************/ static private function youTube_replacer($matches ) { $videoid = $matches[1]; $out = "<div>\n"; $out .= '<object type="application/x-shockwave-flash" style="width:480px; height:360px;" data="http://www.youtube.com/v/'.$videoid.'&hl=en&fs=1&rel=0">'."\n"; $out .= '<param name="movie" value="http://www.youtube.com/v/'.$videoid.'&hl=en&fs=1&rel=0" />'."\n"; $out .= '<param name="wmode" value="transparent" />'."\n"; $out .= '<param name="allowscriptaccess" value="always" />'."\n"; $out .= '<param name="allowFullScreen" value="true" />'."\n"; $out .= '<embed src="http://www.youtube.com/v/'.$videoid.'&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="360"></embed>'."\n"; $out .= "</object>\n</div>\n"; return $out; }?>