blob: 2f677fb44d81fe86ad40596e7fd47e71dc3f02ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php
//grab the groups bookmarks
$bookmarks = elgg_get_entities(array('type' => 'object', 'subtype' => 'bookmarks',
'container_guids' => $vars['entity']->container_guid, 'limit' => 6));
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>";
|