aboutsummaryrefslogtreecommitdiff
path: root/views/default/videolist/watch/youtube.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-11-06 23:28:09 +0100
committerSem <sembrestels@riseup.net>2011-11-06 23:28:09 +0100
commit0adeee109cf8d8517f3a890105f5b46459495204 (patch)
tree6e0cc8ea0bec3bb007b782db17712d46af1e1572 /views/default/videolist/watch/youtube.php
parent84de3a9ab57277bbaedb30c5e24070f8a5ad4431 (diff)
downloadelgg-0adeee109cf8d8517f3a890105f5b46459495204.tar.gz
elgg-0adeee109cf8d8517f3a890105f5b46459495204.tar.bz2
Watch working for Vimeo and Youtube.
Diffstat (limited to 'views/default/videolist/watch/youtube.php')
-rw-r--r--views/default/videolist/watch/youtube.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/views/default/videolist/watch/youtube.php b/views/default/videolist/watch/youtube.php
new file mode 100644
index 000000000..4b62aabbc
--- /dev/null
+++ b/views/default/videolist/watch/youtube.php
@@ -0,0 +1,7 @@
+<?php
+
+$video_id = $vars['video_id'];
+$width = $vars['width'];
+$height = $vars['height'];
+
+echo "<iframe width=\"$width\" height=\"$height\" src=\"https://www.youtube-nocookie.com/embed/$video_id\" frameborder=\"0\" allowfullscreen></iframe>";