From 05129a184b2c88cf082ebf230a3dce7b6510ec8f Mon Sep 17 00:00:00 2001 From: Pete Harris Date: Tue, 30 Mar 2010 14:23:05 +0000 Subject: Further updates to VideoList UI. Search results styled to match new elgg list style. Videos from search now play in popup modal with screen greyed out. Individual video page now has edit and delete, breadcrumbs, latest comments etc.. --- views/default/object/watch.php | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'views/default/object/watch.php') diff --git a/views/default/object/watch.php b/views/default/object/watch.php index 66fde240f..f8dd1ceac 100644 --- a/views/default/object/watch.php +++ b/views/default/object/watch.php @@ -1,13 +1,14 @@ - * @copyright Prateek Choudhary - */ +* Elgg Videolist Plugin - +* This plugin allows users to watch videos +* +* @package Elgg +* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 +* @author Prateek Choudhary +* @copyright Prateek Choudhary +*/ + $videodiv = ''; $width = "600"; $height = "400"; @@ -17,24 +18,27 @@ if(isset($vars['entity'])) { $title = $videos->title; $url = $videos->url; $videoid = $videos->video_id; - $videodiv = "

".$title."

"; + + $videodiv .= "
"; + + // view for plugins to extend + $videodiv .= elgg_view('videolist/options', array('entity' => $videos)); + if ($videos->videotype == "youtube") { - $videodiv .= "
"; + $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 .= "
"; + $videodiv .= ""; } else if($videos->videotype == "vimeo") { - $videodiv .= "
"; + $videodiv .= ""; } + $videodiv .= "
".elgg_view_likes($videos); $videodiv .= "
"; - $videodiv .= elgg_view_likes($videos); $videodiv .= elgg_view_comments($videos); print $videodiv; - - //echo elgg_view_comments($videos); } \ No newline at end of file -- cgit v1.2.3