Created
April 15, 2015 12:15
-
-
Save krismas/2d93ea94e4893b3f8668 to your computer and use it in GitHub Desktop.
A dummy YouTube Snippet for MODX
This file contains 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
<?php | |
// Dummy YouTube Snippet for MODX by ackwa.fr : [[Youtube?id=`ugzbGxRuHtI`&auto=`true`]] | |
return (isset($id) ? '<iframe width="560" height="315" src="https://www.youtube.com/embed/'.$id.((isset($auto) && $auto) ? '?autoplay=1' : '').'" frameborder="0" allowfullscreen></iframe>' : ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment