concrete5/concrete5 — pull request #1059 by ojalehto (2013-05-24 05:33:40+00:00)
Title: Fix / refactored - Youtube url was parsed incorrectly

fix-refactor/youtube-video-block-embed-urls

##### Youtube url was parsed incorrectly so some type of urls resulted to an incorrect path. #####

- New method for parsing youtube url
- `Type` attribute has been removed and `allowfullscreen` added as suggested by youtube.
- `wmode` parameter is removed from iframe url.
- `view.php` has been cleaned up.

##### Some examples for iframe url before: #####

http://www.youtube.com/embed/VIDEO_ID
http://www.youtube.com/embed//?wmode=transparent

http://youtu.be/VIDEO_ID
http://www.youtube.com/embed//VIDEO_ID/?wmode=transparent

http://www.youtube.com/v/VIDEO_ID
http://www.youtube.com/embed//?wmode=transparent

http://www.youtube.com/watch?v=VIDEO_ID
http://www.youtube.com/embed/VIDEO_ID/?wmode=transparent

##### Examples with new method:#####
http://3v4l.org/pHpPk