Last active
August 29, 2015 14:14
-
-
Save coquer/050ed6ea84def6fb2be1 to your computer and use it in GitHub Desktop.
BootStrapLight Box Prepare URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function changeVimeoURiToEnableLightBox($url){ | |
$video_url = parse_url($url); | |
if($video_url['host'] == 'www.vimeo.com' || $video_url['host'] == 'vimeo.com'){ | |
return 'player.'.$video_url['host'].'/video'.$video_url['path']; | |
} | |
return $url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment