From a8aa4bceed8e7ad0c5af2646a83d6a2da2e0b23a Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Fri, 26 Mar 2010 21:07:39 +0000 Subject: Changed line endings to unix-style for videolist plugin. --- views/default/object/watch.php | 90 +++++++++++++++++++++--------------------- 1 file changed, 45 insertions(+), 45 deletions(-) (limited to 'views/default/object/watch.php') diff --git a/views/default/object/watch.php b/views/default/object/watch.php index c33a7b988..9b3de9626 100644 --- a/views/default/object/watch.php +++ b/views/default/object/watch.php @@ -1,45 +1,45 @@ - - * @copyright Prateek Choudhary - */ -$videodiv = ''; -$width = "600"; -$height = "400"; -$file = $vars['entity']; -if(isset($vars['entity'])) -{ - -$videos = get_entity($vars['entity']); -$title = $videos->title; -$url = $videos->url; -$videoid = $videos->video_id; -$videodiv = "

".$title."

"; -if($videos->videotype == "youtube"){ - $videodiv .= "
"; -} -else if($videos->videotype == "metacafe"){ - $videoid_id = $videoid; - $path = explode("/", $videos->thumbnail); - $path = array_reverse($path); - $thumbnailArray = explode(".", $path[0]); - $videoid = $videoid_id."/".$thumbnailArray[0].".swf"; - $videodiv .= "
"; - -} -else if($videos->videotype == "vimeo"){ - $videodiv .= "
"; -} -$videodiv .= "
"; -$videodiv .= elgg_view_likes($videos); -$videodiv .= elgg_view_comments($videos); -print $videodiv; - -//echo elgg_view_comments($videos); -} -?> + + * @copyright Prateek Choudhary + */ +$videodiv = ''; +$width = "600"; +$height = "400"; +$file = $vars['entity']; +if(isset($vars['entity'])) +{ + +$videos = get_entity($vars['entity']); +$title = $videos->title; +$url = $videos->url; +$videoid = $videos->video_id; +$videodiv = "

".$title."

"; +if($videos->videotype == "youtube"){ + $videodiv .= "
"; +} +else if($videos->videotype == "metacafe"){ + $videoid_id = $videoid; + $path = explode("/", $videos->thumbnail); + $path = array_reverse($path); + $thumbnailArray = explode(".", $path[0]); + $videoid = $videoid_id."/".$thumbnailArray[0].".swf"; + $videodiv .= "
"; + +} +else if($videos->videotype == "vimeo"){ + $videodiv .= "
"; +} +$videodiv .= "
"; +$videodiv .= elgg_view_likes($videos); +$videodiv .= elgg_view_comments($videos); +print $videodiv; + +//echo elgg_view_comments($videos); +} +?> -- cgit v1.2.3