From a161b38e65fa698133402f4fb23548242f494018 Mon Sep 17 00:00:00 2001 From: Dave Tosh Date: Tue, 23 Mar 2010 17:30:14 +0000 Subject: This videolist plugin shows real promise so we shall work on it for v1.8 then release it back to the community. --- views/default/videolist/groupprofile_videolist.php | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 views/default/videolist/groupprofile_videolist.php (limited to 'views/default/videolist/groupprofile_videolist.php') diff --git a/views/default/videolist/groupprofile_videolist.php b/views/default/videolist/groupprofile_videolist.php new file mode 100644 index 000000000..279f2af81 --- /dev/null +++ b/views/default/videolist/groupprofile_videolist.php @@ -0,0 +1,62 @@ + + * @copyright Prateek Choudhary + */ + +?> +
+

+ +num_display; + if (!$number) + $number = 5; + + //get the user's files + $videos = get_user_objects($vars['entity']->guid, "videolist", $number, 0); + + //if there are some files, go get them + if ($videos) { + + //display in list mode + echo "
"; + foreach($videos as $f){ + + $mime = $f->mimetype; + $owner = get_entity($f->getOwner()); + $numcomments = elgg_count_comments($f); + echo ""; + echo "
"; + echo ""; + echo "

" . friendly_time($f->time_created) . "

"; + echo "
"; + + } + echo "
"; + + //get a link to the users files + $users_file_url = $vars['url'] . "pg/videolist/owned/" . page_owner_entity()->username; + + echo ""; + + } else { + + echo "
" . elgg_echo("videolist:none") . "
"; + + } + +?> +
+
-- cgit v1.2.3