application/modules/g/views/helpers/YouTube.php
public function render($youtube, array $options = array()) {
        $this->_setDefaultAttribs($options);

        $_attribs = $options['attribs'];
        $_attribs['width'] = $options['width'];
        $_attribs['height'] = $options['height'];
        $_attribs['frameborder'] = '0';
        $_attribs['allowfullscreen'] = 'allowfullscreen';

        // unset the parameters that are not part of the query string
        unset($options['width']);
        unset($options['height']);
        unset($options['attribs']);

        // create the YouTube URL
        $youtubeUrl = $this->getPlayerUrl($youtube, $options);
        $_attribs['src'] = $youtubeUrl;

        $html = '<iframe' . $this->_htmlAttribs($_attribs) . '></iframe>';
        return $html;
    }
public function render($youtube, array $options = array()) {
        $this->_setDefaultAttribs($options);

        $_attribs = $options['attribs'];
        $_attribs['width'] = $options['width'];
        $_attribs['height'] = $options['height'];
        $_attribs['frameborder'] = '0';
        $_attribs['allowfullscreen'] = 'allowfullscreen';

        // unset the parameters that are not part of the query string
        unset($options['width']);
        unset($options['height']);
        unset($options['attribs']);

        // create the YouTube URL
        $youtubeUrl = $this->getPlayerUrl($youtube, $options);
        $_attribs['src'] = $youtubeUrl;

        $html = '<iframe' . $this->_htmlAttribs($_attribs) . '></iframe>';
        return $html;
    }
public function render ( $ youtube , array $ options = array ( ) ) { $ this -> _setDefaultAttribs ( $ options ) ; $ _attribs = $ options [ 'attribs' ] ; $ _attribs [ 'width' ] = $ options [ 'width' ] ; $ _attribs [ 'height' ] = $ options [ 'height' ] ; $ _attribs [ 'frameborder' ] = '0' ; $ _attribs [ 'allowfullscreen' ] = 'allowfullscreen' ; // unset the parameters that are not part of the query string unset ( $ options [ 'width' ] ) ; unset ( $ options [ 'height' ] ) ; unset ( $ options [ 'attribs' ] ) ; // create the YouTube URL $ youtubeUrl = $ this -> getPlayerUrl ( $ youtube , $ options ) ; $ _attribs [ 'src' ] = $ youtubeUrl ; $ html = '<iframe' . $ this -> _htmlAttribs ( $ _attribs ) . '></iframe>' ; return $ html ; }
Render a youtube object tag.

@param Garp_Db_Table_Row|string $youtube A record from the `youtube_videos` table,
or a url to a YouTube video.
@param array $options Various rendering options
@return string
Render a youtube object tag .