function doYouTube ($pagename, $attrstr) { $attr = new Attributes($attrstr, array('print'=>'fo')); $attr = $attr->getAttribs('fo'); unset($attr['id']); if (isset($attr['file'])) { $embed = new Embed($pagename, $attrstr); return Keep($embed->getWikiXML()); } return ''; }