1. marc0s
  2. lorea

Commits

in...@n-1.cc  committed f7a98a6

fix videolist river item close html div

  • Participants
  • Parent commits ddccbd6
  • Branches default

Comments (0)

Files changed (1)

File elgg/mod/videolist/views/default/object/watch.php

View file
  • Ignore whitespace
 $videoid = $videos->video_id;
 if($videos->videotype == "youtube"){
 	$videodiv .= "<object width=\"$width\" height=\"$height\"><param name=\"movie\" value=\"http://{$url}&hl=en&fs=1&showinfo=0&auoplay=0\"></param><param name=\"allowFullScreen\" value=\"true\"></param><embed src=\"http://{$url}&hl=en&fs=1&showinfo=0&autoplay=0\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" width=\"$width\" height=\"$height\"></embed></object>";
+	$videodiv .= "</div>";
 }
 else if($videos->videotype == "metacafe"){
 	$videoid_id = $videoid;
 	$thumbnailArray = explode(".", $path[0]);
 	$videoid = $videoid_id."/".$thumbnailArray[0].".swf";
 	$videodiv .= "<embed src=\"http://www.metacafe.com/fplayer/".$videoid."\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"$width\" height=\"$height\" name=\"Metacafe_".$videoid_id."\"></embed>";
+	$videodiv .= "</div>";
 
 }
 else if($videos->videotype == "vimeo"){
 	$videodiv .= "<object width=\"$width\" height=\"$height\"><param name=\"allowfullscreen\" value=\"true\" /><param name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://vimeo.com/moogaloop.swf?clip_id=".$videoid."&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1\" /><embed src=\"http://vimeo.com/moogaloop.swf?clip_id=".$videoid."&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"$width\" height=\"$height\"></embed></object>";
+	$videodiv .= "</div>";
 }
 else if($videos->videotype == "bliptv"){
 	$videodiv .= "<embed src=\"".$videos->embedurl."\" type=\"application/x-shockwave-flash\" width=\"$width\" height=\"$height\" allowscriptaccess=\"always\" allowfullscreen=\"true\"></embed>";
+	$videodiv .= "</div>";
 }
 
 if ($full) {