aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/views/default/ecml/keywords/vimeo.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/ecml/views/default/ecml/keywords/vimeo.php')
-rw-r--r--mod/ecml/views/default/ecml/keywords/vimeo.php50
1 files changed, 0 insertions, 50 deletions
diff --git a/mod/ecml/views/default/ecml/keywords/vimeo.php b/mod/ecml/views/default/ecml/keywords/vimeo.php
deleted file mode 100644
index 263eb3740..000000000
--- a/mod/ecml/views/default/ecml/keywords/vimeo.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/**
- * ECML vimeo support
- *
- * @package ECML
- */
-
-$src = (isset($vars['src'])) ? $vars['src'] : FALSE;
-$width = (isset($vars['width'])) ? $vars['width'] : 480;
-$height = (isset($vars['height'])) ? $vars['height'] : 385;
-
-// need to extract the video id.
-// the src arg can take a full url or an id.
-// assume if no youtube.com that it's an id.
-if (strpos($src, 'vimeo.com') === FALSE) {
- $vid = $src;
-} else {
- // we love vimeo.
- list($address, $vid) = explode('vimeo.com/', $src);
-}
-
-if ($vid) {
- $movie_url = "http://vimeo.com/moogaloop.swf?";
- $query = array('clip_id' => $vid, 'server' => 'vimeo.com');
-
- $params = array(
- 'show_title' => 1,
- 'show_byline' => 1,
- 'show_portrait' => 0,
- 'color' => '',
- 'fullscreen' => 1
- );
-
- foreach ($params as $param => $default) {
- $query[$param] = (isset($vars[$param])) ? $vars[$param] : $default;
- }
-
- $query_str = http_build_query($query);
- $movie_url .= $query_str;
-
- echo "
-<object width=\"$width\" height=\"$height\">
- <param name=\"allowfullscreen\" value=\"true\" />
- <param name=\"allowscriptaccess\" value=\"always\" />
- <param name=\"movie\" value=\"$movie_url\" />
- <embed src=\"$movie_url\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"$width\" height=\"$height\">
- </embed>
-</object>
- ";
-} \ No newline at end of file