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/videolist.php | 4 ++-- views/default/object/watch.php | 34 +++++++++++++++++++--------------- 2 files changed, 21 insertions(+), 17 deletions(-) (limited to 'views/default/object') diff --git a/views/default/object/videolist.php b/views/default/object/videolist.php index 4563f04b4..19015384a 100644 --- a/views/default/object/videolist.php +++ b/views/default/object/videolist.php @@ -40,13 +40,13 @@ if(!empty($video_file)) { if(get_input('show_viewtype') == "all") { $info .= '

'.$title.'

'; - $info .= "

username}\">{$owner->name} {$friendlytime}"; + $info .= "

username}\">{$owner->name} {$friendlytime}"; $info .= "

"; $icon = "" . elgg_view("videolist/icon", array("mimetype" => $mime, 'thumbnail' => $thumbnail, 'video_guid' => $video_guid, 'size' => 'small')) . ""; echo "
".elgg_view_listing($icon, $info)."
"; } else { $info .= '

'.$title.'

'; - $info .= "

username}\">{$owner->name} {$friendlytime}"; + $info .= "

username}\">{$owner->name} {$friendlytime}"; $info .= "

"; $icon = "" . elgg_view("videolist/icon", array("mimetype" => $mime, 'thumbnail' => $thumbnail, 'video_guid' => $video_guid, 'size' => 'small')) . ""; echo "
".elgg_view_listing($icon, $info)."
"; 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