aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/views
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-30 19:31:37 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-30 19:31:37 +0000
commit7c931c8e4fdbc7b3ff527d627e0e8bd158fb86ab (patch)
tree32b3b8641dc07a3f2edb8c5c036bf6707a4d29ba /mod/bookmarks/views
parent193fc7fd52fbb6df2417749d693447066c5baf12 (diff)
downloadelgg-7c931c8e4fdbc7b3ff527d627e0e8bd158fb86ab.tar.gz
elgg-7c931c8e4fdbc7b3ff527d627e0e8bd158fb86ab.tar.bz2
Added the beginnings of a bookmark view for group profile pages.
git-svn-id: http://code.elgg.org/elgg/trunk@5556 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/views')
-rwxr-xr-xmod/bookmarks/views/default/bookmarks/group_bookmarks.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/mod/bookmarks/views/default/bookmarks/group_bookmarks.php b/mod/bookmarks/views/default/bookmarks/group_bookmarks.php
new file mode 100755
index 000000000..c99ffe73a
--- /dev/null
+++ b/mod/bookmarks/views/default/bookmarks/group_bookmarks.php
@@ -0,0 +1,36 @@
+<?php
+
+//grab the groups bookmarks
+//@todo adjust so it actually grabs the group bookmarks rather than the users
+$bookmarks = get_entities('object', 'bookmarks',$vars['entity']->owner_guid, "", 6, 0, false);
+
+echo "<div class='group_tool_widget'><h3>".elgg_echo('bookmarks:group')."</h3>";
+
+if($bookmarks){
+ foreach($bookmarks as $b){
+
+ //get the owner
+ $owner = $b->getOwnerEntity();
+
+ //get the time
+ $friendlytime = friendly_time($b->time_created);
+
+ //get the bookmark title
+ $info = "<div class='river_object_bookmarks_create'><p class=\"shares_title\"><a href=\"{$b->address}\">{$b->title}</a></p></div>";
+
+ //get the user details
+ $info .= "<p class=\"shares_timestamp\"><small>{$friendlytime} ";
+
+ //get the bookmark description
+ if($s->description)
+ $info .= "<a href=\"javascript:void(0);\" class=\"share_more_info\">".elgg_echo('bookmarks:more')."</a></small></p><div class=\"share_desc\"><p>{$s->description}</p></div>";
+ else
+ $info .= "</small></p>";
+
+ //display
+ echo "<div class='shares_widget_content'>" . $info . "</div>";
+ }
+} else {
+ echo "<p class='margin_top'>" . elgg_echo("bookmarks:none") . "</p>";
+}
+echo "</div>"; \ No newline at end of file