Helper: social/video/youtube-responsive

« All helpers

Embeds a YouTube video into the current page.

In PHP code, call it like this:

echo $this->run (
    'social/video/youtube-responsive',
    array ('url' => 'http://youtu.be/xyz')
);

In a template, call it like this:

{! social/video/youtube-responsive?url=http://youtu.be/xyz !}

Parameters:

  • url - The URL of the video page.

Also available in the dynamic objects menu as "Video: YouTube (responsive)".