aboutsummaryrefslogtreecommitdiff
path: root/views/default/videolist
diff options
context:
space:
mode:
authorPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-13 16:12:40 +0000
committerPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-13 16:12:40 +0000
commitd62cbfda4b060c7ac89210266c5ebf08ff56c4d8 (patch)
tree2a41ee2741c875ef4d3bf894ccfd4282f8efff35 /views/default/videolist
parent87cf8a17b43441397fee711837c388ba6e2168d1 (diff)
downloadelgg-d62cbfda4b060c7ac89210266c5ebf08ff56c4d8.tar.gz
elgg-d62cbfda4b060c7ac89210266c5ebf08ff56c4d8.tar.bz2
Groups profile page tool widgets updated for video and documents.
Diffstat (limited to 'views/default/videolist')
-rw-r--r--views/default/videolist/groupprofile_videolist.php29
1 files changed, 10 insertions, 19 deletions
diff --git a/views/default/videolist/groupprofile_videolist.php b/views/default/videolist/groupprofile_videolist.php
index 0bca15324..8af5c9bd1 100644
--- a/views/default/videolist/groupprofile_videolist.php
+++ b/views/default/videolist/groupprofile_videolist.php
@@ -10,7 +10,7 @@
*/
?>
-<div class="group_tool_widget">
+<div class="group_tool_widget video">
<h3><?php echo elgg_echo("videolist:group"); ?></h3>
<?php
@@ -25,35 +25,26 @@ $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 "<div class=\"filerepo_widget_singleitem\" style=\"width:310px;padding:5px;\">";
-
foreach($videos as $f){
$mime = $f->mimetype;
$owner = get_entity($f->getOwner());
$numcomments = elgg_count_comments($f);
- echo "<div class=\"filerepo_listview_icon\" style=\"float:left;width:90px;padding:8px 0 0 0;\"><a href=\"{$vars['url']}pg/videolist/watch/{$f->guid}\"><img src=\"".$f->thumbnail."\" border=\"0\" width=\"85\" /></a></div>";
- echo "<div class=\"filerepo_widget_content\" style=\"width:210px;margin-left:100px;\">";
- echo "<div class=\"filerepo_listview_title\"><p class=\"filerepo_title\" style=\"font-weight:normal;font-size:12px;\"><a href=\"{$vars['url']}pg/videolist/watch/{$f->guid}\">" . $f->title ."</a></p><br />by <a href=\"{$vars['url']}pg/profile/{$owner->username}\">{$owner->name}</a>";
- if ($numcomments) {
- echo "<br /><a href=\"{$vars['url']}pg/videolist/watch/{$f->guid}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")</a>";
- echo "</div>";
- }
- echo "<div class=\"filerepo_listview_date\"><p class=\"filerepo_timestamp\"><small>" . friendly_time($f->time_created) . "</small></p></div>";
- echo "</div>";
+ echo "<div class='entity_listing clearfloat'>";
+ echo "<div class='entity_listing_icon'><a href=\"{$vars['url']}pg/videolist/watch/{$f->guid}\"><img src=\"".$f->thumbnail."\" border=\"0\" width=\"85\" /></a></div>";
+ echo "<div class='entity_listing_info'>";
+ echo "<p class='entity_title'><a href=\"{$vars['url']}pg/videolist/watch/{$f->guid}\">" . $f->title ."</a><br />by <a href=\"{$vars['url']}pg/profile/{$owner->username}\">{$owner->name}</a></p>";
+ echo "<p class='entity_subtext'>" . friendly_time($f->time_created) . "</p>";
+ echo "</div></div>";
}
- echo "</div>";
//get a link to the users files
$users_file_url = $vars['url'] . "pg/videolist/owned/" . page_owner_entity()->username;
- echo "<div class=\"forum_latest\"><a href=\"{$users_file_url}\">" . elgg_echo("videolist:groupall") . "</a></div>";
+ echo "<p><a href=\"{$users_file_url}\">" . elgg_echo("videolist:groupall") . "</a></p>";
} else {
echo "<p class='margin_top'>" . elgg_echo("videolist:none") . "</p>";
}
-
-?>
-</div>
+echo "</div>";
+?> \ No newline at end of file